@cat-factory/contracts 0.320.0 → 0.323.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/debug-api.d.ts +1 -1
- package/dist/debug-api.d.ts.map +1 -1
- package/dist/debug-api.js +3 -7
- package/dist/debug-api.js.map +1 -1
- package/dist/entities.d.ts +1 -0
- package/dist/entities.d.ts.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.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 -0
- package/dist/initiative.d.ts.map +1 -1
- package/dist/kaizen.d.ts +74 -0
- package/dist/kaizen.d.ts.map +1 -1
- package/dist/kaizen.js +37 -0
- package/dist/kaizen.js.map +1 -1
- package/dist/primitives.d.ts +61 -2
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +24 -0
- package/dist/primitives.js.map +1 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +7 -18
- package/dist/public-api.js.map +1 -1
- package/dist/public-kaizen.d.ts +316 -0
- package/dist/public-kaizen.d.ts.map +1 -0
- package/dist/public-kaizen.js +218 -0
- package/dist/public-kaizen.js.map +1 -0
- package/dist/public-paging.d.ts +24 -0
- package/dist/public-paging.d.ts.map +1 -0
- package/dist/public-paging.js +41 -0
- package/dist/public-paging.js.map +1 -0
- package/dist/public-task-types.d.ts.map +1 -1
- package/dist/public-task-types.js +6 -0
- package/dist/public-task-types.js.map +1 -1
- package/dist/requests.d.ts +26 -6
- package/dist/requests.d.ts.map +1 -1
- package/dist/routes/board.d.ts +39 -6
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/bug-hunt.d.ts +2 -0
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +2 -0
- package/dist/routes/execution.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 -0
- package/dist/routes/initiative.d.ts.map +1 -1
- package/dist/routes/kaizen.d.ts +6 -0
- package/dist/routes/kaizen.d.ts.map +1 -1
- package/dist/routes/public-kaizen.d.ts +240 -0
- package/dist/routes/public-kaizen.d.ts.map +1 -0
- package/dist/routes/public-kaizen.js +64 -0
- package/dist/routes/public-kaizen.js.map +1 -0
- package/dist/routes/skill-library.d.ts +2 -0
- package/dist/routes/skill-library.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +4 -1
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +8 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/skill-library.d.ts +79 -2
- package/dist/skill-library.d.ts.map +1 -1
- package/dist/skill-library.js +89 -2
- package/dist/skill-library.js.map +1 -1
- package/dist/snapshot.d.ts +4 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tasks.d.ts +11 -2
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +10 -0
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/routes/tasks.d.ts
CHANGED
|
@@ -234,7 +234,7 @@ export declare const diagnoseTaskSourceContract: {
|
|
|
234
234
|
readonly 200: v.ObjectSchema<{
|
|
235
235
|
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear", "gitlab"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
236
236
|
readonly ok: v.BooleanSchema<undefined>;
|
|
237
|
-
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "error"], undefined>;
|
|
237
|
+
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "rate_limited", "error"], undefined>;
|
|
238
238
|
readonly message: v.StringSchema<undefined>;
|
|
239
239
|
readonly detail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
240
240
|
}, undefined>;
|
|
@@ -766,6 +766,7 @@ export declare const createTaskFromIssueContract: {
|
|
|
766
766
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
767
767
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
768
768
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
769
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
769
770
|
readonly custom: 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>;
|
|
770
771
|
}, undefined>, undefined>, undefined>;
|
|
771
772
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -1200,6 +1201,7 @@ export declare const spawnEpicContract: {
|
|
|
1200
1201
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
1201
1202
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1202
1203
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
1204
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
1203
1205
|
readonly custom: 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>;
|
|
1204
1206
|
}, undefined>, undefined>, undefined>;
|
|
1205
1207
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -1571,6 +1573,7 @@ export declare const spawnEpicContract: {
|
|
|
1571
1573
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
1572
1574
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
1573
1575
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
1576
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
1574
1577
|
readonly custom: 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>;
|
|
1575
1578
|
}, undefined>, undefined>, undefined>;
|
|
1576
1579
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/routes/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM5B,CAAA"}
|
|
@@ -151,6 +151,7 @@ export declare const createWorkspaceContract: {
|
|
|
151
151
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
152
152
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
153
153
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
154
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
154
155
|
readonly custom: 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>;
|
|
155
156
|
}, undefined>, undefined>, undefined>;
|
|
156
157
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -2870,6 +2871,7 @@ export declare const createWorkspaceContract: {
|
|
|
2870
2871
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
2871
2872
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
2872
2873
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
2874
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
2873
2875
|
readonly custom: 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>;
|
|
2874
2876
|
}, undefined>, undefined>, undefined>;
|
|
2875
2877
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -3424,6 +3426,7 @@ export declare const createWorkspaceContract: {
|
|
|
3424
3426
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3425
3427
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
3426
3428
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
3429
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
3427
3430
|
readonly custom: 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>;
|
|
3428
3431
|
}, undefined>, undefined>;
|
|
3429
3432
|
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -3624,6 +3627,7 @@ export declare const createWorkspaceContract: {
|
|
|
3624
3627
|
readonly id: v.StringSchema<undefined>;
|
|
3625
3628
|
readonly name: v.StringSchema<undefined>;
|
|
3626
3629
|
readonly description: v.StringSchema<undefined>;
|
|
3630
|
+
readonly group: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
3627
3631
|
}, undefined>, undefined>, undefined>;
|
|
3628
3632
|
readonly access: v.OptionalSchema<v.ObjectSchema<{
|
|
3629
3633
|
readonly role: v.PicklistSchema<readonly ["admin", "member", "viewer"], undefined>;
|
|
@@ -3729,6 +3733,7 @@ export declare const getWorkspaceContract: {
|
|
|
3729
3733
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3730
3734
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
3731
3735
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
3736
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
3732
3737
|
readonly custom: 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>;
|
|
3733
3738
|
}, undefined>, undefined>, undefined>;
|
|
3734
3739
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -6448,6 +6453,7 @@ export declare const getWorkspaceContract: {
|
|
|
6448
6453
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
6449
6454
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
6450
6455
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
6456
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
6451
6457
|
readonly custom: 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>;
|
|
6452
6458
|
}, undefined>, undefined>, undefined>;
|
|
6453
6459
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -7002,6 +7008,7 @@ export declare const getWorkspaceContract: {
|
|
|
7002
7008
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
7003
7009
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
7004
7010
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
7011
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
7005
7012
|
readonly custom: 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>;
|
|
7006
7013
|
}, undefined>, undefined>;
|
|
7007
7014
|
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -7202,6 +7209,7 @@ export declare const getWorkspaceContract: {
|
|
|
7202
7209
|
readonly id: v.StringSchema<undefined>;
|
|
7203
7210
|
readonly name: v.StringSchema<undefined>;
|
|
7204
7211
|
readonly description: v.StringSchema<undefined>;
|
|
7212
|
+
readonly group: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
7205
7213
|
}, undefined>, undefined>, undefined>;
|
|
7206
7214
|
readonly access: v.OptionalSchema<v.ObjectSchema<{
|
|
7207
7215
|
readonly role: v.PicklistSchema<readonly ["admin", "member", "viewer"], 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;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;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAK/B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA"}
|
package/dist/skill-library.d.ts
CHANGED
|
@@ -1,4 +1,67 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
* The GROUPS a skill declares itself into — the kind of work its playbook does, so a surface
|
|
4
|
+
* offering skills can offer only the ones that FIT it (the review-task queue offers `review`
|
|
5
|
+
* skills, and nothing else). Declared in `SKILL.md` frontmatter as `group: review`; a manifest
|
|
6
|
+
* that declares none, or declares a value this build does not know, reads as `other`.
|
|
7
|
+
*
|
|
8
|
+
* Closed, and deliberately COARSE: these are shelves in a picker, not a taxonomy. A team's
|
|
9
|
+
* "Performance Review" and "Security Review" playbooks both shelve under `review`; what
|
|
10
|
+
* distinguishes them is their name and description, which is what the picker shows.
|
|
11
|
+
*
|
|
12
|
+
* The vocabulary is PERSISTED (a synced row carries the value its manifest declared), so a
|
|
13
|
+
* reader must narrow with {@link isSkillGroup} rather than assume this build's members are the
|
|
14
|
+
* only ones a row can hold. Retiring a member therefore does NOT remove it from the database:
|
|
15
|
+
* {@link normalizeSkillGroup} lands such a row on `other` (the unclassified shelf), and the
|
|
16
|
+
* management surface states the declared value beside it, so an author sees what they wrote
|
|
17
|
+
* rather than silently losing a shelf.
|
|
18
|
+
*/
|
|
19
|
+
export declare const SKILL_GROUPS: readonly ['build', 'review', 'test', 'write', 'plan', 'operate', 'other'];
|
|
20
|
+
export declare const skillGroupSchema: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
21
|
+
export type SkillGroup = v.InferOutput<typeof skillGroupSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* Whether a value is a group THIS BUILD knows, DERIVED from the picklist so it cannot drift from
|
|
24
|
+
* it the way a hand-written second list would (the `isAgentCategory` shape, for the same reason:
|
|
25
|
+
* the values reaching a reader are not this build's alone).
|
|
26
|
+
*/
|
|
27
|
+
export declare function isSkillGroup(value: string): value is SkillGroup;
|
|
28
|
+
/**
|
|
29
|
+
* The shelf a raw declared group lands on: itself when this build knows it, `other` otherwise.
|
|
30
|
+
* Case- and whitespace-insensitive, because the value comes from hand-authored frontmatter.
|
|
31
|
+
*
|
|
32
|
+
* Never throws and never guesses a neighbour: `security` is not silently read as `review`,
|
|
33
|
+
* because nothing knows which shelf the author meant, and a wrong shelf is what would put a
|
|
34
|
+
* playbook in front of the wrong step.
|
|
35
|
+
*/
|
|
36
|
+
export declare function normalizeSkillGroup(raw: string | null | undefined): SkillGroup;
|
|
37
|
+
/** A stored group as a reader must present it: the shelf, plus the raw value when it is unknown. */
|
|
38
|
+
export interface SkillGroupView {
|
|
39
|
+
/** The shelf to compare and filter on ({@link normalizeSkillGroup}). */
|
|
40
|
+
group: SkillGroup;
|
|
41
|
+
/** What was declared, present ONLY when this build does not know it. */
|
|
42
|
+
declaredGroup?: string;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Read a STORED group: the shelf it lands on, and the declared value when that is not a member
|
|
46
|
+
* this build knows. The two halves are answered together because they are one decision, and a
|
|
47
|
+
* reader that computed the shelf without the echo would reclassify in silence.
|
|
48
|
+
*
|
|
49
|
+
* Total over an ABSENT value, which is not defensive padding: the record crosses the
|
|
50
|
+
* `/internal/persistence` RPC in mothership mode, where a peer one build behind is the normal
|
|
51
|
+
* state of running one and simply does not send the field. `undefined` is the honest "declared
|
|
52
|
+
* nothing we can see", which is the `other` shelf with nothing to echo. Anything else would make
|
|
53
|
+
* the account's skill library 500 on a version skew it is designed to tolerate.
|
|
54
|
+
*/
|
|
55
|
+
export declare function describeSkillGroup(raw: string | null | undefined): SkillGroupView;
|
|
56
|
+
/**
|
|
57
|
+
* `error.details.reason` on the 422 a skill resolver raises for an id the account's catalog no
|
|
58
|
+
* longer holds (removed upstream, or its source unlinked). Machine-readable precisely so the
|
|
59
|
+
* layer that knows WHERE the id was picked can recognise this refusal and append the remedy
|
|
60
|
+
* naming that surface, while an infrastructure failure on the same call path (an unreachable
|
|
61
|
+
* store, a lost RPC) propagates as itself: an outage is not a misconfiguration, and telling an
|
|
62
|
+
* operator to go re-pick a skill because a database blinked sends them to fix nothing.
|
|
63
|
+
*/
|
|
64
|
+
export declare const SKILL_UNAVAILABLE_REASON = "skill_unavailable";
|
|
2
65
|
/** One sibling resource file of a skill (manifest only — no body on the wire). */
|
|
3
66
|
export declare const skillResourceSchema: v.ObjectSchema<{
|
|
4
67
|
readonly path: v.StringSchema<undefined>;
|
|
@@ -19,6 +82,14 @@ export declare const accountSkillSchema: v.ObjectSchema<{
|
|
|
19
82
|
readonly sha: v.StringSchema<undefined>;
|
|
20
83
|
readonly size: v.NumberSchema<undefined>;
|
|
21
84
|
}, undefined>, undefined>;
|
|
85
|
+
/** The shelf this skill sits on, normalized from its manifest ({@link normalizeSkillGroup}). */
|
|
86
|
+
readonly group: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
87
|
+
/**
|
|
88
|
+
* What the manifest actually declared, present ONLY when it is not a group this build knows
|
|
89
|
+
* (a typo, or a retired member still on the row). The management surface renders it beside the
|
|
90
|
+
* `other` shelf so the author sees the value they wrote instead of a silent reclassification.
|
|
91
|
+
*/
|
|
92
|
+
readonly declaredGroup: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
22
93
|
/** Provenance: the source + `SKILL.md` path + blob sha it was synced from. */
|
|
23
94
|
readonly source: v.ObjectSchema<{
|
|
24
95
|
readonly sourceId: v.StringSchema<undefined>;
|
|
@@ -33,8 +104,8 @@ export declare const accountSkillSchema: v.ObjectSchema<{
|
|
|
33
104
|
export type AccountSkill = v.InferOutput<typeof accountSkillSchema>;
|
|
34
105
|
/**
|
|
35
106
|
* The lightweight per-skill projection carried in the workspace snapshot for the pipeline
|
|
36
|
-
* builder's skill picker (id + name + description
|
|
37
|
-
* manifest, which would bloat every board load). The account catalog is shared across the
|
|
107
|
+
* builder's skill picker and the review task's skill queue (id + name + description + group —
|
|
108
|
+
* NOT the full `instructions` / resource manifest, which would bloat every board load). The account catalog is shared across the
|
|
38
109
|
* account's workspaces, so this is the account's skills served through the catalog cache in one
|
|
39
110
|
* read (see ADR 0024 "No N+1"). The account-settings management surface
|
|
40
111
|
* fetches the full {@link AccountSkill} via `GET /accounts/:accountId/skills` instead.
|
|
@@ -43,6 +114,12 @@ export declare const skillSummarySchema: v.ObjectSchema<{
|
|
|
43
114
|
readonly id: v.StringSchema<undefined>;
|
|
44
115
|
readonly name: v.StringSchema<undefined>;
|
|
45
116
|
readonly description: v.StringSchema<undefined>;
|
|
117
|
+
/**
|
|
118
|
+
* The shelf the skill sits on, already normalized — so a surface offering a SUBSET of the
|
|
119
|
+
* catalog (the review task queues `review` skills) filters on a value it can compare directly
|
|
120
|
+
* rather than re-deriving the classification the backend already made.
|
|
121
|
+
*/
|
|
122
|
+
readonly group: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
46
123
|
}, undefined>;
|
|
47
124
|
export type SkillSummary = v.InferOutput<typeof skillSummarySchema>;
|
|
48
125
|
/** A repo directory an account links as a source of skill folders. */
|
|
@@ -1 +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;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;;;;
|
|
1
|
+
{"version":3,"file":"skill-library.d.ts","sourceRoot":"","sources":["../src/skill-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAW5B;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,YACvB,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAS,EACT,OAAO,CACC,CAAA;AACV,eAAO,MAAM,gBAAgB,wGAA2B,CAAA;AACxD,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAI/D;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAE/D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,GAAG,SA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ACjF,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"}
|
package/dist/skill-library.js
CHANGED
|
@@ -7,6 +7,79 @@ import * as v from 'valibot';
|
|
|
7
7
|
// account-settings management UI (link/sync/status) and, later, the palette
|
|
8
8
|
// picker (slice 3) and the executable `skill` step (slice 2).
|
|
9
9
|
// ---------------------------------------------------------------------------
|
|
10
|
+
/**
|
|
11
|
+
* The GROUPS a skill declares itself into — the kind of work its playbook does, so a surface
|
|
12
|
+
* offering skills can offer only the ones that FIT it (the review-task queue offers `review`
|
|
13
|
+
* skills, and nothing else). Declared in `SKILL.md` frontmatter as `group: review`; a manifest
|
|
14
|
+
* that declares none, or declares a value this build does not know, reads as `other`.
|
|
15
|
+
*
|
|
16
|
+
* Closed, and deliberately COARSE: these are shelves in a picker, not a taxonomy. A team's
|
|
17
|
+
* "Performance Review" and "Security Review" playbooks both shelve under `review`; what
|
|
18
|
+
* distinguishes them is their name and description, which is what the picker shows.
|
|
19
|
+
*
|
|
20
|
+
* The vocabulary is PERSISTED (a synced row carries the value its manifest declared), so a
|
|
21
|
+
* reader must narrow with {@link isSkillGroup} rather than assume this build's members are the
|
|
22
|
+
* only ones a row can hold. Retiring a member therefore does NOT remove it from the database:
|
|
23
|
+
* {@link normalizeSkillGroup} lands such a row on `other` (the unclassified shelf), and the
|
|
24
|
+
* management surface states the declared value beside it, so an author sees what they wrote
|
|
25
|
+
* rather than silently losing a shelf.
|
|
26
|
+
*/
|
|
27
|
+
export const SKILL_GROUPS = [
|
|
28
|
+
'build',
|
|
29
|
+
'review',
|
|
30
|
+
'test',
|
|
31
|
+
'write',
|
|
32
|
+
'plan',
|
|
33
|
+
'operate',
|
|
34
|
+
'other',
|
|
35
|
+
];
|
|
36
|
+
export const skillGroupSchema = v.picklist(SKILL_GROUPS);
|
|
37
|
+
const SKILL_GROUP_SET = new Set(SKILL_GROUPS);
|
|
38
|
+
/**
|
|
39
|
+
* Whether a value is a group THIS BUILD knows, DERIVED from the picklist so it cannot drift from
|
|
40
|
+
* it the way a hand-written second list would (the `isAgentCategory` shape, for the same reason:
|
|
41
|
+
* the values reaching a reader are not this build's alone).
|
|
42
|
+
*/
|
|
43
|
+
export function isSkillGroup(value) {
|
|
44
|
+
return SKILL_GROUP_SET.has(value);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The shelf a raw declared group lands on: itself when this build knows it, `other` otherwise.
|
|
48
|
+
* Case- and whitespace-insensitive, because the value comes from hand-authored frontmatter.
|
|
49
|
+
*
|
|
50
|
+
* Never throws and never guesses a neighbour: `security` is not silently read as `review`,
|
|
51
|
+
* because nothing knows which shelf the author meant, and a wrong shelf is what would put a
|
|
52
|
+
* playbook in front of the wrong step.
|
|
53
|
+
*/
|
|
54
|
+
export function normalizeSkillGroup(raw) {
|
|
55
|
+
const value = (raw ?? '').trim().toLowerCase();
|
|
56
|
+
return isSkillGroup(value) ? value : 'other';
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Read a STORED group: the shelf it lands on, and the declared value when that is not a member
|
|
60
|
+
* this build knows. The two halves are answered together because they are one decision, and a
|
|
61
|
+
* reader that computed the shelf without the echo would reclassify in silence.
|
|
62
|
+
*
|
|
63
|
+
* Total over an ABSENT value, which is not defensive padding: the record crosses the
|
|
64
|
+
* `/internal/persistence` RPC in mothership mode, where a peer one build behind is the normal
|
|
65
|
+
* state of running one and simply does not send the field. `undefined` is the honest "declared
|
|
66
|
+
* nothing we can see", which is the `other` shelf with nothing to echo. Anything else would make
|
|
67
|
+
* the account's skill library 500 on a version skew it is designed to tolerate.
|
|
68
|
+
*/
|
|
69
|
+
export function describeSkillGroup(raw) {
|
|
70
|
+
const declared = (raw ?? '').trim().toLowerCase();
|
|
71
|
+
const group = normalizeSkillGroup(declared);
|
|
72
|
+
return declared && !isSkillGroup(declared) ? { group, declaredGroup: declared } : { group };
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* `error.details.reason` on the 422 a skill resolver raises for an id the account's catalog no
|
|
76
|
+
* longer holds (removed upstream, or its source unlinked). Machine-readable precisely so the
|
|
77
|
+
* layer that knows WHERE the id was picked can recognise this refusal and append the remedy
|
|
78
|
+
* naming that surface, while an infrastructure failure on the same call path (an unreachable
|
|
79
|
+
* store, a lost RPC) propagates as itself: an outage is not a misconfiguration, and telling an
|
|
80
|
+
* operator to go re-pick a skill because a database blinked sends them to fix nothing.
|
|
81
|
+
*/
|
|
82
|
+
export const SKILL_UNAVAILABLE_REASON = 'skill_unavailable';
|
|
10
83
|
/** One sibling resource file of a skill (manifest only — no body on the wire). */
|
|
11
84
|
export const skillResourceSchema = v.object({
|
|
12
85
|
path: v.string(),
|
|
@@ -22,6 +95,14 @@ export const accountSkillSchema = v.object({
|
|
|
22
95
|
/** The procedural instructions (the `SKILL.md` body). */
|
|
23
96
|
instructions: v.string(),
|
|
24
97
|
resources: v.array(skillResourceSchema),
|
|
98
|
+
/** The shelf this skill sits on, normalized from its manifest ({@link normalizeSkillGroup}). */
|
|
99
|
+
group: skillGroupSchema,
|
|
100
|
+
/**
|
|
101
|
+
* What the manifest actually declared, present ONLY when it is not a group this build knows
|
|
102
|
+
* (a typo, or a retired member still on the row). The management surface renders it beside the
|
|
103
|
+
* `other` shelf so the author sees the value they wrote instead of a silent reclassification.
|
|
104
|
+
*/
|
|
105
|
+
declaredGroup: v.optional(v.string()),
|
|
25
106
|
/** Provenance: the source + `SKILL.md` path + blob sha it was synced from. */
|
|
26
107
|
source: v.object({ sourceId: v.string(), path: v.string(), sha: v.string() }),
|
|
27
108
|
/** Head commit the skill was pinned to at the last sync; null if never synced. */
|
|
@@ -31,8 +112,8 @@ export const accountSkillSchema = v.object({
|
|
|
31
112
|
});
|
|
32
113
|
/**
|
|
33
114
|
* The lightweight per-skill projection carried in the workspace snapshot for the pipeline
|
|
34
|
-
* builder's skill picker (id + name + description
|
|
35
|
-
* manifest, which would bloat every board load). The account catalog is shared across the
|
|
115
|
+
* builder's skill picker and the review task's skill queue (id + name + description + group —
|
|
116
|
+
* NOT the full `instructions` / resource manifest, which would bloat every board load). The account catalog is shared across the
|
|
36
117
|
* account's workspaces, so this is the account's skills served through the catalog cache in one
|
|
37
118
|
* read (see ADR 0024 "No N+1"). The account-settings management surface
|
|
38
119
|
* fetches the full {@link AccountSkill} via `GET /accounts/:accountId/skills` instead.
|
|
@@ -41,6 +122,12 @@ export const skillSummarySchema = v.object({
|
|
|
41
122
|
id: v.string(),
|
|
42
123
|
name: v.string(),
|
|
43
124
|
description: v.string(),
|
|
125
|
+
/**
|
|
126
|
+
* The shelf the skill sits on, already normalized — so a surface offering a SUBSET of the
|
|
127
|
+
* catalog (the review task queues `review` skills) filters on a value it can compare directly
|
|
128
|
+
* rather than re-deriving the classification the backend already made.
|
|
129
|
+
*/
|
|
130
|
+
group: skillGroupSchema,
|
|
44
131
|
});
|
|
45
132
|
/** A repo directory an account links as a source of skill folders. */
|
|
46
133
|
export const skillSourceSchema = v.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-library.js","sourceRoot":"","sources":["../src/skill-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,8EAA8E;AAC9E,4DAA4D;AAC5D,yDAAyD;AACzD,gFAAgF;AAChF,+EAA+E;AAC/E,4EAA4E;AAC5E,8DAA8D;AAC9D,8EAA8E;AAE9E,kFAAkF;AAClF,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,MAAM,EA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AAC,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
|
@@ -89,6 +89,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
89
89
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
90
90
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
91
91
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
92
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
92
93
|
readonly custom: 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>;
|
|
93
94
|
}, undefined>, undefined>, undefined>;
|
|
94
95
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -2931,6 +2932,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
2931
2932
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
2932
2933
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
2933
2934
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
2935
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
2934
2936
|
readonly custom: 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>;
|
|
2935
2937
|
}, undefined>, undefined>, undefined>;
|
|
2936
2938
|
readonly technical: v.OptionalSchema<v.NullableSchema<v.BooleanSchema<undefined>, undefined>, undefined>;
|
|
@@ -3662,6 +3664,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
3662
3664
|
readonly prNumber: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
3663
3665
|
readonly prUrl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 500, undefined>]>, undefined>;
|
|
3664
3666
|
readonly reviewFocus: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
3667
|
+
readonly reviewSkillIds: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, v.MaxLengthAction<string[], 8, undefined>]>, undefined>;
|
|
3665
3668
|
readonly custom: 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>;
|
|
3666
3669
|
}, undefined>, undefined>;
|
|
3667
3670
|
readonly fragmentIds: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
@@ -3886,6 +3889,7 @@ export declare const workspaceSnapshotSchema: v.ObjectSchema<{
|
|
|
3886
3889
|
readonly id: v.StringSchema<undefined>;
|
|
3887
3890
|
readonly name: v.StringSchema<undefined>;
|
|
3888
3891
|
readonly description: v.StringSchema<undefined>;
|
|
3892
|
+
readonly group: v.PicklistSchema<readonly ["build", "review", "test", "write", "plan", "operate", "other"], undefined>;
|
|
3889
3893
|
}, undefined>, undefined>, undefined>;
|
|
3890
3894
|
/**
|
|
3891
3895
|
* The signed-in caller's resolved workspace-RBAC access to this board — their effective
|
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,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE7E,4EAA4E;AAC5E,eAAO,MAAM,uBAAuB;;;IAGlC;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../src/snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAyC5B;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;aAG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EH;;;;;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/tasks.d.ts
CHANGED
|
@@ -295,16 +295,25 @@ export type TaskSourceState = v.InferOutput<typeof taskSourceStateSchema>;
|
|
|
295
295
|
* - `forbidden` — authenticated but lacking the needed scope, e.g. the
|
|
296
296
|
* GitHub App has no Issues permission (HTTP 403).
|
|
297
297
|
* - `unreachable` — the source host could not be reached (network / DNS).
|
|
298
|
+
* - `rate_limited` — the credential is good and the quota is spent, so the fix
|
|
299
|
+
* is to wait rather than to reconnect. Its own verdict
|
|
300
|
+
* because the status a vendor answers with cannot say it:
|
|
301
|
+
* Linear reports an exhausted quota as HTTP 400 with a
|
|
302
|
+
* `RATELIMITED` error code, which reads as a malformed
|
|
303
|
+
* request, and GitHub's secondary limit arrives as a 403,
|
|
304
|
+
* which reads as a missing permission. Both send an
|
|
305
|
+
* operator to re-mint a credential that was never the
|
|
306
|
+
* problem.
|
|
298
307
|
* - `error` — anything else (unexpected status or body).
|
|
299
308
|
*/
|
|
300
|
-
export declare const taskSourceDiagnosticStatusSchema: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "error"], undefined>;
|
|
309
|
+
export declare const taskSourceDiagnosticStatusSchema: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "rate_limited", "error"], undefined>;
|
|
301
310
|
export type TaskSourceDiagnosticStatus = v.InferOutput<typeof taskSourceDiagnosticStatusSchema>;
|
|
302
311
|
/** A source's live setup-check result: a status + a human-readable, actionable message. */
|
|
303
312
|
export declare const taskSourceDiagnosticSchema: v.ObjectSchema<{
|
|
304
313
|
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear", "gitlab"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
305
314
|
/** Convenience: `status === 'ready'`. */
|
|
306
315
|
readonly ok: v.BooleanSchema<undefined>;
|
|
307
|
-
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "error"], undefined>;
|
|
316
|
+
readonly status: v.PicklistSchema<["ready", "not_installed", "not_connected", "auth_failed", "forbidden", "unreachable", "rate_limited", "error"], undefined>;
|
|
308
317
|
/** A one-line explanation the panel shows verbatim (what's wrong + how to fix). */
|
|
309
318
|
readonly message: v.StringSchema<undefined>;
|
|
310
319
|
/** Optional extra context, e.g. the resolved account login or repo count. */
|
package/dist/tasks.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../src/tasks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAoB5B,iGAAiG;AACjG,eAAO,MAAM,yBAAyB,YAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAExF;;;;;GAKG;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE9E;;;;;;;;;;;;;;;;;;;GAmBG;AACH,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AO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5E,8DAA8D;AAC9D,eAAO,MAAM,iBAAiB;;IAE5B;;;;;;;;OAQG;;aAEH,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA;AAEtE,iEAAiE;AACjE,eAAO,MAAM,cAAc;;;;aAIzB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB;;;IAGpC,sDAAsD;;aAEtD,CAAA;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,yBAAyB,CAAC,CAAA;AAEtF;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;;;IAG1B,2FAA2F;;;;;aAE3F,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA"}
|
package/dist/tasks.js
CHANGED
|
@@ -249,6 +249,15 @@ export const taskSourceStateSchema = v.object({
|
|
|
249
249
|
* - `forbidden` — authenticated but lacking the needed scope, e.g. the
|
|
250
250
|
* GitHub App has no Issues permission (HTTP 403).
|
|
251
251
|
* - `unreachable` — the source host could not be reached (network / DNS).
|
|
252
|
+
* - `rate_limited` — the credential is good and the quota is spent, so the fix
|
|
253
|
+
* is to wait rather than to reconnect. Its own verdict
|
|
254
|
+
* because the status a vendor answers with cannot say it:
|
|
255
|
+
* Linear reports an exhausted quota as HTTP 400 with a
|
|
256
|
+
* `RATELIMITED` error code, which reads as a malformed
|
|
257
|
+
* request, and GitHub's secondary limit arrives as a 403,
|
|
258
|
+
* which reads as a missing permission. Both send an
|
|
259
|
+
* operator to re-mint a credential that was never the
|
|
260
|
+
* problem.
|
|
252
261
|
* - `error` — anything else (unexpected status or body).
|
|
253
262
|
*/
|
|
254
263
|
export const taskSourceDiagnosticStatusSchema = v.picklist([
|
|
@@ -258,6 +267,7 @@ export const taskSourceDiagnosticStatusSchema = v.picklist([
|
|
|
258
267
|
'auth_failed',
|
|
259
268
|
'forbidden',
|
|
260
269
|
'unreachable',
|
|
270
|
+
'rate_limited',
|
|
261
271
|
'error',
|
|
262
272
|
]);
|
|
263
273
|
/** A source's live setup-check result: a status + a human-readable, actionable message. */
|