wicked-core-ts 0.7.41 → 0.7.43
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 +47 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -743,6 +743,19 @@ export declare class Core {
|
|
|
743
743
|
* call; no process restart required.
|
|
744
744
|
*/
|
|
745
745
|
registerWorkflow(json: string): Promise<string>
|
|
746
|
+
/**
|
|
747
|
+
* (core#677) Vault a deterministic validator the host authored — `criterion` and a POSIX
|
|
748
|
+
* shell `script` that exits 0 iff it holds — UNAPPROVED, resolving to its content-addressed
|
|
749
|
+
* pin. Rejects `bad_request: …` on an empty criterion/script or a script the run-time
|
|
750
|
+
* backstop refuses. Approve it with `approveValidator`; a def pins the APPROVED pin.
|
|
751
|
+
*/
|
|
752
|
+
vaultValidator(criterion: string, script: string): Promise<string>
|
|
753
|
+
/**
|
|
754
|
+
* (core#677) Approve a vaulted validator (the audited step) and resolve to the APPROVED pin
|
|
755
|
+
* a workflow def's `validator_pin` names. Rejects `not_found: …` on an unknown pin. A def
|
|
756
|
+
* pinning an unapproved or unvaulted pin still fails its launch at plan time.
|
|
757
|
+
*/
|
|
758
|
+
approveValidator(pin: string): Promise<string>
|
|
746
759
|
/**
|
|
747
760
|
* Recall which conformance rules apply to the given `query_json` (a JSON-serialized
|
|
748
761
|
* `RuleQuery` — fields: language, layer, framework, severity, rule_type, steering_type;
|
|
@@ -776,6 +789,15 @@ export declare class Core {
|
|
|
776
789
|
* needs no `Core` handle.
|
|
777
790
|
*/
|
|
778
791
|
static evaluateMcpCall(requestJson: string): Promise<string>
|
|
792
|
+
/**
|
|
793
|
+
* (core#669, DES-MCP-TOOLS-001 decision 2) Record that a brokered REST call left its pinned
|
|
794
|
+
* host (crew's broker calls this on `RestBoundaryError`, after `evaluateMcpCall` allowed it).
|
|
795
|
+
* `request_json` is `{ token, subject, reason }`; appends a unit-FATAL deny claim under rule
|
|
796
|
+
* `engine:mcp-rest-boundary` (not the advisory `mcp-deny:` class) and resolves to
|
|
797
|
+
* `{ claimId }`. Rejects with `invalid_token: …`, `bad_request: …` or `guard_error: …` — the
|
|
798
|
+
* broker then refuses the call with `guard_error` (D-3). Static, like `evaluateMcpCall`.
|
|
799
|
+
*/
|
|
800
|
+
static recordMcpBoundaryEscape(requestJson: string): Promise<string>
|
|
779
801
|
/**
|
|
780
802
|
* The unit's visible MCP tool list (DES-MCP-TOOLS-001 §8 `GET /mcp/tools?token=`; slice S4,
|
|
781
803
|
* the garden shim's `list`). `request_json` is `{ token, calls: [{ server, tool, annotations?,
|
|
@@ -893,6 +915,9 @@ export declare class Core {
|
|
|
893
915
|
* `newCli` is either a CLI key string (re-dispatch immediately to that CLI) or `null` (re-run
|
|
894
916
|
* the council and let it pick). Returns `"ok"` when the command has been queued; the
|
|
895
917
|
* [`CoreEvent::UnitReassigned`] event confirms the reassignment.
|
|
918
|
+
*
|
|
919
|
+
* (core#773) On a run parked at a gate, a named `newCli` re-seats the cursor unit without
|
|
920
|
+
* dispatching it (the attempt does not move); approving the gate then runs it once, there.
|
|
896
921
|
*/
|
|
897
922
|
reassignUnit(runId: string, ord: number, newCli?: string | undefined | null): Promise<unknown>
|
|
898
923
|
}
|
|
@@ -1030,6 +1055,28 @@ export declare class Subscription {
|
|
|
1030
1055
|
* the option the producer of the options recommends (the field's own JSON Schema `default`, when
|
|
1031
1056
|
* it names a delivered option). ABSENT ⇒ nothing is preselected; `options`/`propType` stay
|
|
1032
1057
|
* explicit nulls.
|
|
1058
|
+
* core#412 (additive — a new `type` value): cliUsageUnreported {session, ord, attempt, cli} — an
|
|
1059
|
+
* agent unit whose seat reported NO usage for that attempt; emitted where cliUsage would be, so a
|
|
1060
|
+
* burn view shows the unit as UNREPORTED, never as $0.
|
|
1061
|
+
* core#554 (additive): every unitContextInjected.priorUnits[] item carries `deliveredBytes`
|
|
1062
|
+
* (the size the worker received, after the carriers' shared prior-context clip) and `clipped`
|
|
1063
|
+
* (boolean). `outputBytes` stays the pre-clip size; a clipped operator note now says so.
|
|
1064
|
+
* core#651 (a new VALUE): unitReworkAmended.scope can read `'floor_auto_retry'` — the one automatic
|
|
1065
|
+
* round a creator gets when its own repo-checks floor ran and failed (the failing tails are the
|
|
1066
|
+
* amendment); WorkUnit gains `floor_auto_retries` (number, absent while 0).
|
|
1067
|
+
* core#686 (additive): WorkUnit gains `instructions` (the phase's authored card, absent when
|
|
1068
|
+
* none), `amendments` (approved intent-amendment texts, absent when empty) and
|
|
1069
|
+
* `structured_description` (true on units planned with those fields; absent on older records,
|
|
1070
|
+
* which a reader re-parses from `description` as legacy).
|
|
1071
|
+
* core#591 (additive): unitReassigned carries `distinctnessFallback` ('creator_seat' |
|
|
1072
|
+
* 'same_cli_instance' | null), as unitDistributed does — the new seat is another INSTANCE of (or
|
|
1073
|
+
* the very seat of) the CLI that created the work the unit depends on.
|
|
1074
|
+
* core#759 (additive): an awaitingHuman with `gateKind: 'team_dispute'` carries
|
|
1075
|
+
* `choices: ['approve', 'request_changes', 'reject']` and `recommended: 1` (send the finding
|
|
1076
|
+
* back). Every other gate kind carries NEITHER key (absent, never null).
|
|
1077
|
+
* core#759 follow-up (additive): that team_dispute awaitingHuman also carries `findingIds`
|
|
1078
|
+
* (the unresolved HIGH finding ids the dispute is about, as `gate.opened` names them); absent
|
|
1079
|
+
* for every other gate kind.
|
|
1033
1080
|
*/
|
|
1034
1081
|
export interface CoreEventJson {
|
|
1035
1082
|
type: string
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.43",
|
|
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.
|
|
47
|
-
"wicked-core-ts-darwin-x64": "0.7.
|
|
48
|
-
"wicked-core-ts-linux-arm64-gnu": "0.7.
|
|
49
|
-
"wicked-core-ts-linux-x64-gnu": "0.7.
|
|
50
|
-
"wicked-core-ts-win32-x64-msvc": "0.7.
|
|
46
|
+
"wicked-core-ts-darwin-arm64": "0.7.43",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.7.43",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.7.43",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.7.43",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.7.43"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|