wicked-core-ts 0.7.3 → 0.7.4
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 +16 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -315,6 +315,22 @@ export declare class Core {
|
|
|
315
315
|
listConformanceRules(): Promise<string>
|
|
316
316
|
/** All conformance claims (governance decisions) on the store, as a JSON array. */
|
|
317
317
|
listConformanceClaims(): Promise<string>
|
|
318
|
+
/**
|
|
319
|
+
* The AW-23 / arch-R23 population/connection scoreboard — the wiki-health report that tells
|
|
320
|
+
* a POPULATED rule corpus from an ingested-once-and-decaying one: rule counts, typing
|
|
321
|
+
* coverage, connection (ref-resolution) coverage, enforcement evidence, recall volume.
|
|
322
|
+
* Resolves to the SAME JSON `wicked-core rules scoreboard --json` emits (a pretty-printed
|
|
323
|
+
* `Scoreboard` object) — one report shape for CLI operators and crew/studio consumers alike.
|
|
324
|
+
*
|
|
325
|
+
* `docsDir` mirrors the CLI's `--dir`: typing coverage is doc-side (`enforcement_class`
|
|
326
|
+
* lives in frontmatter, never on the rule node), so it needs the SAME docs root
|
|
327
|
+
* `rules ingest --dir` used; omit it and the report says `typing.available: false`,
|
|
328
|
+
* honestly, in-band — never a fake 0% or 100%. `ambiguityCap` mirrors `--ambiguity-cap`
|
|
329
|
+
* (default 5; must be ≥ 1 — fails closed on 0, like the CLI). Strictly a REPORT over a
|
|
330
|
+
* read-only connection: it never blocks the single-writer actor, and residue gating stays
|
|
331
|
+
* `rules drift`'s job.
|
|
332
|
+
*/
|
|
333
|
+
governanceScoreboard(docsDir?: string | undefined | null, ambiguityCap?: number | undefined | null): Promise<string>
|
|
318
334
|
/**
|
|
319
335
|
* Upsert a governance policy. `policy_json` is a JSON-serialized `Policy` object
|
|
320
336
|
* (fields: id, kind, applies_to, effect, trigger, severity, criteria, rule, obligations).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"smoke:all": "node smoke.mjs && node smoke-lifecycle.mjs && node smoke-terminal.mjs"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"wicked-core-ts-darwin-arm64": "0.7.
|
|
45
|
-
"wicked-core-ts-darwin-x64": "0.7.
|
|
46
|
-
"wicked-core-ts-linux-arm64-gnu": "0.7.
|
|
47
|
-
"wicked-core-ts-linux-x64-gnu": "0.7.
|
|
48
|
-
"wicked-core-ts-win32-x64-msvc": "0.7.
|
|
44
|
+
"wicked-core-ts-darwin-arm64": "0.7.4",
|
|
45
|
+
"wicked-core-ts-darwin-x64": "0.7.4",
|
|
46
|
+
"wicked-core-ts-linux-arm64-gnu": "0.7.4",
|
|
47
|
+
"wicked-core-ts-linux-x64-gnu": "0.7.4",
|
|
48
|
+
"wicked-core-ts-win32-x64-msvc": "0.7.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@napi-rs/cli": "^2.18.4"
|