wicked-core-ts 0.15.25 → 0.15.27
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 +18 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -390,6 +390,11 @@ export declare class Core {
|
|
|
390
390
|
* decision, and it is recorded on the run plus an `intentAmended` event. It is the only arm
|
|
391
391
|
* that can descope a run mid-flight; refused at a plan or team gate, and with empty text.
|
|
392
392
|
*
|
|
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.
|
|
397
|
+
*
|
|
393
398
|
* (DES-TEAMING-002 T3, additive.) `planJson` answers a `plan_approval` gate WITH AN EDIT: the
|
|
394
399
|
* edited plan as JSON (`approve=true`, `action` omitted or `edit_plan`). The engine accepts it
|
|
395
400
|
* as the next plan rev (floor phases added, never refused for being below the floor) or, if it
|
|
@@ -964,6 +969,19 @@ export declare class Core {
|
|
|
964
969
|
* `evaluateMcpCall`.
|
|
965
970
|
*/
|
|
966
971
|
static judgeMcpCall(requestJson: string): Promise<string>
|
|
972
|
+
/**
|
|
973
|
+
* (DES-RULE-CHECK-001, S1) Which in-force rules a job is checked against. `args_json` is `{ rules:
|
|
974
|
+
* [ConformanceRule…], job: { workflow?, steps?: [{ tokens, kind? }], kinds?, project?, languages?, frameworks?,
|
|
975
|
+
* layers?, diff? } }`; resolves to `{ matches: [{ rule_id, status: "applies"|"may_apply"|"not_applicable", facts:
|
|
976
|
+
* [{ kind, detail }] }] }`: one match per rule, none dropped, in reading order. "not_applicable" is only ever a
|
|
977
|
+
* recorded fact (no step of the job selects it, with the gate's literal tokens; tool tokens the MCP and editor gates
|
|
978
|
+
* judge per call; another project; a facet or trigger the
|
|
979
|
+
* job's diff does not meet); an unknown fact decides nothing. Pure: no store, no model. Rejects with
|
|
980
|
+
* `bad_request: …`. Static, like `evaluateMcpCall`. (DES-RULE-CHECK-001) `job.repo` (the job's repository
|
|
981
|
+
* id or name) and `job.paths` (changed files): a rule whose `statement` or `source_ref` document names
|
|
982
|
+
* the repository, or whose statement names a changed file, applies — so send each rule's `statement`.
|
|
983
|
+
*/
|
|
984
|
+
static matchRules(argsJson: string): Promise<string>
|
|
967
985
|
/**
|
|
968
986
|
* (core#1018) The estate relay's scope for a token: crew's broker relays a container seat's
|
|
969
987
|
* `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.
|
|
3
|
+
"version": "0.15.27",
|
|
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.27",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.15.27",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.15.27",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.15.27",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.15.27"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|