wicked-core-ts 0.11.3 → 0.12.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 +11 -3
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -191,9 +191,11 @@ export declare class Core {
191
191
  * (core#769, crew Agents page A5) The engine's worktree bench as a pure predicate: given a
192
192
  * JSON array of `AgenticCli` seats (the engine-shaped roster, as `launchRun`'s `clisJson`) and
193
193
  * whether the run is BOUND to one repository, the JSON array of `BenchedSeat` (`{cli, reason,
194
- * source: "launcher"}`) the launch would bench before routing. Reads
195
- * `WICKED_CODEX_WORKTREE_OK` at call time, as the launch does. An addon without this static
196
- * predates it; crew keys on its presence.
194
+ * source: "launcher"}`) the launch would bench before routing: on the interim host floor
195
+ * every seat that cannot keep a per-call check there (anything but claude and a bounded codex),
196
+ * bound or not (C5); on a bound run every codex seat. Reads `WICKED_CODEX_WORKTREE_OK` and
197
+ * `WICKED_SEAT_FLOOR` at call time, as the launch does (the container floor keeps codex). An
198
+ * addon without this static predates it; crew keys on its presence.
197
199
  */
198
200
  static worktreeBenched(clisJson: string, bound: boolean): string
199
201
  /**
@@ -370,6 +372,12 @@ export declare class Core {
370
372
  * token. Safe whether the run is executing or paused.
371
373
  */
372
374
  cancelRun(runId: string): Promise<string>
375
+ /** The unit a bound MCP token belongs to: `{runId, ord, attempt, seat, timeoutSecs}` (JSON). */
376
+ askUnit(token: string): Promise<string>
377
+ /** Open an operator question with `{token, question, choices?, recommended?}`. */
378
+ openAsk(requestJson: string): Promise<string>
379
+ /** Close an unanswered question (`timeout` or `teardown`); false if already resolved. */
380
+ closeAsk(elicitationId: string, reason: string): Promise<boolean>
373
381
  /**
374
382
  * Resolve a pending ACP elicitation. `action` must be `"accept"`, `"decline"`, or `"cancel"`;
375
383
  * `response` is the human's typed/selected value as a JSON-typed value — pass `null` for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.11.3",
3
+ "version": "0.12.1",
4
4
  "description": "Node/TypeScript bindings (napi-rs) for wicked-core: drive the in-process orchestration engine from JS/TS.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,11 +43,11 @@
43
43
  "typecheck": "tsc --noEmit -p types-test/tsconfig.json"
44
44
  },
45
45
  "optionalDependencies": {
46
- "wicked-core-ts-darwin-arm64": "0.11.3",
47
- "wicked-core-ts-darwin-x64": "0.11.3",
48
- "wicked-core-ts-linux-arm64-gnu": "0.11.3",
49
- "wicked-core-ts-linux-x64-gnu": "0.11.3",
50
- "wicked-core-ts-win32-x64-msvc": "0.11.3"
46
+ "wicked-core-ts-darwin-arm64": "0.12.1",
47
+ "wicked-core-ts-darwin-x64": "0.12.1",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.12.1",
49
+ "wicked-core-ts-linux-x64-gnu": "0.12.1",
50
+ "wicked-core-ts-win32-x64-msvc": "0.12.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",