@machina.ai/cell-harness 0.2.1-rc2.c3 → 0.2.2-rc3.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.i18n.yaml CHANGED
@@ -1,6 +1,19 @@
1
- # Bilingual-pair consistency record (docs/i18n/README.md): the git blob hash of each
2
- # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
- # after editing either side, bring the other along and re-record with:
1
+ # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
+ # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
+ # After editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write apps/cell-harness/README.md
5
- README.md: f2f70eb90cfbec120b2822eac17ca344c476b332
6
- README.zh.md: c75737db2178fe821c16977bed1fa4f77b2ce002
5
+ /machina-ai-cell-harness:
6
+ en: 8372bf9374a75f1c
7
+ zh: 663894a9e5fe2f15
8
+ /machina-ai-cell-harness/overview:
9
+ en: 9c53ea916bd8402d
10
+ zh: b91d777592fa4d89
11
+ /machina-ai-cell-harness/installing-it-from-npm:
12
+ en: 2c91ff17f13fd852
13
+ zh: fa5494a9b17d0a46
14
+ /machina-ai-cell-harness/running-it:
15
+ en: f7c940bd344b8f62
16
+ zh: b75d0aea4b1f8fc5
17
+ /machina-ai-cell-harness/upstream-plugins-and-intentional-exclusions-adr-alignment:
18
+ en: 671adc83823a601e
19
+ zh: 4c46c6d235af2963
package/README.md CHANGED
@@ -19,6 +19,8 @@ Both planes are covered by `apps/cell-harness/tests/launcher.spec.ts`, and a bui
19
19
 
20
20
  The `web` profile overwrites the built `@deepseek-ai/dsh-web-frontend` favicon, HTML title, and PWA manifest name at boot (`src/web-branding.ts`): the favicon becomes the Nova Solutions Systems mark, and both the tab title and the `manifest.webmanifest` `name`/`short_name` (the PWA window title `web-runtime`'s `openBrowser` uses for its `display: "fullscreen"` window) become "Cell". This patches the built `dist/favicon.svg`, `dist/index.html`, and `dist/manifest.webmanifest` artifacts only; the upstream package's source tree (`apps/web/public/favicon.svg`, `apps/web/public/manifest.webmanifest`, `apps/web/index.html`, `apps/web/vite.config.ts`) is never touched.
21
21
 
22
+ Every profile sets `$DSH_HOME` to `~/.cell-harness` unless the operator already set a non-blank value, so settings, credentials, Sessions, and `AGENTS.md` never share the upstream home; Cell Harness Desktop sets it in its Electron main process before spawning the Host. Both overlays set `workspace-controller`'s `documentsDirectory` to `$DSH_HOME` and its `documentsSubdirectory` to `workspaces`, so the first-use Workspace is created at `~/.cell-harness/workspaces/default-workspace` instead of `<Documents>/deepseek-harness/default-workspace` ([decision](../../.agents/notes/implemented/feature/2026-10-24-cell-harness-home-and-first-use-workspace.md)).
23
+
22
24
  ## Upstream Plugins and Intentional Exclusions (ADR Alignment)
23
25
 
24
26
  All standard upstream plugins, tool implementations, and preset dependencies from `@deepseek-ai/dsh-*` (such as `@deepseek-ai/dsh-tool-present`, `@deepseek-ai/dsh-agent-presets`, LSP tools, terminal tools, and session query tools) are declared in `package.json` so that upstream agent presets (`standard`, `ptc`, `cordis`, `minimal`) resolve cleanly without missing dependency errors.
package/README.zh.md CHANGED
@@ -19,6 +19,8 @@ Nova Solutions 出品的 Cell Harness CLI 可执行程序。
19
19
 
20
20
  `web` profile 会在启动时覆盖已构建的 `@deepseek-ai/dsh-web-frontend` favicon、HTML 标题与 PWA manifest 名称(`src/web-branding.ts`):favicon 变为 Nova Solutions Systems 标记,标签页标题与 `manifest.webmanifest` 的 `name`/`short_name`(即 `web-runtime` 的 `openBrowser` 为其 `display: "fullscreen"` 窗口所使用的 PWA 窗口标题)都变为 "Cell"。这只修补构建后的 `dist/favicon.svg`、`dist/index.html` 与 `dist/manifest.webmanifest` 产物;上游包的源码树(`apps/web/public/favicon.svg`、`apps/web/public/manifest.webmanifest`、`apps/web/index.html`、`apps/web/vite.config.ts`)绝不被触碰。
21
21
 
22
+ 所有 profile 都会将 `$DSH_HOME` 设为 `~/.cell-harness`(运维方已设置非空值时保留其值),使 settings、凭据、Session 与 `AGENTS.md` 不与上游 home 共用;Cell Harness Desktop 在其 Electron 主进程启动 Host 前完成设置。两个 overlay 都将 `workspace-controller` 的 `documentsDirectory` 设为 `$DSH_HOME`、`documentsSubdirectory` 设为 `workspaces`,因此首次使用的 Workspace 创建于 `~/.cell-harness/workspaces/default-workspace`,而非 `<Documents>/deepseek-harness/default-workspace`([决策](../../.agents/notes/implemented/feature/2026-10-24-cell-harness-home-and-first-use-workspace.zh.md))。
23
+
22
24
  ## 上游插件与有意排除说明(ADR 对齐)
23
25
 
24
26
  所有来自 `@deepseek-ai/dsh-*` 的标准上游插件、工具实现与 preset 依赖(例如 `@deepseek-ai/dsh-tool-present`、`@deepseek-ai/dsh-agent-presets`、LSP 工具、terminal 工具和 session query 工具)均在 `package.json` 中声明,确保上游 agent preset(`standard`、`ptc`、`cordis`、`minimal`)能够正常解析,避免缺失依赖错误。
@@ -49,14 +49,6 @@
49
49
  - id: web-search-deepseek
50
50
  disabled: true
51
51
 
52
- # llm-reboot registers one route per provider family (reboot-gemini,
53
- # reboot-anthropic, reboot-openai, reboot-xai) so the chat composer's model
54
- # selector groups by family; the default model lives on the Gemini route.
55
- - id: agent-default-model
56
- config:
57
- provider: reboot-gemini
58
- model: auto-gemini-3.8
59
-
60
52
  # Deployment identity: replaces the fixed "You are an AI agent powered by
61
53
  # DeepSeek Harness." line with the Cell Harness / Nova Solutions Systems
62
54
  # persona, so "who are you" answers name this deployment instead of upstream.
@@ -104,3 +96,13 @@
104
96
  - id: agent-presets
105
97
  config:
106
98
  default: standard
99
+
100
+ # First-use Workspace: workspace-controller creates it at
101
+ # `<documentsDirectory>/<documentsSubdirectory>/default-workspace`. Rooting it in
102
+ # Cell Harness's own home (`$DSH_HOME`, `~/.cell-harness` by default) keeps it
103
+ # out of the user's Documents folder, and `workspaces` replaces the upstream
104
+ # `deepseek-harness` folder name.
105
+ - id: workspace-controller
106
+ config:
107
+ documentsDirectory: !!js dshHomePath()
108
+ documentsSubdirectory: workspaces
package/lib/bin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { h as runCellHarnessCli } from "./launcher-BxFBWLQ2.js";
2
+ import { g as runCellHarnessCli } from "./launcher-DHKRPSJf.js";
3
3
  //#region lib/types/bin.js
4
4
  /**
5
5
  * Command-line entry for cell-harness executable.
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-BxFBWLQ2.js";
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
+ import { a as ensureAuthenticatedSession, c as ensureDefaultModelProfilePatch, d as installConsoleRebrand, f as parseCellHarnessArgs, g as runCellHarnessCli, h as resolveProfileBootUrl, i as PROFILE_BOOT_SOURCE_URL, l as findEAddrInUseError, m as resolveCellHarnessSessionPath, n as CELL_HARNESS_VERSION, o as ensureCellHarnessDshHome, p as resolveCellHarnessDshHome, r as PROFILE_BOOT_ARTIFACT_URL, s as ensureCellHarnessTelemetryDisabled, t as CELL_HARNESS_PATCH, u as getBrandBanner } from "./launcher-DHKRPSJf.js";
2
+ export { CELL_HARNESS_PATCH, CELL_HARNESS_VERSION, PROFILE_BOOT_ARTIFACT_URL, PROFILE_BOOT_SOURCE_URL, ensureAuthenticatedSession, ensureCellHarnessDshHome, ensureCellHarnessTelemetryDisabled, ensureDefaultModelProfilePatch, findEAddrInUseError, getBrandBanner, installConsoleRebrand, parseCellHarnessArgs, resolveCellHarnessDshHome, resolveCellHarnessSessionPath, resolveProfileBootUrl, runCellHarnessCli };
@@ -4,7 +4,7 @@ import { homedir } from "node:os";
4
4
  import { dirname, join, resolve } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { Context } from "@deepseek-ai/cordis";
7
- import { loadLayeredEnv } from "@deepseek-ai/dsh-app-boot";
7
+ import { PROFILE_PATCH_FILENAME, loadLayeredEnv, resolveProfileDir } from "@deepseek-ai/dsh-app-boot";
8
8
  import { DSH_HOME_ENV } from "@deepseek-ai/dsh-home-paths";
9
9
  import { RebootAuthService, RebootSessionStore, decodeJwtPayload, ensureCellHarnessConfigFile, loadCellHarnessConfig, loadCellHarnessConfigSync } from "@machina.ai/ch-auth-reboot-sso";
10
10
  import { spawn } from "node:child_process";
@@ -561,7 +561,7 @@ const CELL_HARNESS_VERSION = (function resolveVersion() {
561
561
  if (pkg.version) return pkg.version;
562
562
  } catch {}
563
563
  }
564
- return "0.2.1-rc2.c3";
564
+ return "0.2.2-rc3.c1";
565
565
  })();
566
566
  /** Path to the canonical Cell Harness Cordis patch overlay */
567
567
  const CELL_HARNESS_PATCH = fileURLToPath(new URL("../config/cell-harness.cordis.patch.yml", import.meta.url));
@@ -809,6 +809,37 @@ function installConsoleRebrand() {
809
809
  console.error = originalError;
810
810
  };
811
811
  }
812
+ const DEFAULT_MODEL_PATCH_ENTRY = [
813
+ "- id: agent-default-model",
814
+ " name: '@deepseek-ai/dsh-agent-default-model'",
815
+ " config:",
816
+ " provider: reboot-gemini",
817
+ " model: gemini-3.8-flash",
818
+ ""
819
+ ].join("\n");
820
+ /**
821
+ * Seeds `agent-default-model` in the profile's own `cordis.patch.yml` when absent so
822
+ * Cell Harness starts on Reboot Gemini instead of upstream DeepSeek while still allowing
823
+ * users to change and persist the default model from the UI (`ConfigEditor`).
824
+ *
825
+ * @param profileDir - Absolute path to the profile directory.
826
+ */
827
+ function ensureDefaultModelProfilePatch(profileDir) {
828
+ const patchPath = join(profileDir, PROFILE_PATCH_FILENAME);
829
+ if (!existsSync(patchPath)) {
830
+ mkdirSync(profileDir, { recursive: true });
831
+ writeFileSync(patchPath, DEFAULT_MODEL_PATCH_ENTRY, "utf8");
832
+ return;
833
+ }
834
+ const content = readFileSync(patchPath, "utf8");
835
+ const stripped = content.replace(/^\s*#.*$/gm, "").trim();
836
+ if (stripped === "" || stripped === "[]") {
837
+ writeFileSync(patchPath, DEFAULT_MODEL_PATCH_ENTRY, "utf8");
838
+ return;
839
+ }
840
+ if (/^\s*(?:-\s+)?id:\s*['"]?agent-default-model['"]?\s*$/m.test(content)) return;
841
+ writeFileSync(patchPath, `${content}${content.endsWith("\n") ? "" : "\n"}${DEFAULT_MODEL_PATCH_ENTRY}`, "utf8");
842
+ }
812
843
  /**
813
844
  * Executes the Cell Harness CLI interface.
814
845
  * @param argv - Arguments to execute.
@@ -861,6 +892,7 @@ async function runCellHarnessCli(argv = process.argv.slice(2)) {
861
892
  if (invocation.profile === "web") {
862
893
  if (!effectiveArgs.some((arg) => arg === "--port" || arg.startsWith("--port=")) && cellConfig.web.port) effectiveArgs.push("--port", String(cellConfig.web.port));
863
894
  }
895
+ ensureDefaultModelProfilePatch(resolveProfileDir(invocation.profile));
864
896
  try {
865
897
  await profileModule.runProfile({
866
898
  environment: loadLayeredEnv("cell-harness"),
@@ -887,4 +919,4 @@ async function runCellHarnessCli(argv = process.argv.slice(2)) {
887
919
  }
888
920
  }
889
921
  //#endregion
890
- export { ensureAuthenticatedSession as a, findEAddrInUseError as c, parseCellHarnessArgs as d, resolveCellHarnessDshHome as f, runCellHarnessCli as h, PROFILE_BOOT_SOURCE_URL as i, getBrandBanner as l, resolveProfileBootUrl as m, CELL_HARNESS_VERSION as n, ensureCellHarnessDshHome as o, resolveCellHarnessSessionPath as p, PROFILE_BOOT_ARTIFACT_URL as r, ensureCellHarnessTelemetryDisabled as s, CELL_HARNESS_PATCH as t, installConsoleRebrand as u };
922
+ export { ensureAuthenticatedSession as a, ensureDefaultModelProfilePatch as c, installConsoleRebrand as d, parseCellHarnessArgs as f, runCellHarnessCli as g, resolveProfileBootUrl as h, PROFILE_BOOT_SOURCE_URL as i, findEAddrInUseError as l, resolveCellHarnessSessionPath as m, CELL_HARNESS_VERSION as n, ensureCellHarnessDshHome as o, resolveCellHarnessDshHome as p, PROFILE_BOOT_ARTIFACT_URL as r, ensureCellHarnessTelemetryDisabled as s, CELL_HARNESS_PATCH as t, getBrandBanner as u };
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.2.1-rc2.c3",
4
+ "version": "0.2.2-rc3.c1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -102,19 +102,19 @@
102
102
  "@deepseek-ai/dsh-web-search-perplexity": "0.2.1-rc.2",
103
103
  "@deepseek-ai/dsh-workflow-ptc": "0.2.1-rc.2",
104
104
  "@deepseek-ai/schemastery": "~3.18.5",
105
- "@machina.ai/ch-api-quota": "^0.2.1-rc2.c3",
106
- "@machina.ai/ch-auth-reboot-sso": "^0.2.1-rc2.c3",
107
- "@machina.ai/ch-client-locale-es-mx": "^0.2.1-rc2.c3",
108
- "@machina.ai/ch-client-quota": "^0.2.1-rc2.c3",
109
- "@machina.ai/ch-client-ui-brand-nova": "^0.2.1-rc2.c3",
110
- "@machina.ai/ch-client-ui-settings-cell-models": "^0.2.1-rc2.c3",
111
- "@machina.ai/ch-image": "^0.2.1-rc2.c3",
112
- "@machina.ai/ch-image-gemini-reboot": "^0.2.1-rc2.c3",
113
- "@machina.ai/ch-llm-reboot": "^0.2.1-rc2.c3",
114
- "@machina.ai/ch-skill-conductor": "^0.2.1-rc2.c3",
115
- "@machina.ai/ch-subagent-cell-cli": "^0.2.1-rc2.c3",
116
- "@machina.ai/ch-tool-image": "^0.2.1-rc2.c3",
117
- "@machina.ai/ch-web-search-gemini": "^0.2.1-rc2.c3",
105
+ "@machina.ai/ch-api-quota": "^0.2.2-rc3.c1",
106
+ "@machina.ai/ch-auth-reboot-sso": "^0.2.2-rc3.c1",
107
+ "@machina.ai/ch-client-locale-es-mx": "^0.2.2-rc3.c1",
108
+ "@machina.ai/ch-client-quota": "^0.2.2-rc3.c1",
109
+ "@machina.ai/ch-client-ui-brand-nova": "^0.2.2-rc3.c1",
110
+ "@machina.ai/ch-client-ui-settings-cell-models": "^0.2.2-rc3.c1",
111
+ "@machina.ai/ch-image": "^0.2.2-rc3.c1",
112
+ "@machina.ai/ch-image-gemini-reboot": "^0.2.2-rc3.c1",
113
+ "@machina.ai/ch-llm-reboot": "^0.2.2-rc3.c1",
114
+ "@machina.ai/ch-skill-conductor": "^0.2.2-rc3.c1",
115
+ "@machina.ai/ch-subagent-cell-cli": "^0.2.2-rc3.c1",
116
+ "@machina.ai/ch-tool-image": "^0.2.2-rc3.c1",
117
+ "@machina.ai/ch-web-search-gemini": "^0.2.2-rc3.c1",
118
118
  "commander": "^15.0.0",
119
119
  "js-yaml": "^4.2.0",
120
120
  "node-addon-require-builtin": "^0.1.4"