@bryanhu/codexly 0.22.0 → 0.22.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/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [0.22.1] - 2026-09-16
8
+
9
+ ### 修复
10
+
11
+ - 修复内置更新和全局安装复用过期 npm 元数据、可能无法及时发现新版本的问题。
12
+
7
13
  ## [0.22.0] - 2026-09-16
8
14
 
9
15
  ### 新增
package/README.md CHANGED
@@ -74,11 +74,11 @@ On first launch, sign in with ChatGPT or configure an OpenAI-compatible service
74
74
  For regular use, install Codexly globally:
75
75
 
76
76
  ```bash
77
- npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com --prefer-offline || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org --prefer-offline
77
+ npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org
78
78
  codexly
79
79
  ```
80
80
 
81
- The installation command tries the China mirror first, falls back to the official registry on failure, and reuses the npm cache. `||` works in Bash, Zsh, cmd, and PowerShell 7+. In Windows PowerShell 5.1, run the command to the right of `||` separately if the first command fails.
81
+ The installation command tries the China mirror first, falls back to the official registry on failure, reuses the npm cache, and revalidates stale package metadata. `||` works in Bash, Zsh, cmd, and PowerShell 7+. In Windows PowerShell 5.1, run the command to the right of `||` separately if the first command fails.
82
82
 
83
83
  ## Usage
84
84
 
@@ -114,7 +114,7 @@ Run `codexly doctor` when startup, Codex, or local data checks fail. Run `codexl
114
114
  Interactive startup and **Settings > About** check for new releases. Built-in updates try the China mirror first for version checks, package downloads, and dependency installation, falling back to the official registry on failure and reusing your npm cache. New releases may appear later while the mirror synchronizes. A global installation can also be updated with:
115
115
 
116
116
  ```bash
117
- npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com --prefer-offline || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org --prefer-offline
117
+ npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org
118
118
  ```
119
119
 
120
120
  If an older Linux release was installed into a system directory with `sudo npm install --global`, manually run the command above with `sudo` once to reach a release that supports elevated updates. Later built-in updates request `sudo` access when needed.
package/README.zh-CN.md CHANGED
@@ -44,11 +44,11 @@ Codexly 会自动打开浏览器。若未打开,请访问终端输出的地址
44
44
  经常使用时可以全局安装:
45
45
 
46
46
  ```bash
47
- npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com --prefer-offline || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org --prefer-offline
47
+ npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org
48
48
  codexly
49
49
  ```
50
50
 
51
- 安装命令优先使用国内镜像,失败后回退官方源,并复用 npm 缓存。`||` 适用于 Bash、Zsh、cmd 和 PowerShell 7+;Windows PowerShell 5.1 请在第一条命令失败后单独执行 `||` 右侧的命令。
51
+ 安装命令优先使用国内镜像,失败后回退官方源,复用 npm 缓存并重新校验过期的包元数据。`||` 适用于 Bash、Zsh、cmd 和 PowerShell 7+;Windows PowerShell 5.1 请在第一条命令失败后单独执行 `||` 右侧的命令。
52
52
 
53
53
  ## 使用方式
54
54
 
@@ -84,7 +84,7 @@ codexly start --lan
84
84
  交互式启动和“设置 > 关于”会检查新版本。内置更新的版本查询、包下载和依赖安装优先使用国内镜像,失败后回退官方源;下载和安装复用用户的 npm 缓存。镜像同步期间可能稍晚显示新版本。全局安装也可以通过以下命令更新:
85
85
 
86
86
  ```bash
87
- npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com --prefer-offline || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org --prefer-offline
87
+ npm install --global @bryanhu/codexly@latest --registry=https://registry.npmmirror.com || npm install --global @bryanhu/codexly@latest --registry=https://registry.npmjs.org
88
88
  ```
89
89
 
90
90
  如果 Linux 上的旧版本通过 `sudo npm install --global` 安装到系统目录,首次升级到支持提权更新的版本时需要手动执行一次上述命令并在前面加上 `sudo`。后续内置更新会在需要时请求 `sudo` 权限。
package/dist/cli.js CHANGED
@@ -22,7 +22,7 @@ createRequire(import.meta.url);
22
22
 
23
23
  // package.json
24
24
  var package_default = {
25
- version: "0.22.0"};
25
+ version: "0.22.1"};
26
26
  var INSTALL_TIMEOUT_MS = 2 * 6e4;
27
27
  function resolveNpmCommandInvocation(args, platform = process.platform, execPath = process.execPath, elevated = false) {
28
28
  const invocation = platform === "win32" ? {
@@ -107,9 +107,7 @@ function runNpmWithRegistryFallback(runNpm, args, options = {}) {
107
107
  `--registry=${registry}`,
108
108
  `--@openai:registry=${registry}`,
109
109
  `--@bryanhu:registry=${registry}`,
110
- // 沿用用户的持久 npm cache,缺失内容仍联网获取,不创建随更新删除的缓存。
111
- "--prefer-offline",
112
- "--prefer-online=false",
110
+ // 沿用用户的持久 npm cache,并保留 npm 默认的过期元数据重新校验行为。
113
111
  // 限制单源等待,避免 npm 默认重试退避延迟官方源兜底。
114
112
  "--fetch-retries=0",
115
113
  "--fetch-timeout=30000",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bryanhu/codexly",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "通过 Web 操作本地 Coding Agent 的应用",
5
5
  "type": "module",
6
6
  "author": "BryanHu",