wicked-core-ts 0.15.34 → 0.15.36

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.
Files changed (2) hide show
  1. package/index.d.ts +20 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -1080,6 +1080,26 @@ export declare class Core {
1080
1080
  * used to cast away an `unknown` here; #225 review).
1081
1081
  */
1082
1082
  getCoverageReportForRepo(repoRef: string): Promise<string>
1083
+ /**
1084
+ * Re-index ONE registered repo's CHECKOUT (what is on disk now) into its existing code graph,
1085
+ * under the launch indexer's lock, so it is never a second writer beside a launch's D8 base index
1086
+ * (crew's repo watcher, wicked-core#1230). The same command onboarding's index step runs. Resolves
1087
+ * to a JSON string `{ "outcome": "indexed" | "no-graph" | "held", "heldBy": string[], "ms": number }`:
1088
+ * `no-graph` = onboarding never built one; `held` = runs on the repo hold the graph (planning,
1089
+ * distributing, executing, or a domain mapping not ended; `heldBy`, read under the lock), nothing written. An unknown `repo_ref`, or an indexer
1090
+ * that fails or exceeds its bound, REJECTS with the reason. The graph it leaves is no run's base.
1091
+ */
1092
+ indexRepoGraph(repoRef: string): Promise<string>
1093
+ /**
1094
+ * (wicked-crew#1481) How long one `wicked-estate index` of `tree` may run: THE index budget
1095
+ * (`max(120 s, files × 0.30 s) × 1.15`, `wicked_core::index_budget`), sized from the files
1096
+ * `git ls-files` lists for the tree (a walk when git cannot list it). The same budget the
1097
+ * engine bounds its own indexes with; crew's project-graph refresh reads it here, so no second
1098
+ * copy of the formula exists. Resolves to a JSON string `{ "trackedFiles": number, "counted":
1099
+ * "git" | "walk", "budgetMs": number }`. Never rejects: a tree that cannot be read counts 0
1100
+ * files (the floor).
1101
+ */
1102
+ indexBudget(tree: string): Promise<string>
1083
1103
  /**
1084
1104
  * ONE registered repo's requirements graph, read from that repo's OWN estate store (the source
1085
1105
  * of truth `domain-graph` persists into; never a file in the checkout), with its coverage label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.15.34",
3
+ "version": "0.15.36",
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.34",
47
- "wicked-core-ts-darwin-x64": "0.15.34",
48
- "wicked-core-ts-linux-arm64-gnu": "0.15.34",
49
- "wicked-core-ts-linux-x64-gnu": "0.15.34",
50
- "wicked-core-ts-win32-x64-msvc": "0.15.34"
46
+ "wicked-core-ts-darwin-arm64": "0.15.36",
47
+ "wicked-core-ts-darwin-x64": "0.15.36",
48
+ "wicked-core-ts-linux-arm64-gnu": "0.15.36",
49
+ "wicked-core-ts-linux-x64-gnu": "0.15.36",
50
+ "wicked-core-ts-win32-x64-msvc": "0.15.36"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@napi-rs/cli": "^2.18.4",