wicked-crew-api-types 0.5.0 → 0.6.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.
Files changed (2) hide show
  1. package/index.d.ts +27 -0
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -399,6 +399,8 @@ export interface CoreEvent {
399
399
  // unitOutputCaptured (EVT-013)
400
400
  outputBytes?: number;
401
401
  stepStatus?: 'ok' | 'failed' | 'cancelled';
402
+ /** `unitOutputDelta` (api-types 0.5.1): one streamed chunk of a worker's live output text. */
403
+ text?: string;
402
404
  // unitPlanned enrichment fields — the wire spelling is camelCase (event_to_json);
403
405
  // the snake_case variants are kept for older daemons.
404
406
  stage?: string;
@@ -731,6 +733,22 @@ export interface UnitOutputCapturedEvent {
731
733
  governed: boolean;
732
734
  }
733
735
 
736
+ /**
737
+ * A live streamed chunk of a worker's output for one dispatch of a unit, relayed verbatim over
738
+ * `/ws` (api-types 0.5.1). High-volume live-stream frame: chunks arrive in emission order within
739
+ * one `(session, ord, attempt)` scope; `attempt` separates a re-dispatch's stream from the
740
+ * original's. The daemon's relay is allowlist-free, so this frame reaches `/ws` clients
741
+ * unmodified even before a consumer names it (`tests/ws-relay-passthrough.test.ts`).
742
+ */
743
+ export interface UnitOutputDeltaEvent {
744
+ type: 'unitOutputDelta';
745
+ session: string;
746
+ ord: number;
747
+ attempt: number;
748
+ /** The streamed output text chunk. */
749
+ text: string;
750
+ }
751
+
734
752
  /** Foundation wave: a unit was planned with full phase metadata. */
735
753
  export interface UnitPlannedEvent {
736
754
  type: 'unitPlanned';
@@ -1154,6 +1172,12 @@ export interface Project {
1154
1172
  created_at: number;
1155
1173
  /** Unix millis. */
1156
1174
  updated_at: number;
1175
+ /**
1176
+ * DES-MERGE-001 §7.1 — the wicked-interactive docs root this project speaks to; `null` ⇒
1177
+ * the shared default root (ADR-0025). Held crew-side and merged onto the engine's row at the
1178
+ * route boundary, so the wire carries ONE project shape. Always present on a read.
1179
+ */
1180
+ interactiveRoot?: string | null;
1157
1181
  [k: string]: unknown;
1158
1182
  }
1159
1183
 
@@ -1197,6 +1221,9 @@ export interface UpdateProjectBody {
1197
1221
  /** `""` clears the description. */
1198
1222
  description?: string;
1199
1223
  status?: ProjectLifecycle;
1224
+ /** DES-MERGE-001 §7.1 — bind this project to a wicked-interactive docs root.
1225
+ * `null` clears the binding back to the shared default root. */
1226
+ interactiveRoot?: string | null;
1200
1227
  }
1201
1228
 
1202
1229
  /** `POST /projects/:id/members` body. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.5.0",
4
- "description": "The wire contract of the wicked-crew daemon's /api/v1 REST surface and /ws CoreEvent frames — types only, zero runtime",
3
+ "version": "0.6.0",
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",
7
7
  "exports": {