VoiceWake: document escape path and reset stale forward command

This commit is contained in:
Peter Steinberger
2025-12-07 18:20:40 +01:00
parent 2a45455c80
commit 7efa152418
6 changed files with 81 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ import {
setHeartbeatsEnabled,
type WebMonitorTuning,
} from "../provider-web.js";
import { defaultRuntime } from "../runtime.js";
import { defaultRuntime, type RuntimeEnv } from "../runtime.js";
import { VERSION } from "../version.js";
import {
resolveHeartbeatSeconds,
@@ -252,10 +252,12 @@ Examples:
}
const logs: string[] = [];
const runtime = {
const runtime: RuntimeEnv = {
log: (msg: string) => logs.push(String(msg)),
error: (msg: string) => logs.push(String(msg)),
exit: (_code: number) => {},
exit: (_code: number): never => {
throw new Error("agentCommand requested exit");
},
};
const opts: {