@hearsay-tools/squawk 0.18.0-pr3586.6470 → 0.18.0-pr3586.6473

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 (105) hide show
  1. package/README.md +0 -1
  2. package/dist/ci-wait/controller.d.ts +37 -37
  3. package/dist/contract/health.d.ts +0 -2
  4. package/dist/contract/index.d.ts +0 -1
  5. package/dist/contract/index.js +457 -591
  6. package/dist/data-gitignore.js +0 -1
  7. package/dist/data-gitignore.js.map +1 -1
  8. package/dist/delegation/routes.d.ts +11 -11
  9. package/dist/delegation/transport.d.ts +4 -4
  10. package/dist/server/capabilities.d.ts +0 -1
  11. package/dist/server/capabilities.js +0 -3
  12. package/dist/server/capabilities.js.map +1 -1
  13. package/dist/server/reports-api.d.ts +2 -2
  14. package/dist/server/server.d.ts +1580 -1775
  15. package/dist/server/server.js +1 -11
  16. package/dist/server/server.js.map +1 -1
  17. package/dist/workflows/continuation-admission.d.ts +72 -72
  18. package/dist/workflows/run/wait-engine.d.ts +72 -72
  19. package/package.json +4 -4
  20. package/web/dist/assets/activity-motion-Cd6HKRn5.js +2 -0
  21. package/web/dist/assets/{activity-route-Cq5GO6rp.js → activity-route-Dgjznc_j.js} +1 -1
  22. package/web/dist/assets/agent-accounts-WZgtbThS.js +18 -0
  23. package/web/dist/assets/attention-C_kiJ1bk.js +1 -0
  24. package/web/dist/assets/{cez-idle-xv7f96fc.js → cez-idle-TVRD1sce.js} +1 -1
  25. package/web/dist/assets/{commit-diff-panel-BInf9r-P.js → commit-diff-panel-Bsf9f2Cd.js} +1 -1
  26. package/web/dist/assets/{diff-BvCB85J2.js → diff-BB8od2CB.js} +2 -2
  27. package/web/dist/assets/{diff-view-Cnlbd7ej.js → diff-view-Bbf1guXZ.js} +4 -4
  28. package/web/dist/assets/{file-preview-EiGdhbDV.js → file-preview-DYaWK5Hi.js} +1 -1
  29. package/web/dist/assets/git-toolbar-CPxEOnk6.js +1 -0
  30. package/web/dist/assets/{github-DQe-Ussy.js → github-4ILuqTHS.js} +1 -1
  31. package/web/dist/assets/{global-activity-route-_1mbn6gk.js → global-activity-route-BaL40ikO.js} +1 -1
  32. package/web/dist/assets/index-BXr2mRSZ.js +17 -0
  33. package/web/dist/assets/index-Bv_JpzCB.css +1 -0
  34. package/web/dist/assets/{live-protocol-DjH6ZQwI.js → live-protocol-aMLJJ0MQ.js} +1 -1
  35. package/web/dist/assets/preview-pane-connected-CVIYmAKK.js +3 -0
  36. package/web/dist/assets/{project-router-iGGf0Wcy.js → project-router-_4jaKCY-.js} +1 -1
  37. package/web/dist/assets/project-scope-context-BwaC58sQ.js +4 -0
  38. package/web/dist/assets/{prompt-template-menu-D1AqFsnv.js → prompt-template-menu-Q6yvBBX2.js} +1 -1
  39. package/web/dist/assets/queries-jqgF_s0L.js +1 -0
  40. package/web/dist/assets/{reference-chip-uYFiC2FE.js → reference-chip-BFXq2y0V.js} +1 -1
  41. package/web/dist/assets/{repo-git-B_xucWJR.js → repo-git-BXcJkKGQ.js} +1 -1
  42. package/web/dist/assets/{report-reader-Csv7xOrn.js → report-reader-B2xFHTUH.js} +1 -1
  43. package/web/dist/assets/reports-JoaY6sCT.js +1 -0
  44. package/web/dist/assets/{run-header-C941_3eU.js → run-header-4CYT6aL6.js} +2 -2
  45. package/web/dist/assets/skills-C1zxbSly.js +1 -0
  46. package/web/dist/assets/{tab-link-dVF0beIK.js → tab-link-BmBr8sDS.js} +1 -1
  47. package/web/dist/assets/{task-changes-BaCA5Izd.js → task-changes-DDHU2MYs.js} +1 -1
  48. package/web/dist/assets/{task-commits-B4oZHsub.js → task-commits-ntmx-1wH.js} +1 -1
  49. package/web/dist/assets/{task-files-Bg_J255X.js → task-files-DlUIW3P5.js} +1 -1
  50. package/web/dist/assets/task-github-item-Qg7SGfny.js +1 -0
  51. package/web/dist/assets/task-thread-BKdI_JXT.js +9 -0
  52. package/web/dist/assets/{thread-state-DA5kehiy.js → thread-state-D8yAejJN.js} +1 -1
  53. package/web/dist/assets/use-desktop-DpH_9i2n.js +1 -0
  54. package/web/dist/assets/use-hand-to-agent-state-DSRe0E7u.js +1 -0
  55. package/web/dist/assets/{useInfiniteQuery-CYsKbsRE.js → useInfiniteQuery-BK0ElV__.js} +1 -1
  56. package/web/dist/assets/useQuery-Qq5WoH8B.js +1 -0
  57. package/web/dist/assets/{workflows-CsCKM6GN.js → workflows-CK12d25D.js} +2 -2
  58. package/web/dist/assets/{ws-DdguL17F.js → ws-CayNmoGi.js} +1 -1
  59. package/web/dist/index.html +15 -15
  60. package/web/dist/live-worker.js +1 -1
  61. package/dist/contract/voice.d.ts +0 -213
  62. package/dist/voice/decide.d.ts +0 -35
  63. package/dist/voice/decide.js +0 -329
  64. package/dist/voice/decide.js.map +0 -1
  65. package/dist/voice/decision-log.d.ts +0 -48
  66. package/dist/voice/decision-log.js +0 -117
  67. package/dist/voice/decision-log.js.map +0 -1
  68. package/dist/voice/engine.d.ts +0 -119
  69. package/dist/voice/engine.js +0 -61
  70. package/dist/voice/engine.js.map +0 -1
  71. package/dist/voice/fake-engine.d.ts +0 -10
  72. package/dist/voice/fake-engine.js +0 -192
  73. package/dist/voice/fake-engine.js.map +0 -1
  74. package/dist/voice/jev-engine.d.ts +0 -17
  75. package/dist/voice/jev-engine.js +0 -110
  76. package/dist/voice/jev-engine.js.map +0 -1
  77. package/dist/voice/pending-ask.d.ts +0 -17
  78. package/dist/voice/pending-ask.js +0 -51
  79. package/dist/voice/pending-ask.js.map +0 -1
  80. package/dist/voice/routes.d.ts +0 -115
  81. package/dist/voice/routes.js +0 -92
  82. package/dist/voice/routes.js.map +0 -1
  83. package/dist/voice/sentence.d.ts +0 -21
  84. package/dist/voice/sentence.js +0 -61
  85. package/dist/voice/sentence.js.map +0 -1
  86. package/dist/voice/thresholds.d.ts +0 -28
  87. package/dist/voice/thresholds.js +0 -29
  88. package/dist/voice/thresholds.js.map +0 -1
  89. package/scripts/voice-replay.ts +0 -50
  90. package/web/dist/assets/activity-motion-CbA_TAx4.js +0 -2
  91. package/web/dist/assets/agent-accounts-Cof8AiVl.js +0 -18
  92. package/web/dist/assets/attention-BjWQsJVw.js +0 -1
  93. package/web/dist/assets/git-toolbar-D6W3lamH.js +0 -1
  94. package/web/dist/assets/index-Cs-8u_FQ.js +0 -17
  95. package/web/dist/assets/index-WLruDkjz.css +0 -1
  96. package/web/dist/assets/preview-pane-connected-DgZ5q0xy.js +0 -3
  97. package/web/dist/assets/project-scope-context-DK2mtfmt.js +0 -4
  98. package/web/dist/assets/queries-CMLTX79n.js +0 -1
  99. package/web/dist/assets/reports-BVp32fGs.js +0 -1
  100. package/web/dist/assets/skills-PpSAbEYS.js +0 -1
  101. package/web/dist/assets/task-github-item-DyBh5-Q_.js +0 -1
  102. package/web/dist/assets/task-thread-D6wp7G61.js +0 -9
  103. package/web/dist/assets/use-desktop-BL6xT4Rz.js +0 -1
  104. package/web/dist/assets/use-hand-to-agent-state-CPhF3TRe.js +0 -1
  105. package/web/dist/assets/useQuery-DMywwX-_.js +0 -1
package/README.md CHANGED
@@ -1196,7 +1196,6 @@ Useful environment variables:
1196
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. |
1197
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. |
1198
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
1199
  | `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
1200
  | `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
1201
  | `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). |
@@ -280,11 +280,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
280
280
  "/api/v1/tools/ask": {
281
281
  $post: {
282
282
  output: {
283
- code: 'capability_revoked';
283
+ ok: false;
284
+ code: 'unavailable';
284
285
  message: string;
285
286
  };
286
287
  outputFormat: "json";
287
- status: 401;
288
+ status: import("hono/utils/http-status").ContentfulStatusCode;
288
289
  input: {
289
290
  json: {
290
291
  questions: {
@@ -302,12 +303,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
302
303
  };
303
304
  } | {
304
305
  output: {
305
- ok: false;
306
- code: 'unavailable';
306
+ code: 'capability_revoked';
307
307
  message: string;
308
308
  };
309
309
  outputFormat: "json";
310
- status: import("hono/utils/http-status").ContentfulStatusCode;
310
+ status: 401;
311
311
  input: {
312
312
  json: {
313
313
  questions: {
@@ -375,11 +375,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
375
375
  "/api/v1/tools/cancel-wait": {
376
376
  $post: {
377
377
  output: {
378
- code: 'capability_revoked';
378
+ cancelled: false;
379
+ code: 'unavailable';
379
380
  message: string;
380
381
  };
381
382
  outputFormat: "json";
382
- status: 401;
383
+ status: import("hono/utils/http-status").ContentfulStatusCode;
383
384
  input: {
384
385
  json: {
385
386
  wait_id: string;
@@ -387,12 +388,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
387
388
  };
388
389
  } | {
389
390
  output: {
390
- cancelled: false;
391
- code: 'unavailable';
391
+ code: 'capability_revoked';
392
392
  message: string;
393
393
  };
394
394
  outputFormat: "json";
395
- status: import("hono/utils/http-status").ContentfulStatusCode;
395
+ status: 401;
396
396
  input: {
397
397
  json: {
398
398
  wait_id: string;
@@ -440,11 +440,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
440
440
  "/api/v1/tools/done": {
441
441
  $post: {
442
442
  output: {
443
- code: 'capability_revoked';
443
+ ok: false;
444
+ code: 'unavailable';
444
445
  message: string;
445
446
  };
446
447
  outputFormat: "json";
447
- status: 401;
448
+ status: import("hono/utils/http-status").ContentfulStatusCode;
448
449
  input: {
449
450
  json: {
450
451
  summary?: string | undefined;
@@ -452,12 +453,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
452
453
  };
453
454
  } | {
454
455
  output: {
455
- ok: false;
456
- code: 'unavailable';
456
+ code: 'capability_revoked';
457
457
  message: string;
458
458
  };
459
459
  outputFormat: "json";
460
- status: import("hono/utils/http-status").ContentfulStatusCode;
460
+ status: 401;
461
461
  input: {
462
462
  json: {
463
463
  summary?: string | undefined;
@@ -525,11 +525,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
525
525
  "/api/v1/tools/preview-stop": {
526
526
  $post: {
527
527
  output: {
528
- code: 'capability_revoked';
528
+ ok: boolean;
529
+ code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
529
530
  message: string;
531
+ hint: string;
530
532
  };
531
533
  outputFormat: "json";
532
- status: 401;
534
+ status: import("hono/utils/http-status").ContentfulStatusCode;
533
535
  input: {
534
536
  json: {
535
537
  port: number;
@@ -538,13 +540,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
538
540
  };
539
541
  } | {
540
542
  output: {
541
- ok: boolean;
542
- code: "adopted" | "approval_required" | "headless" | "invalid_input" | "not_registered" | "port_held" | "port_in_use" | "preview_disabled" | "restarted" | "stopped" | "unavailable" | "worktree_missing";
543
+ code: 'capability_revoked';
543
544
  message: string;
544
- hint: string;
545
545
  };
546
546
  outputFormat: "json";
547
- status: import("hono/utils/http-status").ContentfulStatusCode;
547
+ status: 401;
548
548
  input: {
549
549
  json: {
550
550
  port: number;
@@ -557,11 +557,13 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
557
557
  "/api/v1/tools/preview-serve": {
558
558
  $post: {
559
559
  output: {
560
- code: 'capability_revoked';
560
+ ok: boolean;
561
+ code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
561
562
  message: string;
563
+ hint: string;
562
564
  };
563
565
  outputFormat: "json";
564
- status: 401;
566
+ status: import("hono/utils/http-status").ContentfulStatusCode;
565
567
  input: {
566
568
  json: {
567
569
  command: string;
@@ -573,13 +575,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
573
575
  };
574
576
  } | {
575
577
  output: {
576
- ok: boolean;
577
- code: "cezar_port" | "cwd_outside_worktree" | "headless" | "invalid_input" | "port_held" | "preview_disabled" | "registered" | "replaced" | "too_many" | "unavailable" | "worktree_missing";
578
+ code: 'capability_revoked';
578
579
  message: string;
579
- hint: string;
580
580
  };
581
581
  outputFormat: "json";
582
- status: import("hono/utils/http-status").ContentfulStatusCode;
582
+ status: 401;
583
583
  input: {
584
584
  json: {
585
585
  command: string;
@@ -595,11 +595,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
595
595
  "/api/v1/tools/schedule-task": {
596
596
  $post: {
597
597
  output: {
598
- code: 'capability_revoked';
598
+ ok: false;
599
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
599
600
  message: string;
600
601
  };
601
602
  outputFormat: "json";
602
- status: 401;
603
+ status: import("hono/utils/http-status").ContentfulStatusCode;
603
604
  input: {
604
605
  json: {
605
606
  at?: string | undefined;
@@ -616,12 +617,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
616
617
  };
617
618
  } | {
618
619
  output: {
619
- ok: false;
620
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
620
+ code: 'capability_revoked';
621
621
  message: string;
622
622
  };
623
623
  outputFormat: "json";
624
- status: import("hono/utils/http-status").ContentfulStatusCode;
624
+ status: 401;
625
625
  input: {
626
626
  json: {
627
627
  at?: string | undefined;
@@ -676,11 +676,12 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
676
676
  "/api/v1/tools/scheduled-tasks": {
677
677
  $post: {
678
678
  output: {
679
- code: 'capability_revoked';
679
+ ok: false;
680
+ code: import('../contract/index.js').ScheduledTaskRefusalCode;
680
681
  message: string;
681
682
  };
682
683
  outputFormat: "json";
683
- status: 401;
684
+ status: import("hono/utils/http-status").ContentfulStatusCode;
684
685
  input: {
685
686
  json: {
686
687
  at?: string | undefined;
@@ -713,12 +714,11 @@ export declare function ciToolRoutes(capabilities: Map<string, Capability>): imp
713
714
  };
714
715
  } | {
715
716
  output: {
716
- ok: false;
717
- code: import('../contract/index.js').ScheduledTaskRefusalCode;
717
+ code: 'capability_revoked';
718
718
  message: string;
719
719
  };
720
720
  outputFormat: "json";
721
- status: import("hono/utils/http-status").ContentfulStatusCode;
721
+ status: 401;
722
722
  input: {
723
723
  json: {
724
724
  at?: string | undefined;
@@ -31,7 +31,6 @@ 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;
35
34
  tokenMetrics: z.ZodBoolean;
36
35
  tokenUsageMetrics: z.ZodBoolean;
37
36
  costMetrics: z.ZodBoolean;
@@ -84,7 +83,6 @@ export declare const healthResponseSchema: z.ZodObject<{
84
83
  remoteSettingsAdmin: z.ZodBoolean;
85
84
  automations: z.ZodBoolean;
86
85
  preview: z.ZodBoolean;
87
- voice: z.ZodBoolean;
88
86
  tokenMetrics: z.ZodBoolean;
89
87
  tokenUsageMetrics: z.ZodBoolean;
90
88
  costMetrics: z.ZodBoolean;
@@ -29,7 +29,6 @@ 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';
33
32
  export * from './conversations.ts';
34
33
  export * from './ci-wait.ts';
35
34
  export * from './waits.ts';