wicked-core-ts 0.7.34 → 0.7.36

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 +52 -2
  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
@@ -494,8 +508,10 @@ export declare class Core {
494
508
  * What a launch of `planJson` (`{ steps, touch?, override? }`) with `humanConfirm` on
495
509
  * `repoRef` (the registered repo the launch would run on) with `deliverStepJson` (the
496
510
  * launch's deliver step) would compute, persisting and publishing nothing — the launch's own
497
- * precheck, intent score, floor fill, approval matrix and planning checks. `projectId` only
498
- * matters to a preset name, so it does not change a plan's preview. For a behavioural touch
511
+ * precheck, intent score, floor fill, approval matrix and planning checks. `projectId` resolves a
512
+ * preset name and selects the project's `plan.compose` testing rules, which can raise the
513
+ * floor or refuse the preview as they would the launch (a plan pending the PA's scope reads
514
+ * no rule yet). For a behavioural touch
499
515
  * set the score reads `repoRef`'s code graph at the base a launch would start from, read
500
516
  * locally with NO fetch (the local remote-default tip, else HEAD).
501
517
  * Resolves to JSON `{ score, deterministic, reasons, destructive, band, high_risk, floor,
@@ -781,6 +797,17 @@ export declare class Core {
781
797
  * array of `ConformanceRule` objects, severity-first then id.
782
798
  */
783
799
  recallRulesPreview(queryJson: string): Promise<string>
800
+ /**
801
+ * (DC-S1, DES-decision-capture §4.2.2 / §4.7) "Considered · set aside": the ONE
802
+ * implementation of project matching crew reads (no second read transport). `query_json` is a
803
+ * JSON `RuleQuery` (language, layer, framework, severity, rule_type, steering_type, and
804
+ * `projects`: the asking run's or chat's projects); empty = no facet filters and no projects.
805
+ * Resolves to `{ in_force: ConformanceRule[], set_aside: [{ id, statement, reason:
806
+ * "out_of_scope"|"replaced"|"retired" }] }`. Read-only connection — never blocks the actor.
807
+ * Crew probes for this method before sending a query with `projects` (an older engine's
808
+ * `RuleQuery` rejects the field).
809
+ */
810
+ considerRules(queryJson: string): Promise<string>
784
811
  /**
785
812
  * Judge and record ONE brokered MCP call (DES-MCP-TOOLS-001 §6 step 3; crew's broker calls
786
813
  * this before it invokes anything). `request_json` is `{ token, call: { server, tool, args?,
@@ -816,6 +843,17 @@ export declare class Core {
816
843
  * `guard_error: …`.
817
844
  */
818
845
  previewMcpCalls(requestJson: string): Promise<string>
846
+ /**
847
+ * (EP-K1, DES-artifact-editor-plugins §6.2) Decide an artifact editor's permissions over this
848
+ * Core's policy store, recording nothing. `request_json` is `{ editorId, version, sha256 (the
849
+ * full 64-hex sha256 of the entry file), permissions: [...], project?, firstParty? }` —
850
+ * `firstParty: true` only when the hash is the one studio's bundle ships for a `wicked-*` id.
851
+ * Resolves to `{ editorId, version, sha256, project, firstParty, grants: [{ permission,
852
+ * decision: "allow"|"ask"|"deny", ruleIds, token }] }` — `token` is the ledger entry an
853
+ * operator's "allow" adds to `EDITOR-GRANTS.excludes`. Deny dominates. Rejects with
854
+ * `bad_request: …` or `guard_error: …` (an unseeded store fails closed).
855
+ */
856
+ evaluateEditorGrants(requestJson: string): Promise<string>
819
857
  /**
820
858
  * The ONE MCP tool class derivation (D-4): `annotations_json` is the tool's `tools/list`
821
859
  * annotations object (or `null`), `class_override` an operator override (`read` | `write` |
@@ -1024,6 +1062,18 @@ export declare class Subscription {
1024
1062
  * 'judge'`; `reason` the persisted bench reason, e.g. 'quota_exhausted (no success in the run)').
1025
1063
  * Emitted once per seat, when the bench is added; a later unit planned on that seat is re-seated
1026
1064
  * before it runs (`unitReassigned`). A launcher can keep the seat out of its next launches.
1065
+ * TR-W1b (additive): a CREATOR floor's repoChecksEvaluated carries `changed: {status, path}[]` —
1066
+ * every path the unit changed (its dispatch baseline tree against the tree the checks ran on,
1067
+ * repo-relative, `git diff-tree --name-status` statuses, any way of editing) — capped at 200, and
1068
+ * `changedTruncated: boolean`. Both are ABSENT when the tree did not change and on a verify floor.
1069
+ * TR-W2 (additive): governanceHookFired carries `firedPolicies: string[]` — EVERY rule the hook
1070
+ * decision fired (the claim's `policy_ids`), whatever the decision, so a fired `effect: warn` rule
1071
+ * rides an `allow` / `allow_with_conditions` frame. Always present (`[]` when none): its absence
1072
+ * means an engine that predates the field.
1073
+ * C3 (additive): elicitationCreated carries `recommended?: number` — the index into `options` of
1074
+ * the option the producer of the options recommends (the field's own JSON Schema `default`, when
1075
+ * it names a delivered option). ABSENT ⇒ nothing is preselected; `options`/`propType` stay
1076
+ * explicit nulls.
1027
1077
  */
1028
1078
  export interface CoreEventJson {
1029
1079
  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.36",
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.36",
47
+ "wicked-core-ts-darwin-x64": "0.7.36",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.7.36",
49
+ "wicked-core-ts-linux-x64-gnu": "0.7.36",
50
+ "wicked-core-ts-win32-x64-msvc": "0.7.36"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",