feat(voicewake): add computer wake word
This commit is contained in:
@@ -303,7 +303,7 @@ describe("gateway server", () => {
|
||||
|
||||
const initial = await rpcReq<{ triggers: string[] }>(ws, "voicewake.get");
|
||||
expect(initial.ok).toBe(true);
|
||||
expect(initial.payload?.triggers).toEqual(["clawd", "claude"]);
|
||||
expect(initial.payload?.triggers).toEqual(["clawd", "claude", "computer"]);
|
||||
|
||||
const changedP = onceMessage<{
|
||||
type: "event";
|
||||
@@ -369,7 +369,7 @@ describe("gateway server", () => {
|
||||
const firstPayload = JSON.parse(String(first?.payloadJSON)) as {
|
||||
triggers?: unknown;
|
||||
};
|
||||
expect(firstPayload.triggers).toEqual(["clawd", "claude"]);
|
||||
expect(firstPayload.triggers).toEqual(["clawd", "claude", "computer"]);
|
||||
|
||||
bridgeSendEvent.mockClear();
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ export type VoiceWakeConfig = {
|
||||
updatedAtMs: number;
|
||||
};
|
||||
|
||||
const DEFAULT_TRIGGERS = ["clawd", "claude"];
|
||||
const DEFAULT_TRIGGERS = ["clawd", "claude", "computer"];
|
||||
|
||||
function defaultBaseDir() {
|
||||
return path.join(os.homedir(), ".clawdis");
|
||||
|
||||
Reference in New Issue
Block a user