@cat-factory/contracts 0.218.0 → 0.220.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/bug-hunt.d.ts +5 -5
- package/dist/entities.d.ts +1 -1
- package/dist/entities.js +1 -1
- package/dist/execution.d.ts +74 -0
- package/dist/execution.d.ts.map +1 -1
- package/dist/execution.js +34 -0
- package/dist/execution.js.map +1 -1
- package/dist/gate-parking.d.ts +16 -0
- package/dist/gate-parking.d.ts.map +1 -0
- package/dist/gate-parking.js +38 -0
- package/dist/gate-parking.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/localModels.d.ts +23 -0
- package/dist/localModels.d.ts.map +1 -1
- package/dist/localModels.js +29 -0
- package/dist/localModels.js.map +1 -1
- package/dist/public-api.d.ts +23 -15
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +18 -13
- package/dist/public-api.js.map +1 -1
- package/dist/recurring.d.ts +139 -4
- package/dist/recurring.d.ts.map +1 -1
- package/dist/recurring.js +47 -0
- package/dist/recurring.js.map +1 -1
- package/dist/routes/agent-runs.d.ts +12 -0
- package/dist/routes/agent-runs.d.ts.map +1 -1
- package/dist/routes/auth.d.ts +82 -0
- package/dist/routes/auth.d.ts.map +1 -1
- package/dist/routes/auth.js +29 -0
- package/dist/routes/auth.js.map +1 -1
- package/dist/routes/bug-hunt.d.ts +17 -5
- package/dist/routes/bug-hunt.d.ts.map +1 -1
- package/dist/routes/execution.d.ts +48 -0
- package/dist/routes/execution.d.ts.map +1 -1
- package/dist/routes/human-review.d.ts +6 -0
- package/dist/routes/human-review.d.ts.map +1 -1
- package/dist/routes/human-test.d.ts +30 -0
- package/dist/routes/human-test.d.ts.map +1 -1
- package/dist/routes/localModels.d.ts +3 -0
- package/dist/routes/localModels.d.ts.map +1 -1
- package/dist/routes/public-api.d.ts +18 -12
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-api.js +15 -9
- package/dist/routes/public-api.js.map +1 -1
- package/dist/routes/public-decisions.js +1 -1
- package/dist/routes/public-decisions.js.map +1 -1
- package/dist/routes/recurring.d.ts +18 -6
- package/dist/routes/recurring.d.ts.map +1 -1
- package/dist/routes/tasks.d.ts +14 -14
- package/dist/routes/visual-confirm.d.ts +18 -0
- package/dist/routes/visual-confirm.d.ts.map +1 -1
- package/dist/routes/workspaces.d.ts +18 -2
- package/dist/routes/workspaces.d.ts.map +1 -1
- package/dist/snapshot.d.ts +9 -1
- package/dist/snapshot.d.ts.map +1 -1
- package/dist/tasks.d.ts +43 -12
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +40 -3
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/public-api.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
|
-
/** Start
|
|
3
|
-
export declare const
|
|
2
|
+
/** Start a headless job (run a public, inline pipeline against a brief). */
|
|
3
|
+
export declare const createPublicJobSchema: v.ObjectSchema<{
|
|
4
4
|
/** Id of a PUBLIC, inline pipeline (e.g. `pl_initiative_breakdown`). */
|
|
5
5
|
readonly pipelineId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>]>;
|
|
6
|
-
/** The
|
|
6
|
+
/** The brief the pipeline runs against; becomes the run's task description. */
|
|
7
7
|
readonly input: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 50000, undefined>]>;
|
|
8
8
|
/** Optional human-readable title for the run; defaults to a truncated `input`. */
|
|
9
9
|
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
10
10
|
}, undefined>;
|
|
11
|
-
export type
|
|
11
|
+
export type CreatePublicJobInput = v.InferOutput<typeof createPublicJobSchema>;
|
|
12
12
|
/**
|
|
13
13
|
* The coarse public job status, mapped from the internal execution status:
|
|
14
14
|
* `done` → `succeeded`, `failed` → `failed`, everything else (running / paused /
|
|
@@ -24,7 +24,7 @@ export declare const publicJobResultSchema: v.ObjectSchema<{
|
|
|
24
24
|
readonly data: v.NullableSchema<v.UnknownSchema, undefined>;
|
|
25
25
|
}, undefined>;
|
|
26
26
|
export type PublicJobResult = v.InferOutput<typeof publicJobResultSchema>;
|
|
27
|
-
/** A public job resource — the external view of a headless
|
|
27
|
+
/** A public job resource — the external view of a headless pipeline run. */
|
|
28
28
|
export declare const publicJobSchema: v.ObjectSchema<{
|
|
29
29
|
readonly jobId: v.StringSchema<undefined>;
|
|
30
30
|
readonly status: v.PicklistSchema<["running", "succeeded", "failed"], undefined>;
|
|
@@ -45,7 +45,7 @@ export declare const publicJobSchema: v.ObjectSchema<{
|
|
|
45
45
|
}, undefined>;
|
|
46
46
|
export type PublicJob = v.InferOutput<typeof publicJobSchema>;
|
|
47
47
|
/**
|
|
48
|
-
* The workspace's headless
|
|
48
|
+
* The workspace's headless jobs, newest first, bounded. Closes the gap where an
|
|
49
49
|
* integration that lost its stored job ids (a restart, a fresh deployment) could never
|
|
50
50
|
* re-discover its own in-flight runs — `GET /jobs/:id` needs an id it no longer has.
|
|
51
51
|
*
|
|
@@ -92,8 +92,8 @@ export declare const listPublicJobsQuerySchema: v.ObjectSchema<{
|
|
|
92
92
|
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Must be a whole number of epoch milliseconds">, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
93
93
|
}, undefined>;
|
|
94
94
|
export type ListPublicJobsQuery = v.InferOutput<typeof listPublicJobsQuerySchema>;
|
|
95
|
-
/** The `202` returned by `POST /
|
|
96
|
-
export declare const
|
|
95
|
+
/** The `202` returned by `POST /jobs`: the job id + where to follow it. */
|
|
96
|
+
export declare const publicJobAcceptedSchema: v.ObjectSchema<{
|
|
97
97
|
readonly jobId: v.StringSchema<undefined>;
|
|
98
98
|
readonly status: v.PicklistSchema<["running", "succeeded", "failed"], undefined>;
|
|
99
99
|
readonly links: v.ObjectSchema<{
|
|
@@ -101,7 +101,7 @@ export declare const initiativeAcceptedSchema: v.ObjectSchema<{
|
|
|
101
101
|
readonly events: v.StringSchema<undefined>;
|
|
102
102
|
}, undefined>;
|
|
103
103
|
}, undefined>;
|
|
104
|
-
export type
|
|
104
|
+
export type PublicJobAccepted = v.InferOutput<typeof publicJobAcceptedSchema>;
|
|
105
105
|
/**
|
|
106
106
|
* A task's lifecycle status as exposed externally. Mirrors the internal block-status
|
|
107
107
|
* members but is a DECOUPLED public type, so the external contract stays stable if the
|
|
@@ -142,8 +142,12 @@ export declare const publicTaskSchema: v.ObjectSchema<{
|
|
|
142
142
|
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
143
143
|
/** 0..1 progress of the task's current run; 0 when not started. */
|
|
144
144
|
readonly progress: v.NumberSchema<undefined>;
|
|
145
|
-
/**
|
|
146
|
-
|
|
145
|
+
/**
|
|
146
|
+
* The live run's id once the task has been started; null while `planned`. Joins onto the
|
|
147
|
+
* rich run projection (`publicRun.runId`) and the decisions surface (`/runs/:runId/...`):
|
|
148
|
+
* one public name for one concept ("execution" is the internal engine vocabulary).
|
|
149
|
+
*/
|
|
150
|
+
readonly runId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
147
151
|
/** The web URL of the PR the run opened, once one exists; null otherwise. */
|
|
148
152
|
readonly pullRequestUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
149
153
|
}, undefined>;
|
|
@@ -159,8 +163,12 @@ export declare const publicTaskListSchema: v.ObjectSchema<{
|
|
|
159
163
|
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
160
164
|
/** 0..1 progress of the task's current run; 0 when not started. */
|
|
161
165
|
readonly progress: v.NumberSchema<undefined>;
|
|
162
|
-
/**
|
|
163
|
-
|
|
166
|
+
/**
|
|
167
|
+
* The live run's id once the task has been started; null while `planned`. Joins onto the
|
|
168
|
+
* rich run projection (`publicRun.runId`) and the decisions surface (`/runs/:runId/...`):
|
|
169
|
+
* one public name for one concept ("execution" is the internal engine vocabulary).
|
|
170
|
+
*/
|
|
171
|
+
readonly runId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
164
172
|
/** The web URL of the PR the run opened, once one exists; null otherwise. */
|
|
165
173
|
readonly pullRequestUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
166
174
|
}, undefined>, undefined>;
|
|
@@ -301,7 +309,7 @@ export declare const publicPipelineSchema: v.ObjectSchema<{
|
|
|
301
309
|
/** The enabled step chain, in order (each an agent kind). */
|
|
302
310
|
readonly steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
303
311
|
/**
|
|
304
|
-
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /
|
|
312
|
+
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /jobs`).
|
|
305
313
|
* A non-public pipeline can still back a board task `start` when pinned or passed by id.
|
|
306
314
|
*/
|
|
307
315
|
readonly public: v.BooleanSchema<undefined>;
|
|
@@ -320,7 +328,7 @@ export declare const publicPipelineListSchema: v.ObjectSchema<{
|
|
|
320
328
|
/** The enabled step chain, in order (each an agent kind). */
|
|
321
329
|
readonly steps: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
322
330
|
/**
|
|
323
|
-
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /
|
|
331
|
+
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /jobs`).
|
|
324
332
|
* A non-public pipeline can still back a board task `start` when pinned or passed by id.
|
|
325
333
|
*/
|
|
326
334
|
readonly public: v.BooleanSchema<undefined>;
|
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0D5B,4EAA4E;AAC5E,eAAO,MAAM,qBAAqB;IAChC,wEAAwE;;IAExE,+EAA+E;;IAE/E,kFAAkF;;aAElF,CAAA;AACF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE9E;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,iEAAiD,CAAA;AACnF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB;IAChC,kDAAkD;;IAElD,iFAAiF;;aAEjF,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEzE,4EAA4E;AAC5E,eAAO,MAAM,eAAe;;;;;IAK1B,kFAAkF;;QAblF,kDAAkD;;QAElD,iFAAiF;;;IAajF,yDAAyD;;;;;aAEzD,CAAA;AACF,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7D;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB;;;;;;QAf9B,kFAAkF;;YAblF,kDAAkD;;YAElD,iFAAiF;;;QAajF,yDAAyD;;;;;;IAezD,iGAAiG;;aAEjG,CAAA;AACF,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,mBAAmB,CA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WAIG;;QAEH,wCAAwC;;;aA2CxC,CAAA;AACF,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,iBAAiB,CAAC,CAAA"}
|
package/dist/public-api.js
CHANGED
|
@@ -4,11 +4,12 @@ import { blockTypeSchema, createTaskTypeSchema, taskTypeSchema } from './primiti
|
|
|
4
4
|
// ---------------------------------------------------------------------------
|
|
5
5
|
// Public-API wire contracts (the `/api/v1` surface for external systems).
|
|
6
6
|
//
|
|
7
|
-
// First use-case: "
|
|
8
|
-
//
|
|
7
|
+
// First use-case: "headless jobs". An external caller picks a public, inline
|
|
8
|
+
// (no-GitHub) pipeline and supplies an initial brief; the platform runs it
|
|
9
9
|
// headlessly and persists the result in the DB for asynchronous retrieval (poll
|
|
10
10
|
// `GET /jobs/:id` or subscribe to `GET /jobs/:id/events` over SSE). Nothing is
|
|
11
|
-
// committed to GitHub.
|
|
11
|
+
// committed to GitHub. The first such pipeline breaks an initiative down, but
|
|
12
|
+
// the job resource is generic over any public inline pipeline.
|
|
12
13
|
//
|
|
13
14
|
// Second use-case: "basic board workloads". A key holder lists the workspace's
|
|
14
15
|
// services, creates a task under one, starts it, and follows its status — the
|
|
@@ -34,11 +35,11 @@ const cursorSchema = v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(20
|
|
|
34
35
|
const pageLimitSchema = v.pipe(v.string(), v.regex(/^\d+$/, 'Must be a whole number'), v.transform(Number), v.number(), v.integer(), v.minValue(1), v.maxValue(100));
|
|
35
36
|
/** An epoch-ms query filter: digits only, for the same reason as {@link pageLimitSchema}. */
|
|
36
37
|
const epochMsQuerySchema = v.pipe(v.string(), v.regex(/^\d+$/, 'Must be a whole number of epoch milliseconds'), v.transform(Number), v.number(), v.integer(), v.minValue(0));
|
|
37
|
-
/** Start
|
|
38
|
-
export const
|
|
38
|
+
/** Start a headless job (run a public, inline pipeline against a brief). */
|
|
39
|
+
export const createPublicJobSchema = v.object({
|
|
39
40
|
/** Id of a PUBLIC, inline pipeline (e.g. `pl_initiative_breakdown`). */
|
|
40
41
|
pipelineId: v.pipe(v.string(), v.trim(), v.minLength(1)),
|
|
41
|
-
/** The
|
|
42
|
+
/** The brief the pipeline runs against; becomes the run's task description. */
|
|
42
43
|
input: v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(50_000)),
|
|
43
44
|
/** Optional human-readable title for the run; defaults to a truncated `input`. */
|
|
44
45
|
title: v.optional(v.pipe(v.string(), v.trim(), v.maxLength(200))),
|
|
@@ -56,7 +57,7 @@ export const publicJobResultSchema = v.object({
|
|
|
56
57
|
/** The structured decomposition, when the agent produced one (`step.custom`). */
|
|
57
58
|
data: v.nullable(v.unknown()),
|
|
58
59
|
});
|
|
59
|
-
/** A public job resource — the external view of a headless
|
|
60
|
+
/** A public job resource — the external view of a headless pipeline run. */
|
|
60
61
|
export const publicJobSchema = v.object({
|
|
61
62
|
jobId: v.string(),
|
|
62
63
|
status: publicJobStatusSchema,
|
|
@@ -68,7 +69,7 @@ export const publicJobSchema = v.object({
|
|
|
68
69
|
error: v.nullable(v.object({ code: v.string(), message: v.string() })),
|
|
69
70
|
});
|
|
70
71
|
/**
|
|
71
|
-
* The workspace's headless
|
|
72
|
+
* The workspace's headless jobs, newest first, bounded. Closes the gap where an
|
|
72
73
|
* integration that lost its stored job ids (a restart, a fresh deployment) could never
|
|
73
74
|
* re-discover its own in-flight runs — `GET /jobs/:id` needs an id it no longer has.
|
|
74
75
|
*
|
|
@@ -96,8 +97,8 @@ export const listPublicJobsQuerySchema = v.object({
|
|
|
96
97
|
/** Return only jobs created at or after this epoch-ms stamp (the incremental-poll filter). */
|
|
97
98
|
since: v.optional(epochMsQuerySchema),
|
|
98
99
|
});
|
|
99
|
-
/** The `202` returned by `POST /
|
|
100
|
-
export const
|
|
100
|
+
/** The `202` returned by `POST /jobs`: the job id + where to follow it. */
|
|
101
|
+
export const publicJobAcceptedSchema = v.object({
|
|
101
102
|
jobId: v.string(),
|
|
102
103
|
status: publicJobStatusSchema,
|
|
103
104
|
links: v.object({ self: v.string(), events: v.string() }),
|
|
@@ -140,8 +141,12 @@ export const publicTaskSchema = v.object({
|
|
|
140
141
|
status: publicTaskStatusSchema,
|
|
141
142
|
/** 0..1 progress of the task's current run; 0 when not started. */
|
|
142
143
|
progress: v.number(),
|
|
143
|
-
/**
|
|
144
|
-
|
|
144
|
+
/**
|
|
145
|
+
* The live run's id once the task has been started; null while `planned`. Joins onto the
|
|
146
|
+
* rich run projection (`publicRun.runId`) and the decisions surface (`/runs/:runId/...`):
|
|
147
|
+
* one public name for one concept ("execution" is the internal engine vocabulary).
|
|
148
|
+
*/
|
|
149
|
+
runId: v.nullable(v.string()),
|
|
145
150
|
/** The web URL of the PR the run opened, once one exists; null otherwise. */
|
|
146
151
|
pullRequestUrl: v.nullable(v.string()),
|
|
147
152
|
});
|
|
@@ -259,7 +264,7 @@ export const publicPipelineSchema = v.object({
|
|
|
259
264
|
/** The enabled step chain, in order (each an agent kind). */
|
|
260
265
|
steps: v.array(v.string()),
|
|
261
266
|
/**
|
|
262
|
-
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /
|
|
267
|
+
* Whether this pipeline is exposed as a PUBLIC initiative pipeline (`POST /jobs`).
|
|
263
268
|
* A non-public pipeline can still back a board task `start` when pinned or passed by id.
|
|
264
269
|
*/
|
|
265
270
|
public: v.boolean(),
|
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAEvF,8EAA8E;AAC9E,0EAA0E;AAC1E,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","s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,CAAC,MAAM,CAAC;IAC9C,4FAA4F;IAC5F,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,6EAA6E;IAC7E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,oFAAoF;IACpF,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,uFAAuF;IACvF,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAA;AAGF;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,2EAA2E;IAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,qEAAqE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,uBAAuB;IAC/B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACpC,CAAC,CAAA"}
|
package/dist/recurring.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export type ScheduleTemplate = v.InferOutput<typeof scheduleTemplateSchema>;
|
|
|
19
19
|
*/
|
|
20
20
|
export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
21
21
|
/** Which connected task source the intake searches. */
|
|
22
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
22
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
23
23
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
24
24
|
readonly board: v.ObjectSchema<{
|
|
25
25
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -28,6 +28,16 @@ export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
|
28
28
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
29
29
|
/** GitHub repository as `owner/name`. */
|
|
30
30
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
33
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
34
|
+
*
|
|
35
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
36
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
37
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
38
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
39
|
+
*/
|
|
40
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
31
41
|
}, undefined>;
|
|
32
42
|
/** Which open issues qualify. All present predicates must match. */
|
|
33
43
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -43,8 +53,43 @@ export declare const issueIntakeConfigSchema: v.ObjectSchema<{
|
|
|
43
53
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
44
54
|
*/
|
|
45
55
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
56
|
+
/**
|
|
57
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
58
|
+
* `queue`, so every existing schedule is unchanged.
|
|
59
|
+
*
|
|
60
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
61
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
62
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
63
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
64
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
65
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
66
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
67
|
+
* it was filed in rather than through an API call.
|
|
68
|
+
*
|
|
69
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
70
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
71
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
72
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
73
|
+
* queue — the same rule under a different name.
|
|
74
|
+
*/
|
|
75
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
46
76
|
}, undefined>;
|
|
47
77
|
export type IssueIntakeConfig = v.InferOutput<typeof issueIntakeConfigSchema>;
|
|
78
|
+
/**
|
|
79
|
+
* Why a schedule's issue-intake configuration was refused, as `error.details.reason`.
|
|
80
|
+
*
|
|
81
|
+
* The backend does not localize prose, so a refusal that carried only its `message` would reach a
|
|
82
|
+
* non-English user as English. These are the machine-readable half the SPA maps to translated copy
|
|
83
|
+
* through an exhaustive `Record`, which is why the vocabulary lives HERE rather than as string
|
|
84
|
+
* literals at the throw site: both sides import the same union, and adding a member fails the SPA's
|
|
85
|
+
* typecheck until it has copy.
|
|
86
|
+
*
|
|
87
|
+
* Both members describe the same underlying rule (the two dispatch modes are exclusive) from the
|
|
88
|
+
* two directions an author can hit it, and they are kept apart because the fix differs: one is
|
|
89
|
+
* "make the schedule on-demand", the other is "pick a pipeline with no `bug-intake` step".
|
|
90
|
+
*/
|
|
91
|
+
export declare const issueIntakeRefusalReasonSchema: v.PicklistSchema<["per_ticket_requires_on_demand", "per_ticket_conflicts_with_bug_intake"], undefined>;
|
|
92
|
+
export type IssueIntakeRefusalReason = v.InferOutput<typeof issueIntakeRefusalReasonSchema>;
|
|
48
93
|
/**
|
|
49
94
|
* How often a schedule fires and when it is allowed to. `intervalHours` is the
|
|
50
95
|
* base cadence; `weekdays` (0=Sunday..6=Saturday; empty = every day) and the
|
|
@@ -106,7 +151,7 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
106
151
|
/** Issue-intake scope + predicates, for a pipeline with a `bug-intake` step. */
|
|
107
152
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
108
153
|
/** Which connected task source the intake searches. */
|
|
109
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
154
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
110
155
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
111
156
|
readonly board: v.ObjectSchema<{
|
|
112
157
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -115,6 +160,16 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
115
160
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
116
161
|
/** GitHub repository as `owner/name`. */
|
|
117
162
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
163
|
+
/**
|
|
164
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
165
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
166
|
+
*
|
|
167
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
168
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
169
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
170
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
171
|
+
*/
|
|
172
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
118
173
|
}, undefined>;
|
|
119
174
|
/** Which open issues qualify. All present predicates must match. */
|
|
120
175
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -130,6 +185,26 @@ export declare const pipelineScheduleSchema: v.ObjectSchema<{
|
|
|
130
185
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
131
186
|
*/
|
|
132
187
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
188
|
+
/**
|
|
189
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
190
|
+
* `queue`, so every existing schedule is unchanged.
|
|
191
|
+
*
|
|
192
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
193
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
194
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
195
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
196
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
197
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
198
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
199
|
+
* it was filed in rather than through an API call.
|
|
200
|
+
*
|
|
201
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
202
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
203
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
204
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
205
|
+
* queue — the same rule under a different name.
|
|
206
|
+
*/
|
|
207
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
133
208
|
}, undefined>, undefined>;
|
|
134
209
|
readonly enabled: v.BooleanSchema<undefined>;
|
|
135
210
|
readonly lastRunAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -179,7 +254,7 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
179
254
|
/** Issue-intake scope + predicates (required by Phase E's validation for a `bug-intake` pipeline). */
|
|
180
255
|
readonly issueIntake: v.OptionalSchema<v.ObjectSchema<{
|
|
181
256
|
/** Which connected task source the intake searches. */
|
|
182
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
257
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
183
258
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
184
259
|
readonly board: v.ObjectSchema<{
|
|
185
260
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -188,6 +263,16 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
188
263
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
189
264
|
/** GitHub repository as `owner/name`. */
|
|
190
265
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
266
|
+
/**
|
|
267
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
268
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
269
|
+
*
|
|
270
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
271
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
272
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
273
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
274
|
+
*/
|
|
275
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
191
276
|
}, undefined>;
|
|
192
277
|
/** Which open issues qualify. All present predicates must match. */
|
|
193
278
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -203,6 +288,26 @@ export declare const createScheduleSchema: v.ObjectSchema<{
|
|
|
203
288
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
204
289
|
*/
|
|
205
290
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
291
|
+
/**
|
|
292
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
293
|
+
* `queue`, so every existing schedule is unchanged.
|
|
294
|
+
*
|
|
295
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
296
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
297
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
298
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
299
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
300
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
301
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
302
|
+
* it was filed in rather than through an API call.
|
|
303
|
+
*
|
|
304
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
305
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
306
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
307
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
308
|
+
* queue — the same rule under a different name.
|
|
309
|
+
*/
|
|
310
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
206
311
|
}, undefined>, undefined>;
|
|
207
312
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
208
313
|
/**
|
|
@@ -231,7 +336,7 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
231
336
|
/** New intake config, or null to clear it. Omitted ⇒ unchanged. */
|
|
232
337
|
readonly issueIntake: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
233
338
|
/** Which connected task source the intake searches. */
|
|
234
|
-
readonly source: v.PicklistSchema<["jira", "github", "linear"], undefined>;
|
|
339
|
+
readonly source: v.UnionSchema<[v.PicklistSchema<readonly ["jira", "github", "linear"], undefined>, v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Consumer id must be <namespace>:<name> (lowercase a-z0-9, dash-separated)">]>], undefined>;
|
|
235
340
|
/** The vendor's "board"/project scope; exactly the field for `source` is meaningful. */
|
|
236
341
|
readonly board: v.ObjectSchema<{
|
|
237
342
|
/** Jira project key, e.g. `PROJ`. */
|
|
@@ -240,6 +345,16 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
240
345
|
readonly linearTeamId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
241
346
|
/** GitHub repository as `owner/name`. */
|
|
242
347
|
readonly githubRepo: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
348
|
+
/**
|
|
349
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
350
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
351
|
+
*
|
|
352
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
353
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
354
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
355
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
356
|
+
*/
|
|
357
|
+
readonly boardId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
243
358
|
}, undefined>;
|
|
244
359
|
/** Which open issues qualify. All present predicates must match. */
|
|
245
360
|
readonly predicates: v.ObjectSchema<{
|
|
@@ -255,6 +370,26 @@ export declare const updateScheduleSchema: v.ObjectSchema<{
|
|
|
255
370
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
256
371
|
*/
|
|
257
372
|
readonly inProgressLabel: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
373
|
+
/**
|
|
374
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
375
|
+
* `queue`, so every existing schedule is unchanged.
|
|
376
|
+
*
|
|
377
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
378
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
379
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
380
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
381
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
382
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
383
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
384
|
+
* it was filed in rather than through an API call.
|
|
385
|
+
*
|
|
386
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
387
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
388
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
389
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
390
|
+
* queue — the same rule under a different name.
|
|
391
|
+
*/
|
|
392
|
+
readonly dispatch: v.OptionalSchema<v.PicklistSchema<["queue", "per-ticket"], undefined>, undefined>;
|
|
258
393
|
}, undefined>, undefined>, undefined>;
|
|
259
394
|
readonly enabled: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
260
395
|
}, undefined>;
|
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;AAkB5B;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,kFAKjC,CAAA;AACF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,sBAAsB,CAAC,CAAA;AAI3E;;;;;;GAMG;AACH,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;YAE7B,yCAAyC;;YAEzC;;;;;;;;eAQG;;;QAGL,oEAAoE;;YAElE,qDAAqD;;YAErD,sDAAsD;;YAEtD,2FAA2F;;;QAG7F;;;WAGG;;QAEH;;;;;;;;;;;;;;;;;;WAkBG;;;;aA2IH,CAAA;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA"}
|
package/dist/recurring.js
CHANGED
|
@@ -48,6 +48,16 @@ export const issueIntakeConfigSchema = v.object({
|
|
|
48
48
|
linearTeamId: v.optional(intakePredicateStringSchema),
|
|
49
49
|
/** GitHub repository as `owner/name`. */
|
|
50
50
|
githubRepo: v.optional(intakePredicateStringSchema),
|
|
51
|
+
/**
|
|
52
|
+
* A DEPLOYMENT-REGISTERED source's board scope, held opaquely: only that provider knows what
|
|
53
|
+
* its board id means, so the platform carries the string and never interprets it.
|
|
54
|
+
*
|
|
55
|
+
* Its own field rather than reusing a built-in's. The three above are named for the vendor
|
|
56
|
+
* whose provider reads them, so putting a registered source's id on one of them would hand a
|
|
57
|
+
* provider a scope belonging to a different tracker — silently, since every one of them is a
|
|
58
|
+
* plain string. A built-in source never sets this and a registered one never sets the others.
|
|
59
|
+
*/
|
|
60
|
+
boardId: v.optional(intakePredicateStringSchema),
|
|
51
61
|
}),
|
|
52
62
|
/** Which open issues qualify. All present predicates must match. */
|
|
53
63
|
predicates: v.object({
|
|
@@ -63,7 +73,44 @@ export const issueIntakeConfigSchema = v.object({
|
|
|
63
73
|
* has no native workflow status). Absent ⇒ `in-progress`.
|
|
64
74
|
*/
|
|
65
75
|
inProgressLabel: v.optional(intakePredicateStringSchema),
|
|
76
|
+
/**
|
|
77
|
+
* What a WEBHOOK-pushed issue event that matches these predicates actually does. Absent ⇒
|
|
78
|
+
* `queue`, so every existing schedule is unchanged.
|
|
79
|
+
*
|
|
80
|
+
* - **`queue`** fires this schedule, and the run's `bug-intake` step drains the board
|
|
81
|
+
* oldest-first. The pushed issue is not necessarily the one picked up: intake is fair
|
|
82
|
+
* queueing and the webhook's job is to drain the queue promptly, not to reorder it. This is
|
|
83
|
+
* the right shape for a bug backlog, where WHICH bug is worked next is the platform's call.
|
|
84
|
+
* - **`per-ticket`** dispatches THAT ticket: it is imported, materialised as its own task
|
|
85
|
+
* under the schedule's frame, and started on the schedule's pipeline. This is the shape for
|
|
86
|
+
* tickets a human already triaged — a feature request enters the platform from the tracker
|
|
87
|
+
* it was filed in rather than through an API call.
|
|
88
|
+
*
|
|
89
|
+
* They are different enough to be a mode rather than a knob: `queue` reuses ONE block and
|
|
90
|
+
* competes for it, while `per-ticket` creates a block per ticket and never queues. A
|
|
91
|
+
* `per-ticket` config therefore requires `onDemand` (see `assertValidIssueIntake`), because a
|
|
92
|
+
* CADENCE tick has no triggering ticket and would otherwise silently fall back to draining the
|
|
93
|
+
* queue — the same rule under a different name.
|
|
94
|
+
*/
|
|
95
|
+
dispatch: v.optional(v.picklist(['queue', 'per-ticket'])),
|
|
66
96
|
});
|
|
97
|
+
/**
|
|
98
|
+
* Why a schedule's issue-intake configuration was refused, as `error.details.reason`.
|
|
99
|
+
*
|
|
100
|
+
* The backend does not localize prose, so a refusal that carried only its `message` would reach a
|
|
101
|
+
* non-English user as English. These are the machine-readable half the SPA maps to translated copy
|
|
102
|
+
* through an exhaustive `Record`, which is why the vocabulary lives HERE rather than as string
|
|
103
|
+
* literals at the throw site: both sides import the same union, and adding a member fails the SPA's
|
|
104
|
+
* typecheck until it has copy.
|
|
105
|
+
*
|
|
106
|
+
* Both members describe the same underlying rule (the two dispatch modes are exclusive) from the
|
|
107
|
+
* two directions an author can hit it, and they are kept apart because the fix differs: one is
|
|
108
|
+
* "make the schedule on-demand", the other is "pick a pipeline with no `bug-intake` step".
|
|
109
|
+
*/
|
|
110
|
+
export const issueIntakeRefusalReasonSchema = v.picklist([
|
|
111
|
+
'per_ticket_requires_on_demand',
|
|
112
|
+
'per_ticket_conflicts_with_bug_intake',
|
|
113
|
+
]);
|
|
67
114
|
const hourOfDaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(23));
|
|
68
115
|
const weekdaySchema = v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(6));
|
|
69
116
|
/**
|
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;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;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,QAAQ,CAAC;IAC/C,YAAY;IACZ,WAAW;IACX,YAAY;IACZ,QAAQ;CACT,CAAC,CAAA;AAGF,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,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAA;AAElG;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,uDAAuD;IACvD,MAAM,EAAE,oBAAoB;IAC5B,wFAAwF;IACxF,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC;QACd,qCAAqC;QACrC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CAAC;QACvD,6BAA6B;QAC7B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,2BAA2B,CA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AAE,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"}
|
|
@@ -752,6 +752,12 @@ export declare const retryAgentRunContract: {
|
|
|
752
752
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
753
753
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
754
754
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
755
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
756
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
757
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
758
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
759
|
+
readonly count: v.NumberSchema<undefined>;
|
|
760
|
+
}, undefined>, undefined>, undefined>;
|
|
755
761
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
756
762
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
757
763
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -1867,6 +1873,12 @@ export declare const stopAgentRunContract: {
|
|
|
1867
1873
|
readonly jobId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1868
1874
|
readonly startedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1869
1875
|
readonly finishedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1876
|
+
readonly firstStartedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1877
|
+
readonly attempts: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
1878
|
+
readonly dispatches: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1879
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
1880
|
+
readonly count: v.NumberSchema<undefined>;
|
|
1881
|
+
}, undefined>, undefined>, undefined>;
|
|
1870
1882
|
readonly lastActivityAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1871
1883
|
readonly pausedAt: v.OptionalSchema<v.NullableSchema<v.NumberSchema<undefined>, undefined>, undefined>;
|
|
1872
1884
|
readonly evictionRecoveries: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|