mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 20:20:42 +00:00
fix(release): complete qa lab harness runtime
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { resolveInboundMentionDecision } from "openclaw/plugin-sdk/channel-inbound";
|
||||
import type { PluginRuntime } from "openclaw/plugin-sdk/runtime-store";
|
||||
|
||||
type SessionRecord = {
|
||||
@@ -48,6 +49,30 @@ export function createQaRunnerRuntime(): PluginRuntime {
|
||||
});
|
||||
},
|
||||
},
|
||||
text: {
|
||||
hasControlCommand() {
|
||||
return false;
|
||||
},
|
||||
},
|
||||
mentions: {
|
||||
buildMentionRegexes() {
|
||||
return [/\b@?openclaw\b/i];
|
||||
},
|
||||
matchesMentionPatterns(text: string, regexes: RegExp[]) {
|
||||
return regexes.some((regex) => regex.test(text));
|
||||
},
|
||||
resolveInboundMentionDecision,
|
||||
},
|
||||
groups: {
|
||||
resolveRequireMention() {
|
||||
return false;
|
||||
},
|
||||
},
|
||||
commands: {
|
||||
shouldHandleTextCommands() {
|
||||
return true;
|
||||
},
|
||||
},
|
||||
reply: {
|
||||
resolveEnvelopeFormatOptions() {
|
||||
return {};
|
||||
|
||||
Reference in New Issue
Block a user