@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.
Files changed (62) hide show
  1. package/dist/agent-config.d.ts +30 -14
  2. package/dist/agent-config.d.ts.map +1 -1
  3. package/dist/agent-config.js +27 -9
  4. package/dist/agent-config.js.map +1 -1
  5. package/dist/agent-presentation.d.ts +2 -2
  6. package/dist/entities.d.ts +51 -1
  7. package/dist/entities.d.ts.map +1 -1
  8. package/dist/entities.js +10 -0
  9. package/dist/entities.js.map +1 -1
  10. package/dist/index.d.ts +2 -0
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -0
  13. package/dist/index.js.map +1 -1
  14. package/dist/initiative.d.ts +5 -5
  15. package/dist/primitives.d.ts +2 -2
  16. package/dist/primitives.d.ts.map +1 -1
  17. package/dist/primitives.js +9 -1
  18. package/dist/primitives.js.map +1 -1
  19. package/dist/public-api.d.ts +3 -3
  20. package/dist/ralph.d.ts +84 -0
  21. package/dist/ralph.d.ts.map +1 -0
  22. package/dist/ralph.js +77 -0
  23. package/dist/ralph.js.map +1 -0
  24. package/dist/requests.d.ts +1 -1
  25. package/dist/result-views.d.ts +1 -1
  26. package/dist/result-views.d.ts.map +1 -1
  27. package/dist/result-views.js +1 -0
  28. package/dist/result-views.js.map +1 -1
  29. package/dist/routes/agent-runs.d.ts +34 -0
  30. package/dist/routes/agent-runs.d.ts.map +1 -1
  31. package/dist/routes/board.d.ts +13 -13
  32. package/dist/routes/execution.d.ts +138 -2
  33. package/dist/routes/execution.d.ts.map +1 -1
  34. package/dist/routes/human-review.d.ts +17 -0
  35. package/dist/routes/human-review.d.ts.map +1 -1
  36. package/dist/routes/human-test.d.ts +85 -0
  37. package/dist/routes/human-test.d.ts.map +1 -1
  38. package/dist/routes/index.d.ts +1 -0
  39. package/dist/routes/index.d.ts.map +1 -1
  40. package/dist/routes/index.js +1 -0
  41. package/dist/routes/index.js.map +1 -1
  42. package/dist/routes/initiative.d.ts +17 -17
  43. package/dist/routes/public-api.d.ts +8 -8
  44. package/dist/routes/skill-library.d.ts +246 -0
  45. package/dist/routes/skill-library.d.ts.map +1 -0
  46. package/dist/routes/skill-library.js +55 -0
  47. package/dist/routes/skill-library.js.map +1 -0
  48. package/dist/routes/tasks.d.ts +3 -3
  49. package/dist/routes/visual-confirm.d.ts +51 -0
  50. package/dist/routes/visual-confirm.d.ts.map +1 -1
  51. package/dist/routes/workspace-settings.d.ts +3 -3
  52. package/dist/routes/workspaces.d.ts +54 -18
  53. package/dist/routes/workspaces.d.ts.map +1 -1
  54. package/dist/skill-library.d.ts +80 -0
  55. package/dist/skill-library.d.ts.map +1 -0
  56. package/dist/skill-library.js +74 -0
  57. package/dist/skill-library.js.map +1 -0
  58. package/dist/snapshot.d.ts +27 -9
  59. package/dist/snapshot.d.ts.map +1 -1
  60. package/dist/workspace-settings.d.ts +3 -3
  61. package/dist/workspace-settings.d.ts.map +1 -1
  62. package/package.json +1 -1
@@ -91,7 +91,7 @@ export declare const createInitiativeContract: {
91
91
  }, undefined>, undefined>;
92
92
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
93
93
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
94
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
94
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
95
95
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
96
96
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
97
97
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -198,7 +198,7 @@ export declare const createInitiativeContract: {
198
198
  readonly createdAt: v.NumberSchema<undefined>;
199
199
  }, undefined>, undefined>, undefined>;
200
200
  readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
201
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
201
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
202
202
  readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
203
203
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
204
204
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -589,7 +589,7 @@ export declare const listInitiativesContract: {
589
589
  }, undefined>, undefined>;
590
590
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
591
591
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
592
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
592
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
593
593
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
594
594
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
595
595
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -791,7 +791,7 @@ export declare const getInitiativeContract: {
791
791
  }, undefined>, undefined>;
792
792
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
793
793
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
794
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
794
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
795
795
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
796
796
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
797
797
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -952,7 +952,7 @@ export declare const getInitiativeByBlockContract: {
952
952
  }, undefined>, undefined>;
953
953
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
954
954
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
955
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
955
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
956
956
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
957
957
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
958
958
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1117,7 +1117,7 @@ export declare const answerInitiativeQuestionContract: {
1117
1117
  }, undefined>, undefined>;
1118
1118
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1119
1119
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1120
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1120
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1121
1121
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1122
1122
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1123
1123
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1282,7 +1282,7 @@ export declare const setInitiativeQuestionStatusContract: {
1282
1282
  }, undefined>, undefined>;
1283
1283
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1284
1284
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1285
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1285
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1286
1286
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1287
1287
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1288
1288
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1446,7 +1446,7 @@ export declare const recommendInitiativeAnswerContract: {
1446
1446
  }, undefined>, undefined>;
1447
1447
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1448
1448
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1449
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1449
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1450
1450
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1451
1451
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1452
1452
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1608,7 +1608,7 @@ export declare const continueInitiativePlanningContract: {
1608
1608
  }, undefined>, undefined>;
1609
1609
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1610
1610
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1611
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1611
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1612
1612
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1613
1613
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1614
1614
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1770,7 +1770,7 @@ export declare const proceedInitiativePlanningContract: {
1770
1770
  }, undefined>, undefined>;
1771
1771
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1772
1772
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1773
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1773
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1774
1774
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1775
1775
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1776
1776
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1932,7 +1932,7 @@ export declare const pauseInitiativeContract: {
1932
1932
  }, undefined>, undefined>;
1933
1933
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
1934
1934
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
1935
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
1935
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
1936
1936
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
1937
1937
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1938
1938
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2094,7 +2094,7 @@ export declare const resumeInitiativeContract: {
2094
2094
  }, undefined>, undefined>;
2095
2095
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2096
2096
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2097
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2097
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2098
2098
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2099
2099
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2100
2100
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2256,7 +2256,7 @@ export declare const cancelInitiativeContract: {
2256
2256
  }, undefined>, undefined>;
2257
2257
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2258
2258
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2259
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2259
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2260
2260
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2261
2261
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2262
2262
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2432,7 +2432,7 @@ export declare const promoteInitiativeFollowUpContract: {
2432
2432
  }, undefined>, undefined>;
2433
2433
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2434
2434
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2435
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2435
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2436
2436
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2437
2437
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2438
2438
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2596,7 +2596,7 @@ export declare const dismissInitiativeFollowUpContract: {
2596
2596
  }, undefined>, undefined>;
2597
2597
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2598
2598
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2599
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2599
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2600
2600
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2601
2601
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2602
2602
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2772,7 +2772,7 @@ export declare const updateInitiativeItemContract: {
2772
2772
  }, undefined>, undefined>;
2773
2773
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2774
2774
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2775
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2775
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2776
2776
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2777
2777
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2778
2778
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -2944,7 +2944,7 @@ export declare const updateInitiativePolicyContract: {
2944
2944
  }, undefined>, undefined>;
2945
2945
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
2946
2946
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
2947
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
2947
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
2948
2948
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
2949
2949
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
2950
2950
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -253,7 +253,7 @@ export declare const createPublicTaskContract: {
253
253
  readonly requestBodySchema: import("valibot").ObjectSchema<{
254
254
  readonly title: import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MinLengthAction<string, 1, undefined>, import("valibot").MaxLengthAction<string, 200, undefined>]>;
255
255
  readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>;
256
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
256
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
257
257
  }, undefined>;
258
258
  readonly responsesByStatusCode: {
259
259
  readonly '4xx': import("valibot").ObjectSchema<{
@@ -283,7 +283,7 @@ export declare const createPublicTaskContract: {
283
283
  readonly serviceId: import("valibot").StringSchema<undefined>;
284
284
  readonly title: import("valibot").StringSchema<undefined>;
285
285
  readonly description: import("valibot").StringSchema<undefined>;
286
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
286
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
287
287
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
288
288
  readonly progress: import("valibot").NumberSchema<undefined>;
289
289
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -329,7 +329,7 @@ export declare const listPublicServiceTasksContract: {
329
329
  readonly serviceId: import("valibot").StringSchema<undefined>;
330
330
  readonly title: import("valibot").StringSchema<undefined>;
331
331
  readonly description: import("valibot").StringSchema<undefined>;
332
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
332
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
333
333
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
334
334
  readonly progress: import("valibot").NumberSchema<undefined>;
335
335
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -375,7 +375,7 @@ export declare const getPublicTaskContract: {
375
375
  readonly serviceId: import("valibot").StringSchema<undefined>;
376
376
  readonly title: import("valibot").StringSchema<undefined>;
377
377
  readonly description: import("valibot").StringSchema<undefined>;
378
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
378
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
379
379
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
380
380
  readonly progress: import("valibot").NumberSchema<undefined>;
381
381
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -423,7 +423,7 @@ export declare const startPublicTaskContract: {
423
423
  readonly serviceId: import("valibot").StringSchema<undefined>;
424
424
  readonly title: import("valibot").StringSchema<undefined>;
425
425
  readonly description: import("valibot").StringSchema<undefined>;
426
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
426
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
427
427
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
428
428
  readonly progress: import("valibot").NumberSchema<undefined>;
429
429
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -472,7 +472,7 @@ export declare const updatePublicTaskContract: {
472
472
  readonly serviceId: import("valibot").StringSchema<undefined>;
473
473
  readonly title: import("valibot").StringSchema<undefined>;
474
474
  readonly description: import("valibot").StringSchema<undefined>;
475
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
475
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
476
476
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
477
477
  readonly progress: import("valibot").NumberSchema<undefined>;
478
478
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -518,7 +518,7 @@ export declare const stopPublicTaskContract: {
518
518
  readonly serviceId: import("valibot").StringSchema<undefined>;
519
519
  readonly title: import("valibot").StringSchema<undefined>;
520
520
  readonly description: import("valibot").StringSchema<undefined>;
521
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
521
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
522
522
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
523
523
  readonly progress: import("valibot").NumberSchema<undefined>;
524
524
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -564,7 +564,7 @@ export declare const retryPublicTaskContract: {
564
564
  readonly serviceId: import("valibot").StringSchema<undefined>;
565
565
  readonly title: import("valibot").StringSchema<undefined>;
566
566
  readonly description: import("valibot").StringSchema<undefined>;
567
- readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
567
+ readonly taskType: import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
568
568
  readonly status: import("valibot").PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
569
569
  readonly progress: import("valibot").NumberSchema<undefined>;
570
570
  readonly executionId: import("valibot").NullableSchema<import("valibot").StringSchema<undefined>, undefined>;
@@ -0,0 +1,246 @@
1
+ import { ContractNoBody } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ export declare const listAccountSkillsContract: {
4
+ readonly method: "get";
5
+ readonly pathResolver: () => string;
6
+ readonly responsesByStatusCode: {
7
+ readonly '4xx': v.ObjectSchema<{
8
+ readonly error: v.ObjectSchema<{
9
+ readonly code: v.StringSchema<undefined>;
10
+ readonly message: v.StringSchema<undefined>;
11
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
12
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
13
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
14
+ readonly message: v.StringSchema<undefined>;
15
+ }, undefined>, undefined>, undefined>;
16
+ }, undefined>;
17
+ }, undefined>;
18
+ readonly '5xx': v.ObjectSchema<{
19
+ readonly error: v.ObjectSchema<{
20
+ readonly code: v.StringSchema<undefined>;
21
+ readonly message: v.StringSchema<undefined>;
22
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
23
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
24
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
+ readonly message: v.StringSchema<undefined>;
26
+ }, undefined>, undefined>, undefined>;
27
+ }, undefined>;
28
+ }, undefined>;
29
+ readonly 200: v.ArraySchema<v.ObjectSchema<{
30
+ readonly id: v.StringSchema<undefined>;
31
+ readonly name: v.StringSchema<undefined>;
32
+ readonly description: v.StringSchema<undefined>;
33
+ readonly instructions: v.StringSchema<undefined>;
34
+ readonly resources: v.ArraySchema<v.ObjectSchema<{
35
+ readonly path: v.StringSchema<undefined>;
36
+ readonly sha: v.StringSchema<undefined>;
37
+ readonly size: v.NumberSchema<undefined>;
38
+ }, undefined>, undefined>;
39
+ readonly source: v.ObjectSchema<{
40
+ readonly sourceId: v.StringSchema<undefined>;
41
+ readonly path: v.StringSchema<undefined>;
42
+ readonly sha: v.StringSchema<undefined>;
43
+ }, undefined>;
44
+ readonly pinnedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
45
+ readonly createdAt: v.NumberSchema<undefined>;
46
+ readonly updatedAt: v.NumberSchema<undefined>;
47
+ }, undefined>, undefined>;
48
+ };
49
+ };
50
+ export declare const listSkillSourcesContract: {
51
+ readonly method: "get";
52
+ readonly pathResolver: () => string;
53
+ readonly responsesByStatusCode: {
54
+ readonly '4xx': v.ObjectSchema<{
55
+ readonly error: v.ObjectSchema<{
56
+ readonly code: v.StringSchema<undefined>;
57
+ readonly message: v.StringSchema<undefined>;
58
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
59
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
60
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
61
+ readonly message: v.StringSchema<undefined>;
62
+ }, undefined>, undefined>, undefined>;
63
+ }, undefined>;
64
+ }, undefined>;
65
+ readonly '5xx': v.ObjectSchema<{
66
+ readonly error: v.ObjectSchema<{
67
+ readonly code: v.StringSchema<undefined>;
68
+ readonly message: v.StringSchema<undefined>;
69
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
70
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
71
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
72
+ readonly message: v.StringSchema<undefined>;
73
+ }, undefined>, undefined>, undefined>;
74
+ }, undefined>;
75
+ }, undefined>;
76
+ readonly 200: v.ArraySchema<v.ObjectSchema<{
77
+ readonly id: v.StringSchema<undefined>;
78
+ readonly accountId: v.StringSchema<undefined>;
79
+ readonly repoOwner: v.StringSchema<undefined>;
80
+ readonly repoName: v.StringSchema<undefined>;
81
+ readonly gitRef: v.StringSchema<undefined>;
82
+ readonly dirPath: v.StringSchema<undefined>;
83
+ readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
84
+ readonly lastSyncedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
85
+ readonly createdAt: v.NumberSchema<undefined>;
86
+ }, undefined>, undefined>;
87
+ };
88
+ };
89
+ export declare const linkSkillSourceContract: {
90
+ readonly method: "post";
91
+ readonly pathResolver: () => string;
92
+ readonly requestBodySchema: v.ObjectSchema<{
93
+ readonly repoOwner: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100, undefined>]>;
94
+ readonly repoName: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
95
+ readonly gitRef: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
96
+ readonly dirPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
97
+ }, undefined>;
98
+ readonly responsesByStatusCode: {
99
+ readonly '4xx': v.ObjectSchema<{
100
+ readonly error: v.ObjectSchema<{
101
+ readonly code: v.StringSchema<undefined>;
102
+ readonly message: v.StringSchema<undefined>;
103
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
104
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
105
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
106
+ readonly message: v.StringSchema<undefined>;
107
+ }, undefined>, undefined>, undefined>;
108
+ }, undefined>;
109
+ }, undefined>;
110
+ readonly '5xx': v.ObjectSchema<{
111
+ readonly error: v.ObjectSchema<{
112
+ readonly code: v.StringSchema<undefined>;
113
+ readonly message: v.StringSchema<undefined>;
114
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
115
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
116
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
117
+ readonly message: v.StringSchema<undefined>;
118
+ }, undefined>, undefined>, undefined>;
119
+ }, undefined>;
120
+ }, undefined>;
121
+ readonly 201: v.ObjectSchema<{
122
+ readonly id: v.StringSchema<undefined>;
123
+ readonly accountId: v.StringSchema<undefined>;
124
+ readonly repoOwner: v.StringSchema<undefined>;
125
+ readonly repoName: v.StringSchema<undefined>;
126
+ readonly gitRef: v.StringSchema<undefined>;
127
+ readonly dirPath: v.StringSchema<undefined>;
128
+ readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
129
+ readonly lastSyncedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
130
+ readonly createdAt: v.NumberSchema<undefined>;
131
+ }, undefined>;
132
+ };
133
+ };
134
+ export declare const unlinkSkillSourceContract: {
135
+ readonly method: "delete";
136
+ readonly requestPathParamsSchema: v.ObjectSchema<{
137
+ id: v.StringSchema<undefined>;
138
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
139
+ readonly pathResolver: ({ id }: {
140
+ id: string;
141
+ }) => string;
142
+ readonly responsesByStatusCode: {
143
+ readonly '4xx': v.ObjectSchema<{
144
+ readonly error: v.ObjectSchema<{
145
+ readonly code: v.StringSchema<undefined>;
146
+ readonly message: v.StringSchema<undefined>;
147
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
148
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
149
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
150
+ readonly message: v.StringSchema<undefined>;
151
+ }, undefined>, undefined>, undefined>;
152
+ }, undefined>;
153
+ }, undefined>;
154
+ readonly '5xx': v.ObjectSchema<{
155
+ readonly error: v.ObjectSchema<{
156
+ readonly code: v.StringSchema<undefined>;
157
+ readonly message: v.StringSchema<undefined>;
158
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
159
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
160
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
161
+ readonly message: v.StringSchema<undefined>;
162
+ }, undefined>, undefined>, undefined>;
163
+ }, undefined>;
164
+ }, undefined>;
165
+ readonly 204: typeof ContractNoBody;
166
+ };
167
+ };
168
+ export declare const skillSourceStatusContract: {
169
+ readonly method: "get";
170
+ readonly requestPathParamsSchema: v.ObjectSchema<{
171
+ id: v.StringSchema<undefined>;
172
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
173
+ readonly pathResolver: ({ id }: {
174
+ id: string;
175
+ }) => string;
176
+ readonly responsesByStatusCode: {
177
+ readonly '4xx': v.ObjectSchema<{
178
+ readonly error: v.ObjectSchema<{
179
+ readonly code: v.StringSchema<undefined>;
180
+ readonly message: v.StringSchema<undefined>;
181
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
182
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
183
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
184
+ readonly message: v.StringSchema<undefined>;
185
+ }, undefined>, undefined>, undefined>;
186
+ }, undefined>;
187
+ }, undefined>;
188
+ readonly '5xx': v.ObjectSchema<{
189
+ readonly error: v.ObjectSchema<{
190
+ readonly code: v.StringSchema<undefined>;
191
+ readonly message: v.StringSchema<undefined>;
192
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
193
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
194
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
+ readonly message: v.StringSchema<undefined>;
196
+ }, undefined>, undefined>, undefined>;
197
+ }, undefined>;
198
+ }, undefined>;
199
+ readonly 200: v.ObjectSchema<{
200
+ readonly changed: v.BooleanSchema<undefined>;
201
+ readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
202
+ readonly remoteCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
203
+ }, undefined>;
204
+ };
205
+ };
206
+ export declare const syncSkillSourceContract: {
207
+ readonly method: "post";
208
+ readonly requestPathParamsSchema: v.ObjectSchema<{
209
+ id: v.StringSchema<undefined>;
210
+ }, undefined> & import("@toad-contracts/core").StandardObjectKeysV1<unknown, unknown>;
211
+ readonly pathResolver: ({ id }: {
212
+ id: string;
213
+ }) => string;
214
+ readonly requestBodySchema: typeof ContractNoBody;
215
+ readonly responsesByStatusCode: {
216
+ readonly '4xx': v.ObjectSchema<{
217
+ readonly error: v.ObjectSchema<{
218
+ readonly code: v.StringSchema<undefined>;
219
+ readonly message: v.StringSchema<undefined>;
220
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
221
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
222
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
223
+ readonly message: v.StringSchema<undefined>;
224
+ }, undefined>, undefined>, undefined>;
225
+ }, undefined>;
226
+ }, undefined>;
227
+ readonly '5xx': v.ObjectSchema<{
228
+ readonly error: v.ObjectSchema<{
229
+ readonly code: v.StringSchema<undefined>;
230
+ readonly message: v.StringSchema<undefined>;
231
+ readonly details: v.OptionalSchema<v.UnknownSchema, undefined>;
232
+ readonly issues: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
233
+ readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
234
+ readonly message: v.StringSchema<undefined>;
235
+ }, undefined>, undefined>, undefined>;
236
+ }, undefined>;
237
+ }, undefined>;
238
+ readonly 200: v.ObjectSchema<{
239
+ readonly upserted: v.NumberSchema<undefined>;
240
+ readonly tombstoned: v.NumberSchema<undefined>;
241
+ readonly unchanged: v.NumberSchema<undefined>;
242
+ readonly lastSyncedCommit: v.NullableSchema<v.StringSchema<undefined>, undefined>;
243
+ }, undefined>;
244
+ };
245
+ };
246
+ //# sourceMappingURL=skill-library.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-library.d.ts","sourceRoot":"","sources":["../../src/routes/skill-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA2B5B,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAA;AAIF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKlC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAA"}
@@ -0,0 +1,55 @@
1
+ import { ContractNoBody, defineApiContract } from '@toad-contracts/valibot';
2
+ import * as v from 'valibot';
3
+ import { accountSkillSchema, linkSkillSourceSchema, skillSourceSchema, skillSourceStatusSchema, skillSyncResultSchema, } from '../skill-library.js';
4
+ import { errorResponses, singleStringParam } from './_shared.js';
5
+ // ---------------------------------------------------------------------------
6
+ // Repo-sourced Claude Skills route contracts. See SkillLibraryController in
7
+ // @cat-factory/server. Skills live in ONE tier (the account), so — unlike the
8
+ // fragment library — the controller is mounted only under `/accounts/:accountId`.
9
+ // Route literals are RELATIVE to that prefix; the accountId is read by the handler
10
+ // via its own param helper and is NOT a contract param.
11
+ //
12
+ // Skill ids are `src:<sourceId>:<dir>` — colon-bearing but never slash-bearing, so a
13
+ // plain `:skillId` (Hono's default `[^/]+`) matches them.
14
+ // ---------------------------------------------------------------------------
15
+ const accountSkillListSchema = v.array(accountSkillSchema);
16
+ const skillSourceListSchema = v.array(skillSourceSchema);
17
+ const sourceIdParams = singleStringParam('id');
18
+ // ---- skills (the account catalog, raw) ------------------------------------
19
+ export const listAccountSkillsContract = defineApiContract({
20
+ method: 'get',
21
+ pathResolver: () => '/skills',
22
+ responsesByStatusCode: { 200: accountSkillListSchema, ...errorResponses },
23
+ });
24
+ // ---- repo sources ---------------------------------------------------------
25
+ export const listSkillSourcesContract = defineApiContract({
26
+ method: 'get',
27
+ pathResolver: () => '/skill-sources',
28
+ responsesByStatusCode: { 200: skillSourceListSchema, ...errorResponses },
29
+ });
30
+ export const linkSkillSourceContract = defineApiContract({
31
+ method: 'post',
32
+ pathResolver: () => '/skill-sources',
33
+ requestBodySchema: linkSkillSourceSchema,
34
+ responsesByStatusCode: { 201: skillSourceSchema, ...errorResponses },
35
+ });
36
+ export const unlinkSkillSourceContract = defineApiContract({
37
+ method: 'delete',
38
+ requestPathParamsSchema: sourceIdParams,
39
+ pathResolver: ({ id }) => `/skill-sources/${id}`,
40
+ responsesByStatusCode: { 204: ContractNoBody, ...errorResponses },
41
+ });
42
+ export const skillSourceStatusContract = defineApiContract({
43
+ method: 'get',
44
+ requestPathParamsSchema: sourceIdParams,
45
+ pathResolver: ({ id }) => `/skill-sources/${id}/status`,
46
+ responsesByStatusCode: { 200: skillSourceStatusSchema, ...errorResponses },
47
+ });
48
+ export const syncSkillSourceContract = defineApiContract({
49
+ method: 'post',
50
+ requestPathParamsSchema: sourceIdParams,
51
+ pathResolver: ({ id }) => `/skill-sources/${id}/sync`,
52
+ requestBodySchema: ContractNoBody,
53
+ responsesByStatusCode: { 200: skillSyncResultSchema, ...errorResponses },
54
+ });
55
+ //# sourceMappingURL=skill-library.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skill-library.js","sourceRoot":"","sources":["../../src/routes/skill-library.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhE,8EAA8E;AAC9E,4EAA4E;AAC5E,8EAA8E;AAC9E,kFAAkF;AAClF,mFAAmF;AACnF,wDAAwD;AACxD,EAAE;AACF,qFAAqF;AACrF,0DAA0D;AAC1D,8EAA8E;AAE9E,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAA;AAC1D,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAA;AACxD,MAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;AAE9C,8EAA8E;AAE9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,SAAS;IAC7B,qBAAqB,EAAE,EAAE,GAAG,EAAE,sBAAsB,EAAE,GAAG,cAAc,EAAE;CAC1E,CAAC,CAAA;AAEF,8EAA8E;AAE9E,MAAM,CAAC,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACxD,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB;IACpC,qBAAqB,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE;CACzE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,GAAG,EAAE,CAAC,gBAAgB;IACpC,iBAAiB,EAAE,qBAAqB;IACxC,qBAAqB,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,cAAc,EAAE;CACrE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,QAAQ;IAChB,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,kBAAkB,EAAE,EAAE;IAChD,qBAAqB,EAAE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE;CAClE,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,iBAAiB,CAAC;IACzD,MAAM,EAAE,KAAK;IACb,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,kBAAkB,EAAE,SAAS;IACvD,qBAAqB,EAAE,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,cAAc,EAAE;CAC3E,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACvD,MAAM,EAAE,MAAM;IACd,uBAAuB,EAAE,cAAc;IACvC,YAAY,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,kBAAkB,EAAE,OAAO;IACrD,iBAAiB,EAAE,cAAc;IACjC,qBAAqB,EAAE,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,cAAc,EAAE;CACzE,CAAC,CAAA"}
@@ -573,7 +573,7 @@ export declare const createTaskFromIssueContract: {
573
573
  readonly createdAt: v.NumberSchema<undefined>;
574
574
  }, undefined>, undefined>, undefined>;
575
575
  readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
576
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
576
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
577
577
  readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
578
578
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
579
579
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -978,7 +978,7 @@ export declare const spawnEpicContract: {
978
978
  readonly createdAt: v.NumberSchema<undefined>;
979
979
  }, undefined>, undefined>, undefined>;
980
980
  readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
981
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
981
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
982
982
  readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
983
983
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
984
984
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1320,7 +1320,7 @@ export declare const spawnEpicContract: {
1320
1320
  readonly createdAt: v.NumberSchema<undefined>;
1321
1321
  }, undefined>, undefined>, undefined>;
1322
1322
  readonly moduleName: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1323
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
1323
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
1324
1324
  readonly taskTypeFields: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1325
1325
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1326
1326
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;