wicked-core-ts 0.7.0 → 0.7.1

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 +32 -0
  2. package/package.json +6 -6
package/index.d.ts CHANGED
@@ -3,6 +3,26 @@
3
3
 
4
4
  /* auto-generated by NAPI-RS */
5
5
 
6
+ /**
7
+ * WHERE this run's project keeps its co-located code graph, and what this run's repo is called
8
+ * inside it. Set on [`LaunchOptions::project_graph`] by a launcher that owns a project graph.
9
+ *
10
+ * The two fields are one fact and travel together: a path with no label cannot be checked against
11
+ * the repo the run targets, and a label with no path names nothing. Sending them as separate
12
+ * optional fields would make "half-specified" expressible, and the half that goes missing is the
13
+ * one that turns the verification off.
14
+ */
15
+ export interface ProjectGraphOptions {
16
+ /** ABSOLUTE path to the project's code graph (crew: `~/.wicked-crew/project-graphs/<id>/code-graph.db`). */
17
+ dbPath: string
18
+ /**
19
+ * The wicked-estate label this run's repo is indexed under in that graph. REQUIRED whenever
20
+ * `repoRef` is set — the engine uses it to confirm the graph actually describes the code the
21
+ * worker will edit, and refuses the binding (falling back to the per-repo graph) when it
22
+ * cannot. Omit only for a repo-less run.
23
+ */
24
+ repoLabel?: string
25
+ }
6
26
  /**
7
27
  * Options for [`Core::launch_run`]. `clisJson` is a JSON array of `AgenticCli` seats (the council
8
28
  * roster); `Core.registryRoster()` returns the production roster ready to pass here.
@@ -39,6 +59,18 @@ export interface LaunchOptions {
39
59
  * session persisted. Omit for runs that deliver inside their own workdir.
40
60
  */
41
61
  extraWriteRoots?: Array<string>
62
+ /**
63
+ * The PROJECT code graph this run's governed workers should query, instead of the run repo's
64
+ * own graph — one database holding every member repo of the project, so a worker's
65
+ * SearchEntity / BlastRadius / TraverseGraph can see the whole project rather than one repo.
66
+ *
67
+ * A HINT the engine VERIFIES before any worker sees it: absolute, an existing file, not the
68
+ * engine's own operational store, non-empty, and actually holding `repoLabel`'s repo. A
69
+ * binding that fails any of those degrades the run to the per-repo graph (with a reason on
70
+ * stderr) rather than failing the launch — the graph is a capability, and losing it should
71
+ * cost tools, not the run. Omit for the per-repo behaviour, unchanged.
72
+ */
73
+ projectGraph?: ProjectGraphOptions
42
74
  }
43
75
  /**
44
76
  * A handle to a wicked-core runtime. Construct with [`Core::spawn`] (production engine: real
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wicked-core-ts",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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.0",
45
- "wicked-core-ts-darwin-x64": "0.7.0",
46
- "wicked-core-ts-linux-arm64-gnu": "0.7.0",
47
- "wicked-core-ts-linux-x64-gnu": "0.7.0",
48
- "wicked-core-ts-win32-x64-msvc": "0.7.0"
44
+ "wicked-core-ts-darwin-arm64": "0.7.1",
45
+ "wicked-core-ts-darwin-x64": "0.7.1",
46
+ "wicked-core-ts-linux-arm64-gnu": "0.7.1",
47
+ "wicked-core-ts-linux-x64-gnu": "0.7.1",
48
+ "wicked-core-ts-win32-x64-msvc": "0.7.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@napi-rs/cli": "^2.18.4"