wicked-core-ts 0.15.25 → 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 +11 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -964,6 +964,17 @@ export declare class Core {
964
964
  * `evaluateMcpCall`.
965
965
  */
966
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>
967
978
  /**
968
979
  * (core#1018) The estate relay's scope for a token: crew's broker relays a container seat's
969
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.25",
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.25",
47
- "wicked-core-ts-darwin-x64": "0.15.25",
48
- "wicked-core-ts-linux-arm64-gnu": "0.15.25",
49
- "wicked-core-ts-linux-x64-gnu": "0.15.25",
50
- "wicked-core-ts-win32-x64-msvc": "0.15.25"
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",