@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
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  /**
3
3
  * The project-registry family: `GET/POST/PATCH/DELETE /api/v1/projects`, the folder picker
4
- * (`GET /api/v1/fs/browse`) that feeds it, and the launch-key read.
4
+ * (`GET /api/v1/fs/browse`) that feeds it.
5
5
  *
6
6
  * Node-free by construction (see README rule 1) — `zod` and nothing else.
7
7
  */
@@ -684,14 +684,6 @@ export declare const fsBrowseResponseSchema: z.ZodObject<{
684
684
  truncated: z.ZodBoolean;
685
685
  }, z.core.$strip>;
686
686
  export type FsBrowseResponse = z.infer<typeof fsBrowseResponseSchema>;
687
- /** `GET /api/v1/launch-key` — the bookmarklet auto-start secret (spec 011). Fetched to COMPARE
688
- * against the `?key=` query param and to bake into the `javascript:` links the Settings → Skills
689
- * bookmarklet panel generates. The value never renders as text, never logs, and never goes back
690
- * into the address bar. */
691
- export declare const launchKeyResponseSchema: z.ZodObject<{
692
- key: z.ZodString;
693
- }, z.core.$strip>;
694
- export type LaunchKeyResponse = z.infer<typeof launchKeyResponseSchema>;
695
687
  export declare const checkoutProgressParamsSchema: z.ZodObject<{
696
688
  checkoutId: z.ZodString;
697
689
  }, z.core.$strip>;
@@ -0,0 +1,213 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Voice mode v1 (spec 2026-10-21-voice-mode): the ⌘K palette understands sentences. The server
4
+ * asks Jev (TypeSafe) to turn one sentence into one decision; the cockpit executes it. Everything
5
+ * here is Node-free; the server and the cockpit read the same definitions.
6
+ */
7
+ /** Longest sentence the palette sends, after trimming. */
8
+ export declare const VOICE_TEXT_MAX = 500;
9
+ /** The sidebar statuses a sentence may name, in the vocabulary the cockpit already shows. */
10
+ export declare const VOICE_STATUS_IDS: readonly ['needs-you', 'working', 'finished', 'archived', 'needs-review', 'needs-permission', 'failed', 'running', 'waiting-for-ci', 'monitoring', 'waiting-for-capacity', 'queued', 'scheduled', 'waiting-on-workers', 'done', 'cancelled', 'unread'];
11
+ export declare const voiceStatusSchema: z.ZodEnum<{
12
+ archived: "archived";
13
+ cancelled: "cancelled";
14
+ done: "done";
15
+ failed: "failed";
16
+ finished: "finished";
17
+ monitoring: "monitoring";
18
+ "needs-permission": "needs-permission";
19
+ "needs-review": "needs-review";
20
+ "needs-you": "needs-you";
21
+ queued: "queued";
22
+ running: "running";
23
+ scheduled: "scheduled";
24
+ unread: "unread";
25
+ "waiting-for-capacity": "waiting-for-capacity";
26
+ "waiting-for-ci": "waiting-for-ci";
27
+ "waiting-on-workers": "waiting-on-workers";
28
+ working: "working";
29
+ }>;
30
+ export type VoiceStatus = z.infer<typeof voiceStatusSchema>;
31
+ /** One plain line per status, written for the engine that picks one. */
32
+ export declare const VOICE_STATUS_DESCRIPTIONS: Record<VoiceStatus, string>;
33
+ /** Which task in the list a sentence points at. */
34
+ export declare const voicePositionSchema: z.ZodUnion<readonly [z.ZodEnum<{
35
+ last: "last";
36
+ next: "next";
37
+ previous: "previous";
38
+ }>, z.ZodNumber]>;
39
+ export type VoicePosition = z.infer<typeof voicePositionSchema>;
40
+ export declare const voiceSidebarViewSchema: z.ZodEnum<{
41
+ active: "active";
42
+ automations: "automations";
43
+ }>;
44
+ /** The kind of page the user is on when they speak (hearsay-tools/cezarion#1463). */
45
+ export declare const VOICE_VIEWS: readonly ['task', 'new-task', 'github', 'git', 'automations', 'inbox', 'settings', 'other'];
46
+ export declare const voiceViewSchema: z.ZodEnum<{
47
+ automations: "automations";
48
+ git: "git";
49
+ github: "github";
50
+ inbox: "inbox";
51
+ "new-task": "new-task";
52
+ other: "other";
53
+ settings: "settings";
54
+ task: "task";
55
+ }>;
56
+ export type VoiceView = z.infer<typeof voiceViewSchema>;
57
+ export declare const voiceDecideRequestSchema: z.ZodObject<{
58
+ text: z.ZodString;
59
+ sidebarView: z.ZodEnum<{
60
+ active: "active";
61
+ automations: "automations";
62
+ }>;
63
+ openRunId: z.ZodOptional<z.ZodString>;
64
+ view: z.ZodOptional<z.ZodEnum<{
65
+ automations: "automations";
66
+ git: "git";
67
+ github: "github";
68
+ inbox: "inbox";
69
+ "new-task": "new-task";
70
+ other: "other";
71
+ settings: "settings";
72
+ task: "task";
73
+ }>>;
74
+ askRequestId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
+ proposal: z.ZodOptional<z.ZodObject<{
76
+ decisionId: z.ZodUUID;
77
+ action: z.ZodEnum<{
78
+ answer: "answer";
79
+ tell: "tell";
80
+ }>;
81
+ }, z.core.$strict>>;
82
+ }, z.core.$strict>;
83
+ export type VoiceDecideRequest = z.infer<typeof voiceDecideRequestSchema>;
84
+ /** One answer to one question of an ask: a listed option, or free text. */
85
+ export declare const voiceAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
86
+ question: z.ZodNumber;
87
+ kind: z.ZodLiteral<"option">;
88
+ labels: z.ZodArray<z.ZodString>;
89
+ }, z.core.$strip>, z.ZodObject<{
90
+ question: z.ZodNumber;
91
+ kind: z.ZodLiteral<"other">;
92
+ text: z.ZodString;
93
+ }, z.core.$strip>], "kind">;
94
+ export type VoiceAnswer = z.infer<typeof voiceAnswerSchema>;
95
+ export declare const voiceDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
96
+ action: z.ZodLiteral<"open">;
97
+ decisionId: z.ZodUUID;
98
+ status: z.ZodEnum<{
99
+ archived: "archived";
100
+ cancelled: "cancelled";
101
+ done: "done";
102
+ failed: "failed";
103
+ finished: "finished";
104
+ monitoring: "monitoring";
105
+ "needs-permission": "needs-permission";
106
+ "needs-review": "needs-review";
107
+ "needs-you": "needs-you";
108
+ queued: "queued";
109
+ running: "running";
110
+ scheduled: "scheduled";
111
+ unread: "unread";
112
+ "waiting-for-capacity": "waiting-for-capacity";
113
+ "waiting-for-ci": "waiting-for-ci";
114
+ "waiting-on-workers": "waiting-on-workers";
115
+ working: "working";
116
+ }>;
117
+ position: z.ZodUnion<readonly [z.ZodEnum<{
118
+ last: "last";
119
+ next: "next";
120
+ previous: "previous";
121
+ }>, z.ZodNumber]>;
122
+ confidence: z.ZodNumber;
123
+ alternatives: z.ZodOptional<z.ZodArray<z.ZodObject<{
124
+ status: z.ZodEnum<{
125
+ archived: "archived";
126
+ cancelled: "cancelled";
127
+ done: "done";
128
+ failed: "failed";
129
+ finished: "finished";
130
+ monitoring: "monitoring";
131
+ "needs-permission": "needs-permission";
132
+ "needs-review": "needs-review";
133
+ "needs-you": "needs-you";
134
+ queued: "queued";
135
+ running: "running";
136
+ scheduled: "scheduled";
137
+ unread: "unread";
138
+ "waiting-for-capacity": "waiting-for-capacity";
139
+ "waiting-for-ci": "waiting-for-ci";
140
+ "waiting-on-workers": "waiting-on-workers";
141
+ working: "working";
142
+ }>;
143
+ position: z.ZodUnion<readonly [z.ZodEnum<{
144
+ last: "last";
145
+ next: "next";
146
+ previous: "previous";
147
+ }>, z.ZodNumber]>;
148
+ }, z.core.$strip>>>;
149
+ }, z.core.$strip>, z.ZodObject<{
150
+ action: z.ZodLiteral<"answer">;
151
+ decisionId: z.ZodUUID;
152
+ runId: z.ZodString;
153
+ askRequestId: z.ZodString;
154
+ answers: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
155
+ question: z.ZodNumber;
156
+ kind: z.ZodLiteral<"option">;
157
+ labels: z.ZodArray<z.ZodString>;
158
+ }, z.core.$strip>, z.ZodObject<{
159
+ question: z.ZodNumber;
160
+ kind: z.ZodLiteral<"other">;
161
+ text: z.ZodString;
162
+ }, z.core.$strip>], "kind">>;
163
+ confidence: z.ZodNumber;
164
+ }, z.core.$strip>, z.ZodObject<{
165
+ action: z.ZodLiteral<"tell">;
166
+ decisionId: z.ZodUUID;
167
+ runId: z.ZodString;
168
+ text: z.ZodString;
169
+ confidence: z.ZodNumber;
170
+ }, z.core.$strip>, z.ZodObject<{
171
+ action: z.ZodLiteral<"confirm">;
172
+ decisionId: z.ZodUUID;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ action: z.ZodLiteral<"cancel">;
175
+ decisionId: z.ZodUUID;
176
+ }, z.core.$strip>, z.ZodObject<{
177
+ action: z.ZodLiteral<"none">;
178
+ decisionId: z.ZodUUID;
179
+ reason: z.ZodEnum<{
180
+ ambiguous: "ambiguous";
181
+ "no-open-question": "no-open-question";
182
+ "no-open-task": "no-open-task";
183
+ "not-a-command": "not-a-command";
184
+ "stale-context": "stale-context";
185
+ unclear: "unclear";
186
+ unsupported: "unsupported";
187
+ }>;
188
+ }, z.core.$strip>], "action">;
189
+ export type VoiceDecision = z.infer<typeof voiceDecisionSchema>;
190
+ /** What became of a decision, reported back so the server can learn which ones were wrong. */
191
+ export declare const voiceOutcomeSchema: z.ZodEnum<{
192
+ abandoned: "abandoned";
193
+ cancelled: "cancelled";
194
+ confirmed: "confirmed";
195
+ executed: "executed";
196
+ replaced: "replaced";
197
+ }>;
198
+ export type VoiceOutcome = z.infer<typeof voiceOutcomeSchema>;
199
+ export declare const voiceOutcomeRequestSchema: z.ZodObject<{
200
+ decisionId: z.ZodUUID;
201
+ outcome: z.ZodEnum<{
202
+ abandoned: "abandoned";
203
+ cancelled: "cancelled";
204
+ confirmed: "confirmed";
205
+ executed: "executed";
206
+ replaced: "replaced";
207
+ }>;
208
+ }, z.core.$strict>;
209
+ export type VoiceOutcomeRequest = z.infer<typeof voiceOutcomeRequestSchema>;
210
+ export declare const voiceOutcomeResponseSchema: z.ZodObject<{
211
+ ok: z.ZodLiteral<true>;
212
+ }, z.core.$strip>;
213
+ export type VoiceOutcomeResponse = z.infer<typeof voiceOutcomeResponseSchema>;
@@ -28,7 +28,6 @@ export function ensureDataGitignore(repoRoot) {
28
28
  't/', // per-run agent TMPDIRs, short enough for Chromium's socket (hearsay-tools/cezarion#1022)
29
29
  'todos.json',
30
30
  'todos.json.tmp',
31
- 'launch-key',
32
31
  'cockpit.lock*',
33
32
  'automations.json',
34
33
  'automations.json.tmp',
@@ -43,6 +42,7 @@ export function ensureDataGitignore(repoRoot) {
43
42
  'automation-poll.lock',
44
43
  'automation-poll.reclaim*/',
45
44
  'preview/', // live preview: per-task Chromium profile, dev-server logs and pid records (#781)
45
+ 'voice/', // voice mode: the local decision log (spec 2026-10-21-voice-mode)
46
46
  'automations.lock',
47
47
  'automations.reclaim*/',
48
48
  'automation-state.lock',
@@ -1 +1 @@
1
- {"version":3,"file":"data-gitignore.js","sourceRoot":"","sources":["../src/data-gitignore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAA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,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QACxE,MAAM,MAAM,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;QAC9E,MAAM,WAAW,GAAG,CAAC,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC,EAAE,4BAA4B,EAAE,6BAA6B,CAAC,CAAC;QACtK,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9E,IAAI,MAAM,CAAC,MAAM;YAAE,aAAa,CAAC,UAAU,EAAE,GAAG,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IACzI,CAAC;IAAC,MAAM,CAAC;QACP,YAAY;IACd,CAAC;AACH,CAAC"}
@@ -27,6 +27,18 @@ export declare function delegationFailure(error: unknown): {
27
27
  export declare function createDelegationRoutes(service: DelegationService, credentials: CredentialRegistry): import("hono/hono-base").HonoBase<Env, {
28
28
  "/list": {
29
29
  $get: {
30
+ output: {
31
+ error: string;
32
+ code?: "invalid_input" | undefined;
33
+ };
34
+ outputFormat: "json";
35
+ status: 400;
36
+ input: {
37
+ query: {
38
+ offset?: string | undefined;
39
+ };
40
+ };
41
+ } | {
30
42
  output: {
31
43
  workers: {
32
44
  workerId: string;
@@ -64,35 +76,12 @@ export declare function createDelegationRoutes(service: DelegationService, crede
64
76
  offset?: string | undefined;
65
77
  };
66
78
  };
67
- } | {
68
- output: {
69
- error: string;
70
- code?: "invalid_input" | undefined;
71
- };
72
- outputFormat: "json";
73
- status: 400;
74
- input: {
75
- query: {
76
- offset?: string | undefined;
77
- };
78
- };
79
79
  };
80
80
  };
81
81
  } & {
82
82
  "/discover": {
83
83
  $post: {
84
84
  output: {
85
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
86
- models: {
87
- id: string;
88
- label: string;
89
- description: string;
90
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
91
- }[];
92
- source: "cache" | "live" | "unavailable";
93
- stale: boolean;
94
- reason?: string | undefined;
95
- } | {
96
85
  scope: "host-default-account";
97
86
  runners: {
98
87
  status: "connected" | "disconnected" | "not-installed" | "unknown";
@@ -113,6 +102,17 @@ export declare function createDelegationRoutes(service: DelegationService, crede
113
102
  reason?: string | undefined;
114
103
  }[];
115
104
  nextOffset?: number | undefined;
105
+ } | {
106
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
107
+ models: {
108
+ id: string;
109
+ label: string;
110
+ description: string;
111
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
112
+ }[];
113
+ source: "cache" | "live" | "unavailable";
114
+ stale: boolean;
115
+ reason?: string | undefined;
116
116
  };
117
117
  outputFormat: "json";
118
118
  status: 200;
@@ -613,6 +613,18 @@ export declare function createDelegationRoutes(service: DelegationService, crede
613
613
  } & {
614
614
  "/:workerId": {
615
615
  $get: {
616
+ output: {
617
+ error: string;
618
+ code?: "invalid_input" | undefined;
619
+ };
620
+ outputFormat: "json";
621
+ status: 400;
622
+ input: {
623
+ param: {
624
+ workerId: string;
625
+ };
626
+ };
627
+ } | {
616
628
  output: {
617
629
  workerId: string;
618
630
  parentRunId: string;
@@ -716,7 +728,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
716
728
  workerId: string;
717
729
  };
718
730
  };
719
- } | {
731
+ };
732
+ };
733
+ } & {
734
+ "/:workerId/collect": {
735
+ $post: {
720
736
  output: {
721
737
  error: string;
722
738
  code?: "invalid_input" | undefined;
@@ -727,12 +743,10 @@ export declare function createDelegationRoutes(service: DelegationService, crede
727
743
  param: {
728
744
  workerId: string;
729
745
  };
746
+ } & {
747
+ json: Record<string, never>;
730
748
  };
731
- };
732
- };
733
- } & {
734
- "/:workerId/collect": {
735
- $post: {
749
+ } | {
736
750
  output: {
737
751
  workerId: string;
738
752
  parentRunId: string;
@@ -834,7 +848,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
834
848
  } & {
835
849
  json: Record<string, never>;
836
850
  };
837
- } | {
851
+ };
852
+ };
853
+ } & {
854
+ "/:workerId/steer": {
855
+ $post: {
838
856
  output: {
839
857
  error: string;
840
858
  code?: "invalid_input" | undefined;
@@ -846,13 +864,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
846
864
  workerId: string;
847
865
  };
848
866
  } & {
849
- json: Record<string, never>;
867
+ json: {
868
+ text: string;
869
+ };
850
870
  };
851
- };
852
- };
853
- } & {
854
- "/:workerId/steer": {
855
- $post: {
871
+ } | {
856
872
  output: {
857
873
  workerId: string;
858
874
  state: "delivered" | "queued";
@@ -868,7 +884,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
868
884
  text: string;
869
885
  };
870
886
  };
871
- } | {
887
+ };
888
+ };
889
+ } & {
890
+ "/:workerId/stop": {
891
+ $post: {
872
892
  output: {
873
893
  error: string;
874
894
  code?: "invalid_input" | undefined;
@@ -880,15 +900,9 @@ export declare function createDelegationRoutes(service: DelegationService, crede
880
900
  workerId: string;
881
901
  };
882
902
  } & {
883
- json: {
884
- text: string;
885
- };
903
+ json: Record<string, never>;
886
904
  };
887
- };
888
- };
889
- } & {
890
- "/:workerId/stop": {
891
- $post: {
905
+ } | {
892
906
  output: {
893
907
  workerId: string;
894
908
  state: "stopping" | "terminated";
@@ -902,7 +916,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
902
916
  } & {
903
917
  json: Record<string, never>;
904
918
  };
905
- } | {
919
+ };
920
+ };
921
+ } & {
922
+ "/:workerId/destroy": {
923
+ $post: {
906
924
  output: {
907
925
  error: string;
908
926
  code?: "invalid_input" | undefined;
@@ -916,11 +934,7 @@ export declare function createDelegationRoutes(service: DelegationService, crede
916
934
  } & {
917
935
  json: Record<string, never>;
918
936
  };
919
- };
920
- };
921
- } & {
922
- "/:workerId/destroy": {
923
- $post: {
937
+ } | {
924
938
  output: {
925
939
  workerId: string;
926
940
  state: "complete" | "incomplete";
@@ -943,20 +957,6 @@ export declare function createDelegationRoutes(service: DelegationService, crede
943
957
  } & {
944
958
  json: Record<string, never>;
945
959
  };
946
- } | {
947
- output: {
948
- error: string;
949
- code?: "invalid_input" | undefined;
950
- };
951
- outputFormat: "json";
952
- status: 400;
953
- input: {
954
- param: {
955
- workerId: string;
956
- };
957
- } & {
958
- json: Record<string, never>;
959
- };
960
960
  } | {
961
961
  output: {
962
962
  workerId: string;
@@ -986,13 +986,11 @@ export declare function createDelegationRoutes(service: DelegationService, crede
986
986
  "/:workerId/diff": {
987
987
  $get: {
988
988
  output: {
989
- workerId: string;
990
- baselineSha: string;
991
- diff: string;
992
- truncated: boolean;
989
+ error: string;
990
+ code?: "invalid_input" | undefined;
993
991
  };
994
992
  outputFormat: "json";
995
- status: 200;
993
+ status: 400;
996
994
  input: {
997
995
  param: {
998
996
  workerId: string;
@@ -1000,11 +998,13 @@ export declare function createDelegationRoutes(service: DelegationService, crede
1000
998
  };
1001
999
  } | {
1002
1000
  output: {
1003
- error: string;
1004
- code?: "invalid_input" | undefined;
1001
+ workerId: string;
1002
+ baselineSha: string;
1003
+ diff: string;
1004
+ truncated: boolean;
1005
1005
  };
1006
1006
  outputFormat: "json";
1007
- status: 400;
1007
+ status: 200;
1008
1008
  input: {
1009
1009
  param: {
1010
1010
  workerId: string;
@@ -196,13 +196,13 @@ export declare function createDelegationApp(routes: DelegationRoutes): import("h
196
196
  status: 200;
197
197
  input: {
198
198
  json: {
199
- workerIds: string[];
200
- timeoutSeconds?: number | undefined;
201
- mode?: "all" | "any" | "one" | undefined;
202
- } | {
203
199
  requestIds: string[];
204
200
  mode?: "all" | "any" | "one" | undefined;
205
201
  timeoutSeconds?: number | undefined;
202
+ } | {
203
+ workerIds: string[];
204
+ timeoutSeconds?: number | undefined;
205
+ mode?: "all" | "any" | "one" | undefined;
206
206
  } | {
207
207
  peerIds: string[];
208
208
  timeoutSeconds?: number | undefined;
@@ -59,6 +59,29 @@ export declare function ciProgressPlugs(demand: ActivityDemand): {
59
59
  export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, {
60
60
  "/workspace/activity": {
61
61
  $get: {
62
+ output: {
63
+ error: string;
64
+ code?: "invalid_input" | undefined;
65
+ };
66
+ outputFormat: "json";
67
+ status: 400;
68
+ input: {
69
+ query: {
70
+ project?: string | undefined;
71
+ };
72
+ };
73
+ } | {
74
+ output: {
75
+ error: string;
76
+ };
77
+ outputFormat: "json";
78
+ status: 404 | 409 | 503;
79
+ input: {
80
+ query: {
81
+ project?: string | undefined;
82
+ };
83
+ };
84
+ } | {
62
85
  output: {
63
86
  generatedAt: string;
64
87
  projects: {
@@ -289,29 +312,6 @@ export declare function createActivityRoutes(routeDeps: ActivityRouteDeps): impo
289
312
  project?: string | undefined;
290
313
  };
291
314
  };
292
- } | {
293
- output: {
294
- error: string;
295
- code?: "invalid_input" | undefined;
296
- };
297
- outputFormat: "json";
298
- status: 400;
299
- input: {
300
- query: {
301
- project?: string | undefined;
302
- };
303
- };
304
- } | {
305
- output: {
306
- error: string;
307
- };
308
- outputFormat: "json";
309
- status: 404 | 409 | 503;
310
- input: {
311
- query: {
312
- project?: string | undefined;
313
- };
314
- };
315
315
  };
316
316
  };
317
317
  }, "/", "/workspace/activity">;
@@ -55,6 +55,7 @@ export declare function isLoopbackHostHeader(host: string | null | undefined): b
55
55
  /** `CEZ_REMOTE=1` or a non-loopback bind host ⇒ hosted mode (no local handoff).
56
56
  * `CEZ_AUTOMATIONS=0` ⇒ automations are disabled.
57
57
  * `CEZ_PREVIEW=1` ⇒ live preview exists (#781); same boot-time-flag caveat as `automations`.
58
+ * `CEZ_VOICE=1` plus `TYPESAFE_API_KEY` (or `CEZ_DRY_RUN=1`) ⇒ voice mode exists; same caveat.
58
59
  *
59
60
  * Read per request. The automations flag is a boot-time setting: the workspace scheduler is
60
61
  * started once, on the server's `listening` event, so flipping the flag on afterwards gates
@@ -100,6 +100,9 @@ export function resolveCapabilities(env = process.env, bindHost, port, home) {
100
100
  remoteSettingsAdmin,
101
101
  automations: automationsEnabled(env),
102
102
  preview: productEnv('PREVIEW', env) === '1',
103
+ // Boot-time flag, like `automations`. The key is read here only as present or absent; the
104
+ // fake engine under CEZ_DRY_RUN needs none.
105
+ voice: productEnv('VOICE', env) === '1' && (!!env.TYPESAFE_API_KEY || productEnv('DRY_RUN', env) === '1'),
103
106
  tokenMetrics: tokenUsageMetrics && costMetrics,
104
107
  tokenUsageMetrics,
105
108
  costMetrics,
@@ -1 +1 @@
1
- {"version":3,"file":"capabilities.js","sourceRoot":"","sources":["../../src/server/capabilities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAqC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD;;;0CAG0C;AAC1C,MAAM,WAAW,GAAG,4CAA4C,CAAC;AAEjE,kEAAkE;AAClE,MAAM,WAAW,GAAG,iBAAiB,CAAC;AAEtC;;;;;;YAMY;AACZ,SAAS,UAAU,CAAC,CAAS;IAC3B,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,IAAI,MAAM,CAAC,MAAM,GAAG,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AG;QAC3C,0FAA0F;QAC1F,4CAA4C;QAC5C,KAAK,EAAE,UAAU,CAAC,OAAO,EAAE,GAAG,CAAC,KAAK,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,gBAAgB,IAAI,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,KAAK,GAAG,CAAC;QACzG,YAAY,EAAE,iBAAiB,IAAI,WAAW;QAC9C,iBAAiB;QACjB,WAAW;KACZ,CAAC;AACJ,CAAC"}
@@ -24,4 +24,4 @@ export declare const mergePrSchema: z.ZodObject<{
24
24
  detailsUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  }, z.core.$strip>>>>;
26
26
  }, z.core.$strip>;
27
- export declare function normalizeMergeState(raw: unknown, policyRaw: unknown, requirements?: GithubMergeRequirements): ForgePrMergeState;
27
+ export declare function normalizeMergeState(raw: unknown, policyRaw: unknown, requirements: GithubMergeRequirements): ForgePrMergeState;