@machina.ai/cell-harness 0.2.1-rc2.c4 → 0.2.2-rc3.c2
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.
|
@@ -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.
|
package/lib/bin.js
CHANGED
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ensureAuthenticatedSession, c as
|
|
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-CweWXzfO.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.
|
|
564
|
+
return "0.2.2-rc3.c2";
|
|
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,
|
|
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.
|
|
4
|
+
"version": "0.2.2-rc3.c2",
|
|
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.
|
|
106
|
-
"@machina.ai/ch-auth-reboot-sso": "^0.2.
|
|
107
|
-
"@machina.ai/ch-client-locale-es-mx": "^0.2.
|
|
108
|
-
"@machina.ai/ch-client-quota": "^0.2.
|
|
109
|
-
"@machina.ai/ch-client-ui-brand-nova": "^0.2.
|
|
110
|
-
"@machina.ai/ch-client-ui-settings-cell-models": "^0.2.
|
|
111
|
-
"@machina.ai/ch-image": "^0.2.
|
|
112
|
-
"@machina.ai/ch-image-gemini-reboot": "^0.2.
|
|
113
|
-
"@machina.ai/ch-llm-reboot": "^0.2.
|
|
114
|
-
"@machina.ai/ch-skill-conductor": "^0.2.
|
|
115
|
-
"@machina.ai/ch-subagent-cell-cli": "^0.2.
|
|
116
|
-
"@machina.ai/ch-tool-image": "^0.2.
|
|
117
|
-
"@machina.ai/ch-web-search-gemini": "^0.2.
|
|
105
|
+
"@machina.ai/ch-api-quota": "^0.2.2-rc3.c2",
|
|
106
|
+
"@machina.ai/ch-auth-reboot-sso": "^0.2.2-rc3.c2",
|
|
107
|
+
"@machina.ai/ch-client-locale-es-mx": "^0.2.2-rc3.c2",
|
|
108
|
+
"@machina.ai/ch-client-quota": "^0.2.2-rc3.c2",
|
|
109
|
+
"@machina.ai/ch-client-ui-brand-nova": "^0.2.2-rc3.c2",
|
|
110
|
+
"@machina.ai/ch-client-ui-settings-cell-models": "^0.2.2-rc3.c2",
|
|
111
|
+
"@machina.ai/ch-image": "^0.2.2-rc3.c2",
|
|
112
|
+
"@machina.ai/ch-image-gemini-reboot": "^0.2.2-rc3.c2",
|
|
113
|
+
"@machina.ai/ch-llm-reboot": "^0.2.2-rc3.c2",
|
|
114
|
+
"@machina.ai/ch-skill-conductor": "^0.2.2-rc3.c2",
|
|
115
|
+
"@machina.ai/ch-subagent-cell-cli": "^0.2.2-rc3.c2",
|
|
116
|
+
"@machina.ai/ch-tool-image": "^0.2.2-rc3.c2",
|
|
117
|
+
"@machina.ai/ch-web-search-gemini": "^0.2.2-rc3.c2",
|
|
118
118
|
"commander": "^15.0.0",
|
|
119
119
|
"js-yaml": "^4.2.0",
|
|
120
120
|
"node-addon-require-builtin": "^0.1.4"
|