@cat-factory/contracts 0.285.0 → 0.286.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 +30 -0
- package/dist/agent-presentation.d.ts.map +1 -1
- package/dist/agent-presentation.js +15 -0
- package/dist/agent-presentation.js.map +1 -1
- package/dist/binary-capabilities.d.ts +66 -1
- package/dist/binary-capabilities.d.ts.map +1 -1
- package/dist/binary-capabilities.js +105 -1
- package/dist/binary-capabilities.js.map +1 -1
- package/dist/binary-generators.d.ts +2 -2
- package/dist/binary-modalities.d.ts +18 -0
- package/dist/binary-modalities.d.ts.map +1 -1
- package/dist/binary-modalities.js +28 -0
- package/dist/binary-modalities.js.map +1 -1
- package/dist/binary-outputs.d.ts +38 -0
- package/dist/binary-outputs.d.ts.map +1 -1
- package/dist/binary-outputs.js +17 -1
- package/dist/binary-outputs.js.map +1 -1
- package/dist/build-ladder.d.ts +37 -0
- package/dist/build-ladder.d.ts.map +1 -0
- package/dist/build-ladder.js +46 -0
- package/dist/build-ladder.js.map +1 -0
- package/dist/entities.d.ts +39 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +26 -0
- package/dist/entities.js.map +1 -1
- package/dist/execution.d.ts +46 -6
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +17 -3
- package/dist/execution.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/platform-agent-kinds.d.ts +19 -0
- package/dist/platform-agent-kinds.d.ts.map +1 -0
- package/dist/platform-agent-kinds.js +30 -0
- package/dist/platform-agent-kinds.js.map +1 -0
- package/dist/requests.d.ts +17 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +10 -0
- package/dist/requests.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +16 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/bug-hunt.d.ts +16 -0
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +1251 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/execution.js +13 -1
- package/dist/routes/execution.js.map +1 -1
- package/dist/routes/human-review.d.ts +8 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +40 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/pipelines.d.ts +30 -0
- package/dist/routes/pipelines.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +24 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +28 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +32 -9
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/snapshot.js +18 -8
- package/dist/snapshot.js.map +1 -1
- package/dist/step-conditions.d.ts +98 -0
- package/dist/step-conditions.d.ts.map +1 -0
- package/dist/step-conditions.js +109 -0
- package/dist/step-conditions.js.map +1 -0
- package/package.json +1 -1
|
@@ -540,6 +540,9 @@ export declare const createWorkspaceContract: {
|
|
|
540
540
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
541
541
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
542
542
|
}, undefined>, undefined>;
|
|
543
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
544
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
545
|
+
}, undefined>, undefined>;
|
|
543
546
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
544
547
|
readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
545
548
|
readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -548,6 +551,7 @@ export declare const createWorkspaceContract: {
|
|
|
548
551
|
readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
549
552
|
readonly availability: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"one-off", undefined>, v.LiteralSchema<"recurring", undefined>, v.LiteralSchema<"both", undefined>], undefined>, undefined>;
|
|
550
553
|
readonly purpose: v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>;
|
|
554
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
551
555
|
}, undefined>, undefined>;
|
|
552
556
|
readonly executions: v.ArraySchema<v.ObjectSchema<{
|
|
553
557
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1210,8 +1214,12 @@ export declare const createWorkspaceContract: {
|
|
|
1210
1214
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
1211
1215
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
1212
1216
|
}, undefined>, undefined>;
|
|
1217
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
1218
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
1219
|
+
}, undefined>, undefined>;
|
|
1213
1220
|
}, undefined>, undefined>, undefined>;
|
|
1214
1221
|
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1222
|
+
readonly skipReason: v.OptionalSchema<v.PicklistSchema<["gated", "condition", "producer_skipped", "run_complete"], undefined>, undefined>;
|
|
1215
1223
|
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1216
1224
|
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1217
1225
|
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1291,6 +1299,10 @@ export declare const createWorkspaceContract: {
|
|
|
1291
1299
|
readonly entity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1292
1300
|
readonly contentType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1293
1301
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1302
|
+
readonly dimensions: v.OptionalSchema<v.ObjectSchema<{
|
|
1303
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
1304
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
1305
|
+
}, undefined>, undefined>;
|
|
1294
1306
|
readonly generator: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1295
1307
|
readonly modality: v.OptionalSchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
1296
1308
|
}, undefined>, undefined>;
|
|
@@ -3155,6 +3167,7 @@ export declare const createWorkspaceContract: {
|
|
|
3155
3167
|
readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
|
|
3156
3168
|
readonly tier: v.OptionalSchema<v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>, undefined>;
|
|
3157
3169
|
readonly resultView: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<readonly ["outcome", "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", "binary-candidates", "judge", "pr-review", "ralph-loop"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>, undefined>;
|
|
3170
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3158
3171
|
}, undefined>;
|
|
3159
3172
|
readonly container: v.BooleanSchema<undefined>;
|
|
3160
3173
|
readonly binaryOutput: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -3243,7 +3256,7 @@ export declare const createWorkspaceContract: {
|
|
|
3243
3256
|
readonly summary: v.StringSchema<undefined>;
|
|
3244
3257
|
readonly modalities: v.ArraySchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
3245
3258
|
readonly mediaTypes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.ToLowerCaseAction, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a media type of the form type/subtype">]>, undefined>, undefined>;
|
|
3246
|
-
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
3259
|
+
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "exact-size", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
3247
3260
|
}, undefined>, undefined>, undefined>;
|
|
3248
3261
|
readonly binaryGeneratorsUnavailable: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
3249
3262
|
readonly environmentBackendKinds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
@@ -4034,6 +4047,9 @@ export declare const getWorkspaceContract: {
|
|
|
4034
4047
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
4035
4048
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
4036
4049
|
}, undefined>, undefined>;
|
|
4050
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
4051
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
4052
|
+
}, undefined>, undefined>;
|
|
4037
4053
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
4038
4054
|
readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
4039
4055
|
readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -4042,6 +4058,7 @@ export declare const getWorkspaceContract: {
|
|
|
4042
4058
|
readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4043
4059
|
readonly availability: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"one-off", undefined>, v.LiteralSchema<"recurring", undefined>, v.LiteralSchema<"both", undefined>], undefined>, undefined>;
|
|
4044
4060
|
readonly purpose: v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>;
|
|
4061
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4045
4062
|
}, undefined>, undefined>;
|
|
4046
4063
|
readonly executions: v.ArraySchema<v.ObjectSchema<{
|
|
4047
4064
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -4704,8 +4721,12 @@ export declare const getWorkspaceContract: {
|
|
|
4704
4721
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
4705
4722
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
4706
4723
|
}, undefined>, undefined>;
|
|
4724
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
4725
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
4726
|
+
}, undefined>, undefined>;
|
|
4707
4727
|
}, undefined>, undefined>, undefined>;
|
|
4708
4728
|
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4729
|
+
readonly skipReason: v.OptionalSchema<v.PicklistSchema<["gated", "condition", "producer_skipped", "run_complete"], undefined>, undefined>;
|
|
4709
4730
|
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4710
4731
|
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4711
4732
|
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -4785,6 +4806,10 @@ export declare const getWorkspaceContract: {
|
|
|
4785
4806
|
readonly entity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4786
4807
|
readonly contentType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4787
4808
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4809
|
+
readonly dimensions: v.OptionalSchema<v.ObjectSchema<{
|
|
4810
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
4811
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
4812
|
+
}, undefined>, undefined>;
|
|
4788
4813
|
readonly generator: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4789
4814
|
readonly modality: v.OptionalSchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
4790
4815
|
}, undefined>, undefined>;
|
|
@@ -6649,6 +6674,7 @@ export declare const getWorkspaceContract: {
|
|
|
6649
6674
|
readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
|
|
6650
6675
|
readonly tier: v.OptionalSchema<v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>, undefined>;
|
|
6651
6676
|
readonly resultView: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<readonly ["outcome", "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", "binary-candidates", "judge", "pr-review", "ralph-loop"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>, undefined>;
|
|
6677
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
6652
6678
|
}, undefined>;
|
|
6653
6679
|
readonly container: v.BooleanSchema<undefined>;
|
|
6654
6680
|
readonly binaryOutput: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -6737,7 +6763,7 @@ export declare const getWorkspaceContract: {
|
|
|
6737
6763
|
readonly summary: v.StringSchema<undefined>;
|
|
6738
6764
|
readonly modalities: v.ArraySchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
6739
6765
|
readonly mediaTypes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.ToLowerCaseAction, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a media type of the form type/subtype">]>, undefined>, undefined>;
|
|
6740
|
-
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
6766
|
+
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "exact-size", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
6741
6767
|
}, undefined>, undefined>, undefined>;
|
|
6742
6768
|
readonly binaryGeneratorsUnavailable: v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>;
|
|
6743
6769
|
readonly environmentBackendKinds: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.d.ts","sourceRoot":"","sources":["../../src/routes/workspaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAe5B;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;aAGlC,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAI7E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"workspaces.d.ts","sourceRo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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA"}
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -478,6 +478,9 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
478
478
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
479
479
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
480
480
|
}, undefined>, undefined>;
|
|
481
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
482
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
483
|
+
}, undefined>, undefined>;
|
|
481
484
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
482
485
|
readonly labels: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
483
486
|
readonly archived: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -486,6 +489,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
486
489
|
readonly public: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
487
490
|
readonly availability: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"one-off", undefined>, v.LiteralSchema<"recurring", undefined>, v.LiteralSchema<"both", undefined>], undefined>, undefined>;
|
|
488
491
|
readonly purpose: v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>;
|
|
492
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
489
493
|
}, undefined>, undefined>;
|
|
490
494
|
readonly executions: v.ArraySchema<v.ObjectSchema<{
|
|
491
495
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1148,8 +1152,12 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1148
1152
|
readonly minApprovals: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 10, undefined>]>, undefined>;
|
|
1149
1153
|
readonly fields: v.OptionalSchema<v.RecordSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, v.UnionSchema<[v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, v.MaxLengthAction<string[], 50, undefined>]>, v.BooleanSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, undefined>;
|
|
1150
1154
|
}, undefined>, undefined>;
|
|
1155
|
+
readonly condition: v.OptionalSchema<v.ObjectSchema<{
|
|
1156
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
1157
|
+
}, undefined>, undefined>;
|
|
1151
1158
|
}, undefined>, undefined>, undefined>;
|
|
1152
1159
|
readonly skipped: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1160
|
+
readonly skipReason: v.OptionalSchema<v.PicklistSchema<["gated", "condition", "producer_skipped", "run_complete"], undefined>, undefined>;
|
|
1153
1161
|
readonly noBusinessSpecs: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1154
1162
|
readonly technicalCorroborated: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1155
1163
|
readonly output: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1229,6 +1237,10 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1229
1237
|
readonly entity: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1230
1238
|
readonly contentType: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1231
1239
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1240
|
+
readonly dimensions: v.OptionalSchema<v.ObjectSchema<{
|
|
1241
|
+
readonly width: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
1242
|
+
readonly height: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 16384, undefined>]>;
|
|
1243
|
+
}, undefined>, undefined>;
|
|
1232
1244
|
readonly generator: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1233
1245
|
readonly modality: v.OptionalSchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
1234
1246
|
}, undefined>, undefined>;
|
|
@@ -3223,6 +3235,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
3223
3235
|
readonly purposes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["build", "document", "review", "research", "planning"], undefined>, undefined>, v.MinLengthAction<("build" | "document" | "planning" | "research" | "review")[], 1, undefined>]>, undefined>;
|
|
3224
3236
|
readonly tier: v.OptionalSchema<v.PicklistSchema<readonly ["basic", "intermediate", "advanced"], undefined>, undefined>;
|
|
3225
3237
|
readonly resultView: v.OptionalSchema<v.UnionSchema<[v.PicklistSchema<readonly ["outcome", "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", "binary-candidates", "judge", "pr-review", "ralph-loop"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>, undefined>;
|
|
3238
|
+
readonly internal: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3226
3239
|
}, undefined>;
|
|
3227
3240
|
readonly container: v.BooleanSchema<undefined>;
|
|
3228
3241
|
readonly binaryOutput: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
@@ -3360,7 +3373,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
3360
3373
|
readonly summary: v.StringSchema<undefined>;
|
|
3361
3374
|
readonly modalities: v.ArraySchema<v.PicklistSchema<["image", "audio", "video", "3d-model", "3d-scene", "document"], undefined>, undefined>;
|
|
3362
3375
|
readonly mediaTypes: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.ToLowerCaseAction, v.MinLengthAction<string, 3, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a media type of the form type/subtype">]>, undefined>, undefined>;
|
|
3363
|
-
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
3376
|
+
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.PicklistSchema<["reference-image", "multi-reference", "instruction-edit", "mask-edit", "negative-prompt", "seed", "aspect-ratio", "exact-size", "candidate-batch", "upscale", "transparent-background", "tileable"], undefined>, undefined>, undefined>;
|
|
3364
3377
|
}, undefined>, undefined>, undefined>;
|
|
3365
3378
|
/**
|
|
3366
3379
|
* Set when the deployment's registered integrations could not be READ, which on a
|
|
@@ -3411,22 +3424,32 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
3411
3424
|
* (or absent → treated as 0) means an update is available. Static, workspace-independent;
|
|
3412
3425
|
* built by the shared `WorkspaceService.snapshot()` (so it is automatically symmetric across
|
|
3413
3426
|
* runtimes), but optional on the wire for forward-compatibility.
|
|
3427
|
+
*
|
|
3428
|
+
* OFFERED entries only: an INTERNAL pipeline is withheld here for the same reason it is withheld
|
|
3429
|
+
* from `pipelines`. This map is not merely a version lookup — the health advisory reads its keys
|
|
3430
|
+
* as the set of built-ins that EXIST, and derives "new built-ins available" as those keys minus
|
|
3431
|
+
* the rows the SPA can see. An internal entry is in the first set and never in the second, so
|
|
3432
|
+
* listing it would advertise a pipeline nobody may pick, permanently and un-dismissably.
|
|
3414
3433
|
*/
|
|
3415
3434
|
readonly pipelineCatalogVersions: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3416
3435
|
/**
|
|
3417
|
-
* The catalog's own NAME for each id
|
|
3418
|
-
*
|
|
3436
|
+
* The catalog's own NAME for each catalog id: the companion map, built from the same
|
|
3437
|
+
* `seedPipelines()` read.
|
|
3419
3438
|
*
|
|
3420
|
-
* It exists for the
|
|
3421
|
-
* built-ins available" advisory. Without it the SPA humanised the id, which is passable for
|
|
3422
|
-
* shipped built-in (`pl_review` → "review") and wrong for the case that made this reachable, a
|
|
3439
|
+
* It exists for the moments a catalog id has no stored row to read a name off. The first is the
|
|
3440
|
+
* "new built-ins available" advisory. Without it the SPA humanised the id, which is passable for
|
|
3441
|
+
* a shipped built-in (`pl_review` → "review") and wrong for the case that made this reachable, a
|
|
3423
3442
|
* deployment's own registered pipeline behind a reusable operation: `pl_org_introduce_api`
|
|
3424
3443
|
* rendered as "org introduce api", offering the operation's pipeline under a name that appears
|
|
3425
|
-
* nowhere else in the product.
|
|
3444
|
+
* nowhere else in the product. The second is a task PINNED to an INTERNAL pipeline (the
|
|
3445
|
+
* docs-refresh preset spawns onto one): the card that starts it has no library row to name.
|
|
3446
|
+
*
|
|
3447
|
+
* So this is a SUPERSET of `pipelineCatalogVersions` — a display dictionary for any catalog id
|
|
3448
|
+
* the SPA may hold, where that map is the narrower "what may be offered". Do not index one by
|
|
3449
|
+
* the other's keys; ask each for what it answers.
|
|
3426
3450
|
*
|
|
3427
3451
|
* A separate map rather than widening the versions record, because that record is a
|
|
3428
|
-
* `Record<string, number>` the SPA compares numerically
|
|
3429
|
-
* (one source, one pass), so a reader indexes either by the other's key.
|
|
3452
|
+
* `Record<string, number>` the SPA compares numerically.
|
|
3430
3453
|
*/
|
|
3431
3454
|
readonly pipelineCatalogNames: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>;
|
|
3432
3455
|
/**
|
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;AAyC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAGhC,CAAA;AACF,MA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;;IAEH;;;;;;;;OAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;;;OASG;;;;;;;;;IAEH;;;;;;;;OAQG;;IAEH;;;;;;;;;OASG;;;;QAvPH;;;;;WAKG;;;;;;QALH;;;;;WAKG;;;IAqPH;;;;;;;;;;;;;OAaG;;IAEH;;;;;;;;;;;;;;;;;;OAkBG;;IAEH;;;;;;;;;;;;;;;OAeG;;;;;IAEH;;;;;;;OAOG;;IAEH;;;;;;;OAOG;;IAEH;;;;;OAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;;;OAOG;;;;;;IAEH;;;;;OAKG;;;;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
package/dist/snapshot.js
CHANGED
|
@@ -298,22 +298,32 @@ export const workspaceSnapshotSchema = v.object({
|
|
|
298
298
|
* (or absent → treated as 0) means an update is available. Static, workspace-independent;
|
|
299
299
|
* built by the shared `WorkspaceService.snapshot()` (so it is automatically symmetric across
|
|
300
300
|
* runtimes), but optional on the wire for forward-compatibility.
|
|
301
|
+
*
|
|
302
|
+
* OFFERED entries only: an INTERNAL pipeline is withheld here for the same reason it is withheld
|
|
303
|
+
* from `pipelines`. This map is not merely a version lookup — the health advisory reads its keys
|
|
304
|
+
* as the set of built-ins that EXIST, and derives "new built-ins available" as those keys minus
|
|
305
|
+
* the rows the SPA can see. An internal entry is in the first set and never in the second, so
|
|
306
|
+
* listing it would advertise a pipeline nobody may pick, permanently and un-dismissably.
|
|
301
307
|
*/
|
|
302
308
|
pipelineCatalogVersions: v.optional(v.record(v.string(), v.number())),
|
|
303
309
|
/**
|
|
304
|
-
* The catalog's own NAME for each id
|
|
305
|
-
*
|
|
310
|
+
* The catalog's own NAME for each catalog id: the companion map, built from the same
|
|
311
|
+
* `seedPipelines()` read.
|
|
306
312
|
*
|
|
307
|
-
* It exists for the
|
|
308
|
-
* built-ins available" advisory. Without it the SPA humanised the id, which is passable for
|
|
309
|
-
* shipped built-in (`pl_review` → "review") and wrong for the case that made this reachable, a
|
|
313
|
+
* It exists for the moments a catalog id has no stored row to read a name off. The first is the
|
|
314
|
+
* "new built-ins available" advisory. Without it the SPA humanised the id, which is passable for
|
|
315
|
+
* a shipped built-in (`pl_review` → "review") and wrong for the case that made this reachable, a
|
|
310
316
|
* deployment's own registered pipeline behind a reusable operation: `pl_org_introduce_api`
|
|
311
317
|
* rendered as "org introduce api", offering the operation's pipeline under a name that appears
|
|
312
|
-
* nowhere else in the product.
|
|
318
|
+
* nowhere else in the product. The second is a task PINNED to an INTERNAL pipeline (the
|
|
319
|
+
* docs-refresh preset spawns onto one): the card that starts it has no library row to name.
|
|
320
|
+
*
|
|
321
|
+
* So this is a SUPERSET of `pipelineCatalogVersions` — a display dictionary for any catalog id
|
|
322
|
+
* the SPA may hold, where that map is the narrower "what may be offered". Do not index one by
|
|
323
|
+
* the other's keys; ask each for what it answers.
|
|
313
324
|
*
|
|
314
325
|
* A separate map rather than widening the versions record, because that record is a
|
|
315
|
-
* `Record<string, number>` the SPA compares numerically
|
|
316
|
-
* (one source, one pass), so a reader indexes either by the other's key.
|
|
326
|
+
* `Record<string, number>` the SPA compares numerically.
|
|
317
327
|
*/
|
|
318
328
|
pipelineCatalogNames: v.optional(v.record(v.string(), v.string())),
|
|
319
329
|
/**
|
package/dist/snapshot.js.map
CHANGED
|
@@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gC,CAAC,CAAC;IACxE;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxC;;;;;;;OAOG;IACH,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;IAC/C;;;;;OAKG;IACH,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,qBAAqB,CAAC;CAC1C,CAAC,CAAA"}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/** The block `type` a service frame carries when it owns a rendered UI. */
|
|
3
|
+
export declare const FRONTEND_BLOCK_TYPE = "frontend";
|
|
4
|
+
/**
|
|
5
|
+
* Which half of a run's service scope a step needs:
|
|
6
|
+
*
|
|
7
|
+
* - `frontend` — run only when the change touches a service declared as a frontend.
|
|
8
|
+
* - `backend` — run only when it touches a service that is NOT a frontend.
|
|
9
|
+
*
|
|
10
|
+
* A full-stack task (a frontend service plus an involved backend service, or vice versa) is in
|
|
11
|
+
* BOTH scopes, so a pipeline carrying both testers runs both on it.
|
|
12
|
+
*/
|
|
13
|
+
export declare const stepServiceScopeSchema: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
14
|
+
export type StepServiceScope = v.InferOutput<typeof stepServiceScopeSchema>;
|
|
15
|
+
/**
|
|
16
|
+
* A step's run condition: what has to be true of the run for this step to apply at all.
|
|
17
|
+
* Today the only axis is {@link stepServiceScopeSchema}; it is an OBJECT rather than a bare
|
|
18
|
+
* picklist so the next axis is a field beside it rather than a second per-step knob.
|
|
19
|
+
*
|
|
20
|
+
* Absent ⇒ unconditional, which is every step that does not declare one.
|
|
21
|
+
*/
|
|
22
|
+
export declare const stepRunConditionSchema: v.ObjectSchema<{
|
|
23
|
+
readonly serviceScope: v.PicklistSchema<["frontend", "backend"], undefined>;
|
|
24
|
+
}, undefined>;
|
|
25
|
+
export type StepRunCondition = v.InferOutput<typeof stepRunConditionSchema>;
|
|
26
|
+
/**
|
|
27
|
+
* The service scope of a run: whether the services it may change include a frontend, a
|
|
28
|
+
* non-frontend, or both.
|
|
29
|
+
*
|
|
30
|
+
* BOTH FALSE is a real and distinct state — the run's services could not be resolved (a task
|
|
31
|
+
* outside any service frame) — and it is deliberately not spelled as an "unknown" flag, because
|
|
32
|
+
* every resolved frame contributes exactly one of the two: a scope with neither can only be an
|
|
33
|
+
* empty one. {@link stepConditionSatisfied} reads that state as "nothing to judge" and runs the
|
|
34
|
+
* step, the same fail-safe-to-thoroughness direction `onMissingEstimate: 'run'` takes.
|
|
35
|
+
*
|
|
36
|
+
* A MIXED scope (both halves true) is what this reduction exists to express, but no board state
|
|
37
|
+
* produces one today, and that is a property of the CONNECTION model rather than of this file: a
|
|
38
|
+
* run's frames are its own service frame plus the task's involved services, involved services must
|
|
39
|
+
* be connection neighbours, and only a `service`-type frame may declare a connection or be named as
|
|
40
|
+
* one (`serviceConnectionsError`, and the narrowing that drops the field on every other frame type).
|
|
41
|
+
* So a frontend frame has no neighbours in either direction, a frontend task can name no involved
|
|
42
|
+
* service, and every involved service is a non-frontend. Both halves stay because the reduction is
|
|
43
|
+
* the honest statement of "what does this run change" and it is the connection model, not this
|
|
44
|
+
* function, that would have to change to widen it. Do NOT re-derive the mixed case in a test by
|
|
45
|
+
* hand-building a board with a service connected to a frontend: that board cannot be saved.
|
|
46
|
+
*/
|
|
47
|
+
export interface RunServiceScope {
|
|
48
|
+
/** Some service in scope is declared `type: 'frontend'` — there is a UI to exercise. */
|
|
49
|
+
frontend: boolean;
|
|
50
|
+
/** Some service in scope is NOT a frontend — there is an API/service behind it. */
|
|
51
|
+
backend: boolean;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Reduce the service frames a run may change — its own service plus the task's involved
|
|
55
|
+
* services — into the {@link RunServiceScope} the step conditions read.
|
|
56
|
+
*
|
|
57
|
+
* Takes the FRAMES rather than the block, because "what does this run change" is the ancestry
|
|
58
|
+
* walk plus the involved-service resolution, and both already happen in the engine. Frames are
|
|
59
|
+
* deduped by the caller; passing the same frame twice changes nothing here.
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveRunServiceScope(frames: readonly {
|
|
62
|
+
type?: string | null;
|
|
63
|
+
}[]): RunServiceScope;
|
|
64
|
+
/**
|
|
65
|
+
* Why a run step finished as `skipped` rather than running — the three axes that can skip one,
|
|
66
|
+
* as a member the SPA maps to translated copy rather than prose the backend composed:
|
|
67
|
+
*
|
|
68
|
+
* - `gated` — the step's estimate gate was not met (the task scored below its thresholds).
|
|
69
|
+
* - `condition` — the step's {@link stepRunConditionSchema} did not match the run's service
|
|
70
|
+
* scope. The step still carries the condition, so a reader wanting the specific
|
|
71
|
+
* sentence ("no frontend in scope") reads `serviceScope` off it; this says only
|
|
72
|
+
* which axis fired, so the two can never disagree about the scope.
|
|
73
|
+
* - `producer_skipped` — a COMPANION whose producer was itself skipped, so there is nothing for
|
|
74
|
+
* it to grade. Distinct from `gated` because the fix is different: the reader
|
|
75
|
+
* has to look at the producer, not at this step's own thresholds.
|
|
76
|
+
* - `run_complete` — an earlier step ENDED the run (a `bug-intake` fire that found nothing to
|
|
77
|
+
* adopt), so everything after it was closed out untouched. Nothing about THIS
|
|
78
|
+
* step decided it, which is why it cannot borrow any of the three above.
|
|
79
|
+
*
|
|
80
|
+
* PERSISTED and CLOSED, so retiring a member does not remove it from stored runs: read it with
|
|
81
|
+
* {@link isStepSkipReason} and render an unrecognised value as "skipped" rather than crashing or
|
|
82
|
+
* guessing onto a current member.
|
|
83
|
+
*/
|
|
84
|
+
export declare const stepSkipReasonSchema: v.PicklistSchema<["gated", "condition", "producer_skipped", "run_complete"], undefined>;
|
|
85
|
+
export type StepSkipReason = v.InferOutput<typeof stepSkipReasonSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Narrow a persisted `skipReason` to a member this build still knows, DERIVED from the picklist's
|
|
88
|
+
* own options so adding a member cannot leave this behind. A stored run may name a member since
|
|
89
|
+
* retired, and a browser may hold a bundle older than the member it reads.
|
|
90
|
+
*/
|
|
91
|
+
export declare function isStepSkipReason(value: unknown): value is StepSkipReason;
|
|
92
|
+
/**
|
|
93
|
+
* Whether a step carrying `condition` applies to a run of `scope`. An absent condition is
|
|
94
|
+
* unconditional; an unresolvable scope (see {@link RunServiceScope}) runs the step rather than
|
|
95
|
+
* silently dropping it.
|
|
96
|
+
*/
|
|
97
|
+
export declare function stepConditionSatisfied(condition: StepRunCondition | null | undefined, scope: RunServiceScope): boolean;
|
|
98
|
+
//# sourceMappingURL=step-conditions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-conditions.d.ts","sourceRoot":"","sources":["../src/step-conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAuB5B,2EAA2E;AAC3E,eAAO,MAAM,mBAAmB,aAAa,CAAA;AAE7C;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,sDAAsC,CAAA;AACzE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;aAEjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAE3E;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,WAAW,eAAe;IAC9B,wFAAwF;IACxF,QAAQ,EAAE,OAAO,CAAA;IACjB,mFAAmF;IACnF,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,SAAS;IAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAAE,GAC1C,eAAe,CAQjB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,oBAAoB,yFAK/B,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,cAAc,CAIxE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,gBAAgB,GAAG,IAAI,GAAG,SAAS,EAC9C,KAAK,EAAE,eAAe,GACrB,OAAO,CAIT"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Per-step RUN CONDITIONS — the second axis on which a pipeline step can be
|
|
4
|
+
// conditional, beside the task-estimate gating in `stepGatingSchema`.
|
|
5
|
+
//
|
|
6
|
+
// The two answer different questions and neither can express the other. Estimate
|
|
7
|
+
// gating asks "is this task big enough to be worth the step", a judgement about
|
|
8
|
+
// SIZE that only exists once a `task-estimator` has run. A run condition asks
|
|
9
|
+
// "does this step apply to the kind of change this run makes at all", a fact about
|
|
10
|
+
// the SERVICES the run touches that is knowable before the first dispatch and can
|
|
11
|
+
// never be recovered from a score: a UI test on a task that changes no frontend is
|
|
12
|
+
// not a cheap test, it is a test of nothing.
|
|
13
|
+
//
|
|
14
|
+
// The first case is the tester pair. A pipeline that wants both `tester-ui` and
|
|
15
|
+
// `tester-api` should run the browser pass only where there is a UI in scope and
|
|
16
|
+
// the API pass only where there is a service behind it — which is what lets ONE
|
|
17
|
+
// build preset carry both testers and be right on a frontend task and on a backend
|
|
18
|
+
// task, instead of the two near-identical presets it used to take. (A task in BOTH
|
|
19
|
+
// scopes at once is what {@link RunServiceScope} would express; see the note there
|
|
20
|
+
// for why no board state produces one yet.)
|
|
21
|
+
// ---------------------------------------------------------------------------
|
|
22
|
+
/** The block `type` a service frame carries when it owns a rendered UI. */
|
|
23
|
+
export const FRONTEND_BLOCK_TYPE = 'frontend';
|
|
24
|
+
/**
|
|
25
|
+
* Which half of a run's service scope a step needs:
|
|
26
|
+
*
|
|
27
|
+
* - `frontend` — run only when the change touches a service declared as a frontend.
|
|
28
|
+
* - `backend` — run only when it touches a service that is NOT a frontend.
|
|
29
|
+
*
|
|
30
|
+
* A full-stack task (a frontend service plus an involved backend service, or vice versa) is in
|
|
31
|
+
* BOTH scopes, so a pipeline carrying both testers runs both on it.
|
|
32
|
+
*/
|
|
33
|
+
export const stepServiceScopeSchema = v.picklist(['frontend', 'backend']);
|
|
34
|
+
/**
|
|
35
|
+
* A step's run condition: what has to be true of the run for this step to apply at all.
|
|
36
|
+
* Today the only axis is {@link stepServiceScopeSchema}; it is an OBJECT rather than a bare
|
|
37
|
+
* picklist so the next axis is a field beside it rather than a second per-step knob.
|
|
38
|
+
*
|
|
39
|
+
* Absent ⇒ unconditional, which is every step that does not declare one.
|
|
40
|
+
*/
|
|
41
|
+
export const stepRunConditionSchema = v.object({
|
|
42
|
+
serviceScope: stepServiceScopeSchema,
|
|
43
|
+
});
|
|
44
|
+
/**
|
|
45
|
+
* Reduce the service frames a run may change — its own service plus the task's involved
|
|
46
|
+
* services — into the {@link RunServiceScope} the step conditions read.
|
|
47
|
+
*
|
|
48
|
+
* Takes the FRAMES rather than the block, because "what does this run change" is the ancestry
|
|
49
|
+
* walk plus the involved-service resolution, and both already happen in the engine. Frames are
|
|
50
|
+
* deduped by the caller; passing the same frame twice changes nothing here.
|
|
51
|
+
*/
|
|
52
|
+
export function resolveRunServiceScope(frames) {
|
|
53
|
+
let frontend = false;
|
|
54
|
+
let backend = false;
|
|
55
|
+
for (const frame of frames) {
|
|
56
|
+
if (frame.type === FRONTEND_BLOCK_TYPE)
|
|
57
|
+
frontend = true;
|
|
58
|
+
else
|
|
59
|
+
backend = true;
|
|
60
|
+
}
|
|
61
|
+
return { frontend, backend };
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Why a run step finished as `skipped` rather than running — the three axes that can skip one,
|
|
65
|
+
* as a member the SPA maps to translated copy rather than prose the backend composed:
|
|
66
|
+
*
|
|
67
|
+
* - `gated` — the step's estimate gate was not met (the task scored below its thresholds).
|
|
68
|
+
* - `condition` — the step's {@link stepRunConditionSchema} did not match the run's service
|
|
69
|
+
* scope. The step still carries the condition, so a reader wanting the specific
|
|
70
|
+
* sentence ("no frontend in scope") reads `serviceScope` off it; this says only
|
|
71
|
+
* which axis fired, so the two can never disagree about the scope.
|
|
72
|
+
* - `producer_skipped` — a COMPANION whose producer was itself skipped, so there is nothing for
|
|
73
|
+
* it to grade. Distinct from `gated` because the fix is different: the reader
|
|
74
|
+
* has to look at the producer, not at this step's own thresholds.
|
|
75
|
+
* - `run_complete` — an earlier step ENDED the run (a `bug-intake` fire that found nothing to
|
|
76
|
+
* adopt), so everything after it was closed out untouched. Nothing about THIS
|
|
77
|
+
* step decided it, which is why it cannot borrow any of the three above.
|
|
78
|
+
*
|
|
79
|
+
* PERSISTED and CLOSED, so retiring a member does not remove it from stored runs: read it with
|
|
80
|
+
* {@link isStepSkipReason} and render an unrecognised value as "skipped" rather than crashing or
|
|
81
|
+
* guessing onto a current member.
|
|
82
|
+
*/
|
|
83
|
+
export const stepSkipReasonSchema = v.picklist([
|
|
84
|
+
'gated',
|
|
85
|
+
'condition',
|
|
86
|
+
'producer_skipped',
|
|
87
|
+
'run_complete',
|
|
88
|
+
]);
|
|
89
|
+
/**
|
|
90
|
+
* Narrow a persisted `skipReason` to a member this build still knows, DERIVED from the picklist's
|
|
91
|
+
* own options so adding a member cannot leave this behind. A stored run may name a member since
|
|
92
|
+
* retired, and a browser may hold a bundle older than the member it reads.
|
|
93
|
+
*/
|
|
94
|
+
export function isStepSkipReason(value) {
|
|
95
|
+
return (typeof value === 'string' && stepSkipReasonSchema.options.includes(value));
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Whether a step carrying `condition` applies to a run of `scope`. An absent condition is
|
|
99
|
+
* unconditional; an unresolvable scope (see {@link RunServiceScope}) runs the step rather than
|
|
100
|
+
* silently dropping it.
|
|
101
|
+
*/
|
|
102
|
+
export function stepConditionSatisfied(condition, scope) {
|
|
103
|
+
if (!condition)
|
|
104
|
+
return true;
|
|
105
|
+
if (!scope.frontend && !scope.backend)
|
|
106
|
+
return true;
|
|
107
|
+
return condition.serviceScope === 'frontend' ? scope.frontend : scope.backend;
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=step-conditions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-conditions.js","sourceRoot":"","sources":["../src/step-conditions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,4EAA4E;AAC5E,sEAAsE;AACtE,EAAE;AACF,iFAAiF;AACjF,gFAAgF;AAChF,8EAA8E;AAC9E,mFAAmF;AACnF,kFAAkF;AAClF,mFAAmF;AACnF,6CAA6C;AAC7C,EAAE;AACF,gFAAgF;AAChF,iFAAiF;AACjF,gFAAgF;AAChF,mFAAmF;AACnF,mFAAmF;AACnF,mFAAmF;AACnF,4CAA4C;AAC5C,8EAA8E;AAE9E,2EAA2E;AAC3E,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAA;AAE7C;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;AAGzE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,YAAY,EAAE,sBAAsB;CACrC,CAAC,CAAA;AA+BF;;;;;;;GAOG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAA2C;IAE3C,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,IAAI,OAAO,GAAG,KAAK,CAAA;IACnB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;QAC3B,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAmB;YAAE,Q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