@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
@@ -110,7 +110,7 @@ export type InitiativePhase = v.InferOutput<typeof initiativePhaseSchema>;
110
110
  * Emitted by the planner (via the draft item) and/or enforced by a preset's `seedPlan`.
111
111
  */
112
112
  export declare const initiativeItemSpawnSchema: v.ObjectSchema<{
113
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
113
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
114
114
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
115
115
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
116
116
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -171,7 +171,7 @@ export declare const initiativeItemSchema: v.ObjectSchema<{
171
171
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
172
172
  /** Preset-authored spawn decoration stamped onto the spawned task block (slice 5). */
173
173
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
174
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
174
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
175
175
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
176
176
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
177
177
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -377,7 +377,7 @@ export declare const initiativeSchema: v.ObjectSchema<{
377
377
  readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
378
378
  /** Preset-authored spawn decoration stamped onto the spawned task block (slice 5). */
379
379
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
380
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
380
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
381
381
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
382
382
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
383
383
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -487,7 +487,7 @@ export declare const initiativeDraftItemSchema: v.ObjectSchema<{
487
487
  readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
488
488
  /** Preset-authored spawn decoration (a `seedPlan` may enforce/override it at ingest). */
489
489
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
490
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
490
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
491
491
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
492
492
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
493
493
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -555,7 +555,7 @@ export declare const initiativePlanDraftSchema: v.ObjectSchema<{
555
555
  readonly pipelineId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 80, undefined>]>, undefined>;
556
556
  /** Preset-authored spawn decoration (a `seedPlan` may enforce/override it at ingest). */
557
557
  readonly spawn: v.OptionalSchema<v.ObjectSchema<{
558
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
558
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
559
559
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
560
560
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
561
561
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -42,10 +42,10 @@ export type BlockLevel = v.InferOutput<typeof blockLevelSchema>;
42
42
  * block of a recurring-pipeline schedule, stamped with this type so the board renders
43
43
  * them consistently.
44
44
  */
45
- export declare const taskTypeSchema: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
45
+ export declare const taskTypeSchema: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
46
46
  export type TaskType = v.InferOutput<typeof taskTypeSchema>;
47
47
  /** The task types a human can pick in the create-task form (recurring is created via a schedule). */
48
- export declare const createTaskTypeSchema: v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>;
48
+ export declare const createTaskTypeSchema: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>;
49
49
  export type CreateTaskType = v.InferOutput<typeof createTaskTypeSchema>;
50
50
  /**
51
51
  * The kinds of document a `document` task can produce. Drives the document-authoring
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.d.ts","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAM5B,0EAA0E;AAC1E,eAAO,MAAM,QAAQ,iGAAqC,CAAA;AAE1D,8GAA8G;AAC9G,eAAO,MAAM,SAAS,2JAAkE,CAAA;AAExF,eAAO,MAAM,eAAe,mJAW1B,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,6EAA6D,CAAA;AAC7F,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CAAC,CAAA;AAErE,gGAAgG;AAChG,eAAO,MAAM,gBAAgB,YAAI,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAU,CAAA;AAEvF,eAAO,MAAM,iBAAiB,iGAO5B,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBA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recurring',
69
70
  ]);
70
71
  /** The task types a human can pick in the create-task form (recurring is created via a schedule). */
71
- export const createTaskTypeSchema = v.picklist(['feature', 'bug', 'document', 'spike', 'review']);
72
+ export const createTaskTypeSchema = v.picklist([
73
+ 'feature',
74
+ 'bug',
75
+ 'document',
76
+ 'spike',
77
+ 'review',
78
+ 'ralph',
79
+ ]);
72
80
  /**
73
81
  * The kinds of document a `document` task can produce. Drives the document-authoring
74
82
  * pipeline's prompts (each kind implies a structure: a PRD vs an RFC vs a runbook) and
@@ -1 +1 @@
1
- {"version":3,"file":"primitives.js","sourceRoot":"","sources":["../src/primitives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,+EAA+E;AAC/E,iFAAiF;AACjF,8BAA8B;AAE9B,0EAA0E;AAC1E,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;AAE1D,8GAA8G;AAC9G,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAA;AAExF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,QAAQ,CAAC;IACxC,UAAU;IACV,SAAS;IACT,SAAS;IACT,UAAU;IACV,KAAK;IACL,UAAU;IACV,OAAO;IACP,aAAa;IACb,UAAU;IACV,aAAa;CACd,CAAC,CAAA;AAGF;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAA;AAG7F,gGAAgG;AAChG,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,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IAC3E;;;;;;;OAOG;IACH,OAAO,EAAE,CAAC,CAAC,QAAQ,CACjB,CAAC,CAAC,IAAI,CACJ,CAAC,CAAC,MAAM,EAAE,EACV,CAAC,CAAC,IAAI,EAAE,EACR,CAAC,CAAC,KAAK,CAAC,8BAA8B,EAAE,kCAAkC,CAAC,EAC3E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EACd,CAAC,CAAC,SAAS,CAAC,GAAG,CAAC,CACjB,CACF;CACF,CAAC,CAAA;AAGF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;IACb,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;CACd,CAAC,CAAA;AAGF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;CACrC,CAAC,CAAA"}
@@ -90,7 +90,7 @@ export declare const publicTaskSchema: v.ObjectSchema<{
90
90
  readonly serviceId: v.StringSchema<undefined>;
91
91
  readonly title: v.StringSchema<undefined>;
92
92
  readonly description: v.StringSchema<undefined>;
93
- readonly taskType: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
93
+ readonly taskType: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
94
94
  readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
95
95
  /** 0..1 progress of the task's current run; 0 when not started. */
96
96
  readonly progress: v.NumberSchema<undefined>;
@@ -107,7 +107,7 @@ export declare const publicTaskListSchema: v.ObjectSchema<{
107
107
  readonly serviceId: v.StringSchema<undefined>;
108
108
  readonly title: v.StringSchema<undefined>;
109
109
  readonly description: v.StringSchema<undefined>;
110
- readonly taskType: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>;
110
+ readonly taskType: v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>;
111
111
  readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
112
112
  /** 0..1 progress of the task's current run; 0 when not started. */
113
113
  readonly progress: v.NumberSchema<undefined>;
@@ -128,7 +128,7 @@ export declare const createPublicTaskSchema: v.ObjectSchema<{
128
128
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
129
129
  readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
130
130
  /** The kind of work; omitted → `feature`. `recurring` is not creatable here. */
131
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
131
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
132
132
  }, undefined>;
133
133
  export type CreatePublicTaskInput = v.InferOutput<typeof createPublicTaskSchema>;
134
134
  /**
@@ -0,0 +1,84 @@
1
+ import * as v from 'valibot';
2
+ /**
3
+ * The harness-computed verdict of one ralph iteration's validation run. Produced by the
4
+ * executor-harness (it runs the command and reads the exit code) and carried back on the
5
+ * runner result → {@link AgentRunResult.ralphVerdict}; the engine reads it to decide
6
+ * done / retry / exhausted. It is deliberately NOT model output — that is the whole point
7
+ * of a programmatic exit condition. Lenient (`v.fallback`) so a malformed field degrades
8
+ * rather than discarding the whole verdict.
9
+ */
10
+ export declare const ralphVerdictSchema: v.ObjectSchema<{
11
+ /** Whether the validation command exited 0 (the completion criterion is met). */
12
+ readonly validationPassed: v.SchemaWithFallback<v.BooleanSchema<undefined>, false>;
13
+ /** The validation command's exit code (0 = pass). */
14
+ readonly exitCode: v.SchemaWithFallback<v.NumberSchema<undefined>, 1>;
15
+ /** A bounded tail of the validation command's combined output (for feedback + display). */
16
+ readonly validationOutputTail: v.SchemaWithFallback<v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>;
17
+ /** 1-based iteration number the harness ran this validation for. */
18
+ readonly iteration: v.SchemaWithFallback<v.OptionalSchema<v.NumberSchema<undefined>, undefined>, undefined>;
19
+ }, undefined>;
20
+ export type RalphVerdict = v.InferOutput<typeof ralphVerdictSchema>;
21
+ /** Parse-or-throw a harness ralph verdict (lenient — malformed fields degrade to defaults). */
22
+ export declare function parseRalphVerdict(value: unknown): RalphVerdict;
23
+ /**
24
+ * One recorded ralph iteration (append-only history on the step). Captures both what the
25
+ * iteration produced and how its validation ended, so the result view can show an
26
+ * inspectable timeline instead of a bare attempt count — the ralph analogue of
27
+ * `TesterAttempt` / `GateAttempt`.
28
+ */
29
+ export declare const ralphAttemptSchema: v.ObjectSchema<{
30
+ /** 1-based iteration number. */
31
+ readonly attempt: v.NumberSchema<undefined>;
32
+ /** Epoch ms when the iteration job finished. */
33
+ readonly at: v.NumberSchema<undefined>;
34
+ /** Whether this iteration's validation command passed (exit 0). */
35
+ readonly validationPassed: v.BooleanSchema<undefined>;
36
+ /** The validation command's exit code for this iteration. */
37
+ readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
38
+ /** A bounded tail of the validation output for this iteration. */
39
+ readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
40
+ /** The iteration's own account of what it changed (its prose output), for the timeline. */
41
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
42
+ }, undefined>;
43
+ export type RalphAttempt = v.InferOutput<typeof ralphAttemptSchema>;
44
+ /**
45
+ * Live loop state for a ralph step, persisted on {@link PipelineStep.ralph} (rides the run's
46
+ * `detail` JSON blob — no migration). Seeded at step start from the block's per-task agent
47
+ * config (the validation command + iteration budget), then mutated each iteration by the
48
+ * engine's `RalphController`. Because it lives on the persisted step, both durable drivers
49
+ * and both stale-run sweepers re-drive a mid-loop run from exactly this state after a
50
+ * restart — the "survives restarts" requirement, for free.
51
+ */
52
+ export declare const ralphStepStateSchema: v.ObjectSchema<{
53
+ /** The loop only ever iterates; kept as a field for symmetry with gate/test phases. */
54
+ readonly phase: v.PicklistSchema<["iterating"], undefined>;
55
+ /** How many iterations have been dispatched so far. */
56
+ readonly attempts: v.NumberSchema<undefined>;
57
+ /** Ceiling on iterations (the anti-runaway budget), frozen from agent config at step start. */
58
+ readonly maxIterations: v.NumberSchema<undefined>;
59
+ /** The programmatic completion criterion: a shell command the harness runs (exit 0 = done). */
60
+ readonly validationCommand: v.StringSchema<undefined>;
61
+ /** Repo-relative path of the append-only progress log the harness maintains on the branch. */
62
+ readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
63
+ /** The most recent iteration's validation exit code (for the UI). */
64
+ readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
65
+ /** A bounded tail of the most recent iteration's validation output. */
66
+ readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
67
+ /** Append-only history of the iterations this loop ran. */
68
+ readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
69
+ /** 1-based iteration number. */
70
+ readonly attempt: v.NumberSchema<undefined>;
71
+ /** Epoch ms when the iteration job finished. */
72
+ readonly at: v.NumberSchema<undefined>;
73
+ /** Whether this iteration's validation command passed (exit 0). */
74
+ readonly validationPassed: v.BooleanSchema<undefined>;
75
+ /** The validation command's exit code for this iteration. */
76
+ readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
77
+ /** A bounded tail of the validation output for this iteration. */
78
+ readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
79
+ /** The iteration's own account of what it changed (its prose output), for the timeline. */
80
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
81
+ }, undefined>, undefined>, undefined>, undefined>;
82
+ }, undefined>;
83
+ export type RalphStepState = v.InferOutput<typeof ralphStepStateSchema>;
84
+ //# sourceMappingURL=ralph.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ralph.d.ts","sourceRoot":"","sources":["../src/ralph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAU5B;;;;;;;GAOG;AACH,eAAO,MAAM,kBAAkB;IAC7B,iFAAiF;;IAEjF,qDAAqD;;IAErD,2FAA2F;;IAE3F,oEAAoE;;aAEpE,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE,+FAA+F;AAC/F,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,CAE9D;AAED;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB;IAC7B,gCAAgC;;IAEhC,gDAAgD;;IAEhD,mEAAmE;;IAEnE,6DAA6D;;IAE7D,kEAAkE;;IAElE,2FAA2F;;aAE3F,CAAA;AACF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEnE;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB;IAC/B,uFAAuF;;IAEvF,uDAAuD;;IAEvD,+FAA+F;;IAE/F,+FAA+F;;IAE/F,8FAA8F;;IAE9F,qEAAqE;;IAErE,uEAAuE;;IAEvE,2DAA2D;;QAtC3D,gCAAgC;;QAEhC,gDAAgD;;QAEhD,mEAAmE;;QAEnE,6DAA6D;;QAE7D,kEAAkE;;QAElE,2FAA2F;;;aA8B3F,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
package/dist/ralph.js ADDED
@@ -0,0 +1,77 @@
1
+ import * as v from 'valibot';
2
+ // The "Ralph loop" wire contracts. A ralph step runs a persistent retry-until-done loop: a
3
+ // fresh-context coding iteration works the task spec, then the HARNESS runs a configured
4
+ // programmatic validation command against the checkout and reports its exit code — the
5
+ // authoritative completion criterion (exit 0 = done), never the model's self-report. The
6
+ // engine loops the iteration until the command passes or a per-task iteration budget is
7
+ // spent. The loop state rides `PipelineStep.ralph` (persisted inside the run's `detail`
8
+ // blob, so it survives restarts with no dedicated table), mirroring `gate`/`test`.
9
+ /**
10
+ * The harness-computed verdict of one ralph iteration's validation run. Produced by the
11
+ * executor-harness (it runs the command and reads the exit code) and carried back on the
12
+ * runner result → {@link AgentRunResult.ralphVerdict}; the engine reads it to decide
13
+ * done / retry / exhausted. It is deliberately NOT model output — that is the whole point
14
+ * of a programmatic exit condition. Lenient (`v.fallback`) so a malformed field degrades
15
+ * rather than discarding the whole verdict.
16
+ */
17
+ export const ralphVerdictSchema = v.object({
18
+ /** Whether the validation command exited 0 (the completion criterion is met). */
19
+ validationPassed: v.fallback(v.boolean(), false),
20
+ /** The validation command's exit code (0 = pass). */
21
+ exitCode: v.fallback(v.number(), 1),
22
+ /** A bounded tail of the validation command's combined output (for feedback + display). */
23
+ validationOutputTail: v.fallback(v.optional(v.string()), undefined),
24
+ /** 1-based iteration number the harness ran this validation for. */
25
+ iteration: v.fallback(v.optional(v.number()), undefined),
26
+ });
27
+ /** Parse-or-throw a harness ralph verdict (lenient — malformed fields degrade to defaults). */
28
+ export function parseRalphVerdict(value) {
29
+ return v.parse(ralphVerdictSchema, value);
30
+ }
31
+ /**
32
+ * One recorded ralph iteration (append-only history on the step). Captures both what the
33
+ * iteration produced and how its validation ended, so the result view can show an
34
+ * inspectable timeline instead of a bare attempt count — the ralph analogue of
35
+ * `TesterAttempt` / `GateAttempt`.
36
+ */
37
+ export const ralphAttemptSchema = v.object({
38
+ /** 1-based iteration number. */
39
+ attempt: v.number(),
40
+ /** Epoch ms when the iteration job finished. */
41
+ at: v.number(),
42
+ /** Whether this iteration's validation command passed (exit 0). */
43
+ validationPassed: v.boolean(),
44
+ /** The validation command's exit code for this iteration. */
45
+ exitCode: v.optional(v.nullable(v.number())),
46
+ /** A bounded tail of the validation output for this iteration. */
47
+ outputTail: v.optional(v.nullable(v.string())),
48
+ /** The iteration's own account of what it changed (its prose output), for the timeline. */
49
+ summary: v.optional(v.nullable(v.string())),
50
+ });
51
+ /**
52
+ * Live loop state for a ralph step, persisted on {@link PipelineStep.ralph} (rides the run's
53
+ * `detail` JSON blob — no migration). Seeded at step start from the block's per-task agent
54
+ * config (the validation command + iteration budget), then mutated each iteration by the
55
+ * engine's `RalphController`. Because it lives on the persisted step, both durable drivers
56
+ * and both stale-run sweepers re-drive a mid-loop run from exactly this state after a
57
+ * restart — the "survives restarts" requirement, for free.
58
+ */
59
+ export const ralphStepStateSchema = v.object({
60
+ /** The loop only ever iterates; kept as a field for symmetry with gate/test phases. */
61
+ phase: v.picklist(['iterating']),
62
+ /** How many iterations have been dispatched so far. */
63
+ attempts: v.number(),
64
+ /** Ceiling on iterations (the anti-runaway budget), frozen from agent config at step start. */
65
+ maxIterations: v.number(),
66
+ /** The programmatic completion criterion: a shell command the harness runs (exit 0 = done). */
67
+ validationCommand: v.string(),
68
+ /** Repo-relative path of the append-only progress log the harness maintains on the branch. */
69
+ progressPath: v.optional(v.nullable(v.string())),
70
+ /** The most recent iteration's validation exit code (for the UI). */
71
+ lastExitCode: v.optional(v.nullable(v.number())),
72
+ /** A bounded tail of the most recent iteration's validation output. */
73
+ lastValidationTail: v.optional(v.nullable(v.string())),
74
+ /** Append-only history of the iterations this loop ran. */
75
+ attemptLog: v.optional(v.nullable(v.array(ralphAttemptSchema))),
76
+ });
77
+ //# sourceMappingURL=ralph.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ralph.js","sourceRoot":"","sources":["../src/ralph.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAE5B,2FAA2F;AAC3F,yFAAyF;AACzF,uFAAuF;AACvF,yFAAyF;AACzF,wFAAwF;AACxF,wFAAwF;AACxF,mFAAmF;AAEnF;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,iFAAiF;IACjF,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;IAChD,qDAAqD;IACrD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACnC,2FAA2F;IAC3F,oBAAoB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;IACnE,oEAAoE;IACpE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,SAAS,CAAC;CACzD,CAAC,CAAA;AAGF,+FAA+F;AAC/F,MAAM,UAAU,iBAAiB,CAAC,KAAc;IAC9C,OAAO,CAAC,CAAC,KAAK,CAAC,kBAAkB,EAAE,KAAK,CAAC,CAAA;AAC3C,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,C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AAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACtD,2DAA2D;IAC3D,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC;CAChE,CAAC,CAAA"}
@@ -90,7 +90,7 @@ export declare const addTaskSchema: v.ObjectSchema<{
90
90
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
91
91
  readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
92
92
  readonly epicId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>]>, undefined>;
93
- readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
93
+ readonly taskType: v.OptionalSchema<v.PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
94
94
  readonly taskTypeFields: v.OptionalSchema<v.ObjectSchema<{
95
95
  readonly severity: v.OptionalSchema<v.PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
96
96
  readonly stepsToReproduce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1,4 +1,4 @@
1
- export declare const RESULT_VIEW_IDS: readonly ['requirements-review', 'clarity-review', 'brainstorm', 'tester', 'human-test', 'visual-confirm', 'gate', 'consensus-session', 'generic-structured', 'service-spec', 'follow-ups', 'merger', 'initiative-tracker', 'initiative-planning', 'doc-interview', 'fork-decision', 'pr-review'];
1
+ export declare const RESULT_VIEW_IDS: readonly ['requirements-review', 'clarity-review', 'brainstorm', 'tester', 'human-test', 'visual-confirm', 'gate', 'consensus-session', 'generic-structured', 'service-spec', 'follow-ups', 'merger', 'initiative-tracker', 'initiative-planning', 'doc-interview', 'fork-decision', 'pr-review', 'ralph-loop'];
2
2
  export type ResultViewId = (typeof RESULT_VIEW_IDS)[number];
3
3
  /** Set form, for `O(1)` membership checks (e.g. boot-time registration validation). */
4
4
  export declare const RESULT_VIEW_ID_SET: ReadonlySet<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"result-views.d.ts","sourceRoot":"","sources":["../src/result-views.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,eAAe,YAC1B,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,WAAW,CACH,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAA4B,CAAA"}
1
+ {"version":3,"file":"result-views.d.ts","sourceRoot":"","sources":["../src/result-views.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,eAAe,YAC1B,qBAAqB,EACrB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,MAAM,EACN,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,oBAAoB,EACpB,qBAAqB,EACrB,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,CACJ,CAAA;AAEV,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE3D,uFAAuF;AACvF,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,MAAM,CAA4B,CAAA"}
@@ -31,6 +31,7 @@ export const RESULT_VIEW_IDS = [
31
31
  'doc-interview',
32
32
  'fork-decision',
33
33
  'pr-review',
34
+ 'ralph-loop',
34
35
  ];
35
36
  /** Set form, for `O(1)` membership checks (e.g. boot-time registration validation). */
36
37
  export const RESULT_VIEW_ID_SET = new Set(RESULT_VIEW_IDS);
@@ -1 +1 @@
1
- {"version":3,"file":"result-views.js","sourceRoot":"","sources":["../src/result-views.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,oFAAoF;AACpF,EAAE;AACF,8EAA8E;AAC9E,yFAAyF;AACzF,2FAA2F;AAC3F,0FAA0F;AAC1F,qFAAqF;AACrF,4BAA4B;AAC5B,mEAAmE;AACnE,EAAE;AACF,0FAA0F;AAC1F,0EAA0E;AAC1E,8EAA8E;AAE9E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,qBAAqB;IACrB,gBAAgB;IAChB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,gBAAgB;IAChB,MAAM;IACN,mBAAmB;IACnB,oBAAoB;IACpB,cAAc;IACd,YAAY;IACZ,QAAQ;IACR,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,WAAW;CACH,CAAA;AAIV,uFAAuF;AACvF,MAAM,CAAC,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,eAAe,CAAC,CAAA"}
1
+ {"version":3,"file":"result-views.js","sourceRoot":"","sources":["../src/result-views.ts"],"names":[],"mappings":"AAAA,8EAA8E;AAC9E,4EAA4E;AAC5E,oFAAoF;AACpF,EAAE;AACF,8EAA8E;AAC9E,yFAAyF;AACzF,2FAA2F;AAC3F,0FAA0F;AAC1F,qFAAqF;AACrF,4BAA4B;AAC5B,mEAAmE;AACnE,EAAE;AACF,0FAA0F;AAC1F,0EAA0E;AAC1E,8EAA8E;AAE9E,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,qBAAqB;IACrB,gBAAgB;IAChB,YAAY;IACZ,QAAQ;IACR,YAAY;IACZ,gBAAgB;IAChB,MAAM;IACN,mBAAmB;IACnB,oBAAoB;IACpB,cAAc;IACd,YAAY;IACZ,QAAQ;IACR,oBAAoB;IACpB,qBAAqB;IACrB,eAAe;IACf,eAAe;IACf,WAAW;IACX,YAAY;CACJ,CAAA;AAIV,uFAAuF;AACvF,MAAM,CAAC,MAAM,kBAAkB,GAAwB,IAAI,GAAG,CAAC,eAAe,CAAC,CAAA"}
@@ -433,6 +433,23 @@ export declare const retryAgentRunContract: {
433
433
  }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
434
434
  readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
435
435
  }, undefined>, undefined>, undefined>;
436
+ readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
437
+ readonly phase: v.PicklistSchema<["iterating"], undefined>;
438
+ readonly attempts: v.NumberSchema<undefined>;
439
+ readonly maxIterations: v.NumberSchema<undefined>;
440
+ readonly validationCommand: v.StringSchema<undefined>;
441
+ readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
442
+ readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
443
+ readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
444
+ readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
445
+ readonly attempt: v.NumberSchema<undefined>;
446
+ readonly at: v.NumberSchema<undefined>;
447
+ readonly validationPassed: v.BooleanSchema<undefined>;
448
+ readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
449
+ readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
450
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
451
+ }, undefined>, undefined>, undefined>, undefined>;
452
+ }, undefined>, undefined>, undefined>;
436
453
  readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
437
454
  readonly messageId: v.StringSchema<undefined>;
438
455
  }, undefined>, undefined>, undefined>;
@@ -1290,6 +1307,23 @@ export declare const stopAgentRunContract: {
1290
1307
  }, "Provide exactly one of forkId or custom.">]>, undefined>, undefined>;
1291
1308
  readonly model: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1292
1309
  }, undefined>, undefined>, undefined>;
1310
+ readonly ralph: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1311
+ readonly phase: v.PicklistSchema<["iterating"], undefined>;
1312
+ readonly attempts: v.NumberSchema<undefined>;
1313
+ readonly maxIterations: v.NumberSchema<undefined>;
1314
+ readonly validationCommand: v.StringSchema<undefined>;
1315
+ readonly progressPath: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1316
+ readonly lastExitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
1317
+ readonly lastValidationTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1318
+ readonly attemptLog: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
1319
+ readonly attempt: v.NumberSchema<undefined>;
1320
+ readonly at: v.NumberSchema<undefined>;
1321
+ readonly validationPassed: v.BooleanSchema<undefined>;
1322
+ readonly exitCode: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
1323
+ readonly outputTail: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1324
+ readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1325
+ }, undefined>, undefined>, undefined>, undefined>;
1326
+ }, undefined>, undefined>, undefined>;
1293
1327
  readonly pendingForkChat: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
1294
1328
  readonly messageId: v.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAA"}
@@ -64,7 +64,7 @@ export declare const addFrameContract: {
64
64
  readonly createdAt: import("valibot").NumberSchema<undefined>;
65
65
  }, undefined>, undefined>, undefined>;
66
66
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
67
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
67
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
68
68
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
69
69
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
70
70
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -444,7 +444,7 @@ export declare const addServiceFromRepoContract: {
444
444
  readonly createdAt: import("valibot").NumberSchema<undefined>;
445
445
  }, undefined>, undefined>, undefined>;
446
446
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
447
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
447
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
448
448
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
449
449
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
450
450
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -768,7 +768,7 @@ export declare const addTaskContract: {
768
768
  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>]>;
769
769
  readonly description: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").TrimAction, import("valibot").MaxLengthAction<string, 2000, undefined>]>, undefined>;
770
770
  readonly epicId: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MinLengthAction<string, 1, undefined>]>, undefined>;
771
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review"], undefined>, undefined>;
771
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph"], undefined>, undefined>;
772
772
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").ObjectSchema<{
773
773
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
774
774
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -854,7 +854,7 @@ export declare const addTaskContract: {
854
854
  readonly createdAt: import("valibot").NumberSchema<undefined>;
855
855
  }, undefined>, undefined>, undefined>;
856
856
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
857
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
857
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
858
858
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
859
859
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
860
860
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1236,7 +1236,7 @@ export declare const addModuleContract: {
1236
1236
  readonly createdAt: import("valibot").NumberSchema<undefined>;
1237
1237
  }, undefined>, undefined>, undefined>;
1238
1238
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
1239
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
1239
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
1240
1240
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1241
1241
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1242
1242
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1615,7 +1615,7 @@ export declare const addEpicContract: {
1615
1615
  readonly createdAt: import("valibot").NumberSchema<undefined>;
1616
1616
  }, undefined>, undefined>, undefined>;
1617
1617
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
1618
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
1618
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
1619
1619
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1620
1620
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1621
1621
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -1993,7 +1993,7 @@ export declare const assignEpicContract: {
1993
1993
  readonly createdAt: import("valibot").NumberSchema<undefined>;
1994
1994
  }, undefined>, undefined>, undefined>;
1995
1995
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
1996
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
1996
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
1997
1997
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
1998
1998
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
1999
1999
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -4297,7 +4297,7 @@ export declare const updateBlockContract: {
4297
4297
  readonly createdAt: import("valibot").NumberSchema<undefined>;
4298
4298
  }, undefined>, undefined>, undefined>;
4299
4299
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
4300
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
4300
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
4301
4301
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
4302
4302
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
4303
4303
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -4678,7 +4678,7 @@ export declare const moveBlockContract: {
4678
4678
  readonly createdAt: import("valibot").NumberSchema<undefined>;
4679
4679
  }, undefined>, undefined>, undefined>;
4680
4680
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
4681
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
4681
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
4682
4682
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
4683
4683
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
4684
4684
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -5060,7 +5060,7 @@ export declare const reparentBlockContract: {
5060
5060
  readonly createdAt: import("valibot").NumberSchema<undefined>;
5061
5061
  }, undefined>, undefined>, undefined>;
5062
5062
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
5063
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
5063
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
5064
5064
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
5065
5065
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
5066
5066
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -5470,7 +5470,7 @@ export declare const archiveBlockContract: {
5470
5470
  readonly createdAt: import("valibot").NumberSchema<undefined>;
5471
5471
  }, undefined>, undefined>, undefined>;
5472
5472
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
5473
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
5473
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
5474
5474
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
5475
5475
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
5476
5476
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -5846,7 +5846,7 @@ export declare const restoreBlockContract: {
5846
5846
  readonly createdAt: import("valibot").NumberSchema<undefined>;
5847
5847
  }, undefined>, undefined>, undefined>;
5848
5848
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
5849
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
5849
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
5850
5850
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
5851
5851
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
5852
5852
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;
@@ -6224,7 +6224,7 @@ export declare const toggleDependencyContract: {
6224
6224
  readonly createdAt: import("valibot").NumberSchema<undefined>;
6225
6225
  }, undefined>, undefined>, undefined>;
6226
6226
  readonly moduleName: import("valibot").OptionalSchema<import("valibot").StringSchema<undefined>, undefined>;
6227
- readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "recurring"], undefined>, undefined>;
6227
+ readonly taskType: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["feature", "bug", "document", "spike", "review", "ralph", "recurring"], undefined>, undefined>;
6228
6228
  readonly taskTypeFields: import("valibot").OptionalSchema<import("valibot").NullableSchema<import("valibot").ObjectSchema<{
6229
6229
  readonly severity: import("valibot").OptionalSchema<import("valibot").PicklistSchema<["low", "medium", "high", "critical"], undefined>, undefined>;
6230
6230
  readonly stepsToReproduce: import("valibot").OptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").MaxLengthAction<string, 4000, undefined>]>, undefined>;