wicked-crew-api-types 0.4.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 +42 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -258,6 +258,22 @@ export interface RosterSeat {
258
258
  * Absent-or-default reads as `active` with no message.
259
259
  */
260
260
  health?: SeatHealth;
261
+ /**
262
+ * The shell invocation that runs this seat's own interactive login flow (seat sign-in;
263
+ * wicked-core PR#278 `AgenticCli.login_invocation`). Passed through from the engine roster
264
+ * VERBATIM — the daemon never synthesizes one. The studio hosts it in a PTY terminal
265
+ * (`POST /terminals`) so every CLI's native sign-in gets one uniform surface. Absent on an
266
+ * engine predating the field (serde omits `None`) and on seats with no known login flow.
267
+ */
268
+ login_invocation?: string;
269
+ /**
270
+ * Whether the seat LOOKS signed in — a cheap file/env-presence HEURISTIC computed by the
271
+ * daemon (`seat-signin.ts`), never a spawned probe and never proof the credential still
272
+ * works. Three-valued on purpose: `true`/`false` when the seat's auth state is observable
273
+ * from files or env, `null`/absent when it is unknowable cheaply (keychain-backed seats,
274
+ * unknown seat keys, or a daemon predating the field).
275
+ */
276
+ signed_in?: boolean | null;
261
277
  [k: string]: unknown;
262
278
  }
263
279
 
@@ -383,6 +399,8 @@ export interface CoreEvent {
383
399
  // unitOutputCaptured (EVT-013)
384
400
  outputBytes?: number;
385
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;
386
404
  // unitPlanned enrichment fields — the wire spelling is camelCase (event_to_json);
387
405
  // the snake_case variants are kept for older daemons.
388
406
  stage?: string;
@@ -715,6 +733,22 @@ export interface UnitOutputCapturedEvent {
715
733
  governed: boolean;
716
734
  }
717
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
+
718
752
  /** Foundation wave: a unit was planned with full phase metadata. */
719
753
  export interface UnitPlannedEvent {
720
754
  type: 'unitPlanned';
@@ -1035,6 +1069,14 @@ export interface GitContributor {
1035
1069
  export interface SystemSettings {
1036
1070
  /** Max nodes returned by wicked-estate graph-view (default 150). */
1037
1071
  graphNodeLimit: number;
1072
+ /**
1073
+ * Base directory for the ENGINE-OWNED worker CLI config homes (the claude worker home is
1074
+ * `<root>/claude`). The daemon applies it as env `WICKED_WORKER_HOME` at boot and on every
1075
+ * settings change; the engine reads that env per worker spawn (acp_runner.rs), so a change
1076
+ * takes effect on the next spawn with no restart. Absolute path when set; `""` or absent =
1077
+ * the engine default `~/.wicked-worker`.
1078
+ */
1079
+ worker_config_root?: string;
1038
1080
  }
1039
1081
 
1040
1082
  // ── Requirements management (server-side search + overrides; crew api/requirements.ts) ──
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.4.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",