@cat-factory/contracts 0.124.1 → 0.125.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.
Files changed (54) hide show
  1. package/dist/agent-presentation.d.ts +2 -2
  2. package/dist/entities.d.ts +106 -0
  3. package/dist/entities.d.ts.map +1 -1
  4. package/dist/entities.js +20 -0
  5. package/dist/entities.js.map +1 -1
  6. package/dist/forkDecision.d.ts +169 -0
  7. package/dist/forkDecision.d.ts.map +1 -0
  8. package/dist/forkDecision.js +145 -0
  9. package/dist/forkDecision.js.map +1 -0
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +1 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/merge.d.ts +32 -0
  15. package/dist/merge.d.ts.map +1 -1
  16. package/dist/merge.js +15 -0
  17. package/dist/merge.js.map +1 -1
  18. package/dist/notifications.d.ts +6 -2
  19. package/dist/notifications.d.ts.map +1 -1
  20. package/dist/notifications.js +8 -0
  21. package/dist/notifications.js.map +1 -1
  22. package/dist/result-views.d.ts +1 -1
  23. package/dist/result-views.d.ts.map +1 -1
  24. package/dist/result-views.js +1 -0
  25. package/dist/result-views.js.map +1 -1
  26. package/dist/routes/agent-runs.d.ts +72 -0
  27. package/dist/routes/agent-runs.d.ts.map +1 -1
  28. package/dist/routes/execution.d.ts +288 -0
  29. package/dist/routes/execution.d.ts.map +1 -1
  30. package/dist/routes/forkDecision.d.ts +143 -0
  31. package/dist/routes/forkDecision.d.ts.map +1 -0
  32. package/dist/routes/forkDecision.js +27 -0
  33. package/dist/routes/forkDecision.js.map +1 -0
  34. package/dist/routes/human-review.d.ts +36 -0
  35. package/dist/routes/human-review.d.ts.map +1 -1
  36. package/dist/routes/human-test.d.ts +180 -0
  37. package/dist/routes/human-test.d.ts.map +1 -1
  38. package/dist/routes/index.d.ts +1 -0
  39. package/dist/routes/index.d.ts.map +1 -1
  40. package/dist/routes/index.js +1 -0
  41. package/dist/routes/index.js.map +1 -1
  42. package/dist/routes/merge.d.ts +42 -0
  43. package/dist/routes/merge.d.ts.map +1 -1
  44. package/dist/routes/notifications.d.ts +6 -3
  45. package/dist/routes/notifications.d.ts.map +1 -1
  46. package/dist/routes/slack.d.ts +3 -3
  47. package/dist/routes/visual-confirm.d.ts +108 -0
  48. package/dist/routes/visual-confirm.d.ts.map +1 -1
  49. package/dist/routes/workspaces.d.ts +92 -4
  50. package/dist/routes/workspaces.d.ts.map +1 -1
  51. package/dist/slack.d.ts +2 -2
  52. package/dist/snapshot.d.ts +46 -2
  53. package/dist/snapshot.d.ts.map +1 -1
  54. package/package.json +1 -1
@@ -359,6 +359,42 @@ export declare const startExecutionContract: {
359
359
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
360
360
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
361
361
  }, undefined>, undefined>, undefined>;
362
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
363
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
364
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
365
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
366
+ readonly id: v.StringSchema<undefined>;
367
+ readonly title: v.StringSchema<undefined>;
368
+ readonly summary: v.StringSchema<undefined>;
369
+ readonly approach: v.StringSchema<undefined>;
370
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
371
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
372
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
373
+ }, undefined>, undefined>, readonly []>;
374
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
375
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
376
+ readonly id: v.StringSchema<undefined>;
377
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
378
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
379
+ readonly createdAt: v.NumberSchema<undefined>;
380
+ }, undefined>, undefined>, readonly []>;
381
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
382
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
383
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
384
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
385
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
386
+ readonly at: v.NumberSchema<undefined>;
387
+ }, undefined>, v.CheckAction<{
388
+ forkId?: string | null | undefined;
389
+ custom?: string | null | undefined;
390
+ note?: string | null | undefined;
391
+ at: number;
392
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
393
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
394
+ }, undefined>, undefined>, undefined>;
395
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
396
+ readonly messageId: v.StringSchema<undefined>;
397
+ }, undefined>, undefined>, undefined>;
362
398
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
363
399
  readonly previousProposal: v.StringSchema<undefined>;
364
400
  readonly feedback: v.StringSchema<undefined>;
@@ -1841,6 +1877,42 @@ export declare const resumeSpendContract: {
1841
1877
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
1842
1878
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
1843
1879
  }, undefined>, undefined>, undefined>;
1880
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1881
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
1882
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1883
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1884
+ readonly id: v.StringSchema<undefined>;
1885
+ readonly title: v.StringSchema<undefined>;
1886
+ readonly summary: v.StringSchema<undefined>;
1887
+ readonly approach: v.StringSchema<undefined>;
1888
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
1889
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1890
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1891
+ }, undefined>, undefined>, readonly []>;
1892
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1893
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1894
+ readonly id: v.StringSchema<undefined>;
1895
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
1896
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
1897
+ readonly createdAt: v.NumberSchema<undefined>;
1898
+ }, undefined>, undefined>, readonly []>;
1899
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
1900
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1901
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1902
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1903
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1904
+ readonly at: v.NumberSchema<undefined>;
1905
+ }, undefined>, v.CheckAction<{
1906
+ forkId?: string | null | undefined;
1907
+ custom?: string | null | undefined;
1908
+ note?: string | null | undefined;
1909
+ at: number;
1910
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
1911
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1912
+ }, undefined>, undefined>, undefined>;
1913
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1914
+ readonly messageId: v.StringSchema<undefined>;
1915
+ }, undefined>, undefined>, undefined>;
1844
1916
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1845
1917
  readonly previousProposal: v.StringSchema<undefined>;
1846
1918
  readonly feedback: v.StringSchema<undefined>;
@@ -2862,6 +2934,42 @@ export declare const resolveDecisionContract: {
2862
2934
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
2863
2935
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
2864
2936
  }, undefined>, undefined>, undefined>;
2937
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2938
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
2939
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2940
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2941
+ readonly id: v.StringSchema<undefined>;
2942
+ readonly title: v.StringSchema<undefined>;
2943
+ readonly summary: v.StringSchema<undefined>;
2944
+ readonly approach: v.StringSchema<undefined>;
2945
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
2946
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2947
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
2948
+ }, undefined>, undefined>, readonly []>;
2949
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2950
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
2951
+ readonly id: v.StringSchema<undefined>;
2952
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
2953
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
2954
+ readonly createdAt: v.NumberSchema<undefined>;
2955
+ }, undefined>, undefined>, readonly []>;
2956
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
2957
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
2958
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2959
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2960
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2961
+ readonly at: v.NumberSchema<undefined>;
2962
+ }, undefined>, v.CheckAction<{
2963
+ forkId?: string | null | undefined;
2964
+ custom?: string | null | undefined;
2965
+ note?: string | null | undefined;
2966
+ at: number;
2967
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
2968
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
2969
+ }, undefined>, undefined>, undefined>;
2970
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2971
+ readonly messageId: v.StringSchema<undefined>;
2972
+ }, undefined>, undefined>, undefined>;
2865
2973
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
2866
2974
  readonly previousProposal: v.StringSchema<undefined>;
2867
2975
  readonly feedback: v.StringSchema<undefined>;
@@ -3573,6 +3681,42 @@ export declare const approveStepContract: {
3573
3681
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
3574
3682
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
3575
3683
  }, undefined>, undefined>, undefined>;
3684
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3685
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
3686
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3687
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
3688
+ readonly id: v.StringSchema<undefined>;
3689
+ readonly title: v.StringSchema<undefined>;
3690
+ readonly summary: v.StringSchema<undefined>;
3691
+ readonly approach: v.StringSchema<undefined>;
3692
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
3693
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3694
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
3695
+ }, undefined>, undefined>, readonly []>;
3696
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3697
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
3698
+ readonly id: v.StringSchema<undefined>;
3699
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
3700
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
3701
+ readonly createdAt: v.NumberSchema<undefined>;
3702
+ }, undefined>, undefined>, readonly []>;
3703
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
3704
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
3705
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3706
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3707
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3708
+ readonly at: v.NumberSchema<undefined>;
3709
+ }, undefined>, v.CheckAction<{
3710
+ forkId?: string | null | undefined;
3711
+ custom?: string | null | undefined;
3712
+ note?: string | null | undefined;
3713
+ at: number;
3714
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
3715
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
3716
+ }, undefined>, undefined>, undefined>;
3717
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3718
+ readonly messageId: v.StringSchema<undefined>;
3719
+ }, undefined>, undefined>, undefined>;
3576
3720
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
3577
3721
  readonly previousProposal: v.StringSchema<undefined>;
3578
3722
  readonly feedback: v.StringSchema<undefined>;
@@ -4298,6 +4442,42 @@ export declare const requestStepChangesContract: {
4298
4442
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
4299
4443
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
4300
4444
  }, undefined>, undefined>, undefined>;
4445
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4446
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
4447
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4448
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4449
+ readonly id: v.StringSchema<undefined>;
4450
+ readonly title: v.StringSchema<undefined>;
4451
+ readonly summary: v.StringSchema<undefined>;
4452
+ readonly approach: v.StringSchema<undefined>;
4453
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
4454
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4455
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
4456
+ }, undefined>, undefined>, readonly []>;
4457
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4458
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
4459
+ readonly id: v.StringSchema<undefined>;
4460
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
4461
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
4462
+ readonly createdAt: v.NumberSchema<undefined>;
4463
+ }, undefined>, undefined>, readonly []>;
4464
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
4465
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
4466
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4467
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4468
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4469
+ readonly at: v.NumberSchema<undefined>;
4470
+ }, undefined>, v.CheckAction<{
4471
+ forkId?: string | null | undefined;
4472
+ custom?: string | null | undefined;
4473
+ note?: string | null | undefined;
4474
+ at: number;
4475
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
4476
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
4477
+ }, undefined>, undefined>, undefined>;
4478
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4479
+ readonly messageId: v.StringSchema<undefined>;
4480
+ }, undefined>, undefined>, undefined>;
4301
4481
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
4302
4482
  readonly previousProposal: v.StringSchema<undefined>;
4303
4483
  readonly feedback: v.StringSchema<undefined>;
@@ -5009,6 +5189,42 @@ export declare const resolveStepExceededContract: {
5009
5189
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
5010
5190
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
5011
5191
  }, undefined>, undefined>, undefined>;
5192
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5193
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
5194
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5195
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
5196
+ readonly id: v.StringSchema<undefined>;
5197
+ readonly title: v.StringSchema<undefined>;
5198
+ readonly summary: v.StringSchema<undefined>;
5199
+ readonly approach: v.StringSchema<undefined>;
5200
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
5201
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5202
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
5203
+ }, undefined>, undefined>, readonly []>;
5204
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5205
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
5206
+ readonly id: v.StringSchema<undefined>;
5207
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
5208
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
5209
+ readonly createdAt: v.NumberSchema<undefined>;
5210
+ }, undefined>, undefined>, readonly []>;
5211
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
5212
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
5213
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5214
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5215
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5216
+ readonly at: v.NumberSchema<undefined>;
5217
+ }, undefined>, v.CheckAction<{
5218
+ forkId?: string | null | undefined;
5219
+ custom?: string | null | undefined;
5220
+ note?: string | null | undefined;
5221
+ at: number;
5222
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
5223
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5224
+ }, undefined>, undefined>, undefined>;
5225
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5226
+ readonly messageId: v.StringSchema<undefined>;
5227
+ }, undefined>, undefined>, undefined>;
5012
5228
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5013
5229
  readonly previousProposal: v.StringSchema<undefined>;
5014
5230
  readonly feedback: v.StringSchema<undefined>;
@@ -5718,6 +5934,42 @@ export declare const restartExecutionContract: {
5718
5934
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
5719
5935
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
5720
5936
  }, undefined>, undefined>, undefined>;
5937
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5938
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
5939
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5940
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
5941
+ readonly id: v.StringSchema<undefined>;
5942
+ readonly title: v.StringSchema<undefined>;
5943
+ readonly summary: v.StringSchema<undefined>;
5944
+ readonly approach: v.StringSchema<undefined>;
5945
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
5946
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5947
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
5948
+ }, undefined>, undefined>, readonly []>;
5949
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5950
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
5951
+ readonly id: v.StringSchema<undefined>;
5952
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
5953
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
5954
+ readonly createdAt: v.NumberSchema<undefined>;
5955
+ }, undefined>, undefined>, readonly []>;
5956
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
5957
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
5958
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5959
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5960
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5961
+ readonly at: v.NumberSchema<undefined>;
5962
+ }, undefined>, v.CheckAction<{
5963
+ forkId?: string | null | undefined;
5964
+ custom?: string | null | undefined;
5965
+ note?: string | null | undefined;
5966
+ at: number;
5967
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
5968
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
5969
+ }, undefined>, undefined>, undefined>;
5970
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5971
+ readonly messageId: v.StringSchema<undefined>;
5972
+ }, undefined>, undefined>, undefined>;
5721
5973
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
5722
5974
  readonly previousProposal: v.StringSchema<undefined>;
5723
5975
  readonly feedback: v.StringSchema<undefined>;
@@ -6429,6 +6681,42 @@ export declare const rejectStepContract: {
6429
6681
  readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
6430
6682
  readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
6431
6683
  }, undefined>, undefined>, undefined>;
6684
+ readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
6685
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
6686
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6687
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
6688
+ readonly id: v.StringSchema<undefined>;
6689
+ readonly title: v.StringSchema<undefined>;
6690
+ readonly summary: v.StringSchema<undefined>;
6691
+ readonly approach: v.StringSchema<undefined>;
6692
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
6693
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6694
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
6695
+ }, undefined>, undefined>, readonly []>;
6696
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6697
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
6698
+ readonly id: v.StringSchema<undefined>;
6699
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
6700
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
6701
+ readonly createdAt: v.NumberSchema<undefined>;
6702
+ }, undefined>, undefined>, readonly []>;
6703
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
6704
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
6705
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6706
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6707
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6708
+ readonly at: v.NumberSchema<undefined>;
6709
+ }, undefined>, v.CheckAction<{
6710
+ forkId?: string | null | undefined;
6711
+ custom?: string | null | undefined;
6712
+ note?: string | null | undefined;
6713
+ at: number;
6714
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
6715
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
6716
+ }, undefined>, undefined>, undefined>;
6717
+ readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
6718
+ readonly messageId: v.StringSchema<undefined>;
6719
+ }, undefined>, undefined>, undefined>;
6432
6720
  readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
6433
6721
  readonly previousProposal: v.StringSchema<undefined>;
6434
6722
  readonly feedback: v.StringSchema<undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"execution.d.ts","sourceRoot":"","sources":["../../src/routes/execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsD5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAO7B,CAAA"}
@@ -0,0 +1,143 @@
1
+ import * as v from 'valibot';
2
+ export declare const getForkDecisionContract: {
3
+ readonly method: "get";
4
+ readonly requestPathParamsSchema: v.ObjectSchema<{
5
+ executionId: v.StringSchema<undefined>;
6
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
7
+ readonly pathResolver: ({ executionId }: {
8
+ executionId: string;
9
+ }) => string;
10
+ readonly responsesByStatusCode: {
11
+ readonly '4xx': v.ObjectSchema<{
12
+ readonly error: v.ObjectSchema<{
13
+ readonly code: v.StringSchema<undefined>;
14
+ readonly message: v.StringSchema<undefined>;
15
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
16
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
17
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
18
+ readonly message: v.StringSchema<undefined>;
19
+ }, undefined>, undefined>, undefined>;
20
+ }, undefined>;
21
+ }, undefined>;
22
+ readonly '5xx': v.ObjectSchema<{
23
+ readonly error: v.ObjectSchema<{
24
+ readonly code: v.StringSchema<undefined>;
25
+ readonly message: v.StringSchema<undefined>;
26
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
27
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
28
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
29
+ readonly message: v.StringSchema<undefined>;
30
+ }, undefined>, undefined>, undefined>;
31
+ }, undefined>;
32
+ }, undefined>;
33
+ readonly 200: v.NullableSchema<v.ObjectSchema<{
34
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
35
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
36
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
37
+ readonly id: v.StringSchema<undefined>;
38
+ readonly title: v.StringSchema<undefined>;
39
+ readonly summary: v.StringSchema<undefined>;
40
+ readonly approach: v.StringSchema<undefined>;
41
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
42
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
43
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
44
+ }, undefined>, undefined>, readonly []>;
45
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
46
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
47
+ readonly id: v.StringSchema<undefined>;
48
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
49
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
50
+ readonly createdAt: v.NumberSchema<undefined>;
51
+ }, undefined>, undefined>, readonly []>;
52
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
53
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
54
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
55
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
56
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
57
+ readonly at: v.NumberSchema<undefined>;
58
+ }, undefined>, v.CheckAction<{
59
+ forkId?: string | null | undefined;
60
+ custom?: string | null | undefined;
61
+ note?: string | null | undefined;
62
+ at: number;
63
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
64
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
65
+ }, undefined>, undefined>;
66
+ };
67
+ };
68
+ export declare const chooseForkContract: {
69
+ readonly method: "post";
70
+ readonly requestPathParamsSchema: v.ObjectSchema<{
71
+ executionId: v.StringSchema<undefined>;
72
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
73
+ readonly pathResolver: ({ executionId }: {
74
+ executionId: string;
75
+ }) => string;
76
+ readonly requestBodySchema: v.SchemaWithPipe<readonly [v.ObjectSchema<{
77
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
78
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 8000, undefined>]>, undefined>, undefined>;
79
+ readonly note: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 4000, undefined>]>, undefined>, undefined>;
80
+ }, undefined>, v.CheckAction<{
81
+ forkId?: string | null | undefined;
82
+ custom?: string | null | undefined;
83
+ note?: string | null | undefined;
84
+ }, "Provide exactly one of forkId or custom.">]>;
85
+ readonly responsesByStatusCode: {
86
+ readonly '4xx': v.ObjectSchema<{
87
+ readonly error: v.ObjectSchema<{
88
+ readonly code: v.StringSchema<undefined>;
89
+ readonly message: v.StringSchema<undefined>;
90
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
91
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
92
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
93
+ readonly message: v.StringSchema<undefined>;
94
+ }, undefined>, undefined>, undefined>;
95
+ }, undefined>;
96
+ }, undefined>;
97
+ readonly '5xx': v.ObjectSchema<{
98
+ readonly error: v.ObjectSchema<{
99
+ readonly code: v.StringSchema<undefined>;
100
+ readonly message: v.StringSchema<undefined>;
101
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
102
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
103
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
104
+ readonly message: v.StringSchema<undefined>;
105
+ }, undefined>, undefined>, undefined>;
106
+ }, undefined>;
107
+ }, undefined>;
108
+ readonly 200: v.ObjectSchema<{
109
+ readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
110
+ readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
111
+ readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
112
+ readonly id: v.StringSchema<undefined>;
113
+ readonly title: v.StringSchema<undefined>;
114
+ readonly summary: v.StringSchema<undefined>;
115
+ readonly approach: v.StringSchema<undefined>;
116
+ readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
117
+ readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
118
+ readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
119
+ }, undefined>, undefined>, readonly []>;
120
+ readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
121
+ readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
122
+ readonly id: v.StringSchema<undefined>;
123
+ readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
124
+ readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
125
+ readonly createdAt: v.NumberSchema<undefined>;
126
+ }, undefined>, undefined>, readonly []>;
127
+ readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
128
+ readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
129
+ readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
130
+ readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
131
+ readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
132
+ readonly at: v.NumberSchema<undefined>;
133
+ }, undefined>, v.CheckAction<{
134
+ forkId?: string | null | undefined;
135
+ custom?: string | null | undefined;
136
+ note?: string | null | undefined;
137
+ at: number;
138
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
139
+ readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
140
+ }, undefined>;
141
+ };
142
+ };
143
+ //# sourceMappingURL=forkDecision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forkDecision.d.ts","sourceRoot":"","sources":["../../src/routes/forkDecision.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM7B,CAAA"}
@@ -0,0 +1,27 @@
1
+ import { defineApiContract } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ import { chooseForkSchema, forkDecisionStepStateSchema } from '../forkDecision.js';
4
+ import { errorResponses, singleStringParam } from './_shared.js';
5
+ // ---------------------------------------------------------------------------
6
+ // Implementation-fork decision route contracts. Mounted under
7
+ // `/workspaces/:workspaceId`, so the paths here are relative to that prefix. The
8
+ // read returns the run's active fork-decision state (or null when no coder step
9
+ // carries one); `choose` records the human's pick and re-runs the Coder with it
10
+ // folded in. Chat is added in a later slice. See ForkDecisionController in
11
+ // @cat-factory/server.
12
+ // ---------------------------------------------------------------------------
13
+ const executionIdParams = singleStringParam('executionId');
14
+ export const getForkDecisionContract = defineApiContract({
15
+ method: 'get',
16
+ requestPathParamsSchema: executionIdParams,
17
+ pathResolver: ({ executionId }) => `/executions/${executionId}/fork-decision`,
18
+ responsesByStatusCode: { 200: v.nullable(forkDecisionStepStateSchema), ...errorResponses },
19
+ });
20
+ export const chooseForkContract = defineApiContract({
21
+ method: 'post',
22
+ requestPathParamsSchema: executionIdParams,
23
+ pathResolver: ({ executionId }) => `/executions/${executionId}/fork-decision/choose`,
24
+ requestBodySchema: chooseForkSchema,
25
+ responsesByStatusCode: { 200: forkDecisionStepStateSchema, ...errorResponses },
26
+ });
27
+ //# sourceMappingURL=forkDecision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"forkDecision.js","sourceRoot":"","sources":["../../src/routes/forkDecision.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAA;AAClF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,8DAA8D;AAC9D,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AAChF,2EAA2E;AAC3E,uBAAuB;AACvB,8EAA8E;AAE9E,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,aAAa,CAAC,CAAA;AAE1D,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,gBAAgB;IAC7E,qBAAqB,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAAE,GAAG,cAAc,EAAE;CAC3F,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;IAClD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,iBAAiB;IAC1C,YAAY,EAAE,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,eAAe,WAAW,uBAAuB;IACpF,iBAAiB,EAAE,gBAAgB;IACnC,qBAAqB,EAAE,EAAE,GAAG,EAAE,2BAA2B,EAAE,GAAG,cAAc,EAAE;CAC/E,CAAC,CAAA"}
@@ -357,6 +357,42 @@ export declare const requestHumanReviewFixContract: {
357
357
  readonly loops: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 0>;
358
358
  readonly maxLoops: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 3>;
359
359
  }, undefined>, undefined>, undefined>;
360
+ readonly forkDecision: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
361
+ readonly status: import("valibot").PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
362
+ readonly seamSummary: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
363
+ readonly forks: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
364
+ readonly id: import("valibot").StringSchema<undefined>;
365
+ readonly title: import("valibot").StringSchema<undefined>;
366
+ readonly summary: import("valibot").StringSchema<undefined>;
367
+ readonly approach: import("valibot").StringSchema<undefined>;
368
+ readonly tradeoffs: import("valibot").ArraySchema<import("valibot").StringSchema<undefined>, undefined>;
369
+ readonly riskNotes: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
370
+ readonly recommended: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
371
+ }, undefined>, undefined>, readonly []>;
372
+ readonly singlePathReason: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
373
+ readonly chat: import("valibot").OptionalSchema<import("valibot").ArraySchema<import("valibot").ObjectSchema<{
374
+ readonly id: import("valibot").StringSchema<undefined>;
375
+ readonly role: import("valibot").PicklistSchema<["human", "assistant"], undefined>;
376
+ readonly text: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>;
377
+ readonly createdAt: import("valibot").NumberSchema<undefined>;
378
+ }, undefined>, undefined>, readonly []>;
379
+ readonly maxChatTurns: import("valibot").OptionalSchema<import("valibot").NumberSchema<undefined>, 15>;
380
+ readonly chosen: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").ObjectSchema<{
381
+ readonly forkId: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
382
+ readonly custom: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
383
+ readonly note: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
384
+ readonly at: import("valibot").NumberSchema<undefined>;
385
+ }, undefined>, import("valibot").CheckAction<{
386
+ forkId?: string | null | undefined;
387
+ custom?: string | null | undefined;
388
+ note?: string | null | undefined;
389
+ at: number;
390
+ }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
391
+ readonly model: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>, undefined>;
392
+ }, undefined>, undefined>, undefined>;
393
+ readonly pendingForkChat: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
394
+ readonly messageId: import("valibot").StringSchema<undefined>;
395
+ }, undefined>, undefined>, undefined>;
360
396
  readonly rework: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
361
397
  readonly previousProposal: import("valibot").StringSchema<undefined>;
362
398
  readonly feedback: import("valibot").StringSchema<undefined>;