@hearsay-tools/squawk 0.18.0-pr4330.8417 → 0.18.0-pr4335.8421

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 (57) hide show
  1. package/dist/core/managed-session.d.ts +5 -0
  2. package/dist/core/managed-session.js +25 -0
  3. package/dist/core/managed-session.js.map +1 -1
  4. package/dist/runners/antigravity/acp/events.d.ts +5 -3
  5. package/dist/runners/antigravity/acp/events.js +13 -28
  6. package/dist/runners/antigravity/acp/events.js.map +1 -1
  7. package/dist/server/activity-routes.d.ts +23 -23
  8. package/dist/server/models-routes.d.ts +12 -12
  9. package/dist/server/providers-routes.d.ts +57 -57
  10. package/dist/server/repo-routes.d.ts +34 -34
  11. package/dist/server/reports-api.d.ts +2 -2
  12. package/dist/server/server.d.ts +58 -58
  13. package/dist/server/workspace-routes.d.ts +84 -84
  14. package/dist/workflows/run/session-events.js +16 -0
  15. package/dist/workflows/run/session-events.js.map +1 -1
  16. package/package.json +4 -4
  17. package/web/dist/assets/{accounts-section-DHmSLzpZ.js → accounts-section-DmCfsIhE.js} +1 -1
  18. package/web/dist/assets/{activity-motion-2GCO1zPd.js → activity-motion-Dl9i8LMp.js} +1 -1
  19. package/web/dist/assets/{activity-route-D9OAFNC4.js → activity-route-Cu2YIdei.js} +1 -1
  20. package/web/dist/assets/{agent-config-section-Wotj8Dle.js → agent-config-section-Bzm4-R__.js} +1 -1
  21. package/web/dist/assets/{agent-defaults-section-DoGSC8-l.js → agent-defaults-section-BKqo164A.js} +1 -1
  22. package/web/dist/assets/{appearance-CjYdasRV.js → appearance-BqzgpB-Y.js} +1 -1
  23. package/web/dist/assets/{automations-route-BGkbQHSY.js → automations-route-CUgWc2Qw.js} +1 -1
  24. package/web/dist/assets/{commit-diff-panel-TrS_9ZM-.js → commit-diff-panel-Cm558uOv.js} +1 -1
  25. package/web/dist/assets/{diff-DFiqumpD.js → diff-GEuSlT_R.js} +2 -2
  26. package/web/dist/assets/{diff-view-ta--6GkY.js → diff-view-DLSixc9l.js} +1 -1
  27. package/web/dist/assets/{file-preview-B36Gbav6.js → file-preview-RPc0KAo_.js} +1 -1
  28. package/web/dist/assets/{git-toolbar-BNNUwJJs.js → git-toolbar-Dd_SYvD0.js} +1 -1
  29. package/web/dist/assets/{github-C8PMPaH6.js → github-CQ7IuYHM.js} +1 -1
  30. package/web/dist/assets/{global-activity-route-BQr9uGTO.js → global-activity-route-BxZ0CMwG.js} +1 -1
  31. package/web/dist/assets/{index-D1QQrINC.js → index-BRgRv29I.js} +4 -4
  32. package/web/dist/assets/{markdown-BfwPX6zK.js → markdown-CIm2Q7mB.js} +3 -3
  33. package/web/dist/assets/{notifications-section-COEMkxHJ.js → notifications-section-Cw8yBZWz.js} +1 -1
  34. package/web/dist/assets/{preview-pane-connected-kNT-A-Jg.js → preview-pane-connected-C3DmH_yh.js} +1 -1
  35. package/web/dist/assets/{projects-section-CBj6vwf8.js → projects-section-DftkCQ4q.js} +1 -1
  36. package/web/dist/assets/{prompt-templates-section-BGrB-hAd.js → prompt-templates-section-CKSYhpin.js} +1 -1
  37. package/web/dist/assets/{remote-settings-notice-7_VwBQzk.js → remote-settings-notice-C727a84A.js} +1 -1
  38. package/web/dist/assets/{repo-git-DvAIHL6M.js → repo-git-CfmNmHkb.js} +1 -1
  39. package/web/dist/assets/{report-reader-DpjS4XhI.js → report-reader-wIj2Yog1.js} +1 -1
  40. package/web/dist/assets/{reports-BQcrO827.js → reports-DSkGAItT.js} +1 -1
  41. package/web/dist/assets/{resources-section-BHffEkFe.js → resources-section-DaEv2dar.js} +1 -1
  42. package/web/dist/assets/{run-header-B_bLMg9k.js → run-header-CVZ0ZK7C.js} +1 -1
  43. package/web/dist/assets/{settings-agent-picker-BI2-f3Kb.js → settings-agent-picker-DMVlOQzv.js} +1 -1
  44. package/web/dist/assets/{settings-shell-DvjX61XY.js → settings-shell-DfnGZk9I.js} +1 -1
  45. package/web/dist/assets/{sidebar-section-B5CsLxD-.js → sidebar-section-DYJZAqtU.js} +1 -1
  46. package/web/dist/assets/{skills-DqCRIjHs.js → skills-CfzNcHh1.js} +1 -1
  47. package/web/dist/assets/{task-changes-rrNeqY-D.js → task-changes-C1I9CMew.js} +1 -1
  48. package/web/dist/assets/{task-commits-BAblnosS.js → task-commits-d_R4H7pu.js} +1 -1
  49. package/web/dist/assets/{task-files-BZeFS-W2.js → task-files-B2JBO9Dx.js} +1 -1
  50. package/web/dist/assets/{task-github-item-DNxKyv2r.js → task-github-item-C9HMDHKn.js} +1 -1
  51. package/web/dist/assets/{task-thread-DtukKFDA.js → task-thread-dKvX9xg6.js} +9 -9
  52. package/web/dist/assets/{thread-state-Cxpoqerm.js → thread-state-B3HGSNEy.js} +1 -1
  53. package/web/dist/assets/{use-hand-to-agent-state-DO9N-GHI.js → use-hand-to-agent-state-DzHDdmHn.js} +1 -1
  54. package/web/dist/assets/{workflows-DGCLHeMT.js → workflows-DqArthZn.js} +1 -1
  55. package/web/dist/assets/{workspace-tools-BiLzhtEl.js → workspace-tools-S5KvgCRm.js} +1 -1
  56. package/web/dist/assets/{worktrees-section-XX-F-oR7.js → worktrees-section-DNFnQfiW.js} +1 -1
  57. package/web/dist/index.html +1 -1
@@ -31,7 +31,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
31
31
  error: string;
32
32
  };
33
33
  outputFormat: "json";
34
- status: 400;
34
+ status: 409;
35
35
  input: {
36
36
  json: {
37
37
  target: string;
@@ -42,7 +42,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
42
42
  error: string;
43
43
  };
44
44
  outputFormat: "json";
45
- status: 409;
45
+ status: 400;
46
46
  input: {
47
47
  json: {
48
48
  target: string;
@@ -120,11 +120,10 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
120
120
  };
121
121
  } | {
122
122
  output: {
123
- runId: string;
124
- worktreeReclaimedAt: string;
123
+ error: string;
125
124
  };
126
125
  outputFormat: "json";
127
- status: import("hono/utils/http-status").ContentfulStatusCode;
126
+ status: 404 | 409;
128
127
  input: {
129
128
  param: {
130
129
  runId: string;
@@ -132,10 +131,11 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
132
131
  };
133
132
  } | {
134
133
  output: {
135
- error: string;
134
+ runId: string;
135
+ worktreeReclaimedAt: string;
136
136
  };
137
137
  outputFormat: "json";
138
- status: 404 | 409;
138
+ status: import("hono/utils/http-status").ContentfulStatusCode;
139
139
  input: {
140
140
  param: {
141
141
  runId: string;
@@ -267,18 +267,14 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
267
267
  "/repo/branches/delete": {
268
268
  $post: {
269
269
  output: {
270
- deleted: string[];
270
+ error: string;
271
271
  refused: {
272
272
  name: string;
273
273
  reason: string;
274
274
  }[];
275
- dropped?: {
276
- sha: string;
277
- subject: string;
278
- }[] | undefined;
279
275
  };
280
276
  outputFormat: "json";
281
- status: 200;
277
+ status: 409;
282
278
  input: {
283
279
  json: {
284
280
  names: string[];
@@ -287,14 +283,18 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
287
283
  };
288
284
  } | {
289
285
  output: {
290
- error: string;
286
+ deleted: string[];
291
287
  refused: {
292
288
  name: string;
293
289
  reason: string;
294
290
  }[];
291
+ dropped?: {
292
+ sha: string;
293
+ subject: string;
294
+ }[] | undefined;
295
295
  };
296
296
  outputFormat: "json";
297
- status: 409;
297
+ status: 200;
298
298
  input: {
299
299
  json: {
300
300
  names: string[];
@@ -315,6 +315,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
315
315
  } & {
316
316
  "/repo/commit/:sha": {
317
317
  $get: {
318
+ output: string;
319
+ outputFormat: "text";
320
+ status: import("hono/utils/http-status").ContentfulStatusCode;
321
+ input: {
322
+ query: {
323
+ structured?: string | undefined;
324
+ };
325
+ } & {
326
+ param: {
327
+ sha: string;
328
+ };
329
+ };
330
+ } | {
318
331
  output: {
319
332
  error: string;
320
333
  code?: "invalid_input" | undefined;
@@ -378,19 +391,6 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
378
391
  sha: string;
379
392
  };
380
393
  };
381
- } | {
382
- output: string;
383
- outputFormat: "text";
384
- status: import("hono/utils/http-status").ContentfulStatusCode;
385
- input: {
386
- query: {
387
- structured?: string | undefined;
388
- };
389
- } & {
390
- param: {
391
- sha: string;
392
- };
393
- };
394
394
  };
395
395
  };
396
396
  } & {
@@ -451,12 +451,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
451
451
  "/repo/pull": {
452
452
  $post: {
453
453
  output: {
454
- branch: string;
455
- pulled: true;
456
- summary: string;
454
+ error: string;
457
455
  };
458
456
  outputFormat: "json";
459
- status: 200;
457
+ status: 409;
460
458
  input: {
461
459
  json: {
462
460
  branch?: string | undefined;
@@ -465,10 +463,12 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
465
463
  };
466
464
  } | {
467
465
  output: {
468
- error: string;
466
+ branch: string;
467
+ pulled: true;
468
+ summary: string;
469
469
  };
470
470
  outputFormat: "json";
471
- status: 409;
471
+ status: 200;
472
472
  input: {
473
473
  json: {
474
474
  branch?: string | undefined;
@@ -40,7 +40,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
40
40
  error: string;
41
41
  };
42
42
  outputFormat: "json";
43
- status: 400;
43
+ status: 409;
44
44
  input: {
45
45
  query: {
46
46
  q?: string | undefined;
@@ -53,7 +53,7 @@ export declare const reportsRoutes: import("hono/hono-base").HonoBase<ProjectApi
53
53
  error: string;
54
54
  };
55
55
  outputFormat: "json";
56
- status: 409;
56
+ status: 400;
57
57
  input: {
58
58
  query: {
59
59
  q?: string | undefined;
@@ -4609,6 +4609,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4609
4609
  } & {
4610
4610
  "/repo/commit/:sha": {
4611
4611
  $get: {
4612
+ output: string;
4613
+ outputFormat: "text";
4614
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4615
+ input: {
4616
+ query: {
4617
+ structured?: string | undefined;
4618
+ };
4619
+ } & {
4620
+ param: {
4621
+ sha: string;
4622
+ };
4623
+ };
4624
+ } | {
4612
4625
  output: {
4613
4626
  error: string;
4614
4627
  code?: "invalid_input" | undefined;
@@ -4672,19 +4685,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4672
4685
  sha: string;
4673
4686
  };
4674
4687
  };
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
4688
  };
4689
4689
  };
4690
4690
  } & {
@@ -19152,20 +19152,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19152
19152
  } & {
19153
19153
  "/runs/:id/handoff": {
19154
19154
  $get: {
19155
- output: {
19156
- error: string;
19157
- };
19158
- outputFormat: "json";
19159
- status: 404;
19155
+ output: string;
19156
+ outputFormat: "text";
19157
+ status: 200;
19160
19158
  input: {
19161
19159
  param: {
19162
19160
  id: string;
19163
19161
  };
19164
19162
  };
19165
19163
  } | {
19166
- output: string;
19167
- outputFormat: "text";
19168
- status: 200;
19164
+ output: {
19165
+ error: string;
19166
+ };
19167
+ outputFormat: "json";
19168
+ status: 404;
19169
19169
  input: {
19170
19170
  param: {
19171
19171
  id: string;
@@ -19203,20 +19203,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19203
19203
  } & {
19204
19204
  "/runs/:id/diff": {
19205
19205
  $get: {
19206
- output: {
19207
- error: string;
19208
- };
19209
- outputFormat: "json";
19210
- status: 404 | 409;
19206
+ output: string;
19207
+ outputFormat: "text";
19208
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19211
19209
  input: {
19212
19210
  param: {
19213
19211
  id: string;
19214
19212
  };
19215
19213
  };
19216
19214
  } | {
19217
- output: string;
19218
- outputFormat: "text";
19219
- status: import("hono/utils/http-status").ContentfulStatusCode;
19215
+ output: {
19216
+ error: string;
19217
+ };
19218
+ outputFormat: "json";
19219
+ status: 404 | 409;
19220
19220
  input: {
19221
19221
  param: {
19222
19222
  id: string;
@@ -21250,6 +21250,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21250
21250
  } & {
21251
21251
  "/repo/commit/:sha": {
21252
21252
  $get: {
21253
+ output: string;
21254
+ outputFormat: "text";
21255
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21256
+ input: {
21257
+ query: {
21258
+ structured?: string | undefined;
21259
+ };
21260
+ } & {
21261
+ param: {
21262
+ sha: string;
21263
+ };
21264
+ };
21265
+ } | {
21253
21266
  output: {
21254
21267
  error: string;
21255
21268
  code?: "invalid_input" | undefined;
@@ -21313,19 +21326,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21313
21326
  sha: string;
21314
21327
  };
21315
21328
  };
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
21329
  };
21330
21330
  };
21331
21331
  } & {
@@ -35793,20 +35793,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35793
35793
  } & {
35794
35794
  "/runs/:id/handoff": {
35795
35795
  $get: {
35796
- output: {
35797
- error: string;
35798
- };
35799
- outputFormat: "json";
35800
- status: 404;
35796
+ output: string;
35797
+ outputFormat: "text";
35798
+ status: 200;
35801
35799
  input: {
35802
35800
  param: {
35803
35801
  id: string;
35804
35802
  };
35805
35803
  };
35806
35804
  } | {
35807
- output: string;
35808
- outputFormat: "text";
35809
- status: 200;
35805
+ output: {
35806
+ error: string;
35807
+ };
35808
+ outputFormat: "json";
35809
+ status: 404;
35810
35810
  input: {
35811
35811
  param: {
35812
35812
  id: string;
@@ -35844,20 +35844,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35844
35844
  } & {
35845
35845
  "/runs/:id/diff": {
35846
35846
  $get: {
35847
- output: {
35848
- error: string;
35849
- };
35850
- outputFormat: "json";
35851
- status: 404 | 409;
35847
+ output: string;
35848
+ outputFormat: "text";
35849
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35852
35850
  input: {
35853
35851
  param: {
35854
35852
  id: string;
35855
35853
  };
35856
35854
  };
35857
35855
  } | {
35858
- output: string;
35859
- outputFormat: "text";
35860
- status: import("hono/utils/http-status").ContentfulStatusCode;
35856
+ output: {
35857
+ error: string;
35858
+ };
35859
+ outputFormat: "json";
35860
+ status: 404 | 409;
35861
35861
  input: {
35862
35862
  param: {
35863
35863
  id: string;
@@ -51,10 +51,34 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
51
51
  "/workspace/config": {
52
52
  $put: {
53
53
  output: {
54
- error: string;
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
+ };
55
79
  };
56
80
  outputFormat: "json";
57
- status: 400;
81
+ status: import("hono/utils/http-status").ContentfulStatusCode;
58
82
  input: {
59
83
  json: {
60
84
  browseRoot?: string | undefined;
@@ -83,7 +107,7 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
83
107
  error: string;
84
108
  };
85
109
  outputFormat: "json";
86
- status: 500;
110
+ status: 400;
87
111
  input: {
88
112
  json: {
89
113
  browseRoot?: string | undefined;
@@ -109,34 +133,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
109
133
  };
110
134
  } | {
111
135
  output: {
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
- };
136
+ error: string;
137
137
  };
138
138
  outputFormat: "json";
139
- status: import("hono/utils/http-status").ContentfulStatusCode;
139
+ status: 500;
140
140
  input: {
141
141
  json: {
142
142
  browseRoot?: string | undefined;
@@ -208,10 +208,41 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
208
208
  "/workspace/ui-state": {
209
209
  $put: {
210
210
  output: {
211
- error: string;
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;
212
243
  };
213
244
  outputFormat: "json";
214
- status: 500;
245
+ status: import("hono/utils/http-status").ContentfulStatusCode;
215
246
  input: {
216
247
  json: {
217
248
  [x: string]: unknown;
@@ -244,41 +275,10 @@ export declare function createWorkspaceConfigRoutes(deps: WorkspaceConfigRouteDe
244
275
  };
245
276
  } | {
246
277
  output: {
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;
278
+ error: string;
279
279
  };
280
280
  outputFormat: "json";
281
- status: import("hono/utils/http-status").ContentfulStatusCode;
281
+ status: 500;
282
282
  input: {
283
283
  json: {
284
284
  [x: string]: unknown;
@@ -329,17 +329,10 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
329
329
  };
330
330
  } | {
331
331
  output: {
332
- path: string;
333
- parent: string | null;
334
- dirs: {
335
- name: string;
336
- path: string;
337
- isRepo: boolean;
338
- }[];
339
- truncated: boolean;
332
+ error: string;
340
333
  };
341
334
  outputFormat: "json";
342
- status: import("hono/utils/http-status").ContentfulStatusCode;
335
+ status: 400 | 403 | 404;
343
336
  input: {
344
337
  query: {
345
338
  path?: string | undefined;
@@ -348,10 +341,17 @@ export declare function createFsBrowseRoutes(workspaceBrowseRoot: () => Promise<
348
341
  };
349
342
  } | {
350
343
  output: {
351
- error: string;
344
+ path: string;
345
+ parent: string | null;
346
+ dirs: {
347
+ name: string;
348
+ path: string;
349
+ isRepo: boolean;
350
+ }[];
351
+ truncated: boolean;
352
352
  };
353
353
  outputFormat: "json";
354
- status: 400 | 403 | 404;
354
+ status: import("hono/utils/http-status").ContentfulStatusCode;
355
355
  input: {
356
356
  query: {
357
357
  path?: string | undefined;
@@ -370,21 +370,21 @@ 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
- error: string;
375
- code?: "invalid_input" | undefined;
376
- };
377
- outputFormat: "json";
378
- status: 400;
373
+ output: {};
374
+ outputFormat: string;
375
+ status: import("hono/utils/http-status").StatusCode;
379
376
  input: {
380
377
  query: {
381
378
  runs?: "summary" | undefined;
382
379
  };
383
380
  };
384
381
  } | {
385
- output: {};
386
- outputFormat: string;
387
- status: import("hono/utils/http-status").StatusCode;
382
+ output: {
383
+ error: string;
384
+ code?: "invalid_input" | undefined;
385
+ };
386
+ outputFormat: "json";
387
+ status: 400;
388
388
  input: {
389
389
  query: {
390
390
  runs?: "summary" | undefined;
@@ -13,6 +13,7 @@ import { clearIdleTimer, clearHeldHumanInputTimer, clearUnreadInputTimer } from
13
13
  import { isRunnerActivity } from './turn-markers.js';
14
14
  import { recordUsageUiEvent } from './usage-accounting.js';
15
15
  import * as inputReceipts from './input-receipts.js';
16
+ import { topLevelModelWork } from '../../core/managed-session.js';
16
17
  import { UiEventSink } from '../../runs/ui-event-sink.js';
17
18
  import { nativeTimerDelay } from './turn-markers.js';
18
19
  import { recordReportedCost } from './usage-accounting.js';
@@ -196,6 +197,8 @@ export function makeUiSink(context, host, runId, stepId) {
196
197
  ...(context.toolActivity ? { observe: (event) => context.toolActivity?.observe(runId, event) } : {}),
197
198
  });
198
199
  }
200
+ /** Each run's open top-level v2 items: their deltas show the model working. */
201
+ const openModelItems = new WeakMap();
199
202
  /** Native backend asks arrive before turn-end. Persist and park immediately
200
203
  * so the cockpit shows attention and the run releases its workspace slot. */
201
204
  export function handleRunnerUiEvent(context, host, runId, state, sink, event, emitting) {
@@ -208,6 +211,7 @@ export function handleRunnerUiEvent(context, host, runId, state, sink, event, em
208
211
  host.trackSubagentEvent(runId, state, event);
209
212
  host.noteNoWaitNudgeContent(runId, state, emitting, event);
210
213
  host.noteNudgeActivity(runId, state, emitting, event);
214
+ noteModelWork(state, event);
211
215
  if (isRunnerActivity(event)) {
212
216
  // Activity answers the nudge. A refused one's bound was the idle timer. One still owed its
213
217
  // acknowledgement stays until it arrives (hearsay-tools/squawk#2443).
@@ -244,6 +248,18 @@ export function handleRunnerUiEvent(context, host, runId, state, sink, event, em
244
248
  host.resumeParkedRun(runId, state);
245
249
  }
246
250
  }
251
+ /** Streamed v2 model work is real content, as v1 text is: the harness is working. */
252
+ function noteModelWork(state, event) {
253
+ let open = openModelItems.get(state);
254
+ if (!open) {
255
+ open = new Set();
256
+ openModelItems.set(state, open);
257
+ }
258
+ if (!topLevelModelWork(open, event))
259
+ return;
260
+ clearUnreadInputTimer(state);
261
+ clearHeldHumanInputTimer(state);
262
+ }
247
263
  export function handlePermissionRequested(context, host, runId, state, requestId) {
248
264
  state.liveSession.requestPermission(requestId);
249
265
  host.humanWaits.prepareHumanAsk(state);