@galaxy-stack/blackhole-cli 3.0.7 → 3.0.9

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.
@@ -1,3 +1,10 @@
1
+ /**
2
+ * author Bùi Trọng Hiếu
3
+ * email kevinbui210191@gmail.com
4
+ * create date 15/10/2026
5
+ * modify date 12/11/2026
6
+ * desc Bậc npm (gói @galaxy-blackhole/blackhole-harness) đứng trước git clone/ZIP; dò runtime ở cả apps/host/node_modules lẫn node_modules bị npm hoist; status in nguồn npm
7
+ */
1
8
  import { type HarnessLocation, type LocateEnvironment } from "./locate.js";
2
9
  import { type NodeRuntime } from "./node-runtime.js";
3
10
  /** The repository the harness is published from. */
@@ -6,6 +13,77 @@ export declare const HARNESS_REPO = "https://github.com/galaxy-blackhole/blackho
6
13
  export declare const HARNESS_BRANCH = "main";
7
14
  /** The checkout directory name every install ends with. */
8
15
  export declare const HARNESS_DIR_NAME = "blackhole-harness";
16
+ /** The npm package that carries the harness (rename with `GBH_HARNESS_PACKAGE`). */
17
+ export declare const HARNESS_PACKAGE = "@galaxy-blackhole/blackhole-harness";
18
+ /** The dist-tag the npm rung asks for (pin a version with `GBH_HARNESS_SPEC`). */
19
+ export declare const HARNESS_PACKAGE_SPEC = "latest";
20
+ /**
21
+ * Every place the host runtime can be, relative to the harness root, in preference order.
22
+ *
23
+ * Two layouts, one fact. A repository checkout pins the kernel inside `apps/host`
24
+ * (`bun install` / `npm ci` there); the published npm package carries the kernel as one of its own
25
+ * dependencies, and npm hoists it to the `node_modules` of the directory it installed into
26
+ * (measured 12/11/2026: `npm i --prefix /tmp/x …` → `/tmp/x/node_modules/@deepseek-ai/dsh/lib/bin.js`,
27
+ * no `apps/host/node_modules` at all). The launcher itself finds either by walking parent
28
+ * `node_modules`; this CLI has to look in both places before it calls a tree bootable.
29
+ */
30
+ export declare const DSH_RUNTIME_ENTRIES: readonly string[];
31
+ /**
32
+ * The host runtime the launcher boots, relative to the checkout root.
33
+ *
34
+ * This one file decides whether "downloaded" means "installable": the launcher refuses to boot
35
+ * without it (`harness runtime not found at …`), and on Windows the old installer called npm
36
+ * directly, so it printed "xong" over a tree that could never start.
37
+ */
38
+ export declare const DSH_RUNTIME_ENTRY: string;
39
+ /**
40
+ * Absolute paths of the host runtime inside one tree, in preference order.
41
+ * @param root - harness root.
42
+ * @returns the checkout path first, the npm-hoisted path second.
43
+ */
44
+ export declare function dshRuntimeCandidates(root: string): string[];
45
+ /**
46
+ * Absolute path of the checkout-shaped host runtime (the one older messages name).
47
+ * @param root - harness root.
48
+ * @returns `<root>/apps/host/node_modules/@deepseek-ai/dsh/lib/bin.js`.
49
+ */
50
+ export declare function dshRuntimePath(root: string): string;
51
+ /**
52
+ * The host runtime that is actually on disk.
53
+ * @param root - harness root.
54
+ * @param exists - filesystem probe; `existsSync` in production.
55
+ * @returns the absolute path that answered, or undefined when neither layout has it.
56
+ */
57
+ export declare function findDshRuntime(root: string, exists?: (path: string) => boolean): string | undefined;
58
+ /**
59
+ * Whether a tree can actually boot the harness — in either layout.
60
+ * @param root - harness root.
61
+ * @param exists - filesystem probe; `existsSync` in production.
62
+ * @returns true when the host runtime entry is there.
63
+ */
64
+ export declare function hasDshRuntime(root: string, exists?: (path: string) => boolean): boolean;
65
+ /**
66
+ * Absolute path to print for a tree's runtime: the one that answered, else the checkout-shaped one.
67
+ * @param root - harness root.
68
+ * @param exists - filesystem probe; `existsSync` in production.
69
+ * @returns the path `web --dry-run` and `harness status` show.
70
+ */
71
+ export declare function dshRuntimeResolved(root: string, exists?: (path: string) => boolean): string;
72
+ /**
73
+ * The runtime entry relative to the harness root, with forward slashes: what `harness status`
74
+ * prints beside `runtime: có` (`apps/host/node_modules/…` or `node_modules/…`).
75
+ * @param root - harness root.
76
+ * @param exists - filesystem probe; `existsSync` in production.
77
+ * @returns the relative entry that answered, or the checkout-shaped one when nothing did.
78
+ */
79
+ export declare function dshRuntimeEntry(root: string, exists?: (path: string) => boolean): string;
80
+ /**
81
+ * What to print when the checkout is there but its runtime is not: the missing file, the one
82
+ * command that reinstalls it, and the reason it is usually missing (no npm on the machine).
83
+ * @param root - checkout root.
84
+ * @returns several lines, safe to print from `install`, `web` and `chat`.
85
+ */
86
+ export declare function harnessRuntimeMissingMessage(root: string): string;
9
87
  /** One line of user-visible progress. */
10
88
  export type WriteLine = (line: string) => void;
11
89
  /**
@@ -21,46 +99,63 @@ export interface HarnessInstallOptions {
21
99
  readonly dir?: string;
22
100
  /** Download again even when a checkout is already there. */
23
101
  readonly force?: boolean;
24
- /** `--from <url>`: a `.zip` URL or a git URL, instead of the default repository. */
102
+ /** `--from <url|npm>`: a `.zip` URL, a git URL, or the word `npm` to force the npm package. */
25
103
  readonly from?: string;
26
- /** Skip the dependency step (`--no-deps`). */
104
+ /** Skip the dependency step (`--no-deps`); npm is skipped too, because npm always installs them. */
27
105
  readonly noDeps?: boolean;
28
106
  /** Progress sink; stdout in production. */
29
107
  readonly write?: WriteLine;
30
108
  /** Locate facts (env, filesystem, PATH); this machine by default. */
31
109
  readonly environment?: LocateEnvironment;
32
- /** Runs one child to completion; inherits stdio in production. */
33
- readonly run?: (command: string, args: readonly string[], cwd: string) => Promise<number>;
110
+ /** Runs one child to completion; captures output in production. */
111
+ readonly run?: DependencyRunner;
34
112
  /** Downloads one URL into a file; injected by tests. */
35
113
  readonly download?: (url: string, dest: string) => Promise<void>;
36
114
  /** Node binary used to run npm's JS entry on Windows; this process by default. */
37
115
  readonly node?: string;
116
+ /** Runs the npm fetch (`npm i --omit=dev --prefix …`); `runNpm` by default, injected by tests. */
117
+ readonly npmInstall?: NpmInstallRunner;
38
118
  }
39
119
  /** What one install produced. */
40
120
  export interface HarnessInstallResult {
41
121
  /** Absolute checkout root. */
42
122
  readonly root: string;
43
- /** How the tree arrived; `existing` when nothing was downloaded. */
44
- readonly via: "git" | "zip" | "existing";
123
+ /** How the tree arrived: the npm package, a git clone, the ZIP archive, or `existing` when nothing was downloaded. */
124
+ readonly via: "npm" | "git" | "zip" | "existing";
45
125
  /** Whether a download happened in this run. */
46
126
  readonly downloaded: boolean;
47
127
  /** Which package manager ran, or why none did. */
48
128
  readonly deps: "bun" | "npm" | "skipped" | "failed";
49
- /** Whether `apps/host/node_modules` exists afterwards — the launcher cannot boot without it. */
129
+ /** Whether a host runtime ({@link DSH_RUNTIME_ENTRIES}) exists afterwards — the launcher cannot boot without it. */
50
130
  readonly ready: boolean;
51
131
  /** What to do next, when the result is not ready. */
52
132
  readonly note?: string;
53
133
  }
54
- /** The packages under `apps/host/node_modules`, when they are installed. */
134
+ /** The module tree that holds the kernel, whichever layout put it there. */
55
135
  export interface HostModulesState {
136
+ /** Whether the directory holds anything at all. */
56
137
  readonly present: boolean;
138
+ /** Top-level entries, so "196 mục" proves something was unpacked. */
57
139
  readonly packages: number;
140
+ /** Whether the launcher's own runtime entry ({@link DSH_RUNTIME_ENTRIES}) is there. */
141
+ readonly runtime: boolean;
142
+ /** The directory that answered, relative to the root: `apps/host/node_modules` or `node_modules`. */
143
+ readonly dir: string;
144
+ }
145
+ /** The published npm package a tree was installed from. */
146
+ export interface HarnessPackage {
147
+ /** Package name, read from the installed `package.json`. */
148
+ readonly name: string;
149
+ /** Version the package declares, when it declares one. */
150
+ readonly version?: string;
58
151
  }
59
152
  /** Everything `harness status` reports. */
60
153
  export interface HarnessStatusFacts {
61
154
  readonly location?: HarnessLocation;
62
155
  readonly version?: string;
63
156
  readonly hostVersion?: string;
157
+ /** Set when the tree is the published npm package: `harness status` prints `nguồn: npm …`. */
158
+ readonly packageSource?: HarnessPackage;
64
159
  readonly node?: NodeRuntime;
65
160
  readonly nodeError?: string;
66
161
  readonly bun?: string;
@@ -68,6 +163,17 @@ export interface HarnessStatusFacts {
68
163
  readonly home: string;
69
164
  readonly defaultDir: string;
70
165
  }
166
+ /** One dependency run: the exit code, plus what the child printed when the runner captured it. */
167
+ export interface DependencyOutcome {
168
+ /** Exit code, or null when the command could not be started. */
169
+ readonly code: number | null;
170
+ /** Everything the child wrote, kept for the failure tail. */
171
+ readonly output: string;
172
+ }
173
+ /** Runs one dependency step; production captures output, a test may simply return a code. */
174
+ export type DependencyRunner = (command: string, args: readonly string[], cwd: string) => Promise<number | DependencyOutcome>;
175
+ /** Runs the npm fetch; `runNpm` in production, a fake tree in tests. */
176
+ export type NpmInstallRunner = (args: readonly string[], cwd: string) => Promise<number | DependencyOutcome>;
71
177
  /**
72
178
  * Where a `--dir` install lands: the directory holding the checkout, or the checkout itself when
73
179
  * the path already ends with `blackhole-tauri`.
@@ -87,9 +193,47 @@ export declare function assertReplaceable(target: string): void;
87
193
  /** The `version` a checkout's package.json declares, when it has one. */
88
194
  export declare function readHarnessVersion(root: string): string | undefined;
89
195
  /**
90
- * Whether `apps/host/node_modules` is populated.
196
+ * The npm package `harness install` fetches.
197
+ * @param environment - environment facts; `GBH_HARNESS_PACKAGE` renames the package.
198
+ * @returns the package name, defaulting to {@link HARNESS_PACKAGE}.
199
+ */
200
+ export declare function harnessPackageName(environment: LocateEnvironment): string;
201
+ /**
202
+ * The version or dist-tag the npm rung asks for.
203
+ * @param environment - environment facts; `GBH_HARNESS_SPEC` pins a version.
204
+ * @returns the spec, defaulting to `latest`.
205
+ */
206
+ export declare function harnessPackageSpec(environment: LocateEnvironment): string;
207
+ /**
208
+ * The one argument npm receives for the harness.
209
+ * @param environment - environment facts.
210
+ * @returns `@galaxy-blackhole/blackhole-harness@latest`.
211
+ */
212
+ export declare function harnessPackageRequest(environment: LocateEnvironment): string;
213
+ /**
214
+ * The argv of the npm fetch, exactly as it is logged.
215
+ * @param prefix - directory npm installs into (`--prefix`).
216
+ * @param request - `<name>@<version|dist-tag>`.
217
+ * @returns `npm i --omit=dev --prefix <dir> <request> --no-audit --no-fund`.
218
+ */
219
+ export declare function npmFetchArgs(prefix: string, request: string): string[];
220
+ /**
221
+ * The npm package a tree was installed from, read from the tree's own `package.json`.
222
+ *
223
+ * The published build names itself `@galaxy-blackhole/blackhole-harness`; the repository checkout
224
+ * still calls itself `@galaxy-blackhole/gbh-tauri`, so the name is what tells the two apart.
225
+ * @param root - harness root.
226
+ * @param environment - environment facts; the override counts as the npm name.
227
+ * @returns the package name and version, or undefined when this tree is not the npm build.
228
+ */
229
+ export declare function readHarnessPackage(root: string, environment: LocateEnvironment): HarnessPackage | undefined;
230
+ /**
231
+ * Whether the kernel is installed, and in which layout.
232
+ *
233
+ * The repository checkout keeps it in `apps/host/node_modules`; the npm package gets it hoisted to
234
+ * `<root>/node_modules` and has no `apps/host/node_modules` at all, so both are asked.
91
235
  * @param root - checkout root.
92
- * @returns presence and the number of top-level entries.
236
+ * @returns presence, the number of top-level entries, the runtime flag and the directory that answered.
93
237
  */
94
238
  export declare function hostModulesState(root: string): HostModulesState;
95
239
  /** One package-manager invocation. */
@@ -98,6 +242,8 @@ export interface DependencyStep {
98
242
  readonly args: readonly string[];
99
243
  readonly cwd: string;
100
244
  readonly label: string;
245
+ /** Tried when this step exits non-zero (`npm ci` needs a lockfile that matches package.json). */
246
+ readonly fallback?: DependencyStep;
101
247
  }
102
248
  /**
103
249
  * The dependency steps a checkout needs, in order.
@@ -105,6 +251,11 @@ export interface DependencyStep {
105
251
  * Bun is the repository's own tool (`bun install`, then `bun install` in `apps/host`, which is not
106
252
  * a workspace member). Without Bun the host's pinned `@deepseek-ai/*` runtime is installed with
107
253
  * npm instead, which is enough for the host process but not for the CLI's own tooling.
254
+ *
255
+ * npm gets a lockfile when the checkout has one: `npm ci --omit=dev` installs exactly the pinned
256
+ * tree and fails loudly on a mismatch, and `npm install --omit=dev` is the fallback for that
257
+ * failure — and the only step when there is no `package-lock.json` at all (this repository ships
258
+ * `bun.lock`, so that is the normal path).
108
259
  * @param root - checkout root.
109
260
  * @param environment - PATH and filesystem facts.
110
261
  * @param node - node binary for npm's JS entry.
@@ -112,7 +263,24 @@ export interface DependencyStep {
112
263
  */
113
264
  export declare function planDependencies(root: string, environment: LocateEnvironment, node?: string): DependencyStep[];
114
265
  /**
115
- * Download (or reuse) the harness checkout and install its dependencies.
266
+ * Move an npm installation into a checkout-shaped root.
267
+ *
268
+ * `npm i --prefix <dir>` leaves the package at `<dir>/node_modules/<name>` and hoists every
269
+ * dependency (the kernel included) to `<dir>/node_modules`. The launcher wants `apps/cli/src/main.ts`
270
+ * at the root and resolves its kernel by walking parent `node_modules`, so the package's own
271
+ * entries move up beside that `node_modules`.
272
+ * @param prefix - the `--prefix` directory npm installed into.
273
+ * @param packageName - the package that carries the harness.
274
+ * @param tree - directory to build the checkout in.
275
+ * @returns true when the package was there and the tree was built.
276
+ */
277
+ export declare function flattenNpmPackage(prefix: string, packageName: string, tree: string): boolean;
278
+ /**
279
+ * Download (or reuse) the harness checkout and make sure it can boot.
280
+ *
281
+ * Rungs, in order: `--from` when the user named a source (and `--from npm` forces the npm package),
282
+ * then the published npm package, then `git clone --depth 1`, then the GitHub ZIP. `--no-deps` keeps
283
+ * its old meaning — download only — so it skips npm, which always installs the package's dependencies.
116
284
  * @param options - destination, force, source override, progress sink and injected process facts.
117
285
  * @returns the checkout root, how it arrived and whether it is ready to boot.
118
286
  * @throws when the download fails, the archive has no launcher, or the destination is unsafe.
@@ -1 +1 @@
1
- {"version":3,"file":"install.d.ts","sourceRoot":"","sources":["../../src/harness/install.ts"],"names":[],"mappings":"AAiBA,OAAO,EASL,KAAK,eAAe,EACpB,KAAK,iBAAiB,EACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAwC,KAAK,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3F,oDAAoD;AACpD,eAAO,MAAM,YAAY,0DAA0D,CAAC;AAEpF,gEAAgE;AAChE,eAAO,MAAM,cAAc,SAAS,CAAC;AAErC,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,sBAAsB,CAAC;AAEpD,yCAAyC;AACzC,MAAM,MAAM,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;AAE/C;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,GAAE,MAAq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