wicked-core-ts 0.15.28 → 0.15.30

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 +22 -5
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -242,6 +242,14 @@ export declare class Core {
242
242
  * offers a note field on the plan card.
243
243
  */
244
244
  static supportsPlanGateNote(): boolean
245
+ /**
246
+ * (DES-CATALOG-002 §4.6) Whether this addon takes `confirmGate`'s trailing `expectOrd` /
247
+ * `expectPlanRev` (checked inside the engine: a stale answer is refused `gate_changed:`) and
248
+ * the plan-gate SEND-BACK: `confirmGate(run, false, note, "request_changes", …, planRev)` at a
249
+ * `plan_approval` gate has the lead re-plan with the note and holds the next revision for
250
+ * approval. napi drops undeclared trailing arguments, so a skin keys on this static first.
251
+ */
252
+ static supportsPlanSendBack(): boolean
245
253
  /**
246
254
  * (program DES-POWER-MODE) Whether this addon runs power mode: `LaunchOptions.power`,
247
255
  * `setPowerMode`, `raiseRigor`, `answerPowerPause` and the power events. An older addon
@@ -390,17 +398,26 @@ export declare class Core {
390
398
  * decision, and it is recorded on the run plus an `intentAmended` event. It is the only arm
391
399
  * that can descope a run mid-flight; refused at a plan or team gate, and with empty text.
392
400
  *
393
- * (DES-RULE-CHECK-001 S2, additive.) At a `rules_unchecked` gate (a steering rule no judge
394
- * ruled on): `retry_rules` (`approve=true`, no `amend`) re-runs the rule check on the same work,
395
- * and `skip_rules` (`approve=true`, `amend` = JSON `[{"id", "reason"}]`) skips unchecked rules,
396
- * each with its reason, then re-runs it. The step does not run again; refused at any other gate.
401
+ * (DES-RULE-CHECK-001 S2 + rev 2 A.4, additive.) Wherever a rule layer (`rules_unchecked`
402
+ * or `rule_check`) is in the unit's denial record, as the winning denial or behind it (a
403
+ * reviewer's FAIL, `review_adjudication` included): `retry_rules` (`approve=true`, no
404
+ * `amend`) re-runs the rule check on the same work, and `skip_rules` (`approve=true`,
405
+ * `amend` = JSON `[{"id", "reason"}]`) skips unchecked or disputed rules (never a broken
406
+ * one), each with its reason, then re-runs it. The step does not run again; refused when no
407
+ * rule layer holds the unit.
397
408
  *
398
409
  * (DES-TEAMING-002 T3, additive.) `planJson` answers a `plan_approval` gate WITH AN EDIT: the
399
410
  * edited plan as JSON (`approve=true`, `action` omitted or `edit_plan`). The engine accepts it
400
411
  * as the next plan rev (floor phases added, never refused for being below the floor) or, if it
401
412
  * refuses it, re-opens the gate with a new gate id.
413
+ *
414
+ * (DES-CATALOG-002 §4.6, additive.) `expectOrd` / `expectPlanRev` say which gate the answer
415
+ * was sent for: the engine compares them inside its serialized decision path and refuses a
416
+ * mismatch with an error that starts `gate_changed:`. A plan-gate SEND-BACK
417
+ * (`approve=false`, `action` `request_changes`, the person's words in `amend`) needs
418
+ * `expectPlanRev`: the lead re-plans with the note, and the next revision is held for approval.
402
419
  */
403
- confirmGate(runId: string, approve: boolean, amend?: string | undefined | null, action?: string | undefined | null, amendScope?: string | undefined | null, planJson?: string | undefined | null, actor?: string | undefined | null): Promise<string>
420
+ confirmGate(runId: string, approve: boolean, amend?: string | undefined | null, action?: string | undefined | null, amendScope?: string | undefined | null, planJson?: string | undefined | null, actor?: string | undefined | null, expectOrd?: number | undefined | null, expectPlanRev?: number | undefined | null): Promise<string>
404
421
  /**
405
422
  * Cancel a run — mark it terminally `Cancelled` and stop advancing it. Resolves to the status
406
423
  * token. Safe whether the run is executing or paused.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.15.28",
3
+ "version": "0.15.30",
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.28",
47
- "wicked-core-ts-darwin-x64": "0.15.28",
48
- "wicked-core-ts-linux-arm64-gnu": "0.15.28",
49
- "wicked-core-ts-linux-x64-gnu": "0.15.28",
50
- "wicked-core-ts-win32-x64-msvc": "0.15.28"
46
+ "wicked-core-ts-darwin-arm64": "0.15.30",
47
+ "wicked-core-ts-darwin-x64": "0.15.30",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.15.30",
49
+ "wicked-core-ts-linux-x64-gnu": "0.15.30",
50
+ "wicked-core-ts-win32-x64-msvc": "0.15.30"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",