@machina.ai/cell-harness 0.1.5-alpha.1.c3 → 0.2.0-rc2.c1
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/README.md +0 -1
- package/README.zh.md +1 -2
- package/config/cell-harness.cordis.patch.yml +0 -1
- package/lib/bin.js +1 -1
- package/lib/index.js +1 -1
- package/lib/{launcher-CV0MXMRv.js → launcher-aPsfwypr.js} +15 -2
- package/lib/profile-boot.js +79 -130
- package/package.json +101 -100
package/README.md
CHANGED
|
@@ -29,4 +29,3 @@ Selected upstream plugins are intentionally disabled in `apps/cell-harness/confi
|
|
|
29
29
|
2. **`@deepseek-ai/dsh-llm-deepseek`** (`llm-deepseek`): Disabled via `disabled: true`. Replaced by `@machina.ai/ch-llm-reboot` to provide Reboot Zero-API-Key multi-model routing across Gemini, Anthropic, OpenAI, and xAI families. *(ADR: `conductor/tracks/reboot_llm_20260908/spec.md`)*.
|
|
30
30
|
3. **`@deepseek-ai/dsh-client-ui-settings-models`** (`ui-settings-models`): Disabled via `disabled: true`. Replaced by `@machina.ai/ch-client-ui-settings-cell-models` to render the Cell Models configuration panel and local provider routing instead of DeepSeek official onboarding. *(ADR: `conductor/tracks/model_settings_20260912/spec.md`)*.
|
|
31
31
|
4. **`@deepseek-ai/dsh-web-search-deepseek`** (`web-search-deepseek`): Disabled via `disabled: true`. Replaced by `@machina.ai/ch-web-search-gemini` (Gemini Search Grounding through Reboot AI Gateway). *(ADR: `conductor/tracks/web_search_gemini_20260913/spec.md`)*.
|
|
32
|
-
|
package/README.zh.md
CHANGED
|
@@ -28,5 +28,4 @@ Nova Solutions 出品的 Cell Harness CLI 可执行程序。
|
|
|
28
28
|
1. **`@deepseek-ai/dsh-client-ui-brand-official`** (`ui-brand-official`): 禁用。由 `@machina.ai/ch-client-ui-brand-nova` 替代以展示 Nova Solutions Systems / Cell Harness 品牌。单占位插槽(`sidebar.brand.mark`、`sidebar.brand.name`、`conversation.hero.brand.mark`)拒绝重复注册;禁用官方占位确保 Nova 品牌为唯一挂载。*(ADR: `conductor/tracks/cell_harness_rebrand_20260908/spec.md`)*。
|
|
29
29
|
2. **`@deepseek-ai/dsh-llm-deepseek`** (`llm-deepseek`): 禁用。由 `@machina.ai/ch-llm-reboot` 替代,提供跨 Gemini、Anthropic、OpenAI 与 xAI 系列的免 API Key 多模型路由。*(ADR: `conductor/tracks/reboot_llm_20260908/spec.md`)*。
|
|
30
30
|
3. **`@deepseek-ai/dsh-client-ui-settings-models`** (`ui-settings-models`): 禁用。由 `@machina.ai/ch-client-ui-settings-cell-models` 替代,展示 Cell 模型设置面板而非 DeepSeek 官方接入引导。*(ADR: `conductor/tracks/model_settings_20260912/spec.md`)*。
|
|
31
|
-
4. **`@deepseek-ai/dsh-web-search-deepseek`** (`web-search-deepseek`): 禁用。由 `@machina.ai/ch-web-search-gemini`(通过 Reboot AI Gateway 的 Gemini 搜索落地)替代。*(ADR: `conductor/tracks/web_search_gemini_20260913/spec.md`)
|
|
32
|
-
|
|
31
|
+
4. **`@deepseek-ai/dsh-web-search-deepseek`** (`web-search-deepseek`): 禁用。由 `@machina.ai/ch-web-search-gemini`(通过 Reboot AI Gateway 的 Gemini 搜索落地)替代。*(ADR: `conductor/tracks/web_search_gemini_20260913/spec.md`)*.
|
package/lib/bin.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ensureAuthenticatedSession, c as findEAddrInUseError, d as parseCellHarnessArgs, f as resolveCellHarnessDshHome, h as runCellHarnessCli, i as PROFILE_BOOT_SOURCE_URL, l as getBrandBanner, m as resolveProfileBootUrl, n as CELL_HARNESS_VERSION, o as ensureCellHarnessDshHome, p as resolveCellHarnessSessionPath, r as PROFILE_BOOT_ARTIFACT_URL, s as ensureCellHarnessTelemetryDisabled, t as CELL_HARNESS_PATCH, u as installConsoleRebrand } from "./launcher-
|
|
1
|
+
import { a as ensureAuthenticatedSession, c as findEAddrInUseError, d as parseCellHarnessArgs, f as resolveCellHarnessDshHome, h as runCellHarnessCli, i as PROFILE_BOOT_SOURCE_URL, l as getBrandBanner, m as resolveProfileBootUrl, n as CELL_HARNESS_VERSION, o as ensureCellHarnessDshHome, p as resolveCellHarnessSessionPath, r as PROFILE_BOOT_ARTIFACT_URL, s as ensureCellHarnessTelemetryDisabled, t as CELL_HARNESS_PATCH, u as installConsoleRebrand } from "./launcher-aPsfwypr.js";
|
|
2
2
|
export { CELL_HARNESS_PATCH, CELL_HARNESS_VERSION, PROFILE_BOOT_ARTIFACT_URL, PROFILE_BOOT_SOURCE_URL, ensureAuthenticatedSession, ensureCellHarnessDshHome, ensureCellHarnessTelemetryDisabled, findEAddrInUseError, getBrandBanner, installConsoleRebrand, parseCellHarnessArgs, resolveCellHarnessDshHome, resolveCellHarnessSessionPath, resolveProfileBootUrl, runCellHarnessCli };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
1
2
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
2
3
|
import { homedir } from "node:os";
|
|
3
4
|
import { dirname, join, resolve } from "node:path";
|
|
@@ -524,8 +525,20 @@ var __rewriteRelativeImportExtension = function(path, preserveJsx) {
|
|
|
524
525
|
});
|
|
525
526
|
return path;
|
|
526
527
|
};
|
|
527
|
-
|
|
528
|
-
|
|
528
|
+
const require = createRequire(import.meta.url);
|
|
529
|
+
/** Current published version of Cell Harness CLI, loaded dynamically from package manifest */
|
|
530
|
+
const CELL_HARNESS_VERSION = (function resolveVersion() {
|
|
531
|
+
try {
|
|
532
|
+
const pkg = require("../package.json");
|
|
533
|
+
if (pkg.version) return pkg.version;
|
|
534
|
+
} catch {
|
|
535
|
+
try {
|
|
536
|
+
const pkg = require("../../package.json");
|
|
537
|
+
if (pkg.version) return pkg.version;
|
|
538
|
+
} catch {}
|
|
539
|
+
}
|
|
540
|
+
return "0.2.0-rc2.c1";
|
|
541
|
+
})();
|
|
529
542
|
/** Path to the canonical Cell Harness Cordis patch overlay */
|
|
530
543
|
const CELL_HARNESS_PATCH = fileURLToPath(new URL("../config/cell-harness.cordis.patch.yml", import.meta.url));
|
|
531
544
|
/** Bundled upstream profile boot emitted beside the built launcher chunk in this app's `lib`. */
|
package/lib/profile-boot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { existsSync, mkdirSync, rmSync, writeFileSync } from "node:fs";
|
|
2
2
|
import { dirname, join, resolve } from "node:path";
|
|
3
3
|
import { fileURLToPath } from "node:url";
|
|
4
|
-
import { PROFILE_PATCH_FILENAME, PROFILE_TEMPLATES,
|
|
4
|
+
import { PROFILE_PATCH_FILENAME, PROFILE_TEMPLATES, PluginPackages, boot, createRuntimeResolution, initProfile, installFailLoud, loadOverlayPatches, loadProfile, readProfilePatches, reportSkippedBundles, resolveProfileDir } from "@deepseek-ai/dsh-app-boot";
|
|
5
5
|
import { resolveDshHome } from "@deepseek-ai/dsh-home-paths";
|
|
6
6
|
import { installProxyFromEnvironment } from "@deepseek-ai/dsh-http-proxy";
|
|
7
7
|
import { DSH_LAUNCH_ENVIRONMENT_KEY } from "@deepseek-ai/dsh-launch-environment";
|
|
@@ -75,8 +75,7 @@ function createProcessShutdown(dispose, forceExit = (code) => {
|
|
|
75
75
|
* Shared profile boot for every `dsh` surface: resolve the profile, stack its
|
|
76
76
|
* patch layers (bundle layers in `dsh.profile.bundles` order, the profile's
|
|
77
77
|
* own `cordis.patch.yml`, `--patch` overlays, the telemetry switch), mount the
|
|
78
|
-
* tree over the profile's empty root config,
|
|
79
|
-
* lifecycle, and wire fail-loud plus bounded shutdown.
|
|
78
|
+
* tree over the profile's empty root config, and wire fail-loud plus bounded shutdown.
|
|
80
79
|
*
|
|
81
80
|
* App flags are not the launcher's business: the invocation's inner arguments
|
|
82
81
|
* are provided to the tree through `ctx.cmdlineArgs`, where any injected app
|
|
@@ -118,8 +117,6 @@ function homePatchPath() {
|
|
|
118
117
|
}
|
|
119
118
|
/** Absolute path of this dsh installation's package.json (both anchors: src/ and lib/ sit one level under apps/cli). */
|
|
120
119
|
const INSTALL_ANCHOR = fileURLToPath(new URL("../package.json", import.meta.url));
|
|
121
|
-
/** The session-telemetry row id the DSH_TELEMETRY_DISABLED switch targets. */
|
|
122
|
-
const TELEMETRY_ROW_ID = "session-telemetry-otel";
|
|
123
120
|
/** The empty root entry list every profile tree patches over. */
|
|
124
121
|
const PROFILE_ROOT_CONFIG = `# dsh profile root — an empty entry list. The tree is composed as patches:
|
|
125
122
|
# each bundle in package.json's dsh.profile.bundles, then cordis.patch.yml, then any
|
|
@@ -130,7 +127,7 @@ const PROFILE_ROOT_CONFIG = `# dsh profile root — an empty entry list. The tre
|
|
|
130
127
|
const PROFILE_ROOT_FILENAME = "cordis.yml";
|
|
131
128
|
/**
|
|
132
129
|
* Initialize a missing profile from one shipped template. This copies only
|
|
133
|
-
* the template's bundle list
|
|
130
|
+
* the template's bundle list; local state from the
|
|
134
131
|
* same-named shipped profile is not read, and no inheritance metadata is
|
|
135
132
|
* persisted. Shipped profile names are reserved, and the target directory is
|
|
136
133
|
* claimed exclusively so existing or concurrent state is never reused.
|
|
@@ -157,7 +154,7 @@ function initializeProfileFromDefault(name, fromDefaultProfile, home = resolveDs
|
|
|
157
154
|
throw new Error(`${NAME}: profile directory ${dir} already exists; choose an unused profile name`);
|
|
158
155
|
}
|
|
159
156
|
try {
|
|
160
|
-
initProfile(dir, template.bundles
|
|
157
|
+
initProfile(dir, template.bundles);
|
|
161
158
|
} catch (error) {
|
|
162
159
|
try {
|
|
163
160
|
rmSync(dir, {
|
|
@@ -171,24 +168,6 @@ function initializeProfileFromDefault(name, fromDefaultProfile, home = resolveDs
|
|
|
171
168
|
}
|
|
172
169
|
}
|
|
173
170
|
/**
|
|
174
|
-
* Resolve the telemetry opt-out switch into its boot patch. ANY non-empty
|
|
175
|
-
* value (including `'0'`/`'false'`) disables: a privacy switch prefers
|
|
176
|
-
* off-by-mistake over on-by-mistake. A composition without the telemetry row
|
|
177
|
-
* exports nothing, so the switch is then trivially satisfied and no patch is
|
|
178
|
-
* generated — custom profiles need not mount telemetry to run with the
|
|
179
|
-
* switch set.
|
|
180
|
-
* @param disabledEnv - the raw `DSH_TELEMETRY_DISABLED` value (`undefined` when unset).
|
|
181
|
-
* @param hasRow - whether the composition carries the telemetry row.
|
|
182
|
-
* @returns the disable patch, or `undefined` when no hard-disable patch is required.
|
|
183
|
-
*/
|
|
184
|
-
function resolveTelemetryPatch(disabledEnv, hasRow) {
|
|
185
|
-
if ((disabledEnv ?? "") === "" || !hasRow) return void 0;
|
|
186
|
-
return {
|
|
187
|
-
id: TELEMETRY_ROW_ID,
|
|
188
|
-
disabled: true
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
171
|
* Load a resolved profile for `name` and (re)write the empty root config. The
|
|
193
172
|
* root is always rewritten: the whole composition is patch layers, and the
|
|
194
173
|
* vendored Loader's tree write-back (a plugin self-disposing persists the
|
|
@@ -206,18 +185,10 @@ function resolveTelemetryPatch(disabledEnv, hasRow) {
|
|
|
206
185
|
function prepareProfile(name, userLayer = true, fromDefaultProfile) {
|
|
207
186
|
if (fromDefaultProfile !== void 0) initializeProfileFromDefault(name, fromDefaultProfile);
|
|
208
187
|
const profile = loadProfile(NAME, name, INSTALL_ANCHOR, void 0, { userLayer });
|
|
188
|
+
reportSkippedBundles(NAME, profile);
|
|
209
189
|
writeFileSync(join(profile.dir, PROFILE_ROOT_FILENAME), PROFILE_ROOT_CONFIG);
|
|
210
190
|
return profile;
|
|
211
191
|
}
|
|
212
|
-
/** The full patch stack of one composed profile, in application order. */
|
|
213
|
-
function allPatches(composed) {
|
|
214
|
-
return [
|
|
215
|
-
...composed.bundlePatches,
|
|
216
|
-
...composed.profile.patches,
|
|
217
|
-
...composed.homePatches,
|
|
218
|
-
...composed.overlays
|
|
219
|
-
];
|
|
220
|
-
}
|
|
221
192
|
/**
|
|
222
193
|
* Load `name` and compose its effective patch stack: bundle layers in
|
|
223
194
|
* `dsh.profile.bundles` order (a base-backed profile gets the base bundle's
|
|
@@ -227,123 +198,101 @@ function allPatches(composed) {
|
|
|
227
198
|
* then the telemetry switch.
|
|
228
199
|
* @param name - the profile name.
|
|
229
200
|
* @param patchFiles - `--patch` overlay paths, in argv order.
|
|
201
|
+
* @param fromDefaultProfile - shipped template for a missing named profile.
|
|
202
|
+
* @param resolvedProfile - application-owned profile and installation.
|
|
230
203
|
* @returns the profile and its patch layers.
|
|
231
204
|
*/
|
|
232
|
-
async function composeProfile(name, patchFiles, fromDefaultProfile) {
|
|
233
|
-
const profile = prepareProfile(name, true, fromDefaultProfile);
|
|
234
|
-
|
|
235
|
-
installAnchor: INSTALL_ANCHOR,
|
|
236
|
-
profile
|
|
237
|
-
});
|
|
238
|
-
const homePatches = loadOptionalPatches(NAME, homePatchPath()) ?? [];
|
|
239
|
-
const overlays = patchFiles.flatMap((file) => loadOverlayPatches(NAME, resolve(file)));
|
|
240
|
-
const bundlePatches = profile.layers.flatMap((layer) => layer.patches);
|
|
241
|
-
const rows = /* @__PURE__ */ new Map();
|
|
242
|
-
for (const row of composeEntries([
|
|
243
|
-
bundlePatches,
|
|
244
|
-
profile.patches,
|
|
245
|
-
homePatches,
|
|
246
|
-
overlays
|
|
247
|
-
])) if (typeof row.id === "string") rows.set(row.id, row);
|
|
248
|
-
const composedOverlays = [...overlays];
|
|
249
|
-
const telemetryPatch = resolveTelemetryPatch(process.env.DSH_TELEMETRY_DISABLED, rows.has(TELEMETRY_ROW_ID));
|
|
250
|
-
if (telemetryPatch !== void 0) composedOverlays.push(telemetryPatch);
|
|
205
|
+
async function composeProfile(name, patchFiles, fromDefaultProfile, resolvedProfile) {
|
|
206
|
+
const profile = resolvedProfile?.profile ?? prepareProfile(name, true, fromDefaultProfile);
|
|
207
|
+
if (resolvedProfile !== void 0) writeFileSync(join(profile.dir, PROFILE_ROOT_FILENAME), PROFILE_ROOT_CONFIG);
|
|
251
208
|
return {
|
|
252
209
|
profile,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
210
|
+
resolution: await createRuntimeResolution({
|
|
211
|
+
installAnchor: resolvedProfile?.installAnchor ?? INSTALL_ANCHOR,
|
|
212
|
+
profile
|
|
213
|
+
}),
|
|
214
|
+
overlays: patchFiles.flatMap((file) => loadOverlayPatches(NAME, resolve(file)))
|
|
256
215
|
};
|
|
257
216
|
}
|
|
258
217
|
/**
|
|
259
|
-
* Re-throw a watcher-setup failure unless a shutdown already owns the tree:
|
|
260
|
-
* a signal aborted this invocation, or an app requested exit (`ctx.appExit`
|
|
261
|
-
* from a fast one-shot) and the root's disposal rejected the in-flight setup
|
|
262
|
-
* await. Either way the failure describes a tree that is exiting as asked,
|
|
263
|
-
* not a broken watch.
|
|
264
|
-
* @param ctx - the booted root context.
|
|
265
|
-
* @param signal - this invocation's signal-shutdown fact.
|
|
266
|
-
* @param error - the setup failure.
|
|
267
|
-
*/
|
|
268
|
-
function suppressShutdownError(ctx, signal, error) {
|
|
269
|
-
if (signal.aborted) return;
|
|
270
|
-
if (ctx.fiber.state !== 2 || ctx.get("loader") === void 0) return;
|
|
271
|
-
throw error;
|
|
272
|
-
}
|
|
273
|
-
/**
|
|
274
218
|
* Boot one profile invocation end to end and leave process lifetime to the
|
|
275
219
|
* mounted plugins (or to a one-shot runner the composition mounts).
|
|
276
220
|
* @param options - environment snapshot, profile name, overlays, and the booted app's own arguments.
|
|
277
221
|
* @returns the settled root context and the shutdown controller.
|
|
222
|
+
* @throws after disposing startup resources; cleanup failures retain the original error.
|
|
278
223
|
*/
|
|
279
224
|
async function runProfile(options) {
|
|
280
225
|
const disposeProxy = await installProxyFromEnvironment(options.environment, (message) => {
|
|
281
226
|
process.stderr.write(`${NAME}: ${message}\n`);
|
|
282
227
|
});
|
|
283
|
-
const composed = await composeProfile(options.profile, options.patchFiles, options.fromDefaultProfile);
|
|
284
228
|
const app = {};
|
|
285
|
-
|
|
286
|
-
const
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
signalShutdown.abort();
|
|
293
|
-
shutdown.interrupt(code);
|
|
294
|
-
};
|
|
295
|
-
process.on("SIGTERM", () => {
|
|
296
|
-
interrupt(0);
|
|
297
|
-
});
|
|
298
|
-
process.on("SIGINT", () => {
|
|
299
|
-
interrupt(130);
|
|
300
|
-
});
|
|
301
|
-
installFailLoud(NAME, process, async () => {
|
|
302
|
-
await app.current?.fiber.dispose();
|
|
303
|
-
});
|
|
304
|
-
const rootConfig = join(composed.profile.dir, PROFILE_ROOT_FILENAME);
|
|
305
|
-
const composeLive = () => structuredClone([
|
|
306
|
-
...composed.bundlePatches,
|
|
307
|
-
...loadOptionalPatches(NAME, composed.profile.patchPath) ?? [],
|
|
308
|
-
...loadOptionalPatches(NAME, homePatchPath()) ?? [],
|
|
309
|
-
...composed.overlays
|
|
310
|
-
]);
|
|
311
|
-
const ctx = await boot(NAME, rootConfig, structuredClone(allPatches(composed)), (hostCtx) => {
|
|
312
|
-
app.current = hostCtx;
|
|
313
|
-
hostCtx.provide(DSH_LAUNCH_ENVIRONMENT_KEY, options.environment);
|
|
314
|
-
provideCmdline(hostCtx, {
|
|
315
|
-
args: options.args,
|
|
316
|
-
exit: (code) => void shutdown.shutdown(code),
|
|
317
|
-
ready: appReady.service
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
app.current = ctx;
|
|
321
|
-
if (composed.profile.patchReload === "live" && !signalShutdown.signal.aborted && ctx.fiber.state === 2 && ctx.get("loader") !== void 0) try {
|
|
322
|
-
if (ctx.get("hmr") === void 0) {
|
|
323
|
-
if (ctx.get("timer") === void 0) await ctx.loader.create({ name: "@deepseek-ai/cordis-plugin-timer" });
|
|
324
|
-
await ctx.loader.create({
|
|
325
|
-
name: "@deepseek-ai/cordis-plugin-hmr",
|
|
326
|
-
config: { root: [] }
|
|
327
|
-
});
|
|
229
|
+
let disposal;
|
|
230
|
+
const dispose = () => disposal ??= (async () => {
|
|
231
|
+
const failures = [];
|
|
232
|
+
for (const release of [() => app.current?.fiber.dispose(), disposeProxy]) try {
|
|
233
|
+
await release();
|
|
234
|
+
} catch (error) {
|
|
235
|
+
failures.push(error);
|
|
328
236
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
237
|
+
if (failures.length === 1) throw failures[0];
|
|
238
|
+
if (failures.length > 1) throw new AggregateError(failures, "dsh: profile cleanup failed");
|
|
239
|
+
})();
|
|
240
|
+
try {
|
|
241
|
+
const composed = await composeProfile(options.profile, options.patchFiles, options.fromDefaultProfile, options.resolvedProfile);
|
|
242
|
+
const appReady = createAppReady();
|
|
243
|
+
const shutdown = createProcessShutdown(dispose);
|
|
244
|
+
const signalShutdown = new AbortController();
|
|
245
|
+
const interrupt = (code) => {
|
|
246
|
+
signalShutdown.abort();
|
|
247
|
+
shutdown.interrupt(code);
|
|
248
|
+
};
|
|
249
|
+
process.on("SIGTERM", () => {
|
|
250
|
+
interrupt(0);
|
|
251
|
+
});
|
|
252
|
+
process.on("SIGINT", () => {
|
|
253
|
+
interrupt(130);
|
|
254
|
+
});
|
|
255
|
+
installFailLoud(NAME, process, async () => {
|
|
256
|
+
await app.current?.fiber.dispose();
|
|
333
257
|
});
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
258
|
+
const rootConfig = join(composed.profile.dir, PROFILE_ROOT_FILENAME);
|
|
259
|
+
const profileContext = {
|
|
260
|
+
name: options.profile,
|
|
261
|
+
...options.packageManager === void 0 ? {} : { packageManager: options.packageManager },
|
|
262
|
+
dir: composed.profile.dir,
|
|
263
|
+
patchPath: composed.profile.patchPath,
|
|
264
|
+
installAnchor: options.resolvedProfile?.installAnchor ?? INSTALL_ANCHOR,
|
|
265
|
+
startedBundles: composed.profile.layers.map((layer) => layer.packageName),
|
|
266
|
+
cwd: process.cwd(),
|
|
267
|
+
home: resolveDshHome(),
|
|
268
|
+
overlays: composed.overlays,
|
|
269
|
+
telemetryDisabledEnv: process.env.DSH_TELEMETRY_DISABLED
|
|
270
|
+
};
|
|
271
|
+
const ctx = await boot(NAME, rootConfig, readProfilePatches(NAME, profileContext, composed.profile), async (hostCtx) => {
|
|
272
|
+
app.current = hostCtx;
|
|
273
|
+
hostCtx.provide("profileContext", profileContext);
|
|
274
|
+
hostCtx.provide(DSH_LAUNCH_ENVIRONMENT_KEY, options.environment);
|
|
275
|
+
await hostCtx.plugin(PluginPackages, { resolution: composed.resolution });
|
|
276
|
+
provideCmdline(hostCtx, {
|
|
277
|
+
args: options.args,
|
|
278
|
+
exit: (code) => void shutdown.shutdown(code),
|
|
279
|
+
ready: appReady.service
|
|
280
|
+
});
|
|
338
281
|
});
|
|
282
|
+
app.current = ctx;
|
|
283
|
+
if (!signalShutdown.signal.aborted && ctx.fiber.state === 2 && ctx.get("loader") !== void 0) appReady.commit();
|
|
284
|
+
return {
|
|
285
|
+
ctx,
|
|
286
|
+
shutdown
|
|
287
|
+
};
|
|
339
288
|
} catch (error) {
|
|
340
|
-
|
|
289
|
+
try {
|
|
290
|
+
await dispose();
|
|
291
|
+
} catch (cleanupError) {
|
|
292
|
+
throw new AggregateError([error, cleanupError], "dsh: profile startup and cleanup failed");
|
|
293
|
+
}
|
|
294
|
+
throw error;
|
|
341
295
|
}
|
|
342
|
-
if (!signalShutdown.signal.aborted && ctx.fiber.state === 2 && ctx.get("loader") !== void 0) appReady.commit();
|
|
343
|
-
return {
|
|
344
|
-
ctx,
|
|
345
|
-
shutdown
|
|
346
|
-
};
|
|
347
296
|
}
|
|
348
297
|
//#endregion
|
|
349
|
-
export { INSTALL_ANCHOR, PROFILE_ROOT_FILENAME, homePatchPath, initializeProfileFromDefault, prepareProfile,
|
|
298
|
+
export { INSTALL_ANCHOR, PROFILE_ROOT_FILENAME, homePatchPath, initializeProfileFromDefault, prepareProfile, runProfile };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@machina.ai/cell-harness",
|
|
3
3
|
"description": "Cell Harness CLI: Nova Solutions",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.2.0-rc2.c1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -21,113 +21,114 @@
|
|
|
21
21
|
],
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@deepseek-ai/dsh-tool-present": "^0.1.5-alpha.2",
|
|
25
24
|
"commander": "^15.0.0",
|
|
26
25
|
"js-yaml": "^4.2.0",
|
|
27
26
|
"node-addon-require-builtin": "^0.1.4",
|
|
28
|
-
"@deepseek-ai/cordis": "
|
|
29
|
-
"@deepseek-ai/cordis
|
|
30
|
-
"@deepseek-ai/cordis-plugin-
|
|
31
|
-
"@deepseek-ai/cordis-plugin-
|
|
32
|
-
"@deepseek-ai/cordis-plugin-
|
|
33
|
-
"@deepseek-ai/cordis-plugin-
|
|
34
|
-
"@deepseek-ai/dsh-agent-
|
|
35
|
-
"@deepseek-ai/dsh-
|
|
36
|
-
"@deepseek-ai/dsh-
|
|
37
|
-
"@deepseek-ai/dsh-
|
|
38
|
-
"@deepseek-ai/dsh-
|
|
39
|
-
"@deepseek-ai/dsh-client-ui-
|
|
40
|
-
"@deepseek-ai/dsh-
|
|
41
|
-
"@deepseek-ai/dsh-
|
|
42
|
-
"@deepseek-ai/dsh-agent-
|
|
43
|
-
"@deepseek-ai/dsh-
|
|
44
|
-
"@deepseek-ai/dsh-
|
|
45
|
-
"@deepseek-ai/dsh-
|
|
46
|
-
"@deepseek-ai/dsh-
|
|
47
|
-
"@deepseek-ai/dsh-
|
|
48
|
-
"@deepseek-ai/dsh-goal-round-driver": "0.
|
|
49
|
-
"@deepseek-ai/dsh-
|
|
50
|
-
"@deepseek-ai/dsh-
|
|
51
|
-
"@deepseek-ai/dsh-
|
|
52
|
-
"@deepseek-ai/dsh-
|
|
53
|
-
"@deepseek-ai/dsh-
|
|
54
|
-
"@deepseek-ai/dsh-
|
|
55
|
-
"@deepseek-ai/dsh-
|
|
56
|
-
"@deepseek-ai/dsh-
|
|
57
|
-
"@deepseek-ai/dsh-
|
|
58
|
-
"@deepseek-ai/dsh-
|
|
59
|
-
"@deepseek-ai/dsh-
|
|
60
|
-
"@deepseek-ai/dsh-
|
|
61
|
-
"@deepseek-ai/dsh-
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-
|
|
64
|
-
"@deepseek-ai/dsh-pwsh-local": "0.
|
|
65
|
-
"@deepseek-ai/dsh-
|
|
66
|
-
"@deepseek-ai/dsh-
|
|
67
|
-
"@deepseek-ai/dsh-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
69
|
-
"@deepseek-ai/dsh-
|
|
70
|
-
"@deepseek-ai/dsh-
|
|
71
|
-
"@deepseek-ai/dsh-
|
|
72
|
-
"@deepseek-ai/dsh-skill
|
|
73
|
-
"@deepseek-ai/dsh-
|
|
74
|
-
"@deepseek-ai/dsh-subagent
|
|
75
|
-
"@deepseek-ai/dsh-
|
|
76
|
-
"@deepseek-ai/dsh-
|
|
77
|
-
"@deepseek-ai/dsh-subagent-
|
|
78
|
-
"@deepseek-ai/dsh-
|
|
79
|
-
"@deepseek-ai/dsh-subagent-
|
|
80
|
-
"@deepseek-ai/dsh-terminal-bash": "0.
|
|
81
|
-
"@deepseek-ai/dsh-
|
|
82
|
-
"@deepseek-ai/dsh-subagent-
|
|
83
|
-
"@deepseek-ai/dsh-
|
|
84
|
-
"@deepseek-ai/dsh-
|
|
85
|
-
"@deepseek-ai/dsh-
|
|
86
|
-
"@deepseek-ai/dsh-tool-
|
|
87
|
-
"@deepseek-ai/dsh-tool-
|
|
88
|
-
"@deepseek-ai/dsh-tool-
|
|
89
|
-
"@deepseek-ai/dsh-tool-
|
|
90
|
-
"@deepseek-ai/dsh-
|
|
91
|
-
"@deepseek-ai/dsh-tool-fs": "0.
|
|
92
|
-
"@deepseek-ai/dsh-tool-
|
|
93
|
-
"@deepseek-ai/dsh-tool-
|
|
94
|
-
"@deepseek-ai/dsh-tool-
|
|
95
|
-
"@deepseek-ai/dsh-tool-
|
|
96
|
-
"@deepseek-ai/dsh-tool-
|
|
97
|
-
"@deepseek-ai/dsh-tool-
|
|
98
|
-
"@deepseek-ai/dsh-tool-
|
|
99
|
-
"@deepseek-ai/dsh-tool-
|
|
100
|
-
"@deepseek-ai/dsh-tool-
|
|
101
|
-
"@deepseek-ai/dsh-tool-
|
|
102
|
-
"@deepseek-ai/dsh-tool-
|
|
103
|
-
"@deepseek-ai/dsh-tool-
|
|
104
|
-
"@deepseek-ai/dsh-tool-
|
|
105
|
-
"@deepseek-ai/dsh-tool-
|
|
106
|
-
"@deepseek-ai/dsh-tool-
|
|
107
|
-
"@deepseek-ai/dsh-web
|
|
108
|
-
"@deepseek-ai/dsh-
|
|
109
|
-
"@deepseek-ai/dsh-web-
|
|
110
|
-
"@deepseek-ai/dsh-
|
|
111
|
-
"@deepseek-ai/dsh-web-
|
|
112
|
-
"@deepseek-ai/dsh-
|
|
113
|
-
"@deepseek-ai/
|
|
114
|
-
"@
|
|
115
|
-
"@
|
|
116
|
-
"@
|
|
117
|
-
"@machina.ai/ch-
|
|
118
|
-
"@machina.ai/ch-client-
|
|
119
|
-
"@machina.ai/ch-
|
|
120
|
-
"@machina.ai/ch-
|
|
121
|
-
"@machina.ai/ch-
|
|
122
|
-
"@machina.ai/ch-
|
|
123
|
-
"@
|
|
124
|
-
"@machina.ai/ch-
|
|
27
|
+
"@deepseek-ai/cordis-plugin-group": "~1.0.4",
|
|
28
|
+
"@deepseek-ai/cordis": "~4.0.4",
|
|
29
|
+
"@deepseek-ai/cordis-plugin-include": "~1.0.9",
|
|
30
|
+
"@deepseek-ai/cordis-plugin-loader": "~1.0.5",
|
|
31
|
+
"@deepseek-ai/cordis-plugin-timer": "~1.1.6",
|
|
32
|
+
"@deepseek-ai/cordis-plugin-hmr": "~1.0.19",
|
|
33
|
+
"@deepseek-ai/dsh-agent-instructions": "0.2.0-rc.2",
|
|
34
|
+
"@deepseek-ai/dsh-acp-app": "0.2.0-rc.2",
|
|
35
|
+
"@deepseek-ai/dsh-agent-preset": "0.2.0-rc.2",
|
|
36
|
+
"@deepseek-ai/dsh-agent-tool-presentation": "0.2.0-rc.2",
|
|
37
|
+
"@deepseek-ai/dsh-app-boot": "0.2.0-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-client-ui-cordis": "0.2.0-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-base": "0.2.0-rc.2",
|
|
40
|
+
"@deepseek-ai/dsh-client-ui-agent-preset": "0.2.0-rc.2",
|
|
41
|
+
"@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
|
|
42
|
+
"@deepseek-ai/dsh-cmdline": "0.2.0-rc.2",
|
|
43
|
+
"@deepseek-ai/dsh-command-compact": "0.2.0-rc.2",
|
|
44
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
45
|
+
"@deepseek-ai/dsh-command-goal": "0.2.0-rc.2",
|
|
46
|
+
"@deepseek-ai/dsh-compaction-tool-result-pruner": "0.2.0-rc.2",
|
|
47
|
+
"@deepseek-ai/dsh-goal-round-driver": "0.2.0-rc.2",
|
|
48
|
+
"@deepseek-ai/dsh-fs-local": "0.2.0-rc.2",
|
|
49
|
+
"@deepseek-ai/dsh-headless": "0.2.0-rc.2",
|
|
50
|
+
"@deepseek-ai/dsh-cordis-client-runner": "0.2.0-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-goal": "0.2.0-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-home-paths": "0.2.0-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-hooks-claude-code": "0.2.0-rc.2",
|
|
54
|
+
"@deepseek-ai/dsh-http-proxy": "0.2.0-rc.2",
|
|
55
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.0-rc.2",
|
|
56
|
+
"@deepseek-ai/dsh-hooks-codex": "0.2.0-rc.2",
|
|
57
|
+
"@deepseek-ai/dsh-jobs-local": "0.2.0-rc.2",
|
|
58
|
+
"@deepseek-ai/dsh-llm-pi-ai": "0.2.0-rc.2",
|
|
59
|
+
"@deepseek-ai/dsh-lsp-stdio": "0.2.0-rc.2",
|
|
60
|
+
"@deepseek-ai/dsh-mcp-client": "0.2.0-rc.2",
|
|
61
|
+
"@deepseek-ai/dsh-persona": "0.2.0-rc.2",
|
|
62
|
+
"@deepseek-ai/dsh-plan-mode": "0.2.0-rc.2",
|
|
63
|
+
"@deepseek-ai/dsh-pwsh-local": "0.2.0-rc.2",
|
|
64
|
+
"@deepseek-ai/dsh-pwsh-sandbox": "0.2.0-rc.2",
|
|
65
|
+
"@deepseek-ai/dsh-repeat-tool-reminder": "0.2.0-rc.2",
|
|
66
|
+
"@deepseek-ai/dsh-schedule": "0.2.0-rc.2",
|
|
67
|
+
"@deepseek-ai/dsh-sdk-app": "0.2.0-rc.2",
|
|
68
|
+
"@deepseek-ai/dsh-sdk-minimal": "0.2.0-rc.2",
|
|
69
|
+
"@deepseek-ai/dsh-session-reference": "0.2.0-rc.2",
|
|
70
|
+
"@deepseek-ai/dsh-session-projection": "0.2.0-rc.2",
|
|
71
|
+
"@deepseek-ai/dsh-skill": "0.2.0-rc.2",
|
|
72
|
+
"@deepseek-ai/dsh-skill-filesystem": "0.2.0-rc.2",
|
|
73
|
+
"@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
|
|
74
|
+
"@deepseek-ai/dsh-subagent-acp": "0.2.0-rc.2",
|
|
75
|
+
"@deepseek-ai/dsh-subagent-claude-code": "0.2.0-rc.2",
|
|
76
|
+
"@deepseek-ai/dsh-subagent-dsh-sdk": "0.2.0-rc.2",
|
|
77
|
+
"@deepseek-ai/dsh-subagent-codex": "0.2.0-rc.2",
|
|
78
|
+
"@deepseek-ai/dsh-subagent-spawn-in-process": "0.2.0-rc.2",
|
|
79
|
+
"@deepseek-ai/dsh-terminal-bash": "0.2.0-rc.2",
|
|
80
|
+
"@deepseek-ai/dsh-terminal": "0.2.0-rc.2",
|
|
81
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.0-rc.2",
|
|
82
|
+
"@deepseek-ai/dsh-time-context": "0.2.0-rc.2",
|
|
83
|
+
"@deepseek-ai/dsh-tmux-context": "0.2.0-rc.2",
|
|
84
|
+
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
|
|
85
|
+
"@deepseek-ai/dsh-tool-ask-user": "0.2.0-rc.2",
|
|
86
|
+
"@deepseek-ai/dsh-tool-bash": "0.2.0-rc.2",
|
|
87
|
+
"@deepseek-ai/dsh-tool-bash-persistent": "0.2.0-rc.2",
|
|
88
|
+
"@deepseek-ai/dsh-tool-call-timeout-policy": "0.2.0-rc.2",
|
|
89
|
+
"@deepseek-ai/dsh-tool-cordis": "0.2.0-rc.2",
|
|
90
|
+
"@deepseek-ai/dsh-tool-fs": "0.2.0-rc.2",
|
|
91
|
+
"@deepseek-ai/dsh-tool-fs-search": "0.2.0-rc.2",
|
|
92
|
+
"@deepseek-ai/dsh-tool-jobs": "0.2.0-rc.2",
|
|
93
|
+
"@deepseek-ai/dsh-tool-lsp": "0.2.0-rc.2",
|
|
94
|
+
"@deepseek-ai/dsh-tool-goal": "0.2.0-rc.2",
|
|
95
|
+
"@deepseek-ai/dsh-tool-present": "0.2.0-rc.2",
|
|
96
|
+
"@deepseek-ai/dsh-tool-pwsh": "0.2.0-rc.2",
|
|
97
|
+
"@deepseek-ai/dsh-tool-pwsh-persistent": "0.2.0-rc.2",
|
|
98
|
+
"@deepseek-ai/dsh-tool-ralph": "0.2.0-rc.2",
|
|
99
|
+
"@deepseek-ai/dsh-tool-session-query": "0.2.0-rc.2",
|
|
100
|
+
"@deepseek-ai/dsh-tool-skill": "0.2.0-rc.2",
|
|
101
|
+
"@deepseek-ai/dsh-tool-str-replace-editor": "0.2.0-rc.2",
|
|
102
|
+
"@deepseek-ai/dsh-tool-subagent": "0.2.0-rc.2",
|
|
103
|
+
"@deepseek-ai/dsh-tool-subagent-control": "0.2.0-rc.2",
|
|
104
|
+
"@deepseek-ai/dsh-tool-terminal": "0.2.0-rc.2",
|
|
105
|
+
"@deepseek-ai/dsh-tool-todo": "0.2.0-rc.2",
|
|
106
|
+
"@deepseek-ai/dsh-tool-web": "0.2.0-rc.2",
|
|
107
|
+
"@deepseek-ai/dsh-tool-workflow": "0.2.0-rc.2",
|
|
108
|
+
"@deepseek-ai/dsh-web-app": "0.2.0-rc.2",
|
|
109
|
+
"@deepseek-ai/dsh-web-search-perplexity": "0.2.0-rc.2",
|
|
110
|
+
"@deepseek-ai/dsh-web-frontend": "0.2.0-rc.2",
|
|
111
|
+
"@deepseek-ai/dsh-webhook": "0.2.0-rc.2",
|
|
112
|
+
"@deepseek-ai/dsh-web-search-exa": "0.2.0-rc.2",
|
|
113
|
+
"@deepseek-ai/dsh-workflow-ptc": "0.2.0-rc.2",
|
|
114
|
+
"@deepseek-ai/dsh-webhook-github": "0.2.0-rc.2",
|
|
115
|
+
"@deepseek-ai/schemastery": "~3.18.4",
|
|
116
|
+
"@machina.ai/ch-auth-reboot-sso": "^0.2.0-rc2.c1",
|
|
117
|
+
"@machina.ai/ch-client-locale-es-mx": "^0.2.0-rc2.c1",
|
|
118
|
+
"@machina.ai/ch-client-ui-brand-nova": "^0.2.0-rc2.c1",
|
|
119
|
+
"@machina.ai/ch-image": "^0.2.0-rc2.c1",
|
|
120
|
+
"@machina.ai/ch-client-ui-settings-cell-models": "^0.2.0-rc2.c1",
|
|
121
|
+
"@machina.ai/ch-image-gemini-reboot": "^0.2.0-rc2.c1",
|
|
122
|
+
"@machina.ai/ch-llm-reboot": "^0.2.0-rc2.c1",
|
|
123
|
+
"@machina.ai/ch-skill-conductor": "^0.2.0-rc2.c1",
|
|
124
|
+
"@machina.ai/ch-tool-image": "^0.2.0-rc2.c1",
|
|
125
|
+
"@machina.ai/ch-web-search-gemini": "^0.2.0-rc2.c1"
|
|
125
126
|
},
|
|
126
127
|
"devDependencies": {
|
|
127
128
|
"@types/js-yaml": "^4.0.9",
|
|
128
129
|
"@types/node": "^22.0.0",
|
|
129
130
|
"js-yaml": "^4.1.0",
|
|
130
|
-
"@deepseek-ai/cordis-plugin-include": "
|
|
131
|
+
"@deepseek-ai/cordis-plugin-include": "~1.0.9"
|
|
131
132
|
},
|
|
132
133
|
"scripts": {
|
|
133
134
|
"bundle": "tsdown",
|