@codexhost/cli 0.1.0 → 0.1.2
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 +8 -1
- package/bin/codexhost.js +11 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -5,11 +5,18 @@ 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.1.
|
|
8
|
+
npm install -g @codexhost/cli@0.1.2
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
npm automatically installs the matching macOS or Windows platform package. Node.js 22 or newer and Codex Desktop are required.
|
|
12
12
|
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
codexhost --version
|
|
17
|
+
codexhost
|
|
18
|
+
```
|
|
19
|
+
|
|
13
20
|
The `codexhost` command starts Codex Desktop and returns immediately: the packaged Launcher keeps supervising in the background and exits after you quit the Desktop. Re-running `codexhost` attaches to the same controlled instance.
|
|
14
21
|
|
|
15
22
|
If installation used `--omit=optional`, reinstall without that option so npm can select the native package for the current architecture.
|
package/bin/codexhost.js
CHANGED
|
@@ -5,6 +5,16 @@ import { createRequire } from "node:module";
|
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
|
|
8
|
+
const version = "0.1.2";
|
|
9
|
+
const userArguments = process.argv.slice(2);
|
|
10
|
+
if (
|
|
11
|
+
userArguments.length === 1 &&
|
|
12
|
+
(userArguments[0] === "--version" || userArguments[0] === "-v")
|
|
13
|
+
) {
|
|
14
|
+
console.log(version);
|
|
15
|
+
process.exit(0);
|
|
16
|
+
}
|
|
17
|
+
|
|
8
18
|
const platformPackages = {
|
|
9
19
|
"darwin-arm64": "@codexhost/cli-darwin-arm64",
|
|
10
20
|
"darwin-x64": "@codexhost/cli-darwin-x64",
|
|
@@ -87,7 +97,6 @@ const updateEnvironment = {
|
|
|
87
97
|
CODEXHOST_NPM_PACKAGE_ROOT: packageRoot,
|
|
88
98
|
};
|
|
89
99
|
|
|
90
|
-
const userArguments = process.argv.slice(2);
|
|
91
100
|
let launchArguments;
|
|
92
101
|
if (userArguments.length === 0) {
|
|
93
102
|
launchArguments = ["launch", "--agent", "pi"];
|
|
@@ -100,6 +109,7 @@ if (userArguments.length === 0) {
|
|
|
100
109
|
[
|
|
101
110
|
"usage:",
|
|
102
111
|
" codexhost",
|
|
112
|
+
" codexhost --version",
|
|
103
113
|
" codexhost inspect",
|
|
104
114
|
" codexhost launch --agent <codex|pi> [launcher options]",
|
|
105
115
|
"",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codexhost/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Run Pi and Claude Code as first-class external harnesses inside Codex Desktop.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"node": ">=22"
|
|
15
15
|
},
|
|
16
16
|
"optionalDependencies": {
|
|
17
|
-
"@codexhost/cli-darwin-arm64": "0.1.
|
|
18
|
-
"@codexhost/cli-darwin-x64": "0.1.
|
|
19
|
-
"@codexhost/cli-win32-x64": "0.1.
|
|
20
|
-
"@codexhost/cli-win32-arm64": "0.1.
|
|
17
|
+
"@codexhost/cli-darwin-arm64": "0.1.2",
|
|
18
|
+
"@codexhost/cli-darwin-x64": "0.1.2",
|
|
19
|
+
"@codexhost/cli-win32-x64": "0.1.2",
|
|
20
|
+
"@codexhost/cli-win32-arm64": "0.1.2"
|
|
21
21
|
},
|
|
22
22
|
"keywords": [
|
|
23
23
|
"codex",
|