@cat-factory/contracts 0.124.0 → 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.
- package/dist/agent-presentation.d.ts +2 -2
- package/dist/entities.d.ts +115 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +36 -0
- package/dist/entities.js.map +1 -1
- package/dist/forkDecision.d.ts +169 -0
- package/dist/forkDecision.d.ts.map +1 -0
- package/dist/forkDecision.js +145 -0
- package/dist/forkDecision.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/merge.d.ts +32 -0
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +15 -0
- package/dist/merge.js.map +1 -1
- package/dist/notifications.d.ts +6 -2
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +8 -0
- package/dist/notifications.js.map +1 -1
- package/dist/result-views.d.ts +1 -1
- package/dist/result-views.d.ts.map +1 -1
- package/dist/result-views.js +1 -0
- package/dist/result-views.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +72 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +288 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/forkDecision.d.ts +143 -0
- package/dist/routes/forkDecision.d.ts.map +1 -0
- package/dist/routes/forkDecision.js +27 -0
- package/dist/routes/forkDecision.js.map +1 -0
- package/dist/routes/human-review.d.ts +36 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +180 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/merge.d.ts +42 -0
- package/dist/routes/merge.d.ts.map +1 -1
- package/dist/routes/notifications.d.ts +6 -3
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/slack.d.ts +3 -3
- package/dist/routes/visual-confirm.d.ts +108 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +92 -4
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/slack.d.ts +2 -2
- package/dist/snapshot.d.ts +46 -2
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/snapshot.d.ts
CHANGED
|
@@ -737,6 +737,42 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
737
737
|
readonly loops: v.OptionalSchema<v.NumberSchema<undefined>, 0>;
|
|
738
738
|
readonly maxLoops: v.OptionalSchema<v.NumberSchema<undefined>, 3>;
|
|
739
739
|
}, undefined>, undefined>, undefined>;
|
|
740
|
+
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
741
|
+
readonly status: v.PicklistSchema<["proposing", "awaiting_choice", "answering", "chosen", "single_path", "skipped"], undefined>;
|
|
742
|
+
readonly seamSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
743
|
+
readonly forks: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
744
|
+
readonly id: v.StringSchema<undefined>;
|
|
745
|
+
readonly title: v.StringSchema<undefined>;
|
|
746
|
+
readonly summary: v.StringSchema<undefined>;
|
|
747
|
+
readonly approach: v.StringSchema<undefined>;
|
|
748
|
+
readonly tradeoffs: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
749
|
+
readonly riskNotes: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
750
|
+
readonly recommended: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
751
|
+
}, undefined>, undefined>, readonly []>;
|
|
752
|
+
readonly singlePathReason: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
753
|
+
readonly chat: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
754
|
+
readonly id: v.StringSchema<undefined>;
|
|
755
|
+
readonly role: v.PicklistSchema<["human", "assistant"], undefined>;
|
|
756
|
+
readonly text: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>;
|
|
757
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
758
|
+
}, undefined>, undefined>, readonly []>;
|
|
759
|
+
readonly maxChatTurns: v.OptionalSchema<v.NumberSchema<undefined>, 15>;
|
|
760
|
+
readonly chosen: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
761
|
+
readonly forkId: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
762
|
+
readonly custom: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
763
|
+
readonly note: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
764
|
+
readonly at: v.NumberSchema<undefined>;
|
|
765
|
+
}, undefined>, v.CheckAction<{
|
|
766
|
+
forkId?: string | null | undefined;
|
|
767
|
+
custom?: string | null | undefined;
|
|
768
|
+
note?: string | null | undefined;
|
|
769
|
+
at: number;
|
|
770
|
+
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
771
|
+
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
772
|
+
}, undefined>, undefined>, undefined>;
|
|
773
|
+
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
774
|
+
readonly messageId: v.StringSchema<undefined>;
|
|
775
|
+
}, undefined>, undefined>, undefined>;
|
|
740
776
|
readonly rework: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
741
777
|
readonly previousProposal: v.StringSchema<undefined>;
|
|
742
778
|
readonly feedback: v.StringSchema<undefined>;
|
|
@@ -1250,7 +1286,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1250
1286
|
*/
|
|
1251
1287
|
readonly notifications: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1252
1288
|
readonly id: v.StringSchema<undefined>;
|
|
1253
|
-
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "initiative"], undefined>;
|
|
1289
|
+
readonly type: v.PicklistSchema<["merge_review", "pipeline_complete", "ci_failed", "test_failed", "requirement_review", "clarity_review", "release_regression", "decision_required", "human_test_ready", "visual_confirmation_ready", "human_review", "followup_pending", "fork_decision_pending", "initiative"], undefined>;
|
|
1254
1290
|
readonly status: v.PicklistSchema<["open", "acted", "dismissed"], undefined>;
|
|
1255
1291
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["normal", "urgent"], undefined>, undefined>;
|
|
1256
1292
|
readonly blockId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1267,6 +1303,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1267
1303
|
readonly prUrl: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1268
1304
|
readonly pipelineName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1269
1305
|
readonly findingCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1306
|
+
readonly forkCount: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1270
1307
|
readonly onCallAssessment: v.OptionalSchema<v.ObjectSchema<{
|
|
1271
1308
|
readonly culpritConfidence: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>;
|
|
1272
1309
|
readonly recommendation: v.PicklistSchema<["revert", "hold", "monitor"], undefined>;
|
|
@@ -1307,6 +1344,13 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1307
1344
|
readonly releaseMaxAttempts: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1308
1345
|
readonly humanReviewGraceMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
1309
1346
|
readonly autoMergeEnabled: v.BooleanSchema<undefined>;
|
|
1347
|
+
readonly forkDecision: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1348
|
+
readonly enabled: v.BooleanSchema<undefined>;
|
|
1349
|
+
readonly minComplexity: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1350
|
+
readonly minRisk: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1351
|
+
readonly minImpact: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 1, undefined>]>, undefined>;
|
|
1352
|
+
readonly onMissingEstimate: v.OptionalSchema<v.PicklistSchema<["run", "skip"], undefined>, "run">;
|
|
1353
|
+
}, undefined>, undefined>, undefined>;
|
|
1310
1354
|
readonly isDefault: v.BooleanSchema<undefined>;
|
|
1311
1355
|
readonly version: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1312
1356
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
@@ -1918,7 +1962,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1918
1962
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
1919
1963
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
1920
1964
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
1921
|
-
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger", "initiative-tracker", "initiative-planning", "doc-interview"], undefined>, undefined>;
|
|
1965
|
+
readonly resultView: v.OptionalSchema<v.PicklistSchema<readonly ["requirements-review", "clarity-review", "brainstorm", "tester", "human-test", "visual-confirm", "gate", "consensus-session", "generic-structured", "service-spec", "follow-ups", "merger", "initiative-tracker", "initiative-planning", "doc-interview", "fork-decision"], undefined>, undefined>;
|
|
1922
1966
|
}, undefined>;
|
|
1923
1967
|
readonly container: v.BooleanSchema<undefined>;
|
|
1924
1968
|
}, undefined>, undefined>, undefined>;
|
package/dist/snapshot.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiC5B,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAiC5B,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,G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