@hasna/todos 0.11.95 → 0.12.1

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 (111) hide show
  1. package/README.md +5 -5
  2. package/dist/cli/cloud-router.d.ts +5 -0
  3. package/dist/cli/cloud-router.d.ts.map +1 -1
  4. package/dist/cli/commands/agent-commands.d.ts.map +1 -1
  5. package/dist/cli/commands/api-key-commands.d.ts.map +1 -1
  6. package/dist/cli/commands/config-serve-commands.d.ts.map +1 -1
  7. package/dist/cli/commands/help-commands.d.ts +2 -1
  8. package/dist/cli/commands/help-commands.d.ts.map +1 -1
  9. package/dist/cli/commands/knowledge-commands.d.ts.map +1 -1
  10. package/dist/cli/commands/mcp-hooks-commands.d.ts.map +1 -1
  11. package/dist/cli/commands/plan-template-commands.d.ts.map +1 -1
  12. package/dist/cli/commands/pr-group-commands.d.ts +3 -0
  13. package/dist/cli/commands/pr-group-commands.d.ts.map +1 -0
  14. package/dist/cli/commands/project-commands.d.ts.map +1 -1
  15. package/dist/cli/commands/query-commands.d.ts.map +1 -1
  16. package/dist/cli/commands/risk-commands.d.ts.map +1 -1
  17. package/dist/cli/commands/task-commands.d.ts.map +1 -1
  18. package/dist/cli/commands/usage-ledger-commands.d.ts.map +1 -1
  19. package/dist/cli/helpers.d.ts +23 -0
  20. package/dist/cli/helpers.d.ts.map +1 -1
  21. package/dist/cli/index.js +7870 -1904
  22. package/dist/cli/stage-a.d.ts +17 -0
  23. package/dist/cli/stage-a.d.ts.map +1 -1
  24. package/dist/contracts.js +1638 -502
  25. package/dist/db/agent-names.d.ts +13 -1
  26. package/dist/db/agent-names.d.ts.map +1 -1
  27. package/dist/db/agents.d.ts +4 -0
  28. package/dist/db/agents.d.ts.map +1 -1
  29. package/dist/db/audit.d.ts.map +1 -1
  30. package/dist/db/database.d.ts.map +1 -1
  31. package/dist/db/dispatches.d.ts.map +1 -1
  32. package/dist/db/identity-mapping.d.ts +40 -0
  33. package/dist/db/identity-mapping.d.ts.map +1 -0
  34. package/dist/db/inbox.d.ts.map +1 -1
  35. package/dist/db/migrations.d.ts.map +1 -1
  36. package/dist/db/schema.d.ts.map +1 -1
  37. package/dist/db/task-commits.d.ts.map +1 -1
  38. package/dist/db/task-crud.d.ts.map +1 -1
  39. package/dist/db/task-lifecycle.d.ts.map +1 -1
  40. package/dist/index.d.ts +5 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +4621 -833
  43. package/dist/json-contracts.d.ts +4 -2
  44. package/dist/json-contracts.d.ts.map +1 -1
  45. package/dist/lib/activity-audit.d.ts.map +1 -1
  46. package/dist/lib/artifact-store.d.ts.map +1 -1
  47. package/dist/lib/cli-help.d.ts +14 -3
  48. package/dist/lib/cli-help.d.ts.map +1 -1
  49. package/dist/lib/evidence-redaction.d.ts +72 -0
  50. package/dist/lib/evidence-redaction.d.ts.map +1 -0
  51. package/dist/lib/headless-boundaries.d.ts +1 -1
  52. package/dist/lib/headless-boundaries.d.ts.map +1 -1
  53. package/dist/lib/import-export-bridge.d.ts.map +1 -1
  54. package/dist/lib/local-bridge.d.ts +1 -0
  55. package/dist/lib/local-bridge.d.ts.map +1 -1
  56. package/dist/lib/local-encryption.d.ts.map +1 -1
  57. package/dist/lib/prewrite-secrets.d.ts +29 -0
  58. package/dist/lib/prewrite-secrets.d.ts.map +1 -0
  59. package/dist/lib/redaction.d.ts.map +1 -1
  60. package/dist/lib/search.d.ts +3 -0
  61. package/dist/lib/search.d.ts.map +1 -1
  62. package/dist/lib/task-route-sources.d.ts +2 -0
  63. package/dist/lib/task-route-sources.d.ts.map +1 -1
  64. package/dist/lib/task-routing.d.ts.map +1 -1
  65. package/dist/mcp/index.js +6183 -1016
  66. package/dist/mcp.js +1 -1
  67. package/dist/pr-groups/http-client.d.ts +24 -0
  68. package/dist/pr-groups/http-client.d.ts.map +1 -0
  69. package/dist/pr-groups/index.d.ts +9 -0
  70. package/dist/pr-groups/index.d.ts.map +1 -0
  71. package/dist/pr-groups/ledger.d.ts +20 -0
  72. package/dist/pr-groups/ledger.d.ts.map +1 -0
  73. package/dist/pr-groups/postgres.d.ts +21 -0
  74. package/dist/pr-groups/postgres.d.ts.map +1 -0
  75. package/dist/pr-groups/sqlite.d.ts +16 -0
  76. package/dist/pr-groups/sqlite.d.ts.map +1 -0
  77. package/dist/pr-groups/types.d.ts +320 -0
  78. package/dist/pr-groups/types.d.ts.map +1 -0
  79. package/dist/registry.js +1638 -502
  80. package/dist/release-provenance.json +5 -5
  81. package/dist/sdk/client.d.ts +16 -0
  82. package/dist/sdk/client.d.ts.map +1 -1
  83. package/dist/sdk/index.d.ts +2 -1
  84. package/dist/sdk/index.d.ts.map +1 -1
  85. package/dist/sdk/index.js +64 -0
  86. package/dist/sdk/v1.generated.d.ts +285 -0
  87. package/dist/sdk/v1.generated.d.ts.map +1 -1
  88. package/dist/server/cloud.d.ts +3 -0
  89. package/dist/server/cloud.d.ts.map +1 -1
  90. package/dist/server/index.js +6079 -912
  91. package/dist/server/openapi.d.ts +1254 -0
  92. package/dist/server/openapi.d.ts.map +1 -1
  93. package/dist/server/pr-groups.d.ts +7 -0
  94. package/dist/server/pr-groups.d.ts.map +1 -0
  95. package/dist/server/serve.d.ts.map +1 -1
  96. package/dist/server/v1.d.ts +2 -1
  97. package/dist/server/v1.d.ts.map +1 -1
  98. package/dist/storage/cloud-client.d.ts +1 -0
  99. package/dist/storage/cloud-client.d.ts.map +1 -1
  100. package/dist/storage/config.d.ts +5 -5
  101. package/dist/storage/config.d.ts.map +1 -1
  102. package/dist/storage/index.d.ts +1 -1
  103. package/dist/storage/index.d.ts.map +1 -1
  104. package/dist/storage/local-sqlite.d.ts.map +1 -1
  105. package/dist/storage/postgres-sync.d.ts.map +1 -1
  106. package/dist/storage.d.ts +1 -1
  107. package/dist/storage.d.ts.map +1 -1
  108. package/dist/storage.js +1860 -540
  109. package/dist/types/index.d.ts +90 -0
  110. package/dist/types/index.d.ts.map +1 -1
  111. package/package.json +1 -1
@@ -846,6 +846,1050 @@ export declare function buildV1OpenApiDocument(version?: string): {
846
846
  };
847
847
  };
848
848
  };
849
+ PrGroupCiProof: {
850
+ type: string;
851
+ additionalProperties: boolean;
852
+ required: string[];
853
+ properties: {
854
+ provider: {
855
+ type: string;
856
+ minLength: number;
857
+ };
858
+ provider_run_id: {
859
+ type: string;
860
+ minLength: number;
861
+ };
862
+ status: {
863
+ type: string;
864
+ enum: string[];
865
+ };
866
+ repository: {
867
+ type: string;
868
+ minLength: number;
869
+ };
870
+ pr_number: {
871
+ type: string;
872
+ minimum: number;
873
+ };
874
+ base_sha: {
875
+ type: string;
876
+ pattern: string;
877
+ };
878
+ head_sha: {
879
+ type: string;
880
+ pattern: string;
881
+ };
882
+ };
883
+ };
884
+ PrGroupCleanupProof: {
885
+ type: string;
886
+ additionalProperties: boolean;
887
+ required: string[];
888
+ properties: {
889
+ worktree_clean: {
890
+ type: string;
891
+ const: boolean;
892
+ };
893
+ provider_reachable: {
894
+ type: string;
895
+ const: boolean;
896
+ };
897
+ provider_head_sha: {
898
+ type: string;
899
+ pattern: string;
900
+ };
901
+ pr_policy_satisfied: {
902
+ type: string;
903
+ const: boolean;
904
+ };
905
+ terminal_disposition: {
906
+ type: string;
907
+ enum: string[];
908
+ };
909
+ writer_retired: {
910
+ type: string;
911
+ const: boolean;
912
+ };
913
+ review_receipt_key: {
914
+ type: string;
915
+ nullable: boolean;
916
+ };
917
+ conditional_merge_receipt_key: {
918
+ type: string;
919
+ nullable: boolean;
920
+ };
921
+ merge_receipt_key: {
922
+ type: string;
923
+ nullable: boolean;
924
+ };
925
+ };
926
+ };
927
+ PrGroupRecord: {
928
+ type: string;
929
+ additionalProperties: boolean;
930
+ required: string[];
931
+ properties: {
932
+ schema_version: {
933
+ type: string;
934
+ const: number;
935
+ };
936
+ id: {
937
+ type: string;
938
+ };
939
+ identity_key: {
940
+ type: string;
941
+ };
942
+ root_request_id: {
943
+ type: string;
944
+ };
945
+ repository: {
946
+ type: string;
947
+ };
948
+ leaf_task_id: {
949
+ type: string;
950
+ };
951
+ branch: {
952
+ type: string;
953
+ };
954
+ pr_number: {
955
+ type: string;
956
+ nullable: boolean;
957
+ };
958
+ base_sha: {
959
+ type: string;
960
+ nullable: boolean;
961
+ };
962
+ state: {
963
+ type: string;
964
+ enum: string[];
965
+ };
966
+ active_attempt_id: {
967
+ type: string;
968
+ nullable: boolean;
969
+ };
970
+ active_generation: {
971
+ type: string;
972
+ nullable: boolean;
973
+ };
974
+ repair_cycle_count: {
975
+ type: string;
976
+ minimum: number;
977
+ maximum: number;
978
+ };
979
+ repair_cycle_limit: {
980
+ type: string;
981
+ const: number;
982
+ };
983
+ terminal_attempt_id: {
984
+ type: string;
985
+ nullable: boolean;
986
+ };
987
+ terminal_generation: {
988
+ type: string;
989
+ nullable: boolean;
990
+ };
991
+ terminal_outcome: {
992
+ type: string;
993
+ nullable: boolean;
994
+ enum: (string | null)[];
995
+ };
996
+ terminal_head_sha: {
997
+ type: string;
998
+ nullable: boolean;
999
+ };
1000
+ terminal_at: {
1001
+ type: string;
1002
+ nullable: boolean;
1003
+ };
1004
+ cleanup_eligible_at: {
1005
+ type: string;
1006
+ nullable: boolean;
1007
+ };
1008
+ revision: {
1009
+ type: string;
1010
+ minimum: number;
1011
+ };
1012
+ created_at: {
1013
+ type: string;
1014
+ };
1015
+ updated_at: {
1016
+ type: string;
1017
+ };
1018
+ };
1019
+ };
1020
+ PrGroupAttemptRecord: {
1021
+ type: string;
1022
+ additionalProperties: boolean;
1023
+ required: string[];
1024
+ properties: {
1025
+ schema_version: {
1026
+ type: string;
1027
+ const: number;
1028
+ };
1029
+ id: {
1030
+ type: string;
1031
+ };
1032
+ group_id: {
1033
+ type: string;
1034
+ };
1035
+ leaf_task_id: {
1036
+ type: string;
1037
+ };
1038
+ dispatch_attempt: {
1039
+ type: string;
1040
+ };
1041
+ writer_generation: {
1042
+ type: string;
1043
+ };
1044
+ previous_attempt_id: {
1045
+ type: string;
1046
+ nullable: boolean;
1047
+ };
1048
+ worktree: {
1049
+ type: string;
1050
+ };
1051
+ branch: {
1052
+ type: string;
1053
+ };
1054
+ repository: {
1055
+ type: string;
1056
+ };
1057
+ pr_number: {
1058
+ type: string;
1059
+ nullable: boolean;
1060
+ };
1061
+ base_sha: {
1062
+ type: string;
1063
+ nullable: boolean;
1064
+ };
1065
+ provider: {
1066
+ type: string;
1067
+ nullable: boolean;
1068
+ };
1069
+ provider_run_id: {
1070
+ type: string;
1071
+ nullable: boolean;
1072
+ };
1073
+ profile_alias: {
1074
+ type: string;
1075
+ nullable: boolean;
1076
+ };
1077
+ status: {
1078
+ type: string;
1079
+ enum: string[];
1080
+ };
1081
+ admitted_at: {
1082
+ type: string;
1083
+ };
1084
+ started_at: {
1085
+ type: string;
1086
+ nullable: boolean;
1087
+ };
1088
+ last_heartbeat_at: {
1089
+ type: string;
1090
+ nullable: boolean;
1091
+ };
1092
+ handed_off_at: {
1093
+ type: string;
1094
+ nullable: boolean;
1095
+ };
1096
+ fenced_at: {
1097
+ type: string;
1098
+ nullable: boolean;
1099
+ };
1100
+ terminal_at: {
1101
+ type: string;
1102
+ nullable: boolean;
1103
+ };
1104
+ created_at: {
1105
+ type: string;
1106
+ };
1107
+ updated_at: {
1108
+ type: string;
1109
+ };
1110
+ };
1111
+ };
1112
+ PrGroupEventRecord: {
1113
+ type: string;
1114
+ additionalProperties: boolean;
1115
+ required: string[];
1116
+ properties: {
1117
+ schema_version: {
1118
+ type: string;
1119
+ const: number;
1120
+ };
1121
+ id: {
1122
+ type: string;
1123
+ };
1124
+ group_id: {
1125
+ type: string;
1126
+ };
1127
+ attempt_id: {
1128
+ type: string;
1129
+ };
1130
+ writer_generation: {
1131
+ type: string;
1132
+ };
1133
+ sequence: {
1134
+ type: string;
1135
+ minimum: number;
1136
+ };
1137
+ idempotency_key: {
1138
+ type: string;
1139
+ };
1140
+ event_type: {
1141
+ type: string;
1142
+ enum: string[];
1143
+ };
1144
+ state: {
1145
+ type: string;
1146
+ enum: string[];
1147
+ };
1148
+ message: {
1149
+ type: string;
1150
+ nullable: boolean;
1151
+ };
1152
+ head_sha: {
1153
+ type: string;
1154
+ nullable: boolean;
1155
+ };
1156
+ receipt_key: {
1157
+ type: string;
1158
+ nullable: boolean;
1159
+ };
1160
+ review_receipt_key: {
1161
+ type: string;
1162
+ nullable: boolean;
1163
+ };
1164
+ conditional_merge_receipt_key: {
1165
+ type: string;
1166
+ nullable: boolean;
1167
+ };
1168
+ outcome: {
1169
+ type: string;
1170
+ nullable: boolean;
1171
+ enum: (string | null)[];
1172
+ };
1173
+ repository: {
1174
+ type: string;
1175
+ };
1176
+ pr_number: {
1177
+ type: string;
1178
+ nullable: boolean;
1179
+ };
1180
+ base_sha: {
1181
+ type: string;
1182
+ nullable: boolean;
1183
+ };
1184
+ actor_id: {
1185
+ type: string;
1186
+ nullable: boolean;
1187
+ };
1188
+ actor_run_id: {
1189
+ type: string;
1190
+ nullable: boolean;
1191
+ };
1192
+ expected_reviewer_id: {
1193
+ type: string;
1194
+ nullable: boolean;
1195
+ };
1196
+ expected_reviewer_run_id: {
1197
+ type: string;
1198
+ nullable: boolean;
1199
+ };
1200
+ repair_cycle: {
1201
+ type: string;
1202
+ nullable: boolean;
1203
+ };
1204
+ ci_proof: {
1205
+ oneOf: ({
1206
+ $ref: string;
1207
+ type?: undefined;
1208
+ } | {
1209
+ type: string;
1210
+ $ref?: undefined;
1211
+ })[];
1212
+ };
1213
+ cleanup_proof: {
1214
+ oneOf: ({
1215
+ $ref: string;
1216
+ type?: undefined;
1217
+ } | {
1218
+ type: string;
1219
+ $ref?: undefined;
1220
+ })[];
1221
+ };
1222
+ metadata: {
1223
+ type: string;
1224
+ additionalProperties: boolean;
1225
+ };
1226
+ payload_hash: {
1227
+ type: string;
1228
+ };
1229
+ created_at: {
1230
+ type: string;
1231
+ };
1232
+ };
1233
+ };
1234
+ PrGroupWorkRunAdapter: {
1235
+ type: string;
1236
+ additionalProperties: boolean;
1237
+ required: string[];
1238
+ properties: {
1239
+ kind: {
1240
+ type: string;
1241
+ const: string;
1242
+ };
1243
+ id: {
1244
+ type: string;
1245
+ };
1246
+ group_id: {
1247
+ type: string;
1248
+ };
1249
+ task_id: {
1250
+ type: string;
1251
+ };
1252
+ dispatch_attempt: {
1253
+ type: string;
1254
+ };
1255
+ writer_generation: {
1256
+ type: string;
1257
+ };
1258
+ previous_run_id: {
1259
+ type: string;
1260
+ nullable: boolean;
1261
+ };
1262
+ worktree: {
1263
+ type: string;
1264
+ };
1265
+ branch: {
1266
+ type: string;
1267
+ };
1268
+ repository: {
1269
+ type: string;
1270
+ };
1271
+ pr_number: {
1272
+ type: string;
1273
+ nullable: boolean;
1274
+ };
1275
+ base_sha: {
1276
+ type: string;
1277
+ nullable: boolean;
1278
+ };
1279
+ provider: {
1280
+ type: string;
1281
+ nullable: boolean;
1282
+ };
1283
+ provider_run_id: {
1284
+ type: string;
1285
+ nullable: boolean;
1286
+ };
1287
+ profile_alias: {
1288
+ type: string;
1289
+ nullable: boolean;
1290
+ };
1291
+ status: {
1292
+ type: string;
1293
+ };
1294
+ admitted_at: {
1295
+ type: string;
1296
+ };
1297
+ terminal_at: {
1298
+ type: string;
1299
+ nullable: boolean;
1300
+ };
1301
+ };
1302
+ };
1303
+ PrGroupEvidenceRefAdapter: {
1304
+ type: string;
1305
+ additionalProperties: boolean;
1306
+ required: string[];
1307
+ properties: {
1308
+ kind: {
1309
+ type: string;
1310
+ const: string;
1311
+ };
1312
+ id: {
1313
+ type: string;
1314
+ };
1315
+ group_id: {
1316
+ type: string;
1317
+ };
1318
+ work_run_id: {
1319
+ type: string;
1320
+ };
1321
+ sequence: {
1322
+ type: string;
1323
+ minimum: number;
1324
+ };
1325
+ evidence_type: {
1326
+ type: string;
1327
+ };
1328
+ repository: {
1329
+ type: string;
1330
+ };
1331
+ pr_number: {
1332
+ type: string;
1333
+ nullable: boolean;
1334
+ };
1335
+ base_sha: {
1336
+ type: string;
1337
+ nullable: boolean;
1338
+ };
1339
+ head_sha: {
1340
+ type: string;
1341
+ nullable: boolean;
1342
+ };
1343
+ receipt_key: {
1344
+ type: string;
1345
+ nullable: boolean;
1346
+ };
1347
+ outcome: {
1348
+ type: string;
1349
+ nullable: boolean;
1350
+ enum: (string | null)[];
1351
+ };
1352
+ actor_id: {
1353
+ type: string;
1354
+ nullable: boolean;
1355
+ };
1356
+ actor_run_id: {
1357
+ type: string;
1358
+ nullable: boolean;
1359
+ };
1360
+ payload_hash: {
1361
+ type: string;
1362
+ };
1363
+ created_at: {
1364
+ type: string;
1365
+ };
1366
+ };
1367
+ };
1368
+ PrGroupProofBundleAdapter: {
1369
+ type: string;
1370
+ additionalProperties: boolean;
1371
+ required: string[];
1372
+ properties: {
1373
+ kind: {
1374
+ type: string;
1375
+ const: string;
1376
+ };
1377
+ id: {
1378
+ type: string;
1379
+ };
1380
+ group_id: {
1381
+ type: string;
1382
+ };
1383
+ revision: {
1384
+ type: string;
1385
+ minimum: number;
1386
+ };
1387
+ evidence_ref_ids: {
1388
+ type: string;
1389
+ items: {
1390
+ type: string;
1391
+ };
1392
+ };
1393
+ exact_head: {
1394
+ type: string;
1395
+ nullable: boolean;
1396
+ };
1397
+ complete: {
1398
+ type: string;
1399
+ };
1400
+ };
1401
+ };
1402
+ PrGroupDecisionEnvelopeAdapter: {
1403
+ type: string;
1404
+ additionalProperties: boolean;
1405
+ required: string[];
1406
+ properties: {
1407
+ kind: {
1408
+ type: string;
1409
+ const: string;
1410
+ };
1411
+ id: {
1412
+ type: string;
1413
+ };
1414
+ group_id: {
1415
+ type: string;
1416
+ };
1417
+ state: {
1418
+ type: string;
1419
+ };
1420
+ active_work_run_id: {
1421
+ type: string;
1422
+ nullable: boolean;
1423
+ };
1424
+ active_writer_generation: {
1425
+ type: string;
1426
+ nullable: boolean;
1427
+ };
1428
+ repair_cycle_count: {
1429
+ type: string;
1430
+ minimum: number;
1431
+ maximum: number;
1432
+ };
1433
+ repair_cycle_limit: {
1434
+ type: string;
1435
+ const: number;
1436
+ };
1437
+ terminal_outcome: {
1438
+ type: string;
1439
+ nullable: boolean;
1440
+ enum: (string | null)[];
1441
+ };
1442
+ terminal_head_sha: {
1443
+ type: string;
1444
+ nullable: boolean;
1445
+ };
1446
+ cleanup_eligible: {
1447
+ type: string;
1448
+ };
1449
+ revision: {
1450
+ type: string;
1451
+ minimum: number;
1452
+ };
1453
+ };
1454
+ };
1455
+ PrGroupStateView: {
1456
+ type: string;
1457
+ additionalProperties: boolean;
1458
+ required: string[];
1459
+ properties: {
1460
+ schema_version: {
1461
+ type: string;
1462
+ const: number;
1463
+ };
1464
+ authoritative: {
1465
+ type: string;
1466
+ const: boolean;
1467
+ };
1468
+ authority: {
1469
+ type: string;
1470
+ enum: string[];
1471
+ };
1472
+ group: {
1473
+ $ref: string;
1474
+ };
1475
+ attempts: {
1476
+ type: string;
1477
+ maxItems: number;
1478
+ items: {
1479
+ $ref: string;
1480
+ };
1481
+ };
1482
+ latest_event: {
1483
+ oneOf: ({
1484
+ $ref: string;
1485
+ type?: undefined;
1486
+ } | {
1487
+ type: string;
1488
+ $ref?: undefined;
1489
+ })[];
1490
+ };
1491
+ review_receipts: {
1492
+ type: string;
1493
+ maxItems: number;
1494
+ items: {
1495
+ $ref: string;
1496
+ };
1497
+ };
1498
+ conditional_merge_receipts: {
1499
+ type: string;
1500
+ maxItems: number;
1501
+ items: {
1502
+ $ref: string;
1503
+ };
1504
+ };
1505
+ merge_receipts: {
1506
+ type: string;
1507
+ maxItems: number;
1508
+ items: {
1509
+ $ref: string;
1510
+ };
1511
+ };
1512
+ cleanup_receipts: {
1513
+ type: string;
1514
+ maxItems: number;
1515
+ items: {
1516
+ $ref: string;
1517
+ };
1518
+ };
1519
+ cleanup_eligible: {
1520
+ type: string;
1521
+ };
1522
+ adapters: {
1523
+ type: string;
1524
+ additionalProperties: boolean;
1525
+ required: string[];
1526
+ properties: {
1527
+ work_runs: {
1528
+ type: string;
1529
+ maxItems: number;
1530
+ items: {
1531
+ $ref: string;
1532
+ };
1533
+ };
1534
+ evidence_refs: {
1535
+ type: string;
1536
+ maxItems: number;
1537
+ items: {
1538
+ $ref: string;
1539
+ };
1540
+ };
1541
+ proof_bundle: {
1542
+ $ref: string;
1543
+ };
1544
+ decision_envelope: {
1545
+ $ref: string;
1546
+ };
1547
+ };
1548
+ };
1549
+ diagnostics: {
1550
+ type: string;
1551
+ additionalProperties: boolean;
1552
+ required: string[];
1553
+ properties: {
1554
+ event_count: {
1555
+ type: string;
1556
+ minimum: number;
1557
+ };
1558
+ attempts_omitted: {
1559
+ type: string;
1560
+ };
1561
+ receipt_history_complete: {
1562
+ type: string;
1563
+ };
1564
+ projection_limits: {
1565
+ type: string;
1566
+ additionalProperties: boolean;
1567
+ required: string[];
1568
+ properties: {
1569
+ attempts: {
1570
+ type: string;
1571
+ minimum: number;
1572
+ };
1573
+ receipts: {
1574
+ type: string;
1575
+ minimum: number;
1576
+ };
1577
+ };
1578
+ };
1579
+ };
1580
+ };
1581
+ };
1582
+ };
1583
+ PrGroupStateResponse: {
1584
+ type: string;
1585
+ additionalProperties: boolean;
1586
+ required: string[];
1587
+ properties: {
1588
+ view: {
1589
+ $ref: string;
1590
+ };
1591
+ };
1592
+ };
1593
+ PrGroupEventPage: {
1594
+ type: string;
1595
+ additionalProperties: boolean;
1596
+ required: string[];
1597
+ properties: {
1598
+ schema_version: {
1599
+ type: string;
1600
+ const: number;
1601
+ };
1602
+ authoritative: {
1603
+ type: string;
1604
+ const: boolean;
1605
+ };
1606
+ authority: {
1607
+ type: string;
1608
+ enum: string[];
1609
+ };
1610
+ group_id: {
1611
+ type: string;
1612
+ };
1613
+ events: {
1614
+ type: string;
1615
+ maxItems: number;
1616
+ items: {
1617
+ $ref: string;
1618
+ };
1619
+ };
1620
+ count: {
1621
+ type: string;
1622
+ minimum: number;
1623
+ maximum: number;
1624
+ };
1625
+ has_more: {
1626
+ type: string;
1627
+ };
1628
+ next_sequence: {
1629
+ type: string;
1630
+ nullable: boolean;
1631
+ };
1632
+ };
1633
+ };
1634
+ PrGroupEventHistoryResponse: {
1635
+ type: string;
1636
+ additionalProperties: boolean;
1637
+ required: string[];
1638
+ properties: {
1639
+ history: {
1640
+ $ref: string;
1641
+ };
1642
+ };
1643
+ };
1644
+ AdmitPrGroupInput: {
1645
+ type: string;
1646
+ additionalProperties: boolean;
1647
+ required: string[];
1648
+ properties: {
1649
+ root_request_id: {
1650
+ type: string;
1651
+ minLength: number;
1652
+ };
1653
+ repository: {
1654
+ type: string;
1655
+ minLength: number;
1656
+ };
1657
+ leaf_task_id: {
1658
+ type: string;
1659
+ minLength: number;
1660
+ };
1661
+ dispatch_attempt: {
1662
+ type: string;
1663
+ minLength: number;
1664
+ };
1665
+ writer_generation: {
1666
+ type: string;
1667
+ minLength: number;
1668
+ };
1669
+ worktree: {
1670
+ type: string;
1671
+ minLength: number;
1672
+ };
1673
+ branch: {
1674
+ type: string;
1675
+ minLength: number;
1676
+ };
1677
+ pr_number: {
1678
+ type: string;
1679
+ nullable: boolean;
1680
+ };
1681
+ base_sha: {
1682
+ type: string;
1683
+ nullable: boolean;
1684
+ };
1685
+ provider: {
1686
+ type: string;
1687
+ nullable: boolean;
1688
+ };
1689
+ provider_run_id: {
1690
+ type: string;
1691
+ nullable: boolean;
1692
+ };
1693
+ profile_alias: {
1694
+ type: string;
1695
+ nullable: boolean;
1696
+ };
1697
+ admitted_at: {
1698
+ type: string;
1699
+ };
1700
+ };
1701
+ };
1702
+ RecoverPrGroupInput: {
1703
+ type: string;
1704
+ additionalProperties: boolean;
1705
+ required: string[];
1706
+ properties: {
1707
+ root_request_id: {
1708
+ type: string;
1709
+ };
1710
+ repository: {
1711
+ type: string;
1712
+ };
1713
+ leaf_task_id: {
1714
+ type: string;
1715
+ };
1716
+ expected_attempt_id: {
1717
+ type: string;
1718
+ };
1719
+ dispatch_attempt: {
1720
+ type: string;
1721
+ };
1722
+ expected_generation: {
1723
+ type: string;
1724
+ };
1725
+ writer_generation: {
1726
+ type: string;
1727
+ };
1728
+ worktree: {
1729
+ type: string;
1730
+ };
1731
+ branch: {
1732
+ type: string;
1733
+ };
1734
+ pr_number: {
1735
+ type: string;
1736
+ nullable: boolean;
1737
+ };
1738
+ base_sha: {
1739
+ type: string;
1740
+ nullable: boolean;
1741
+ };
1742
+ provider: {
1743
+ type: string;
1744
+ nullable: boolean;
1745
+ };
1746
+ provider_run_id: {
1747
+ type: string;
1748
+ nullable: boolean;
1749
+ };
1750
+ profile_alias: {
1751
+ type: string;
1752
+ nullable: boolean;
1753
+ };
1754
+ idempotency_key: {
1755
+ type: string;
1756
+ };
1757
+ message: {
1758
+ type: string;
1759
+ nullable: boolean;
1760
+ };
1761
+ metadata: {
1762
+ type: string;
1763
+ additionalProperties: boolean;
1764
+ };
1765
+ recovered_at: {
1766
+ type: string;
1767
+ };
1768
+ };
1769
+ };
1770
+ AppendPrGroupEventInput: {
1771
+ type: string;
1772
+ additionalProperties: boolean;
1773
+ required: string[];
1774
+ properties: {
1775
+ attempt_id: {
1776
+ type: string;
1777
+ };
1778
+ writer_generation: {
1779
+ type: string;
1780
+ };
1781
+ idempotency_key: {
1782
+ type: string;
1783
+ };
1784
+ event_type: {
1785
+ type: string;
1786
+ enum: string[];
1787
+ };
1788
+ message: {
1789
+ type: string;
1790
+ nullable: boolean;
1791
+ };
1792
+ head_sha: {
1793
+ type: string;
1794
+ nullable: boolean;
1795
+ };
1796
+ receipt_key: {
1797
+ type: string;
1798
+ nullable: boolean;
1799
+ };
1800
+ review_receipt_key: {
1801
+ type: string;
1802
+ nullable: boolean;
1803
+ };
1804
+ conditional_merge_receipt_key: {
1805
+ type: string;
1806
+ nullable: boolean;
1807
+ };
1808
+ outcome: {
1809
+ type: string;
1810
+ nullable: boolean;
1811
+ enum: (string | null)[];
1812
+ };
1813
+ repository: {
1814
+ type: string;
1815
+ };
1816
+ pr_number: {
1817
+ type: string;
1818
+ nullable: boolean;
1819
+ };
1820
+ base_sha: {
1821
+ type: string;
1822
+ nullable: boolean;
1823
+ };
1824
+ actor_id: {
1825
+ type: string;
1826
+ nullable: boolean;
1827
+ };
1828
+ actor_run_id: {
1829
+ type: string;
1830
+ nullable: boolean;
1831
+ };
1832
+ expected_reviewer_id: {
1833
+ type: string;
1834
+ nullable: boolean;
1835
+ };
1836
+ expected_reviewer_run_id: {
1837
+ type: string;
1838
+ nullable: boolean;
1839
+ };
1840
+ repair_cycle: {
1841
+ type: string;
1842
+ nullable: boolean;
1843
+ };
1844
+ ci_proof: {
1845
+ oneOf: ({
1846
+ $ref: string;
1847
+ type?: undefined;
1848
+ } | {
1849
+ type: string;
1850
+ $ref?: undefined;
1851
+ })[];
1852
+ };
1853
+ cleanup_proof: {
1854
+ oneOf: ({
1855
+ $ref: string;
1856
+ type?: undefined;
1857
+ } | {
1858
+ type: string;
1859
+ $ref?: undefined;
1860
+ })[];
1861
+ };
1862
+ metadata: {
1863
+ type: string;
1864
+ additionalProperties: boolean;
1865
+ };
1866
+ created_at: {
1867
+ type: string;
1868
+ };
1869
+ };
1870
+ };
1871
+ PrGroupMutationResult: {
1872
+ type: string;
1873
+ additionalProperties: boolean;
1874
+ required: string[];
1875
+ properties: {
1876
+ created: {
1877
+ type: string;
1878
+ };
1879
+ adopted: {
1880
+ type: string;
1881
+ };
1882
+ appended: {
1883
+ type: string;
1884
+ };
1885
+ view: {
1886
+ $ref: string;
1887
+ };
1888
+ event: {
1889
+ $ref: string;
1890
+ };
1891
+ };
1892
+ };
849
1893
  };
850
1894
  };
851
1895
  security: {
@@ -1969,6 +3013,216 @@ export declare function buildV1OpenApiDocument(version?: string): {
1969
3013
  };
1970
3014
  };
1971
3015
  };
3016
+ "/v1/pr-groups/admit": {
3017
+ post: {
3018
+ operationId: string;
3019
+ summary: string;
3020
+ requestBody: {
3021
+ required: boolean;
3022
+ content: {
3023
+ "application/json": {
3024
+ schema: {
3025
+ $ref: string;
3026
+ };
3027
+ };
3028
+ };
3029
+ };
3030
+ responses: {
3031
+ "201": {
3032
+ content: {
3033
+ "application/json": {
3034
+ schema: {
3035
+ $ref: string;
3036
+ };
3037
+ };
3038
+ };
3039
+ };
3040
+ "409": {
3041
+ content: {
3042
+ "application/json": {
3043
+ schema: {
3044
+ $ref: string;
3045
+ };
3046
+ };
3047
+ };
3048
+ };
3049
+ };
3050
+ };
3051
+ };
3052
+ "/v1/pr-groups/{id}": {
3053
+ get: {
3054
+ operationId: string;
3055
+ summary: string;
3056
+ parameters: {
3057
+ name: string;
3058
+ in: string;
3059
+ required: boolean;
3060
+ schema: {
3061
+ type: string;
3062
+ };
3063
+ }[];
3064
+ responses: {
3065
+ "200": {
3066
+ content: {
3067
+ "application/json": {
3068
+ schema: {
3069
+ $ref: string;
3070
+ };
3071
+ };
3072
+ };
3073
+ };
3074
+ "404": {
3075
+ content: {
3076
+ "application/json": {
3077
+ schema: {
3078
+ $ref: string;
3079
+ };
3080
+ };
3081
+ };
3082
+ };
3083
+ };
3084
+ };
3085
+ };
3086
+ "/v1/pr-groups/{id}/events": {
3087
+ get: {
3088
+ operationId: string;
3089
+ summary: string;
3090
+ parameters: ({
3091
+ name: string;
3092
+ in: string;
3093
+ required: boolean;
3094
+ schema: {
3095
+ type: string;
3096
+ minimum?: undefined;
3097
+ maximum?: undefined;
3098
+ };
3099
+ } | {
3100
+ name: string;
3101
+ in: string;
3102
+ schema: {
3103
+ type: string;
3104
+ minimum: number;
3105
+ maximum?: undefined;
3106
+ };
3107
+ required?: undefined;
3108
+ } | {
3109
+ name: string;
3110
+ in: string;
3111
+ schema: {
3112
+ type: string;
3113
+ minimum: number;
3114
+ maximum: number;
3115
+ };
3116
+ required?: undefined;
3117
+ })[];
3118
+ responses: {
3119
+ "200": {
3120
+ content: {
3121
+ "application/json": {
3122
+ schema: {
3123
+ $ref: string;
3124
+ };
3125
+ };
3126
+ };
3127
+ };
3128
+ "404": {
3129
+ content: {
3130
+ "application/json": {
3131
+ schema: {
3132
+ $ref: string;
3133
+ };
3134
+ };
3135
+ };
3136
+ };
3137
+ };
3138
+ };
3139
+ post: {
3140
+ operationId: string;
3141
+ summary: string;
3142
+ parameters: {
3143
+ name: string;
3144
+ in: string;
3145
+ required: boolean;
3146
+ schema: {
3147
+ type: string;
3148
+ };
3149
+ }[];
3150
+ requestBody: {
3151
+ required: boolean;
3152
+ content: {
3153
+ "application/json": {
3154
+ schema: {
3155
+ $ref: string;
3156
+ };
3157
+ };
3158
+ };
3159
+ };
3160
+ responses: {
3161
+ "201": {
3162
+ content: {
3163
+ "application/json": {
3164
+ schema: {
3165
+ $ref: string;
3166
+ };
3167
+ };
3168
+ };
3169
+ };
3170
+ "409": {
3171
+ content: {
3172
+ "application/json": {
3173
+ schema: {
3174
+ $ref: string;
3175
+ };
3176
+ };
3177
+ };
3178
+ };
3179
+ };
3180
+ };
3181
+ };
3182
+ "/v1/pr-groups/{id}/recover": {
3183
+ post: {
3184
+ operationId: string;
3185
+ summary: string;
3186
+ parameters: {
3187
+ name: string;
3188
+ in: string;
3189
+ required: boolean;
3190
+ schema: {
3191
+ type: string;
3192
+ };
3193
+ }[];
3194
+ requestBody: {
3195
+ required: boolean;
3196
+ content: {
3197
+ "application/json": {
3198
+ schema: {
3199
+ $ref: string;
3200
+ };
3201
+ };
3202
+ };
3203
+ };
3204
+ responses: {
3205
+ "201": {
3206
+ content: {
3207
+ "application/json": {
3208
+ schema: {
3209
+ $ref: string;
3210
+ };
3211
+ };
3212
+ };
3213
+ };
3214
+ "409": {
3215
+ content: {
3216
+ "application/json": {
3217
+ schema: {
3218
+ $ref: string;
3219
+ };
3220
+ };
3221
+ };
3222
+ };
3223
+ };
3224
+ };
3225
+ };
1972
3226
  "/v1/stats": {
1973
3227
  get: {
1974
3228
  operationId: string;