wicked-core-ts 0.15.27 → 0.15.29
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.
- package/index.d.ts +15 -1
- 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
|
|
@@ -399,8 +407,14 @@ export declare class Core {
|
|
|
399
407
|
* edited plan as JSON (`approve=true`, `action` omitted or `edit_plan`). The engine accepts it
|
|
400
408
|
* as the next plan rev (floor phases added, never refused for being below the floor) or, if it
|
|
401
409
|
* refuses it, re-opens the gate with a new gate id.
|
|
410
|
+
*
|
|
411
|
+
* (DES-CATALOG-002 §4.6, additive.) `expectOrd` / `expectPlanRev` say which gate the answer
|
|
412
|
+
* was sent for: the engine compares them inside its serialized decision path and refuses a
|
|
413
|
+
* mismatch with an error that starts `gate_changed:`. A plan-gate SEND-BACK
|
|
414
|
+
* (`approve=false`, `action` `request_changes`, the person's words in `amend`) needs
|
|
415
|
+
* `expectPlanRev`: the lead re-plans with the note, and the next revision is held for approval.
|
|
402
416
|
*/
|
|
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>
|
|
417
|
+
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
418
|
/**
|
|
405
419
|
* Cancel a run — mark it terminally `Cancelled` and stop advancing it. Resolves to the status
|
|
406
420
|
* 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.
|
|
3
|
+
"version": "0.15.29",
|
|
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.
|
|
47
|
-
"wicked-core-ts-darwin-x64": "0.15.
|
|
48
|
-
"wicked-core-ts-linux-arm64-gnu": "0.15.
|
|
49
|
-
"wicked-core-ts-linux-x64-gnu": "0.15.
|
|
50
|
-
"wicked-core-ts-win32-x64-msvc": "0.15.
|
|
46
|
+
"wicked-core-ts-darwin-arm64": "0.15.29",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.15.29",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.15.29",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.15.29",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.15.29"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|