@hearsay-tools/squawk 0.19.0-dev.8696 → 0.19.0-dev.8699

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 (91) hide show
  1. package/dist/contract/index.js +55 -14
  2. package/dist/contract/runs.d.ts +50 -0
  3. package/dist/contract/workspace-events.d.ts +18 -0
  4. package/dist/delegation/transport.d.ts +65 -65
  5. package/dist/server/models-routes.d.ts +12 -12
  6. package/dist/server/projects-routes.d.ts +45 -45
  7. package/dist/server/providers-routes.d.ts +57 -57
  8. package/dist/server/repo-routes.d.ts +34 -34
  9. package/dist/server/runner-install-routes.d.ts +10 -10
  10. package/dist/server/runs-routes.d.ts +24 -16
  11. package/dist/server/server.d.ts +1662 -1638
  12. package/dist/server/workspace-routes.d.ts +92 -84
  13. package/package.json +4 -4
  14. package/web/dist/assets/{accounts-section-RDVTJfi7.js → accounts-section-CzFhdKWy.js} +1 -1
  15. package/web/dist/assets/activity-motion-D0Fch0mc.js +2 -0
  16. package/web/dist/assets/{activity-route-CjE0yxn0.js → activity-route-Cvw0jXpy.js} +1 -1
  17. package/web/dist/assets/{agent-config-section-DQ1RaVK2.js → agent-config-section-BCzxsvys.js} +1 -1
  18. package/web/dist/assets/{agent-defaults-section-Dzm7jIza.js → agent-defaults-section-DMRK-Qlp.js} +1 -1
  19. package/web/dist/assets/{appearance-DQLHHfI4.js → appearance-Ew3vb_-K.js} +1 -1
  20. package/web/dist/assets/{archive-on-merge-field-C7_Fwy2A.js → archive-on-merge-field-g87CG6RL.js} +1 -1
  21. package/web/dist/assets/attention-80jX8HhC.js +1 -0
  22. package/web/dist/assets/automations-route-CRBtWEo1.js +2 -0
  23. package/web/dist/assets/commit-list-Cd14tNSj.js +1 -0
  24. package/web/dist/assets/diff-D55N_7Ul.js +3 -0
  25. package/web/dist/assets/{diff-controls-BRa3141W.js → diff-controls-CmYvdEGt.js} +1 -1
  26. package/web/dist/assets/diff-stat-U7DT4Ilj.js +1 -0
  27. package/web/dist/assets/{diff-view-CwlKCj5V.js → diff-view-DV6muJdZ.js} +1 -1
  28. package/web/dist/assets/{file-preview-VvCzp02k.js → file-preview-CTPfK-oR.js} +1 -1
  29. package/web/dist/assets/{folder-browser-B7IbnF0d.js → folder-browser-DnSFycbU.js} +1 -1
  30. package/web/dist/assets/git-toolbar-Dc_o1nrh.js +1 -0
  31. package/web/dist/assets/github-WYk7bQID.js +1 -0
  32. package/web/dist/assets/{global-activity-route-C4-bmfh_.js → global-activity-route-Dvx2uk8w.js} +1 -1
  33. package/web/dist/assets/image-preview-2S3PEy8S.js +1 -0
  34. package/web/dist/assets/index-CGdnowj-.js +21 -0
  35. package/web/dist/assets/index-DAxuDJAo.css +1 -0
  36. package/web/dist/assets/{label-Bt8n7Spq.js → label-o_DsEmPt.js} +1 -1
  37. package/web/dist/assets/{live-reads-Crd6fVGH.js → live-reads-Cgk2XbiP.js} +1 -1
  38. package/web/dist/assets/{markdown-9L65ixU6.js → markdown-CJzxFk0P.js} +1 -1
  39. package/web/dist/assets/{notifications-section-QWmuj2j2.js → notifications-section-DNYO4sd4.js} +1 -1
  40. package/web/dist/assets/{open-in-menu-BPp88ouw.js → open-in-menu-Bzae69TK.js} +1 -1
  41. package/web/dist/assets/{preview-pane-connected-DAM2Snwh.js → preview-pane-connected-CRooCkyb.js} +2 -2
  42. package/web/dist/assets/{project-location-BRxXN249.js → project-location-D6riKh0Z.js} +1 -1
  43. package/web/dist/assets/{project-router-CLJTc7gv.js → project-router-CZ89wg-5.js} +1 -1
  44. package/web/dist/assets/{project-scope-context-Rv6S_BXt.js → project-scope-context-DIcqj4jJ.js} +2 -2
  45. package/web/dist/assets/{projects-section-DxubjpZI.js → projects-section-4rsb8E52.js} +1 -1
  46. package/web/dist/assets/{prompt-templates-section-CkQneT1G.js → prompt-templates-section-G3dlAOXt.js} +1 -1
  47. package/web/dist/assets/{queries-qCF-eOqZ.js → queries-DZhNVAD_.js} +1 -1
  48. package/web/dist/assets/{reference-chip-D0v0keVC.js → reference-chip-DSJSqjmO.js} +1 -1
  49. package/web/dist/assets/{remote-settings-notice-COojb6XK.js → remote-settings-notice-GNs7i0kP.js} +1 -1
  50. package/web/dist/assets/repo-git-CvZTTKFl.js +1 -0
  51. package/web/dist/assets/{report-reader-zWwalJDN.js → report-reader-CLlNdsZG.js} +1 -1
  52. package/web/dist/assets/reports-sl2SMDG1.js +1 -0
  53. package/web/dist/assets/{resources-section-Cb2WIqNv.js → resources-section-DhEoaA0K.js} +1 -1
  54. package/web/dist/assets/run-header-DZoOLIBZ.js +2 -0
  55. package/web/dist/assets/{select-y3oRuA2s.js → select-D3snxxoD.js} +1 -1
  56. package/web/dist/assets/{session-context-section-CiPNMiL7.js → session-context-section-esqZfONg.js} +2 -2
  57. package/web/dist/assets/{settings-agent-picker-CJJJncuA.js → settings-agent-picker-Dso2TmRM.js} +1 -1
  58. package/web/dist/assets/{settings-shell-CLToW28f.js → settings-shell-UO_0dSGl.js} +1 -1
  59. package/web/dist/assets/{sidebar-section-VOYJarPd.js → sidebar-section-pp7e3AZa.js} +1 -1
  60. package/web/dist/assets/{skills-BySF3yBA.js → skills-B99glme7.js} +1 -1
  61. package/web/dist/assets/{tab-link-Bu1g-ArE.js → tab-link-BGXFZZ_Z.js} +1 -1
  62. package/web/dist/assets/task-changes-Tn9M2OPH.js +1 -0
  63. package/web/dist/assets/task-commits-BHDMp1sO.js +1 -0
  64. package/web/dist/assets/{task-files-Bu-L_NRW.js → task-files-Csx1Bonx.js} +1 -1
  65. package/web/dist/assets/{task-github-item-DhiTqCjk.js → task-github-item-D0kQ0K4S.js} +1 -1
  66. package/web/dist/assets/{task-groups-4tzKGROI.js → task-groups-DK0I9p71.js} +1 -1
  67. package/web/dist/assets/{task-thread-CKkTeQdi.js → task-thread-DsMuGSug.js} +9 -9
  68. package/web/dist/assets/{tasks-table-C5uoZMFs.js → tasks-table-BNFYIwtc.js} +1 -1
  69. package/web/dist/assets/{thread-state-B_ZqjjRr.js → thread-state-DMWi6eLk.js} +1 -1
  70. package/web/dist/assets/{toaster-BXnLIU3z.js → toaster-0sM0sfWx.js} +1 -1
  71. package/web/dist/assets/use-hand-to-agent-state-DqCW8Giu.js +1 -0
  72. package/web/dist/assets/{workflows-DlTkuM0J.js → workflows-CxJvAn6z.js} +3 -3
  73. package/web/dist/assets/{workspace-tools-BRK7f1Hk.js → workspace-tools-DqJ8akIy.js} +1 -1
  74. package/web/dist/assets/{worktrees-section-BXI0-7HH.js → worktrees-section-DBZZlAe0.js} +4 -4
  75. package/web/dist/index.html +16 -15
  76. package/web/dist/assets/activity-motion-B7km8QVK.js +0 -2
  77. package/web/dist/assets/attention-CBCeJN5w.js +0 -1
  78. package/web/dist/assets/automations-route-BcdL5f0K.js +0 -2
  79. package/web/dist/assets/commit-list-CN1zX-0X.js +0 -1
  80. package/web/dist/assets/diff-hxqBOfZH.js +0 -3
  81. package/web/dist/assets/git-toolbar-BulcGzsv.js +0 -1
  82. package/web/dist/assets/github-By3yOcFH.js +0 -1
  83. package/web/dist/assets/image-preview-Pgf8bnzY.js +0 -1
  84. package/web/dist/assets/index-C69_Sk06.css +0 -1
  85. package/web/dist/assets/index-DNQcTHxV.js +0 -21
  86. package/web/dist/assets/repo-git-Mgk4Qcmo.js +0 -1
  87. package/web/dist/assets/reports-BCHWt3zy.js +0 -1
  88. package/web/dist/assets/run-header-DeprqSP7.js +0 -2
  89. package/web/dist/assets/task-changes-NUwvUglx.js +0 -1
  90. package/web/dist/assets/task-commits-CpV1Hz9L.js +0 -1
  91. package/web/dist/assets/use-hand-to-agent-state-K864D69i.js +0 -1
@@ -70,18 +70,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
70
70
  };
71
71
  } | {
72
72
  output: {
73
- providers: {
74
- requiresAccountHome?: boolean | undefined;
75
- provider: string;
76
- status: "connected" | "disconnected" | "not-installed" | "unknown";
77
- enabled?: boolean | undefined;
78
- hint?: string | undefined;
79
- authFailureId?: string | undefined;
80
- profileId?: string | undefined;
81
- }[];
73
+ error: string;
82
74
  };
83
75
  outputFormat: "json";
84
- status: import("hono/utils/http-status").ContentfulStatusCode;
76
+ status: 500;
85
77
  input: {
86
78
  param: {
87
79
  provider: string;
@@ -93,10 +85,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
93
85
  };
94
86
  } | {
95
87
  output: {
96
- error: string;
88
+ providers: {
89
+ requiresAccountHome?: boolean | undefined;
90
+ provider: string;
91
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
92
+ enabled?: boolean | undefined;
93
+ hint?: string | undefined;
94
+ authFailureId?: string | undefined;
95
+ profileId?: string | undefined;
96
+ }[];
97
97
  };
98
98
  outputFormat: "json";
99
- status: 500;
99
+ status: import("hono/utils/http-status").ContentfulStatusCode;
100
100
  input: {
101
101
  param: {
102
102
  provider: string;
@@ -128,18 +128,10 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
128
128
  };
129
129
  } | {
130
130
  output: {
131
- providers: {
132
- requiresAccountHome?: boolean | undefined;
133
- provider: string;
134
- status: "connected" | "disconnected" | "not-installed" | "unknown";
135
- enabled?: boolean | undefined;
136
- hint?: string | undefined;
137
- authFailureId?: string | undefined;
138
- profileId?: string | undefined;
139
- }[];
131
+ error: string;
140
132
  };
141
133
  outputFormat: "json";
142
- status: import("hono/utils/http-status").ContentfulStatusCode;
134
+ status: 409;
143
135
  input: {
144
136
  param: {
145
137
  provider: string;
@@ -151,10 +143,18 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
151
143
  };
152
144
  } | {
153
145
  output: {
154
- error: string;
146
+ providers: {
147
+ requiresAccountHome?: boolean | undefined;
148
+ provider: string;
149
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
150
+ enabled?: boolean | undefined;
151
+ hint?: string | undefined;
152
+ authFailureId?: string | undefined;
153
+ profileId?: string | undefined;
154
+ }[];
155
155
  };
156
156
  outputFormat: "json";
157
- status: 409;
157
+ status: import("hono/utils/http-status").ContentfulStatusCode;
158
158
  input: {
159
159
  param: {
160
160
  provider: string;
@@ -173,7 +173,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
173
173
  error: string;
174
174
  };
175
175
  outputFormat: "json";
176
- status: 409;
176
+ status: 400;
177
177
  input: {
178
178
  json: {
179
179
  provider: string;
@@ -185,7 +185,7 @@ export declare function createProvidersRoutes(deps: ProvidersRouteDeps): import(
185
185
  error: string;
186
186
  };
187
187
  outputFormat: "json";
188
- status: 400;
188
+ status: 409;
189
189
  input: {
190
190
  json: {
191
191
  provider: string;
@@ -290,10 +290,28 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
290
290
  "/workspace/agent-profiles": {
291
291
  $post: {
292
292
  output: {
293
- error: string;
293
+ profile: {
294
+ id: string;
295
+ provider: string;
296
+ label: string;
297
+ configDir?: string | undefined;
298
+ path?: string | undefined;
299
+ exists: boolean;
300
+ looksValid: boolean;
301
+ isDefault: boolean;
302
+ status?: {
303
+ requiresAccountHome?: boolean | undefined;
304
+ provider: string;
305
+ status: "connected" | "disconnected" | "not-installed" | "unknown";
306
+ enabled?: boolean | undefined;
307
+ hint?: string | undefined;
308
+ authFailureId?: string | undefined;
309
+ profileId?: string | undefined;
310
+ } | undefined;
311
+ };
294
312
  };
295
313
  outputFormat: "json";
296
- status: 409;
314
+ status: 201;
297
315
  input: {
298
316
  json: {
299
317
  provider: string;
@@ -319,7 +337,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
319
337
  error: string;
320
338
  };
321
339
  outputFormat: "json";
322
- status: 500;
340
+ status: 409;
323
341
  input: {
324
342
  json: {
325
343
  provider: string;
@@ -329,28 +347,10 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
329
347
  };
330
348
  } | {
331
349
  output: {
332
- profile: {
333
- id: string;
334
- provider: string;
335
- label: string;
336
- configDir?: string | undefined;
337
- path?: string | undefined;
338
- exists: boolean;
339
- looksValid: boolean;
340
- isDefault: boolean;
341
- status?: {
342
- requiresAccountHome?: boolean | undefined;
343
- provider: string;
344
- status: "connected" | "disconnected" | "not-installed" | "unknown";
345
- enabled?: boolean | undefined;
346
- hint?: string | undefined;
347
- authFailureId?: string | undefined;
348
- profileId?: string | undefined;
349
- } | undefined;
350
- };
350
+ error: string;
351
351
  };
352
352
  outputFormat: "json";
353
- status: 201;
353
+ status: 500;
354
354
  input: {
355
355
  json: {
356
356
  provider: string;
@@ -384,7 +384,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
384
384
  error: string;
385
385
  };
386
386
  outputFormat: "json";
387
- status: 409;
387
+ status: 400;
388
388
  input: {
389
389
  param: {
390
390
  id: string;
@@ -400,7 +400,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
400
400
  error: string;
401
401
  };
402
402
  outputFormat: "json";
403
- status: 400;
403
+ status: 404;
404
404
  input: {
405
405
  param: {
406
406
  id: string;
@@ -416,7 +416,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
416
416
  error: string;
417
417
  };
418
418
  outputFormat: "json";
419
- status: 404;
419
+ status: 409;
420
420
  input: {
421
421
  param: {
422
422
  id: string;
@@ -544,7 +544,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
544
544
  error: string;
545
545
  };
546
546
  outputFormat: "json";
547
- status: 404;
547
+ status: 400;
548
548
  input: {
549
549
  json: {
550
550
  projectId: string;
@@ -557,7 +557,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
557
557
  error: string;
558
558
  };
559
559
  outputFormat: "json";
560
- status: 400;
560
+ status: 404;
561
561
  input: {
562
562
  json: {
563
563
  projectId: string;
@@ -621,7 +621,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
621
621
  error: string;
622
622
  };
623
623
  outputFormat: "json";
624
- status: 409;
624
+ status: 404;
625
625
  input: {
626
626
  param: {
627
627
  id: string;
@@ -632,7 +632,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
632
632
  error: string;
633
633
  };
634
634
  outputFormat: "json";
635
- status: 500;
635
+ status: 409;
636
636
  input: {
637
637
  param: {
638
638
  id: string;
@@ -643,7 +643,7 @@ export declare function createAgentProfilesRoutes(deps: AgentProfilesRouteDeps):
643
643
  error: string;
644
644
  };
645
645
  outputFormat: "json";
646
- status: 404;
646
+ status: 500;
647
647
  input: {
648
648
  param: {
649
649
  id: string;
@@ -31,7 +31,7 @@ export declare function createOpenTargetsRoutes(deps: OpenTargetsRouteDeps): imp
31
31
  error: string;
32
32
  };
33
33
  outputFormat: "json";
34
- status: 409;
34
+ status: 400;
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: 400;
45
+ status: 409;
46
46
  input: {
47
47
  json: {
48
48
  target: string;
@@ -120,10 +120,11 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
120
120
  };
121
121
  } | {
122
122
  output: {
123
- error: string;
123
+ runId: string;
124
+ worktreeReclaimedAt: string;
124
125
  };
125
126
  outputFormat: "json";
126
- status: 404 | 409;
127
+ status: import("hono/utils/http-status").ContentfulStatusCode;
127
128
  input: {
128
129
  param: {
129
130
  runId: string;
@@ -131,11 +132,10 @@ export declare function createWorktreesRoutes(deps: WorktreesRouteDeps): import(
131
132
  };
132
133
  } | {
133
134
  output: {
134
- runId: string;
135
- worktreeReclaimedAt: string;
135
+ error: string;
136
136
  };
137
137
  outputFormat: "json";
138
- status: import("hono/utils/http-status").ContentfulStatusCode;
138
+ status: 404 | 409;
139
139
  input: {
140
140
  param: {
141
141
  runId: string;
@@ -267,14 +267,18 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
267
267
  "/repo/branches/delete": {
268
268
  $post: {
269
269
  output: {
270
- error: string;
270
+ deleted: string[];
271
271
  refused: {
272
272
  name: string;
273
273
  reason: string;
274
274
  }[];
275
+ dropped?: {
276
+ sha: string;
277
+ subject: string;
278
+ }[] | undefined;
275
279
  };
276
280
  outputFormat: "json";
277
- status: 409;
281
+ status: 200;
278
282
  input: {
279
283
  json: {
280
284
  names: string[];
@@ -283,18 +287,14 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
283
287
  };
284
288
  } | {
285
289
  output: {
286
- deleted: string[];
290
+ error: string;
287
291
  refused: {
288
292
  name: string;
289
293
  reason: string;
290
294
  }[];
291
- dropped?: {
292
- sha: string;
293
- subject: string;
294
- }[] | undefined;
295
295
  };
296
296
  outputFormat: "json";
297
- status: 200;
297
+ status: 409;
298
298
  input: {
299
299
  json: {
300
300
  names: string[];
@@ -315,19 +315,6 @@ 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
- } | {
331
318
  output: {
332
319
  error: string;
333
320
  code?: "invalid_input" | undefined;
@@ -391,6 +378,19 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
391
378
  sha: string;
392
379
  };
393
380
  };
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,10 +451,12 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
451
451
  "/repo/pull": {
452
452
  $post: {
453
453
  output: {
454
- error: string;
454
+ branch: string;
455
+ pulled: true;
456
+ summary: string;
455
457
  };
456
458
  outputFormat: "json";
457
- status: 409;
459
+ status: 200;
458
460
  input: {
459
461
  json: {
460
462
  branch?: string | undefined;
@@ -463,12 +465,10 @@ export declare function createRepoRoutes(deps: RepoRouteDeps): import("hono/hono
463
465
  };
464
466
  } | {
465
467
  output: {
466
- branch: string;
467
- pulled: true;
468
- summary: string;
468
+ error: string;
469
469
  };
470
470
  outputFormat: "json";
471
- status: 200;
471
+ status: 409;
472
472
  input: {
473
473
  json: {
474
474
  branch?: string | undefined;
@@ -52,11 +52,15 @@ export declare function createRunnerInstallRoutes(options: {
52
52
  "/runner-install/:runner": {
53
53
  $post: {
54
54
  output: {
55
- error: string;
56
- code?: "invalid_input" | undefined;
55
+ supported: boolean;
56
+ installedVersion: string | null;
57
+ latestVersion: string | null;
58
+ updateAvailable: boolean;
59
+ phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
60
+ error: string | null;
57
61
  };
58
62
  outputFormat: "json";
59
- status: 400;
63
+ status: 202;
60
64
  input: {
61
65
  param: {
62
66
  runner: string;
@@ -68,15 +72,11 @@ export declare function createRunnerInstallRoutes(options: {
68
72
  };
69
73
  } | {
70
74
  output: {
71
- supported: boolean;
72
- installedVersion: string | null;
73
- latestVersion: string | null;
74
- updateAvailable: boolean;
75
- phase: "activating" | "checking" | "downloading" | "extracting" | "failed" | "idle" | "removing" | "verifying";
76
- error: string | null;
75
+ error: string;
76
+ code?: "invalid_input" | undefined;
77
77
  };
78
78
  outputFormat: "json";
79
- status: 202;
79
+ status: 400;
80
80
  input: {
81
81
  param: {
82
82
  runner: string;
@@ -1336,6 +1336,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1336
1336
  currentStepId?: string | undefined;
1337
1337
  currentStepBackend?: string | undefined;
1338
1338
  error?: string | undefined;
1339
+ statePreview?: {
1340
+ kind: "ask" | "error" | "permission" | "review";
1341
+ text: string;
1342
+ } | undefined;
1339
1343
  worktreePath?: string | undefined;
1340
1344
  }[];
1341
1345
  outputFormat: "json";
@@ -1514,6 +1518,10 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
1514
1518
  currentStepId?: string | undefined;
1515
1519
  currentStepBackend?: string | undefined;
1516
1520
  error?: string | undefined;
1521
+ statePreview?: {
1522
+ kind: "ask" | "error" | "permission" | "review";
1523
+ text: string;
1524
+ } | undefined;
1517
1525
  worktreePath?: string | undefined;
1518
1526
  }[];
1519
1527
  nextCursor: string | null;
@@ -12300,20 +12308,20 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12300
12308
  } & {
12301
12309
  "/runs/:id/handoff": {
12302
12310
  $get: {
12303
- output: string;
12304
- outputFormat: "text";
12305
- status: 200;
12311
+ output: {
12312
+ error: string;
12313
+ };
12314
+ outputFormat: "json";
12315
+ status: 404;
12306
12316
  input: {
12307
12317
  param: {
12308
12318
  id: string;
12309
12319
  };
12310
12320
  };
12311
12321
  } | {
12312
- output: {
12313
- error: string;
12314
- };
12315
- outputFormat: "json";
12316
- status: 404;
12322
+ output: string;
12323
+ outputFormat: "text";
12324
+ status: 200;
12317
12325
  input: {
12318
12326
  param: {
12319
12327
  id: string;
@@ -12351,20 +12359,20 @@ export declare function createRunsRoutes(deps: RunsRouteDeps): import("hono/hono
12351
12359
  } & {
12352
12360
  "/runs/:id/diff": {
12353
12361
  $get: {
12354
- output: string;
12355
- outputFormat: "text";
12356
- status: import("hono/utils/http-status").ContentfulStatusCode;
12362
+ output: {
12363
+ error: string;
12364
+ };
12365
+ outputFormat: "json";
12366
+ status: 404 | 409;
12357
12367
  input: {
12358
12368
  param: {
12359
12369
  id: string;
12360
12370
  };
12361
12371
  };
12362
12372
  } | {
12363
- output: {
12364
- error: string;
12365
- };
12366
- outputFormat: "json";
12367
- status: 404 | 409;
12373
+ output: string;
12374
+ outputFormat: "text";
12375
+ status: import("hono/utils/http-status").ContentfulStatusCode;
12368
12376
  input: {
12369
12377
  param: {
12370
12378
  id: string;