@hearsay-tools/squawk 0.18.0-pr4335.8428 → 0.18.0-pr4337.8442

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 (184) hide show
  1. package/dist/automations/tools.d.ts +8 -8
  2. package/dist/autosave-cleanup.js +2 -1
  3. package/dist/autosave-cleanup.js.map +1 -1
  4. package/dist/boot.d.ts +5 -1
  5. package/dist/boot.js +5 -2
  6. package/dist/boot.js.map +1 -1
  7. package/dist/built-in-cli-commands.js +0 -4
  8. package/dist/built-in-cli-commands.js.map +1 -1
  9. package/dist/built-in-launch-parts.d.ts +0 -2
  10. package/dist/built-in-launch-parts.js +1 -8
  11. package/dist/built-in-launch-parts.js.map +1 -1
  12. package/dist/built-in-run-slots.js +1 -2
  13. package/dist/built-in-run-slots.js.map +1 -1
  14. package/dist/ci-wait/tool-catalog.d.ts +2 -1
  15. package/dist/ci-wait/tool-catalog.js +22 -16
  16. package/dist/ci-wait/tool-catalog.js.map +1 -1
  17. package/dist/cli-dispatch.d.ts +1 -1
  18. package/dist/cli-dispatch.js +24 -16
  19. package/dist/cli-dispatch.js.map +1 -1
  20. package/dist/contract/index.js +5 -2
  21. package/dist/contract/live-coordination.d.ts +30 -12
  22. package/dist/contract/live.d.ts +29 -0
  23. package/dist/core/cli-registry.d.ts +3 -0
  24. package/dist/core/cli-registry.js +3 -0
  25. package/dist/core/cli-registry.js.map +1 -1
  26. package/dist/core/managed-session.d.ts +0 -5
  27. package/dist/core/managed-session.js +0 -25
  28. package/dist/core/managed-session.js.map +1 -1
  29. package/dist/core/process-ownership.d.ts +12 -0
  30. package/dist/core/process-ownership.js +33 -0
  31. package/dist/core/process-ownership.js.map +1 -0
  32. package/dist/delegation/process-liveness.d.ts +6 -3
  33. package/dist/delegation/process-liveness.js +0 -16
  34. package/dist/delegation/process-liveness.js.map +1 -1
  35. package/dist/delegation/scratch-cleanup.js +5 -5
  36. package/dist/delegation/scratch-cleanup.js.map +1 -1
  37. package/dist/delegation/transport.d.ts +10 -10
  38. package/dist/{jobs → features/jobs}/cli.js +1 -1
  39. package/dist/features/jobs/cli.js.map +1 -0
  40. package/dist/{jobs → features/jobs}/command.js +2 -2
  41. package/dist/features/jobs/command.js.map +1 -0
  42. package/dist/features/jobs/index.d.ts +11 -0
  43. package/dist/features/jobs/index.js +20 -0
  44. package/dist/features/jobs/index.js.map +1 -0
  45. package/dist/{jobs → features/jobs}/job.js +9 -10
  46. package/dist/features/jobs/job.js.map +1 -0
  47. package/dist/features/jobs/removal-slot.d.ts +14 -0
  48. package/dist/features/jobs/removal-slot.js +50 -0
  49. package/dist/features/jobs/removal-slot.js.map +1 -0
  50. package/dist/index.js +1 -1
  51. package/dist/index.js.map +1 -1
  52. package/dist/legacy-runs.js.map +1 -1
  53. package/dist/pack-check.d.ts +4 -1
  54. package/dist/pack-check.js +9 -1
  55. package/dist/pack-check.js.map +1 -1
  56. package/dist/plugin/bundled-features.d.ts +11 -0
  57. package/dist/plugin/bundled-features.js +37 -0
  58. package/dist/plugin/bundled-features.js.map +1 -0
  59. package/dist/plugin/cli.js +1 -1
  60. package/dist/plugin/index.d.ts +1 -1
  61. package/dist/plugin/loader.d.ts +2 -0
  62. package/dist/plugin/loader.js +23 -11
  63. package/dist/plugin/loader.js.map +1 -1
  64. package/dist/runners/antigravity/acp/events.d.ts +3 -5
  65. package/dist/runners/antigravity/acp/events.js +8 -11
  66. package/dist/runners/antigravity/acp/events.js.map +1 -1
  67. package/dist/runs/agent-tmpdir.d.ts +5 -4
  68. package/dist/runs/agent-tmpdir.js +7 -5
  69. package/dist/runs/agent-tmpdir.js.map +1 -1
  70. package/dist/runs/removal-slots.d.ts +15 -3
  71. package/dist/runs/removal-slots.js +12 -2
  72. package/dist/runs/removal-slots.js.map +1 -1
  73. package/dist/runs/run-exits.d.ts +352 -352
  74. package/dist/runs/worker-execution.js.map +1 -1
  75. package/dist/server/activity-routes.d.ts +23 -23
  76. package/dist/server/live-routes.d.ts +7 -0
  77. package/dist/server/live-routes.js +1 -0
  78. package/dist/server/live-routes.js.map +1 -1
  79. package/dist/server/models-routes.d.ts +12 -12
  80. package/dist/server/project-settings-routes.d.ts +107 -107
  81. package/dist/server/project-settings-routes.js +1 -0
  82. package/dist/server/project-settings-routes.js.map +1 -1
  83. package/dist/server/provider-sign-in-routes.d.ts +2 -2
  84. package/dist/server/providers-routes.d.ts +57 -57
  85. package/dist/server/repo-routes.d.ts +34 -34
  86. package/dist/server/reports-api.d.ts +2 -2
  87. package/dist/server/run-event-feed.d.ts +7 -1
  88. package/dist/server/run-event-feed.js +58 -9
  89. package/dist/server/run-event-feed.js.map +1 -1
  90. package/dist/server/runs-routes.d.ts +704 -704
  91. package/dist/server/server.d.ts +65 -58
  92. package/dist/server/workspace-live-routes.d.ts +13 -6
  93. package/dist/server/workspace-routes.d.ts +84 -84
  94. package/dist/worker-scope/groups.d.ts +0 -9
  95. package/dist/worker-scope/groups.js +3 -18
  96. package/dist/worker-scope/groups.js.map +1 -1
  97. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  98. package/dist/workflows/run/run-settlement.d.ts +0 -10
  99. package/dist/workflows/run/run-settlement.js +5 -38
  100. package/dist/workflows/run/run-settlement.js.map +1 -1
  101. package/dist/workflows/run/session-events.js +0 -16
  102. package/dist/workflows/run/session-events.js.map +1 -1
  103. package/dist/workflows/run/wait-engine.d.ts +72 -72
  104. package/dist/workflows/run/wait-input-descriptors.js +11 -2
  105. package/dist/workflows/run/wait-input-descriptors.js.map +1 -1
  106. package/dist/workflows/run/wait-kinds.d.ts +52 -52
  107. package/package.json +4 -4
  108. package/scripts/check-pack.mjs +5 -2
  109. package/scripts/measure-transcript-facts-health.mjs +41 -4
  110. package/scripts/measure-transcript-facts-lag.mjs +3 -3
  111. package/scripts/transcript-facts-timing.mjs +133 -9
  112. package/web/dist/assets/{accounts-section-DmCfsIhE.js → accounts-section-DbBWy1h-.js} +1 -1
  113. package/web/dist/assets/{activity-motion-Dl9i8LMp.js → activity-motion--OtBLAG2.js} +1 -1
  114. package/web/dist/assets/{activity-route-Cu2YIdei.js → activity-route-DhPIkMRQ.js} +1 -1
  115. package/web/dist/assets/{agent-config-section-Bzm4-R__.js → agent-config-section-DmHFEfLn.js} +1 -1
  116. package/web/dist/assets/{agent-defaults-section-BKqo164A.js → agent-defaults-section-BSM4exrC.js} +1 -1
  117. package/web/dist/assets/{appearance-BqzgpB-Y.js → appearance-DDZh2js5.js} +1 -1
  118. package/web/dist/assets/{archive-on-merge-field-BlGo3o7a.js → archive-on-merge-field-BQXdK50c.js} +1 -1
  119. package/web/dist/assets/attention-DShuKoMT.js +1 -0
  120. package/web/dist/assets/{automation-format-CUP262Tk.js → automation-format-DB34jUyF.js} +1 -1
  121. package/web/dist/assets/{automations-route-CUgWc2Qw.js → automations-route-5SrHa_fk.js} +1 -1
  122. package/web/dist/assets/{cez-idle-CQtDz5jk.js → cez-idle-CdswdDRd.js} +1 -1
  123. package/web/dist/assets/{commit-diff-panel-Cm558uOv.js → commit-diff-panel-DAblJOWW.js} +1 -1
  124. package/web/dist/assets/{diff-GEuSlT_R.js → diff-D6dgppr7.js} +2 -2
  125. package/web/dist/assets/{diff-view-DLSixc9l.js → diff-view-DA0QN32e.js} +1 -1
  126. package/web/dist/assets/{file-preview-RPc0KAo_.js → file-preview-BqpyguUL.js} +1 -1
  127. package/web/dist/assets/{folder-browser-CffyHz8w.js → folder-browser-Bv_vTEU3.js} +1 -1
  128. package/web/dist/assets/{git-toolbar-Dd_SYvD0.js → git-toolbar-CTWmcYLa.js} +1 -1
  129. package/web/dist/assets/{github-CQ7IuYHM.js → github-B-xnHpoW.js} +1 -1
  130. package/web/dist/assets/{global-activity-route-BxZ0CMwG.js → global-activity-route-gYuCqamk.js} +1 -1
  131. package/web/dist/assets/{index-BRgRv29I.js → index-DCIRYVqB.js} +5 -5
  132. package/web/dist/assets/{label-6PgIe3Ny.js → label-DRrVct19.js} +1 -1
  133. package/web/dist/assets/{live-protocol-DteqtbyN.js → live-protocol-DMhTnCmf.js} +1 -1
  134. package/web/dist/assets/{live-reads-BxjlQXfN.js → live-reads-BuThrTt7.js} +1 -1
  135. package/web/dist/assets/{markdown-CIm2Q7mB.js → markdown-d2-nofJ3.js} +3 -3
  136. package/web/dist/assets/{notifications-section-Cw8yBZWz.js → notifications-section-BNrYh6dQ.js} +1 -1
  137. package/web/dist/assets/{open-in-menu-AZMtej8C.js → open-in-menu-DpJFqH3v.js} +1 -1
  138. package/web/dist/assets/{preview-pane-connected-C3DmH_yh.js → preview-pane-connected-BwTG5ZIm.js} +1 -1
  139. package/web/dist/assets/{project-location-DzOgHfcA.js → project-location-DNdux3-n.js} +1 -1
  140. package/web/dist/assets/{project-router-CDPfL2Jz.js → project-router-GVIIqwXL.js} +1 -1
  141. package/web/dist/assets/{project-scope-context-D9axDY18.js → project-scope-context-blU6DPq1.js} +1 -1
  142. package/web/dist/assets/{projects-section-DftkCQ4q.js → projects-section-DfZ6ledr.js} +1 -1
  143. package/web/dist/assets/{prompt-templates-section-CKSYhpin.js → prompt-templates-section-C2_9c8s-.js} +1 -1
  144. package/web/dist/assets/{queries-DzwCG927.js → queries-CihFAzQA.js} +1 -1
  145. package/web/dist/assets/{reference-chip-BnIoiMgY.js → reference-chip-DDmY2Wa2.js} +1 -1
  146. package/web/dist/assets/{remote-settings-notice-C727a84A.js → remote-settings-notice-BEn0VAfk.js} +1 -1
  147. package/web/dist/assets/{repo-git-CfmNmHkb.js → repo-git-kS-kyHgg.js} +1 -1
  148. package/web/dist/assets/{report-reader-wIj2Yog1.js → report-reader-BcVFsRsD.js} +1 -1
  149. package/web/dist/assets/{reports-DSkGAItT.js → reports-DqYF_Hlr.js} +1 -1
  150. package/web/dist/assets/{resources-section-DaEv2dar.js → resources-section-B2o8ytO4.js} +1 -1
  151. package/web/dist/assets/{run-header-CVZ0ZK7C.js → run-header-BstZeaqM.js} +1 -1
  152. package/web/dist/assets/{settings-agent-picker-DMVlOQzv.js → settings-agent-picker-rNyNJEU2.js} +1 -1
  153. package/web/dist/assets/{settings-shell-DfnGZk9I.js → settings-shell-BAmJvzuG.js} +1 -1
  154. package/web/dist/assets/{sidebar-section-DYJZAqtU.js → sidebar-section-BTf_4d6s.js} +1 -1
  155. package/web/dist/assets/{skills-CfzNcHh1.js → skills-Cbg8WPDT.js} +1 -1
  156. package/web/dist/assets/{tab-link-BaKE6KnE.js → tab-link-Bwm_Gn01.js} +1 -1
  157. package/web/dist/assets/{task-changes-C1I9CMew.js → task-changes-Ck289AHW.js} +1 -1
  158. package/web/dist/assets/{task-commits-d_R4H7pu.js → task-commits-Ze6RgzC8.js} +1 -1
  159. package/web/dist/assets/{task-files-B2JBO9Dx.js → task-files-D28yguBF.js} +1 -1
  160. package/web/dist/assets/{task-github-item-C9HMDHKn.js → task-github-item-BvS_N-Rv.js} +1 -1
  161. package/web/dist/assets/{task-groups-DoiPFEfM.js → task-groups-AQ1zMByj.js} +1 -1
  162. package/web/dist/assets/{task-thread-dKvX9xg6.js → task-thread-DhHHmYnk.js} +9 -9
  163. package/web/dist/assets/{tasks-table-CmESFng9.js → tasks-table-BGoadobM.js} +1 -1
  164. package/web/dist/assets/thread-state-CNAlLytB.js +4 -0
  165. package/web/dist/assets/{use-hand-to-agent-state-DzHDdmHn.js → use-hand-to-agent-state-B8mS8z45.js} +1 -1
  166. package/web/dist/assets/{useInfiniteQuery-GZp9laKm.js → useInfiniteQuery-CS_BO-SK.js} +1 -1
  167. package/web/dist/assets/useQuery-Ys0_fBIg.js +1 -0
  168. package/web/dist/assets/{workflows-DqArthZn.js → workflows-Ck02MIW2.js} +1 -1
  169. package/web/dist/assets/{workspace-tools-S5KvgCRm.js → workspace-tools-KELtYCoO.js} +1 -1
  170. package/web/dist/assets/{worktrees-section-DNFnQfiW.js → worktrees-section-DhPBqflI.js} +1 -1
  171. package/web/dist/index.html +16 -16
  172. package/web/dist/live-worker.js +2 -2
  173. package/dist/jobs/cli.js.map +0 -1
  174. package/dist/jobs/command.js.map +0 -1
  175. package/dist/jobs/job.js.map +0 -1
  176. package/dist/jobs/removal-slot.d.ts +0 -4
  177. package/dist/jobs/removal-slot.js +0 -10
  178. package/dist/jobs/removal-slot.js.map +0 -1
  179. package/web/dist/assets/attention-CvHM4cjG.js +0 -1
  180. package/web/dist/assets/thread-state-B3HGSNEy.js +0 -4
  181. package/web/dist/assets/useQuery-CzVHT8UE.js +0 -1
  182. /package/dist/{jobs → features/jobs}/cli.d.ts +0 -0
  183. /package/dist/{jobs → features/jobs}/command.d.ts +0 -0
  184. /package/dist/{jobs → features/jobs}/job.d.ts +0 -0
@@ -3072,6 +3072,13 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3072
3072
  stepId?: string | undefined;
3073
3073
  type: string;
3074
3074
  }[];
3075
+ snapshots?: {
3076
+ [x: string]: any;
3077
+ seq: number;
3078
+ ts: string;
3079
+ stepId?: string | undefined;
3080
+ type: string;
3081
+ }[] | undefined;
3075
3082
  cursor: string;
3076
3083
  afterSeq: number;
3077
3084
  hasMore: boolean;
@@ -4609,6 +4616,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4609
4616
  } & {
4610
4617
  "/repo/commit/:sha": {
4611
4618
  $get: {
4619
+ output: string;
4620
+ outputFormat: "text";
4621
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4622
+ input: {
4623
+ query: {
4624
+ structured?: string | undefined;
4625
+ };
4626
+ } & {
4627
+ param: {
4628
+ sha: string;
4629
+ };
4630
+ };
4631
+ } | {
4612
4632
  output: {
4613
4633
  error: string;
4614
4634
  code?: "invalid_input" | undefined;
@@ -4672,19 +4692,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4672
4692
  sha: string;
4673
4693
  };
4674
4694
  };
4675
- } | {
4676
- output: string;
4677
- outputFormat: "text";
4678
- status: import("hono/utils/http-status").ContentfulStatusCode;
4679
- input: {
4680
- query: {
4681
- structured?: string | undefined;
4682
- };
4683
- } & {
4684
- param: {
4685
- sha: string;
4686
- };
4687
- };
4688
4695
  };
4689
4696
  };
4690
4697
  } & {
@@ -19152,20 +19159,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19152
19159
  } & {
19153
19160
  "/runs/:id/handoff": {
19154
19161
  $get: {
19155
- output: {
19156
- error: string;
19157
- };
19158
- outputFormat: "json";
19159
- status: 404;
19162
+ output: string;
19163
+ outputFormat: "text";
19164
+ status: 200;
19160
19165
  input: {
19161
19166
  param: {
19162
19167
  id: string;
19163
19168
  };
19164
19169
  };
19165
19170
  } | {
19166
- output: string;
19167
- outputFormat: "text";
19168
- status: 200;
19171
+ output: {
19172
+ error: string;
19173
+ };
19174
+ outputFormat: "json";
19175
+ status: 404;
19169
19176
  input: {
19170
19177
  param: {
19171
19178
  id: string;
@@ -19203,20 +19210,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19203
19210
  } & {
19204
19211
  "/runs/:id/diff": {
19205
19212
  $get: {
19206
- output: {
19207
- error: string;
19208
- };
19209
- outputFormat: "json";
19210
- status: 404 | 409;
19213
+ output: string;
19214
+ outputFormat: "text";
19215
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19211
19216
  input: {
19212
19217
  param: {
19213
19218
  id: string;
19214
19219
  };
19215
19220
  };
19216
19221
  } | {
19217
- output: string;
19218
- outputFormat: "text";
19219
- status: import("hono/utils/http-status").ContentfulStatusCode;
19222
+ output: {
19223
+ error: string;
19224
+ };
19225
+ outputFormat: "json";
19226
+ status: 404 | 409;
19220
19227
  input: {
19221
19228
  param: {
19222
19229
  id: string;
@@ -21250,6 +21257,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21250
21257
  } & {
21251
21258
  "/repo/commit/:sha": {
21252
21259
  $get: {
21260
+ output: string;
21261
+ outputFormat: "text";
21262
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21263
+ input: {
21264
+ query: {
21265
+ structured?: string | undefined;
21266
+ };
21267
+ } & {
21268
+ param: {
21269
+ sha: string;
21270
+ };
21271
+ };
21272
+ } | {
21253
21273
  output: {
21254
21274
  error: string;
21255
21275
  code?: "invalid_input" | undefined;
@@ -21313,19 +21333,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21313
21333
  sha: string;
21314
21334
  };
21315
21335
  };
21316
- } | {
21317
- output: string;
21318
- outputFormat: "text";
21319
- status: import("hono/utils/http-status").ContentfulStatusCode;
21320
- input: {
21321
- query: {
21322
- structured?: string | undefined;
21323
- };
21324
- } & {
21325
- param: {
21326
- sha: string;
21327
- };
21328
- };
21329
21336
  };
21330
21337
  };
21331
21338
  } & {
@@ -35793,20 +35800,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35793
35800
  } & {
35794
35801
  "/runs/:id/handoff": {
35795
35802
  $get: {
35796
- output: {
35797
- error: string;
35798
- };
35799
- outputFormat: "json";
35800
- status: 404;
35803
+ output: string;
35804
+ outputFormat: "text";
35805
+ status: 200;
35801
35806
  input: {
35802
35807
  param: {
35803
35808
  id: string;
35804
35809
  };
35805
35810
  };
35806
35811
  } | {
35807
- output: string;
35808
- outputFormat: "text";
35809
- status: 200;
35812
+ output: {
35813
+ error: string;
35814
+ };
35815
+ outputFormat: "json";
35816
+ status: 404;
35810
35817
  input: {
35811
35818
  param: {
35812
35819
  id: string;
@@ -35844,20 +35851,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35844
35851
  } & {
35845
35852
  "/runs/:id/diff": {
35846
35853
  $get: {
35847
- output: {
35848
- error: string;
35849
- };
35850
- outputFormat: "json";
35851
- status: 404 | 409;
35854
+ output: string;
35855
+ outputFormat: "text";
35856
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35852
35857
  input: {
35853
35858
  param: {
35854
35859
  id: string;
35855
35860
  };
35856
35861
  };
35857
35862
  } | {
35858
- output: string;
35859
- outputFormat: "text";
35860
- status: import("hono/utils/http-status").ContentfulStatusCode;
35863
+ output: {
35864
+ error: string;
35865
+ };
35866
+ outputFormat: "json";
35867
+ status: 404 | 409;
35861
35868
  input: {
35862
35869
  param: {
35863
35870
  id: string;
@@ -7,6 +7,12 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
7
7
  output: {
8
8
  generation: string;
9
9
  results: ({
10
+ projectId: string;
11
+ runId: string;
12
+ type: "error" | "reset";
13
+ status: 400 | 404 | 409 | 413 | 503;
14
+ error: string;
15
+ } | {
10
16
  projectId: string;
11
17
  runId: string;
12
18
  type: "batch";
@@ -17,15 +23,16 @@ export declare function createWorkspaceLiveRoutes(live: Parameters<typeof create
17
23
  stepId?: string | undefined;
18
24
  type: string;
19
25
  }[];
26
+ snapshots?: {
27
+ [x: string]: any;
28
+ seq: number;
29
+ ts: string;
30
+ stepId?: string | undefined;
31
+ type: string;
32
+ }[] | undefined;
20
33
  cursor: string;
21
34
  afterSeq: number;
22
35
  hasMore: boolean;
23
- } | {
24
- projectId: string;
25
- runId: string;
26
- type: "error" | "reset";
27
- status: 400 | 404 | 409 | 413 | 503;
28
- error: string;
29
36
  })[];
30
37
  };
31
38
  outputFormat: "json";
@@ -51,34 +51,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
51
51
  "/workspace/config": {
52
52
  $put: {
53
53
  output: {
54
- browseRoot: string;
55
- projectsDir: string;
56
- archiveOnMerge: boolean | null;
57
- effectiveArchiveOnMerge: boolean;
58
- archiveOnMergeSource: "default" | "environment" | "global";
59
- composerDefaults: {
60
- autonomous: boolean | null;
61
- worktree: boolean | null;
62
- inheritedAutonomous: "source-dependent" | boolean;
63
- inheritedWorktree: boolean;
64
- };
65
- resources: {
66
- maxParallel: number;
67
- maxMonitoringSessions: number;
68
- monitoringWakeIntervalMinutes: number | null;
69
- autoResumeOnUsageLimit: boolean;
70
- memoryLimitMb: number | null;
71
- worktreeRetentionDefault: number;
72
- };
73
- agentDefaults: {
74
- runner?: string | undefined;
75
- models?: {
76
- [x: string]: string | undefined;
77
- } | undefined;
78
- };
54
+ error: string;
79
55
  };
80
56
  outputFormat: "json";
81
- status: import("hono/utils/http-status").ContentfulStatusCode;
57
+ status: 400;
82
58
  input: {
83
59
  json: {
84
60
  browseRoot?: string | undefined;
@@ -107,7 +83,7 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
107
83
  error: string;
108
84
  };
109
85
  outputFormat: "json";
110
- status: 400;
86
+ status: 500;
111
87
  input: {
112
88
  json: {
113
89
  browseRoot?: string | undefined;
@@ -133,10 +109,34 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
133
109
  };
134
110
  } | {
135
111
  output: {
136
- error: string;
112
+ browseRoot: string;
113
+ projectsDir: string;
114
+ archiveOnMerge: boolean | null;
115
+ effectiveArchiveOnMerge: boolean;
116
+ archiveOnMergeSource: "default" | "environment" | "global";
117
+ composerDefaults: {
118
+ autonomous: boolean | null;
119
+ worktree: boolean | null;
120
+ inheritedAutonomous: "source-dependent" | boolean;
121
+ inheritedWorktree: boolean;
122
+ };
123
+ resources: {
124
+ maxParallel: number;
125
+ maxMonitoringSessions: number;
126
+ monitoringWakeIntervalMinutes: number | null;
127
+ autoResumeOnUsageLimit: boolean;
128
+ memoryLimitMb: number | null;
129
+ worktreeRetentionDefault: number;
130
+ };
131
+ agentDefaults: {
132
+ runner?: string | undefined;
133
+ models?: {
134
+ [x: string]: string | undefined;
135
+ } | undefined;
136
+ };
137
137
  };
138
138
  outputFormat: "json";
139
- status: 500;
139
+ status: import("hono/utils/http-status").ContentfulStatusCode;
140
140
  input: {
141
141
  json: {
142
142
  browseRoot?: string | undefined;
@@ -208,41 +208,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
208
208
  "/workspace/ui-state": {
209
209
  $put: {
210
210
  output: {
211
- [x: string]: import("hono/utils/types").JSONValue;
212
- sidebar?: {
213
- [x: string]: import("hono/utils/types").JSONValue;
214
- collapsed?: {
215
- [x: string]: boolean;
216
- } | undefined;
217
- projectOrder?: string[] | undefined;
218
- } | undefined;
219
- dismissedProviderAuthFailures?: {
220
- [x: string]: string | undefined;
221
- } | undefined;
222
- appearance?: {
223
- accent?: "cezarion" | "lime" | "violet" | undefined;
224
- density?: "comfortable" | "compact" | "ultra" | undefined;
225
- width?: "narrow" | "wide" | undefined;
226
- } | undefined;
227
- notifications?: {
228
- [x: string]: import("hono/utils/types").JSONValue;
229
- enabled?: boolean | undefined;
230
- } | undefined;
231
- taskTable?: {
232
- [x: string]: import("hono/utils/types").JSONValue;
233
- expandedColumns?: {
234
- [x: string]: boolean;
235
- } | undefined;
236
- } | undefined;
237
- lastLocation?: {
238
- projectId: string;
239
- pathname: string;
240
- search?: string | undefined;
241
- hash?: string | undefined;
242
- } | undefined;
211
+ error: string;
243
212
  };
244
213
  outputFormat: "json";
245
- status: import("hono/utils/http-status").ContentfulStatusCode;
214
+ status: 500;
246
215
  input: {
247
216
  json: {
248
217
  [x: string]: unknown;
@@ -275,10 +244,41 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
275
244
  };
276
245
  } | {
277
246
  output: {
278
- error: string;
247
+ [x: string]: import("hono/utils/types").JSONValue;
248
+ sidebar?: {
249
+ [x: string]: import("hono/utils/types").JSONValue;
250
+ collapsed?: {
251
+ [x: string]: boolean;
252
+ } | undefined;
253
+ projectOrder?: string[] | undefined;
254
+ } | undefined;
255
+ dismissedProviderAuthFailures?: {
256
+ [x: string]: string | undefined;
257
+ } | undefined;
258
+ appearance?: {
259
+ accent?: "cezarion" | "lime" | "violet" | undefined;
260
+ density?: "comfortable" | "compact" | "ultra" | undefined;
261
+ width?: "narrow" | "wide" | undefined;
262
+ } | undefined;
263
+ notifications?: {
264
+ [x: string]: import("hono/utils/types").JSONValue;
265
+ enabled?: boolean | undefined;
266
+ } | undefined;
267
+ taskTable?: {
268
+ [x: string]: import("hono/utils/types").JSONValue;
269
+ expandedColumns?: {
270
+ [x: string]: boolean;
271
+ } | undefined;
272
+ } | undefined;
273
+ lastLocation?: {
274
+ projectId: string;
275
+ pathname: string;
276
+ search?: string | undefined;
277
+ hash?: string | undefined;
278
+ } | undefined;
279
279
  };
280
280
  outputFormat: "json";
281
- status: 500;
281
+ status: import("hono/utils/http-status").ContentfulStatusCode;
282
282
  input: {
283
283
  json: {
284
284
  [x: string]: unknown;
@@ -329,10 +329,17 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
329
329
  };
330
330
  } | {
331
331
  output: {
332
- error: string;
332
+ path: string;
333
+ parent: string | null;
334
+ dirs: {
335
+ name: string;
336
+ path: string;
337
+ isRepo: boolean;
338
+ }[];
339
+ truncated: boolean;
333
340
  };
334
341
  outputFormat: "json";
335
- status: 400 | 403 | 404;
342
+ status: import("hono/utils/http-status").ContentfulStatusCode;
336
343
  input: {
337
344
  query: {
338
345
  path?: string | undefined;
@@ -341,17 +348,10 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
341
348
  };
342
349
  } | {
343
350
  output: {
344
- path: string;
345
- parent: string | null;
346
- dirs: {
347
- name: string;
348
- path: string;
349
- isRepo: boolean;
350
- }[];
351
- truncated: boolean;
351
+ error: string;
352
352
  };
353
353
  outputFormat: "json";
354
- status: import("hono/utils/http-status").ContentfulStatusCode;
354
+ status: 400 | 403 | 404;
355
355
  input: {
356
356
  query: {
357
357
  path?: string | undefined;
@@ -370,15 +370,6 @@ export interface WorkspaceEventsRouteDeps {
370
370
  export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDeps): import("hono/hono-base").HonoBase<ProjectApiEnv, {
371
371
  "/workspace/events": {
372
372
  $get: {
373
- output: {};
374
- outputFormat: string;
375
- status: import("hono/utils/http-status").StatusCode;
376
- input: {
377
- query: {
378
- runs?: "summary" | undefined;
379
- };
380
- };
381
- } | {
382
373
  output: {
383
374
  error: string;
384
375
  code?: "invalid_input" | undefined;
@@ -390,6 +381,15 @@ export declare function createWorkspaceEventsRoutes(deps: WorkspaceEventsRouteDe
390
381
  runs?: "summary" | undefined;
391
382
  };
392
383
  };
384
+ } | {
385
+ output: {};
386
+ outputFormat: string;
387
+ status: import("hono/utils/http-status").StatusCode;
388
+ input: {
389
+ query: {
390
+ runs?: "summary" | undefined;
391
+ };
392
+ };
393
393
  };
394
394
  };
395
395
  }, "/", "/workspace/events">;
@@ -1,15 +1,6 @@
1
1
  import { type RecordedProcess } from '../core/process-stat.ts';
2
2
  /** A group leader at spawn: its pid is its group id. */
3
3
  export declare function groupEntry(pid: number): RecordedProcess;
4
- /** Whether the recorded group is the one Squawk started. A live leader must be the recorded
5
- * incarnation. A group whose leader is gone keeps its number while it has members, and the kernel
6
- * does not reuse a pid while a group of that number exists; a reused number needs the group to
7
- * empty first. So a leaderless group counts only where the record proves this boot: on Linux the
8
- * start token carries the boot id, and a token from another boot (or none) is refused. The
9
- * remaining case, the pid space wrapping within one boot while the worker lives, is ADR 0032's
10
- * stated residual. Elsewhere (macOS: no boot id, a small pid space) a leaderless group is never
11
- * signalled. */
12
- export declare function groupOwned(entry: RecordedProcess): boolean;
13
4
  /** SIGKILL every recorded group that is still ours, and every recorded process outside a group
14
5
  * that is still the recorded incarnation. */
15
6
  export declare function killGroups(entries: readonly RecordedProcess[]): void;
@@ -1,28 +1,13 @@
1
1
  /** The `groups` backend: the worker's recorded POSIX process groups. A process that leaves its group
2
2
  * (`setsid`, Node `detached`) is outside it; ADR 0032 states that limit. */
3
- import { processGroupAlive, processGroupRunning, signalProcessGroup } from '../core/session-process.js';
4
- import { linuxBootId, pidExists, processStartToken } from '../core/process-stat.js';
3
+ import { processGroupRunning, signalProcessGroup } from '../core/session-process.js';
4
+ import { pidExists, processStartToken } from '../core/process-stat.js';
5
+ import { groupOwned } from '../core/process-ownership.js';
5
6
  /** A group leader at spawn: its pid is its group id. */
6
7
  export function groupEntry(pid) {
7
8
  const startToken = processStartToken(pid);
8
9
  return { pid, pgid: pid, ...(startToken === undefined ? {} : { startToken }) };
9
10
  }
10
- /** Whether the recorded group is the one Squawk started. A live leader must be the recorded
11
- * incarnation. A group whose leader is gone keeps its number while it has members, and the kernel
12
- * does not reuse a pid while a group of that number exists; a reused number needs the group to
13
- * empty first. So a leaderless group counts only where the record proves this boot: on Linux the
14
- * start token carries the boot id, and a token from another boot (or none) is refused. The
15
- * remaining case, the pid space wrapping within one boot while the worker lives, is ADR 0032's
16
- * stated residual. Elsewhere (macOS: no boot id, a small pid space) a leaderless group is never
17
- * signalled. */
18
- export function groupOwned(entry) {
19
- if (entry.pgid === undefined || entry.pgid !== entry.pid || entry.startToken === undefined || !processGroupAlive(entry.pgid))
20
- return false;
21
- if (pidExists(entry.pid))
22
- return processStartToken(entry.pid) === entry.startToken;
23
- const boot = process.platform === 'linux' ? linuxBootId() : undefined;
24
- return boot !== undefined && entry.startToken.startsWith(`${boot}:`);
25
- }
26
11
  /** SIGKILL every recorded group that is still ours, and every recorded process outside a group
27
12
  * that is still the recorded incarnation. */
28
13
  export function killGroups(entries) {
@@ -1 +1 @@
1
- {"version":3,"file":"groups.js","sourceRoot":"","sources":["../../src/worker-scope/groups.ts"],"names":[],"mappings":"AAAA;4EAC4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACxG,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,iBAAiB,EAAwB,MAAM,yBAAyB,CAAC;AAE1G,wDAAwD;AACxD,MAAM,UAAU,UAAU,CAAC,GAAW;IACpC,MAAM,UAAU,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC1C,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;AACjF,CAAC;AAED;;;;;;;gBAOgB;AAChB,MAAM,UAAU,UAAU,CAAC,KAAsB;IAC/C,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,IAA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AAC,UAAU,KAAK,SAAS,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,UAAU,CAAC,CAAC;AACnH,CAAC"}
@@ -74,6 +74,30 @@ export declare function analyseAcknowledgedInput(runId: string, state: ActiveRun
74
74
  deadline: string;
75
75
  seconds: number;
76
76
  note?: string | undefined;
77
+ } | {
78
+ id: string;
79
+ source: "agent" | "cezar";
80
+ via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
81
+ registeredAt: string;
82
+ phase: "cancelled" | "delivered" | "open" | "resolved";
83
+ resolvedAt?: string | undefined;
84
+ deliveredAt?: string | undefined;
85
+ cancelledAt?: string | undefined;
86
+ turnId: string;
87
+ kind: "process";
88
+ deadline: string;
89
+ timeoutSeconds: number;
90
+ pid: number;
91
+ startToken?: string | undefined;
92
+ exitFile?: string | undefined;
93
+ note?: string | undefined;
94
+ result?: {
95
+ outcome: "deadline" | "error" | "exit_file" | "exited";
96
+ observedAt: string;
97
+ exitCode?: number | undefined;
98
+ exitFileNote?: "not-an-exit-code" | undefined;
99
+ diagnostic?: string | undefined;
100
+ } | undefined;
77
101
  } | {
78
102
  id: string;
79
103
  source: "agent" | "cezar";
@@ -135,30 +159,6 @@ export declare function analyseAcknowledgedInput(runId: string, state: ActiveRun
135
159
  reason: "outcome" | "timeout";
136
160
  } | undefined;
137
161
  wakeInputId?: string | undefined;
138
- } | {
139
- id: string;
140
- source: "agent" | "cezar";
141
- via: "ask-line" | "budget" | "cez-message-wait" | "cez-worker-wait" | "cezar_ask" | "cezar_wait" | "cezar_wait_for_ci" | "completion" | "monitoring-line" | "native-ask" | "native-subagents" | "no-wait" | "schedule-wakeup";
142
- registeredAt: string;
143
- phase: "cancelled" | "delivered" | "open" | "resolved";
144
- resolvedAt?: string | undefined;
145
- deliveredAt?: string | undefined;
146
- cancelledAt?: string | undefined;
147
- turnId: string;
148
- kind: "process";
149
- deadline: string;
150
- timeoutSeconds: number;
151
- pid: number;
152
- startToken?: string | undefined;
153
- exitFile?: string | undefined;
154
- note?: string | undefined;
155
- result?: {
156
- outcome: "deadline" | "error" | "exit_file" | "exited";
157
- observedAt: string;
158
- exitCode?: number | undefined;
159
- exitFileNote?: "not-an-exit-code" | undefined;
160
- diagnostic?: string | undefined;
161
- } | undefined;
162
162
  } | {
163
163
  id: string;
164
164
  source: "agent" | "cezar";
@@ -178,15 +178,6 @@ export declare class RunSettlement {
178
178
  private reconcileSettledFamilies;
179
179
  afterDropActive(runId: string): void;
180
180
  }
181
- /**
182
- * A job started with the default directory keeps the task's scratch past the end it was running at
183
- * (hearsay-tools/squawk#3138). Every later reap of that same end keeps it too, even after the job
184
- * exits: a read mark or another run event is not an end. The task's next end (a Continue clears
185
- * `finishedAt`, and the end sets a new one), its archive or the startup sweep removes it once no
186
- * job in it runs. Archive is a removal point, so an archived run's mark holds nothing: every archive
187
- * path commits the run, and that event reaps.
188
- */
189
- export declare function jobHoldsScratch(dataDir: string, runId: string, run: Pick<RunRecord, 'finishedAt' | 'archived'>): boolean;
190
181
  export declare function sessionCloseKeepsWaiting(input: {
191
182
  readonly cancelled: boolean;
192
183
  readonly incomplete: boolean;
@@ -199,6 +190,5 @@ export declare function terminalScratchDisposition(runId: string, run: RunRecord
199
190
  claimed(): boolean;
200
191
  autosaveBlocker(): string | undefined;
201
192
  privateWorkers(): string[] | undefined;
202
- jobHolds(): boolean;
203
193
  }): 'keep' | 'schedule' | 'remove';
204
194
  export {};