@cat-factory/contracts 0.95.0 → 0.97.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities.d.ts +166 -3
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +64 -1
- package/dist/entities.js.map +1 -1
- package/dist/initiative.d.ts +67 -0
- package/dist/initiative.d.ts.map +1 -1
- package/dist/initiative.js +43 -0
- package/dist/initiative.js.map +1 -1
- package/dist/merge.d.ts +4 -1
- package/dist/merge.d.ts.map +1 -1
- package/dist/merge.js +4 -0
- package/dist/merge.js.map +1 -1
- package/dist/notifications.d.ts +16 -0
- package/dist/notifications.d.ts.map +1 -1
- package/dist/notifications.js +8 -0
- package/dist/notifications.js.map +1 -1
- package/dist/primitives.d.ts +38 -0
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +57 -0
- package/dist/primitives.js.map +1 -1
- package/dist/recurring.d.ts +119 -0
- package/dist/recurring.d.ts.map +1 -1
- package/dist/recurring.js +42 -0
- package/dist/recurring.js.map +1 -1
- package/dist/requests.d.ts +11 -0
- package/dist/requests.d.ts.map +1 -1
- package/dist/routes/agent-runs.d.ts +16 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/board.d.ts +211 -0
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +104 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +8 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +40 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/initiative.d.ts +564 -0
- package/dist/routes/initiative.d.ts.map +1 -1
- package/dist/routes/initiative.js +40 -2
- package/dist/routes/initiative.js.map +1 -1
- package/dist/routes/notifications.d.ts +6 -0
- package/dist/routes/notifications.d.ts.map +1 -1
- package/dist/routes/recurring.d.ts +84 -0
- package/dist/routes/recurring.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +60 -0
- package/dist/routes/tasks.d.ts.map +1 -1
- package/dist/routes/visual-confirm.d.ts +24 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +88 -0
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +44 -0
- package/dist/snapshot.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/recurring.d.ts
CHANGED
|
@@ -2,6 +2,41 @@ import * as v from 'valibot';
|
|
|
2
2
|
/** Template a schedule was created from; drives the seeded block description. */
|
|
3
3
|
export declare const scheduleTemplateSchema: v.PicklistSchema<["dep-update", "tech-debt", "custom"], undefined>;
|
|
4
4
|
export type ScheduleTemplate = v.InferOutput<typeof scheduleTemplateSchema>;
|
|
5
|
+
/**
|
|
6
|
+
* Issue-intake configuration for a schedule whose pipeline pulls work from the
|
|
7
|
+
* workspace's issue tracker (the `bug-intake` step of the bug-triage pipeline).
|
|
8
|
+
* The pipeline stays generic; WHICH tracker board and WHICH predicates are
|
|
9
|
+
* per-schedule. Credentials are the workspace's existing task connection — this
|
|
10
|
+
* carries only the scope + filters.
|
|
11
|
+
*/
|
|
12
|
+
export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
13
|
+
/** Which connected task source the intake searches. */
|
|
14
|
+
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
15
|
+
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
16
|
+
readonly board: v.ObjectSchema<{
|
|
17
|
+
/** Jira project key, e.g. `PROJ`. */
|
|
18
|
+
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
19
|
+
/** Linear team id (UUID). */
|
|
20
|
+
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
21
|
+
/** GitHub repository as `owner/name`. */
|
|
22
|
+
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
/** Which open issues qualify. All present predicates must match. */
|
|
25
|
+
readonly predicates: v.ObjectSchema<{
|
|
26
|
+
/** Substring that must appear in the issue title. */
|
|
27
|
+
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
28
|
+
/** Label(s) that must ALL be present on the issue. */
|
|
29
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
30
|
+
/** Issue type name (Jira issue type / GitHub org issue type). Intake defaults to `bug`. */
|
|
31
|
+
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* GitHub only: the label applied to mark a picked-up issue in-progress (GitHub
|
|
35
|
+
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
36
|
+
*/
|
|
37
|
+
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
export type IssueIntakeConfig = v.InferOutput<typeof issueIntakeConfigSchema>;
|
|
5
40
|
/**
|
|
6
41
|
* How often a schedule fires and when it is allowed to. `intervalHours` is the
|
|
7
42
|
* base cadence; `weekdays` (0=Sunday..6=Saturday; empty = every day) and the
|
|
@@ -60,6 +95,34 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
60
95
|
}, undefined>;
|
|
61
96
|
/** Manual-only: never auto-fired by the sweeper; may use an individual-usage model. */
|
|
62
97
|
readonly onDemand: v.BooleanSchema<undefined>;
|
|
98
|
+
/** Issue-intake scope + predicates, for a pipeline with a `bug-intake` step. */
|
|
99
|
+
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
100
|
+
/** Which connected task source the intake searches. */
|
|
101
|
+
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
102
|
+
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
103
|
+
readonly board: v.ObjectSchema<{
|
|
104
|
+
/** Jira project key, e.g. `PROJ`. */
|
|
105
|
+
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
106
|
+
/** Linear team id (UUID). */
|
|
107
|
+
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
108
|
+
/** GitHub repository as `owner/name`. */
|
|
109
|
+
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
110
|
+
}, undefined>;
|
|
111
|
+
/** Which open issues qualify. All present predicates must match. */
|
|
112
|
+
readonly predicates: v.ObjectSchema<{
|
|
113
|
+
/** Substring that must appear in the issue title. */
|
|
114
|
+
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
115
|
+
/** Label(s) that must ALL be present on the issue. */
|
|
116
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
117
|
+
/** Issue type name (Jira issue type / GitHub org issue type). Intake defaults to `bug`. */
|
|
118
|
+
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
119
|
+
}, undefined>;
|
|
120
|
+
/**
|
|
121
|
+
* GitHub only: the label applied to mark a picked-up issue in-progress (GitHub
|
|
122
|
+
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
123
|
+
*/
|
|
124
|
+
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
125
|
+
}, undefined>, undefined>;
|
|
63
126
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
64
127
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
65
128
|
readonly nextRunAt: v.NumberSchema<undefined>;
|
|
@@ -105,6 +168,34 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
105
168
|
* use an individual-usage subscription model (unlocked per run-now by the initiator).
|
|
106
169
|
*/
|
|
107
170
|
readonly onDemand: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
171
|
+
/** Issue-intake scope + predicates (required by Phase E's validation for a `bug-intake` pipeline). */
|
|
172
|
+
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
173
|
+
/** Which connected task source the intake searches. */
|
|
174
|
+
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
175
|
+
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
176
|
+
readonly board: v.ObjectSchema<{
|
|
177
|
+
/** Jira project key, e.g. `PROJ`. */
|
|
178
|
+
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
179
|
+
/** Linear team id (UUID). */
|
|
180
|
+
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
181
|
+
/** GitHub repository as `owner/name`. */
|
|
182
|
+
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
183
|
+
}, undefined>;
|
|
184
|
+
/** Which open issues qualify. All present predicates must match. */
|
|
185
|
+
readonly predicates: v.ObjectSchema<{
|
|
186
|
+
/** Substring that must appear in the issue title. */
|
|
187
|
+
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
188
|
+
/** Label(s) that must ALL be present on the issue. */
|
|
189
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
190
|
+
/** Issue type name (Jira issue type / GitHub org issue type). Intake defaults to `bug`. */
|
|
191
|
+
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
192
|
+
}, undefined>;
|
|
193
|
+
/**
|
|
194
|
+
* GitHub only: the label applied to mark a picked-up issue in-progress (GitHub
|
|
195
|
+
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
196
|
+
*/
|
|
197
|
+
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
198
|
+
}, undefined>, undefined>;
|
|
108
199
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
109
200
|
/**
|
|
110
201
|
* The prompt/description for the reused on-board task block — the same free-text a
|
|
@@ -129,6 +220,34 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
129
220
|
/** IANA timezone the weekday/hour window is evaluated in. */
|
|
130
221
|
readonly timezone: v.StringSchema<undefined>;
|
|
131
222
|
}, undefined>, undefined>;
|
|
223
|
+
/** New intake config, or null to clear it. Omitted ⇒ unchanged. */
|
|
224
|
+
readonly issueIntake: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
225
|
+
/** Which connected task source the intake searches. */
|
|
226
|
+
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
227
|
+
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
228
|
+
readonly board: v.ObjectSchema<{
|
|
229
|
+
/** Jira project key, e.g. `PROJ`. */
|
|
230
|
+
readonly jiraProjectKey: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
231
|
+
/** Linear team id (UUID). */
|
|
232
|
+
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
233
|
+
/** GitHub repository as `owner/name`. */
|
|
234
|
+
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
/** Which open issues qualify. All present predicates must match. */
|
|
237
|
+
readonly predicates: v.ObjectSchema<{
|
|
238
|
+
/** Substring that must appear in the issue title. */
|
|
239
|
+
readonly titleFragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
240
|
+
/** Label(s) that must ALL be present on the issue. */
|
|
241
|
+
readonly labels: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>, undefined>;
|
|
242
|
+
/** Issue type name (Jira issue type / GitHub org issue type). Intake defaults to `bug`. */
|
|
243
|
+
readonly issueType: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
244
|
+
}, undefined>;
|
|
245
|
+
/**
|
|
246
|
+
* GitHub only: the label applied to mark a picked-up issue in-progress (GitHub
|
|
247
|
+
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
248
|
+
*/
|
|
249
|
+
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
250
|
+
}, undefined>, undefined>, undefined>;
|
|
132
251
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
133
252
|
}, undefined>;
|
|
134
253
|
export type UpdateScheduleInput = v.InferOutput<typeof updateScheduleSchema>;
|
package/dist/recurring.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurring.d.ts","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"recurring.d.ts","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAkB5B,iFAAiF;AACjF,eAAO,MAAM,sBAAsB,oEAAoD,CAAA;AACvF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB;IAClC,uDAAuD;;IAEvD,wFAAwF;;QAEtF,qCAAqC;;QAErC,6BAA6B;;QAE7B,yCAAyC;;;IAG3C,oEAAoE;;QAElE,qDAAqD;;QAErD,sDAAsD;;QAEtD,2FAA2F;;;IAG7F;;;OAGG;;aAEH,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAK7E;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB;;IAE3B,qDAAqD;;IAErD,qFAAqF;;IAErF,mFAAmF;;IAEnF,6DAA6D;;aAE7D,CAAA;AACF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAE/D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,sBAAsB;;IAEjC;;;;OAIG;;;;;;;;;QA9BH,qDAAqD;;QAErD,qFAAqF;;QAErF,mFAAmF;;QAEnF,6DAA6D;;;IAgC7D,uFAAuF;;IAEvF,gFA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AAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/recurring.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
+
import { taskSourceKindSchema } from './tasks.js';
|
|
2
3
|
// ---------------------------------------------------------------------------
|
|
3
4
|
// Recurring-pipeline wire contracts. A *pipeline schedule* attaches a reusable
|
|
4
5
|
// pipeline to a service (a `frame` block) and re-runs it on a recurring cadence —
|
|
@@ -15,6 +16,41 @@ import * as v from 'valibot';
|
|
|
15
16
|
// ---------------------------------------------------------------------------
|
|
16
17
|
/** Template a schedule was created from; drives the seeded block description. */
|
|
17
18
|
export const scheduleTemplateSchema = v.picklist(['dep-update', 'tech-debt', 'custom']);
|
|
19
|
+
const intakePredicateStringSchema = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(200));
|
|
20
|
+
/**
|
|
21
|
+
* Issue-intake configuration for a schedule whose pipeline pulls work from the
|
|
22
|
+
* workspace's issue tracker (the `bug-intake` step of the bug-triage pipeline).
|
|
23
|
+
* The pipeline stays generic; WHICH tracker board and WHICH predicates are
|
|
24
|
+
* per-schedule. Credentials are the workspace's existing task connection — this
|
|
25
|
+
* carries only the scope + filters.
|
|
26
|
+
*/
|
|
27
|
+
export const issueIntakeConfigSchema = v.object({
|
|
28
|
+
/** Which connected task source the intake searches. */
|
|
29
|
+
source: taskSourceKindSchema,
|
|
30
|
+
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
31
|
+
board: v.object({
|
|
32
|
+
/** Jira project key, e.g. `PROJ`. */
|
|
33
|
+
jiraProjectKey: v.optional(intakePredicateStringSchema),
|
|
34
|
+
/** Linear team id (UUID). */
|
|
35
|
+
linearTeamId: v.optional(intakePredicateStringSchema),
|
|
36
|
+
/** GitHub repository as `owner/name`. */
|
|
37
|
+
githubRepo: v.optional(intakePredicateStringSchema),
|
|
38
|
+
}),
|
|
39
|
+
/** Which open issues qualify. All present predicates must match. */
|
|
40
|
+
predicates: v.object({
|
|
41
|
+
/** Substring that must appear in the issue title. */
|
|
42
|
+
titleFragment: v.optional(intakePredicateStringSchema),
|
|
43
|
+
/** Label(s) that must ALL be present on the issue. */
|
|
44
|
+
labels: v.optional(v.array(intakePredicateStringSchema)),
|
|
45
|
+
/** Issue type name (Jira issue type / GitHub org issue type). Intake defaults to `bug`. */
|
|
46
|
+
issueType: v.optional(intakePredicateStringSchema),
|
|
47
|
+
}),
|
|
48
|
+
/**
|
|
49
|
+
* GitHub only: the label applied to mark a picked-up issue in-progress (GitHub
|
|
50
|
+
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
51
|
+
*/
|
|
52
|
+
inProgressLabel: v.optional(intakePredicateStringSchema),
|
|
53
|
+
});
|
|
18
54
|
const hourOfDaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(23));
|
|
19
55
|
const weekdaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(6));
|
|
20
56
|
/**
|
|
@@ -64,6 +100,8 @@ export const pipelineScheduleSchema = v.object({
|
|
|
64
100
|
recurrence: recurrenceSchema,
|
|
65
101
|
/** Manual-only: never auto-fired by the sweeper; may use an individual-usage model. */
|
|
66
102
|
onDemand: v.boolean(),
|
|
103
|
+
/** Issue-intake scope + predicates, for a pipeline with a `bug-intake` step. */
|
|
104
|
+
issueIntake: v.optional(issueIntakeConfigSchema),
|
|
67
105
|
enabled: v.boolean(),
|
|
68
106
|
lastRunAt: v.nullable(v.number()),
|
|
69
107
|
nextRunAt: v.number(),
|
|
@@ -99,6 +137,8 @@ export const createScheduleSchema = v.object({
|
|
|
99
137
|
* use an individual-usage subscription model (unlocked per run-now by the initiator).
|
|
100
138
|
*/
|
|
101
139
|
onDemand: v.optional(v.boolean(), false),
|
|
140
|
+
/** Issue-intake scope + predicates (required by Phase E's validation for a `bug-intake` pipeline). */
|
|
141
|
+
issueIntake: v.optional(issueIntakeConfigSchema),
|
|
102
142
|
enabled: v.optional(v.boolean(), true),
|
|
103
143
|
/**
|
|
104
144
|
* The prompt/description for the reused on-board task block — the same free-text a
|
|
@@ -112,6 +152,8 @@ export const updateScheduleSchema = v.object({
|
|
|
112
152
|
name: v.optional(scheduleNameSchema),
|
|
113
153
|
pipelineId: v.optional(v.string()),
|
|
114
154
|
recurrence: v.optional(recurrenceSchema),
|
|
155
|
+
/** New intake config, or null to clear it. Omitted ⇒ unchanged. */
|
|
156
|
+
issueIntake: v.optional(v.nullable(issueIntakeConfigSchema)),
|
|
115
157
|
enabled: v.optional(v.boolean()),
|
|
116
158
|
});
|
|
117
159
|
//# sourceMappingURL=recurring.js.map
|
package/dist/recurring.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recurring.js","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"recurring.js","sourceRoot":"","sources":["../src/recurring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEjD,8EAA8E;AAC9E,+EAA+E;AAC/E,kFAAkF;AAClF,iFAAiF;AACjF,mFAAmF;AACnF,kFAAkF;AAClF,gFAAgF;AAChF,eAAe;AACf,EAAE;AACF,2EAA2E;AAC3E,8EAA8E;AAC9E,kFAAkF;AAClF,uDAAuD;AACvD,8EAA8E;AAE9E,iFAAiF;AACjF,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC,CAAA;AAGvF,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC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AE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxC;;;OAGG;IACH,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,KAAK,CAAC;IACxC,sGAAsG;IACtG,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,EAAE,IAAI,CAAC;IACtC;;;;OAIG;IACH,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;CACzE,CAAC,CAAA;AAGF,wDAAwD;AACxD,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACpC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACxC,mEAAmE;IACnE,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IAC5D,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;CACjC,CAAC,CAAA"}
|
package/dist/requests.d.ts
CHANGED
|
@@ -99,6 +99,17 @@ export declare const addTaskSchema: v.ObjectSchema<{
|
|
|
99
99
|
readonly audience: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>]>, undefined>;
|
|
100
100
|
readonly targetPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 300, undefined>, v.CheckAction<string, "targetPath must be a relative path inside the repo, ending in .md, with no \"..\", absolute, or backslash segments.">]>, undefined>;
|
|
101
101
|
readonly outlineHints: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 4000, undefined>]>, undefined>;
|
|
102
|
+
readonly targetUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
103
|
+
readonly successMetrics: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
104
|
+
readonly alternativesConsidered: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
105
|
+
readonly rolloutConcerns: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
106
|
+
readonly decisionDrivers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
107
|
+
readonly consideredOptions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
108
|
+
readonly whenToUse: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
109
|
+
readonly escalationPath: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
110
|
+
readonly researchQuestion: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
111
|
+
readonly optionsToCompare: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
112
|
+
readonly apiSurface: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
102
113
|
}, undefined>, undefined>;
|
|
103
114
|
readonly mergePresetId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
104
115
|
readonly modelPresetId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
package/dist/requests.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../src/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB;;IAEhC,oFAAoF;;IAEpF;;;;OAIG;;IAEH;;;;OAIG;;aAEH,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,oDAAoD;AACpD,eAAO,MAAM,qBAAqB;;IAEhC,wEAAwE;;aAExE,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E,eAAO,MAAM,cAAc;;;;;;aAGzB,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,cAAc,CAAC,CAAA;AAEhE;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB;;;;;;IAGnC;;;OAGG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;aAEH,CAAA;AACF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,aAAa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
|
|
|
101
101
|
readonly attempts: v.NumberSchema<undefined>;
|
|
102
102
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
103
103
|
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
104
|
+
readonly headShas: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
105
|
+
readonly conflictTarget: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
106
|
+
readonly repo: v.StringSchema<undefined>;
|
|
107
|
+
readonly frameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly branch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>, undefined>, undefined>;
|
|
104
110
|
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
105
111
|
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
106
112
|
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
107
113
|
readonly name: v.StringSchema<undefined>;
|
|
108
114
|
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
109
115
|
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
116
|
+
readonly repo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
110
117
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
111
118
|
readonly lastDispatchedInstructions: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
112
119
|
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
@@ -128,6 +135,7 @@ export declare const retryAgentRunContract: {
|
|
|
128
135
|
readonly name: v.StringSchema<undefined>;
|
|
129
136
|
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
130
137
|
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
138
|
+
readonly repo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
131
139
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
132
140
|
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
133
141
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
@@ -730,12 +738,19 @@ export declare const stopAgentRunContract: {
|
|
|
730
738
|
readonly attempts: v.NumberSchema<undefined>;
|
|
731
739
|
readonly maxAttempts: v.NumberSchema<undefined>;
|
|
732
740
|
readonly headSha: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
741
|
+
readonly headShas: v.OptionalSchema<v.NullableSchema<v.RecordSchema<v.StringSchema<undefined>, v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
742
|
+
readonly conflictTarget: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
743
|
+
readonly repo: v.StringSchema<undefined>;
|
|
744
|
+
readonly frameId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
745
|
+
readonly branch: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
746
|
+
}, undefined>, undefined>, undefined>;
|
|
733
747
|
readonly lastVerdict: v.OptionalSchema<v.NullableSchema<v.PicklistSchema<["pass", "pending", "fail"], undefined>, undefined>, undefined>;
|
|
734
748
|
readonly lastFailureSummary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
735
749
|
readonly failingChecks: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
736
750
|
readonly name: v.StringSchema<undefined>;
|
|
737
751
|
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
738
752
|
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
753
|
+
readonly repo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
739
754
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
740
755
|
readonly lastDispatchedInstructions: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
741
756
|
readonly watchSince: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
@@ -757,6 +772,7 @@ export declare const stopAgentRunContract: {
|
|
|
757
772
|
readonly name: v.StringSchema<undefined>;
|
|
758
773
|
readonly conclusion: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
759
774
|
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
775
|
+
readonly repo: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
760
776
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
761
777
|
readonly summary: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
762
778
|
}, undefined>, undefined>, undefined>, undefined>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"agent-runs.d.ts","sourceRoot":"","sources":["../../src/routes/agent-runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,yBAAyB,CAAA;AAC3E,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAsB5B,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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