wicked-core-ts 0.7.34 → 0.7.35

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 +48 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -114,6 +114,20 @@ export interface LaunchOptions {
114
114
  * `deliver` step) and put in the floor. Without a plan or preset the launch is REJECTED.
115
115
  */
116
116
  deliverStepJson?: string
117
+ /**
118
+ * (EP-K3) Seats never to convene as a JUDGE on this run — cli keys or seat instances
119
+ * (`claude#2`). UNIONED into the engine's computed exclusion (the work author, the team
120
+ * monitors), so it can only narrow the judge choice. Omit for today's behaviour.
121
+ */
122
+ excludeSeats?: Array<string>
123
+ /**
124
+ * (WT-C2) The run's evidence root — an absolute directory the launcher minted for this run
125
+ * (`<home>/.wicked/walkthroughs/<runId>`). The walkthrough author writes under
126
+ * `<root>/author/<step>/` (list `<root>/author` in `extraWriteRoots`); the jailed
127
+ * `walkthrough_review` Tool writes `<root>/<step>/`. Validated like a write root. Omit and no
128
+ * walkthrough can pass on the run.
129
+ */
130
+ evidenceRoot?: string
117
131
  }
118
132
  /**
119
133
  * A handle to a wicked-core runtime. Construct with [`Core::spawn`] (production engine: real
@@ -781,6 +795,17 @@ export declare class Core {
781
795
  * array of `ConformanceRule` objects, severity-first then id.
782
796
  */
783
797
  recallRulesPreview(queryJson: string): Promise<string>
798
+ /**
799
+ * (DC-S1, DES-decision-capture §4.2.2 / §4.7) "Considered · set aside": the ONE
800
+ * implementation of project matching crew reads (no second read transport). `query_json` is a
801
+ * JSON `RuleQuery` (language, layer, framework, severity, rule_type, steering_type, and
802
+ * `projects`: the asking run's or chat's projects); empty = no facet filters and no projects.
803
+ * Resolves to `{ in_force: ConformanceRule[], set_aside: [{ id, statement, reason:
804
+ * "out_of_scope"|"replaced"|"retired" }] }`. Read-only connection — never blocks the actor.
805
+ * Crew probes for this method before sending a query with `projects` (an older engine's
806
+ * `RuleQuery` rejects the field).
807
+ */
808
+ considerRules(queryJson: string): Promise<string>
784
809
  /**
785
810
  * Judge and record ONE brokered MCP call (DES-MCP-TOOLS-001 §6 step 3; crew's broker calls
786
811
  * this before it invokes anything). `request_json` is `{ token, call: { server, tool, args?,
@@ -816,6 +841,17 @@ export declare class Core {
816
841
  * `guard_error: …`.
817
842
  */
818
843
  previewMcpCalls(requestJson: string): Promise<string>
844
+ /**
845
+ * (EP-K1, DES-artifact-editor-plugins §6.2) Decide an artifact editor's permissions over this
846
+ * Core's policy store, recording nothing. `request_json` is `{ editorId, version, sha256 (the
847
+ * full 64-hex sha256 of the entry file), permissions: [...], project?, firstParty? }` —
848
+ * `firstParty: true` only when the hash is the one studio's bundle ships for a `wicked-*` id.
849
+ * Resolves to `{ editorId, version, sha256, project, firstParty, grants: [{ permission,
850
+ * decision: "allow"|"ask"|"deny", ruleIds, token }] }` — `token` is the ledger entry an
851
+ * operator's "allow" adds to `EDITOR-GRANTS.excludes`. Deny dominates. Rejects with
852
+ * `bad_request: …` or `guard_error: …` (an unseeded store fails closed).
853
+ */
854
+ evaluateEditorGrants(requestJson: string): Promise<string>
819
855
  /**
820
856
  * The ONE MCP tool class derivation (D-4): `annotations_json` is the tool's `tools/list`
821
857
  * annotations object (or `null`), `class_override` an operator override (`read` | `write` |
@@ -1024,6 +1060,18 @@ export declare class Subscription {
1024
1060
  * 'judge'`; `reason` the persisted bench reason, e.g. 'quota_exhausted (no success in the run)').
1025
1061
  * Emitted once per seat, when the bench is added; a later unit planned on that seat is re-seated
1026
1062
  * before it runs (`unitReassigned`). A launcher can keep the seat out of its next launches.
1063
+ * TR-W1b (additive): a CREATOR floor's repoChecksEvaluated carries `changed: {status, path}[]` —
1064
+ * every path the unit changed (its dispatch baseline tree against the tree the checks ran on,
1065
+ * repo-relative, `git diff-tree --name-status` statuses, any way of editing) — capped at 200, and
1066
+ * `changedTruncated: boolean`. Both are ABSENT when the tree did not change and on a verify floor.
1067
+ * TR-W2 (additive): governanceHookFired carries `firedPolicies: string[]` — EVERY rule the hook
1068
+ * decision fired (the claim's `policy_ids`), whatever the decision, so a fired `effect: warn` rule
1069
+ * rides an `allow` / `allow_with_conditions` frame. Always present (`[]` when none): its absence
1070
+ * means an engine that predates the field.
1071
+ * C3 (additive): elicitationCreated carries `recommended?: number` — the index into `options` of
1072
+ * the option the producer of the options recommends (the field's own JSON Schema `default`, when
1073
+ * it names a delivered option). ABSENT ⇒ nothing is preselected; `options`/`propType` stay
1074
+ * explicit nulls.
1027
1075
  */
1028
1076
  export interface CoreEventJson {
1029
1077
  type: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.7.34",
3
+ "version": "0.7.35",
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.7.34",
47
- "wicked-core-ts-darwin-x64": "0.7.34",
48
- "wicked-core-ts-linux-arm64-gnu": "0.7.34",
49
- "wicked-core-ts-linux-x64-gnu": "0.7.34",
50
- "wicked-core-ts-win32-x64-msvc": "0.7.34"
46
+ "wicked-core-ts-darwin-arm64": "0.7.35",
47
+ "wicked-core-ts-darwin-x64": "0.7.35",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.7.35",
49
+ "wicked-core-ts-linux-x64-gnu": "0.7.35",
50
+ "wicked-core-ts-win32-x64-msvc": "0.7.35"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",