wicked-core-ts 0.15.19 → 0.15.20
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 +66 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -150,6 +150,15 @@ export interface LaunchOptions {
|
|
|
150
150
|
* session on its own. Only for a plan or preset launch. Omit (or `false`) for a phased run.
|
|
151
151
|
*/
|
|
152
152
|
power?: boolean
|
|
153
|
+
/**
|
|
154
|
+
* (core#1216) The person's VOICE BLOCK (their personality, resolved for the run's project):
|
|
155
|
+
* how the power-mode ORCHESTRATOR talks to them. Tone only: appended last to the
|
|
156
|
+
* orchestrator's brief under a governance line (and to each later turn); the PA's scope
|
|
157
|
+
* step, the hand-off's reviewers, judges and QE never receive it, and no gate reads it. At
|
|
158
|
+
* most 4096 bytes (a longer one REJECTS the launch). Ignored on a phased run. An older addon
|
|
159
|
+
* drops the field, so the orchestrator simply runs without a voice.
|
|
160
|
+
*/
|
|
161
|
+
voice?: string
|
|
153
162
|
/**
|
|
154
163
|
* (X-MIG M9, core#649) The run's DECLARED DELIVERABLES on a plan or preset launch (`plan` or a
|
|
155
164
|
* preset `workflow`): absolute paths inside a declared write root (or worktree-relative paths)
|
|
@@ -1006,6 +1015,14 @@ export declare class Core {
|
|
|
1006
1015
|
* used to cast away an `unknown` here; #225 review).
|
|
1007
1016
|
*/
|
|
1008
1017
|
getCoverageReportForRepo(repoRef: string): Promise<string>
|
|
1018
|
+
/**
|
|
1019
|
+
* ONE registered repo's requirements graph, read from that repo's OWN estate store (the source
|
|
1020
|
+
* of truth `domain-graph` persists into; never a file in the checkout), with its coverage label
|
|
1021
|
+
* recomputed from the store's own counts against the configured minimum. Resolves to a JSON
|
|
1022
|
+
* string `{ "graph": <domain-model document | null>, "coverage": {...} }`; `graph` is null until
|
|
1023
|
+
* a build reached the minimum. An unknown `repo_ref` REJECTS.
|
|
1024
|
+
*/
|
|
1025
|
+
getRequirementsGraphForRepo(repoRef: string): Promise<string>
|
|
1009
1026
|
/**
|
|
1010
1027
|
* Node-count-by-kind summary of ONE registered repo's code graph, over that repo's OWN store
|
|
1011
1028
|
* (#122). Resolves to a JSON string: an array of `{ "kind": string, "count": number }`,
|
|
@@ -1412,6 +1429,12 @@ export interface RepoChecksEvaluatedEventJson extends CoreEventJson {
|
|
|
1412
1429
|
skipped: string[]
|
|
1413
1430
|
}
|
|
1414
1431
|
|
|
1432
|
+
/** (core#1198) What a run limited to a failing set ran. */
|
|
1433
|
+
export interface RepoCheckScopeJson {
|
|
1434
|
+
by: 'file' | 'name'
|
|
1435
|
+
ids: string[]
|
|
1436
|
+
}
|
|
1437
|
+
|
|
1415
1438
|
/** One check the floor ran ({@link RepoChecksEvaluatedEventJson.checks}). */
|
|
1416
1439
|
export interface RepoCheckRunJson {
|
|
1417
1440
|
name: string
|
|
@@ -1441,6 +1464,26 @@ export interface RepoCheckRunJson {
|
|
|
1441
1464
|
failureIds: string[]
|
|
1442
1465
|
/** Failure ids the check's own retry cleared — flaky (passed on retry), not the change's (core#1172). */
|
|
1443
1466
|
flakyIds: string[]
|
|
1467
|
+
/** (core#1198) Set on a run of a failing set only (a scoped retry or base run): `by` is `'file'` or
|
|
1468
|
+
* `'name'`, `ids` the files or test names it ran. `null`: the check as declared. */
|
|
1469
|
+
scope: RepoCheckScopeJson | null
|
|
1470
|
+
/** (core#1198) The engine's retry of this failed check, with its own duration, so a timeline can place
|
|
1471
|
+
* it; `null` when the engine did not retry it. */
|
|
1472
|
+
retry: {
|
|
1473
|
+
durationMs: number
|
|
1474
|
+
exitCode: number | null
|
|
1475
|
+
timedOut: boolean
|
|
1476
|
+
failureIds: string[]
|
|
1477
|
+
scope: RepoCheckScopeJson | null
|
|
1478
|
+
/** Why it ran the whole check although the repo declares a `rerun`. */
|
|
1479
|
+
wholeBecause: string | null
|
|
1480
|
+
} | null
|
|
1481
|
+
/** (core#1198) The repo declares that the check retries its own failures: the engine did not retry it. */
|
|
1482
|
+
selfRetry: boolean
|
|
1483
|
+
/** (core#1186, additive) The check's directory when its failure ids were shown to be the whole,
|
|
1484
|
+
* file-qualified account of its failures (a `rerun … by: "file"` check whose runner's count matches
|
|
1485
|
+
* its ids, no error outside a test, under the id cap); `null` otherwise. */
|
|
1486
|
+
failuresCompleteIn: string | null
|
|
1444
1487
|
regressions: string[]
|
|
1445
1488
|
/** DEPRECATED: always `[]`. */
|
|
1446
1489
|
envCannotRun: string[]
|
|
@@ -1448,6 +1491,29 @@ export interface RepoCheckRunJson {
|
|
|
1448
1491
|
reruns: RepoCheckRunJson[]
|
|
1449
1492
|
/** The floor's decision; `null` on a nested run (a re-run, a base run). */
|
|
1450
1493
|
decision: FloorCheckDecisionJson | null
|
|
1494
|
+
/** (core#1187) What the engine selected for a cargo workspace test at the creator floor, and
|
|
1495
|
+
* why; null for every other check. */
|
|
1496
|
+
selection: FloorTestSelectionJson | null
|
|
1497
|
+
/** (power-speed-2) Present only on a check this floor did NOT run: a verify floor reused the creator
|
|
1498
|
+
* floor's result of the same tree and base, so `durationMs`, the exit and the retries are that floor's.
|
|
1499
|
+
* `phase` is null when the creator unit's phase is unknown. */
|
|
1500
|
+
reusedFrom?: { phase: string | null; ord: number; attempt: number }
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/** (core#1187) The engine's affected-set selection for one cargo workspace test check. */
|
|
1504
|
+
export interface FloorTestSelectionJson {
|
|
1505
|
+
/** 'affected': the subset ran first and its pass decides; 'full': the check ran as declared. */
|
|
1506
|
+
mode: 'affected' | 'full'
|
|
1507
|
+
/** How the subset was reached, or what made the full suite run. */
|
|
1508
|
+
reason: string
|
|
1509
|
+
packages: string[]
|
|
1510
|
+
/** One line per invocation, e.g. 'wicked-core --lib (12 tests)'. */
|
|
1511
|
+
targets: string[]
|
|
1512
|
+
/** The first 100 lib tests selected by name; testCount is whole. */
|
|
1513
|
+
tests: string[]
|
|
1514
|
+
testCount: number
|
|
1515
|
+
changedSymbols: number
|
|
1516
|
+
reachedSymbols: number
|
|
1451
1517
|
}
|
|
1452
1518
|
|
|
1453
1519
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.20",
|
|
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.20",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.15.20",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.15.20",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.15.20",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.15.20"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|