fix(release): complete qa lab harness runtime

This commit is contained in:
Peter Steinberger
2026-04-28 16:31:51 +01:00
parent b7a30fc201
commit 3afc597287

View File

@@ -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 {};