wicked-crew-api-types 0.7.0 → 0.8.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 +26 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -161,6 +161,23 @@ export interface AgentSession {
161
161
  archived_at: number | null;
162
162
  /** Optional operator note recorded at archival. */
163
163
  archive_note: string | null;
164
+ /**
165
+ * The project this run is filed into (DES-UX-001 §8.2, CREW-UX-2; api-types 0.8.0) —
166
+ * populated by the crew server from the membership record at DTO assembly on BOTH
167
+ * `GET /runs` and `GET /runs/:id`, so clients no longer re-derive the run→project join.
168
+ *
169
+ * `null` = genuinely unfiled (the synthesized `default` project); ABSENT = a pre-0.8.0
170
+ * server that never joins. Read with `== null` only if "unfiled" and "old server" may
171
+ * collapse for your surface; a project chip should render only on `typeof === 'string'`.
172
+ */
173
+ project_id?: string | null;
174
+ /**
175
+ * Retry lineage (DES-UX-001 §8.3, CREW-UX-3; api-types 0.8.0): the id of the run this run
176
+ * was launched as a retry of (`LaunchRunBody.retryOf`, validated at launch to name an
177
+ * existing run). ABSENT — never `null` — when the run is not a retry: absence is the one
178
+ * spelling of "no lineage", so `'retry_of' in session` and `!== undefined` agree.
179
+ */
180
+ retry_of?: string;
164
181
  }
165
182
 
166
183
  /** An ordered unit of work within a run (`WorkUnit`). */
@@ -931,6 +948,15 @@ export interface LaunchRunBody {
931
948
  * field is forward-additive on the wire (DES-STUDIO-001 §5.1).
932
949
  */
933
950
  deliver?: 'pr';
951
+ /**
952
+ * Retry lineage (DES-UX-001 §8.3, CREW-UX-3; api-types 0.8.0): the id of the run this
953
+ * launch retries. Must name an EXISTING run id — an unknown id fails the launch (400 with
954
+ * a named error), never a silently unrecorded lineage. The daemon persists it, echoes it
955
+ * as `AgentSession.retry_of`, and carries it in the `run.launched` audit entry's detail,
956
+ * so provenance renders "retry of {id}" from the system of record, not prompt equality.
957
+ * Omit when the launch is not a retry.
958
+ */
959
+ retryOf?: string;
934
960
  }
935
961
 
936
962
  // ── Governance types (crew#40/41) ──────────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.7.0",
3
+ "version": "0.8.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",