wicked-core-ts 0.15.24 → 0.15.26

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 +30 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -234,6 +234,14 @@ export declare class Core {
234
234
  * drop the plan and run the launch unplanned and ungated.
235
235
  */
236
236
  static supportsPlanLaunch(): boolean
237
+ /**
238
+ * (crew#1139) Whether this addon lets a `plan_approval` approval carry the operator's note:
239
+ * `confirmGate(run, true, amend)` and `confirmGate(run, true, amend, "edit_plan", undefined,
240
+ * planJson)` land `amend` on the first creator step the plan releases (else its first step),
241
+ * as `unitReworkAmended`. An older addon refuses both, so a skin keys on this static before it
242
+ * offers a note field on the plan card.
243
+ */
244
+ static supportsPlanGateNote(): boolean
237
245
  /**
238
246
  * (program DES-POWER-MODE) Whether this addon runs power mode: `LaunchOptions.power`,
239
247
  * `setPowerMode`, `raiseRigor`, `answerPowerPause` and the power events. An older addon
@@ -945,6 +953,28 @@ export declare class Core {
945
953
  * `guard_error: …`. Static, like `evaluateMcpCall`.
946
954
  */
947
955
  static listMcpTools(requestJson: string): Promise<string>
956
+ /**
957
+ * (crew#1337) Judge ONE brokered MCP call for the token's unit with the SAME evaluation
958
+ * `evaluateMcpCall` runs, WITH its arguments (an argument-triggered rule fires), and record
959
+ * NOTHING. `request_json` is `{ token, call: { server, tool, args?, annotations?,
960
+ * classOverride?, registered, kind?, carrier? } }`; resolves to the verdict `evaluateMcpCall`
961
+ * answers (`{ decision: "allow"|"ask"|"deny", subject, class, ruleIds, obligations, reason?,
962
+ * remedy?, claimId, unit, firstUseOnly? }`). crew's data gate judges a live source's call with
963
+ * it. Rejects with `invalid_token: …`, `bad_request: …` or `guard_error: …`. Static, like
964
+ * `evaluateMcpCall`.
965
+ */
966
+ static judgeMcpCall(requestJson: string): Promise<string>
967
+ /**
968
+ * (DES-RULE-CHECK-001, S1) Which in-force rules a job is checked against. `args_json` is `{ rules:
969
+ * [ConformanceRule…], job: { workflow?, steps?: [{ tokens, kind? }], kinds?, project?, languages?, frameworks?,
970
+ * layers?, diff? } }`; resolves to `{ matches: [{ rule_id, status: "applies"|"may_apply"|"not_applicable", facts:
971
+ * [{ kind, detail }] }] }`: one match per rule, none dropped, in reading order. "not_applicable" is only ever a
972
+ * recorded fact (no step of the job selects it, with the gate's literal tokens; tool tokens the MCP and editor gates
973
+ * judge per call; another project; a facet or trigger the
974
+ * job's diff does not meet); an unknown fact decides nothing. Pure: no store, no model. Rejects with
975
+ * `bad_request: …`. Static, like `evaluateMcpCall`.
976
+ */
977
+ static matchRules(argsJson: string): Promise<string>
948
978
  /**
949
979
  * (core#1018) The estate relay's scope for a token: crew's broker relays a container seat's
950
980
  * `mcp:estate/<tool>` calls to the host's estate and scopes them by this. `request_json` is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.15.24",
3
+ "version": "0.15.26",
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.15.24",
47
- "wicked-core-ts-darwin-x64": "0.15.24",
48
- "wicked-core-ts-linux-arm64-gnu": "0.15.24",
49
- "wicked-core-ts-linux-x64-gnu": "0.15.24",
50
- "wicked-core-ts-win32-x64-msvc": "0.15.24"
46
+ "wicked-core-ts-darwin-arm64": "0.15.26",
47
+ "wicked-core-ts-darwin-x64": "0.15.26",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.15.26",
49
+ "wicked-core-ts-linux-x64-gnu": "0.15.26",
50
+ "wicked-core-ts-win32-x64-msvc": "0.15.26"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",