@hearsay-tools/squawk 0.18.0-dev.8012 → 0.18.0-dev.8015

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 (35) hide show
  1. package/dist/delegation/conversations.d.ts +2 -1
  2. package/dist/delegation/conversations.js +1 -1
  3. package/dist/delegation/conversations.js.map +1 -1
  4. package/dist/project-migration/live.d.ts +1 -1
  5. package/dist/project-migration/live.js +1 -1
  6. package/dist/project-migration/live.js.map +1 -1
  7. package/dist/runs/archive-family.js +2 -2
  8. package/dist/runs/archive-family.js.map +1 -1
  9. package/dist/runs/outcome-commit.js +6 -7
  10. package/dist/runs/outcome-commit.js.map +1 -1
  11. package/dist/runs/run-archive.d.ts +72 -72
  12. package/dist/runs/run-decode.d.ts +3128 -0
  13. package/dist/runs/run-decode.js +132 -0
  14. package/dist/runs/run-decode.js.map +1 -0
  15. package/dist/runs/run-index.d.ts +5 -1
  16. package/dist/runs/run-index.js +6 -1
  17. package/dist/runs/run-index.js.map +1 -1
  18. package/dist/runs/store.d.ts +4 -3131
  19. package/dist/runs/store.js +4 -132
  20. package/dist/runs/store.js.map +1 -1
  21. package/dist/runs/wait-helpers.d.ts +28 -0
  22. package/dist/runs/wait-helpers.js +34 -0
  23. package/dist/runs/wait-helpers.js.map +1 -0
  24. package/dist/server/server.d.ts +709 -709
  25. package/dist/server/server.js +1 -2
  26. package/dist/server/server.js.map +1 -1
  27. package/dist/workflows/run/opening.d.ts +2 -2
  28. package/dist/workflows/run/wait-kinds.d.ts +2 -5
  29. package/dist/workflows/run/wait-kinds.js +17 -21
  30. package/dist/workflows/run/wait-kinds.js.map +1 -1
  31. package/dist/workflows/run/workflow-position.d.ts +6 -6
  32. package/dist/workflows/waits.d.ts +4 -4
  33. package/dist/workflows/waits.js +4 -7
  34. package/dist/workflows/waits.js.map +1 -1
  35. package/package.json +4 -4
@@ -12,7 +12,7 @@ import { TaskWebhooks } from '../runs/webhook.ts';
12
12
  import { type detectEnvironment } from '../core/backend-detect.ts';
13
13
  import { ProviderAuthService } from '../core/provider-auth.ts';
14
14
  import { RunnerModelCatalog } from '../core/runner-model-catalog.ts';
15
- import { type RunStore } from '../runs/store.ts';
15
+ import type { RunStore } from '../runs/store.ts';
16
16
  import { type BranchForge } from './repo-branches.ts';
17
17
  import { loadWorkspaceConfig, mergeWriteWorkspaceConfig } from '../workspace/config.ts';
18
18
  import { WorkspaceSemaphore } from '../workspace/semaphore.ts';
@@ -182,220 +182,6 @@ export declare class WorkspaceEventBus {
182
182
  on(listener: (event: WorkspaceEventName, data: unknown) => void): () => void;
183
183
  }
184
184
  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<{
185
- "/models": {
186
- $get: {
187
- output: {
188
- error: string;
189
- code?: "invalid_input" | undefined;
190
- };
191
- outputFormat: "json";
192
- status: 400;
193
- input: {
194
- query: {
195
- runner: string | string[];
196
- profileId?: string | undefined;
197
- };
198
- };
199
- } | {
200
- output: {
201
- runner: string;
202
- models: {
203
- id: string;
204
- label: string;
205
- description: string;
206
- effortLevels?: import('../contract/index.js').EffortLevel[];
207
- }[];
208
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
209
- stale: boolean;
210
- reason?: string;
211
- };
212
- outputFormat: "json";
213
- status: import("hono/utils/http-status").ContentfulStatusCode;
214
- input: {
215
- query: {
216
- runner: string | string[];
217
- profileId?: string | undefined;
218
- };
219
- };
220
- } | {
221
- output: {
222
- error: string;
223
- };
224
- outputFormat: "json";
225
- status: 409;
226
- input: {
227
- query: {
228
- runner: string | string[];
229
- profileId?: string | undefined;
230
- };
231
- };
232
- } | {
233
- output: {
234
- error: string;
235
- };
236
- outputFormat: "json";
237
- status: 400;
238
- input: {
239
- query: {
240
- runner: string | string[];
241
- profileId?: string | undefined;
242
- };
243
- };
244
- };
245
- };
246
- }, "/"> | import("hono/types").MergeSchemaPath<{
247
- "/health": {
248
- $get: {
249
- output: {
250
- version: string;
251
- latestVersion?: string | undefined;
252
- repoRoot: string;
253
- repo: {
254
- root: string;
255
- branch: string;
256
- remote?: string | undefined;
257
- } | null;
258
- checks: {
259
- name: string;
260
- available: boolean;
261
- version?: string;
262
- hint?: string;
263
- }[];
264
- defaultRunner: string;
265
- forge: {
266
- available?: boolean | undefined;
267
- reason?: string;
268
- kind: "github";
269
- } | null;
270
- capabilities: {
271
- localHandoff: boolean;
272
- settingsAdmin: boolean;
273
- remoteSettingsAdmin: boolean;
274
- automations: boolean;
275
- preview: boolean;
276
- tokenMetrics: boolean;
277
- tokenUsageMetrics: boolean;
278
- costMetrics: boolean;
279
- };
280
- projects: {
281
- id: string;
282
- name: string;
283
- }[];
284
- bootProject: string;
285
- };
286
- outputFormat: "json";
287
- status: import("hono/utils/http-status").ContentfulStatusCode;
288
- input: {};
289
- };
290
- };
291
- }, "/"> | import("hono/types").MergeSchemaPath<{
292
- "/fs/browse": {
293
- $get: {
294
- output: {
295
- error: string;
296
- code?: "invalid_input" | undefined;
297
- };
298
- outputFormat: "json";
299
- status: 400;
300
- input: {
301
- query: {
302
- path?: string | undefined;
303
- showHidden?: string | undefined;
304
- };
305
- };
306
- } | {
307
- output: {
308
- error: string;
309
- };
310
- outputFormat: "json";
311
- status: 400 | 403 | 404;
312
- input: {
313
- query: {
314
- path?: string | undefined;
315
- showHidden?: string | undefined;
316
- };
317
- };
318
- } | {
319
- output: {
320
- path: string;
321
- parent: string | null;
322
- dirs: {
323
- name: string;
324
- path: string;
325
- isRepo: boolean;
326
- }[];
327
- truncated: boolean;
328
- };
329
- outputFormat: "json";
330
- status: import("hono/utils/http-status").ContentfulStatusCode;
331
- input: {
332
- query: {
333
- path?: string | undefined;
334
- showHidden?: string | undefined;
335
- };
336
- };
337
- };
338
- };
339
- }, "/"> | import("hono/types").MergeSchemaPath<{
340
- "/automation-checks/:checkId": {
341
- $get: {
342
- output: {
343
- id: string;
344
- automationId: string;
345
- mode: 'preview' | 'execute';
346
- status: 'queued' | 'running' | 'complete' | 'error';
347
- createdAt: string;
348
- completedAt?: string;
349
- matches?: number;
350
- truncated?: boolean;
351
- error?: string;
352
- };
353
- outputFormat: "json";
354
- status: import("hono/utils/http-status").ContentfulStatusCode;
355
- input: {
356
- param: {
357
- checkId: string;
358
- };
359
- };
360
- } | {
361
- output: {
362
- error: string;
363
- };
364
- outputFormat: "json";
365
- status: 404;
366
- input: {
367
- param: {
368
- checkId: string;
369
- };
370
- };
371
- };
372
- };
373
- }, "/"> | import("hono/types").MergeSchemaPath<{
374
- "/workspace/events": {
375
- $get: {
376
- output: {};
377
- outputFormat: string;
378
- status: import("hono/utils/http-status").StatusCode;
379
- input: {
380
- query: {
381
- runs?: "summary" | undefined;
382
- };
383
- };
384
- } | {
385
- output: {
386
- error: string;
387
- code?: "invalid_input" | undefined;
388
- };
389
- outputFormat: "json";
390
- status: 400;
391
- input: {
392
- query: {
393
- runs?: "summary" | undefined;
394
- };
395
- };
396
- };
397
- };
398
- }, "/"> | import("hono/types").MergeSchemaPath<{
399
185
  "/workspace/activity": {
400
186
  $get: {
401
187
  output: {
@@ -645,10 +431,224 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
645
431
  }[];
646
432
  };
647
433
  outputFormat: "json";
648
- status: 200;
434
+ status: 200;
435
+ input: {
436
+ query: {
437
+ project?: string | undefined;
438
+ };
439
+ };
440
+ };
441
+ };
442
+ }, "/"> | import("hono/types").MergeSchemaPath<{
443
+ "/health": {
444
+ $get: {
445
+ output: {
446
+ version: string;
447
+ latestVersion?: string | undefined;
448
+ repoRoot: string;
449
+ repo: {
450
+ root: string;
451
+ branch: string;
452
+ remote?: string | undefined;
453
+ } | null;
454
+ checks: {
455
+ name: string;
456
+ available: boolean;
457
+ version?: string;
458
+ hint?: string;
459
+ }[];
460
+ defaultRunner: string;
461
+ forge: {
462
+ available?: boolean | undefined;
463
+ reason?: string;
464
+ kind: "github";
465
+ } | null;
466
+ capabilities: {
467
+ localHandoff: boolean;
468
+ settingsAdmin: boolean;
469
+ remoteSettingsAdmin: boolean;
470
+ automations: boolean;
471
+ preview: boolean;
472
+ tokenMetrics: boolean;
473
+ tokenUsageMetrics: boolean;
474
+ costMetrics: boolean;
475
+ };
476
+ projects: {
477
+ id: string;
478
+ name: string;
479
+ }[];
480
+ bootProject: string;
481
+ };
482
+ outputFormat: "json";
483
+ status: import("hono/utils/http-status").ContentfulStatusCode;
484
+ input: {};
485
+ };
486
+ };
487
+ }, "/"> | import("hono/types").MergeSchemaPath<{
488
+ "/fs/browse": {
489
+ $get: {
490
+ output: {
491
+ error: string;
492
+ code?: "invalid_input" | undefined;
493
+ };
494
+ outputFormat: "json";
495
+ status: 400;
496
+ input: {
497
+ query: {
498
+ path?: string | undefined;
499
+ showHidden?: string | undefined;
500
+ };
501
+ };
502
+ } | {
503
+ output: {
504
+ error: string;
505
+ };
506
+ outputFormat: "json";
507
+ status: 400 | 403 | 404;
508
+ input: {
509
+ query: {
510
+ path?: string | undefined;
511
+ showHidden?: string | undefined;
512
+ };
513
+ };
514
+ } | {
515
+ output: {
516
+ path: string;
517
+ parent: string | null;
518
+ dirs: {
519
+ name: string;
520
+ path: string;
521
+ isRepo: boolean;
522
+ }[];
523
+ truncated: boolean;
524
+ };
525
+ outputFormat: "json";
526
+ status: import("hono/utils/http-status").ContentfulStatusCode;
527
+ input: {
528
+ query: {
529
+ path?: string | undefined;
530
+ showHidden?: string | undefined;
531
+ };
532
+ };
533
+ };
534
+ };
535
+ }, "/"> | import("hono/types").MergeSchemaPath<{
536
+ "/automation-checks/:checkId": {
537
+ $get: {
538
+ output: {
539
+ id: string;
540
+ automationId: string;
541
+ mode: 'preview' | 'execute';
542
+ status: 'queued' | 'running' | 'complete' | 'error';
543
+ createdAt: string;
544
+ completedAt?: string;
545
+ matches?: number;
546
+ truncated?: boolean;
547
+ error?: string;
548
+ };
549
+ outputFormat: "json";
550
+ status: import("hono/utils/http-status").ContentfulStatusCode;
551
+ input: {
552
+ param: {
553
+ checkId: string;
554
+ };
555
+ };
556
+ } | {
557
+ output: {
558
+ error: string;
559
+ };
560
+ outputFormat: "json";
561
+ status: 404;
562
+ input: {
563
+ param: {
564
+ checkId: string;
565
+ };
566
+ };
567
+ };
568
+ };
569
+ }, "/"> | import("hono/types").MergeSchemaPath<{
570
+ "/workspace/events": {
571
+ $get: {
572
+ output: {};
573
+ outputFormat: string;
574
+ status: import("hono/utils/http-status").StatusCode;
575
+ input: {
576
+ query: {
577
+ runs?: "summary" | undefined;
578
+ };
579
+ };
580
+ } | {
581
+ output: {
582
+ error: string;
583
+ code?: "invalid_input" | undefined;
584
+ };
585
+ outputFormat: "json";
586
+ status: 400;
587
+ input: {
588
+ query: {
589
+ runs?: "summary" | undefined;
590
+ };
591
+ };
592
+ };
593
+ };
594
+ }, "/"> | import("hono/types").MergeSchemaPath<{
595
+ "/models": {
596
+ $get: {
597
+ output: {
598
+ error: string;
599
+ code?: "invalid_input" | undefined;
600
+ };
601
+ outputFormat: "json";
602
+ status: 400;
603
+ input: {
604
+ query: {
605
+ runner: string | string[];
606
+ profileId?: string | undefined;
607
+ };
608
+ };
609
+ } | {
610
+ output: {
611
+ runner: string;
612
+ models: {
613
+ id: string;
614
+ label: string;
615
+ description: string;
616
+ effortLevels?: import('../contract/index.js').EffortLevel[];
617
+ }[];
618
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
619
+ stale: boolean;
620
+ reason?: string;
621
+ };
622
+ outputFormat: "json";
623
+ status: import("hono/utils/http-status").ContentfulStatusCode;
649
624
  input: {
650
625
  query: {
651
- project?: string | undefined;
626
+ runner: string | string[];
627
+ profileId?: string | undefined;
628
+ };
629
+ };
630
+ } | {
631
+ output: {
632
+ error: string;
633
+ };
634
+ outputFormat: "json";
635
+ status: 409;
636
+ input: {
637
+ query: {
638
+ runner: string | string[];
639
+ profileId?: string | undefined;
640
+ };
641
+ };
642
+ } | {
643
+ output: {
644
+ error: string;
645
+ };
646
+ outputFormat: "json";
647
+ status: 400;
648
+ input: {
649
+ query: {
650
+ runner: string | string[];
651
+ profileId?: string | undefined;
652
652
  };
653
653
  };
654
654
  };
@@ -941,9 +941,226 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
941
941
  outputFormat: "json";
942
942
  status: import("hono/utils/http-status").ContentfulStatusCode;
943
943
  input: {
944
- query: {
945
- q: string | string[];
946
- limit?: number | undefined;
944
+ query: {
945
+ q: string | string[];
946
+ limit?: number | undefined;
947
+ };
948
+ };
949
+ };
950
+ };
951
+ }, "/"> | import("hono/types").MergeSchemaPath<{
952
+ "/providers/sign-in/start": {
953
+ $post: {
954
+ output: {
955
+ error: string;
956
+ };
957
+ outputFormat: "json";
958
+ status: 409;
959
+ input: {
960
+ json: {
961
+ provider: string;
962
+ profileId?: string | undefined;
963
+ };
964
+ };
965
+ } | {
966
+ output: {
967
+ error: string;
968
+ };
969
+ outputFormat: "json";
970
+ status: 400;
971
+ input: {
972
+ json: {
973
+ provider: string;
974
+ profileId?: string | undefined;
975
+ };
976
+ };
977
+ } | {
978
+ output: {
979
+ id: string;
980
+ state: "waiting";
981
+ url: string;
982
+ } | {
983
+ id: string;
984
+ state: "cancelled" | "connected";
985
+ } | {
986
+ id: string;
987
+ state: "failed";
988
+ error: string;
989
+ };
990
+ outputFormat: "json";
991
+ status: import("hono/utils/http-status").ContentfulStatusCode;
992
+ input: {
993
+ json: {
994
+ provider: string;
995
+ profileId?: string | undefined;
996
+ };
997
+ };
998
+ };
999
+ };
1000
+ } & {
1001
+ "/providers/sign-in/:id": {
1002
+ $get: {
1003
+ output: {
1004
+ error: string;
1005
+ code?: "invalid_input" | undefined;
1006
+ };
1007
+ outputFormat: "json";
1008
+ status: 400;
1009
+ input: {
1010
+ param: {
1011
+ id: string;
1012
+ };
1013
+ };
1014
+ } | {
1015
+ output: {
1016
+ error: string;
1017
+ };
1018
+ outputFormat: "json";
1019
+ status: 404;
1020
+ input: {
1021
+ param: {
1022
+ id: string;
1023
+ };
1024
+ };
1025
+ } | {
1026
+ output: {
1027
+ id: string;
1028
+ state: "waiting";
1029
+ url: string;
1030
+ } | {
1031
+ id: string;
1032
+ state: "cancelled" | "connected";
1033
+ } | {
1034
+ id: string;
1035
+ state: "failed";
1036
+ error: string;
1037
+ };
1038
+ outputFormat: "json";
1039
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1040
+ input: {
1041
+ param: {
1042
+ id: string;
1043
+ };
1044
+ };
1045
+ };
1046
+ };
1047
+ } & {
1048
+ "/providers/sign-in/:id/redirect": {
1049
+ $post: {
1050
+ output: {
1051
+ error: string;
1052
+ code?: "invalid_input" | undefined;
1053
+ };
1054
+ outputFormat: "json";
1055
+ status: 400;
1056
+ input: {
1057
+ param: {
1058
+ id: string;
1059
+ };
1060
+ } & {
1061
+ json: {
1062
+ redirectUrl: string;
1063
+ };
1064
+ };
1065
+ } | {
1066
+ output: {
1067
+ error: string;
1068
+ };
1069
+ outputFormat: "json";
1070
+ status: 404;
1071
+ input: {
1072
+ param: {
1073
+ id: string;
1074
+ };
1075
+ } & {
1076
+ json: {
1077
+ redirectUrl: string;
1078
+ };
1079
+ };
1080
+ } | {
1081
+ output: {
1082
+ error: string;
1083
+ };
1084
+ outputFormat: "json";
1085
+ status: 409;
1086
+ input: {
1087
+ param: {
1088
+ id: string;
1089
+ };
1090
+ } & {
1091
+ json: {
1092
+ redirectUrl: string;
1093
+ };
1094
+ };
1095
+ } | {
1096
+ output: {
1097
+ id: string;
1098
+ state: "waiting";
1099
+ url: string;
1100
+ } | {
1101
+ id: string;
1102
+ state: "cancelled" | "connected";
1103
+ } | {
1104
+ id: string;
1105
+ state: "failed";
1106
+ error: string;
1107
+ };
1108
+ outputFormat: "json";
1109
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1110
+ input: {
1111
+ param: {
1112
+ id: string;
1113
+ };
1114
+ } & {
1115
+ json: {
1116
+ redirectUrl: string;
1117
+ };
1118
+ };
1119
+ };
1120
+ };
1121
+ } & {
1122
+ "/providers/sign-in/:id": {
1123
+ $delete: {
1124
+ output: {
1125
+ error: string;
1126
+ code?: "invalid_input" | undefined;
1127
+ };
1128
+ outputFormat: "json";
1129
+ status: 400;
1130
+ input: {
1131
+ param: {
1132
+ id: string;
1133
+ };
1134
+ };
1135
+ } | {
1136
+ output: {
1137
+ error: string;
1138
+ };
1139
+ outputFormat: "json";
1140
+ status: 404;
1141
+ input: {
1142
+ param: {
1143
+ id: string;
1144
+ };
1145
+ };
1146
+ } | {
1147
+ output: {
1148
+ id: string;
1149
+ state: "waiting";
1150
+ url: string;
1151
+ } | {
1152
+ id: string;
1153
+ state: "cancelled" | "connected";
1154
+ } | {
1155
+ id: string;
1156
+ state: "failed";
1157
+ error: string;
1158
+ };
1159
+ outputFormat: "json";
1160
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1161
+ input: {
1162
+ param: {
1163
+ id: string;
947
1164
  };
948
1165
  };
949
1166
  };
@@ -1409,275 +1626,58 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1409
1626
  [x: string]: unknown;
1410
1627
  enabled?: boolean | undefined;
1411
1628
  } | undefined;
1412
- lastLocation?: {
1413
- projectId: string;
1414
- pathname: string;
1415
- search?: string | undefined;
1416
- hash?: string | undefined;
1417
- } | undefined;
1418
- sidebar?: {
1419
- [x: string]: unknown;
1420
- collapsed?: Record<string, boolean> | undefined;
1421
- projectOrder?: string[] | undefined;
1422
- } | undefined;
1423
- dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
1424
- taskTable?: {
1425
- [x: string]: unknown;
1426
- expandedColumns?: Record<string, boolean> | undefined;
1427
- } | undefined;
1428
- };
1429
- };
1430
- } | {
1431
- output: {
1432
- error: string;
1433
- };
1434
- outputFormat: "json";
1435
- status: 500;
1436
- input: {
1437
- json: {
1438
- [x: string]: unknown;
1439
- appearance?: {
1440
- accent?: "cezarion" | "lime" | "violet" | undefined;
1441
- density?: "comfortable" | "compact" | "ultra" | undefined;
1442
- width?: "narrow" | "wide" | undefined;
1443
- } | undefined;
1444
- notifications?: {
1445
- [x: string]: unknown;
1446
- enabled?: boolean | undefined;
1447
- } | undefined;
1448
- lastLocation?: {
1449
- projectId: string;
1450
- pathname: string;
1451
- search?: string | undefined;
1452
- hash?: string | undefined;
1453
- } | undefined;
1454
- sidebar?: {
1455
- [x: string]: unknown;
1456
- collapsed?: Record<string, boolean> | undefined;
1457
- projectOrder?: string[] | undefined;
1458
- } | undefined;
1459
- dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
1460
- taskTable?: {
1461
- [x: string]: unknown;
1462
- expandedColumns?: Record<string, boolean> | undefined;
1463
- } | undefined;
1464
- };
1465
- };
1466
- };
1467
- };
1468
- }, "/"> | import("hono/types").MergeSchemaPath<{
1469
- "/providers/sign-in/start": {
1470
- $post: {
1471
- output: {
1472
- error: string;
1473
- };
1474
- outputFormat: "json";
1475
- status: 409;
1476
- input: {
1477
- json: {
1478
- provider: string;
1479
- profileId?: string | undefined;
1480
- };
1481
- };
1482
- } | {
1483
- output: {
1484
- error: string;
1485
- };
1486
- outputFormat: "json";
1487
- status: 400;
1488
- input: {
1489
- json: {
1490
- provider: string;
1491
- profileId?: string | undefined;
1492
- };
1493
- };
1494
- } | {
1495
- output: {
1496
- id: string;
1497
- state: "waiting";
1498
- url: string;
1499
- } | {
1500
- id: string;
1501
- state: "cancelled" | "connected";
1502
- } | {
1503
- id: string;
1504
- state: "failed";
1505
- error: string;
1506
- };
1507
- outputFormat: "json";
1508
- status: import("hono/utils/http-status").ContentfulStatusCode;
1509
- input: {
1510
- json: {
1511
- provider: string;
1512
- profileId?: string | undefined;
1513
- };
1514
- };
1515
- };
1516
- };
1517
- } & {
1518
- "/providers/sign-in/:id": {
1519
- $get: {
1520
- output: {
1521
- error: string;
1522
- code?: "invalid_input" | undefined;
1523
- };
1524
- outputFormat: "json";
1525
- status: 400;
1526
- input: {
1527
- param: {
1528
- id: string;
1529
- };
1530
- };
1531
- } | {
1532
- output: {
1533
- error: string;
1534
- };
1535
- outputFormat: "json";
1536
- status: 404;
1537
- input: {
1538
- param: {
1539
- id: string;
1540
- };
1541
- };
1542
- } | {
1543
- output: {
1544
- id: string;
1545
- state: "waiting";
1546
- url: string;
1547
- } | {
1548
- id: string;
1549
- state: "cancelled" | "connected";
1550
- } | {
1551
- id: string;
1552
- state: "failed";
1553
- error: string;
1554
- };
1555
- outputFormat: "json";
1556
- status: import("hono/utils/http-status").ContentfulStatusCode;
1557
- input: {
1558
- param: {
1559
- id: string;
1560
- };
1561
- };
1562
- };
1563
- };
1564
- } & {
1565
- "/providers/sign-in/:id/redirect": {
1566
- $post: {
1567
- output: {
1568
- error: string;
1569
- code?: "invalid_input" | undefined;
1570
- };
1571
- outputFormat: "json";
1572
- status: 400;
1573
- input: {
1574
- param: {
1575
- id: string;
1576
- };
1577
- } & {
1578
- json: {
1579
- redirectUrl: string;
1580
- };
1581
- };
1582
- } | {
1583
- output: {
1584
- error: string;
1585
- };
1586
- outputFormat: "json";
1587
- status: 404;
1588
- input: {
1589
- param: {
1590
- id: string;
1591
- };
1592
- } & {
1593
- json: {
1594
- redirectUrl: string;
1595
- };
1596
- };
1597
- } | {
1598
- output: {
1599
- error: string;
1600
- };
1601
- outputFormat: "json";
1602
- status: 409;
1603
- input: {
1604
- param: {
1605
- id: string;
1606
- };
1607
- } & {
1608
- json: {
1609
- redirectUrl: string;
1610
- };
1611
- };
1612
- } | {
1613
- output: {
1614
- id: string;
1615
- state: "waiting";
1616
- url: string;
1617
- } | {
1618
- id: string;
1619
- state: "cancelled" | "connected";
1620
- } | {
1621
- id: string;
1622
- state: "failed";
1623
- error: string;
1624
- };
1625
- outputFormat: "json";
1626
- status: import("hono/utils/http-status").ContentfulStatusCode;
1627
- input: {
1628
- param: {
1629
- id: string;
1630
- };
1631
- } & {
1632
- json: {
1633
- redirectUrl: string;
1634
- };
1635
- };
1636
- };
1637
- };
1638
- } & {
1639
- "/providers/sign-in/:id": {
1640
- $delete: {
1641
- output: {
1642
- error: string;
1643
- code?: "invalid_input" | undefined;
1644
- };
1645
- outputFormat: "json";
1646
- status: 400;
1647
- input: {
1648
- param: {
1649
- id: string;
1650
- };
1651
- };
1652
- } | {
1653
- output: {
1654
- error: string;
1655
- };
1656
- outputFormat: "json";
1657
- status: 404;
1658
- input: {
1659
- param: {
1660
- id: string;
1629
+ lastLocation?: {
1630
+ projectId: string;
1631
+ pathname: string;
1632
+ search?: string | undefined;
1633
+ hash?: string | undefined;
1634
+ } | undefined;
1635
+ sidebar?: {
1636
+ [x: string]: unknown;
1637
+ collapsed?: Record<string, boolean> | undefined;
1638
+ projectOrder?: string[] | undefined;
1639
+ } | undefined;
1640
+ dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
1641
+ taskTable?: {
1642
+ [x: string]: unknown;
1643
+ expandedColumns?: Record<string, boolean> | undefined;
1644
+ } | undefined;
1661
1645
  };
1662
1646
  };
1663
1647
  } | {
1664
1648
  output: {
1665
- id: string;
1666
- state: "waiting";
1667
- url: string;
1668
- } | {
1669
- id: string;
1670
- state: "cancelled" | "connected";
1671
- } | {
1672
- id: string;
1673
- state: "failed";
1674
1649
  error: string;
1675
1650
  };
1676
1651
  outputFormat: "json";
1677
- status: import("hono/utils/http-status").ContentfulStatusCode;
1652
+ status: 500;
1678
1653
  input: {
1679
- param: {
1680
- id: string;
1654
+ json: {
1655
+ [x: string]: unknown;
1656
+ appearance?: {
1657
+ accent?: "cezarion" | "lime" | "violet" | undefined;
1658
+ density?: "comfortable" | "compact" | "ultra" | undefined;
1659
+ width?: "narrow" | "wide" | undefined;
1660
+ } | undefined;
1661
+ notifications?: {
1662
+ [x: string]: unknown;
1663
+ enabled?: boolean | undefined;
1664
+ } | undefined;
1665
+ lastLocation?: {
1666
+ projectId: string;
1667
+ pathname: string;
1668
+ search?: string | undefined;
1669
+ hash?: string | undefined;
1670
+ } | undefined;
1671
+ sidebar?: {
1672
+ [x: string]: unknown;
1673
+ collapsed?: Record<string, boolean> | undefined;
1674
+ projectOrder?: string[] | undefined;
1675
+ } | undefined;
1676
+ dismissedProviderAuthFailures?: Record<string, string | undefined> | undefined;
1677
+ taskTable?: {
1678
+ [x: string]: unknown;
1679
+ expandedColumns?: Record<string, boolean> | undefined;
1680
+ } | undefined;
1681
1681
  };
1682
1682
  };
1683
1683
  };
@@ -3077,6 +3077,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3077
3077
  output: {
3078
3078
  generation: string;
3079
3079
  results: ({
3080
+ projectId: string;
3081
+ runId: string;
3082
+ type: "error" | "reset";
3083
+ status: 400 | 404 | 409 | 413 | 503;
3084
+ error: string;
3085
+ } | {
3080
3086
  projectId: string;
3081
3087
  runId: string;
3082
3088
  type: "batch";
@@ -3090,12 +3096,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3090
3096
  cursor: string;
3091
3097
  afterSeq: number;
3092
3098
  hasMore: boolean;
3093
- } | {
3094
- projectId: string;
3095
- runId: string;
3096
- type: "error" | "reset";
3097
- status: 400 | 404 | 409 | 413 | 503;
3098
- error: string;
3099
3099
  })[];
3100
3100
  };
3101
3101
  outputFormat: "json";
@@ -3408,6 +3408,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3408
3408
  };
3409
3409
  };
3410
3410
  };
3411
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3412
+ "/reports/state": {
3413
+ $get: {
3414
+ output: {
3415
+ error: string;
3416
+ };
3417
+ outputFormat: "json";
3418
+ status: 409;
3419
+ input: {};
3420
+ } | {
3421
+ output: {
3422
+ epoch: string;
3423
+ generation: number;
3424
+ metadataGeneration: number;
3425
+ };
3426
+ outputFormat: "json";
3427
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3428
+ input: {};
3429
+ };
3430
+ };
3431
+ } & {
3432
+ "/reports": {
3433
+ $get: {
3434
+ output: {
3435
+ error: string;
3436
+ code?: "invalid_input" | undefined;
3437
+ };
3438
+ outputFormat: "json";
3439
+ status: 400;
3440
+ input: {
3441
+ query: {
3442
+ q?: string | undefined;
3443
+ before?: string | undefined;
3444
+ limit?: number | undefined;
3445
+ };
3446
+ };
3447
+ } | {
3448
+ output: {
3449
+ error: string;
3450
+ };
3451
+ outputFormat: "json";
3452
+ status: 409;
3453
+ input: {
3454
+ query: {
3455
+ q?: string | undefined;
3456
+ before?: string | undefined;
3457
+ limit?: number | undefined;
3458
+ };
3459
+ };
3460
+ } | {
3461
+ output: {
3462
+ error: string;
3463
+ };
3464
+ outputFormat: "json";
3465
+ status: 400;
3466
+ input: {
3467
+ query: {
3468
+ q?: string | undefined;
3469
+ before?: string | undefined;
3470
+ limit?: number | undefined;
3471
+ };
3472
+ };
3473
+ } | {
3474
+ output: {
3475
+ reports: {
3476
+ id: string;
3477
+ runId: string;
3478
+ name: string;
3479
+ title: string;
3480
+ createdAt: string;
3481
+ size: number;
3482
+ taskTitle: string;
3483
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3484
+ }[];
3485
+ nextCursor: string | null;
3486
+ total: number;
3487
+ };
3488
+ outputFormat: "json";
3489
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3490
+ input: {
3491
+ query: {
3492
+ q?: string | undefined;
3493
+ before?: string | undefined;
3494
+ limit?: number | undefined;
3495
+ };
3496
+ };
3497
+ };
3498
+ };
3411
3499
  }, "/"> | import("hono/types").MergeSchemaPath<{
3412
3500
  "/ui-state": {
3413
3501
  $get: {
@@ -3880,106 +3968,18 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3880
3968
  error?: string | undefined;
3881
3969
  dryRun?: boolean | undefined;
3882
3970
  };
3883
- outputFormat: "json";
3884
- status: import("hono/utils/http-status").ContentfulStatusCode;
3885
- input: {
3886
- param: {
3887
- webhook: string;
3888
- };
3889
- } & {
3890
- json: {
3891
- runId?: string | undefined;
3892
- title?: string | undefined;
3893
- message: string;
3894
- data?: Record<string, unknown> | undefined;
3895
- };
3896
- };
3897
- };
3898
- };
3899
- }, "/"> | import("hono/types").MergeSchemaPath<{
3900
- "/reports/state": {
3901
- $get: {
3902
- output: {
3903
- error: string;
3904
- };
3905
- outputFormat: "json";
3906
- status: 409;
3907
- input: {};
3908
- } | {
3909
- output: {
3910
- epoch: string;
3911
- generation: number;
3912
- metadataGeneration: number;
3913
- };
3914
- outputFormat: "json";
3915
- status: import("hono/utils/http-status").ContentfulStatusCode;
3916
- input: {};
3917
- };
3918
- };
3919
- } & {
3920
- "/reports": {
3921
- $get: {
3922
- output: {
3923
- error: string;
3924
- code?: "invalid_input" | undefined;
3925
- };
3926
- outputFormat: "json";
3927
- status: 400;
3928
- input: {
3929
- query: {
3930
- q?: string | undefined;
3931
- before?: string | undefined;
3932
- limit?: number | undefined;
3933
- };
3934
- };
3935
- } | {
3936
- output: {
3937
- error: string;
3938
- };
3939
- outputFormat: "json";
3940
- status: 409;
3941
- input: {
3942
- query: {
3943
- q?: string | undefined;
3944
- before?: string | undefined;
3945
- limit?: number | undefined;
3946
- };
3947
- };
3948
- } | {
3949
- output: {
3950
- error: string;
3951
- };
3952
- outputFormat: "json";
3953
- status: 400;
3954
- input: {
3955
- query: {
3956
- q?: string | undefined;
3957
- before?: string | undefined;
3958
- limit?: number | undefined;
3959
- };
3960
- };
3961
- } | {
3962
- output: {
3963
- reports: {
3964
- id: string;
3965
- runId: string;
3966
- name: string;
3967
- title: string;
3968
- createdAt: string;
3969
- size: number;
3970
- taskTitle: string;
3971
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3972
- }[];
3973
- nextCursor: string | null;
3974
- total: number;
3975
- };
3976
- outputFormat: "json";
3977
- status: import("hono/utils/http-status").ContentfulStatusCode;
3978
- input: {
3979
- query: {
3980
- q?: string | undefined;
3981
- before?: string | undefined;
3982
- limit?: number | undefined;
3971
+ outputFormat: "json";
3972
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3973
+ input: {
3974
+ param: {
3975
+ webhook: string;
3976
+ };
3977
+ } & {
3978
+ json: {
3979
+ runId?: string | undefined;
3980
+ title?: string | undefined;
3981
+ message: string;
3982
+ data?: Record<string, unknown> | undefined;
3983
3983
  };
3984
3984
  };
3985
3985
  };
@@ -8459,11 +8459,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8459
8459
  "/runs/:id/worker-destroy": {
8460
8460
  $post: {
8461
8461
  output: {
8462
- error: string;
8463
- code?: "invalid_input" | undefined;
8462
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8463
+ readonly error: string;
8464
+ readonly modelChoices?: {
8465
+ runner: string;
8466
+ requestedModel: string;
8467
+ availableModels: {
8468
+ id: string;
8469
+ label: string;
8470
+ description: string;
8471
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8472
+ }[];
8473
+ otherRunners: string[];
8474
+ } | undefined;
8464
8475
  };
8465
8476
  outputFormat: "json";
8466
- status: 400;
8477
+ status: 400 | 401 | 403 | 409 | 503;
8467
8478
  input: {
8468
8479
  query: {
8469
8480
  [x: string]: string | string[];
@@ -8479,22 +8490,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
8479
8490
  };
8480
8491
  } | {
8481
8492
  output: {
8482
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
8483
- readonly error: string;
8484
- readonly modelChoices?: {
8485
- runner: string;
8486
- requestedModel: string;
8487
- availableModels: {
8488
- id: string;
8489
- label: string;
8490
- description: string;
8491
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
8492
- }[];
8493
- otherRunners: string[];
8494
- } | undefined;
8493
+ error: string;
8494
+ code?: "invalid_input" | undefined;
8495
8495
  };
8496
8496
  outputFormat: "json";
8497
- status: 400 | 401 | 403 | 409 | 503;
8497
+ status: 400;
8498
8498
  input: {
8499
8499
  query: {
8500
8500
  [x: string]: string | string[];
@@ -19369,6 +19369,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19369
19369
  };
19370
19370
  };
19371
19371
  };
19372
+ }, "/"> | import("hono/types").MergeSchemaPath<{
19373
+ "/reports/state": {
19374
+ $get: {
19375
+ output: {
19376
+ error: string;
19377
+ };
19378
+ outputFormat: "json";
19379
+ status: 409;
19380
+ input: {};
19381
+ } | {
19382
+ output: {
19383
+ epoch: string;
19384
+ generation: number;
19385
+ metadataGeneration: number;
19386
+ };
19387
+ outputFormat: "json";
19388
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19389
+ input: {};
19390
+ };
19391
+ };
19392
+ } & {
19393
+ "/reports": {
19394
+ $get: {
19395
+ output: {
19396
+ error: string;
19397
+ code?: "invalid_input" | undefined;
19398
+ };
19399
+ outputFormat: "json";
19400
+ status: 400;
19401
+ input: {
19402
+ query: {
19403
+ q?: string | undefined;
19404
+ before?: string | undefined;
19405
+ limit?: number | undefined;
19406
+ };
19407
+ };
19408
+ } | {
19409
+ output: {
19410
+ error: string;
19411
+ };
19412
+ outputFormat: "json";
19413
+ status: 409;
19414
+ input: {
19415
+ query: {
19416
+ q?: string | undefined;
19417
+ before?: string | undefined;
19418
+ limit?: number | undefined;
19419
+ };
19420
+ };
19421
+ } | {
19422
+ output: {
19423
+ error: string;
19424
+ };
19425
+ outputFormat: "json";
19426
+ status: 400;
19427
+ input: {
19428
+ query: {
19429
+ q?: string | undefined;
19430
+ before?: string | undefined;
19431
+ limit?: number | undefined;
19432
+ };
19433
+ };
19434
+ } | {
19435
+ output: {
19436
+ reports: {
19437
+ id: string;
19438
+ runId: string;
19439
+ name: string;
19440
+ title: string;
19441
+ createdAt: string;
19442
+ size: number;
19443
+ taskTitle: string;
19444
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19445
+ }[];
19446
+ nextCursor: string | null;
19447
+ total: number;
19448
+ };
19449
+ outputFormat: "json";
19450
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19451
+ input: {
19452
+ query: {
19453
+ q?: string | undefined;
19454
+ before?: string | undefined;
19455
+ limit?: number | undefined;
19456
+ };
19457
+ };
19458
+ };
19459
+ };
19372
19460
  }, "/"> | import("hono/types").MergeSchemaPath<{
19373
19461
  "/ui-state": {
19374
19462
  $get: {
@@ -19857,94 +19945,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19857
19945
  };
19858
19946
  };
19859
19947
  };
19860
- }, "/"> | import("hono/types").MergeSchemaPath<{
19861
- "/reports/state": {
19862
- $get: {
19863
- output: {
19864
- error: string;
19865
- };
19866
- outputFormat: "json";
19867
- status: 409;
19868
- input: {};
19869
- } | {
19870
- output: {
19871
- epoch: string;
19872
- generation: number;
19873
- metadataGeneration: number;
19874
- };
19875
- outputFormat: "json";
19876
- status: import("hono/utils/http-status").ContentfulStatusCode;
19877
- input: {};
19878
- };
19879
- };
19880
- } & {
19881
- "/reports": {
19882
- $get: {
19883
- output: {
19884
- error: string;
19885
- code?: "invalid_input" | undefined;
19886
- };
19887
- outputFormat: "json";
19888
- status: 400;
19889
- input: {
19890
- query: {
19891
- q?: string | undefined;
19892
- before?: string | undefined;
19893
- limit?: number | undefined;
19894
- };
19895
- };
19896
- } | {
19897
- output: {
19898
- error: string;
19899
- };
19900
- outputFormat: "json";
19901
- status: 409;
19902
- input: {
19903
- query: {
19904
- q?: string | undefined;
19905
- before?: string | undefined;
19906
- limit?: number | undefined;
19907
- };
19908
- };
19909
- } | {
19910
- output: {
19911
- error: string;
19912
- };
19913
- outputFormat: "json";
19914
- status: 400;
19915
- input: {
19916
- query: {
19917
- q?: string | undefined;
19918
- before?: string | undefined;
19919
- limit?: number | undefined;
19920
- };
19921
- };
19922
- } | {
19923
- output: {
19924
- reports: {
19925
- id: string;
19926
- runId: string;
19927
- name: string;
19928
- title: string;
19929
- createdAt: string;
19930
- size: number;
19931
- taskTitle: string;
19932
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19933
- }[];
19934
- nextCursor: string | null;
19935
- total: number;
19936
- };
19937
- outputFormat: "json";
19938
- status: import("hono/utils/http-status").ContentfulStatusCode;
19939
- input: {
19940
- query: {
19941
- q?: string | undefined;
19942
- before?: string | undefined;
19943
- limit?: number | undefined;
19944
- };
19945
- };
19946
- };
19947
- };
19948
19948
  }, "/"> | import("hono/types").MergeSchemaPath<{
19949
19949
  "/worktrees": {
19950
19950
  $get: {
@@ -24420,11 +24420,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24420
24420
  "/runs/:id/worker-destroy": {
24421
24421
  $post: {
24422
24422
  output: {
24423
- error: string;
24424
- code?: "invalid_input" | undefined;
24423
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24424
+ readonly error: string;
24425
+ readonly modelChoices?: {
24426
+ runner: string;
24427
+ requestedModel: string;
24428
+ availableModels: {
24429
+ id: string;
24430
+ label: string;
24431
+ description: string;
24432
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24433
+ }[];
24434
+ otherRunners: string[];
24435
+ } | undefined;
24425
24436
  };
24426
24437
  outputFormat: "json";
24427
- status: 400;
24438
+ status: 400 | 401 | 403 | 409 | 503;
24428
24439
  input: {
24429
24440
  query: {
24430
24441
  [x: string]: string | string[];
@@ -24440,22 +24451,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
24440
24451
  };
24441
24452
  } | {
24442
24453
  output: {
24443
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
24444
- readonly error: string;
24445
- readonly modelChoices?: {
24446
- runner: string;
24447
- requestedModel: string;
24448
- availableModels: {
24449
- id: string;
24450
- label: string;
24451
- description: string;
24452
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
24453
- }[];
24454
- otherRunners: string[];
24455
- } | undefined;
24454
+ error: string;
24455
+ code?: "invalid_input" | undefined;
24456
24456
  };
24457
24457
  outputFormat: "json";
24458
- status: 400 | 401 | 403 | 409 | 503;
24458
+ status: 400;
24459
24459
  input: {
24460
24460
  query: {
24461
24461
  [x: string]: string | string[];