@codexhost/cli 0.8.0 → 0.9.1

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 @codexhost/cli@0.8.0
8
+ npm install -g @codexhost/cli@0.9.1
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,8 +6,9 @@ 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.8.0";
9
+ const version = "0.9.1";
10
10
  const userArguments = process.argv.slice(2);
11
+ const repositoryUrl = "https://github.com/BytePioneer-AI/codex-host";
11
12
  const startupTraceStartedAt = Date.now();
12
13
  function startupTrace(stage) {
13
14
  if (process.env.CODEXHOST_STARTUP_TRACE !== "1") return;
@@ -15,6 +16,25 @@ function startupTrace(stage) {
15
16
  "[codexhost startup +" + (Date.now() - startupTraceStartedAt) + "ms] npm: " + stage,
16
17
  );
17
18
  }
19
+ function printStarPrompt() {
20
+ const locale =
21
+ process.env.LC_ALL ??
22
+ process.env.LC_MESSAGES ??
23
+ process.env.LANG ??
24
+ Intl.DateTimeFormat().resolvedOptions().locale;
25
+ const prompt = /^zh(?:[_-]|$)/iu.test(locale)
26
+ ? "⭐ 如果这个项目对你有帮助,请给我们一个 Star ⭐"
27
+ : "⭐ If this project helps you, please give us a Star ⭐";
28
+ const useColor =
29
+ process.stdout.isTTY && process.env.NO_COLOR === undefined && process.env.TERM !== "dumb";
30
+ if (useColor) {
31
+ console.log(
32
+ "\u001B[33m" + prompt + "\u001B[0m\n\u001B[36m" + repositoryUrl + "\u001B[0m",
33
+ );
34
+ return;
35
+ }
36
+ console.log(prompt + "\n" + repositoryUrl);
37
+ }
18
38
  if (
19
39
  userArguments.length === 1 &&
20
40
  (userArguments[0] === "--version" || userArguments[0] === "-v")
@@ -22,6 +42,9 @@ if (
22
42
  console.log(version);
23
43
  process.exit(0);
24
44
  }
45
+ if (userArguments.length === 0 || userArguments[0] === "launch") {
46
+ printStarPrompt();
47
+ }
25
48
  startupTrace("entry");
26
49
 
27
50
  const platformPackages = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codexhost/cli",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
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.8.0",
18
- "@codexhost/cli-darwin-x64": "0.8.0",
19
- "@codexhost/cli-win32-x64": "0.8.0",
20
- "@codexhost/cli-win32-arm64": "0.8.0",
21
- "@codexhost/cli-linux-x64": "0.8.0",
22
- "@codexhost/cli-linux-arm64": "0.8.0"
17
+ "@codexhost/cli-darwin-arm64": "0.9.1",
18
+ "@codexhost/cli-darwin-x64": "0.9.1",
19
+ "@codexhost/cli-win32-x64": "0.9.1",
20
+ "@codexhost/cli-win32-arm64": "0.9.1",
21
+ "@codexhost/cli-linux-x64": "0.9.1",
22
+ "@codexhost/cli-linux-arm64": "0.9.1"
23
23
  },
24
24
  "keywords": [
25
25
  "codex",