@karlorz/codexhost-cli 0.13.3-5 → 0.13.3-7

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 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 @karlorz/codexhost-cli@0.13.3-5
8
+ npm install -g @karlorz/codexhost-cli@0.13.3-7
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.
package/bin/codexhost.js CHANGED
@@ -6,7 +6,7 @@ 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.13.3-5";
9
+ const version = "0.13.3-7";
10
10
  const userArguments = process.argv.slice(2);
11
11
  const repositoryUrl = "https://github.com/karlorz/codex-host";
12
12
  const startupTraceStartedAt = Date.now();
@@ -225,7 +225,7 @@ let delegationArguments = null;
225
225
  let consoleArguments = null;
226
226
  if (userArguments.length === 0) {
227
227
  launchArguments = ["launch"];
228
- } else if (userArguments[0] === "launch") {
228
+ } else if (userArguments[0] === "launch" || userArguments[0] === "restart") {
229
229
  launchArguments = userArguments;
230
230
  } else if (userArguments[0] === "inspect") {
231
231
  launchArguments = userArguments;
@@ -254,6 +254,7 @@ if (userArguments.length === 0) {
254
254
  " codexhost inspect",
255
255
  " codexhost console",
256
256
  " codexhost update",
257
+ " codexhost restart",
257
258
  " codexhost launch [launcher options]",
258
259
  " codexhost remote install|start|stop|status|uninstall",
259
260
  " codexhost broker install|status|stop|uninstall",
@@ -273,7 +274,7 @@ if (userArguments.length === 0) {
273
274
  );
274
275
  }
275
276
 
276
- if (launchArguments?.[0] === "launch") {
277
+ if (launchArguments?.[0] === "launch" || launchArguments?.[0] === "restart") {
277
278
  const injected = new Set();
278
279
  for (let index = 1; index < launchArguments.length; index += 1) {
279
280
  const argument = launchArguments[index];
@@ -296,7 +297,7 @@ if (launchArguments?.[0] === "launch") {
296
297
  extras.push("--desktop-controller", desktopController);
297
298
  }
298
299
  if (!injected.has("--renderer")) extras.push("--renderer", rendererExtension);
299
- launchArguments = ["launch", ...extras, ...launchArguments.slice(1)];
300
+ launchArguments = [launchArguments[0], ...extras, ...launchArguments.slice(1)];
300
301
  }
301
302
 
302
303
  if (consoleArguments !== null) {
@@ -444,7 +445,7 @@ if (consoleArguments !== null) {
444
445
  }
445
446
  process.exit(code ?? 1);
446
447
  });
447
- } else if (launchArguments?.[0] === "launch") {
448
+ } else if (launchArguments?.[0] === "launch" || launchArguments?.[0] === "restart") {
448
449
  // The Launcher prints "ready" once the Desktop, Controller, and Host chain
449
450
  // are up, then detaches from the terminal to keep supervising. Windows
450
451
  // command hosts may clean up a completed command's process tree, so keep the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karlorz/codexhost-cli",
3
- "version": "0.13.3-5",
3
+ "version": "0.13.3-7",
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
- "@karlorz/codexhost-cli-darwin-arm64": "0.13.3-5",
18
- "@karlorz/codexhost-cli-darwin-x64": "0.13.3-5",
19
- "@karlorz/codexhost-cli-win32-x64": "0.13.3-5",
20
- "@karlorz/codexhost-cli-win32-arm64": "0.13.3-5",
21
- "@karlorz/codexhost-cli-linux-x64": "0.13.3-5",
22
- "@karlorz/codexhost-cli-linux-arm64": "0.13.3-5"
17
+ "@karlorz/codexhost-cli-darwin-arm64": "0.13.3-7",
18
+ "@karlorz/codexhost-cli-darwin-x64": "0.13.3-7",
19
+ "@karlorz/codexhost-cli-win32-x64": "0.13.3-7",
20
+ "@karlorz/codexhost-cli-win32-arm64": "0.13.3-7",
21
+ "@karlorz/codexhost-cli-linux-x64": "0.13.3-7",
22
+ "@karlorz/codexhost-cli-linux-arm64": "0.13.3-7"
23
23
  },
24
24
  "keywords": [
25
25
  "codex",