wicked-crew-api-types 0.36.0 → 0.37.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/index.d.ts +38 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -137,6 +137,24 @@ export type RoutingInfo =
|
|
|
137
137
|
| { method: 'evaluator_distinct'; winner: string; was: string }
|
|
138
138
|
| { method: 'tool' };
|
|
139
139
|
|
|
140
|
+
/**
|
|
141
|
+
* `GET /health` (api-types 0.37.0 — the shape was previously undeclared here; `status`,
|
|
142
|
+
* `version` and `ping` are unchanged since 0.1). `capabilities` (additive) names what the
|
|
143
|
+
* running daemon + its engine addon can actually do, so a client never promises a behaviour the
|
|
144
|
+
* deployment cannot keep:
|
|
145
|
+
* - `deliverGate` — the engine pauses before the composed `deliver` phase pushes and opens the
|
|
146
|
+
* PR unless the launch said `deliverGate: 'auto'` (F-E2E-030; wicked-core-ts ≥ 0.7.24).
|
|
147
|
+
* `false` (or the whole object absent — a daemon before 0.7.33) ⇒ delivery follows verify
|
|
148
|
+
* UNATTENDED; a composer must say so instead of promising a gate, and must not send
|
|
149
|
+
* `deliverGate` (an older daemon's launch schema rejects it).
|
|
150
|
+
*/
|
|
151
|
+
export interface HealthResponse {
|
|
152
|
+
status: string;
|
|
153
|
+
version: string;
|
|
154
|
+
ping: string;
|
|
155
|
+
capabilities?: { deliverGate: boolean };
|
|
156
|
+
}
|
|
157
|
+
|
|
140
158
|
/** A run (`AgentSession`). */
|
|
141
159
|
export interface AgentSession {
|
|
142
160
|
id: string;
|
|
@@ -147,6 +165,14 @@ export interface AgentSession {
|
|
|
147
165
|
clis: string[];
|
|
148
166
|
status: SessionStatus;
|
|
149
167
|
human_confirm: HumanConfirm;
|
|
168
|
+
/**
|
|
169
|
+
* Whether the run's deliver phase may push and open its PR WITHOUT a human confirming it
|
|
170
|
+
* first (F-E2E-030; api-types 0.37.0, additive). `false` — the engine pauses before the `deliver` Tool unit
|
|
171
|
+
* whatever `human_confirm` says; `true` — the launch opted out explicitly (`deliverGate:
|
|
172
|
+
* 'auto'`). ABSENT on runs from an engine that predates the deliver gate (wicked-core-ts <
|
|
173
|
+
* 0.7.24): such an engine delivers unattended — render no gate promise for it.
|
|
174
|
+
*/
|
|
175
|
+
auto_deliver?: boolean;
|
|
150
176
|
unit_ix: number;
|
|
151
177
|
attempt: number;
|
|
152
178
|
workdir: string | null;
|
|
@@ -3000,6 +3026,18 @@ export interface LaunchRunBody {
|
|
|
3000
3026
|
* omit the field entirely against pre-0.18 servers.
|
|
3001
3027
|
*/
|
|
3002
3028
|
deliver?: 'pr' | 'none';
|
|
3029
|
+
/**
|
|
3030
|
+
* Who confirms the deliver phase (F-E2E-030; api-types 0.37.0, additive). `'human'` — the default when omitted:
|
|
3031
|
+
* the ENGINE pauses before the composed `deliver` Tool unit pushes the run branch and opens the
|
|
3032
|
+
* PR, whatever `humanConfirm` says (the push leaves the machine under the daemon's active gh
|
|
3033
|
+
* account, so it is confirmed unless the caller opts out). `'auto'` — the caller's EXPLICIT
|
|
3034
|
+
* opt-out: the push and PR follow verify unattended; a client sending it must name the posture
|
|
3035
|
+
* "auto-deliver" to its operator. `humanConfirm: 'none'` is NOT an opt-out (it is that field's
|
|
3036
|
+
* default and typo fallback). Requires wicked-core-ts ≥ 0.7.24 / crew ≥ 0.7.33 for the gate to
|
|
3037
|
+
* exist at all — read `AgentSession.auto_deliver` to learn whether the engine knows it. An
|
|
3038
|
+
* older daemon's launch schema rejects the field with a 400 — omit it against such servers.
|
|
3039
|
+
*/
|
|
3040
|
+
deliverGate?: 'human' | 'auto';
|
|
3003
3041
|
/**
|
|
3004
3042
|
* Retry lineage (DES-UX-001 §8.3, CREW-UX-3; api-types 0.8.0): the id of the run this
|
|
3005
3043
|
* launch retries. Must name an EXISTING run id — an unknown id fails the launch (400 with
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-crew-api-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.37.0",
|
|
4
4
|
"description": "The wire contract of the wicked-crew daemon's /api/v1 REST surface and /ws CoreEvent frames \u2014 types only, zero runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./index.d.ts",
|