wicked-crew-api-types 0.127.0 → 0.128.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 +24 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -282,6 +282,11 @@ export interface HealthCapabilities {
282
282
  * older daemon — read as `'required'`.
283
283
  */
284
284
  qeAcceptance?: 'required' | 'off';
285
+ /**
286
+ * (api-types 0.128.0) `LaunchRunBody.primary` is accepted: a launch may name the seat that leads
287
+ * the run. ABSENT on an older daemon — do not send the field (its strict schema 400s on it).
288
+ */
289
+ launchPrimary?: boolean;
285
290
  }
286
291
 
287
292
  /** One `GET /health.warnings[]` entry (additive; wicked-core#411 / wicked-crew#497). */
@@ -4746,6 +4751,15 @@ export interface LaunchRunBody {
4746
4751
  problem: string;
4747
4752
  sessionId?: string;
4748
4753
  clisJson?: string;
4754
+ /**
4755
+ * (api-types 0.128.0; DES-TEAMING-002 §8.1) The seat that LEADS the run (the primary agent, PA):
4756
+ * a seat key from the launch roster (`clisJson`, else the daemon's default roster). The PA owns
4757
+ * every step not marked `owner: "team"`. Omitted: the engine picks one at random among the
4758
+ * eligible seats; either way the choice is recorded as `wicked.team.path.started.selection`
4759
+ * (`"chosen"` | `"random"`). A key that is not in the roster, or names a signed-out seat, is a 400.
4760
+ * Send only when `GET /health.capabilities.launchPrimary === true`.
4761
+ */
4762
+ primary?: string;
4749
4763
  entityMode?: EntityMode;
4750
4764
  humanConfirm?: string;
4751
4765
  repoRef?: string;
@@ -10081,7 +10095,11 @@ export interface McpSecretResponse {
10081
10095
  /** `POST /mcp/call`: what the garden shim sends. `token` is the worker's `WICKED_MCP_TOKEN`. */
10082
10096
  export interface McpCallBody {
10083
10097
  token: string;
10084
- /** `mcp:<server>/<tool>`. */
10098
+ /**
10099
+ * `mcp:<server>/<tool>`. The server name `estate` is reserved (wicked-core#1018): `mcp:estate/<tool>`
10100
+ * is the estate relay, a container seat's way to its run's estate (the read-only graph, memory,
10101
+ * knowledge and rules lookups, and `proposal.submit`), scoped by the daemon to the token's run.
10102
+ */
10085
10103
  subject: string;
10086
10104
  /** The tool's arguments (a JSON object); absent = `{}`. */
10087
10105
  args?: Record<string, unknown>;
@@ -10118,7 +10136,11 @@ export interface McpCallResponse {
10118
10136
  subject: string;
10119
10137
  /** The call record's span id (`GET /mcp/usage` and the run's Governance panel resolve it). */
10120
10138
  callId: string | null;
10121
- /** The scrubbed `tools/call` result — only when `outcome` is `ok`. */
10139
+ /**
10140
+ * The scrubbed `tools/call` result — only when `outcome` is `ok`. For `mcp:estate/<tool>`, a
10141
+ * JSON-RPC error estate answered (e.g. `-32602`, fix the arguments) is a tool error that keeps
10142
+ * its code: `{ content, isError: true, rpcError: { code, message } }`.
10143
+ */
10122
10144
  result?: Record<string, unknown>;
10123
10145
  /** The rules or gates that decided (deny, ask, withheld). */
10124
10146
  ruleIds: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-crew-api-types",
3
- "version": "0.127.0",
3
+ "version": "0.128.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",