@hearsay-tools/squawk 0.18.0-pr3583.6460 → 0.18.0-pr3586.6464.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/README.md +4 -4
  2. package/dist/ci-wait/tools.d.ts +4 -4
  3. package/dist/contract/health.d.ts +2 -0
  4. package/dist/contract/index.d.ts +1 -0
  5. package/dist/contract/index.js +591 -461
  6. package/dist/contract/projects.d.ts +1 -9
  7. package/dist/contract/voice.d.ts +213 -0
  8. package/dist/data-gitignore.js +1 -1
  9. package/dist/data-gitignore.js.map +1 -1
  10. package/dist/delegation/routes.d.ts +73 -73
  11. package/dist/delegation/transport.d.ts +4 -4
  12. package/dist/server/activity-routes.d.ts +23 -23
  13. package/dist/server/capabilities.d.ts +1 -0
  14. package/dist/server/capabilities.js +3 -0
  15. package/dist/server/capabilities.js.map +1 -1
  16. package/dist/server/forge/github-merge-state.d.ts +1 -1
  17. package/dist/server/forge/github-merge-state.js +4 -9
  18. package/dist/server/forge/github-merge-state.js.map +1 -1
  19. package/dist/server/forge/github.d.ts +1 -2
  20. package/dist/server/forge/github.js +1 -2
  21. package/dist/server/forge/github.js.map +1 -1
  22. package/dist/server/forge/types.d.ts +1 -1
  23. package/dist/server/live-routes.d.ts +6 -6
  24. package/dist/server/project-context.d.ts +1 -3
  25. package/dist/server/project-context.js +1 -3
  26. package/dist/server/project-context.js.map +1 -1
  27. package/dist/server/server-deps.d.ts +1 -1
  28. package/dist/server/server-deps.js +1 -3
  29. package/dist/server/server-deps.js.map +1 -1
  30. package/dist/server/server.d.ts +195 -22
  31. package/dist/server/server.js +20 -17
  32. package/dist/server/server.js.map +1 -1
  33. package/dist/server/workspace-live-routes.d.ts +6 -6
  34. package/dist/voice/decide.d.ts +35 -0
  35. package/dist/voice/decide.js +329 -0
  36. package/dist/voice/decide.js.map +1 -0
  37. package/dist/voice/decision-log.d.ts +48 -0
  38. package/dist/voice/decision-log.js +117 -0
  39. package/dist/voice/decision-log.js.map +1 -0
  40. package/dist/voice/engine.d.ts +119 -0
  41. package/dist/voice/engine.js +61 -0
  42. package/dist/voice/engine.js.map +1 -0
  43. package/dist/voice/fake-engine.d.ts +10 -0
  44. package/dist/voice/fake-engine.js +192 -0
  45. package/dist/voice/fake-engine.js.map +1 -0
  46. package/dist/voice/jev-engine.d.ts +17 -0
  47. package/dist/voice/jev-engine.js +110 -0
  48. package/dist/voice/jev-engine.js.map +1 -0
  49. package/dist/voice/pending-ask.d.ts +17 -0
  50. package/dist/voice/pending-ask.js +51 -0
  51. package/dist/voice/pending-ask.js.map +1 -0
  52. package/dist/voice/routes.d.ts +115 -0
  53. package/dist/voice/routes.js +92 -0
  54. package/dist/voice/routes.js.map +1 -0
  55. package/dist/voice/sentence.d.ts +21 -0
  56. package/dist/voice/sentence.js +61 -0
  57. package/dist/voice/sentence.js.map +1 -0
  58. package/dist/voice/thresholds.d.ts +28 -0
  59. package/dist/voice/thresholds.js +29 -0
  60. package/dist/voice/thresholds.js.map +1 -0
  61. package/dist/workflows/continuation-admission.d.ts +72 -72
  62. package/dist/workflows/run/wait-engine.d.ts +72 -72
  63. package/package.json +4 -4
  64. package/scripts/voice-replay.ts +50 -0
  65. package/web/dist/assets/activity-motion-CbA_TAx4.js +2 -0
  66. package/web/dist/assets/{activity-route-DURvhLQf.js → activity-route-Cq5GO6rp.js} +1 -1
  67. package/web/dist/assets/agent-accounts-Cof8AiVl.js +18 -0
  68. package/web/dist/assets/{alert-dialog-CPBKJTj_.js → alert-dialog-CH4SXGfX.js} +1 -1
  69. package/web/dist/assets/attention-BjWQsJVw.js +1 -0
  70. package/web/dist/assets/button-DGwhwRuD.js +3 -0
  71. package/web/dist/assets/{centered-state-8l6wvu0C.js → centered-state-B5QmAy2y.js} +1 -1
  72. package/web/dist/assets/{cez-idle-TVRD1sce.js → cez-idle-xv7f96fc.js} +1 -1
  73. package/web/dist/assets/{commit-diff-panel-BbM4GEgm.js → commit-diff-panel-BInf9r-P.js} +1 -1
  74. package/web/dist/assets/{dialog-CkU56ywj.js → dialog-B7p5oc5r.js} +1 -1
  75. package/web/dist/assets/diff-BvCB85J2.js +3 -0
  76. package/web/dist/assets/{diff-controls-DzcrZF8L.js → diff-controls-CeYlCm_y.js} +1 -1
  77. package/web/dist/assets/{diff-view--NwKwseV.js → diff-view-Cnlbd7ej.js} +4 -4
  78. package/web/dist/assets/{dist-D4TujV9O.js → dist-ClnpAEgV.js} +1 -1
  79. package/web/dist/assets/{dropdown-menu-BN2BI4R1.js → dropdown-menu-DPrTX-zi.js} +1 -1
  80. package/web/dist/assets/{es2015-DnySZnV4.js → es2015-DTn4s5Lh.js} +1 -1
  81. package/web/dist/assets/{file-preview-B36xoAJ8.js → file-preview-EiGdhbDV.js} +2 -2
  82. package/web/dist/assets/git-toolbar-D6W3lamH.js +1 -0
  83. package/web/dist/assets/{github-CA0qpTLt.js → github-DQe-Ussy.js} +1 -1
  84. package/web/dist/assets/{global-activity-route-DRc_wjkF.js → global-activity-route-_1mbn6gk.js} +1 -1
  85. package/web/dist/assets/{image-preview-DpaJAUA9.js → image-preview-cn57tA1m.js} +1 -1
  86. package/web/dist/assets/index-Cs-8u_FQ.js +17 -0
  87. package/web/dist/assets/index-WLruDkjz.css +1 -0
  88. package/web/dist/assets/{live-protocol-aMLJJ0MQ.js → live-protocol-DjH6ZQwI.js} +1 -1
  89. package/web/dist/assets/{nav-row-styles-DoZBu-jT.js → nav-row-styles-DSBuSnEE.js} +1 -1
  90. package/web/dist/assets/preview-pane-connected-DgZ5q0xy.js +3 -0
  91. package/web/dist/assets/project-router-iGGf0Wcy.js +1 -0
  92. package/web/dist/assets/project-scope-context-DK2mtfmt.js +4 -0
  93. package/web/dist/assets/{prompt-template-menu-BJlLqUsI.js → prompt-template-menu-D1AqFsnv.js} +1 -1
  94. package/web/dist/assets/queries-CMLTX79n.js +1 -0
  95. package/web/dist/assets/{reference-chip-pp1FgLpK.js → reference-chip-uYFiC2FE.js} +1 -1
  96. package/web/dist/assets/repo-git-B_xucWJR.js +1 -0
  97. package/web/dist/assets/{report-reader-C_r69KvS.js → report-reader-Csv7xOrn.js} +1 -1
  98. package/web/dist/assets/reports-BVp32fGs.js +1 -0
  99. package/web/dist/assets/run-header-C941_3eU.js +2 -0
  100. package/web/dist/assets/skills-PpSAbEYS.js +1 -0
  101. package/web/dist/assets/{tab-link-92W6MWDZ.js → tab-link-dVF0beIK.js} +1 -1
  102. package/web/dist/assets/task-changes-BaCA5Izd.js +1 -0
  103. package/web/dist/assets/task-commits-B4oZHsub.js +1 -0
  104. package/web/dist/assets/task-files-Bg_J255X.js +1 -0
  105. package/web/dist/assets/task-github-item-DyBh5-Q_.js +1 -0
  106. package/web/dist/assets/task-thread-D6wp7G61.js +9 -0
  107. package/web/dist/assets/{thread-state-DBalnt7M.js → thread-state-DA5kehiy.js} +1 -1
  108. package/web/dist/assets/{toaster-2NK3PogQ.js → toaster-CoMJoQvk.js} +1 -1
  109. package/web/dist/assets/use-desktop-BL6xT4Rz.js +1 -0
  110. package/web/dist/assets/use-hand-to-agent-state-CPhF3TRe.js +1 -0
  111. package/web/dist/assets/{useInfiniteQuery-C22IahAC.js → useInfiniteQuery-CYsKbsRE.js} +1 -1
  112. package/web/dist/assets/useQuery-DMywwX-_.js +1 -0
  113. package/web/dist/assets/workflows-CsCKM6GN.js +7 -0
  114. package/web/dist/assets/{ws-D9whCwIN.js → ws-DdguL17F.js} +1 -1
  115. package/web/dist/assets/{zoomable-image-D0zshpve.js → zoomable-image-C7mEDZaS.js} +1 -1
  116. package/web/dist/index.html +24 -25
  117. package/web/dist/live-worker.js +1 -1
  118. package/dist/server/launch-key.d.ts +0 -5
  119. package/dist/server/launch-key.js +0 -35
  120. package/dist/server/launch-key.js.map +0 -1
  121. package/web/dist/assets/activity-motion-CSe8gVgw.js +0 -2
  122. package/web/dist/assets/agent-accounts-BrFoXDpa.js +0 -18
  123. package/web/dist/assets/attention-BeBfNOUJ.js +0 -1
  124. package/web/dist/assets/button-Czdi8NqC.js +0 -3
  125. package/web/dist/assets/diff-DgAd6acp.js +0 -3
  126. package/web/dist/assets/git-toolbar-Db0h7gTI.js +0 -1
  127. package/web/dist/assets/index-De7eAZ5M.js +0 -17
  128. package/web/dist/assets/index-Dps0ABGp.css +0 -1
  129. package/web/dist/assets/input-Dilvz-YI.js +0 -1
  130. package/web/dist/assets/preview-pane-connected-CU_lEf11.js +0 -3
  131. package/web/dist/assets/project-router-ir-bfT5a.js +0 -1
  132. package/web/dist/assets/project-scope-context-BSdXJd3m.js +0 -4
  133. package/web/dist/assets/queries-BXo4WfX0.js +0 -1
  134. package/web/dist/assets/repo-git-BOfsABl4.js +0 -1
  135. package/web/dist/assets/reports-CWIvS-PA.js +0 -1
  136. package/web/dist/assets/run-header-CSEAFAfa.js +0 -2
  137. package/web/dist/assets/skills-jwrn7yXY.js +0 -1
  138. package/web/dist/assets/task-changes-EalDx6wh.js +0 -1
  139. package/web/dist/assets/task-commits-ZWjrQSnF.js +0 -1
  140. package/web/dist/assets/task-files-Cg-INsaD.js +0 -1
  141. package/web/dist/assets/task-github-item-B8yO5uo1.js +0 -1
  142. package/web/dist/assets/task-thread-Bs6ZnRXz.js +0 -9
  143. package/web/dist/assets/use-desktop-BYMCVpyw.js +0 -1
  144. package/web/dist/assets/use-hand-to-agent-state-Bhmmem1E.js +0 -1
  145. package/web/dist/assets/useQuery-C0rYnV6X.js +0 -1
  146. package/web/dist/assets/workflows-BRhGKY_0.js +0 -7
package/README.md CHANGED
@@ -404,8 +404,7 @@ Task and project views share one browser window and live updates over Server-Sen
404
404
 
405
405
  The cockpit is a React app served pre-built from the package — `npx -p @hearsay-tools/squawk hsq`
406
406
  still means no build step and no dev server on your machine — with a dark/light
407
- theme, a ⌘K command palette, and bookmarklets that launch a task straight from
408
- a GitHub page.
407
+ theme and a ⌘K command palette.
409
408
 
410
409
  GitHub issue and PR lists refresh every 60 seconds while mounted in a foreground browser tab.
411
410
  Automatic reads retain the server's 60-second cache: while online and visible, upstream edits
@@ -491,7 +490,7 @@ server stopped, and `HSQ_HOME` (`CEZ_HOME` fallback) selects which workspace the
491
490
 
492
491
  Settings split along the same line: **General** (the project's folder, its
493
492
  registry facts, its parallel-task ceiling, and Remove), **Agents**, **Agent config**,
494
- **Worktrees**, **Sidebar**, **Bookmarklets** and **Prompt templates** describe one
493
+ **Worktrees**, **Sidebar** and **Prompt templates** describe one
495
494
  repo and live under `/p/<projectId>/settings`; **Appearance**,
496
495
  **Notifications**, **Resources**, **Skills**, **Agent accounts** and **Projects**
497
496
  are yours or the machine's and live at `/settings/global`.
@@ -607,7 +606,7 @@ a queue or a routing rule. Removing one changes what you see and nothing else.
607
606
  **Old page URLs keep working.** Every unprefixed page path — `/`, `/tasks/<id>`,
608
607
  `/settings` — still answers, bound to the project Squawk was started in; the
609
608
  cockpit redirects flat paths to their `/p/<boot>/…` twin, so existing bookmarks
610
- and bookmarklets need no change. The HTTP API is the exception: it moved to
609
+ need no change. The HTTP API is the exception: it moved to
611
610
  `/api/v1/…` (see the CHANGELOG), so a script that calls it needs the extra
612
611
  segment.
613
612
 
@@ -1197,6 +1196,7 @@ Useful environment variables:
1197
1196
  | `HSQ_CLAUDE_SETTING_SOURCES`, `CEZ_CLAUDE_SETTING_SOURCES` | When set, Claude agent runs also pass `--setting-sources <value>` (e.g. `user,project,local`). Unset or empty omits the flag. Provider verification is never given this flag. |
1198
1197
  | `HSQ_ARCHIVE_ON_MERGE=1`, `CEZ_ARCHIVE_ON_MERGE=1` | Archive settled task families after all associated pull requests merge. Off by default; only `1` enables this environment default. Saved project settings override global Tasks settings, which override the environment. Runs in the background while the cockpit is open, including unopened projects, without starting agents. Unarchive preserves restored tasks until a later merge. |
1199
1198
  | `HSQ_AUTOMATIONS=0`, `CEZ_AUTOMATIONS=0` | Disable **automations** (GitHub polls and schedules). On by default; only the exact value `0` disables them. Unset, empty, `1` and other values keep them on. The Automations view and agent schedule tools are available by default. New automations start paused; each enabled automation launches an ordinary task per match or occurrence while Squawk is open. Schedules need no GitHub remote. With `0`, nothing polls or fires, automation endpoints answer `409`, and the nav item and schedule tools are hidden. Read at boot: restart after changing it. Existing enabled definitions resume after an upgrade unless you set `HSQ_AUTOMATIONS=0`, `CEZ_AUTOMATIONS=0` before restart. Definitions, receipts and high-watermarks are retained; unset the flag and restart to resume without migration. |
1199
+ | `HSQ_VOICE=1`, `CEZ_VOICE=1` | Turn on **voice mode** (experimental): the ⌘K palette understands a sentence such as “open the next finished task” or “answer yes”, and the server asks Jev (TypeSafe) to turn it into one action that the cockpit shows and runs. Needs `TYPESAFE_API_KEY` (read by the server only; `HSQ_DRY_RUN=1`, `CEZ_DRY_RUN=1` uses a fake engine instead). Off by default, and only the exact value `1` enables it — without it the voice endpoints answer `409` and the palette is unchanged. Read at boot, so restart after changing it. |
1200
1200
  | `HSQ_PREVIEW=1`, `CEZ_PREVIEW=1` | Turn on **live preview** (experimental): agents register a dev server with the `cezar_preview_serve` tool, and the cockpit opens it in a headless Chromium on the host, docked next to the task. Squawk first runs a registered command after you press Run and open. Agents can then use `cezar_preview_stop({ port, restart?: boolean })` to stop or restart their own Squawk-started server with that unchanged approval; changed command, cwd or path needs Run and open again. Adopted servers cannot be stopped by this tool. Each agent session also gets `HSQ_PREVIEW_CDP_URL`, `CEZ_PREVIEW_CDP_URL`, a cockpit address through which it drives the same browser (`agent-browser --cdp "$CEZ_PREVIEW_CDP_URL" --pin-tab …`) while you watch; Chromium itself opens no debug port. Off by default, and only the exact value `1` enables it — without it the tool is not listed, its route and the preview WebSocket refuse, and `capabilities.preview` is `false`. Read at boot, so restart after changing it. |
1201
1201
  | `HSQ_PREVIEW_NO_SANDBOX=1`, `CEZ_PREVIEW_NO_SANDBOX=1` | Launch the preview's Chromium with `--no-sandbox`. Off by default and never added automatically, not even for root or in a container; use it only where Chromium's sandbox cannot start, and only for pages you trust. Only the exact value `1` applies. Read at boot. |
1202
1202
  | `HSQ_AUTOSAVE=1`, `CEZ_AUTOSAVE=1` | Re-enable the periodic (90 s) autosave commit in task worktrees. Off by default (open-mercato/cezar#471) — turn-end and pre-PR flushes always run, so branches still end complete. Every autosave names its trigger in the commit subject (`cezar autosave (periodic)` vs `(turn end)` / `(run finalize)` / `(pre-PR)`), so the flushes you keep are distinguishable from the timer you disabled. The turn-end / run-finalize flushes and the timer commit only while HEAD is the task's own `cez/<id8>` branch; on a branch the agent checked out they leave the work uncommitted, and the closing flush says so in the handoff's Squawk records block, not its Progress log (hearsay-tools/cezarion#1004, hearsay-tools/cezarion#1809). A turn-end / run-finalize commit is reported there too, with its `git reset --soft` fold-back command, and the timer's commits share one line per run of consecutive periodic commits (count, first and latest sha), with no cockpit note. Draft-PR publish refuses while HEAD is not on the task branch and names both branches; its pre-PR flush commits only onto that branch (hearsay-tools/squawk#1110). |
@@ -248,10 +248,6 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
248
248
  }[];
249
249
  isError: boolean;
250
250
  details: {
251
- ok: false;
252
- code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
253
- message: string;
254
- } | {
255
251
  ok: true;
256
252
  task: {
257
253
  id: string;
@@ -263,6 +259,10 @@ export declare function invokeScheduleTaskTool(input: unknown): Promise<{
263
259
  url?: string | undefined;
264
260
  };
265
261
  note: string;
262
+ } | {
263
+ ok: false;
264
+ code: "automations_off" | "conflict" | "invalid_request" | "not_found" | "unavailable";
265
+ message: string;
266
266
  };
267
267
  }>;
268
268
  export declare function invokeScheduledTasksTool(input: unknown): Promise<{
@@ -31,6 +31,7 @@ export declare const capabilitiesSchema: z.ZodObject<{
31
31
  remoteSettingsAdmin: z.ZodBoolean;
32
32
  automations: z.ZodBoolean;
33
33
  preview: z.ZodBoolean;
34
+ voice: z.ZodBoolean;
34
35
  tokenMetrics: z.ZodBoolean;
35
36
  tokenUsageMetrics: z.ZodBoolean;
36
37
  costMetrics: z.ZodBoolean;
@@ -84,6 +85,7 @@ export declare const healthResponseSchema: z.ZodObject<{
84
85
  remoteSettingsAdmin: z.ZodBoolean;
85
86
  automations: z.ZodBoolean;
86
87
  preview: z.ZodBoolean;
88
+ voice: z.ZodBoolean;
87
89
  tokenMetrics: z.ZodBoolean;
88
90
  tokenUsageMetrics: z.ZodBoolean;
89
91
  costMetrics: z.ZodBoolean;
@@ -29,6 +29,7 @@ export * from './automation-schedule.ts';
29
29
  export * from './automations.ts';
30
30
  export * from './scheduled-tasks.ts';
31
31
  export * from './preview.ts';
32
+ export * from './voice.ts';
32
33
  export * from './conversations.ts';
33
34
  export * from './ci-wait.ts';
34
35
  export * from './waits.ts';