wicked-core-ts 0.7.24 → 0.7.25
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 +38 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -118,6 +118,21 @@ export declare class Core {
|
|
|
118
118
|
* `sinceBoot` from a boot baseline; an addon without this static answers `null` there.
|
|
119
119
|
*/
|
|
120
120
|
static eventStoreCount(dbPath: string): Promise<string>
|
|
121
|
+
/**
|
|
122
|
+
* The state-home PREFLIGHT crew runs at `serve` (wicked-core#411 / wicked-crew#497): survey
|
|
123
|
+
* the state home the worker Read fence classifies and report every entry its registry cannot
|
|
124
|
+
* classify — the condition that would otherwise refuse EVERY worker launch, discovered today
|
|
125
|
+
* at the run's first worker after a planning council and the intake gate. `snapshotPath` is
|
|
126
|
+
* the published generation crew hands the engine (`WICKED_SKILLS_SNAPSHOT`; the state home is
|
|
127
|
+
* derived from its shape), or absent when none is handed — the store's parent (`dbPath`) is
|
|
128
|
+
* then surveyed for information. Resolves to the JSON `{ stateHome, derivedFrom:
|
|
129
|
+
* 'snapshot' | 'db' | null, unregistered: [{ name, path, level }], refusesLaunches, error,
|
|
130
|
+
* remedy }` — `refusesLaunches` is true exactly when a handed snapshot derives a state home
|
|
131
|
+
* with unregistered entries, which is also what `launchRun` now rejects synchronously with a
|
|
132
|
+
* typed configuration error (no session persisted). Read-only; never touches the process
|
|
133
|
+
* environment. An addon without this static answers `null` in crew's `GET /diagnostics.stateHome`.
|
|
134
|
+
*/
|
|
135
|
+
static preflightStateHome(snapshotPath: string | undefined | null, dbPath: string): Promise<string>
|
|
121
136
|
/**
|
|
122
137
|
* Replay a dead-letter outbox — the emit seam's NDJSON spool (`WICKED_APPS_EMIT_DEADLETTER`)
|
|
123
138
|
* of governance events it could not store — into the estate store at `dbPath`, writing each
|
|
@@ -696,6 +711,21 @@ export declare class Subscription {
|
|
|
696
711
|
* the assigned seat runs under — 'advisory' = no OS write boundary on the seat record, command-text
|
|
697
712
|
* fences + worktree guard only); worktreeRetained {session, path, reason} (a terminal run's worktree
|
|
698
713
|
* kept because it holds uncommitted work — cancel included).
|
|
714
|
+
* core#468 (additive): unitDispatched carries `baseSkill: {name, role} | null` — the run's
|
|
715
|
+
* role-keyed BASE skill directive (`role` is 'creator' | 'evaluator' | 'neutral'), null when the
|
|
716
|
+
* run declares none; the generation it is handed from is the same unit's skillsSnapshotHanded.gen.
|
|
717
|
+
* core#467/#469/F-RC2-009 additions (all additive): repoChecksEvaluated carries `outcome: 'passed' |
|
|
718
|
+
* 'failed' | 'timed_out' | 'not_run'` (a timed-out floor denies under source 'repo_checks_timeout',
|
|
719
|
+
* never 'repo_checks'), `floor: 'creator' | 'verify'`, `claim: {phrase, check, verdict} | null` and
|
|
720
|
+
* `env: {home, tmpdir, locale, network, sandboxLevel, path, passthrough} | null`; every `checks[]`
|
|
721
|
+
* entry carries `outcome`, `boundS`, `boundNote`, `failureIds`, `classification: 'regression' |
|
|
722
|
+
* 'pre_existing_in_sandbox' | 'floor_env_mismatch' | null` (only a regression denies), `preExisting`,
|
|
723
|
+
* `regressions` and `base: {head, cached, run, error} | null` (the same check run on the run base).
|
|
724
|
+
* core#461 (additive): unitDistributed.distinctnessFallback ('creator_seat' | null — the
|
|
725
|
+
* evaluator ≠ creator fallback as a field, see UnitDistributedEventJson); gateEscalated.condition
|
|
726
|
+
* gains the class 'dead_seat' (denialSource 'dead_seat'): a worker exited on a dead-seat refusal
|
|
727
|
+
* (signed out / quota / not installed) and no eligible seat remains — the attended run pauses at
|
|
728
|
+
* the escalation gate instead of failing.
|
|
699
729
|
*/
|
|
700
730
|
export interface CoreEventJson {
|
|
701
731
|
type: string
|
|
@@ -735,6 +765,14 @@ export interface UnitDistributedEventJson extends CoreEventJson {
|
|
|
735
765
|
* `routingMethod` and its fields read exactly as before.
|
|
736
766
|
*/
|
|
737
767
|
seatConstraint: string | null
|
|
768
|
+
/**
|
|
769
|
+
* (core#461) The evaluator ≠ creator DISCLOSURE as a field: `'creator_seat'` when a review/test
|
|
770
|
+
* unit STAYS on a seat that built what it checks because no eligible seat distinct from the
|
|
771
|
+
* builders admits it — a single-eligible-seat roster, or a bench that emptied the pool
|
|
772
|
+
* (`degradedReason` then says which). `null` otherwise. The fallback seat is always a
|
|
773
|
+
* still-eligible one: a benched or dead seat is never the fallback. Additive.
|
|
774
|
+
*/
|
|
775
|
+
distinctnessFallback: 'creator_seat' | null
|
|
738
776
|
}
|
|
739
777
|
|
|
740
778
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.25",
|
|
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.25",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.7.25",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.7.25",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.7.25",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.7.25"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|