@hearsay-tools/squawk 0.18.0-dev.8461 → 0.18.0-dev.8472

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 (119) hide show
  1. package/dist/contract/index.d.ts +1 -0
  2. package/dist/contract/index.js +866 -804
  3. package/dist/contract/session-context.d.ts +94 -0
  4. package/dist/contract/utf8.d.ts +2 -0
  5. package/dist/delegation/routes.d.ts +4 -4
  6. package/dist/runners/claude/claude-cli-runner.d.ts +2 -0
  7. package/dist/runners/claude/claude-cli-runner.js +6 -1
  8. package/dist/runners/claude/claude-cli-runner.js.map +1 -1
  9. package/dist/runners/claude/claude-partial-messages.d.ts +32 -0
  10. package/dist/runners/claude/claude-partial-messages.js +129 -0
  11. package/dist/runners/claude/claude-partial-messages.js.map +1 -0
  12. package/dist/runners/claude/claude-stream.d.ts +1 -0
  13. package/dist/runners/claude/claude-stream.js +32 -1
  14. package/dist/runners/claude/claude-stream.js.map +1 -1
  15. package/dist/runners/claude/claude-ui-mapper.d.ts +2 -1
  16. package/dist/runners/claude/claude-ui-mapper.js +14 -2
  17. package/dist/runners/claude/claude-ui-mapper.js.map +1 -1
  18. package/dist/runs/run-exits.d.ts +336 -336
  19. package/dist/server/activity-routes.d.ts +23 -23
  20. package/dist/server/models-routes.d.ts +12 -12
  21. package/dist/server/providers-routes.d.ts +57 -57
  22. package/dist/server/repo-routes.d.ts +34 -34
  23. package/dist/server/reports-api.d.ts +2 -2
  24. package/dist/server/runs-routes.d.ts +16 -16
  25. package/dist/server/server.d.ts +817 -655
  26. package/dist/server/server.js +3 -1
  27. package/dist/server/server.js.map +1 -1
  28. package/dist/server/session-context-routes.d.ts +88 -0
  29. package/dist/server/session-context-routes.js +26 -0
  30. package/dist/server/session-context-routes.js.map +1 -0
  31. package/dist/server/workspace-routes.d.ts +84 -84
  32. package/dist/session-context-file.d.ts +11 -0
  33. package/dist/session-context-file.js +144 -0
  34. package/dist/session-context-file.js.map +1 -0
  35. package/dist/session-context.d.ts +48 -0
  36. package/dist/session-context.js +180 -19
  37. package/dist/session-context.js.map +1 -1
  38. package/dist/workflows/input-acknowledgement.d.ts +24 -24
  39. package/dist/workflows/run/wait-kinds.d.ts +52 -52
  40. package/package.json +4 -4
  41. package/web/dist/assets/accounts-section-CuihHvuE.js +1 -0
  42. package/web/dist/assets/activity-motion-bKmIl_Ai.js +2 -0
  43. package/web/dist/assets/{activity-route-BAGYVlk1.js → activity-route-Bnz_NdUs.js} +1 -1
  44. package/web/dist/assets/agent-config-section-uQrQrvBR.js +1 -0
  45. package/web/dist/assets/agent-defaults-section-1UTSo5HV.js +1 -0
  46. package/web/dist/assets/{appearance-Bbmz3RPP.js → appearance-CZ0kce28.js} +1 -1
  47. package/web/dist/assets/{archive-on-merge-field-BHtW_R72.js → archive-on-merge-field-CEyCpweg.js} +1 -1
  48. package/web/dist/assets/attention-BFUaj1mU.js +1 -0
  49. package/web/dist/assets/automations-route-Dq90emTh.js +1 -0
  50. package/web/dist/assets/code-editor-B4baSOhz.js +4 -0
  51. package/web/dist/assets/{commit-diff-panel-CR9lCdYd.js → commit-diff-panel-Btc38N2Q.js} +1 -1
  52. package/web/dist/assets/{diff-BUihlcHW.js → diff-C3-63Zgu.js} +2 -2
  53. package/web/dist/assets/{diff-view-Dy1iZUpI.js → diff-view-D2O2Nm5P.js} +1 -1
  54. package/web/dist/assets/file-preview-Bnq2OKGK.js +2 -0
  55. package/web/dist/assets/{folder-browser-OPEKYHN1.js → folder-browser-Bn83Rjyn.js} +1 -1
  56. package/web/dist/assets/{git-toolbar-CUQ8veXw.js → git-toolbar-RA8rF90D.js} +1 -1
  57. package/web/dist/assets/{github-ClGhwLM1.js → github-BRAMTLRU.js} +1 -1
  58. package/web/dist/assets/{global-activity-route-DzdSy7Wm.js → global-activity-route-Ii_-Fqqo.js} +1 -1
  59. package/web/dist/assets/index-2DP8fWMQ.css +1 -0
  60. package/web/dist/assets/index-DCw_bX8I.js +21 -0
  61. package/web/dist/assets/{label-Cptt_zCn.js → label-tOtTf55G.js} +1 -1
  62. package/web/dist/assets/{live-reads-jRSHgWlx.js → live-reads-CR3-q01w.js} +1 -1
  63. package/web/dist/assets/{markdown-DvutydYG.js → markdown-G8tjpJd_.js} +1 -1
  64. package/web/dist/assets/{notifications-section-BAqEIyDN.js → notifications-section-Fk_ebhy_.js} +1 -1
  65. package/web/dist/assets/{open-in-menu-ytsrlsSn.js → open-in-menu-xzDJ4_Tv.js} +1 -1
  66. package/web/dist/assets/plus-CxRU2X8C.js +1 -0
  67. package/web/dist/assets/{preview-pane-connected-BU0pxY0y.js → preview-pane-connected-8HkdMxOW.js} +2 -2
  68. package/web/dist/assets/{project-location-BIWHn5XU.js → project-location-C9WLgY3A.js} +1 -1
  69. package/web/dist/assets/{project-router-CWwXAsqF.js → project-router-DucFIl_x.js} +1 -1
  70. package/web/dist/assets/{project-scope-context-Dq-Iq7xE.js → project-scope-context-C912rTJP.js} +2 -2
  71. package/web/dist/assets/{projects-section-DbCjlMOl.js → projects-section-Dmj4JFoi.js} +1 -1
  72. package/web/dist/assets/{prompt-templates-section-BsAYf057.js → prompt-templates-section-DzfD2GES.js} +1 -1
  73. package/web/dist/assets/queries-DRpvYgai.js +1 -0
  74. package/web/dist/assets/{reference-chip-D52WtrZ9.js → reference-chip-zRuFkaGy.js} +1 -1
  75. package/web/dist/assets/{remote-settings-notice-Buq1mILf.js → remote-settings-notice-CYiMrnys.js} +1 -1
  76. package/web/dist/assets/repo-git-B3tTtvIQ.js +1 -0
  77. package/web/dist/assets/report-reader-DBGA_8LA.js +1 -0
  78. package/web/dist/assets/{reports-D-IUJk8n.js → reports-B-Q6u2X6.js} +1 -1
  79. package/web/dist/assets/{resources-section-CIF3uOPg.js → resources-section-C5ndEonC.js} +1 -1
  80. package/web/dist/assets/run-header-DK4CZ3hY.js +2 -0
  81. package/web/dist/assets/session-context-section-BAw6x6P2.js +119 -0
  82. package/web/dist/assets/{settings-agent-picker-D7x87Fza.js → settings-agent-picker-fkaIrncp.js} +1 -1
  83. package/web/dist/assets/settings-shell-dzuuT5tw.js +1 -0
  84. package/web/dist/assets/{sidebar-section-2j1dPZW-.js → sidebar-section-BIQilcgt.js} +1 -1
  85. package/web/dist/assets/{skills-BZQKuRIK.js → skills-C-jo20DK.js} +1 -1
  86. package/web/dist/assets/{tab-link-qPg641SX.js → tab-link-Bh6CcIR7.js} +1 -1
  87. package/web/dist/assets/{task-changes-CMCstWbh.js → task-changes-DnG-9vJh.js} +1 -1
  88. package/web/dist/assets/{task-commits-De5jDVRc.js → task-commits-mqs3nfjk.js} +1 -1
  89. package/web/dist/assets/task-files-DKB3Xp3N.js +1 -0
  90. package/web/dist/assets/{task-github-item-Da-J1yOO.js → task-github-item-BA7W64bU.js} +1 -1
  91. package/web/dist/assets/{task-groups-CZAR_voe.js → task-groups-ClNnAPRA.js} +1 -1
  92. package/web/dist/assets/task-thread-B8zgMgtO.js +9 -0
  93. package/web/dist/assets/{tasks-table-CPP0rXJp.js → tasks-table-CE_VVk0w.js} +1 -1
  94. package/web/dist/assets/{thread-state-q7EKE8NY.js → thread-state-8okW1FLM.js} +1 -1
  95. package/web/dist/assets/{use-hand-to-agent-state-V15iu0Vf.js → use-hand-to-agent-state-BwLk3gNd.js} +1 -1
  96. package/web/dist/assets/{useInfiniteQuery-D9ecHhMH.js → useInfiniteQuery-CPEWc6dl.js} +1 -1
  97. package/web/dist/assets/useQuery-BOEhMTCg.js +1 -0
  98. package/web/dist/assets/workflows-BhQJM4JW.js +7 -0
  99. package/web/dist/assets/{workspace-tools-BSJXB55E.js → workspace-tools-BZs10pQZ.js} +1 -1
  100. package/web/dist/assets/{worktrees-section-DWfvhcFw.js → worktrees-section-BTNZUVnW.js} +4 -4
  101. package/web/dist/index.html +15 -15
  102. package/web/dist/assets/accounts-section-COnLhVcc.js +0 -1
  103. package/web/dist/assets/activity-motion-BepAhXl7.js +0 -2
  104. package/web/dist/assets/agent-config-section-D3eY8kW2.js +0 -4
  105. package/web/dist/assets/agent-defaults-section-BxIztnP5.js +0 -1
  106. package/web/dist/assets/attention-CexCTxjN.js +0 -1
  107. package/web/dist/assets/automations-route-vO4VXsmB.js +0 -1
  108. package/web/dist/assets/file-preview-Cq_WJ308.js +0 -2
  109. package/web/dist/assets/index-8Pe4JlYM.js +0 -21
  110. package/web/dist/assets/index-HkNWm2JB.css +0 -1
  111. package/web/dist/assets/queries-Dd6O2cf-.js +0 -1
  112. package/web/dist/assets/repo-git-P8s3o1t9.js +0 -1
  113. package/web/dist/assets/report-reader-BGHRGd46.js +0 -1
  114. package/web/dist/assets/run-header-x8ZoTs8l.js +0 -2
  115. package/web/dist/assets/settings-shell-CdsAJa6b.js +0 -1
  116. package/web/dist/assets/task-files-BTaS-k-o.js +0 -1
  117. package/web/dist/assets/task-thread-A2rldNuS.js +0 -9
  118. package/web/dist/assets/useQuery-B0ubYnT2.js +0 -1
  119. package/web/dist/assets/workflows-BWde25JO.js +0 -7
@@ -156,221 +156,6 @@ export interface ProjectRouteInfo {
156
156
  export declare function projectRouteManifest(app: Hono): ProjectRouteInfo[];
157
157
  export type { ProjectsResponse, RegisterProjectResponse, RemoveProjectResponse, UpdateProjectResponse } from '../contract/index.js';
158
158
  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<{
159
- "/health": {
160
- $get: {
161
- output: {
162
- version: string;
163
- latestVersion?: string | undefined;
164
- repoRoot: string;
165
- repo: {
166
- root: string;
167
- branch: string;
168
- remote?: string | undefined;
169
- } | null;
170
- checks: {
171
- name: string;
172
- available: boolean;
173
- version?: string;
174
- hint?: string;
175
- }[];
176
- defaultRunner: string;
177
- forge: {
178
- available?: boolean | undefined;
179
- reason?: string;
180
- kind: "github";
181
- } | null;
182
- capabilities: {
183
- localHandoff: boolean;
184
- settingsAdmin: boolean;
185
- remoteSettingsAdmin: boolean;
186
- automations: boolean;
187
- preview: boolean;
188
- tokenMetrics: boolean;
189
- tokenUsageMetrics: boolean;
190
- costMetrics: boolean;
191
- };
192
- projects: {
193
- id: string;
194
- name: string;
195
- }[];
196
- bootProject: string;
197
- plugins: {
198
- loaded: {
199
- name: string;
200
- source: "bundled" | "host";
201
- path?: string | undefined;
202
- }[];
203
- failed: {
204
- name: string;
205
- source: "bundled" | "host";
206
- path?: string | undefined;
207
- error: string;
208
- }[];
209
- };
210
- };
211
- outputFormat: "json";
212
- status: import("hono/utils/http-status").ContentfulStatusCode;
213
- input: {};
214
- };
215
- };
216
- }, "/"> | import("hono/types").MergeSchemaPath<{
217
- "/fs/browse": {
218
- $get: {
219
- output: {
220
- error: string;
221
- code?: "invalid_input" | undefined;
222
- };
223
- outputFormat: "json";
224
- status: 400;
225
- input: {
226
- query: {
227
- path?: string | undefined;
228
- showHidden?: string | undefined;
229
- };
230
- };
231
- } | {
232
- output: {
233
- error: string;
234
- };
235
- outputFormat: "json";
236
- status: 400 | 403 | 404;
237
- input: {
238
- query: {
239
- path?: string | undefined;
240
- showHidden?: string | undefined;
241
- };
242
- };
243
- } | {
244
- output: {
245
- path: string;
246
- parent: string | null;
247
- dirs: {
248
- name: string;
249
- path: string;
250
- isRepo: boolean;
251
- }[];
252
- truncated: boolean;
253
- };
254
- outputFormat: "json";
255
- status: import("hono/utils/http-status").ContentfulStatusCode;
256
- input: {
257
- query: {
258
- path?: string | undefined;
259
- showHidden?: string | undefined;
260
- };
261
- };
262
- };
263
- };
264
- }, "/"> | import("hono/types").MergeSchemaPath<{
265
- "/automation-checks/:checkId": {
266
- $get: {
267
- output: {
268
- id: string;
269
- automationId: string;
270
- mode: 'preview' | 'execute';
271
- status: 'queued' | 'running' | 'complete' | 'error';
272
- createdAt: string;
273
- completedAt?: string;
274
- matches?: number;
275
- truncated?: boolean;
276
- error?: string;
277
- };
278
- outputFormat: "json";
279
- status: import("hono/utils/http-status").ContentfulStatusCode;
280
- input: {
281
- param: {
282
- checkId: string;
283
- };
284
- };
285
- } | {
286
- output: {
287
- error: string;
288
- };
289
- outputFormat: "json";
290
- status: 404;
291
- input: {
292
- param: {
293
- checkId: string;
294
- };
295
- };
296
- };
297
- };
298
- }, "/"> | import("hono/types").MergeSchemaPath<{
299
- "/workspace/events": {
300
- $get: {
301
- output: {};
302
- outputFormat: string;
303
- status: import("hono/utils/http-status").StatusCode;
304
- input: {
305
- query: {
306
- runs?: "summary" | undefined;
307
- };
308
- };
309
- } | {
310
- output: {
311
- error: string;
312
- code?: "invalid_input" | undefined;
313
- };
314
- outputFormat: "json";
315
- status: 400;
316
- input: {
317
- query: {
318
- runs?: "summary" | undefined;
319
- };
320
- };
321
- };
322
- };
323
- }, "/"> | import("hono/types").MergeSchemaPath<{
324
- "/models": {
325
- $get: {
326
- output: {
327
- error: string;
328
- code?: "invalid_input" | undefined;
329
- };
330
- outputFormat: "json";
331
- status: 400;
332
- input: {
333
- query: {
334
- runner: string | string[];
335
- profileId?: string | undefined;
336
- };
337
- };
338
- } | {
339
- output: {
340
- runner: string;
341
- models: {
342
- id: string;
343
- label: string;
344
- description: string;
345
- effortLevels?: import('../contract/index.js').EffortLevel[];
346
- }[];
347
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
348
- stale: boolean;
349
- reason?: string;
350
- };
351
- outputFormat: "json";
352
- status: import("hono/utils/http-status").ContentfulStatusCode;
353
- input: {
354
- query: {
355
- runner: string | string[];
356
- profileId?: string | undefined;
357
- };
358
- };
359
- } | {
360
- output: {
361
- error: string;
362
- };
363
- outputFormat: "json";
364
- status: 400;
365
- input: {
366
- query: {
367
- runner: string | string[];
368
- profileId?: string | undefined;
369
- };
370
- };
371
- };
372
- };
373
- }, "/"> | import("hono/types").MergeSchemaPath<{
374
159
  "/workspace/activity": {
375
160
  $get: {
376
161
  output: {
@@ -644,6 +429,221 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
644
429
  };
645
430
  };
646
431
  };
432
+ }, "/"> | import("hono/types").MergeSchemaPath<{
433
+ "/models": {
434
+ $get: {
435
+ output: {
436
+ error: string;
437
+ code?: "invalid_input" | undefined;
438
+ };
439
+ outputFormat: "json";
440
+ status: 400;
441
+ input: {
442
+ query: {
443
+ runner: string | string[];
444
+ profileId?: string | undefined;
445
+ };
446
+ };
447
+ } | {
448
+ output: {
449
+ runner: string;
450
+ models: {
451
+ id: string;
452
+ label: string;
453
+ description: string;
454
+ effortLevels?: import('../contract/index.js').EffortLevel[];
455
+ }[];
456
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
457
+ stale: boolean;
458
+ reason?: string;
459
+ };
460
+ outputFormat: "json";
461
+ status: import("hono/utils/http-status").ContentfulStatusCode;
462
+ input: {
463
+ query: {
464
+ runner: string | string[];
465
+ profileId?: string | undefined;
466
+ };
467
+ };
468
+ } | {
469
+ output: {
470
+ error: string;
471
+ };
472
+ outputFormat: "json";
473
+ status: 400;
474
+ input: {
475
+ query: {
476
+ runner: string | string[];
477
+ profileId?: string | undefined;
478
+ };
479
+ };
480
+ };
481
+ };
482
+ }, "/"> | import("hono/types").MergeSchemaPath<{
483
+ "/fs/browse": {
484
+ $get: {
485
+ output: {
486
+ error: string;
487
+ code?: "invalid_input" | undefined;
488
+ };
489
+ outputFormat: "json";
490
+ status: 400;
491
+ input: {
492
+ query: {
493
+ path?: string | undefined;
494
+ showHidden?: string | undefined;
495
+ };
496
+ };
497
+ } | {
498
+ output: {
499
+ error: string;
500
+ };
501
+ outputFormat: "json";
502
+ status: 400 | 403 | 404;
503
+ input: {
504
+ query: {
505
+ path?: string | undefined;
506
+ showHidden?: string | undefined;
507
+ };
508
+ };
509
+ } | {
510
+ output: {
511
+ path: string;
512
+ parent: string | null;
513
+ dirs: {
514
+ name: string;
515
+ path: string;
516
+ isRepo: boolean;
517
+ }[];
518
+ truncated: boolean;
519
+ };
520
+ outputFormat: "json";
521
+ status: import("hono/utils/http-status").ContentfulStatusCode;
522
+ input: {
523
+ query: {
524
+ path?: string | undefined;
525
+ showHidden?: string | undefined;
526
+ };
527
+ };
528
+ };
529
+ };
530
+ }, "/"> | import("hono/types").MergeSchemaPath<{
531
+ "/workspace/events": {
532
+ $get: {
533
+ output: {};
534
+ outputFormat: string;
535
+ status: import("hono/utils/http-status").StatusCode;
536
+ input: {
537
+ query: {
538
+ runs?: "summary" | undefined;
539
+ };
540
+ };
541
+ } | {
542
+ output: {
543
+ error: string;
544
+ code?: "invalid_input" | undefined;
545
+ };
546
+ outputFormat: "json";
547
+ status: 400;
548
+ input: {
549
+ query: {
550
+ runs?: "summary" | undefined;
551
+ };
552
+ };
553
+ };
554
+ };
555
+ }, "/"> | import("hono/types").MergeSchemaPath<{
556
+ "/health": {
557
+ $get: {
558
+ output: {
559
+ version: string;
560
+ latestVersion?: string | undefined;
561
+ repoRoot: string;
562
+ repo: {
563
+ root: string;
564
+ branch: string;
565
+ remote?: string | undefined;
566
+ } | null;
567
+ checks: {
568
+ name: string;
569
+ available: boolean;
570
+ version?: string;
571
+ hint?: string;
572
+ }[];
573
+ defaultRunner: string;
574
+ forge: {
575
+ available?: boolean | undefined;
576
+ reason?: string;
577
+ kind: "github";
578
+ } | null;
579
+ capabilities: {
580
+ localHandoff: boolean;
581
+ settingsAdmin: boolean;
582
+ remoteSettingsAdmin: boolean;
583
+ automations: boolean;
584
+ preview: boolean;
585
+ tokenMetrics: boolean;
586
+ tokenUsageMetrics: boolean;
587
+ costMetrics: boolean;
588
+ };
589
+ projects: {
590
+ id: string;
591
+ name: string;
592
+ }[];
593
+ bootProject: string;
594
+ plugins: {
595
+ loaded: {
596
+ name: string;
597
+ source: "bundled" | "host";
598
+ path?: string | undefined;
599
+ }[];
600
+ failed: {
601
+ name: string;
602
+ source: "bundled" | "host";
603
+ path?: string | undefined;
604
+ error: string;
605
+ }[];
606
+ };
607
+ };
608
+ outputFormat: "json";
609
+ status: import("hono/utils/http-status").ContentfulStatusCode;
610
+ input: {};
611
+ };
612
+ };
613
+ }, "/"> | import("hono/types").MergeSchemaPath<{
614
+ "/automation-checks/:checkId": {
615
+ $get: {
616
+ output: {
617
+ id: string;
618
+ automationId: string;
619
+ mode: 'preview' | 'execute';
620
+ status: 'queued' | 'running' | 'complete' | 'error';
621
+ createdAt: string;
622
+ completedAt?: string;
623
+ matches?: number;
624
+ truncated?: boolean;
625
+ error?: string;
626
+ };
627
+ outputFormat: "json";
628
+ status: import("hono/utils/http-status").ContentfulStatusCode;
629
+ input: {
630
+ param: {
631
+ checkId: string;
632
+ };
633
+ };
634
+ } | {
635
+ output: {
636
+ error: string;
637
+ };
638
+ outputFormat: "json";
639
+ status: 404;
640
+ input: {
641
+ param: {
642
+ checkId: string;
643
+ };
644
+ };
645
+ };
646
+ };
647
647
  }, "/"> | import("hono/types").MergeSchemaPath<{
648
648
  "/workspace/runs-index": {
649
649
  $get: {
@@ -3392,6 +3392,147 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3392
3392
  };
3393
3393
  };
3394
3394
  };
3395
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3396
+ "/reports/state": {
3397
+ $get: {
3398
+ output: {
3399
+ error: string;
3400
+ };
3401
+ outputFormat: "json";
3402
+ status: 409;
3403
+ input: {};
3404
+ } | {
3405
+ output: {
3406
+ epoch: string;
3407
+ generation: number;
3408
+ metadataGeneration: number;
3409
+ };
3410
+ outputFormat: "json";
3411
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3412
+ input: {};
3413
+ };
3414
+ };
3415
+ } & {
3416
+ "/reports": {
3417
+ $get: {
3418
+ output: {
3419
+ error: string;
3420
+ code?: "invalid_input" | undefined;
3421
+ };
3422
+ outputFormat: "json";
3423
+ status: 400;
3424
+ input: {
3425
+ query: {
3426
+ q?: string | undefined;
3427
+ before?: string | undefined;
3428
+ limit?: number | undefined;
3429
+ };
3430
+ };
3431
+ } | {
3432
+ output: {
3433
+ error: string;
3434
+ };
3435
+ outputFormat: "json";
3436
+ status: 409;
3437
+ input: {
3438
+ query: {
3439
+ q?: string | undefined;
3440
+ before?: string | undefined;
3441
+ limit?: number | undefined;
3442
+ };
3443
+ };
3444
+ } | {
3445
+ output: {
3446
+ error: string;
3447
+ };
3448
+ outputFormat: "json";
3449
+ status: 400;
3450
+ input: {
3451
+ query: {
3452
+ q?: string | undefined;
3453
+ before?: string | undefined;
3454
+ limit?: number | undefined;
3455
+ };
3456
+ };
3457
+ } | {
3458
+ output: {
3459
+ reports: {
3460
+ id: string;
3461
+ runId: string;
3462
+ name: string;
3463
+ title: string;
3464
+ createdAt: string;
3465
+ size: number;
3466
+ taskTitle: string;
3467
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3468
+ }[];
3469
+ nextCursor: string | null;
3470
+ total: number;
3471
+ };
3472
+ outputFormat: "json";
3473
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3474
+ input: {
3475
+ query: {
3476
+ q?: string | undefined;
3477
+ before?: string | undefined;
3478
+ limit?: number | undefined;
3479
+ };
3480
+ };
3481
+ };
3482
+ };
3483
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3484
+ "/open-targets": {
3485
+ $get: {
3486
+ output: {
3487
+ targets: {
3488
+ id: string;
3489
+ label: string;
3490
+ icon?: string;
3491
+ }[];
3492
+ };
3493
+ outputFormat: "json";
3494
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3495
+ input: {};
3496
+ };
3497
+ };
3498
+ } & {
3499
+ "/open-in": {
3500
+ $post: {
3501
+ output: {
3502
+ error: string;
3503
+ };
3504
+ outputFormat: "json";
3505
+ status: 409;
3506
+ input: {
3507
+ json: {
3508
+ target: string;
3509
+ };
3510
+ };
3511
+ } | {
3512
+ output: {
3513
+ error: string;
3514
+ };
3515
+ outputFormat: "json";
3516
+ status: 400;
3517
+ input: {
3518
+ json: {
3519
+ target: string;
3520
+ };
3521
+ };
3522
+ } | {
3523
+ output: {
3524
+ opened: true;
3525
+ path: string;
3526
+ };
3527
+ outputFormat: "json";
3528
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3529
+ input: {
3530
+ json: {
3531
+ target: string;
3532
+ };
3533
+ };
3534
+ };
3535
+ };
3395
3536
  }, "/"> | import("hono/types").MergeSchemaPath<{
3396
3537
  "/ui-state": {
3397
3538
  $get: {
@@ -3515,93 +3656,40 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3515
3656
  error: string;
3516
3657
  };
3517
3658
  outputFormat: "json";
3518
- status: 500;
3519
- input: {
3520
- json: {
3521
- [x: string]: unknown;
3522
- sidebarLimits?: {
3523
- overall?: number | null | undefined;
3524
- needsYou?: number | null | undefined;
3525
- finished?: number | null | undefined;
3526
- working?: number | null | undefined;
3527
- } | undefined;
3528
- lastWorktree?: boolean | undefined;
3529
- lastAutonomous?: boolean | undefined;
3530
- runsView?: "list" | "table" | undefined;
3531
- githubView?: "issues" | "prs" | undefined;
3532
- appearance?: {
3533
- accent?: "cezarion" | "lime" | "violet" | undefined;
3534
- density?: "comfortable" | "compact" | "ultra" | undefined;
3535
- width?: "narrow" | "wide" | undefined;
3536
- } | undefined;
3537
- lastTask?: {
3538
- source: "skill" | "workflow";
3539
- ref: string;
3540
- } | null | undefined;
3541
- recentSources?: {
3542
- source: "skill" | "workflow";
3543
- ref: string;
3544
- }[] | undefined;
3545
- skillUsage?: Record<string, number> | undefined;
3546
- promptTemplates?: {
3547
- id: string;
3548
- label: string;
3549
- text: string;
3550
- skills?: string[] | undefined;
3551
- }[] | undefined;
3552
- };
3553
- };
3554
- };
3555
- };
3556
- }, "/"> | import("hono/types").MergeSchemaPath<{
3557
- "/open-targets": {
3558
- $get: {
3559
- output: {
3560
- targets: {
3561
- id: string;
3562
- label: string;
3563
- icon?: string;
3564
- }[];
3565
- };
3566
- outputFormat: "json";
3567
- status: import("hono/utils/http-status").ContentfulStatusCode;
3568
- input: {};
3569
- };
3570
- };
3571
- } & {
3572
- "/open-in": {
3573
- $post: {
3574
- output: {
3575
- error: string;
3576
- };
3577
- outputFormat: "json";
3578
- status: 409;
3579
- input: {
3580
- json: {
3581
- target: string;
3582
- };
3583
- };
3584
- } | {
3585
- output: {
3586
- error: string;
3587
- };
3588
- outputFormat: "json";
3589
- status: 400;
3590
- input: {
3591
- json: {
3592
- target: string;
3593
- };
3594
- };
3595
- } | {
3596
- output: {
3597
- opened: true;
3598
- path: string;
3599
- };
3600
- outputFormat: "json";
3601
- status: import("hono/utils/http-status").ContentfulStatusCode;
3659
+ status: 500;
3602
3660
  input: {
3603
3661
  json: {
3604
- target: string;
3662
+ [x: string]: unknown;
3663
+ sidebarLimits?: {
3664
+ overall?: number | null | undefined;
3665
+ needsYou?: number | null | undefined;
3666
+ finished?: number | null | undefined;
3667
+ working?: number | null | undefined;
3668
+ } | undefined;
3669
+ lastWorktree?: boolean | undefined;
3670
+ lastAutonomous?: boolean | undefined;
3671
+ runsView?: "list" | "table" | undefined;
3672
+ githubView?: "issues" | "prs" | undefined;
3673
+ appearance?: {
3674
+ accent?: "cezarion" | "lime" | "violet" | undefined;
3675
+ density?: "comfortable" | "compact" | "ultra" | undefined;
3676
+ width?: "narrow" | "wide" | undefined;
3677
+ } | undefined;
3678
+ lastTask?: {
3679
+ source: "skill" | "workflow";
3680
+ ref: string;
3681
+ } | null | undefined;
3682
+ recentSources?: {
3683
+ source: "skill" | "workflow";
3684
+ ref: string;
3685
+ }[] | undefined;
3686
+ skillUsage?: Record<string, number> | undefined;
3687
+ promptTemplates?: {
3688
+ id: string;
3689
+ label: string;
3690
+ text: string;
3691
+ skills?: string[] | undefined;
3692
+ }[] | undefined;
3605
3693
  };
3606
3694
  };
3607
3695
  };
@@ -3880,94 +3968,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3880
3968
  };
3881
3969
  };
3882
3970
  };
3883
- }, "/"> | import("hono/types").MergeSchemaPath<{
3884
- "/reports/state": {
3885
- $get: {
3886
- output: {
3887
- error: string;
3888
- };
3889
- outputFormat: "json";
3890
- status: 409;
3891
- input: {};
3892
- } | {
3893
- output: {
3894
- epoch: string;
3895
- generation: number;
3896
- metadataGeneration: number;
3897
- };
3898
- outputFormat: "json";
3899
- status: import("hono/utils/http-status").ContentfulStatusCode;
3900
- input: {};
3901
- };
3902
- };
3903
- } & {
3904
- "/reports": {
3905
- $get: {
3906
- output: {
3907
- error: string;
3908
- code?: "invalid_input" | undefined;
3909
- };
3910
- outputFormat: "json";
3911
- status: 400;
3912
- input: {
3913
- query: {
3914
- q?: string | undefined;
3915
- before?: string | undefined;
3916
- limit?: number | undefined;
3917
- };
3918
- };
3919
- } | {
3920
- output: {
3921
- error: string;
3922
- };
3923
- outputFormat: "json";
3924
- status: 409;
3925
- input: {
3926
- query: {
3927
- q?: string | undefined;
3928
- before?: string | undefined;
3929
- limit?: number | undefined;
3930
- };
3931
- };
3932
- } | {
3933
- output: {
3934
- error: string;
3935
- };
3936
- outputFormat: "json";
3937
- status: 400;
3938
- input: {
3939
- query: {
3940
- q?: string | undefined;
3941
- before?: string | undefined;
3942
- limit?: number | undefined;
3943
- };
3944
- };
3945
- } | {
3946
- output: {
3947
- reports: {
3948
- id: string;
3949
- runId: string;
3950
- name: string;
3951
- title: string;
3952
- createdAt: string;
3953
- size: number;
3954
- taskTitle: string;
3955
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3956
- }[];
3957
- nextCursor: string | null;
3958
- total: number;
3959
- };
3960
- outputFormat: "json";
3961
- status: import("hono/utils/http-status").ContentfulStatusCode;
3962
- input: {
3963
- query: {
3964
- q?: string | undefined;
3965
- before?: string | undefined;
3966
- limit?: number | undefined;
3967
- };
3968
- };
3969
- };
3970
- };
3971
3971
  }, "/"> | import("hono/types").MergeSchemaPath<{
3972
3972
  "/worktrees": {
3973
3973
  $get: {
@@ -4184,6 +4184,87 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4184
4184
  };
4185
4185
  };
4186
4186
  };
4187
+ }, "/"> | import("hono/types").MergeSchemaPath<{
4188
+ "/session-context": {
4189
+ $get: {
4190
+ output: {
4191
+ path: string;
4192
+ exists: boolean;
4193
+ content: string;
4194
+ version: string | null;
4195
+ writable: boolean;
4196
+ readOnlyReason: string | null;
4197
+ };
4198
+ outputFormat: "json";
4199
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4200
+ input: {};
4201
+ };
4202
+ };
4203
+ } & {
4204
+ "/session-context/preview": {
4205
+ $post: {
4206
+ output: {
4207
+ problems: {
4208
+ line: number | null;
4209
+ rule: number | null;
4210
+ message: string;
4211
+ }[];
4212
+ blocks: {
4213
+ id: string;
4214
+ target: import("../session-context.ts").SessionContextRule['target'] | 'built-in' | null;
4215
+ status: import("../session-context.ts").SessionContextReportStatus | 'not-for-role';
4216
+ bytes: number | null;
4217
+ reason: string | null;
4218
+ sources: string[];
4219
+ text: string | null;
4220
+ truncated: boolean;
4221
+ }[];
4222
+ usedBytes: number;
4223
+ limitBytes: number;
4224
+ };
4225
+ outputFormat: "json";
4226
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4227
+ input: {
4228
+ json: {
4229
+ content: string;
4230
+ role: "parent" | "worker";
4231
+ };
4232
+ };
4233
+ };
4234
+ };
4235
+ } & {
4236
+ "/session-context": {
4237
+ $put: {
4238
+ output: {
4239
+ path: string;
4240
+ exists: boolean;
4241
+ content: string;
4242
+ version: string | null;
4243
+ writable: boolean;
4244
+ readOnlyReason: string | null;
4245
+ };
4246
+ outputFormat: "json";
4247
+ status: import("hono/utils/http-status").ContentfulStatusCode;
4248
+ input: {
4249
+ json: {
4250
+ content: string;
4251
+ version: string | null;
4252
+ };
4253
+ };
4254
+ } | {
4255
+ output: {
4256
+ error: string;
4257
+ };
4258
+ outputFormat: "json";
4259
+ status: 400 | 409 | 500;
4260
+ input: {
4261
+ json: {
4262
+ content: string;
4263
+ version: string | null;
4264
+ };
4265
+ };
4266
+ };
4267
+ };
4187
4268
  }, "/"> | import("hono/types").MergeSchemaPath<{
4188
4269
  "/workflows": {
4189
4270
  $get: {
@@ -4644,6 +4725,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4644
4725
  sha: string;
4645
4726
  };
4646
4727
  };
4728
+ } | {
4729
+ output: {
4730
+ error: string;
4731
+ };
4732
+ outputFormat: "json";
4733
+ status: 409;
4734
+ input: {
4735
+ query: {
4736
+ structured?: string | undefined;
4737
+ };
4738
+ } & {
4739
+ param: {
4740
+ sha: string;
4741
+ };
4742
+ };
4647
4743
  } | {
4648
4744
  output: {
4649
4745
  sha: string;
@@ -4677,26 +4773,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4677
4773
  sha: string;
4678
4774
  };
4679
4775
  };
4680
- } | {
4681
- output: {
4682
- error: string;
4683
- };
4684
- outputFormat: "json";
4685
- status: 409;
4686
- input: {
4687
- query: {
4688
- structured?: string | undefined;
4689
- };
4690
- } & {
4691
- param: {
4692
- sha: string;
4693
- };
4694
- };
4695
4776
  };
4696
4777
  };
4697
4778
  } & {
4698
4779
  "/repo/changes": {
4699
4780
  $get: {
4781
+ output: {
4782
+ error: string;
4783
+ };
4784
+ outputFormat: "json";
4785
+ status: 409;
4786
+ input: {};
4787
+ } | {
4700
4788
  output: {
4701
4789
  files: {
4702
4790
  path: string;
@@ -4721,13 +4809,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
4721
4809
  outputFormat: "json";
4722
4810
  status: import("hono/utils/http-status").ContentfulStatusCode;
4723
4811
  input: {};
4724
- } | {
4725
- output: {
4726
- error: string;
4727
- };
4728
- outputFormat: "json";
4729
- status: 409;
4730
- input: {};
4731
4812
  };
4732
4813
  };
4733
4814
  } & {
@@ -8596,37 +8677,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8596
8677
  } & {
8597
8678
  "/runs/:id/worker-destroy": {
8598
8679
  $post: {
8599
- output: {
8600
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8601
- readonly error: string;
8602
- readonly modelChoices?: {
8603
- runner: string;
8604
- requestedModel: string;
8605
- availableModels: {
8606
- id: string;
8607
- label: string;
8608
- description: string;
8609
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8610
- }[];
8611
- otherRunners: string[];
8612
- } | undefined;
8613
- };
8614
- outputFormat: "json";
8615
- status: 400 | 401 | 403 | 409 | 503;
8616
- input: {
8617
- query: {
8618
- [x: string]: string | string[];
8619
- };
8620
- } & {
8621
- param: {
8622
- id: string;
8623
- };
8624
- } & {
8625
- json: {
8626
- discardWork?: true | undefined;
8627
- };
8628
- };
8629
- } | {
8630
8680
  output: {
8631
8681
  error: string;
8632
8682
  code?: "invalid_input" | undefined;
@@ -8712,6 +8762,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8712
8762
  discardWork?: true | undefined;
8713
8763
  };
8714
8764
  };
8765
+ } | {
8766
+ output: {
8767
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8768
+ readonly error: string;
8769
+ readonly modelChoices?: {
8770
+ runner: string;
8771
+ requestedModel: string;
8772
+ availableModels: {
8773
+ id: string;
8774
+ label: string;
8775
+ description: string;
8776
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8777
+ }[];
8778
+ otherRunners: string[];
8779
+ } | undefined;
8780
+ };
8781
+ outputFormat: "json";
8782
+ status: 400 | 401 | 403 | 409 | 503;
8783
+ input: {
8784
+ query: {
8785
+ [x: string]: string | string[];
8786
+ };
8787
+ } & {
8788
+ param: {
8789
+ id: string;
8790
+ };
8791
+ } & {
8792
+ json: {
8793
+ discardWork?: true | undefined;
8794
+ };
8795
+ };
8715
8796
  };
8716
8797
  };
8717
8798
  } & {
@@ -19110,7 +19191,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19110
19191
  error: string;
19111
19192
  };
19112
19193
  outputFormat: "json";
19113
- status: 400;
19194
+ status: 404 | 409;
19114
19195
  input: {
19115
19196
  json: {
19116
19197
  target: string;
@@ -19123,11 +19204,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19123
19204
  };
19124
19205
  } | {
19125
19206
  output: {
19126
- opened: true;
19127
- path: string;
19207
+ error: string;
19128
19208
  };
19129
19209
  outputFormat: "json";
19130
- status: import("hono/utils/http-status").ContentfulStatusCode;
19210
+ status: 400;
19131
19211
  input: {
19132
19212
  json: {
19133
19213
  target: string;
@@ -19140,10 +19220,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19140
19220
  };
19141
19221
  } | {
19142
19222
  output: {
19143
- error: string;
19223
+ opened: true;
19224
+ path: string;
19144
19225
  };
19145
19226
  outputFormat: "json";
19146
- status: 404 | 409;
19227
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19147
19228
  input: {
19148
19229
  json: {
19149
19230
  target: string;
@@ -19316,9 +19397,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19316
19397
  status: 404 | 409;
19317
19398
  input: {
19318
19399
  param: {
19319
- id: string;
19320
- } & {
19321
19400
  sha: string;
19401
+ } & {
19402
+ id: string;
19322
19403
  };
19323
19404
  };
19324
19405
  } | {
@@ -19347,9 +19428,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19347
19428
  status: import("hono/utils/http-status").ContentfulStatusCode;
19348
19429
  input: {
19349
19430
  param: {
19350
- id: string;
19351
- } & {
19352
19431
  sha: string;
19432
+ } & {
19433
+ id: string;
19353
19434
  };
19354
19435
  };
19355
19436
  };
@@ -20033,6 +20114,147 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20033
20114
  };
20034
20115
  };
20035
20116
  };
20117
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20118
+ "/reports/state": {
20119
+ $get: {
20120
+ output: {
20121
+ error: string;
20122
+ };
20123
+ outputFormat: "json";
20124
+ status: 409;
20125
+ input: {};
20126
+ } | {
20127
+ output: {
20128
+ epoch: string;
20129
+ generation: number;
20130
+ metadataGeneration: number;
20131
+ };
20132
+ outputFormat: "json";
20133
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20134
+ input: {};
20135
+ };
20136
+ };
20137
+ } & {
20138
+ "/reports": {
20139
+ $get: {
20140
+ output: {
20141
+ error: string;
20142
+ code?: "invalid_input" | undefined;
20143
+ };
20144
+ outputFormat: "json";
20145
+ status: 400;
20146
+ input: {
20147
+ query: {
20148
+ q?: string | undefined;
20149
+ before?: string | undefined;
20150
+ limit?: number | undefined;
20151
+ };
20152
+ };
20153
+ } | {
20154
+ output: {
20155
+ error: string;
20156
+ };
20157
+ outputFormat: "json";
20158
+ status: 409;
20159
+ input: {
20160
+ query: {
20161
+ q?: string | undefined;
20162
+ before?: string | undefined;
20163
+ limit?: number | undefined;
20164
+ };
20165
+ };
20166
+ } | {
20167
+ output: {
20168
+ error: string;
20169
+ };
20170
+ outputFormat: "json";
20171
+ status: 400;
20172
+ input: {
20173
+ query: {
20174
+ q?: string | undefined;
20175
+ before?: string | undefined;
20176
+ limit?: number | undefined;
20177
+ };
20178
+ };
20179
+ } | {
20180
+ output: {
20181
+ reports: {
20182
+ id: string;
20183
+ runId: string;
20184
+ name: string;
20185
+ title: string;
20186
+ createdAt: string;
20187
+ size: number;
20188
+ taskTitle: string;
20189
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
20190
+ }[];
20191
+ nextCursor: string | null;
20192
+ total: number;
20193
+ };
20194
+ outputFormat: "json";
20195
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20196
+ input: {
20197
+ query: {
20198
+ q?: string | undefined;
20199
+ before?: string | undefined;
20200
+ limit?: number | undefined;
20201
+ };
20202
+ };
20203
+ };
20204
+ };
20205
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20206
+ "/open-targets": {
20207
+ $get: {
20208
+ output: {
20209
+ targets: {
20210
+ id: string;
20211
+ label: string;
20212
+ icon?: string;
20213
+ }[];
20214
+ };
20215
+ outputFormat: "json";
20216
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20217
+ input: {};
20218
+ };
20219
+ };
20220
+ } & {
20221
+ "/open-in": {
20222
+ $post: {
20223
+ output: {
20224
+ error: string;
20225
+ };
20226
+ outputFormat: "json";
20227
+ status: 409;
20228
+ input: {
20229
+ json: {
20230
+ target: string;
20231
+ };
20232
+ };
20233
+ } | {
20234
+ output: {
20235
+ error: string;
20236
+ };
20237
+ outputFormat: "json";
20238
+ status: 400;
20239
+ input: {
20240
+ json: {
20241
+ target: string;
20242
+ };
20243
+ };
20244
+ } | {
20245
+ output: {
20246
+ opened: true;
20247
+ path: string;
20248
+ };
20249
+ outputFormat: "json";
20250
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20251
+ input: {
20252
+ json: {
20253
+ target: string;
20254
+ };
20255
+ };
20256
+ };
20257
+ };
20036
20258
  }, "/"> | import("hono/types").MergeSchemaPath<{
20037
20259
  "/ui-state": {
20038
20260
  $get: {
@@ -20194,59 +20416,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20194
20416
  };
20195
20417
  };
20196
20418
  };
20197
- }, "/"> | import("hono/types").MergeSchemaPath<{
20198
- "/open-targets": {
20199
- $get: {
20200
- output: {
20201
- targets: {
20202
- id: string;
20203
- label: string;
20204
- icon?: string;
20205
- }[];
20206
- };
20207
- outputFormat: "json";
20208
- status: import("hono/utils/http-status").ContentfulStatusCode;
20209
- input: {};
20210
- };
20211
- };
20212
- } & {
20213
- "/open-in": {
20214
- $post: {
20215
- output: {
20216
- error: string;
20217
- };
20218
- outputFormat: "json";
20219
- status: 409;
20220
- input: {
20221
- json: {
20222
- target: string;
20223
- };
20224
- };
20225
- } | {
20226
- output: {
20227
- error: string;
20228
- };
20229
- outputFormat: "json";
20230
- status: 400;
20231
- input: {
20232
- json: {
20233
- target: string;
20234
- };
20235
- };
20236
- } | {
20237
- output: {
20238
- opened: true;
20239
- path: string;
20240
- };
20241
- outputFormat: "json";
20242
- status: import("hono/utils/http-status").ContentfulStatusCode;
20243
- input: {
20244
- json: {
20245
- target: string;
20246
- };
20247
- };
20248
- };
20249
- };
20250
20419
  }, "/"> | import("hono/types").MergeSchemaPath<{
20251
20420
  "/runs/:id/events": {
20252
20421
  $get: {
@@ -20521,94 +20690,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20521
20690
  };
20522
20691
  };
20523
20692
  };
20524
- }, "/"> | import("hono/types").MergeSchemaPath<{
20525
- "/reports/state": {
20526
- $get: {
20527
- output: {
20528
- error: string;
20529
- };
20530
- outputFormat: "json";
20531
- status: 409;
20532
- input: {};
20533
- } | {
20534
- output: {
20535
- epoch: string;
20536
- generation: number;
20537
- metadataGeneration: number;
20538
- };
20539
- outputFormat: "json";
20540
- status: import("hono/utils/http-status").ContentfulStatusCode;
20541
- input: {};
20542
- };
20543
- };
20544
- } & {
20545
- "/reports": {
20546
- $get: {
20547
- output: {
20548
- error: string;
20549
- code?: "invalid_input" | undefined;
20550
- };
20551
- outputFormat: "json";
20552
- status: 400;
20553
- input: {
20554
- query: {
20555
- q?: string | undefined;
20556
- before?: string | undefined;
20557
- limit?: number | undefined;
20558
- };
20559
- };
20560
- } | {
20561
- output: {
20562
- error: string;
20563
- };
20564
- outputFormat: "json";
20565
- status: 409;
20566
- input: {
20567
- query: {
20568
- q?: string | undefined;
20569
- before?: string | undefined;
20570
- limit?: number | undefined;
20571
- };
20572
- };
20573
- } | {
20574
- output: {
20575
- error: string;
20576
- };
20577
- outputFormat: "json";
20578
- status: 400;
20579
- input: {
20580
- query: {
20581
- q?: string | undefined;
20582
- before?: string | undefined;
20583
- limit?: number | undefined;
20584
- };
20585
- };
20586
- } | {
20587
- output: {
20588
- reports: {
20589
- id: string;
20590
- runId: string;
20591
- name: string;
20592
- title: string;
20593
- createdAt: string;
20594
- size: number;
20595
- taskTitle: string;
20596
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
20597
- }[];
20598
- nextCursor: string | null;
20599
- total: number;
20600
- };
20601
- outputFormat: "json";
20602
- status: import("hono/utils/http-status").ContentfulStatusCode;
20603
- input: {
20604
- query: {
20605
- q?: string | undefined;
20606
- before?: string | undefined;
20607
- limit?: number | undefined;
20608
- };
20609
- };
20610
- };
20611
- };
20612
20693
  }, "/"> | import("hono/types").MergeSchemaPath<{
20613
20694
  "/worktrees": {
20614
20695
  $get: {
@@ -20825,6 +20906,87 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
20825
20906
  };
20826
20907
  };
20827
20908
  };
20909
+ }, "/"> | import("hono/types").MergeSchemaPath<{
20910
+ "/session-context": {
20911
+ $get: {
20912
+ output: {
20913
+ path: string;
20914
+ exists: boolean;
20915
+ content: string;
20916
+ version: string | null;
20917
+ writable: boolean;
20918
+ readOnlyReason: string | null;
20919
+ };
20920
+ outputFormat: "json";
20921
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20922
+ input: {};
20923
+ };
20924
+ };
20925
+ } & {
20926
+ "/session-context/preview": {
20927
+ $post: {
20928
+ output: {
20929
+ problems: {
20930
+ line: number | null;
20931
+ rule: number | null;
20932
+ message: string;
20933
+ }[];
20934
+ blocks: {
20935
+ id: string;
20936
+ target: import("../session-context.ts").SessionContextRule['target'] | 'built-in' | null;
20937
+ status: import("../session-context.ts").SessionContextReportStatus | 'not-for-role';
20938
+ bytes: number | null;
20939
+ reason: string | null;
20940
+ sources: string[];
20941
+ text: string | null;
20942
+ truncated: boolean;
20943
+ }[];
20944
+ usedBytes: number;
20945
+ limitBytes: number;
20946
+ };
20947
+ outputFormat: "json";
20948
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20949
+ input: {
20950
+ json: {
20951
+ content: string;
20952
+ role: "parent" | "worker";
20953
+ };
20954
+ };
20955
+ };
20956
+ };
20957
+ } & {
20958
+ "/session-context": {
20959
+ $put: {
20960
+ output: {
20961
+ path: string;
20962
+ exists: boolean;
20963
+ content: string;
20964
+ version: string | null;
20965
+ writable: boolean;
20966
+ readOnlyReason: string | null;
20967
+ };
20968
+ outputFormat: "json";
20969
+ status: import("hono/utils/http-status").ContentfulStatusCode;
20970
+ input: {
20971
+ json: {
20972
+ content: string;
20973
+ version: string | null;
20974
+ };
20975
+ };
20976
+ } | {
20977
+ output: {
20978
+ error: string;
20979
+ };
20980
+ outputFormat: "json";
20981
+ status: 400 | 409 | 500;
20982
+ input: {
20983
+ json: {
20984
+ content: string;
20985
+ version: string | null;
20986
+ };
20987
+ };
20988
+ };
20989
+ };
20828
20990
  }, "/"> | import("hono/types").MergeSchemaPath<{
20829
20991
  "/workflows": {
20830
20992
  $get: {
@@ -21285,6 +21447,21 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21285
21447
  sha: string;
21286
21448
  };
21287
21449
  };
21450
+ } | {
21451
+ output: {
21452
+ error: string;
21453
+ };
21454
+ outputFormat: "json";
21455
+ status: 409;
21456
+ input: {
21457
+ query: {
21458
+ structured?: string | undefined;
21459
+ };
21460
+ } & {
21461
+ param: {
21462
+ sha: string;
21463
+ };
21464
+ };
21288
21465
  } | {
21289
21466
  output: {
21290
21467
  sha: string;
@@ -21318,26 +21495,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21318
21495
  sha: string;
21319
21496
  };
21320
21497
  };
21321
- } | {
21322
- output: {
21323
- error: string;
21324
- };
21325
- outputFormat: "json";
21326
- status: 409;
21327
- input: {
21328
- query: {
21329
- structured?: string | undefined;
21330
- };
21331
- } & {
21332
- param: {
21333
- sha: string;
21334
- };
21335
- };
21336
21498
  };
21337
21499
  };
21338
21500
  } & {
21339
21501
  "/repo/changes": {
21340
21502
  $get: {
21503
+ output: {
21504
+ error: string;
21505
+ };
21506
+ outputFormat: "json";
21507
+ status: 409;
21508
+ input: {};
21509
+ } | {
21341
21510
  output: {
21342
21511
  files: {
21343
21512
  path: string;
@@ -21362,13 +21531,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21362
21531
  outputFormat: "json";
21363
21532
  status: import("hono/utils/http-status").ContentfulStatusCode;
21364
21533
  input: {};
21365
- } | {
21366
- output: {
21367
- error: string;
21368
- };
21369
- outputFormat: "json";
21370
- status: 409;
21371
- input: {};
21372
21534
  };
21373
21535
  };
21374
21536
  } & {
@@ -25237,37 +25399,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25237
25399
  } & {
25238
25400
  "/runs/:id/worker-destroy": {
25239
25401
  $post: {
25240
- output: {
25241
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
25242
- readonly error: string;
25243
- readonly modelChoices?: {
25244
- runner: string;
25245
- requestedModel: string;
25246
- availableModels: {
25247
- id: string;
25248
- label: string;
25249
- description: string;
25250
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
25251
- }[];
25252
- otherRunners: string[];
25253
- } | undefined;
25254
- };
25255
- outputFormat: "json";
25256
- status: 400 | 401 | 403 | 409 | 503;
25257
- input: {
25258
- query: {
25259
- [x: string]: string | string[];
25260
- };
25261
- } & {
25262
- param: {
25263
- id: string;
25264
- };
25265
- } & {
25266
- json: {
25267
- discardWork?: true | undefined;
25268
- };
25269
- };
25270
- } | {
25271
25402
  output: {
25272
25403
  error: string;
25273
25404
  code?: "invalid_input" | undefined;
@@ -25353,6 +25484,37 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
25353
25484
  discardWork?: true | undefined;
25354
25485
  };
25355
25486
  };
25487
+ } | {
25488
+ output: {
25489
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
25490
+ readonly error: string;
25491
+ readonly modelChoices?: {
25492
+ runner: string;
25493
+ requestedModel: string;
25494
+ availableModels: {
25495
+ id: string;
25496
+ label: string;
25497
+ description: string;
25498
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
25499
+ }[];
25500
+ otherRunners: string[];
25501
+ } | undefined;
25502
+ };
25503
+ outputFormat: "json";
25504
+ status: 400 | 401 | 403 | 409 | 503;
25505
+ input: {
25506
+ query: {
25507
+ [x: string]: string | string[];
25508
+ };
25509
+ } & {
25510
+ param: {
25511
+ id: string;
25512
+ };
25513
+ } & {
25514
+ json: {
25515
+ discardWork?: true | undefined;
25516
+ };
25517
+ };
25356
25518
  };
25357
25519
  };
25358
25520
  } & {
@@ -35751,7 +35913,7 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35751
35913
  error: string;
35752
35914
  };
35753
35915
  outputFormat: "json";
35754
- status: 400;
35916
+ status: 404 | 409;
35755
35917
  input: {
35756
35918
  json: {
35757
35919
  target: string;
@@ -35764,11 +35926,10 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35764
35926
  };
35765
35927
  } | {
35766
35928
  output: {
35767
- opened: true;
35768
- path: string;
35929
+ error: string;
35769
35930
  };
35770
35931
  outputFormat: "json";
35771
- status: import("hono/utils/http-status").ContentfulStatusCode;
35932
+ status: 400;
35772
35933
  input: {
35773
35934
  json: {
35774
35935
  target: string;
@@ -35781,10 +35942,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35781
35942
  };
35782
35943
  } | {
35783
35944
  output: {
35784
- error: string;
35945
+ opened: true;
35946
+ path: string;
35785
35947
  };
35786
35948
  outputFormat: "json";
35787
- status: 404 | 409;
35949
+ status: import("hono/utils/http-status").ContentfulStatusCode;
35788
35950
  input: {
35789
35951
  json: {
35790
35952
  target: string;
@@ -35957,9 +36119,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35957
36119
  status: 404 | 409;
35958
36120
  input: {
35959
36121
  param: {
35960
- id: string;
35961
- } & {
35962
36122
  sha: string;
36123
+ } & {
36124
+ id: string;
35963
36125
  };
35964
36126
  };
35965
36127
  } | {
@@ -35988,9 +36150,9 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
35988
36150
  status: import("hono/utils/http-status").ContentfulStatusCode;
35989
36151
  input: {
35990
36152
  param: {
35991
- id: string;
35992
- } & {
35993
36153
  sha: string;
36154
+ } & {
36155
+ id: string;
35994
36156
  };
35995
36157
  };
35996
36158
  };