@cat-factory/contracts 0.217.0 → 0.219.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/capability-credentials.d.ts +9 -3
- package/dist/capability-credentials.d.ts.map +1 -1
- package/dist/capability-credentials.js +9 -3
- package/dist/capability-credentials.js.map +1 -1
- package/dist/entities.d.ts +1 -1
- package/dist/entities.js +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/pr-report.d.ts +298 -7
- package/dist/pr-report.d.ts.map +1 -1
- package/dist/pr-report.js +153 -7
- package/dist/pr-report.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/routes/capability-credentials.d.ts +3 -3
- 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/package.json +1 -1
package/dist/pr-report.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as v from 'valibot';
|
|
|
2
2
|
import { mergeAssessmentSchema } from './merge.js';
|
|
3
3
|
import { judgeDispositionSchema, judgeFindingSchema } from './judge.js';
|
|
4
4
|
import { requirementPrioritySchema, requirementStateSchema } from './spec.js';
|
|
5
|
-
import { requirementVerdictStatusSchema } from './testing.js';
|
|
5
|
+
import { requirementVerdictStatusSchema, testEnvironmentSchema } from './testing.js';
|
|
6
6
|
import { vcsProviderSchema } from './routes/auth.js';
|
|
7
7
|
// ---------------------------------------------------------------------------
|
|
8
8
|
// PR verification report — the structured evidence bundle the ENGINE maintains on a
|
|
@@ -26,7 +26,7 @@ import { vcsProviderSchema } from './routes/auth.js';
|
|
|
26
26
|
* external consumer must notice. Backwards compatibility is a non-goal (see CLAUDE.md), so
|
|
27
27
|
* a bump means "re-read the schema", not "a compatibility shim exists".
|
|
28
28
|
*/
|
|
29
|
-
export const PR_VERIFICATION_REPORT_VERSION =
|
|
29
|
+
export const PR_VERIFICATION_REPORT_VERSION = 4;
|
|
30
30
|
/**
|
|
31
31
|
* Whether a section has evidence to show.
|
|
32
32
|
* - `reported` — the producing step ran and its evidence is below.
|
|
@@ -144,17 +144,163 @@ export const prReportEnvironmentSchema = v.object({
|
|
|
144
144
|
error: v.optional(v.nullable(v.string())),
|
|
145
145
|
});
|
|
146
146
|
/**
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
147
|
+
* Why the lifecycle could not be dated, as a MACHINE-READABLE cause rather than prose. The four
|
|
148
|
+
* are kept apart because each is a different thing to fix, and because three of them would
|
|
149
|
+
* otherwise be reported as the fourth: an empty timeline is what a deployment retaining no log,
|
|
150
|
+
* a failed read, a truncated read and a run that stood nothing up all produce, and only one of
|
|
151
|
+
* those is a statement about how the deployment is configured.
|
|
152
|
+
*
|
|
153
|
+
* - `unwired`: no provisioning-log repository is wired, so nothing records these dates.
|
|
154
|
+
* - `unreadable`: the log is wired and the read FAILED. A transport blip, not a
|
|
155
|
+
* configuration fact; re-attempted on the next publish.
|
|
156
|
+
* - `truncated`: the run has more provisioning rows than one report read may take, so
|
|
157
|
+
* what came back cannot be reasoned over as a complete history. Stated
|
|
158
|
+
* rather than folded, because a partial history yields a CONFIDENT wrong
|
|
159
|
+
* answer (an environment whose bring-up row fell off the end looks like
|
|
160
|
+
* one that was never stood up, and therefore never needs reclaiming).
|
|
161
|
+
* - `not_provisioned`: the run has no deployer step, so no lifecycle was ever meant to exist
|
|
162
|
+
* and the log was deliberately not queried.
|
|
163
|
+
*/
|
|
164
|
+
export const prReportTimelineGapSchema = v.picklist([
|
|
165
|
+
'unwired',
|
|
166
|
+
'unreadable',
|
|
167
|
+
'truncated',
|
|
168
|
+
'not_provisioned',
|
|
169
|
+
]);
|
|
170
|
+
/**
|
|
171
|
+
* The DATED half of the environment lifecycle, read off the run's rows in the provisioning
|
|
172
|
+
* event log, the only store that records WHEN a throwaway environment came up and when it
|
|
173
|
+
* went away. The step state can say an environment is gone; only the log can say it was torn
|
|
174
|
+
* down at a time, by an attempt that succeeded.
|
|
175
|
+
*
|
|
176
|
+
* `gap` is the honest-absence flag and it is NOT a formality: a deployment that retains no
|
|
177
|
+
* provisioning log, and one whose environments were never torn down, produce the same empty
|
|
178
|
+
* timeline and opposite facts. Reporting either as `tornDownAt: null` alone would let a reader
|
|
179
|
+
* conclude the environment is still running. It is a single field rather than a boolean beside
|
|
180
|
+
* a reason, so the two can never disagree.
|
|
181
|
+
*/
|
|
182
|
+
export const prReportEnvironmentTimelineSchema = v.object({
|
|
183
|
+
/**
|
|
184
|
+
* Why this timeline is empty, or `null` when the log was read whole and the dates below are
|
|
185
|
+
* the history. Non-null ⇒ every field below is a zero because nothing (or not enough) was
|
|
186
|
+
* READ, not because nothing happened; `note` renders the same fact for a human.
|
|
187
|
+
*/
|
|
188
|
+
gap: v.nullable(prReportTimelineGapSchema),
|
|
189
|
+
/** Says why the timeline is empty when `gap` is set. */
|
|
190
|
+
note: v.optional(v.nullable(v.string())),
|
|
191
|
+
/** Epoch ms of the run's FIRST successful environment provision, when one is on record. */
|
|
192
|
+
provisionedAt: v.nullable(v.number()),
|
|
193
|
+
/**
|
|
194
|
+
* Epoch ms of the run's LAST successful environment teardown, when one is on record. This is
|
|
195
|
+
* the last one RECORDED, which is the end of the lifecycle only once {@link
|
|
196
|
+
* prReportEnvironmentsSchema.entries.teardown} is `confirmed`: a run that replaced an
|
|
197
|
+
* environment mid-flight reclaimed the superseded one and is still holding its replacement.
|
|
198
|
+
*/
|
|
199
|
+
tornDownAt: v.nullable(v.number()),
|
|
200
|
+
/**
|
|
201
|
+
* How many provisioning attempts the log records as failures for this run (0 on a clean
|
|
202
|
+
* bring-up). Counted at whatever grain the provider logged: a whole environment that failed to
|
|
203
|
+
* come up, or one step of a multi-step stack recipe. Both are attempts that did not work, and
|
|
204
|
+
* the log does not distinguish them, so neither does this.
|
|
205
|
+
*/
|
|
206
|
+
provisionFailures: v.number(),
|
|
207
|
+
/**
|
|
208
|
+
* How many environments the run stood up whose LATEST teardown attempt failed. A non-zero
|
|
209
|
+
* count is the state the live-projection tri-state below cannot express: the platform tried to
|
|
210
|
+
* reclaim the environment and the provider refused, which is an operator's problem rather than
|
|
211
|
+
* a run's. Counted per environment, not per attempt, so a retry loop against one stuck
|
|
212
|
+
* environment does not read as a fleet of them.
|
|
213
|
+
*/
|
|
214
|
+
teardownFailures: v.number(),
|
|
215
|
+
});
|
|
216
|
+
/** One artifact the UI tester captured while exercising the live environment. */
|
|
217
|
+
export const prReportEvidenceArtifactSchema = v.object({
|
|
218
|
+
/** The logical view the screenshot was taken of. */
|
|
219
|
+
view: v.string(),
|
|
220
|
+
/** The stored artifact id, in the deployment's binary-artifact store. */
|
|
221
|
+
artifactId: v.string(),
|
|
222
|
+
/** Whether a reference design image was paired with it for visual confirmation. */
|
|
223
|
+
hasReference: v.boolean(),
|
|
224
|
+
});
|
|
225
|
+
/**
|
|
226
|
+
* The MIDDLE leg of the lifecycle proof: what was actually observed against the environment
|
|
227
|
+
* while it was live. An environment that came up and was torn down again proves only that the
|
|
228
|
+
* platform can spin infrastructure; it becomes evidence for the CHANGE when something was
|
|
229
|
+
* exercised against it in between.
|
|
230
|
+
*
|
|
231
|
+
* The four statuses are kept apart because they call for different reactions:
|
|
232
|
+
* - `captured`: a tester ran against the ephemeral environment and its observations are below.
|
|
233
|
+
* - `local`: a tester ran, but against locally stood-up dependencies, so nothing was
|
|
234
|
+
* observed against the environment this section is about.
|
|
235
|
+
* - `undeclared`: a tester reported without saying where it ran, so its observations cannot be
|
|
236
|
+
* ATTRIBUTED to this environment. Distinct from `local`, which is a positive
|
|
237
|
+
* statement that it ran somewhere else; guessing either way would turn an
|
|
238
|
+
* unknown into a claim, in the one section whose whole job is provenance.
|
|
239
|
+
* - `absent`: no tester report at all (no tester step, or it never settled).
|
|
240
|
+
*
|
|
241
|
+
* The artifacts and counts are reported WHATEVER the status: they exist, and a reviewer should
|
|
242
|
+
* be able to reach them. What the status governs is whether they may be read as evidence about
|
|
243
|
+
* this environment, which is why the attribution rides the section rather than the rows.
|
|
244
|
+
*/
|
|
245
|
+
export const prReportEnvironmentEvidenceSchema = v.object({
|
|
246
|
+
status: v.picklist(['captured', 'local', 'undeclared', 'absent']),
|
|
247
|
+
/** Says why the observations below are not evidence about this environment. */
|
|
248
|
+
note: v.optional(v.nullable(v.string())),
|
|
249
|
+
/** Where the tester stood the system under test up, when a report says. */
|
|
250
|
+
ranAgainst: v.nullable(testEnvironmentSchema),
|
|
251
|
+
/** Epoch ms the tester step settled: the observation's place on the timeline above. */
|
|
252
|
+
capturedAt: v.nullable(v.number()),
|
|
253
|
+
/** How many areas the tester reported an outcome for. */
|
|
254
|
+
outcomes: v.number(),
|
|
255
|
+
/** How many spec requirements it returned a verdict on. */
|
|
256
|
+
requirementVerdicts: v.number(),
|
|
257
|
+
/** The screenshots it captured (capped like every other list; see `truncations`). */
|
|
258
|
+
screenshots: v.array(prReportEvidenceArtifactSchema),
|
|
259
|
+
/**
|
|
260
|
+
* Deep link into the run's captured evidence in the app. Null when the deployment configured
|
|
261
|
+
* no public app URL, so the report never emits a link to nowhere. The rows above still name
|
|
262
|
+
* each artifact, which is what an operator greps the store for.
|
|
263
|
+
*/
|
|
264
|
+
url: v.nullable(v.string()),
|
|
265
|
+
});
|
|
266
|
+
/**
|
|
267
|
+
* The ephemeral-environment lifecycle, as the three-leg proof a reviewer needs: the
|
|
268
|
+
* environment came UP, evidence was CAPTURED from it while it was live, and it was TORN DOWN
|
|
269
|
+
* again. Each leg is a captured fact from a different producer, and `proof` is COMPUTED from
|
|
270
|
+
* the three in code, never read off any agent's claim that it tested against a preview.
|
|
271
|
+
*
|
|
272
|
+
* `teardown` prefers the provisioning log's RECORDED attempts, per environment identity, and
|
|
273
|
+
* falls back to the run's live step projection only when there is no log to read:
|
|
274
|
+
* - `confirmed` — every environment the run stood up was reclaimed.
|
|
275
|
+
* - `pending` — at least one is still standing (the run may still be using it).
|
|
276
|
+
* - `failed` — an environment's latest teardown attempt FAILED, so it is still standing
|
|
277
|
+
* for a reason someone has to act on.
|
|
151
278
|
* - `not_applicable` — nothing was ever provisioned.
|
|
152
279
|
*/
|
|
153
280
|
export const prReportEnvironmentsSchema = v.object({
|
|
154
281
|
status: prReportSectionStatusSchema,
|
|
155
282
|
note: v.optional(v.nullable(v.string())),
|
|
156
283
|
entries: v.array(prReportEnvironmentSchema),
|
|
157
|
-
teardown: v.picklist(['confirmed', 'pending', 'not_applicable']),
|
|
284
|
+
teardown: v.picklist(['confirmed', 'pending', 'failed', 'not_applicable']),
|
|
285
|
+
timeline: prReportEnvironmentTimelineSchema,
|
|
286
|
+
evidence: prReportEnvironmentEvidenceSchema,
|
|
287
|
+
/**
|
|
288
|
+
* The composed verdict over the three legs:
|
|
289
|
+
* - `complete`: up, observed, and reclaimed.
|
|
290
|
+
* - `incomplete`: at least one leg is missing; {@link gaps} names which.
|
|
291
|
+
* - `not_applicable`: no environment was ever meant to stand up (no deployer step, or every
|
|
292
|
+
* frame is infraless), so there is nothing to prove.
|
|
293
|
+
*
|
|
294
|
+
* COMPUTED from the legs, never asserted: this is the platform's judgement about its own
|
|
295
|
+
* evidence, and a reviewer must be able to re-derive it from the rows above.
|
|
296
|
+
*/
|
|
297
|
+
proof: v.picklist(['complete', 'incomplete', 'not_applicable']),
|
|
298
|
+
/**
|
|
299
|
+
* One human-readable line per missing or contradictory leg, so an `incomplete` proof always
|
|
300
|
+
* says WHAT is missing rather than leaving a reader to diff the sections. Empty when
|
|
301
|
+
* `proof` is `complete`.
|
|
302
|
+
*/
|
|
303
|
+
gaps: v.array(v.string()),
|
|
158
304
|
});
|
|
159
305
|
/**
|
|
160
306
|
* The `merger` step's scored assessment plus the engine's resolved decision. `assessment` is
|
package/dist/pr-report.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-report.js","sourceRoot":"","sources":["../src/pr-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACvE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"pr-report.js","sourceRoot":"","sources":["../src/pr-report.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACvE,OAAO,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AAC7E,OAAO,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAA;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAEpD,8EAA8E;AAC9E,oFAAoF;AACpF,sBAAsB;AACtB,EAAE;AACF,0FAA0F;AAC1F,2FAA2F;AAC3F,oFAAoF;AACpF,6FAA6F;AAC7F,4FAA4F;AAC5F,gDAAgD;AAChD,EAAE;AACF,2FAA2F;AAC3F,6EAA6E;AAC7E,gFAAgF;AAChF,2FAA2F;AAC3F,mDAAmD;AACnD,8EAA8E;AAE9E;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAA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
-
/** 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,GAA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;;GAKG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;;;;OAKG;;IAEH,iGAAiG;;;;IAIjG,6FAA6F;;;IAG7F;;;;OAIG;;IAEH,wCAAwC;;aAExC,CAAA;AACF,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEvE;;;;;;;;GAQG;AACH,eAAO,MAAM,uBAAuB;IAClC,4FAA4F;;;IAG5F,6EAA6E;;IAE7E,oFAAoF;;IAEpF,uFAAuF;;aAEvF,CAAA;AACF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,uBAAuB,CAAC,CAAA;AAE7E;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB;IAC5B,2EAA2E;;IAE3E,qEAAqE;;;QAxBrE,4FAA4F;;;QAG5F,6EAA6E;;QAE7E,oFAAoF;;QAEpF,uFAAuF;;;;QA1CvF;;;;;WAKG;;QAEH,iGAAiG;;;;QAIjG,6FAA6F;;;QAG7F;;;;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":"","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,6EAA6E;AAC7E,2EAA2E;AAC3E,gFAAgF;AAChF,+EAA+E;AAC/E,8EAA8E;AAC9E,+DAA+D;AAC/D,EAAE;AACF,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,mFAAmF;AACnF,qFAAqF;AACrF,8EAA8E;AAE9E,sFAAsF;AAEtF;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,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AAC;CACpC,CAAC,CAAA"}
|
|
@@ -43,7 +43,7 @@ export declare const getCapabilityCredentialsContract: {
|
|
|
43
43
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name (letters, digits and underscores, not starting with a digit)">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
44
44
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
45
45
|
}, undefined>, undefined>;
|
|
46
|
-
readonly environmentFallback: v.BooleanSchema<undefined>;
|
|
46
|
+
readonly environmentFallback: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
47
47
|
readonly declarationsIncomplete: v.BooleanSchema<undefined>;
|
|
48
48
|
}, undefined>;
|
|
49
49
|
};
|
|
@@ -107,7 +107,7 @@ export declare const setCapabilityCredentialsContract: {
|
|
|
107
107
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name (letters, digits and underscores, not starting with a digit)">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
108
108
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
109
109
|
}, undefined>, undefined>;
|
|
110
|
-
readonly environmentFallback: v.BooleanSchema<undefined>;
|
|
110
|
+
readonly environmentFallback: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
111
111
|
readonly declarationsIncomplete: v.BooleanSchema<undefined>;
|
|
112
112
|
}, undefined>;
|
|
113
113
|
};
|
|
@@ -163,7 +163,7 @@ export declare const setCapabilityCredentialContract: {
|
|
|
163
163
|
readonly key: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 128, undefined>, v.RegexAction<string, "must be a valid environment variable name (letters, digits and underscores, not starting with a digit)">, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>, v.CheckAction<string, (issue: v.CheckIssue<string>) => string>]>;
|
|
164
164
|
readonly updatedAt: v.NumberSchema<undefined>;
|
|
165
165
|
}, undefined>, undefined>;
|
|
166
|
-
readonly environmentFallback: v.BooleanSchema<undefined>;
|
|
166
|
+
readonly environmentFallback: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
167
167
|
readonly declarationsIncomplete: v.BooleanSchema<undefined>;
|
|
168
168
|
}, undefined>;
|
|
169
169
|
};
|