wicked-crew-api-types 0.5.0 → 0.5.1

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 +18 -0
  2. package/package.json +1 -1
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "The wire contract of the wicked-crew daemon's /api/v1 REST surface and /ws CoreEvent frames — types only, zero runtime",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",