feat(voicewake): add computer wake word
parent
44ffe41775
commit
b36b20d246
|
|
@ -21,7 +21,7 @@ Wake words are stored on the gateway machine at:
|
|||
Shape:
|
||||
|
||||
```json
|
||||
{ "triggers": ["clawd", "claude"], "updatedAtMs": 1730000000000 }
|
||||
{ "triggers": ["clawd", "claude", "computer"], "updatedAtMs": 1730000000000 }
|
||||
```
|
||||
|
||||
## Protocol
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue