@cat-factory/contracts 0.135.0 → 0.137.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-config.d.ts +30 -14
- package/dist/agent-config.d.ts.map +1 -1
- package/dist/agent-config.js +27 -9
- package/dist/agent-config.js.map +1 -1
- package/dist/agent-presentation.d.ts +2 -2
- package/dist/entities.d.ts +51 -1
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +10 -0
- package/dist/entities.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/initiative.d.ts +5 -5
- package/dist/primitives.d.ts +2 -2
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +9 -1
- package/dist/primitives.js.map +1 -1
- package/dist/public-api.d.ts +3 -3
- package/dist/ralph.d.ts +84 -0
- package/dist/ralph.d.ts.map +1 -0
- package/dist/ralph.js +77 -0
- package/dist/ralph.js.map +1 -0
- package/dist/requests.d.ts +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 +34 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/board.d.ts +13 -13
- package/dist/routes/execution.d.ts +138 -2
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +17 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +85 -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/initiative.d.ts +17 -17
- package/dist/routes/public-api.d.ts +8 -8
- package/dist/routes/skill-library.d.ts +246 -0
- package/dist/routes/skill-library.d.ts.map +1 -0
- package/dist/routes/skill-library.js +55 -0
- package/dist/routes/skill-library.js.map +1 -0
- package/dist/routes/tasks.d.ts +3 -3
- package/dist/routes/visual-confirm.d.ts +51 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspace-settings.d.ts +3 -3
- package/dist/routes/workspaces.d.ts +54 -18
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/skill-library.d.ts +80 -0
- package/dist/skill-library.d.ts.map +1 -0
- package/dist/skill-library.js +74 -0
- package/dist/skill-library.js.map +1 -0
- package/dist/snapshot.d.ts +27 -9
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/workspace-settings.d.ts +3 -3
- package/dist/workspace-settings.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -390,6 +390,23 @@ export declare const approveVisualConfirmContract: {
|
|
|
390
390
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
391
391
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
392
392
|
}, undefined>, undefined>, undefined>;
|
|
393
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
394
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
395
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
396
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
397
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
398
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
399
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
400
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
401
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
402
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
403
|
+
readonly at: v.NumberSchema<undefined>;
|
|
404
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
405
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
406
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
407
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
408
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
409
|
+
}, undefined>, undefined>, undefined>;
|
|
393
410
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
394
411
|
readonly messageId: v.StringSchema<undefined>;
|
|
395
412
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1162,6 +1179,23 @@ export declare const requestVisualConfirmFixContract: {
|
|
|
1162
1179
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
1163
1180
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1164
1181
|
}, undefined>, undefined>, undefined>;
|
|
1182
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1183
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
1184
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1185
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
1186
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
1187
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1188
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1189
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1190
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1191
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1192
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1193
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
1194
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1195
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1196
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1197
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1198
|
+
}, undefined>, undefined>, undefined>;
|
|
1165
1199
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1166
1200
|
readonly messageId: v.StringSchema<undefined>;
|
|
1167
1201
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1932,6 +1966,23 @@ export declare const recaptureVisualConfirmContract: {
|
|
|
1932
1966
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
1933
1967
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1934
1968
|
}, undefined>, undefined>, undefined>;
|
|
1969
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1970
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
1971
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
1972
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
1973
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
1974
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1975
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1976
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1977
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1978
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
1979
|
+
readonly at: v.NumberSchema<undefined>;
|
|
1980
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
1981
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1982
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1983
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1984
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
1985
|
+
}, undefined>, undefined>, undefined>;
|
|
1935
1986
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1936
1987
|
readonly messageId: v.StringSchema<undefined>;
|
|
1937
1988
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visual-confirm.d.ts","sourceRoot":"","sources":["../../src/routes/visual-confirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"visual-confirm.d.ts","sourceRoot":"","sources":["../../src/routes/visual-confirm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqC,MAAM,yBAAyB,CAAA;AAC3F,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAc5B,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMzC,CAAA"}
|
|
@@ -28,7 +28,7 @@ export declare const getWorkspaceSettingsContract: {
|
|
|
28
28
|
readonly waitingEscalationMinutes: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100000, undefined>]>;
|
|
29
29
|
readonly taskLimitMode: import("valibot").PicklistSchema<["off", "shared", "per_type"], undefined>;
|
|
30
30
|
readonly taskLimitShared: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
31
|
-
readonly taskLimitPerType: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
31
|
+
readonly taskLimitPerType: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
32
32
|
readonly storeAgentContext: import("valibot").BooleanSchema<undefined>;
|
|
33
33
|
readonly artifactRetentionDays: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 3650, undefined>]>;
|
|
34
34
|
readonly kaizenEnabled: import("valibot").BooleanSchema<undefined>;
|
|
@@ -45,7 +45,7 @@ export declare const updateWorkspaceSettingsContract: {
|
|
|
45
45
|
readonly waitingEscalationMinutes: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100000, undefined>]>, undefined>;
|
|
46
46
|
readonly taskLimitMode: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["off", "shared", "per_type"], undefined>, undefined>;
|
|
47
47
|
readonly taskLimitShared: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
48
|
-
readonly taskLimitPerType: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>, undefined>;
|
|
48
|
+
readonly taskLimitPerType: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>, undefined>;
|
|
49
49
|
readonly storeAgentContext: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
50
50
|
readonly artifactRetentionDays: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 3650, undefined>]>, undefined>;
|
|
51
51
|
readonly kaizenEnabled: import("valibot").OptionalSchema<import("valibot").BooleanSchema<undefined>, undefined>;
|
|
@@ -80,7 +80,7 @@ export declare const updateWorkspaceSettingsContract: {
|
|
|
80
80
|
readonly waitingEscalationMinutes: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 100000, undefined>]>;
|
|
81
81
|
readonly taskLimitMode: import("valibot").PicklistSchema<["off", "shared", "per_type"], undefined>;
|
|
82
82
|
readonly taskLimitShared: import("valibot").NullableSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
83
|
-
readonly taskLimitPerType: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
83
|
+
readonly taskLimitPerType: import("valibot").NullableSchema<import("valibot").RecordSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
84
84
|
readonly storeAgentContext: import("valibot").BooleanSchema<undefined>;
|
|
85
85
|
readonly artifactRetentionDays: import("valibot").SchemaWithPipe<readonly [import("valibot").NumberSchema<undefined>, import("valibot").IntegerAction<number, undefined>, import("valibot").MinValueAction<number, 1, undefined>, import("valibot").MaxValueAction<number, 3650, undefined>]>;
|
|
86
86
|
readonly kaizenEnabled: import("valibot").BooleanSchema<undefined>;
|
|
@@ -107,7 +107,7 @@ export declare const createWorkspaceContract: {
|
|
|
107
107
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
108
108
|
}, undefined>, undefined>, undefined>;
|
|
109
109
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
110
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
110
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
111
111
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
112
112
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
113
113
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -829,6 +829,23 @@ export declare const createWorkspaceContract: {
|
|
|
829
829
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
830
830
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
831
831
|
}, undefined>, undefined>, undefined>;
|
|
832
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
833
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
834
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
835
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
836
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
837
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
838
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
839
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
840
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
841
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
842
|
+
readonly at: v.NumberSchema<undefined>;
|
|
843
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
844
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
845
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
846
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
847
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
848
|
+
}, undefined>, undefined>, undefined>;
|
|
832
849
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
833
850
|
readonly messageId: v.StringSchema<undefined>;
|
|
834
851
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1504,12 +1521,13 @@ export declare const createWorkspaceContract: {
|
|
|
1504
1521
|
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1505
1522
|
readonly label: v.StringSchema<undefined>;
|
|
1506
1523
|
readonly description: v.StringSchema<undefined>;
|
|
1507
|
-
readonly type: v.PicklistSchema<["select"], undefined>;
|
|
1508
|
-
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1524
|
+
readonly type: v.PicklistSchema<["select", "text", "number"], undefined>;
|
|
1525
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1509
1526
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1510
1527
|
readonly label: v.StringSchema<undefined>;
|
|
1511
|
-
}, undefined>, undefined>;
|
|
1512
|
-
readonly default: v.
|
|
1528
|
+
}, undefined>, undefined>, readonly []>;
|
|
1529
|
+
readonly default: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1530
|
+
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1513
1531
|
}, undefined>, undefined>, undefined>;
|
|
1514
1532
|
readonly modelPresets: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1515
1533
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1625,7 +1643,7 @@ export declare const createWorkspaceContract: {
|
|
|
1625
1643
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
1626
1644
|
}, undefined>, undefined>, undefined>;
|
|
1627
1645
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1628
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
1646
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
1629
1647
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1630
1648
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
1631
1649
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -1939,7 +1957,7 @@ export declare const createWorkspaceContract: {
|
|
|
1939
1957
|
readonly waitingEscalationMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100000, undefined>]>;
|
|
1940
1958
|
readonly taskLimitMode: v.PicklistSchema<["off", "shared", "per_type"], undefined>;
|
|
1941
1959
|
readonly taskLimitShared: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
1942
|
-
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
1960
|
+
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
1943
1961
|
readonly storeAgentContext: v.BooleanSchema<undefined>;
|
|
1944
1962
|
readonly artifactRetentionDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 3650, undefined>]>;
|
|
1945
1963
|
readonly kaizenEnabled: v.BooleanSchema<undefined>;
|
|
@@ -1955,7 +1973,7 @@ export declare const createWorkspaceContract: {
|
|
|
1955
1973
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
1956
1974
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
1957
1975
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
1958
|
-
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", "pr-review"], undefined>, undefined>;
|
|
1976
|
+
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", "pr-review", "ralph-loop"], undefined>, undefined>;
|
|
1959
1977
|
}, undefined>;
|
|
1960
1978
|
readonly container: v.BooleanSchema<undefined>;
|
|
1961
1979
|
}, undefined>, undefined>, undefined>;
|
|
@@ -2024,7 +2042,7 @@ export declare const createWorkspaceContract: {
|
|
|
2024
2042
|
}, undefined>, undefined>;
|
|
2025
2043
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
2026
2044
|
readonly spawn: v.OptionalSchema<v.ObjectSchema<{
|
|
2027
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
|
|
2045
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
|
|
2028
2046
|
readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
|
|
2029
2047
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
2030
2048
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -2313,7 +2331,7 @@ export declare const getWorkspaceContract: {
|
|
|
2313
2331
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
2314
2332
|
}, undefined>, undefined>, undefined>;
|
|
2315
2333
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2316
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
2334
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
2317
2335
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2318
2336
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
2319
2337
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -3035,6 +3053,23 @@ export declare const getWorkspaceContract: {
|
|
|
3035
3053
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
3036
3054
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3037
3055
|
}, undefined>, undefined>, undefined>;
|
|
3056
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3057
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
3058
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
3059
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
3060
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
3061
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3062
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3063
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3064
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3065
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
3066
|
+
readonly at: v.NumberSchema<undefined>;
|
|
3067
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
3068
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
3069
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3070
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3071
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
3072
|
+
}, undefined>, undefined>, undefined>;
|
|
3038
3073
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3039
3074
|
readonly messageId: v.StringSchema<undefined>;
|
|
3040
3075
|
}, undefined>, undefined>, undefined>;
|
|
@@ -3710,12 +3745,13 @@ export declare const getWorkspaceContract: {
|
|
|
3710
3745
|
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
3711
3746
|
readonly label: v.StringSchema<undefined>;
|
|
3712
3747
|
readonly description: v.StringSchema<undefined>;
|
|
3713
|
-
readonly type: v.PicklistSchema<["select"], undefined>;
|
|
3714
|
-
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
3748
|
+
readonly type: v.PicklistSchema<["select", "text", "number"], undefined>;
|
|
3749
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3715
3750
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
3716
3751
|
readonly label: v.StringSchema<undefined>;
|
|
3717
|
-
}, undefined>, undefined>;
|
|
3718
|
-
readonly default: v.
|
|
3752
|
+
}, undefined>, undefined>, readonly []>;
|
|
3753
|
+
readonly default: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
3754
|
+
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3719
3755
|
}, undefined>, undefined>, undefined>;
|
|
3720
3756
|
readonly modelPresets: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
3721
3757
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -3831,7 +3867,7 @@ export declare const getWorkspaceContract: {
|
|
|
3831
3867
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
3832
3868
|
}, undefined>, undefined>, undefined>;
|
|
3833
3869
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3834
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
3870
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
3835
3871
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3836
3872
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
3837
3873
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -4145,7 +4181,7 @@ export declare const getWorkspaceContract: {
|
|
|
4145
4181
|
readonly waitingEscalationMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100000, undefined>]>;
|
|
4146
4182
|
readonly taskLimitMode: v.PicklistSchema<["off", "shared", "per_type"], undefined>;
|
|
4147
4183
|
readonly taskLimitShared: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
4148
|
-
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
4184
|
+
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
4149
4185
|
readonly storeAgentContext: v.BooleanSchema<undefined>;
|
|
4150
4186
|
readonly artifactRetentionDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 3650, undefined>]>;
|
|
4151
4187
|
readonly kaizenEnabled: v.BooleanSchema<undefined>;
|
|
@@ -4161,7 +4197,7 @@ export declare const getWorkspaceContract: {
|
|
|
4161
4197
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
4162
4198
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
4163
4199
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
4164
|
-
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", "pr-review"], undefined>, undefined>;
|
|
4200
|
+
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", "pr-review", "ralph-loop"], undefined>, undefined>;
|
|
4165
4201
|
}, undefined>;
|
|
4166
4202
|
readonly container: v.BooleanSchema<undefined>;
|
|
4167
4203
|
}, undefined>, undefined>, undefined>;
|
|
@@ -4230,7 +4266,7 @@ export declare const getWorkspaceContract: {
|
|
|
4230
4266
|
}, undefined>, undefined>;
|
|
4231
4267
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
4232
4268
|
readonly spawn: v.OptionalSchema<v.ObjectSchema<{
|
|
4233
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
|
|
4269
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
|
|
4234
4270
|
readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
|
|
4235
4271
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
4236
4272
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -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;AAgB5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB
|
|
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;AAgB5B,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIjC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;CAKlC,CAAA"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/** One sibling resource file of a skill (manifest only — no body on the wire). */
|
|
3
|
+
export declare const skillResourceSchema: v.ObjectSchema<{
|
|
4
|
+
readonly path: v.StringSchema<undefined>;
|
|
5
|
+
readonly sha: v.StringSchema<undefined>;
|
|
6
|
+
readonly size: v.NumberSchema<undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
export type SkillResource = v.InferOutput<typeof skillResourceSchema>;
|
|
9
|
+
/** A repo-sourced skill as seen by the account management surface / picker. */
|
|
10
|
+
export declare const accountSkillSchema: v.ObjectSchema<{
|
|
11
|
+
/** Stable id — `src:<sourceId>:<dirName>`. */
|
|
12
|
+
readonly id: v.StringSchema<undefined>;
|
|
13
|
+
readonly name: v.StringSchema<undefined>;
|
|
14
|
+
readonly description: v.StringSchema<undefined>;
|
|
15
|
+
/** The procedural instructions (the `SKILL.md` body). */
|
|
16
|
+
readonly instructions: v.StringSchema<undefined>;
|
|
17
|
+
readonly resources: v.ArraySchema<v.ObjectSchema<{
|
|
18
|
+
readonly path: v.StringSchema<undefined>;
|
|
19
|
+
readonly sha: v.StringSchema<undefined>;
|
|
20
|
+
readonly size: v.NumberSchema<undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
/** Provenance: the source + `SKILL.md` path + blob sha it was synced from. */
|
|
23
|
+
readonly source: v.ObjectSchema<{
|
|
24
|
+
readonly sourceId: v.StringSchema<undefined>;
|
|
25
|
+
readonly path: v.StringSchema<undefined>;
|
|
26
|
+
readonly sha: v.StringSchema<undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
/** Head commit the skill was pinned to at the last sync; null if never synced. */
|
|
29
|
+
readonly pinnedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
31
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
export type AccountSkill = v.InferOutput<typeof accountSkillSchema>;
|
|
34
|
+
/** A repo directory an account links as a source of skill folders. */
|
|
35
|
+
export declare const skillSourceSchema: v.ObjectSchema<{
|
|
36
|
+
readonly id: v.StringSchema<undefined>;
|
|
37
|
+
readonly accountId: v.StringSchema<undefined>;
|
|
38
|
+
readonly repoOwner: v.StringSchema<undefined>;
|
|
39
|
+
readonly repoName: v.StringSchema<undefined>;
|
|
40
|
+
readonly gitRef: v.StringSchema<undefined>;
|
|
41
|
+
readonly dirPath: v.StringSchema<undefined>;
|
|
42
|
+
/** Head commit sha of the source dir at the last successful sync; null if never synced. */
|
|
43
|
+
readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly lastSyncedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
45
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
export type SkillSource = v.InferOutput<typeof skillSourceSchema>;
|
|
48
|
+
/** Link a repo directory as a skill source. */
|
|
49
|
+
export declare const linkSkillSourceSchema: v.ObjectSchema<{
|
|
50
|
+
readonly repoOwner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
|
|
51
|
+
readonly repoName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
52
|
+
/** Git ref to read; defaults to the repo's default branch (`HEAD`). */
|
|
53
|
+
readonly gitRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
54
|
+
/** Subtree to scan for `<skill>/SKILL.md` folders (e.g. `.claude/skills`); defaults to root. */
|
|
55
|
+
readonly dirPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
export type LinkSkillSourceInput = v.InferOutput<typeof linkSkillSourceSchema>;
|
|
58
|
+
/** Outcome of resyncing a source: counts of changed/removed/unchanged skills. */
|
|
59
|
+
export declare const skillSyncResultSchema: v.ObjectSchema<{
|
|
60
|
+
readonly upserted: v.NumberSchema<undefined>;
|
|
61
|
+
readonly tombstoned: v.NumberSchema<undefined>;
|
|
62
|
+
readonly unchanged: v.NumberSchema<undefined>;
|
|
63
|
+
/** Head commit sha the source dir was synced to. */
|
|
64
|
+
readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
65
|
+
}, undefined>;
|
|
66
|
+
export type SkillSyncResult = v.InferOutput<typeof skillSyncResultSchema>;
|
|
67
|
+
/**
|
|
68
|
+
* Lightweight "check for changes" result (no writes); powers the resync badge. A
|
|
69
|
+
* single commit-version probe: `changed` is true when the source dir's current head
|
|
70
|
+
* commit differs from the one it was last synced to.
|
|
71
|
+
*/
|
|
72
|
+
export declare const skillSourceStatusSchema: v.ObjectSchema<{
|
|
73
|
+
readonly changed: v.BooleanSchema<undefined>;
|
|
74
|
+
/** Head commit sha at the last successful sync; null if never synced. */
|
|
75
|
+
readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
76
|
+
/** The source dir's current head commit sha upstream; null if the dir has no commits. */
|
|
77
|
+
readonly remoteCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
export type SkillSourceStatus = v.InferOutput<typeof skillSourceStatusSchema>;
|
|
80
|
+
//# sourceMappingURL=skill-library.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-library.d.ts","sourceRoot":"","sources":["../src/skill-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B,kFAAkF;AAClF,eAAO,MAAM,mBAAmB;;;;aAI9B,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,+EAA+E;AAC/E,eAAO,MAAM,kBAAkB;IAC7B,8CAA8C;;;;IAI9C,yDAAyD;;;;;;;IAGzD,8EAA8E;;;;;;IAE9E,kFAAkF;;;;aAIlF,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,sEAAsE;AACtE,eAAO,MAAM,iBAAiB;;;;;;;IAO5B,2FAA2F;;;;aAI3F,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEjE,+CAA+C;AAC/C,eAAO,MAAM,qBAAqB;;;IAGhC,uEAAuE;;IAEvE,gGAAgG;;aAEhG,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,iFAAiF;AACjF,eAAO,MAAM,qBAAqB;;;;IAIhC,oDAAoD;;aAEpD,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE;;;;GAIG;AACH,eAAO,MAAM,uBAAuB;;IAElC,yEAAyE;;IAEzE,yFAAyF;;aAEzF,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
// ---------------------------------------------------------------------------
|
|
3
|
+
// Wire contracts for the repo-sourced Claude Skills library
|
|
4
|
+
// (docs/initiatives/repo-skills.md). An account links a repo directory of skill
|
|
5
|
+
// folders (`<skill>/SKILL.md` + sibling resources); the link is synced into the
|
|
6
|
+
// account's skill catalog, shared across its workspaces. These shapes back the
|
|
7
|
+
// account-settings management UI (link/sync/status) and, later, the palette
|
|
8
|
+
// picker (slice 3) and the executable `skill` step (slice 2).
|
|
9
|
+
// ---------------------------------------------------------------------------
|
|
10
|
+
/** One sibling resource file of a skill (manifest only — no body on the wire). */
|
|
11
|
+
export const skillResourceSchema = v.object({
|
|
12
|
+
path: v.string(),
|
|
13
|
+
sha: v.string(),
|
|
14
|
+
size: v.number(),
|
|
15
|
+
});
|
|
16
|
+
/** A repo-sourced skill as seen by the account management surface / picker. */
|
|
17
|
+
export const accountSkillSchema = v.object({
|
|
18
|
+
/** Stable id — `src:<sourceId>:<dirName>`. */
|
|
19
|
+
id: v.string(),
|
|
20
|
+
name: v.string(),
|
|
21
|
+
description: v.string(),
|
|
22
|
+
/** The procedural instructions (the `SKILL.md` body). */
|
|
23
|
+
instructions: v.string(),
|
|
24
|
+
resources: v.array(skillResourceSchema),
|
|
25
|
+
/** Provenance: the source + `SKILL.md` path + blob sha it was synced from. */
|
|
26
|
+
source: v.object({ sourceId: v.string(), path: v.string(), sha: v.string() }),
|
|
27
|
+
/** Head commit the skill was pinned to at the last sync; null if never synced. */
|
|
28
|
+
pinnedCommit: v.nullable(v.string()),
|
|
29
|
+
createdAt: v.number(),
|
|
30
|
+
updatedAt: v.number(),
|
|
31
|
+
});
|
|
32
|
+
/** A repo directory an account links as a source of skill folders. */
|
|
33
|
+
export const skillSourceSchema = v.object({
|
|
34
|
+
id: v.string(),
|
|
35
|
+
accountId: v.string(),
|
|
36
|
+
repoOwner: v.string(),
|
|
37
|
+
repoName: v.string(),
|
|
38
|
+
gitRef: v.string(),
|
|
39
|
+
dirPath: v.string(),
|
|
40
|
+
/** Head commit sha of the source dir at the last successful sync; null if never synced. */
|
|
41
|
+
lastSyncedCommit: v.nullable(v.string()),
|
|
42
|
+
lastSyncedAt: v.nullable(v.number()),
|
|
43
|
+
createdAt: v.number(),
|
|
44
|
+
});
|
|
45
|
+
/** Link a repo directory as a skill source. */
|
|
46
|
+
export const linkSkillSourceSchema = v.object({
|
|
47
|
+
repoOwner: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(100)),
|
|
48
|
+
repoName: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200)),
|
|
49
|
+
/** Git ref to read; defaults to the repo's default branch (`HEAD`). */
|
|
50
|
+
gitRef: v.optional(v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200))),
|
|
51
|
+
/** Subtree to scan for `<skill>/SKILL.md` folders (e.g. `.claude/skills`); defaults to root. */
|
|
52
|
+
dirPath: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(300))),
|
|
53
|
+
});
|
|
54
|
+
/** Outcome of resyncing a source: counts of changed/removed/unchanged skills. */
|
|
55
|
+
export const skillSyncResultSchema = v.object({
|
|
56
|
+
upserted: v.number(),
|
|
57
|
+
tombstoned: v.number(),
|
|
58
|
+
unchanged: v.number(),
|
|
59
|
+
/** Head commit sha the source dir was synced to. */
|
|
60
|
+
lastSyncedCommit: v.nullable(v.string()),
|
|
61
|
+
});
|
|
62
|
+
/**
|
|
63
|
+
* Lightweight "check for changes" result (no writes); powers the resync badge. A
|
|
64
|
+
* single commit-version probe: `changed` is true when the source dir's current head
|
|
65
|
+
* commit differs from the one it was last synced to.
|
|
66
|
+
*/
|
|
67
|
+
export const skillSourceStatusSchema = v.object({
|
|
68
|
+
changed: v.boolean(),
|
|
69
|
+
/** Head commit sha at the last successful sync; null if never synced. */
|
|
70
|
+
lastSyncedCommit: v.nullable(v.string()),
|
|
71
|
+
/** The source dir's current head commit sha upstream; null if the dir has no commits. */
|
|
72
|
+
remoteCommit: v.nullable(v.string()),
|
|
73
|
+
});
|
|
74
|
+
//# sourceMappingURL=skill-library.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-library.js","sourceRoot":"","sources":["../src/sk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,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;CACpE,CAAC,CAAA;AAGF,iFAAiF;AACjF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,oDAAoD;IACpD,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACzC,CAAC,CAAA;AAGF;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,yEAAyE;IACzE,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,yFAAyF;IACzF,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACrC,CAAC,CAAA"}
|
package/dist/snapshot.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
52
52
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
53
53
|
}, undefined>, undefined>, undefined>;
|
|
54
54
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
55
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
56
56
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
57
57
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
58
58
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -774,6 +774,23 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
774
774
|
}, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
|
|
775
775
|
readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
776
776
|
}, undefined>, undefined>, undefined>;
|
|
777
|
+
readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
778
|
+
readonly phase: v.PicklistSchema<["iterating"], undefined>;
|
|
779
|
+
readonly attempts: v.NumberSchema<undefined>;
|
|
780
|
+
readonly maxIterations: v.NumberSchema<undefined>;
|
|
781
|
+
readonly validationCommand: v.StringSchema<undefined>;
|
|
782
|
+
readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
783
|
+
readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
784
|
+
readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
785
|
+
readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
786
|
+
readonly attempt: v.NumberSchema<undefined>;
|
|
787
|
+
readonly at: v.NumberSchema<undefined>;
|
|
788
|
+
readonly validationPassed: v.BooleanSchema<undefined>;
|
|
789
|
+
readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
790
|
+
readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
791
|
+
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
792
|
+
}, undefined>, undefined>, undefined>, undefined>;
|
|
793
|
+
}, undefined>, undefined>, undefined>;
|
|
777
794
|
readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
778
795
|
readonly messageId: v.StringSchema<undefined>;
|
|
779
796
|
}, undefined>, undefined>, undefined>;
|
|
@@ -1514,12 +1531,13 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1514
1531
|
readonly agentKind: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1515
1532
|
readonly label: v.StringSchema<undefined>;
|
|
1516
1533
|
readonly description: v.StringSchema<undefined>;
|
|
1517
|
-
readonly type: v.PicklistSchema<["select"], undefined>;
|
|
1518
|
-
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1534
|
+
readonly type: v.PicklistSchema<["select", "text", "number"], undefined>;
|
|
1535
|
+
readonly options: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1519
1536
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>;
|
|
1520
1537
|
readonly label: v.StringSchema<undefined>;
|
|
1521
|
-
}, undefined>, undefined>;
|
|
1522
|
-
readonly default: v.
|
|
1538
|
+
}, undefined>, undefined>, readonly []>;
|
|
1539
|
+
readonly default: v.OptionalSchema<v.StringSchema<undefined>, "">;
|
|
1540
|
+
readonly placeholder: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1523
1541
|
}, undefined>, undefined>, undefined>;
|
|
1524
1542
|
/**
|
|
1525
1543
|
* The workspace's model presets — the library a task picks its model→agent
|
|
@@ -1675,7 +1693,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1675
1693
|
readonly createdAt: v.NumberSchema<undefined>;
|
|
1676
1694
|
}, undefined>, undefined>, undefined>;
|
|
1677
1695
|
readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1678
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
|
|
1696
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
|
|
1679
1697
|
readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1680
1698
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
1681
1699
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
@@ -1994,7 +2012,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
1994
2012
|
readonly waitingEscalationMinutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100000, undefined>]>;
|
|
1995
2013
|
readonly taskLimitMode: v.PicklistSchema<["off", "shared", "per_type"], undefined>;
|
|
1996
2014
|
readonly taskLimitShared: v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>;
|
|
1997
|
-
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
2015
|
+
readonly taskLimitPerType: v.NullableSchema<v.RecordSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, undefined>, undefined>;
|
|
1998
2016
|
readonly storeAgentContext: v.BooleanSchema<undefined>;
|
|
1999
2017
|
readonly artifactRetentionDays: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 3650, undefined>]>;
|
|
2000
2018
|
readonly kaizenEnabled: v.BooleanSchema<undefined>;
|
|
@@ -2017,7 +2035,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
2017
2035
|
readonly color: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 40, undefined>]>;
|
|
2018
2036
|
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
2019
2037
|
readonly category: v.OptionalSchema<v.PicklistSchema<["review", "design", "build", "test", "docs", "gates"], undefined>, undefined>;
|
|
2020
|
-
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", "pr-review"], undefined>, undefined>;
|
|
2038
|
+
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", "pr-review", "ralph-loop"], undefined>, undefined>;
|
|
2021
2039
|
}, undefined>;
|
|
2022
2040
|
readonly container: v.BooleanSchema<undefined>;
|
|
2023
2041
|
}, undefined>, undefined>, undefined>;
|
|
@@ -2138,7 +2156,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
2138
2156
|
}, undefined>, undefined>;
|
|
2139
2157
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
2140
2158
|
readonly spawn: v.OptionalSchema<v.ObjectSchema<{
|
|
2141
|
-
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
|
|
2159
|
+
readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
|
|
2142
2160
|
readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
|
|
2143
2161
|
readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
|
|
2144
2162
|
readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|