@cat-factory/contracts 0.152.2 → 0.154.0

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.
@@ -411,7 +411,7 @@ export declare const requestHumanReviewFixContract: {
411
411
  readonly messageId: import("valibot").StringSchema<undefined>;
412
412
  }, undefined>, undefined>, undefined>;
413
413
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
414
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
414
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
415
415
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
416
416
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
417
417
  readonly id: import("valibot").StringSchema<undefined>;
@@ -430,11 +430,17 @@ export declare const requestHumanReviewFixContract: {
430
430
  readonly title: import("valibot").StringSchema<undefined>;
431
431
  readonly detail: import("valibot").StringSchema<undefined>;
432
432
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
433
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
434
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
435
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
436
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
437
+ }, undefined>, undefined>, undefined>;
433
438
  }, undefined>, undefined>, readonly []>;
434
439
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
435
440
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
436
441
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
437
442
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
443
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
438
444
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
439
445
  readonly attempted: import("valibot").NumberSchema<undefined>;
440
446
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -452,6 +458,10 @@ export declare const requestHumanReviewFixContract: {
452
458
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
453
459
  }, undefined>, undefined>, undefined>;
454
460
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
461
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
462
+ readonly findingId: import("valibot").StringSchema<undefined>;
463
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
464
+ }, undefined>, undefined>, undefined>;
455
465
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
456
466
  readonly previousProposal: import("valibot").StringSchema<undefined>;
457
467
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"human-review.d.ts","sourceRoot":"","sources":["../../src/routes/human-review.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMxC,CAAA"}
@@ -410,7 +410,7 @@ export declare const confirmHumanTestContract: {
410
410
  readonly messageId: import("valibot").StringSchema<undefined>;
411
411
  }, undefined>, undefined>, undefined>;
412
412
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
413
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
413
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
414
414
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
415
415
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
416
416
  readonly id: import("valibot").StringSchema<undefined>;
@@ -429,11 +429,17 @@ export declare const confirmHumanTestContract: {
429
429
  readonly title: import("valibot").StringSchema<undefined>;
430
430
  readonly detail: import("valibot").StringSchema<undefined>;
431
431
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
432
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
433
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
434
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
435
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
436
+ }, undefined>, undefined>, undefined>;
432
437
  }, undefined>, undefined>, readonly []>;
433
438
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
434
439
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
435
440
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
436
441
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
442
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
437
443
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
438
444
  readonly attempted: import("valibot").NumberSchema<undefined>;
439
445
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -451,6 +457,10 @@ export declare const confirmHumanTestContract: {
451
457
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
452
458
  }, undefined>, undefined>, undefined>;
453
459
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
460
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
461
+ readonly findingId: import("valibot").StringSchema<undefined>;
462
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
463
+ }, undefined>, undefined>, undefined>;
454
464
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
455
465
  readonly previousProposal: import("valibot").StringSchema<undefined>;
456
466
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -1220,7 +1230,7 @@ export declare const requestHumanTestFixContract: {
1220
1230
  readonly messageId: import("valibot").StringSchema<undefined>;
1221
1231
  }, undefined>, undefined>, undefined>;
1222
1232
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1223
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
1233
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
1224
1234
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1225
1235
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
1226
1236
  readonly id: import("valibot").StringSchema<undefined>;
@@ -1239,11 +1249,17 @@ export declare const requestHumanTestFixContract: {
1239
1249
  readonly title: import("valibot").StringSchema<undefined>;
1240
1250
  readonly detail: import("valibot").StringSchema<undefined>;
1241
1251
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1252
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1253
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
1254
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1255
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1256
+ }, undefined>, undefined>, undefined>;
1242
1257
  }, undefined>, undefined>, readonly []>;
1243
1258
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
1244
1259
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
1245
1260
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1246
1261
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1262
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1247
1263
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1248
1264
  readonly attempted: import("valibot").NumberSchema<undefined>;
1249
1265
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -1261,6 +1277,10 @@ export declare const requestHumanTestFixContract: {
1261
1277
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
1262
1278
  }, undefined>, undefined>, undefined>;
1263
1279
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
1280
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1281
+ readonly findingId: import("valibot").StringSchema<undefined>;
1282
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
1283
+ }, undefined>, undefined>, undefined>;
1264
1284
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1265
1285
  readonly previousProposal: import("valibot").StringSchema<undefined>;
1266
1286
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -2028,7 +2048,7 @@ export declare const pullMainHumanTestContract: {
2028
2048
  readonly messageId: import("valibot").StringSchema<undefined>;
2029
2049
  }, undefined>, undefined>, undefined>;
2030
2050
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2031
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
2051
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
2032
2052
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2033
2053
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
2034
2054
  readonly id: import("valibot").StringSchema<undefined>;
@@ -2047,11 +2067,17 @@ export declare const pullMainHumanTestContract: {
2047
2067
  readonly title: import("valibot").StringSchema<undefined>;
2048
2068
  readonly detail: import("valibot").StringSchema<undefined>;
2049
2069
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2070
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2071
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
2072
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2073
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2074
+ }, undefined>, undefined>, undefined>;
2050
2075
  }, undefined>, undefined>, readonly []>;
2051
2076
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
2052
2077
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
2053
2078
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2054
2079
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2080
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2055
2081
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2056
2082
  readonly attempted: import("valibot").NumberSchema<undefined>;
2057
2083
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -2069,6 +2095,10 @@ export declare const pullMainHumanTestContract: {
2069
2095
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
2070
2096
  }, undefined>, undefined>, undefined>;
2071
2097
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
2098
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2099
+ readonly findingId: import("valibot").StringSchema<undefined>;
2100
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2101
+ }, undefined>, undefined>, undefined>;
2072
2102
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2073
2103
  readonly previousProposal: import("valibot").StringSchema<undefined>;
2074
2104
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -2836,7 +2866,7 @@ export declare const recreateHumanTestEnvContract: {
2836
2866
  readonly messageId: import("valibot").StringSchema<undefined>;
2837
2867
  }, undefined>, undefined>, undefined>;
2838
2868
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2839
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
2869
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
2840
2870
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2841
2871
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
2842
2872
  readonly id: import("valibot").StringSchema<undefined>;
@@ -2855,11 +2885,17 @@ export declare const recreateHumanTestEnvContract: {
2855
2885
  readonly title: import("valibot").StringSchema<undefined>;
2856
2886
  readonly detail: import("valibot").StringSchema<undefined>;
2857
2887
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2888
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2889
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
2890
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2891
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2892
+ }, undefined>, undefined>, undefined>;
2858
2893
  }, undefined>, undefined>, readonly []>;
2859
2894
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
2860
2895
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
2861
2896
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2862
2897
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2898
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2863
2899
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2864
2900
  readonly attempted: import("valibot").NumberSchema<undefined>;
2865
2901
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -2877,6 +2913,10 @@ export declare const recreateHumanTestEnvContract: {
2877
2913
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
2878
2914
  }, undefined>, undefined>, undefined>;
2879
2915
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
2916
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2917
+ readonly findingId: import("valibot").StringSchema<undefined>;
2918
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
2919
+ }, undefined>, undefined>, undefined>;
2880
2920
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
2881
2921
  readonly previousProposal: import("valibot").StringSchema<undefined>;
2882
2922
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -3644,7 +3684,7 @@ export declare const destroyHumanTestEnvContract: {
3644
3684
  readonly messageId: import("valibot").StringSchema<undefined>;
3645
3685
  }, undefined>, undefined>, undefined>;
3646
3686
  readonly prReview: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
3647
- readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
3687
+ readonly status: import("valibot").PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
3648
3688
  readonly summary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3649
3689
  readonly slices: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
3650
3690
  readonly id: import("valibot").StringSchema<undefined>;
@@ -3663,11 +3703,17 @@ export declare const destroyHumanTestEnvContract: {
3663
3703
  readonly title: import("valibot").StringSchema<undefined>;
3664
3704
  readonly detail: import("valibot").StringSchema<undefined>;
3665
3705
  readonly suggestedFix: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3706
+ readonly challenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
3707
+ readonly status: import("valibot").PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
3708
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3709
+ readonly justification: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3710
+ }, undefined>, undefined>, undefined>;
3666
3711
  }, undefined>, undefined>, readonly []>;
3667
3712
  readonly selectedFindingIds: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>, readonly []>;
3668
3713
  readonly resolution: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
3669
3714
  readonly prUrl: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3670
3715
  readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3716
+ readonly reviewedHeadSha: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3671
3717
  readonly postReport: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
3672
3718
  readonly attempted: import("valibot").NumberSchema<undefined>;
3673
3719
  readonly posted: import("valibot").NumberSchema<undefined>;
@@ -3685,6 +3731,10 @@ export declare const destroyHumanTestEnvContract: {
3685
3731
  readonly postedBody: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, false>;
3686
3732
  }, undefined>, undefined>, undefined>;
3687
3733
  readonly pendingPrReviewPost: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").BooleanSchema<undefined>, undefined>, undefined>;
3734
+ readonly pendingChallenge: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
3735
+ readonly findingId: import("valibot").StringSchema<undefined>;
3736
+ readonly question: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
3737
+ }, undefined>, undefined>, undefined>;
3688
3738
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
3689
3739
  readonly previousProposal: import("valibot").StringSchema<undefined>;
3690
3740
  readonly feedback: import("valibot").StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"human-test.d.ts","sourceRoot":"","sources":["../../src/routes/human-test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAc3E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMtC,CAAA"}
@@ -1,3 +1,4 @@
1
+ import { ContractNoBody } from '@toad-contracts/valibot';
1
2
  import * as v from 'valibot';
2
3
  export declare const getPrReviewContract: {
3
4
  readonly method: "get";
@@ -31,7 +32,7 @@ export declare const getPrReviewContract: {
31
32
  }, undefined>;
32
33
  }, undefined>;
33
34
  readonly 200: v.NullableSchema<v.ObjectSchema<{
34
- readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
35
+ readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
35
36
  readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
36
37
  readonly slices: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
37
38
  readonly id: v.StringSchema<undefined>;
@@ -50,11 +51,17 @@ export declare const getPrReviewContract: {
50
51
  readonly title: v.StringSchema<undefined>;
51
52
  readonly detail: v.StringSchema<undefined>;
52
53
  readonly suggestedFix: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
54
+ readonly challenge: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
55
+ readonly status: v.PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
56
+ readonly question: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
57
+ readonly justification: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
58
+ }, undefined>, undefined>, undefined>;
53
59
  }, undefined>, undefined>, readonly []>;
54
60
  readonly selectedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
55
61
  readonly resolution: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
56
62
  readonly prUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
57
63
  readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
64
+ readonly reviewedHeadSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
58
65
  readonly postReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
59
66
  readonly attempted: v.NumberSchema<undefined>;
60
67
  readonly posted: v.NumberSchema<undefined>;
@@ -109,7 +116,177 @@ export declare const resolvePrReviewContract: {
109
116
  }, undefined>;
110
117
  }, undefined>;
111
118
  readonly 200: v.ObjectSchema<{
112
- readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "fixing", "posting", "done", "skipped"], undefined>;
119
+ readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
120
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
121
+ readonly slices: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
122
+ readonly id: v.StringSchema<undefined>;
123
+ readonly title: v.StringSchema<undefined>;
124
+ readonly rationale: v.StringSchema<undefined>;
125
+ readonly paths: v.ArraySchema<v.StringSchema<undefined>, undefined>;
126
+ }, undefined>, undefined>, readonly []>;
127
+ readonly findings: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
128
+ readonly id: v.StringSchema<undefined>;
129
+ readonly sliceId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
130
+ readonly path: v.StringSchema<undefined>;
131
+ readonly line: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
132
+ readonly side: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["LEFT", "RIGHT"], undefined>, undefined>, undefined>;
133
+ readonly severity: v.PicklistSchema<["blocker", "high", "medium", "low", "nit"], undefined>;
134
+ readonly category: v.PicklistSchema<["correctness", "security", "performance", "maintainability", "style", "test", "other"], undefined>;
135
+ readonly title: v.StringSchema<undefined>;
136
+ readonly detail: v.StringSchema<undefined>;
137
+ readonly suggestedFix: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
138
+ readonly challenge: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
139
+ readonly status: v.PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
140
+ readonly question: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
141
+ readonly justification: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
142
+ }, undefined>, undefined>, undefined>;
143
+ }, undefined>, undefined>, readonly []>;
144
+ readonly selectedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
145
+ readonly resolution: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
146
+ readonly prUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
147
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
148
+ readonly reviewedHeadSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
149
+ readonly postReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
150
+ readonly attempted: v.NumberSchema<undefined>;
151
+ readonly posted: v.NumberSchema<undefined>;
152
+ readonly folded: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
153
+ readonly bodyPosted: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
154
+ readonly bodyError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
155
+ readonly failures: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
156
+ readonly findingId: v.StringSchema<undefined>;
157
+ readonly path: v.StringSchema<undefined>;
158
+ readonly line: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
159
+ readonly reason: v.StringSchema<undefined>;
160
+ }, undefined>, undefined>, readonly []>;
161
+ }, undefined>, undefined>, undefined>;
162
+ readonly postedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
163
+ readonly postedBody: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
164
+ }, undefined>;
165
+ };
166
+ };
167
+ /** Dismiss a parked finding entirely (removes it + prunes it from the selection). */
168
+ export declare const dismissPrReviewFindingContract: {
169
+ readonly method: "post";
170
+ readonly requestPathParamsSchema: v.ObjectSchema<{
171
+ readonly executionId: v.StringSchema<undefined>;
172
+ readonly findingId: v.StringSchema<undefined>;
173
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
174
+ readonly pathResolver: ({ executionId, findingId }: {
175
+ executionId: string;
176
+ findingId: string;
177
+ }) => string;
178
+ readonly requestBodySchema: typeof ContractNoBody;
179
+ readonly responsesByStatusCode: {
180
+ readonly '4xx': v.ObjectSchema<{
181
+ readonly error: v.ObjectSchema<{
182
+ readonly code: v.StringSchema<undefined>;
183
+ readonly message: v.StringSchema<undefined>;
184
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
185
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
186
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
187
+ readonly message: v.StringSchema<undefined>;
188
+ }, undefined>, undefined>, undefined>;
189
+ }, undefined>;
190
+ }, undefined>;
191
+ readonly '5xx': v.ObjectSchema<{
192
+ readonly error: v.ObjectSchema<{
193
+ readonly code: v.StringSchema<undefined>;
194
+ readonly message: v.StringSchema<undefined>;
195
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
196
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
197
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
198
+ readonly message: v.StringSchema<undefined>;
199
+ }, undefined>, undefined>, undefined>;
200
+ }, undefined>;
201
+ }, undefined>;
202
+ readonly 200: v.ObjectSchema<{
203
+ readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
204
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
205
+ readonly slices: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
206
+ readonly id: v.StringSchema<undefined>;
207
+ readonly title: v.StringSchema<undefined>;
208
+ readonly rationale: v.StringSchema<undefined>;
209
+ readonly paths: v.ArraySchema<v.StringSchema<undefined>, undefined>;
210
+ }, undefined>, undefined>, readonly []>;
211
+ readonly findings: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
212
+ readonly id: v.StringSchema<undefined>;
213
+ readonly sliceId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
214
+ readonly path: v.StringSchema<undefined>;
215
+ readonly line: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
216
+ readonly side: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["LEFT", "RIGHT"], undefined>, undefined>, undefined>;
217
+ readonly severity: v.PicklistSchema<["blocker", "high", "medium", "low", "nit"], undefined>;
218
+ readonly category: v.PicklistSchema<["correctness", "security", "performance", "maintainability", "style", "test", "other"], undefined>;
219
+ readonly title: v.StringSchema<undefined>;
220
+ readonly detail: v.StringSchema<undefined>;
221
+ readonly suggestedFix: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
222
+ readonly challenge: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
223
+ readonly status: v.PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
224
+ readonly question: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
225
+ readonly justification: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
226
+ }, undefined>, undefined>, undefined>;
227
+ }, undefined>, undefined>, readonly []>;
228
+ readonly selectedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
229
+ readonly resolution: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
230
+ readonly prUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
231
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
232
+ readonly reviewedHeadSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
233
+ readonly postReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
234
+ readonly attempted: v.NumberSchema<undefined>;
235
+ readonly posted: v.NumberSchema<undefined>;
236
+ readonly folded: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
237
+ readonly bodyPosted: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
238
+ readonly bodyError: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
239
+ readonly failures: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
240
+ readonly findingId: v.StringSchema<undefined>;
241
+ readonly path: v.StringSchema<undefined>;
242
+ readonly line: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
243
+ readonly reason: v.StringSchema<undefined>;
244
+ }, undefined>, undefined>, readonly []>;
245
+ }, undefined>, undefined>, undefined>;
246
+ readonly postedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
247
+ readonly postedBody: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
248
+ }, undefined>;
249
+ };
250
+ };
251
+ /** Challenge a parked finding — dispatch the Challenge Investigator to re-examine it. */
252
+ export declare const challengePrReviewFindingContract: {
253
+ readonly method: "post";
254
+ readonly requestPathParamsSchema: v.ObjectSchema<{
255
+ readonly executionId: v.StringSchema<undefined>;
256
+ readonly findingId: v.StringSchema<undefined>;
257
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
258
+ readonly pathResolver: ({ executionId, findingId }: {
259
+ executionId: string;
260
+ findingId: string;
261
+ }) => string;
262
+ readonly requestBodySchema: v.ObjectSchema<{
263
+ readonly question: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
264
+ }, undefined>;
265
+ readonly responsesByStatusCode: {
266
+ readonly '4xx': v.ObjectSchema<{
267
+ readonly error: v.ObjectSchema<{
268
+ readonly code: v.StringSchema<undefined>;
269
+ readonly message: v.StringSchema<undefined>;
270
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
271
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
272
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
273
+ readonly message: v.StringSchema<undefined>;
274
+ }, undefined>, undefined>, undefined>;
275
+ }, undefined>;
276
+ }, undefined>;
277
+ readonly '5xx': v.ObjectSchema<{
278
+ readonly error: v.ObjectSchema<{
279
+ readonly code: v.StringSchema<undefined>;
280
+ readonly message: v.StringSchema<undefined>;
281
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
282
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
283
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
284
+ readonly message: v.StringSchema<undefined>;
285
+ }, undefined>, undefined>, undefined>;
286
+ }, undefined>;
287
+ }, undefined>;
288
+ readonly 200: v.ObjectSchema<{
289
+ readonly status: v.PicklistSchema<["reviewing", "awaiting_selection", "challenging", "fixing", "posting", "done", "skipped"], undefined>;
113
290
  readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
114
291
  readonly slices: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
115
292
  readonly id: v.StringSchema<undefined>;
@@ -128,11 +305,17 @@ export declare const resolvePrReviewContract: {
128
305
  readonly title: v.StringSchema<undefined>;
129
306
  readonly detail: v.StringSchema<undefined>;
130
307
  readonly suggestedFix: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
308
+ readonly challenge: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
309
+ readonly status: v.PicklistSchema<["investigating", "upheld", "amended", "retracted", "failed"], undefined>;
310
+ readonly question: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
311
+ readonly justification: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
312
+ }, undefined>, undefined>, undefined>;
131
313
  }, undefined>, undefined>, readonly []>;
132
314
  readonly selectedFindingIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, readonly []>;
133
315
  readonly resolution: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["finish", "fix", "post"], undefined>, undefined>, undefined>;
134
316
  readonly prUrl: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
135
317
  readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
318
+ readonly reviewedHeadSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
136
319
  readonly postReport: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
137
320
  readonly attempted: v.NumberSchema<undefined>;
138
321
  readonly posted: v.NumberSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"prReview.d.ts","sourceRoot":"","sources":["../../src/routes/prReview.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK9B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA"}
1
+ {"version":3,"file":"prReview.d.ts","sourceRoot":"","sources":["../../src/routes/prReview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqB5B,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK9B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,qFAAqF;AACrF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOzC,CAAA;AAEF,yFAAyF;AACzF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO3C,CAAA"}
@@ -1,15 +1,18 @@
1
- import { defineApiContract } from '@toad-contracts/valibot';
1
+ import { ContractNoBody, defineApiContract, withObjectKeys } from '@toad-contracts/valibot';
2
2
  import * as v from 'valibot';
3
- import { prReviewStepStateSchema, resolvePrReviewSchema } from '../prReview.js';
3
+ import { challengePrReviewFindingSchema, prReviewStepStateSchema, resolvePrReviewSchema, } from '../prReview.js';
4
4
  import { errorResponses, singleStringParam } from './_shared.js';
5
5
  // ---------------------------------------------------------------------------
6
6
  // PR deep-review route contracts. Mounted under `/workspaces/:workspaceId`, so the
7
7
  // paths here are relative to that prefix. The read returns the run's active PR-review
8
8
  // state (or null when no `pr-reviewer` step carries one); `resolve` records the human's
9
- // curated finding selection and completes the read-only review. See PrReviewController in
10
- // @cat-factory/server.
9
+ // curated finding selection and completes the read-only review. The per-finding
10
+ // `dismiss` / `challenge` endpoints let a human drop a finding entirely, or dispatch the
11
+ // Challenge Investigator to re-examine it (strengthen or retract). See PrReviewController
12
+ // in @cat-factory/server.
11
13
  // ---------------------------------------------------------------------------
12
14
  const executionIdParams = singleStringParam('executionId');
15
+ const findingParams = withObjectKeys(v.object({ executionId: v.string(), findingId: v.string() }));
13
16
  export const getPrReviewContract = defineApiContract({
14
17
  method: 'get',
15
18
  requestPathParamsSchema: executionIdParams,
@@ -23,4 +26,20 @@ export const resolvePrReviewContract = defineApiContract({
23
26
  requestBodySchema: resolvePrReviewSchema,
24
27
  responsesByStatusCode: { 200: prReviewStepStateSchema, ...errorResponses },
25
28
  });
29
+ /** Dismiss a parked finding entirely (removes it + prunes it from the selection). */
30
+ export const dismissPrReviewFindingContract = defineApiContract({
31
+ method: 'post',
32
+ requestPathParamsSchema: findingParams,
33
+ pathResolver: ({ executionId, findingId }) => `/executions/${executionId}/pr-review/findings/${findingId}/dismiss`,
34
+ requestBodySchema: ContractNoBody,
35
+ responsesByStatusCode: { 200: prReviewStepStateSchema, ...errorResponses },
36
+ });
37
+ /** Challenge a parked finding — dispatch the Challenge Investigator to re-examine it. */
38
+ export const challengePrReviewFindingContract = defineApiContract({
39
+ method: 'post',
40
+ requestPathParamsSchema: findingParams,
41
+ pathResolver: ({ executionId, findingId }) => `/executions/${executionId}/pr-review/findings/${findingId}/challenge`,
42
+ requestBodySchema: challengePrReviewFindingSchema,
43
+ responsesByStatusCode: { 200: prReviewStepStateSchema, ...errorResponses },
44
+ });
26
45
  //# sourceMappingURL=prReview.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prReview.js","sourceRoot":"","sources":["../../src/routes/prReview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAA;AAC/E,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,mFAAmF;AACnF,sFAAsF;AACtF,wFAAwF;AACxF,0FAA0F;AAC1F,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;IACnD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,YAAY;IACzE,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,EAAE,GAAG,cAAc,EAAE;CACvF,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,oBAAoB;IACjF,iBAAiB,EAAE,qBAAqB;IACxC,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA"}
1
+ {"version":3,"file":"prReview.js","sourceRoot":"","sources":["../../src/routes/prReview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;A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