@codexhost/cli 0.9.2 → 0.10.0
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 +3 -1
- package/bin/codexhost.js +13 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install -g @codexhost/cli@0.
|
|
8
|
+
npm install -g @codexhost/cli@0.10.0
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
npm automatically installs the matching macOS, Windows, or Linux platform package. Node.js 22 or 24 and the official ChatGPT/Codex Desktop are required.
|
|
@@ -24,3 +24,5 @@ The `codexhost` command starts Codex Desktop. On macOS and Linux it returns imme
|
|
|
24
24
|
On macOS, `remote install` installs a current-user Aqua Harness broker so Background SSH Hosts can use native Claude Code login without reading, copying, or unlocking Keychain credentials.
|
|
25
25
|
|
|
26
26
|
If installation used `--omit=optional`, reinstall without that option so npm can select the native package for the current architecture.
|
|
27
|
+
|
|
28
|
+
If startup reports a platform package version mismatch, close Codex Desktop and run the exact reinstall command in the error. This installs both the CLI and its platform package at the same version, replacing stale independently installed payloads. `codexhost --version` reports the CLI package version; startup also validates the platform payload before launching it.
|
package/bin/codexhost.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { spawn } from "node:child_process";
|
|
3
|
-
import { existsSync, realpathSync } from "node:fs";
|
|
3
|
+
import { existsSync, readFileSync, realpathSync } from "node:fs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { homedir } from "node:os";
|
|
6
6
|
import path from "node:path";
|
|
7
7
|
import { fileURLToPath } from "node:url";
|
|
8
8
|
|
|
9
|
-
const version = "0.
|
|
9
|
+
const version = "0.10.0";
|
|
10
10
|
const userArguments = process.argv.slice(2);
|
|
11
11
|
const repositoryUrl = "https://github.com/BytePioneer-AI/codex-host";
|
|
12
12
|
const startupTraceStartedAt = Date.now();
|
|
@@ -86,6 +86,17 @@ try {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
let platformVersion;
|
|
90
|
+
try {
|
|
91
|
+
platformVersion = JSON.parse(readFileSync(path.join(packageRoot, "package.json"), "utf8"))?.version;
|
|
92
|
+
} catch {
|
|
93
|
+
fail(`cannot read platform package metadata: ${packageRoot}`);
|
|
94
|
+
}
|
|
95
|
+
if (platformVersion !== version) {
|
|
96
|
+
fail(
|
|
97
|
+
`platform package version mismatch: '${platformPackage}' at '${packageRoot}' has ${JSON.stringify(platformVersion) ?? "no version"}; expected ${version}. Close Codex Desktop, then run: npm install -g @codexhost/cli@${version} ${platformPackage}@${version}`,
|
|
98
|
+
);
|
|
99
|
+
}
|
|
89
100
|
startupTrace("platform package resolved");
|
|
90
101
|
const executableSuffix = process.platform === "win32" ? ".exe" : "";
|
|
91
102
|
const launcher = path.join(packageRoot, "bin", `codexhost${executableSuffix}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexhost/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"node": ">=22"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@codexhost/cli-darwin-arm64": "0.
|
|
18
|
-
"@codexhost/cli-darwin-x64": "0.
|
|
19
|
-
"@codexhost/cli-win32-x64": "0.
|
|
20
|
-
"@codexhost/cli-win32-arm64": "0.
|
|
21
|
-
"@codexhost/cli-linux-x64": "0.
|
|
22
|
-
"@codexhost/cli-linux-arm64": "0.
|
|
17
|
+
"@codexhost/cli-darwin-arm64": "0.10.0",
|
|
18
|
+
"@codexhost/cli-darwin-x64": "0.10.0",
|
|
19
|
+
"@codexhost/cli-win32-x64": "0.10.0",
|
|
20
|
+
"@codexhost/cli-win32-arm64": "0.10.0",
|
|
21
|
+
"@codexhost/cli-linux-x64": "0.10.0",
|
|
22
|
+
"@codexhost/cli-linux-arm64": "0.10.0"
|
|
23
23
|
},
|
|
24
24
|
"keywords": [
|
|
25
25
|
"codex",
|