@cat-factory/contracts 0.275.0 → 0.277.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/agent-presentation.d.ts +12 -0
- package/dist/agent-presentation.d.ts.map +1 -1
- package/dist/agent-presentation.js +15 -0
- package/dist/agent-presentation.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/pipeline-purpose.d.ts +37 -6
- package/dist/pipeline-purpose.d.ts.map +1 -1
- package/dist/pipeline-purpose.js +106 -10
- package/dist/pipeline-purpose.js.map +1 -1
- package/dist/public-api.d.ts +137 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +74 -0
- package/dist/public-api.js.map +1 -1
- package/dist/public-board.d.ts +276 -0
- package/dist/public-board.d.ts.map +1 -0
- package/dist/public-board.js +215 -0
- package/dist/public-board.js.map +1 -0
- package/dist/public-evidence.d.ts +30 -3
- package/dist/public-evidence.d.ts.map +1 -1
- package/dist/public-evidence.js +27 -3
- package/dist/public-evidence.js.map +1 -1
- package/dist/requests.d.ts +19 -2
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +18 -1
- package/dist/requests.js.map +1 -1
- package/dist/routes/board.d.ts +6 -2
- package/dist/routes/board.d.ts.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/public-api.d.ts +18 -0
- package/dist/routes/public-api.d.ts.map +1 -1
- package/dist/routes/public-board.d.ts +369 -0
- package/dist/routes/public-board.d.ts.map +1 -0
- package/dist/routes/public-board.js +112 -0
- package/dist/routes/public-board.js.map +1 -0
- package/dist/routes/public-evidence.d.ts +1 -0
- package/dist/routes/public-evidence.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/gate-parking.d.ts +0 -30
- package/dist/gate-parking.d.ts.map +0 -1
- package/dist/gate-parking.js +0 -58
- package/dist/gate-parking.js.map +0 -1
package/dist/public-api.js
CHANGED
|
@@ -197,6 +197,22 @@ export const publicTaskSchema = v.object({
|
|
|
197
197
|
runId: v.nullable(v.string()),
|
|
198
198
|
/** The web URL of the PR the run opened, once one exists; null otherwise. */
|
|
199
199
|
pullRequestUrl: v.nullable(v.string()),
|
|
200
|
+
/**
|
|
201
|
+
* Task ids this task WAITS FOR: it cannot start until every one of them is `done`, and the
|
|
202
|
+
* engine's start gate refuses it until they are.
|
|
203
|
+
*
|
|
204
|
+
* Served so a caller that declared an ordering can read back what the board holds, which is what
|
|
205
|
+
* makes `POST /api/v1/tasks/{taskId}/dependencies` verifiable rather than fire-and-forget. Empty
|
|
206
|
+
* for a task nothing blocks, which is the normal state.
|
|
207
|
+
*/
|
|
208
|
+
dependsOn: v.array(v.string()),
|
|
209
|
+
/**
|
|
210
|
+
* Whether merging this task's pull request STARTS the tasks that depend on it.
|
|
211
|
+
*
|
|
212
|
+
* The other half of an ordering, and the one that makes a declared chain run itself: without it a
|
|
213
|
+
* dependent is merely refused until its blocker lands, and something has to notice and start it.
|
|
214
|
+
*/
|
|
215
|
+
autoStartDependents: v.boolean(),
|
|
200
216
|
});
|
|
201
217
|
export const publicTaskListSchema = v.object({
|
|
202
218
|
tasks: v.array(publicTaskSchema),
|
|
@@ -425,6 +441,17 @@ export const updatePublicTaskSchema = v.object({
|
|
|
425
441
|
* run does not review; send the description you want alongside the new target to resolve it.
|
|
426
442
|
*/
|
|
427
443
|
fields: v.optional(descriptorFieldValuesSchema),
|
|
444
|
+
/**
|
|
445
|
+
* Whether merging this task's pull request STARTS the tasks that depend on it (the toggle
|
|
446
|
+
* {@link publicTaskSchema} reports).
|
|
447
|
+
*
|
|
448
|
+
* Here rather than on the create call because it is a property of the ORDERING, and an ordering
|
|
449
|
+
* is declared after both ends exist: a caller filing a batch of related tasks creates them all,
|
|
450
|
+
* links them with `POST /api/v1/tasks/{taskId}/dependencies`, and then decides which blockers
|
|
451
|
+
* pull their dependents along. Offering it at creation would ask for the answer at the one moment
|
|
452
|
+
* the caller cannot have it.
|
|
453
|
+
*/
|
|
454
|
+
autoStartDependents: v.optional(v.boolean()),
|
|
428
455
|
});
|
|
429
456
|
// ---------------------------------------------------------------------------
|
|
430
457
|
// Richer run projection + live stream (the task-lifecycle surface).
|
|
@@ -447,6 +474,53 @@ export const publicRunStepSchema = v.object({
|
|
|
447
474
|
progress: v.number(),
|
|
448
475
|
/** Live subtask counts while an async (container) step runs; null when none. */
|
|
449
476
|
subtasks: v.nullable(v.object({ completed: v.number(), inProgress: v.number(), total: v.number() })),
|
|
477
|
+
/**
|
|
478
|
+
* The step's prose output (the agent's final reply), or null while it has produced none.
|
|
479
|
+
*
|
|
480
|
+
* This is what a board task running an INLINE-only pipeline delivers, and until it was served
|
|
481
|
+
* here the API could not read it: `publicJob` carries a `result` because a headless job is a
|
|
482
|
+
* one-step inline run, while a board run's deliverable had to be inferred from the pull request
|
|
483
|
+
* the pipeline opened. A pipeline that opens none (a research pass, an estimate, a written
|
|
484
|
+
* assessment) produced a result readable only in the app.
|
|
485
|
+
*
|
|
486
|
+
* Served WHOLE by the POINT READ (`GET /api/v1/tasks/{taskId}/run`), which is deliberate:
|
|
487
|
+
* `publicJobResult.output` already serves the same class of content whole, and two surfaces that
|
|
488
|
+
* disagree about the same fact are worse than a large response. The size is a step's own output
|
|
489
|
+
* budget, not a log tail (`GET /api/v1/debug/runs/:runId` is where raw diagnostics live, and it
|
|
490
|
+
* reports `outputChars` for exactly this reason).
|
|
491
|
+
*
|
|
492
|
+
* The SSE stream is the one place it is not, and {@link publicRunStepSchema} `truncated` says so
|
|
493
|
+
* per step. See that field for why.
|
|
494
|
+
*/
|
|
495
|
+
output: v.nullable(v.string()),
|
|
496
|
+
/**
|
|
497
|
+
* The step's STRUCTURED result (`step.custom`), when the agent produced one; null otherwise.
|
|
498
|
+
*
|
|
499
|
+
* The counterpart of {@link publicJobResultSchema}'s `data`, and the same rule applies: what a
|
|
500
|
+
* step puts here is decided by its agent kind, so it is `unknown` on the wire rather than a
|
|
501
|
+
* shape this contract would have to keep in step with every kind a deployment registers.
|
|
502
|
+
*
|
|
503
|
+
* Null and an empty object are DIFFERENT facts: null means the step produced no structured
|
|
504
|
+
* result at all, which is the normal state for an agent whose deliverable is its prose.
|
|
505
|
+
*/
|
|
506
|
+
data: v.nullable(v.unknown()),
|
|
507
|
+
/**
|
|
508
|
+
* True when THIS PROJECTION reduced the step's deliverable for size: {@link output} is clipped
|
|
509
|
+
* to a leading preview and {@link data} is withheld as null. Absent/false ⇒ both are whole.
|
|
510
|
+
*
|
|
511
|
+
* Set only on the SSE stream (`GET /api/v1/tasks/{taskId}/events`), never on a point read. The
|
|
512
|
+
* stream re-sends the WHOLE run on every change, so carrying every step's output in every frame
|
|
513
|
+
* is quadratic in the run's own length: a late frame repeats every output produced so far, and a
|
|
514
|
+
* long pipeline turns a progress channel into a repeated bulk transfer. The platform already
|
|
515
|
+
* settles this trade the same way for the run's own `detail` JSON, which is re-serialized on
|
|
516
|
+
* every step-progress write and clips a recorded output with a `truncated` flag for it.
|
|
517
|
+
*
|
|
518
|
+
* A caller that needs the whole deliverable reads `GET /api/v1/tasks/{taskId}/run`, which serves
|
|
519
|
+
* it and every step's `data` untouched. The flag exists so a clipped preview can never be
|
|
520
|
+
* mistaken for the output itself: an absent tail and a step that wrote nothing more are
|
|
521
|
+
* different facts, and only the flag distinguishes them.
|
|
522
|
+
*/
|
|
523
|
+
truncated: v.optional(v.boolean()),
|
|
450
524
|
});
|
|
451
525
|
/**
|
|
452
526
|
* The rich external view of a task's run — per-step status/progress/subtasks, the failure
|
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,wBA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AAC,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;AAGF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,oFAAoF;IACpF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,sCAAsC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,+DAA+D;IAC/D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB;;;OAGG;IACH,KAAK,EAAE,oBAAoB;IAC3B,gGAAgG;IAChG,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,0CAA0C;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/**
|
|
3
|
+
* The repository a new service frame is backed by.
|
|
4
|
+
*
|
|
5
|
+
* `repoId` is the provider's own id for the repo, as `GET /api/v1/repos` serves it: the neutral
|
|
6
|
+
* name for what the internal projection calls `githubId`. It is deliberately not an `owner/name`
|
|
7
|
+
* pair: a repo can be renamed or transferred without changing its id, and a caller that held a name
|
|
8
|
+
* would silently create a service against a different repository after such a move.
|
|
9
|
+
*/
|
|
10
|
+
export declare const publicServiceRepoSchema: v.ObjectSchema<{
|
|
11
|
+
/** The repo's provider id, from `GET /api/v1/repos`. */
|
|
12
|
+
readonly repoId: v.NumberSchema<undefined>;
|
|
13
|
+
/**
|
|
14
|
+
* For a MONOREPO, the subdirectory (relative to the repo root) this service lives in, e.g.
|
|
15
|
+
* `packages/api`. Required when the repo is a monorepo and refused for a whole-repo service,
|
|
16
|
+
* because it is what scopes each agent's working directory: a monorepo backs one service per
|
|
17
|
+
* subdirectory, and two services claiming the same one would fight over the same subtree.
|
|
18
|
+
*/
|
|
19
|
+
readonly directory: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the repository hosts SEVERAL services. Sent with the create rather than as a separate
|
|
22
|
+
* up-front write; when supplied it is persisted on the repo, so the flag a later create reads is
|
|
23
|
+
* the one this call set. Omitted ⇒ whatever the repo already says.
|
|
24
|
+
*/
|
|
25
|
+
readonly monorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
26
|
+
}, undefined>;
|
|
27
|
+
export type PublicServiceRepo = v.InferOutput<typeof publicServiceRepoSchema>;
|
|
28
|
+
/**
|
|
29
|
+
* Create a board service (a service frame), optionally backed by a repository.
|
|
30
|
+
*
|
|
31
|
+
* Without `repo` the frame is a structural placeholder: it can hold tasks, and a run started on one
|
|
32
|
+
* of them is REFUSED, because execution resolves a task's repository by walking up to the enclosing
|
|
33
|
+
* service frame and there is nothing there. That is a legitimate intermediate state (a caller
|
|
34
|
+
* mapping out a board before its repositories exist) and it is why the field is optional rather
|
|
35
|
+
* than why it should usually be omitted.
|
|
36
|
+
*
|
|
37
|
+
* There is deliberately no `position`: see the note at the top of this file.
|
|
38
|
+
*/
|
|
39
|
+
export declare const createPublicServiceSchema: v.ObjectSchema<{
|
|
40
|
+
/**
|
|
41
|
+
* The service's name. Optional, because a repo-backed service is named after the repository (or,
|
|
42
|
+
* for a monorepo service, after its subdirectory) exactly as the app's import does, and a caller
|
|
43
|
+
* that has no better name should get that one rather than being made to invent it.
|
|
44
|
+
*/
|
|
45
|
+
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
46
|
+
/** What the service is, for the agents that read it as context. Defaults to a generated line. */
|
|
47
|
+
readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>;
|
|
48
|
+
/**
|
|
49
|
+
* The service's architectural role. Omitted ⇒ `service`.
|
|
50
|
+
*
|
|
51
|
+
* Narrower than the board's own block types on purpose: this is the set a REPOSITORY can back,
|
|
52
|
+
* which is the only kind of frame this endpoint creates. A `database` or `queue` frame documents
|
|
53
|
+
* infrastructure for the agents to read and runs nothing, so nothing here would create one.
|
|
54
|
+
*/
|
|
55
|
+
readonly type: v.OptionalSchema<v.PicklistSchema<["service", "frontend", "library", "document"], undefined>, undefined>;
|
|
56
|
+
/** The repository backing the service. Omitted ⇒ an unlinked frame (see above). */
|
|
57
|
+
readonly repo: v.OptionalSchema<v.ObjectSchema<{
|
|
58
|
+
/** The repo's provider id, from `GET /api/v1/repos`. */
|
|
59
|
+
readonly repoId: v.NumberSchema<undefined>;
|
|
60
|
+
/**
|
|
61
|
+
* For a MONOREPO, the subdirectory (relative to the repo root) this service lives in, e.g.
|
|
62
|
+
* `packages/api`. Required when the repo is a monorepo and refused for a whole-repo service,
|
|
63
|
+
* because it is what scopes each agent's working directory: a monorepo backs one service per
|
|
64
|
+
* subdirectory, and two services claiming the same one would fight over the same subtree.
|
|
65
|
+
*/
|
|
66
|
+
readonly directory: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 400, undefined>]>, undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Whether the repository hosts SEVERAL services. Sent with the create rather than as a separate
|
|
69
|
+
* up-front write; when supplied it is persisted on the repo, so the flag a later create reads is
|
|
70
|
+
* the one this call set. Omitted ⇒ whatever the repo already says.
|
|
71
|
+
*/
|
|
72
|
+
readonly monorepo: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
73
|
+
}, undefined>, undefined>;
|
|
74
|
+
}, undefined>;
|
|
75
|
+
export type CreatePublicServiceInput = v.InferOutput<typeof createPublicServiceSchema>;
|
|
76
|
+
/**
|
|
77
|
+
* A repository this workspace can back a service with, as `GET /api/v1/repos` lists it.
|
|
78
|
+
*
|
|
79
|
+
* The discovery half of {@link publicServiceRepoSchema}, and it is why service creation is usable
|
|
80
|
+
* headlessly at all: the create takes a `repoId`, and until this existed the only way to learn one
|
|
81
|
+
* was to open the app. Deliberately a small projection (enough to recognise a repository and pass
|
|
82
|
+
* it back), not a mirror of the internal projection row, which carries installation ids and
|
|
83
|
+
* sync bookkeeping that are this platform's business rather than a caller's.
|
|
84
|
+
*/
|
|
85
|
+
export declare const publicRepoSchema: v.ObjectSchema<{
|
|
86
|
+
/** The provider's id for the repo: the value to pass as `repo.repoId`. */
|
|
87
|
+
readonly repoId: v.NumberSchema<undefined>;
|
|
88
|
+
/** Which provider it lives on (`github` / `gitlab`). */
|
|
89
|
+
readonly provider: v.StringSchema<undefined>;
|
|
90
|
+
readonly owner: v.StringSchema<undefined>;
|
|
91
|
+
readonly name: v.StringSchema<undefined>;
|
|
92
|
+
/**
|
|
93
|
+
* The branch a run's work is based on and merged into, or EMPTY when the projection has not
|
|
94
|
+
* recorded one yet (a repository connected moments ago, before its first sync). Empty rather
|
|
95
|
+
* than null because there is nothing here that could invent a default, and a caller reading it
|
|
96
|
+
* to name a base needs to see that it has to ask the provider rather than assume `main`.
|
|
97
|
+
*/
|
|
98
|
+
readonly defaultBranch: v.StringSchema<undefined>;
|
|
99
|
+
/** Whether the repository is private on its provider. */
|
|
100
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
101
|
+
/** Whether the repo is flagged as hosting several services (see `repo.monorepo`). */
|
|
102
|
+
readonly monorepo: v.BooleanSchema<undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* The service this repository already backs ON THIS BOARD, or null.
|
|
105
|
+
*
|
|
106
|
+
* Present because a whole-repo repository backs at most ONE service, so a caller choosing one to
|
|
107
|
+
* create against needs to know which choices are already spent, and, more usefully, because a
|
|
108
|
+
* caller re-running its provisioning finds the service it created last time here rather than
|
|
109
|
+
* discovering it through a `409`. A monorepo answers null even when its subdirectories back
|
|
110
|
+
* services, since it can back more.
|
|
111
|
+
*
|
|
112
|
+
* Null and {@link linkedElsewhere} together are the honest answer when the service is homed on
|
|
113
|
+
* another board of the account: read the flag before treating null as "available".
|
|
114
|
+
*/
|
|
115
|
+
readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
/**
|
|
117
|
+
* True when this repository already backs a whole-repo service homed on ANOTHER board of the
|
|
118
|
+
* account, so `POST /api/v1/services` will refuse it (`reason: repo_service_homed_elsewhere`).
|
|
119
|
+
*
|
|
120
|
+
* A service is account-owned and a board can MOUNT one homed elsewhere, but every read on this
|
|
121
|
+
* API is scoped to the calling key's own workspace, so a frame homed on another board has no id
|
|
122
|
+
* this surface could hand back: it would not appear in `GET /api/v1/services` and
|
|
123
|
+
* `POST /api/v1/services/{serviceId}/tasks` would 404 on it. Hence a flag rather than a second
|
|
124
|
+
* id field — this states that the choice is spent without naming an address that does not work
|
|
125
|
+
* here. Use the board that homes the service, or a key scoped to it.
|
|
126
|
+
*/
|
|
127
|
+
readonly linkedElsewhere: v.BooleanSchema<undefined>;
|
|
128
|
+
}, undefined>;
|
|
129
|
+
export type PublicRepo = v.InferOutput<typeof publicRepoSchema>;
|
|
130
|
+
export declare const publicRepoListSchema: v.ObjectSchema<{
|
|
131
|
+
readonly repos: v.ArraySchema<v.ObjectSchema<{
|
|
132
|
+
/** The provider's id for the repo: the value to pass as `repo.repoId`. */
|
|
133
|
+
readonly repoId: v.NumberSchema<undefined>;
|
|
134
|
+
/** Which provider it lives on (`github` / `gitlab`). */
|
|
135
|
+
readonly provider: v.StringSchema<undefined>;
|
|
136
|
+
readonly owner: v.StringSchema<undefined>;
|
|
137
|
+
readonly name: v.StringSchema<undefined>;
|
|
138
|
+
/**
|
|
139
|
+
* The branch a run's work is based on and merged into, or EMPTY when the projection has not
|
|
140
|
+
* recorded one yet (a repository connected moments ago, before its first sync). Empty rather
|
|
141
|
+
* than null because there is nothing here that could invent a default, and a caller reading it
|
|
142
|
+
* to name a base needs to see that it has to ask the provider rather than assume `main`.
|
|
143
|
+
*/
|
|
144
|
+
readonly defaultBranch: v.StringSchema<undefined>;
|
|
145
|
+
/** Whether the repository is private on its provider. */
|
|
146
|
+
readonly private: v.BooleanSchema<undefined>;
|
|
147
|
+
/** Whether the repo is flagged as hosting several services (see `repo.monorepo`). */
|
|
148
|
+
readonly monorepo: v.BooleanSchema<undefined>;
|
|
149
|
+
/**
|
|
150
|
+
* The service this repository already backs ON THIS BOARD, or null.
|
|
151
|
+
*
|
|
152
|
+
* Present because a whole-repo repository backs at most ONE service, so a caller choosing one to
|
|
153
|
+
* create against needs to know which choices are already spent, and, more usefully, because a
|
|
154
|
+
* caller re-running its provisioning finds the service it created last time here rather than
|
|
155
|
+
* discovering it through a `409`. A monorepo answers null even when its subdirectories back
|
|
156
|
+
* services, since it can back more.
|
|
157
|
+
*
|
|
158
|
+
* Null and {@link linkedElsewhere} together are the honest answer when the service is homed on
|
|
159
|
+
* another board of the account: read the flag before treating null as "available".
|
|
160
|
+
*/
|
|
161
|
+
readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
162
|
+
/**
|
|
163
|
+
* True when this repository already backs a whole-repo service homed on ANOTHER board of the
|
|
164
|
+
* account, so `POST /api/v1/services` will refuse it (`reason: repo_service_homed_elsewhere`).
|
|
165
|
+
*
|
|
166
|
+
* A service is account-owned and a board can MOUNT one homed elsewhere, but every read on this
|
|
167
|
+
* API is scoped to the calling key's own workspace, so a frame homed on another board has no id
|
|
168
|
+
* this surface could hand back: it would not appear in `GET /api/v1/services` and
|
|
169
|
+
* `POST /api/v1/services/{serviceId}/tasks` would 404 on it. Hence a flag rather than a second
|
|
170
|
+
* id field — this states that the choice is spent without naming an address that does not work
|
|
171
|
+
* here. Use the board that homes the service, or a key scoped to it.
|
|
172
|
+
*/
|
|
173
|
+
readonly linkedElsewhere: v.BooleanSchema<undefined>;
|
|
174
|
+
}, undefined>, undefined>;
|
|
175
|
+
}, undefined>;
|
|
176
|
+
export type PublicRepoList = v.InferOutput<typeof publicRepoListSchema>;
|
|
177
|
+
/**
|
|
178
|
+
* Declare that a task must wait for another one.
|
|
179
|
+
*
|
|
180
|
+
* The gap it closes: an integration filing five related tasks and starting them got five runs
|
|
181
|
+
* racing against one repository, each opening a pull request against a base the others were
|
|
182
|
+
* moving. The platform has had the mechanism to serialise them (the engine's start gate refuses a
|
|
183
|
+
* task whose blockers are not `done`, and `autoStartDependents` starts a task when its blocker
|
|
184
|
+
* merges) and no way for an external caller to be told about it.
|
|
185
|
+
*
|
|
186
|
+
* The edge is stored on the DEPENDENT: `POST /api/v1/tasks/{taskId}/dependencies` says "this task
|
|
187
|
+
* waits for `dependsOnTaskId`". Both ends must be tasks (only a task ever reaches `done`, so an
|
|
188
|
+
* edge onto a service or a module would wedge the run's start gate forever), and an edge that would
|
|
189
|
+
* close a cycle is refused, so the gate and the auto-start can never deadlock.
|
|
190
|
+
*/
|
|
191
|
+
export declare const publicTaskDependencySchema: v.ObjectSchema<{
|
|
192
|
+
/** The task that must finish first. Must be a task in the same workspace, and not this one. */
|
|
193
|
+
readonly dependsOnTaskId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>;
|
|
194
|
+
}, undefined>;
|
|
195
|
+
export type PublicTaskDependencyInput = v.InferOutput<typeof publicTaskDependencySchema>;
|
|
196
|
+
/**
|
|
197
|
+
* A document attached to a task as agent context, as the task's document list serves it.
|
|
198
|
+
*
|
|
199
|
+
* Identified by `(source, externalId)` rather than by an id of its own, because that pair IS a
|
|
200
|
+
* projected document's identity: a re-import of the same page lands on the same row, which is what
|
|
201
|
+
* makes attaching one idempotent. `source` is `upload` for a body a caller carried rather than
|
|
202
|
+
* named, and such a document has no page behind it, which is why `url` is empty there rather than
|
|
203
|
+
* absent.
|
|
204
|
+
*/
|
|
205
|
+
export declare const publicAttachedDocumentSchema: v.ObjectSchema<{
|
|
206
|
+
/** Which source the document came from, or `upload` for one a caller carried inline. */
|
|
207
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
208
|
+
/** The source's stable id for the page: the value to pass back to detach it. */
|
|
209
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
210
|
+
readonly title: v.StringSchema<undefined>;
|
|
211
|
+
/** Canonical URL on the source; EMPTY for an `upload`, which has no page to link back to. */
|
|
212
|
+
readonly url: v.StringSchema<undefined>;
|
|
213
|
+
/** A short plain-text excerpt of the body (the full text reaches the run, not this list). */
|
|
214
|
+
readonly excerpt: v.StringSchema<undefined>;
|
|
215
|
+
}, undefined>;
|
|
216
|
+
export type PublicAttachedDocument = v.InferOutput<typeof publicAttachedDocumentSchema>;
|
|
217
|
+
export declare const publicAttachedDocumentListSchema: v.ObjectSchema<{
|
|
218
|
+
readonly documents: v.ArraySchema<v.ObjectSchema<{
|
|
219
|
+
/** Which source the document came from, or `upload` for one a caller carried inline. */
|
|
220
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
221
|
+
/** The source's stable id for the page: the value to pass back to detach it. */
|
|
222
|
+
readonly externalId: v.StringSchema<undefined>;
|
|
223
|
+
readonly title: v.StringSchema<undefined>;
|
|
224
|
+
/** Canonical URL on the source; EMPTY for an `upload`, which has no page to link back to. */
|
|
225
|
+
readonly url: v.StringSchema<undefined>;
|
|
226
|
+
/** A short plain-text excerpt of the body (the full text reaches the run, not this list). */
|
|
227
|
+
readonly excerpt: v.StringSchema<undefined>;
|
|
228
|
+
}, undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
export type PublicAttachedDocumentList = v.InferOutput<typeof publicAttachedDocumentListSchema>;
|
|
231
|
+
/**
|
|
232
|
+
* Attach a requirements document to a task that already exists.
|
|
233
|
+
*
|
|
234
|
+
* The same two forms creation takes ({@link publicTaskDocumentSchema}): NAME a page in a connected
|
|
235
|
+
* document source, or CARRY the text. What it adds is the moment: a task's spec routinely arrives
|
|
236
|
+
* after the task does (a ticket filed first and specified later, a PRD that lands mid-review), and
|
|
237
|
+
* until this existed the only way to attach one was to delete the task and file it again, losing
|
|
238
|
+
* the id every stored reference points at, its ticket claim (which then refuses every future filing
|
|
239
|
+
* of that ticket) and the documents it already carried.
|
|
240
|
+
*
|
|
241
|
+
* A document a DIFFERENT live task already holds is refused rather than moved: a document row
|
|
242
|
+
* carries exactly one attachment, so moving it would strip the other task of a document it was
|
|
243
|
+
* created with, with nothing in its next run reporting the absence.
|
|
244
|
+
*/
|
|
245
|
+
export declare const attachPublicTaskDocumentSchema: v.ObjectSchema<{
|
|
246
|
+
readonly document: v.VariantSchema<"kind", [v.ObjectSchema<{
|
|
247
|
+
readonly kind: v.LiteralSchema<"source", undefined>;
|
|
248
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear"], undefined>;
|
|
249
|
+
readonly ref: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
250
|
+
}, undefined>, v.ObjectSchema<{
|
|
251
|
+
readonly kind: v.LiteralSchema<"upload", undefined>;
|
|
252
|
+
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>;
|
|
253
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 100000, undefined>]>;
|
|
254
|
+
}, undefined>], undefined>;
|
|
255
|
+
}, undefined>;
|
|
256
|
+
export type AttachPublicTaskDocumentInput = v.InferOutput<typeof attachPublicTaskDocumentSchema>;
|
|
257
|
+
/**
|
|
258
|
+
* Detach a document from a task, naming it by the `(source, externalId)` pair the task's document
|
|
259
|
+
* list serves.
|
|
260
|
+
*
|
|
261
|
+
* A POST with a body rather than a `DELETE .../documents/{id}`, because a document's identity is
|
|
262
|
+
* two values and one of them is a free-form external id: a Confluence page id is fine in a path
|
|
263
|
+
* segment and a GitHub docs path (`docs/architecture/adr-0001.md`) is not, so half the sources
|
|
264
|
+
* would need escaping rules a caller has to get right to address its own document.
|
|
265
|
+
*
|
|
266
|
+
* The document itself SURVIVES: it stays in the workspace exactly as the app's own detach leaves
|
|
267
|
+
* it, so re-attaching it costs no re-import. Idempotent: detaching a document this task does not
|
|
268
|
+
* hold is a no-op rather than an error, because a caller retrying after a timeout should converge
|
|
269
|
+
* rather than have to distinguish "it was never attached" from "I already detached it".
|
|
270
|
+
*/
|
|
271
|
+
export declare const detachPublicTaskDocumentSchema: v.ObjectSchema<{
|
|
272
|
+
readonly source: v.PicklistSchema<["confluence", "notion", "github", "figma", "zeplin", "linear", "upload"], undefined>;
|
|
273
|
+
readonly externalId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 500, undefined>]>;
|
|
274
|
+
}, undefined>;
|
|
275
|
+
export type DetachPublicTaskDocumentInput = v.InferOutput<typeof detachPublicTaskDocumentSchema>;
|
|
276
|
+
//# sourceMappingURL=public-board.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-board.d.ts","sourceRoot":"","sources":["../src/public-board.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA8B5B;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB;IAClC,wD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