@hearsay-tools/squawk 0.19.0-dev.9005 → 0.19.0-dev.9008

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.
@@ -156,6 +156,56 @@ 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
+ "/models": {
160
+ $get: {
161
+ output: {
162
+ error: string;
163
+ code?: "invalid_input" | undefined;
164
+ };
165
+ outputFormat: "json";
166
+ status: 400;
167
+ input: {
168
+ query: {
169
+ runner: string | string[];
170
+ profileId?: string | undefined;
171
+ };
172
+ };
173
+ } | {
174
+ output: {
175
+ runner: string;
176
+ models: {
177
+ id: string;
178
+ label: string;
179
+ description: string;
180
+ effortLevels?: import('../contract/index.js').EffortLevel[];
181
+ }[];
182
+ source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
183
+ stale: boolean;
184
+ reason?: string;
185
+ };
186
+ outputFormat: "json";
187
+ status: import("hono/utils/http-status").ContentfulStatusCode;
188
+ input: {
189
+ query: {
190
+ runner: string | string[];
191
+ profileId?: string | undefined;
192
+ };
193
+ };
194
+ } | {
195
+ output: {
196
+ error: string;
197
+ };
198
+ outputFormat: "json";
199
+ status: 400;
200
+ input: {
201
+ query: {
202
+ runner: string | string[];
203
+ profileId?: string | undefined;
204
+ };
205
+ };
206
+ };
207
+ };
208
+ }, "/"> | import("hono/types").MergeSchemaPath<{
159
209
  "/health": {
160
210
  $get: {
161
211
  output: {
@@ -287,56 +337,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
287
337
  };
288
338
  };
289
339
  };
290
- }, "/"> | import("hono/types").MergeSchemaPath<{
291
- "/models": {
292
- $get: {
293
- output: {
294
- error: string;
295
- code?: "invalid_input" | undefined;
296
- };
297
- outputFormat: "json";
298
- status: 400;
299
- input: {
300
- query: {
301
- runner: string | string[];
302
- profileId?: string | undefined;
303
- };
304
- };
305
- } | {
306
- output: {
307
- runner: string;
308
- models: {
309
- id: string;
310
- label: string;
311
- description: string;
312
- effortLevels?: import('../contract/index.js').EffortLevel[];
313
- }[];
314
- source: import("../core/runner-model-catalog.ts").ModelCatalogSource;
315
- stale: boolean;
316
- reason?: string;
317
- };
318
- outputFormat: "json";
319
- status: import("hono/utils/http-status").ContentfulStatusCode;
320
- input: {
321
- query: {
322
- runner: string | string[];
323
- profileId?: string | undefined;
324
- };
325
- };
326
- } | {
327
- output: {
328
- error: string;
329
- };
330
- outputFormat: "json";
331
- status: 400;
332
- input: {
333
- query: {
334
- runner: string | string[];
335
- profileId?: string | undefined;
336
- };
337
- };
338
- };
339
- };
340
340
  }, "/"> | import("hono/types").MergeSchemaPath<{
341
341
  "/workspace/activity": {
342
342
  $get: {
@@ -930,223 +930,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
930
930
  };
931
931
  };
932
932
  };
933
- }, "/"> | import("hono/types").MergeSchemaPath<{
934
- "/providers/sign-in/start": {
935
- $post: {
936
- output: {
937
- error: string;
938
- };
939
- outputFormat: "json";
940
- status: 409;
941
- input: {
942
- json: {
943
- provider: string;
944
- profileId?: string | undefined;
945
- };
946
- };
947
- } | {
948
- output: {
949
- error: string;
950
- };
951
- outputFormat: "json";
952
- status: 400;
953
- input: {
954
- json: {
955
- provider: string;
956
- profileId?: string | undefined;
957
- };
958
- };
959
- } | {
960
- output: {
961
- id: string;
962
- state: "waiting";
963
- url: string;
964
- } | {
965
- id: string;
966
- state: "cancelled" | "connected";
967
- } | {
968
- id: string;
969
- state: "failed";
970
- error: string;
971
- };
972
- outputFormat: "json";
973
- status: import("hono/utils/http-status").ContentfulStatusCode;
974
- input: {
975
- json: {
976
- provider: string;
977
- profileId?: string | undefined;
978
- };
979
- };
980
- };
981
- };
982
- } & {
983
- "/providers/sign-in/:id": {
984
- $get: {
985
- output: {
986
- error: string;
987
- code?: "invalid_input" | undefined;
988
- };
989
- outputFormat: "json";
990
- status: 400;
991
- input: {
992
- param: {
993
- id: string;
994
- };
995
- };
996
- } | {
997
- output: {
998
- error: string;
999
- };
1000
- outputFormat: "json";
1001
- status: 404;
1002
- input: {
1003
- param: {
1004
- id: string;
1005
- };
1006
- };
1007
- } | {
1008
- output: {
1009
- id: string;
1010
- state: "waiting";
1011
- url: string;
1012
- } | {
1013
- id: string;
1014
- state: "cancelled" | "connected";
1015
- } | {
1016
- id: string;
1017
- state: "failed";
1018
- error: string;
1019
- };
1020
- outputFormat: "json";
1021
- status: import("hono/utils/http-status").ContentfulStatusCode;
1022
- input: {
1023
- param: {
1024
- id: string;
1025
- };
1026
- };
1027
- };
1028
- };
1029
- } & {
1030
- "/providers/sign-in/:id/redirect": {
1031
- $post: {
1032
- output: {
1033
- error: string;
1034
- code?: "invalid_input" | undefined;
1035
- };
1036
- outputFormat: "json";
1037
- status: 400;
1038
- input: {
1039
- param: {
1040
- id: string;
1041
- };
1042
- } & {
1043
- json: {
1044
- redirectUrl: string;
1045
- };
1046
- };
1047
- } | {
1048
- output: {
1049
- error: string;
1050
- };
1051
- outputFormat: "json";
1052
- status: 404;
1053
- input: {
1054
- param: {
1055
- id: string;
1056
- };
1057
- } & {
1058
- json: {
1059
- redirectUrl: string;
1060
- };
1061
- };
1062
- } | {
1063
- output: {
1064
- error: string;
1065
- };
1066
- outputFormat: "json";
1067
- status: 409;
1068
- input: {
1069
- param: {
1070
- id: string;
1071
- };
1072
- } & {
1073
- json: {
1074
- redirectUrl: string;
1075
- };
1076
- };
1077
- } | {
1078
- output: {
1079
- id: string;
1080
- state: "waiting";
1081
- url: string;
1082
- } | {
1083
- id: string;
1084
- state: "cancelled" | "connected";
1085
- } | {
1086
- id: string;
1087
- state: "failed";
1088
- error: string;
1089
- };
1090
- outputFormat: "json";
1091
- status: import("hono/utils/http-status").ContentfulStatusCode;
1092
- input: {
1093
- param: {
1094
- id: string;
1095
- };
1096
- } & {
1097
- json: {
1098
- redirectUrl: string;
1099
- };
1100
- };
1101
- };
1102
- };
1103
- } & {
1104
- "/providers/sign-in/:id": {
1105
- $delete: {
1106
- output: {
1107
- error: string;
1108
- code?: "invalid_input" | undefined;
1109
- };
1110
- outputFormat: "json";
1111
- status: 400;
1112
- input: {
1113
- param: {
1114
- id: string;
1115
- };
1116
- };
1117
- } | {
1118
- output: {
1119
- error: string;
1120
- };
1121
- outputFormat: "json";
1122
- status: 404;
1123
- input: {
1124
- param: {
1125
- id: string;
1126
- };
1127
- };
1128
- } | {
1129
- output: {
1130
- id: string;
1131
- state: "waiting";
1132
- url: string;
1133
- } | {
1134
- id: string;
1135
- state: "cancelled" | "connected";
1136
- } | {
1137
- id: string;
1138
- state: "failed";
1139
- error: string;
1140
- };
1141
- outputFormat: "json";
1142
- status: import("hono/utils/http-status").ContentfulStatusCode;
1143
- input: {
1144
- param: {
1145
- id: string;
1146
- };
1147
- };
1148
- };
1149
- };
1150
933
  }, "/"> | import("hono/types").MergeSchemaPath<{
1151
934
  "/providers/status": {
1152
935
  $get: {
@@ -1666,6 +1449,223 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
1666
1449
  };
1667
1450
  };
1668
1451
  };
1452
+ }, "/"> | import("hono/types").MergeSchemaPath<{
1453
+ "/providers/sign-in/start": {
1454
+ $post: {
1455
+ output: {
1456
+ error: string;
1457
+ };
1458
+ outputFormat: "json";
1459
+ status: 409;
1460
+ input: {
1461
+ json: {
1462
+ provider: string;
1463
+ profileId?: string | undefined;
1464
+ };
1465
+ };
1466
+ } | {
1467
+ output: {
1468
+ error: string;
1469
+ };
1470
+ outputFormat: "json";
1471
+ status: 400;
1472
+ input: {
1473
+ json: {
1474
+ provider: string;
1475
+ profileId?: string | undefined;
1476
+ };
1477
+ };
1478
+ } | {
1479
+ output: {
1480
+ id: string;
1481
+ state: "waiting";
1482
+ url: string;
1483
+ } | {
1484
+ id: string;
1485
+ state: "cancelled" | "connected";
1486
+ } | {
1487
+ id: string;
1488
+ state: "failed";
1489
+ error: string;
1490
+ };
1491
+ outputFormat: "json";
1492
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1493
+ input: {
1494
+ json: {
1495
+ provider: string;
1496
+ profileId?: string | undefined;
1497
+ };
1498
+ };
1499
+ };
1500
+ };
1501
+ } & {
1502
+ "/providers/sign-in/:id": {
1503
+ $get: {
1504
+ output: {
1505
+ error: string;
1506
+ code?: "invalid_input" | undefined;
1507
+ };
1508
+ outputFormat: "json";
1509
+ status: 400;
1510
+ input: {
1511
+ param: {
1512
+ id: string;
1513
+ };
1514
+ };
1515
+ } | {
1516
+ output: {
1517
+ error: string;
1518
+ };
1519
+ outputFormat: "json";
1520
+ status: 404;
1521
+ input: {
1522
+ param: {
1523
+ id: string;
1524
+ };
1525
+ };
1526
+ } | {
1527
+ output: {
1528
+ id: string;
1529
+ state: "waiting";
1530
+ url: string;
1531
+ } | {
1532
+ id: string;
1533
+ state: "cancelled" | "connected";
1534
+ } | {
1535
+ id: string;
1536
+ state: "failed";
1537
+ error: string;
1538
+ };
1539
+ outputFormat: "json";
1540
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1541
+ input: {
1542
+ param: {
1543
+ id: string;
1544
+ };
1545
+ };
1546
+ };
1547
+ };
1548
+ } & {
1549
+ "/providers/sign-in/:id/redirect": {
1550
+ $post: {
1551
+ output: {
1552
+ error: string;
1553
+ code?: "invalid_input" | undefined;
1554
+ };
1555
+ outputFormat: "json";
1556
+ status: 400;
1557
+ input: {
1558
+ param: {
1559
+ id: string;
1560
+ };
1561
+ } & {
1562
+ json: {
1563
+ redirectUrl: string;
1564
+ };
1565
+ };
1566
+ } | {
1567
+ output: {
1568
+ error: string;
1569
+ };
1570
+ outputFormat: "json";
1571
+ status: 404;
1572
+ input: {
1573
+ param: {
1574
+ id: string;
1575
+ };
1576
+ } & {
1577
+ json: {
1578
+ redirectUrl: string;
1579
+ };
1580
+ };
1581
+ } | {
1582
+ output: {
1583
+ error: string;
1584
+ };
1585
+ outputFormat: "json";
1586
+ status: 409;
1587
+ input: {
1588
+ param: {
1589
+ id: string;
1590
+ };
1591
+ } & {
1592
+ json: {
1593
+ redirectUrl: string;
1594
+ };
1595
+ };
1596
+ } | {
1597
+ output: {
1598
+ id: string;
1599
+ state: "waiting";
1600
+ url: string;
1601
+ } | {
1602
+ id: string;
1603
+ state: "cancelled" | "connected";
1604
+ } | {
1605
+ id: string;
1606
+ state: "failed";
1607
+ error: string;
1608
+ };
1609
+ outputFormat: "json";
1610
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1611
+ input: {
1612
+ param: {
1613
+ id: string;
1614
+ };
1615
+ } & {
1616
+ json: {
1617
+ redirectUrl: string;
1618
+ };
1619
+ };
1620
+ };
1621
+ };
1622
+ } & {
1623
+ "/providers/sign-in/:id": {
1624
+ $delete: {
1625
+ output: {
1626
+ error: string;
1627
+ code?: "invalid_input" | undefined;
1628
+ };
1629
+ outputFormat: "json";
1630
+ status: 400;
1631
+ input: {
1632
+ param: {
1633
+ id: string;
1634
+ };
1635
+ };
1636
+ } | {
1637
+ output: {
1638
+ error: string;
1639
+ };
1640
+ outputFormat: "json";
1641
+ status: 404;
1642
+ input: {
1643
+ param: {
1644
+ id: string;
1645
+ };
1646
+ };
1647
+ } | {
1648
+ output: {
1649
+ id: string;
1650
+ state: "waiting";
1651
+ url: string;
1652
+ } | {
1653
+ id: string;
1654
+ state: "cancelled" | "connected";
1655
+ } | {
1656
+ id: string;
1657
+ state: "failed";
1658
+ error: string;
1659
+ };
1660
+ outputFormat: "json";
1661
+ status: import("hono/utils/http-status").ContentfulStatusCode;
1662
+ input: {
1663
+ param: {
1664
+ id: string;
1665
+ };
1666
+ };
1667
+ };
1668
+ };
1669
1669
  }, "/"> | import("hono/types").MergeSchemaPath<{
1670
1670
  "/workspace/agent-profiles": {
1671
1671
  $get: {
@@ -3043,12 +3043,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3043
3043
  output: {
3044
3044
  generation: string;
3045
3045
  results: ({
3046
- projectId: string;
3047
- runId: string;
3048
- type: "error" | "reset";
3049
- status: 400 | 404 | 409 | 413 | 503;
3050
- error: string;
3051
- } | {
3052
3046
  projectId: string;
3053
3047
  runId: string;
3054
3048
  type: "batch";
@@ -3069,6 +3063,12 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3069
3063
  cursor: string;
3070
3064
  afterSeq: number;
3071
3065
  hasMore: boolean;
3066
+ } | {
3067
+ projectId: string;
3068
+ runId: string;
3069
+ type: "error" | "reset";
3070
+ status: 400 | 404 | 409 | 413 | 503;
3071
+ error: string;
3072
3072
  })[];
3073
3073
  };
3074
3074
  outputFormat: "json";
@@ -3373,6 +3373,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3373
3373
  };
3374
3374
  };
3375
3375
  };
3376
+ }, "/"> | import("hono/types").MergeSchemaPath<{
3377
+ "/reports/state": {
3378
+ $get: {
3379
+ output: {
3380
+ error: string;
3381
+ };
3382
+ outputFormat: "json";
3383
+ status: 409;
3384
+ input: {};
3385
+ } | {
3386
+ output: {
3387
+ epoch: string;
3388
+ generation: number;
3389
+ metadataGeneration: number;
3390
+ };
3391
+ outputFormat: "json";
3392
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3393
+ input: {};
3394
+ };
3395
+ };
3396
+ } & {
3397
+ "/reports": {
3398
+ $get: {
3399
+ output: {
3400
+ error: string;
3401
+ code?: "invalid_input" | undefined;
3402
+ };
3403
+ outputFormat: "json";
3404
+ status: 400;
3405
+ input: {
3406
+ query: {
3407
+ q?: string | undefined;
3408
+ before?: string | undefined;
3409
+ limit?: number | undefined;
3410
+ };
3411
+ };
3412
+ } | {
3413
+ output: {
3414
+ error: string;
3415
+ };
3416
+ outputFormat: "json";
3417
+ status: 409;
3418
+ input: {
3419
+ query: {
3420
+ q?: string | undefined;
3421
+ before?: string | undefined;
3422
+ limit?: number | undefined;
3423
+ };
3424
+ };
3425
+ } | {
3426
+ output: {
3427
+ error: string;
3428
+ };
3429
+ outputFormat: "json";
3430
+ status: 400;
3431
+ input: {
3432
+ query: {
3433
+ q?: string | undefined;
3434
+ before?: string | undefined;
3435
+ limit?: number | undefined;
3436
+ };
3437
+ };
3438
+ } | {
3439
+ output: {
3440
+ reports: {
3441
+ id: string;
3442
+ runId: string;
3443
+ name: string;
3444
+ title: string;
3445
+ createdAt: string;
3446
+ size: number;
3447
+ taskTitle: string;
3448
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3449
+ }[];
3450
+ nextCursor: string | null;
3451
+ total: number;
3452
+ };
3453
+ outputFormat: "json";
3454
+ status: import("hono/utils/http-status").ContentfulStatusCode;
3455
+ input: {
3456
+ query: {
3457
+ q?: string | undefined;
3458
+ before?: string | undefined;
3459
+ limit?: number | undefined;
3460
+ };
3461
+ };
3462
+ };
3463
+ };
3376
3464
  }, "/"> | import("hono/types").MergeSchemaPath<{
3377
3465
  "/ui-state": {
3378
3466
  $get: {
@@ -3861,94 +3949,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
3861
3949
  };
3862
3950
  };
3863
3951
  };
3864
- }, "/"> | import("hono/types").MergeSchemaPath<{
3865
- "/reports/state": {
3866
- $get: {
3867
- output: {
3868
- error: string;
3869
- };
3870
- outputFormat: "json";
3871
- status: 409;
3872
- input: {};
3873
- } | {
3874
- output: {
3875
- epoch: string;
3876
- generation: number;
3877
- metadataGeneration: number;
3878
- };
3879
- outputFormat: "json";
3880
- status: import("hono/utils/http-status").ContentfulStatusCode;
3881
- input: {};
3882
- };
3883
- };
3884
- } & {
3885
- "/reports": {
3886
- $get: {
3887
- output: {
3888
- error: string;
3889
- code?: "invalid_input" | undefined;
3890
- };
3891
- outputFormat: "json";
3892
- status: 400;
3893
- input: {
3894
- query: {
3895
- q?: string | undefined;
3896
- before?: string | undefined;
3897
- limit?: number | undefined;
3898
- };
3899
- };
3900
- } | {
3901
- output: {
3902
- error: string;
3903
- };
3904
- outputFormat: "json";
3905
- status: 409;
3906
- input: {
3907
- query: {
3908
- q?: string | undefined;
3909
- before?: string | undefined;
3910
- limit?: number | undefined;
3911
- };
3912
- };
3913
- } | {
3914
- output: {
3915
- error: string;
3916
- };
3917
- outputFormat: "json";
3918
- status: 400;
3919
- input: {
3920
- query: {
3921
- q?: string | undefined;
3922
- before?: string | undefined;
3923
- limit?: number | undefined;
3924
- };
3925
- };
3926
- } | {
3927
- output: {
3928
- reports: {
3929
- id: string;
3930
- runId: string;
3931
- name: string;
3932
- title: string;
3933
- createdAt: string;
3934
- size: number;
3935
- taskTitle: string;
3936
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
3937
- }[];
3938
- nextCursor: string | null;
3939
- total: number;
3940
- };
3941
- outputFormat: "json";
3942
- status: import("hono/utils/http-status").ContentfulStatusCode;
3943
- input: {
3944
- query: {
3945
- q?: string | undefined;
3946
- before?: string | undefined;
3947
- limit?: number | undefined;
3948
- };
3949
- };
3950
- };
3951
- };
3952
3952
  }, "/"> | import("hono/types").MergeSchemaPath<{
3953
3953
  "/agent-config": {
3954
3954
  $get: {
@@ -5489,6 +5489,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5489
5489
  } & {
5490
5490
  "/repo/commit/:sha": {
5491
5491
  $get: {
5492
+ output: string;
5493
+ outputFormat: "text";
5494
+ status: import("hono/utils/http-status").ContentfulStatusCode;
5495
+ input: {
5496
+ query: {
5497
+ structured?: string | undefined;
5498
+ };
5499
+ } & {
5500
+ param: {
5501
+ sha: string;
5502
+ };
5503
+ };
5504
+ } | {
5492
5505
  output: {
5493
5506
  error: string;
5494
5507
  code?: "invalid_input" | undefined;
@@ -5552,19 +5565,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
5552
5565
  sha: string;
5553
5566
  };
5554
5567
  };
5555
- } | {
5556
- output: string;
5557
- outputFormat: "text";
5558
- status: import("hono/utils/http-status").ContentfulStatusCode;
5559
- input: {
5560
- query: {
5561
- structured?: string | undefined;
5562
- };
5563
- } & {
5564
- param: {
5565
- sha: string;
5566
- };
5567
- };
5568
5568
  };
5569
5569
  };
5570
5570
  } & {
@@ -7475,11 +7475,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7475
7475
  "/runs/:id/worker-destroy": {
7476
7476
  $post: {
7477
7477
  output: {
7478
- error: string;
7479
- code?: "invalid_input" | undefined;
7478
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
7479
+ readonly error: string;
7480
+ readonly modelChoices?: {
7481
+ runner: string;
7482
+ requestedModel: string;
7483
+ availableModels: {
7484
+ id: string;
7485
+ label: string;
7486
+ description: string;
7487
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
7488
+ }[];
7489
+ otherRunners: string[];
7490
+ } | undefined;
7480
7491
  };
7481
7492
  outputFormat: "json";
7482
- status: 400;
7493
+ status: 400 | 401 | 403 | 409 | 503;
7483
7494
  input: {
7484
7495
  query: {
7485
7496
  [x: string]: string | string[];
@@ -7495,22 +7506,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
7495
7506
  };
7496
7507
  } | {
7497
7508
  output: {
7498
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
7499
- readonly error: string;
7500
- readonly modelChoices?: {
7501
- runner: string;
7502
- requestedModel: string;
7503
- availableModels: {
7504
- id: string;
7505
- label: string;
7506
- description: string;
7507
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
7508
- }[];
7509
- otherRunners: string[];
7510
- } | undefined;
7509
+ error: string;
7510
+ code?: "invalid_input" | undefined;
7511
7511
  };
7512
7512
  outputFormat: "json";
7513
- status: 400 | 401 | 403 | 409 | 503;
7513
+ status: 400;
7514
7514
  input: {
7515
7515
  query: {
7516
7516
  [x: string]: string | string[];
@@ -18069,20 +18069,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18069
18069
  } & {
18070
18070
  "/runs/:id/handoff": {
18071
18071
  $get: {
18072
- output: {
18073
- error: string;
18074
- };
18075
- outputFormat: "json";
18076
- status: 404;
18072
+ output: string;
18073
+ outputFormat: "text";
18074
+ status: 200;
18077
18075
  input: {
18078
18076
  param: {
18079
18077
  id: string;
18080
18078
  };
18081
18079
  };
18082
18080
  } | {
18083
- output: string;
18084
- outputFormat: "text";
18085
- status: 200;
18081
+ output: {
18082
+ error: string;
18083
+ };
18084
+ outputFormat: "json";
18085
+ status: 404;
18086
18086
  input: {
18087
18087
  param: {
18088
18088
  id: string;
@@ -18120,20 +18120,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
18120
18120
  } & {
18121
18121
  "/runs/:id/diff": {
18122
18122
  $get: {
18123
- output: {
18124
- error: string;
18125
- };
18126
- outputFormat: "json";
18127
- status: 404 | 409;
18123
+ output: string;
18124
+ outputFormat: "text";
18125
+ status: import("hono/utils/http-status").ContentfulStatusCode;
18128
18126
  input: {
18129
18127
  param: {
18130
18128
  id: string;
18131
18129
  };
18132
18130
  };
18133
18131
  } | {
18134
- output: string;
18135
- outputFormat: "text";
18136
- status: import("hono/utils/http-status").ContentfulStatusCode;
18132
+ output: {
18133
+ error: string;
18134
+ };
18135
+ outputFormat: "json";
18136
+ status: 404 | 409;
18137
18137
  input: {
18138
18138
  param: {
18139
18139
  id: string;
@@ -19002,6 +19002,94 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19002
19002
  };
19003
19003
  };
19004
19004
  };
19005
+ }, "/"> | import("hono/types").MergeSchemaPath<{
19006
+ "/reports/state": {
19007
+ $get: {
19008
+ output: {
19009
+ error: string;
19010
+ };
19011
+ outputFormat: "json";
19012
+ status: 409;
19013
+ input: {};
19014
+ } | {
19015
+ output: {
19016
+ epoch: string;
19017
+ generation: number;
19018
+ metadataGeneration: number;
19019
+ };
19020
+ outputFormat: "json";
19021
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19022
+ input: {};
19023
+ };
19024
+ };
19025
+ } & {
19026
+ "/reports": {
19027
+ $get: {
19028
+ output: {
19029
+ error: string;
19030
+ code?: "invalid_input" | undefined;
19031
+ };
19032
+ outputFormat: "json";
19033
+ status: 400;
19034
+ input: {
19035
+ query: {
19036
+ q?: string | undefined;
19037
+ before?: string | undefined;
19038
+ limit?: number | undefined;
19039
+ };
19040
+ };
19041
+ } | {
19042
+ output: {
19043
+ error: string;
19044
+ };
19045
+ outputFormat: "json";
19046
+ status: 409;
19047
+ input: {
19048
+ query: {
19049
+ q?: string | undefined;
19050
+ before?: string | undefined;
19051
+ limit?: number | undefined;
19052
+ };
19053
+ };
19054
+ } | {
19055
+ output: {
19056
+ error: string;
19057
+ };
19058
+ outputFormat: "json";
19059
+ status: 400;
19060
+ input: {
19061
+ query: {
19062
+ q?: string | undefined;
19063
+ before?: string | undefined;
19064
+ limit?: number | undefined;
19065
+ };
19066
+ };
19067
+ } | {
19068
+ output: {
19069
+ reports: {
19070
+ id: string;
19071
+ runId: string;
19072
+ name: string;
19073
+ title: string;
19074
+ createdAt: string;
19075
+ size: number;
19076
+ taskTitle: string;
19077
+ taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19078
+ }[];
19079
+ nextCursor: string | null;
19080
+ total: number;
19081
+ };
19082
+ outputFormat: "json";
19083
+ status: import("hono/utils/http-status").ContentfulStatusCode;
19084
+ input: {
19085
+ query: {
19086
+ q?: string | undefined;
19087
+ before?: string | undefined;
19088
+ limit?: number | undefined;
19089
+ };
19090
+ };
19091
+ };
19092
+ };
19005
19093
  }, "/"> | import("hono/types").MergeSchemaPath<{
19006
19094
  "/ui-state": {
19007
19095
  $get: {
@@ -19490,94 +19578,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
19490
19578
  };
19491
19579
  };
19492
19580
  };
19493
- }, "/"> | import("hono/types").MergeSchemaPath<{
19494
- "/reports/state": {
19495
- $get: {
19496
- output: {
19497
- error: string;
19498
- };
19499
- outputFormat: "json";
19500
- status: 409;
19501
- input: {};
19502
- } | {
19503
- output: {
19504
- epoch: string;
19505
- generation: number;
19506
- metadataGeneration: number;
19507
- };
19508
- outputFormat: "json";
19509
- status: import("hono/utils/http-status").ContentfulStatusCode;
19510
- input: {};
19511
- };
19512
- };
19513
- } & {
19514
- "/reports": {
19515
- $get: {
19516
- output: {
19517
- error: string;
19518
- code?: "invalid_input" | undefined;
19519
- };
19520
- outputFormat: "json";
19521
- status: 400;
19522
- input: {
19523
- query: {
19524
- q?: string | undefined;
19525
- before?: string | undefined;
19526
- limit?: number | undefined;
19527
- };
19528
- };
19529
- } | {
19530
- output: {
19531
- error: string;
19532
- };
19533
- outputFormat: "json";
19534
- status: 409;
19535
- input: {
19536
- query: {
19537
- q?: string | undefined;
19538
- before?: string | undefined;
19539
- limit?: number | undefined;
19540
- };
19541
- };
19542
- } | {
19543
- output: {
19544
- error: string;
19545
- };
19546
- outputFormat: "json";
19547
- status: 400;
19548
- input: {
19549
- query: {
19550
- q?: string | undefined;
19551
- before?: string | undefined;
19552
- limit?: number | undefined;
19553
- };
19554
- };
19555
- } | {
19556
- output: {
19557
- reports: {
19558
- id: string;
19559
- runId: string;
19560
- name: string;
19561
- title: string;
19562
- createdAt: string;
19563
- size: number;
19564
- taskTitle: string;
19565
- taskStatus: "cancelled" | "done" | "failed" | "queued" | "review" | "running" | "waiting";
19566
- }[];
19567
- nextCursor: string | null;
19568
- total: number;
19569
- };
19570
- outputFormat: "json";
19571
- status: import("hono/utils/http-status").ContentfulStatusCode;
19572
- input: {
19573
- query: {
19574
- q?: string | undefined;
19575
- before?: string | undefined;
19576
- limit?: number | undefined;
19577
- };
19578
- };
19579
- };
19580
- };
19581
19581
  }, "/"> | import("hono/types").MergeSchemaPath<{
19582
19582
  "/agent-config": {
19583
19583
  $get: {
@@ -21118,6 +21118,19 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21118
21118
  } & {
21119
21119
  "/repo/commit/:sha": {
21120
21120
  $get: {
21121
+ output: string;
21122
+ outputFormat: "text";
21123
+ status: import("hono/utils/http-status").ContentfulStatusCode;
21124
+ input: {
21125
+ query: {
21126
+ structured?: string | undefined;
21127
+ };
21128
+ } & {
21129
+ param: {
21130
+ sha: string;
21131
+ };
21132
+ };
21133
+ } | {
21121
21134
  output: {
21122
21135
  error: string;
21123
21136
  code?: "invalid_input" | undefined;
@@ -21181,19 +21194,6 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
21181
21194
  sha: string;
21182
21195
  };
21183
21196
  };
21184
- } | {
21185
- output: string;
21186
- outputFormat: "text";
21187
- status: import("hono/utils/http-status").ContentfulStatusCode;
21188
- input: {
21189
- query: {
21190
- structured?: string | undefined;
21191
- };
21192
- } & {
21193
- param: {
21194
- sha: string;
21195
- };
21196
- };
21197
21197
  };
21198
21198
  };
21199
21199
  } & {
@@ -23104,11 +23104,22 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23104
23104
  "/runs/:id/worker-destroy": {
23105
23105
  $post: {
23106
23106
  output: {
23107
- error: string;
23108
- code?: "invalid_input" | undefined;
23107
+ readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
23108
+ readonly error: string;
23109
+ readonly modelChoices?: {
23110
+ runner: string;
23111
+ requestedModel: string;
23112
+ availableModels: {
23113
+ id: string;
23114
+ label: string;
23115
+ description: string;
23116
+ effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
23117
+ }[];
23118
+ otherRunners: string[];
23119
+ } | undefined;
23109
23120
  };
23110
23121
  outputFormat: "json";
23111
- status: 400;
23122
+ status: 400 | 401 | 403 | 409 | 503;
23112
23123
  input: {
23113
23124
  query: {
23114
23125
  [x: string]: string | string[];
@@ -23124,22 +23135,11 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
23124
23135
  };
23125
23136
  } | {
23126
23137
  output: {
23127
- readonly code: "capacity_limit" | "denied_scope" | "incompatible_state" | "incomplete_cleanup" | "invalid_baseline" | "invalid_input" | "unauthenticated" | "unavailable_diff" | "unavailable_transport";
23128
- readonly error: string;
23129
- readonly modelChoices?: {
23130
- runner: string;
23131
- requestedModel: string;
23132
- availableModels: {
23133
- id: string;
23134
- label: string;
23135
- description: string;
23136
- effortLevels?: ("high" | "low" | "max" | "medium" | "xhigh")[] | undefined;
23137
- }[];
23138
- otherRunners: string[];
23139
- } | undefined;
23138
+ error: string;
23139
+ code?: "invalid_input" | undefined;
23140
23140
  };
23141
23141
  outputFormat: "json";
23142
- status: 400 | 401 | 403 | 409 | 503;
23142
+ status: 400;
23143
23143
  input: {
23144
23144
  query: {
23145
23145
  [x: string]: string | string[];
@@ -33698,20 +33698,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33698
33698
  } & {
33699
33699
  "/runs/:id/handoff": {
33700
33700
  $get: {
33701
- output: {
33702
- error: string;
33703
- };
33704
- outputFormat: "json";
33705
- status: 404;
33701
+ output: string;
33702
+ outputFormat: "text";
33703
+ status: 200;
33706
33704
  input: {
33707
33705
  param: {
33708
33706
  id: string;
33709
33707
  };
33710
33708
  };
33711
33709
  } | {
33712
- output: string;
33713
- outputFormat: "text";
33714
- status: 200;
33710
+ output: {
33711
+ error: string;
33712
+ };
33713
+ outputFormat: "json";
33714
+ status: 404;
33715
33715
  input: {
33716
33716
  param: {
33717
33717
  id: string;
@@ -33749,20 +33749,20 @@ export declare function createApp(deps: ServerDeps): import("hono/hono-base").Ho
33749
33749
  } & {
33750
33750
  "/runs/:id/diff": {
33751
33751
  $get: {
33752
- output: {
33753
- error: string;
33754
- };
33755
- outputFormat: "json";
33756
- status: 404 | 409;
33752
+ output: string;
33753
+ outputFormat: "text";
33754
+ status: import("hono/utils/http-status").ContentfulStatusCode;
33757
33755
  input: {
33758
33756
  param: {
33759
33757
  id: string;
33760
33758
  };
33761
33759
  };
33762
33760
  } | {
33763
- output: string;
33764
- outputFormat: "text";
33765
- status: import("hono/utils/http-status").ContentfulStatusCode;
33761
+ output: {
33762
+ error: string;
33763
+ };
33764
+ outputFormat: "json";
33765
+ status: 404 | 409;
33766
33766
  input: {
33767
33767
  param: {
33768
33768
  id: string;