@hearsay-tools/squawk 0.18.0-dev.6743 → 0.18.0-dev.6769

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 (164) hide show
  1. package/dist/ci-wait/controller.d.ts +4 -4
  2. package/dist/contract/index.d.ts +2 -0
  3. package/dist/contract/index.js +80 -4
  4. package/dist/contract/own-lookup.d.ts +5 -0
  5. package/dist/contract/runner-facts.d.ts +91 -0
  6. package/dist/contract/runs.d.ts +31 -4
  7. package/dist/core/claude-cli-runner.d.ts +5 -0
  8. package/dist/core/claude-forked-command.d.ts +36 -0
  9. package/dist/core/claude-forked-command.js +65 -0
  10. package/dist/core/claude-forked-command.js.map +1 -0
  11. package/dist/core/claude-ui-mapper.d.ts +2 -1
  12. package/dist/core/claude-ui-mapper.js +17 -1
  13. package/dist/core/claude-ui-mapper.js.map +1 -1
  14. package/dist/core/codex-app-server-runner.d.ts +5 -0
  15. package/dist/core/cursor-print-runner.d.ts +5 -0
  16. package/dist/core/cursor-runner.d.ts +5 -0
  17. package/dist/core/omp-runner.d.ts +5 -0
  18. package/dist/core/opencode-server-runner.d.ts +5 -0
  19. package/dist/core/own-lookup.d.ts +1 -5
  20. package/dist/core/own-lookup.js +1 -7
  21. package/dist/core/own-lookup.js.map +1 -1
  22. package/dist/core/pi-runner.d.ts +5 -0
  23. package/dist/core/runner-cli.d.ts +31 -0
  24. package/dist/core/runner-cli.js +40 -0
  25. package/dist/core/runner-cli.js.map +1 -0
  26. package/dist/core/runner-facts.d.ts +57 -0
  27. package/dist/core/runner-facts.js +53 -0
  28. package/dist/core/runner-facts.js.map +1 -1
  29. package/dist/core/runner-model-catalog.js +2 -9
  30. package/dist/core/runner-model-catalog.js.map +1 -1
  31. package/dist/delegation/conversations.d.ts +8 -2
  32. package/dist/delegation/execution-identity.js +2 -1
  33. package/dist/delegation/execution-identity.js.map +1 -1
  34. package/dist/delegation/routes.d.ts +16 -16
  35. package/dist/runs/legacy-run-rows.d.ts +8 -0
  36. package/dist/runs/legacy-run-rows.js +19 -0
  37. package/dist/runs/legacy-run-rows.js.map +1 -1
  38. package/dist/runs/run-exits.d.ts +1366 -51
  39. package/dist/runs/run-exits.js +18 -7
  40. package/dist/runs/run-exits.js.map +1 -1
  41. package/dist/runs/store.d.ts +11 -2
  42. package/dist/runs/store.js +4 -4
  43. package/dist/runs/store.js.map +1 -1
  44. package/dist/serve-boot.js +1 -0
  45. package/dist/serve-boot.js.map +1 -1
  46. package/dist/server/checkout.d.ts +1 -1
  47. package/dist/server/open-in-targets.d.ts +1 -1
  48. package/dist/server/open-in-targets.js +5 -12
  49. package/dist/server/open-in-targets.js.map +1 -1
  50. package/dist/server/provider-action-gate.js +3 -10
  51. package/dist/server/provider-action-gate.js.map +1 -1
  52. package/dist/server/server.d.ts +300 -253
  53. package/dist/server/server.js +33 -68
  54. package/dist/server/server.js.map +1 -1
  55. package/dist/workflows/continuation-admission.d.ts +4 -1
  56. package/dist/workflows/run/auto-resume.d.ts +9 -8
  57. package/dist/workflows/run/auto-resume.js +17 -27
  58. package/dist/workflows/run/auto-resume.js.map +1 -1
  59. package/dist/workflows/run/compose.d.ts +3 -0
  60. package/dist/workflows/run/compose.js +13 -12
  61. package/dist/workflows/run/compose.js.map +1 -1
  62. package/dist/workflows/run/continuation-session.js +2 -0
  63. package/dist/workflows/run/continuation-session.js.map +1 -1
  64. package/dist/workflows/run/family-reconciler.d.ts +4 -5
  65. package/dist/workflows/run/family-reconciler.js +9 -19
  66. package/dist/workflows/run/family-reconciler.js.map +1 -1
  67. package/dist/workflows/run/inbox-claims.d.ts +3 -4
  68. package/dist/workflows/run/inbox-claims.js +7 -17
  69. package/dist/workflows/run/inbox-claims.js.map +1 -1
  70. package/dist/workflows/run/input-delivery.d.ts +3 -1
  71. package/dist/workflows/run/input-delivery.js +14 -15
  72. package/dist/workflows/run/input-delivery.js.map +1 -1
  73. package/dist/workflows/run/input-timers.js +3 -2
  74. package/dist/workflows/run/input-timers.js.map +1 -1
  75. package/dist/workflows/run/launch-read-resolver.d.ts +4 -1
  76. package/dist/workflows/run/launch-read-resolver.js +24 -9
  77. package/dist/workflows/run/launch-read-resolver.js.map +1 -1
  78. package/dist/workflows/run/liveness-timers.d.ts +97 -0
  79. package/dist/workflows/run/liveness-timers.js +130 -0
  80. package/dist/workflows/run/liveness-timers.js.map +1 -0
  81. package/dist/workflows/run/run-memory.d.ts +11 -3
  82. package/dist/workflows/run/run-memory.js +34 -8
  83. package/dist/workflows/run/run-memory.js.map +1 -1
  84. package/dist/workflows/run/run-settlement.d.ts +9 -4
  85. package/dist/workflows/run/run-settlement.js +25 -12
  86. package/dist/workflows/run/run-settlement.js.map +1 -1
  87. package/dist/workflows/run/squawk-tools.js +2 -0
  88. package/dist/workflows/run/squawk-tools.js.map +1 -1
  89. package/dist/workflows/run/step-loop.d.ts +2 -2
  90. package/dist/workflows/run/step-loop.js +8 -3
  91. package/dist/workflows/run/step-loop.js.map +1 -1
  92. package/dist/workflows/run/subagent-waits.d.ts +3 -5
  93. package/dist/workflows/run/subagent-waits.js +13 -32
  94. package/dist/workflows/run/subagent-waits.js.map +1 -1
  95. package/dist/workflows/run/turn-nudges.d.ts +3 -1
  96. package/dist/workflows/run/turn-nudges.js +9 -6
  97. package/dist/workflows/run/turn-nudges.js.map +1 -1
  98. package/dist/workflows/run/turn-settler.d.ts +3 -1
  99. package/dist/workflows/run/turn-settler.js +7 -4
  100. package/dist/workflows/run/turn-settler.js.map +1 -1
  101. package/dist/workflows/run/wait-engine.d.ts +4 -1
  102. package/dist/workflows/run/wake-retries.d.ts +5 -7
  103. package/dist/workflows/run/wake-retries.js +17 -42
  104. package/dist/workflows/run/wake-retries.js.map +1 -1
  105. package/dist/workflows/run/worker-executions.js +2 -0
  106. package/dist/workflows/run/worker-executions.js.map +1 -1
  107. package/dist/workflows/run/workflow-position.d.ts +1 -0
  108. package/dist/workflows/run/workflow-position.js +1 -0
  109. package/dist/workflows/run/workflow-position.js.map +1 -1
  110. package/dist/workflows/run-scheduling.d.ts +4 -1
  111. package/dist/workflows/run-scheduling.js +10 -1
  112. package/dist/workflows/run-scheduling.js.map +1 -1
  113. package/dist/workflows/run-states.js +5 -2
  114. package/dist/workflows/run-states.js.map +1 -1
  115. package/dist/workflows/run.js +9 -2
  116. package/dist/workflows/run.js.map +1 -1
  117. package/package.json +4 -4
  118. package/scripts/mock-pi-rpc.mjs +9 -4
  119. package/web/dist/assets/{activity-motion-DMp6Uo_E.js → activity-motion-gOopdagH.js} +1 -1
  120. package/web/dist/assets/{activity-route-D04JxCzp.js → activity-route-D7bDtXpW.js} +1 -1
  121. package/web/dist/assets/agent-accounts-otlDWnij.js +18 -0
  122. package/web/dist/assets/attention-CVI366xV.js +1 -0
  123. package/web/dist/assets/{commit-diff-panel-Din879JP.js → commit-diff-panel-iQf0Rlcx.js} +1 -1
  124. package/web/dist/assets/{diff-Btt23N3M.js → diff-DQfcliZC.js} +2 -2
  125. package/web/dist/assets/{diff-view-CfWaBIJu.js → diff-view-BbM-71Cs.js} +1 -1
  126. package/web/dist/assets/{file-preview-DcznUbkx.js → file-preview-DgU8vo8k.js} +1 -1
  127. package/web/dist/assets/{git-toolbar-DUnmDIe8.js → git-toolbar-C8agvpYS.js} +1 -1
  128. package/web/dist/assets/{github-C6OOf2Jp.js → github-hXmxAXmA.js} +1 -1
  129. package/web/dist/assets/{global-activity-route-ko4iBoc3.js → global-activity-route-D_r1ImUh.js} +1 -1
  130. package/web/dist/assets/index-tN02NX7A.js +17 -0
  131. package/web/dist/assets/{preview-pane-connected-gIoE5-9m.js → preview-pane-connected-D__9JwyU.js} +1 -1
  132. package/web/dist/assets/{project-router-oKsNlPN6.js → project-router-WQWd3UUn.js} +1 -1
  133. package/web/dist/assets/project-scope-context-bgdvGX9z.js +4 -0
  134. package/web/dist/assets/{prompt-template-menu-C3d8Xkvo.js → prompt-template-menu-BJfUg1uF.js} +1 -1
  135. package/web/dist/assets/queries-BJM44umy.js +1 -0
  136. package/web/dist/assets/{reference-chip-BliLpdSz.js → reference-chip-vraIzoEF.js} +1 -1
  137. package/web/dist/assets/{repo-git-DGrhzyWR.js → repo-git-B4qZq37d.js} +1 -1
  138. package/web/dist/assets/{report-reader-C2yXiPa9.js → report-reader-Djix-ICM.js} +1 -1
  139. package/web/dist/assets/{reports-mmONzYgk.js → reports-Do-dkavq.js} +1 -1
  140. package/web/dist/assets/run-header-Di9LaKQs.js +2 -0
  141. package/web/dist/assets/{skills-N0vkndca.js → skills-CPnIvFnR.js} +1 -1
  142. package/web/dist/assets/{tab-link-Buy1fRFO.js → tab-link-DiNYVlpl.js} +1 -1
  143. package/web/dist/assets/{task-changes-BhvqWHW7.js → task-changes-CW7NzgL5.js} +1 -1
  144. package/web/dist/assets/{task-commits-RGVmBirX.js → task-commits-Bkwi7o1B.js} +1 -1
  145. package/web/dist/assets/{task-files-B-W_PC8S.js → task-files-geRzIszC.js} +1 -1
  146. package/web/dist/assets/{task-github-item-csNEiMBa.js → task-github-item-UbCCP2Ud.js} +1 -1
  147. package/web/dist/assets/task-thread-CkiEiypn.js +9 -0
  148. package/web/dist/assets/{thread-state-DeDb0lsY.js → thread-state-CajkV5Ft.js} +1 -1
  149. package/web/dist/assets/{use-desktop-jIeTPw3K.js → use-desktop-Ct4lvA3b.js} +1 -1
  150. package/web/dist/assets/{use-hand-to-agent-state-CIysCyMM.js → use-hand-to-agent-state-Cnxq_2F6.js} +1 -1
  151. package/web/dist/assets/{useInfiniteQuery-Yn58_Fkn.js → useInfiniteQuery-s3lTx_YX.js} +1 -1
  152. package/web/dist/assets/useQuery-C0ee1rw5.js +1 -0
  153. package/web/dist/assets/workflows-Csr2hbks.js +7 -0
  154. package/web/dist/assets/{ws-DbXGHAke.js → ws-WW6DrfbT.js} +1 -1
  155. package/web/dist/index.html +12 -12
  156. package/web/dist/assets/agent-accounts-C48RdN3o.js +0 -18
  157. package/web/dist/assets/attention-BF8NA1XM.js +0 -1
  158. package/web/dist/assets/index-C3YyGC-J.js +0 -17
  159. package/web/dist/assets/project-scope-context-BBVJVcJp.js +0 -4
  160. package/web/dist/assets/queries-Be8VyHam.js +0 -1
  161. package/web/dist/assets/run-header-Cin11tct.js +0 -2
  162. package/web/dist/assets/task-thread-B23Uq5iQ.js +0 -9
  163. package/web/dist/assets/useQuery-C1xFF0nd.js +0 -1
  164. package/web/dist/assets/workflows-k0YtC-LB.js +0 -7
@@ -181,194 +181,6 @@ export declare class WorkspaceEventBus {
181
181
  on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
182
182
  }
183
183
  export declare function createApp(deps: ServerDeps): import("hono/hono-base").HonoBase<import("hono/types").BlankEnv, import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<import("hono/types").BlankSchema | import("hono/types").MergeSchemaPath<{
184
- "/health": {
185
- $get: {
186
- output: {
187
- version: string;
188
- latestVersion?: string | undefined;
189
- repoRoot: string;
190
- repo: {
191
- root: string;
192
- branch: string;
193
- remote?: string | undefined;
194
- } | null;
195
- checks: {
196
- name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
197
- available: boolean;
198
- version?: string;
199
- hint?: string;
200
- }[];
201
- defaultRunner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
202
- forge: {
203
- available?: boolean | undefined;
204
- reason?: string;
205
- kind: "github";
206
- } | null;
207
- capabilities: {
208
- localHandoff: boolean;
209
- settingsAdmin: boolean;
210
- remoteSettingsAdmin: boolean;
211
- automations: boolean;
212
- preview: boolean;
213
- tokenMetrics: boolean;
214
- tokenUsageMetrics: boolean;
215
- costMetrics: boolean;
216
- };
217
- projects: {
218
- id: string;
219
- name: string;
220
- }[];
221
- bootProject: string;
222
- };
223
- outputFormat: "json";
224
- status: import("hono/utils/http-status").ContentfulStatusCode;
225
- input: {};
226
- };
227
- };
228
- }, "/"> | import("hono/types").MergeSchemaPath<{
229
- "/models": {
230
- $get: {
231
- output: {
232
- error: string;
233
- code?: "invalid_input" | undefined;
234
- };
235
- outputFormat: "json";
236
- status: 400;
237
- input: {
238
- query: {
239
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
240
- };
241
- };
242
- } | {
243
- output: {
244
- runner: import("../core/agent-runner.ts").RunnerId;
245
- models: {
246
- id: string;
247
- label: string;
248
- description: string;
249
- effortLevels?: import('../contract/index.js').EffortLevel[];
250
- }[];
251
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
252
- stale: boolean;
253
- reason?: string;
254
- };
255
- outputFormat: "json";
256
- status: import("hono/utils/http-status").ContentfulStatusCode;
257
- input: {
258
- query: {
259
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
260
- };
261
- };
262
- };
263
- };
264
- }, "/"> | import("hono/types").MergeSchemaPath<{
265
- "/fs/browse": {
266
- $get: {
267
- output: {
268
- error: string;
269
- code?: "invalid_input" | undefined;
270
- };
271
- outputFormat: "json";
272
- status: 400;
273
- input: {
274
- query: {
275
- path?: string | undefined;
276
- showHidden?: string | undefined;
277
- };
278
- };
279
- } | {
280
- output: {
281
- error: string;
282
- };
283
- outputFormat: "json";
284
- status: 400 | 403 | 404;
285
- input: {
286
- query: {
287
- path?: string | undefined;
288
- showHidden?: string | undefined;
289
- };
290
- };
291
- } | {
292
- output: {
293
- path: string;
294
- parent: string | null;
295
- dirs: {
296
- name: string;
297
- path: string;
298
- isRepo: boolean;
299
- }[];
300
- truncated: boolean;
301
- };
302
- outputFormat: "json";
303
- status: import("hono/utils/http-status").ContentfulStatusCode;
304
- input: {
305
- query: {
306
- path?: string | undefined;
307
- showHidden?: string | undefined;
308
- };
309
- };
310
- };
311
- };
312
- }, "/"> | import("hono/types").MergeSchemaPath<{
313
- "/automation-checks/:checkId": {
314
- $get: {
315
- output: {
316
- id: string;
317
- automationId: string;
318
- mode: 'preview' | 'execute';
319
- status: 'queued' | 'running' | 'complete' | 'error';
320
- createdAt: string;
321
- completedAt?: string;
322
- matches?: number;
323
- truncated?: boolean;
324
- error?: string;
325
- };
326
- outputFormat: "json";
327
- status: import("hono/utils/http-status").ContentfulStatusCode;
328
- input: {
329
- param: {
330
- checkId: string;
331
- };
332
- };
333
- } | {
334
- output: {
335
- error: string;
336
- };
337
- outputFormat: "json";
338
- status: 404;
339
- input: {
340
- param: {
341
- checkId: string;
342
- };
343
- };
344
- };
345
- };
346
- }, "/"> | import("hono/types").MergeSchemaPath<{
347
- "/workspace/events": {
348
- $get: {
349
- output: {};
350
- outputFormat: string;
351
- status: import("hono/utils/http-status").StatusCode;
352
- input: {
353
- query: {
354
- runs?: "summary" | undefined;
355
- };
356
- };
357
- } | {
358
- output: {
359
- error: string;
360
- code?: "invalid_input" | undefined;
361
- };
362
- outputFormat: "json";
363
- status: 400;
364
- input: {
365
- query: {
366
- runs?: "summary" | undefined;
367
- };
368
- };
369
- };
370
- };
371
- }, "/"> | import("hono/types").MergeSchemaPath<{
372
184
  "/workspace/activity": {
373
185
  $get: {
374
186
  output: {
@@ -626,6 +438,194 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
626
438
  };
627
439
  };
628
440
  };
441
+ }, "/"> | import("hono/types").MergeSchemaPath<{
442
+ "/health": {
443
+ $get: {
444
+ output: {
445
+ version: string;
446
+ latestVersion?: string | undefined;
447
+ repoRoot: string;
448
+ repo: {
449
+ root: string;
450
+ branch: string;
451
+ remote?: string | undefined;
452
+ } | null;
453
+ checks: {
454
+ name: import("../core/agent-runner.ts").RunnerId | 'gh' | 'git';
455
+ available: boolean;
456
+ version?: string;
457
+ hint?: string;
458
+ }[];
459
+ defaultRunner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
460
+ forge: {
461
+ available?: boolean | undefined;
462
+ reason?: string;
463
+ kind: "github";
464
+ } | null;
465
+ capabilities: {
466
+ localHandoff: boolean;
467
+ settingsAdmin: boolean;
468
+ remoteSettingsAdmin: boolean;
469
+ automations: boolean;
470
+ preview: boolean;
471
+ tokenMetrics: boolean;
472
+ tokenUsageMetrics: boolean;
473
+ costMetrics: boolean;
474
+ };
475
+ projects: {
476
+ id: string;
477
+ name: string;
478
+ }[];
479
+ bootProject: string;
480
+ };
481
+ outputFormat: "json";
482
+ status: import("hono/utils/http-status").ContentfulStatusCode;
483
+ input: {};
484
+ };
485
+ };
486
+ }, "/"> | import("hono/types").MergeSchemaPath<{
487
+ "/models": {
488
+ $get: {
489
+ output: {
490
+ error: string;
491
+ code?: "invalid_input" | undefined;
492
+ };
493
+ outputFormat: "json";
494
+ status: 400;
495
+ input: {
496
+ query: {
497
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
498
+ };
499
+ };
500
+ } | {
501
+ output: {
502
+ runner: import("../core/agent-runner.ts").RunnerId;
503
+ models: {
504
+ id: string;
505
+ label: string;
506
+ description: string;
507
+ effortLevels?: import('../contract/index.js').EffortLevel[];
508
+ }[];
509
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
510
+ stale: boolean;
511
+ reason?: string;
512
+ };
513
+ outputFormat: "json";
514
+ status: import("hono/utils/http-status").ContentfulStatusCode;
515
+ input: {
516
+ query: {
517
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
518
+ };
519
+ };
520
+ };
521
+ };
522
+ }, "/"> | import("hono/types").MergeSchemaPath<{
523
+ "/fs/browse": {
524
+ $get: {
525
+ output: {
526
+ error: string;
527
+ code?: "invalid_input" | undefined;
528
+ };
529
+ outputFormat: "json";
530
+ status: 400;
531
+ input: {
532
+ query: {
533
+ path?: string | undefined;
534
+ showHidden?: string | undefined;
535
+ };
536
+ };
537
+ } | {
538
+ output: {
539
+ error: string;
540
+ };
541
+ outputFormat: "json";
542
+ status: 400 | 403 | 404;
543
+ input: {
544
+ query: {
545
+ path?: string | undefined;
546
+ showHidden?: string | undefined;
547
+ };
548
+ };
549
+ } | {
550
+ output: {
551
+ path: string;
552
+ parent: string | null;
553
+ dirs: {
554
+ name: string;
555
+ path: string;
556
+ isRepo: boolean;
557
+ }[];
558
+ truncated: boolean;
559
+ };
560
+ outputFormat: "json";
561
+ status: import("hono/utils/http-status").ContentfulStatusCode;
562
+ input: {
563
+ query: {
564
+ path?: string | undefined;
565
+ showHidden?: string | undefined;
566
+ };
567
+ };
568
+ };
569
+ };
570
+ }, "/"> | import("hono/types").MergeSchemaPath<{
571
+ "/automation-checks/:checkId": {
572
+ $get: {
573
+ output: {
574
+ id: string;
575
+ automationId: string;
576
+ mode: 'preview' | 'execute';
577
+ status: 'queued' | 'running' | 'complete' | 'error';
578
+ createdAt: string;
579
+ completedAt?: string;
580
+ matches?: number;
581
+ truncated?: boolean;
582
+ error?: string;
583
+ };
584
+ outputFormat: "json";
585
+ status: import("hono/utils/http-status").ContentfulStatusCode;
586
+ input: {
587
+ param: {
588
+ checkId: string;
589
+ };
590
+ };
591
+ } | {
592
+ output: {
593
+ error: string;
594
+ };
595
+ outputFormat: "json";
596
+ status: 404;
597
+ input: {
598
+ param: {
599
+ checkId: string;
600
+ };
601
+ };
602
+ };
603
+ };
604
+ }, "/"> | import("hono/types").MergeSchemaPath<{
605
+ "/workspace/events": {
606
+ $get: {
607
+ output: {};
608
+ outputFormat: string;
609
+ status: import("hono/utils/http-status").StatusCode;
610
+ input: {
611
+ query: {
612
+ runs?: "summary" | undefined;
613
+ };
614
+ };
615
+ } | {
616
+ output: {
617
+ error: string;
618
+ code?: "invalid_input" | undefined;
619
+ };
620
+ outputFormat: "json";
621
+ status: 400;
622
+ input: {
623
+ query: {
624
+ runs?: "summary" | undefined;
625
+ };
626
+ };
627
+ };
628
+ };
629
629
  }, "/"> | import("hono/types").MergeSchemaPath<{
630
630
  "/workspace/runs-index": {
631
631
  $get: {
@@ -2988,12 +2988,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
2988
2988
  output: {
2989
2989
  generation: string;
2990
2990
  results: ({
2991
- projectId: string;
2992
- runId: string;
2993
- type: "error" | "reset";
2994
- status: 400 | 404 | 409 | 413 | 503;
2995
- error: string;
2996
- } | {
2997
2991
  projectId: string;
2998
2992
  runId: string;
2999
2993
  type: "batch";
@@ -3007,6 +3001,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3007
3001
  cursor: string;
3008
3002
  afterSeq: number;
3009
3003
  hasMore: boolean;
3004
+ } | {
3005
+ projectId: string;
3006
+ runId: string;
3007
+ type: "error" | "reset";
3008
+ status: 400 | 404 | 409 | 413 | 503;
3009
+ error: string;
3010
3010
  })[];
3011
3011
  };
3012
3012
  outputFormat: "json";
@@ -7084,7 +7084,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7084
7084
  restarted?: true | undefined;
7085
7085
  } | undefined;
7086
7086
  } | undefined;
7087
- workflowResumeStepId?: string | undefined;
7087
+ workflowCursor?: {
7088
+ stepId: string;
7089
+ mode: "resume" | "start";
7090
+ } | undefined;
7088
7091
  invalidAsk?: boolean | undefined;
7089
7092
  delegation?: {
7090
7093
  role: "invalid";
@@ -8573,11 +8576,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8573
8576
  "/runs/:id/worker-destroy": {
8574
8577
  $post: {
8575
8578
  output: {
8576
- error: string;
8577
- code?: "invalid_input" | undefined;
8579
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8580
+ readonly error: string;
8581
+ readonly modelChoices?: {
8582
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
8583
+ requestedModel: string;
8584
+ availableModels: {
8585
+ id: string;
8586
+ label: string;
8587
+ description: string;
8588
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8589
+ }[];
8590
+ otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
8591
+ } | undefined;
8578
8592
  };
8579
8593
  outputFormat: "json";
8580
- status: 400;
8594
+ status: 400 | 401 | 403 | 409 | 503;
8581
8595
  input: {
8582
8596
  query: {
8583
8597
  [x: string]: string | string[];
@@ -8591,22 +8605,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8591
8605
  };
8592
8606
  } | {
8593
8607
  output: {
8594
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8595
- readonly error: string;
8596
- readonly modelChoices?: {
8597
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
8598
- requestedModel: string;
8599
- availableModels: {
8600
- id: string;
8601
- label: string;
8602
- description: string;
8603
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8604
- }[];
8605
- otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
8606
- } | undefined;
8608
+ error: string;
8609
+ code?: "invalid_input" | undefined;
8607
8610
  };
8608
8611
  outputFormat: "json";
8609
- status: 400 | 401 | 403 | 409 | 503;
8612
+ status: 400;
8610
8613
  input: {
8611
8614
  query: {
8612
8615
  [x: string]: string | string[];
@@ -8747,7 +8750,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8747
8750
  restarted?: true | undefined;
8748
8751
  } | undefined;
8749
8752
  } | undefined;
8750
- workflowResumeStepId?: string | undefined;
8751
8753
  invalidAsk?: boolean | undefined;
8752
8754
  agentInputs?: {
8753
8755
  conversation?: {
@@ -9681,6 +9683,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9681
9683
  durationMs?: number | undefined;
9682
9684
  error?: string | undefined;
9683
9685
  } | undefined;
9686
+ workflowCursor?: {
9687
+ stepId: string;
9688
+ mode: "resume" | "start";
9689
+ } | undefined;
9684
9690
  archived: boolean;
9685
9691
  workflowDef?: {
9686
9692
  name: string;
@@ -9842,7 +9848,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
9842
9848
  restarted?: true | undefined;
9843
9849
  } | undefined;
9844
9850
  } | undefined;
9845
- workflowResumeStepId?: string | undefined;
9846
9851
  invalidAsk?: boolean | undefined;
9847
9852
  agentInputs?: {
9848
9853
  conversation?: {
@@ -10776,6 +10781,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10776
10781
  durationMs?: number | undefined;
10777
10782
  error?: string | undefined;
10778
10783
  } | undefined;
10784
+ workflowCursor?: {
10785
+ stepId: string;
10786
+ mode: "resume" | "start";
10787
+ } | undefined;
10779
10788
  archived: boolean;
10780
10789
  workflowDef?: {
10781
10790
  name: string;
@@ -10938,7 +10947,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
10938
10947
  restarted?: true | undefined;
10939
10948
  } | undefined;
10940
10949
  } | undefined;
10941
- workflowResumeStepId?: string | undefined;
10942
10950
  invalidAsk?: boolean | undefined;
10943
10951
  agentInputs?: {
10944
10952
  conversation?: {
@@ -11872,6 +11880,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
11872
11880
  durationMs?: number | undefined;
11873
11881
  error?: string | undefined;
11874
11882
  } | undefined;
11883
+ workflowCursor?: {
11884
+ stepId: string;
11885
+ mode: "resume" | "start";
11886
+ } | undefined;
11875
11887
  archived: boolean;
11876
11888
  workflowDef?: {
11877
11889
  name: string;
@@ -12061,7 +12073,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12061
12073
  restarted?: true | undefined;
12062
12074
  } | undefined;
12063
12075
  } | undefined;
12064
- workflowResumeStepId?: string | undefined;
12065
12076
  invalidAsk?: boolean | undefined;
12066
12077
  agentInputs?: {
12067
12078
  conversation?: {
@@ -12995,6 +13006,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
12995
13006
  durationMs?: number | undefined;
12996
13007
  error?: string | undefined;
12997
13008
  } | undefined;
13009
+ workflowCursor?: {
13010
+ stepId: string;
13011
+ mode: "resume" | "start";
13012
+ } | undefined;
12998
13013
  archived: boolean;
12999
13014
  workflowDef?: {
13000
13015
  name: string;
@@ -13132,7 +13147,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
13132
13147
  restarted?: true | undefined;
13133
13148
  } | undefined;
13134
13149
  } | undefined;
13135
- workflowResumeStepId?: string | undefined;
13136
13150
  invalidAsk?: boolean | undefined;
13137
13151
  agentInputs?: {
13138
13152
  conversation?: {
@@ -14066,6 +14080,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14066
14080
  durationMs?: number | undefined;
14067
14081
  error?: string | undefined;
14068
14082
  } | undefined;
14083
+ workflowCursor?: {
14084
+ stepId: string;
14085
+ mode: "resume" | "start";
14086
+ } | undefined;
14069
14087
  archived: boolean;
14070
14088
  workflowDef?: {
14071
14089
  name: string;
@@ -14203,7 +14221,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
14203
14221
  restarted?: true | undefined;
14204
14222
  } | undefined;
14205
14223
  } | undefined;
14206
- workflowResumeStepId?: string | undefined;
14207
14224
  invalidAsk?: boolean | undefined;
14208
14225
  agentInputs?: {
14209
14226
  conversation?: {
@@ -15137,6 +15154,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15137
15154
  durationMs?: number | undefined;
15138
15155
  error?: string | undefined;
15139
15156
  } | undefined;
15157
+ workflowCursor?: {
15158
+ stepId: string;
15159
+ mode: "resume" | "start";
15160
+ } | undefined;
15140
15161
  archived: boolean;
15141
15162
  workflowDef?: {
15142
15163
  name: string;
@@ -15347,7 +15368,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
15347
15368
  restarted?: true | undefined;
15348
15369
  } | undefined;
15349
15370
  } | undefined;
15350
- workflowResumeStepId?: string | undefined;
15371
+ workflowCursor?: {
15372
+ stepId: string;
15373
+ mode: "resume" | "start";
15374
+ } | undefined;
15351
15375
  invalidAsk?: boolean | undefined;
15352
15376
  delegation?: {
15353
15377
  role: "invalid";
@@ -16546,7 +16570,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
16546
16570
  restarted?: true | undefined;
16547
16571
  } | undefined;
16548
16572
  } | undefined;
16549
- workflowResumeStepId?: string | undefined;
16550
16573
  invalidAsk?: boolean | undefined;
16551
16574
  agentInputs?: {
16552
16575
  conversation?: {
@@ -17480,6 +17503,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
17480
17503
  durationMs?: number | undefined;
17481
17504
  error?: string | undefined;
17482
17505
  } | undefined;
17506
+ workflowCursor?: {
17507
+ stepId: string;
17508
+ mode: "resume" | "start";
17509
+ } | undefined;
17483
17510
  archived: boolean;
17484
17511
  workflowDef?: {
17485
17512
  name: string;
@@ -22853,7 +22880,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
22853
22880
  restarted?: true | undefined;
22854
22881
  } | undefined;
22855
22882
  } | undefined;
22856
- workflowResumeStepId?: string | undefined;
22883
+ workflowCursor?: {
22884
+ stepId: string;
22885
+ mode: "resume" | "start";
22886
+ } | undefined;
22857
22887
  invalidAsk?: boolean | undefined;
22858
22888
  delegation?: {
22859
22889
  role: "invalid";
@@ -24342,11 +24372,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24342
24372
  "/runs/:id/worker-destroy": {
24343
24373
  $post: {
24344
24374
  output: {
24345
- error: string;
24346
- code?: "invalid_input" | undefined;
24375
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24376
+ readonly error: string;
24377
+ readonly modelChoices?: {
24378
+ runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
24379
+ requestedModel: string;
24380
+ availableModels: {
24381
+ id: string;
24382
+ label: string;
24383
+ description: string;
24384
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24385
+ }[];
24386
+ otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
24387
+ } | undefined;
24347
24388
  };
24348
24389
  outputFormat: "json";
24349
- status: 400;
24390
+ status: 400 | 401 | 403 | 409 | 503;
24350
24391
  input: {
24351
24392
  query: {
24352
24393
  [x: string]: string | string[];
@@ -24360,22 +24401,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24360
24401
  };
24361
24402
  } | {
24362
24403
  output: {
24363
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24364
- readonly error: string;
24365
- readonly modelChoices?: {
24366
- runner: "claude" | "codex" | "cursor" | "omp" | "opencode" | "pi";
24367
- requestedModel: string;
24368
- availableModels: {
24369
- id: string;
24370
- label: string;
24371
- description: string;
24372
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24373
- }[];
24374
- otherRunners: ("claude" | "codex" | "cursor" | "omp" | "opencode" | "pi")[];
24375
- } | undefined;
24404
+ error: string;
24405
+ code?: "invalid_input" | undefined;
24376
24406
  };
24377
24407
  outputFormat: "json";
24378
- status: 400 | 401 | 403 | 409 | 503;
24408
+ status: 400;
24379
24409
  input: {
24380
24410
  query: {
24381
24411
  [x: string]: string | string[];
@@ -24516,7 +24546,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24516
24546
  restarted?: true | undefined;
24517
24547
  } | undefined;
24518
24548
  } | undefined;
24519
- workflowResumeStepId?: string | undefined;
24520
24549
  invalidAsk?: boolean | undefined;
24521
24550
  agentInputs?: {
24522
24551
  conversation?: {
@@ -25450,6 +25479,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25450
25479
  durationMs?: number | undefined;
25451
25480
  error?: string | undefined;
25452
25481
  } | undefined;
25482
+ workflowCursor?: {
25483
+ stepId: string;
25484
+ mode: "resume" | "start";
25485
+ } | undefined;
25453
25486
  archived: boolean;
25454
25487
  workflowDef?: {
25455
25488
  name: string;
@@ -25611,7 +25644,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25611
25644
  restarted?: true | undefined;
25612
25645
  } | undefined;
25613
25646
  } | undefined;
25614
- workflowResumeStepId?: string | undefined;
25615
25647
  invalidAsk?: boolean | undefined;
25616
25648
  agentInputs?: {
25617
25649
  conversation?: {
@@ -26545,6 +26577,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26545
26577
  durationMs?: number | undefined;
26546
26578
  error?: string | undefined;
26547
26579
  } | undefined;
26580
+ workflowCursor?: {
26581
+ stepId: string;
26582
+ mode: "resume" | "start";
26583
+ } | undefined;
26548
26584
  archived: boolean;
26549
26585
  workflowDef?: {
26550
26586
  name: string;
@@ -26707,7 +26743,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
26707
26743
  restarted?: true | undefined;
26708
26744
  } | undefined;
26709
26745
  } | undefined;
26710
- workflowResumeStepId?: string | undefined;
26711
26746
  invalidAsk?: boolean | undefined;
26712
26747
  agentInputs?: {
26713
26748
  conversation?: {
@@ -27641,6 +27676,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27641
27676
  durationMs?: number | undefined;
27642
27677
  error?: string | undefined;
27643
27678
  } | undefined;
27679
+ workflowCursor?: {
27680
+ stepId: string;
27681
+ mode: "resume" | "start";
27682
+ } | undefined;
27644
27683
  archived: boolean;
27645
27684
  workflowDef?: {
27646
27685
  name: string;
@@ -27830,7 +27869,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
27830
27869
  restarted?: true | undefined;
27831
27870
  } | undefined;
27832
27871
  } | undefined;
27833
- workflowResumeStepId?: string | undefined;
27834
27872
  invalidAsk?: boolean | undefined;
27835
27873
  agentInputs?: {
27836
27874
  conversation?: {
@@ -28764,6 +28802,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28764
28802
  durationMs?: number | undefined;
28765
28803
  error?: string | undefined;
28766
28804
  } | undefined;
28805
+ workflowCursor?: {
28806
+ stepId: string;
28807
+ mode: "resume" | "start";
28808
+ } | undefined;
28767
28809
  archived: boolean;
28768
28810
  workflowDef?: {
28769
28811
  name: string;
@@ -28901,7 +28943,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
28901
28943
  restarted?: true | undefined;
28902
28944
  } | undefined;
28903
28945
  } | undefined;
28904
- workflowResumeStepId?: string | undefined;
28905
28946
  invalidAsk?: boolean | undefined;
28906
28947
  agentInputs?: {
28907
28948
  conversation?: {
@@ -29835,6 +29876,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29835
29876
  durationMs?: number | undefined;
29836
29877
  error?: string | undefined;
29837
29878
  } | undefined;
29879
+ workflowCursor?: {
29880
+ stepId: string;
29881
+ mode: "resume" | "start";
29882
+ } | undefined;
29838
29883
  archived: boolean;
29839
29884
  workflowDef?: {
29840
29885
  name: string;
@@ -29972,7 +30017,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
29972
30017
  restarted?: true | undefined;
29973
30018
  } | undefined;
29974
30019
  } | undefined;
29975
- workflowResumeStepId?: string | undefined;
29976
30020
  invalidAsk?: boolean | undefined;
29977
30021
  agentInputs?: {
29978
30022
  conversation?: {
@@ -30906,6 +30950,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
30906
30950
  durationMs?: number | undefined;
30907
30951
  error?: string | undefined;
30908
30952
  } | undefined;
30953
+ workflowCursor?: {
30954
+ stepId: string;
30955
+ mode: "resume" | "start";
30956
+ } | undefined;
30909
30957
  archived: boolean;
30910
30958
  workflowDef?: {
30911
30959
  name: string;
@@ -31116,7 +31164,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
31116
31164
  restarted?: true | undefined;
31117
31165
  } | undefined;
31118
31166
  } | undefined;
31119
- workflowResumeStepId?: string | undefined;
31167
+ workflowCursor?: {
31168
+ stepId: string;
31169
+ mode: "resume" | "start";
31170
+ } | undefined;
31120
31171
  invalidAsk?: boolean | undefined;
31121
31172
  delegation?: {
31122
31173
  role: "invalid";
@@ -32315,7 +32366,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
32315
32366
  restarted?: true | undefined;
32316
32367
  } | undefined;
32317
32368
  } | undefined;
32318
- workflowResumeStepId?: string | undefined;
32319
32369
  invalidAsk?: boolean | undefined;
32320
32370
  agentInputs?: {
32321
32371
  conversation?: {
@@ -33249,6 +33299,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33249
33299
  durationMs?: number | undefined;
33250
33300
  error?: string | undefined;
33251
33301
  } | undefined;
33302
+ workflowCursor?: {
33303
+ stepId: string;
33304
+ mode: "resume" | "start";
33305
+ } | undefined;
33252
33306
  archived: boolean;
33253
33307
  workflowDef?: {
33254
33308
  name: string;
@@ -34746,10 +34800,3 @@ export { cockpitOriginFor } from './server-deps.ts';
34746
34800
  * origins are untrusted and may read only loopbackReadable topics.
34747
34801
  */
34748
34802
  export declare function verifyWsUpgrade(req: IncomingMessage, bindHost?: string): WsUpgradeVerdict;
34749
- /** True for session ids safe to splice into the take-over command (see above). */
34750
- export declare function isSafeSessionId(sessionId: string): boolean;
34751
- /**
34752
- * Build native session takeover commands. Legacy/undefined backend defaults to Claude. Refuse
34753
- * unrecognized session-id shapes rather than embedding unsafe or platform-misquoted values.
34754
- */
34755
- export declare function resumeCommand(runner: string | undefined, sessionId: string): string | null;