clavue-v1 1.82.0 → 1.82.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,11 @@ clavue / 克拉维 发布说明。本文件在构建时注入运行时,驱动
4
4
 
5
5
  格式约定(`parseChangelog` 依赖):二级标题为 `## <版本> - <日期>`,条目以 `- ` 开头,一行一条,命令与模型名保留英文。
6
6
 
7
+ ## 1.82.1 - 2026-11-22
8
+
9
+ - **启动器自愈切换高版本 Node、同源 `npm` 更新绑定与 `install.sh` 自动寻址:** 新增 `src/utils/nodeVersionBootstrap.ts` 并接入薄启动器 `src/entrypoints/launcher.ts`(仅 18 KB,兼容 Node 18/20 解析执行):当终端 `$PATH` 靠前位置的旧版 Node(如 `~/.local/bin/node` `v20.18.1`)通过 `#!/usr/bin/env node` 劫持拉起 `clavue` / `clavue update` 时,不再直接退出报错,而是按优先级自动寻址本机合格的 `Node >= 22.18.0`(`CLAVUE_NODE_BIN` → `clavue` 同目录/全局安装前缀旁同源 `node` → `$PATH` 靠后 `node` → `nvm`/`fnm`/`volta`/`asdf`/`mise`/Homebrew 最新合格版本),带 `CLAVUE_NODE_REEXEC=1` 防递归锁与信号透传无缝重拉,并将目标 `node` 的 `bin` 目录置顶到子进程 `PATH`;若整机确无合格 Node,报错信息现明确指出被命中的旧 `node` 路径与 `CLAVUE_NODE_BIN` 覆盖提示。同步升级 `src/utils/autoUpdater.ts` 通过 `resolveSiblingNpmInvocation()` 绑定当前 `process.execPath` 同源 `npm` 与 `PATH`,杜绝 `clavue update` 更新错目录或命中旧 `npm`;升级 `install.sh` 在 `check_node` 阶段自动探测并切换至本机合格 Node >= 22.18.0 完成安装。
10
+ - English: Self-healing Node.js launcher bootstrap, same-toolchain `npm` updater binding, and smart `install.sh` Node discovery: adds `src/utils/nodeVersionBootstrap.ts` to `src/entrypoints/launcher.ts` so invoking `clavue` or `clavue update` under a shadowed older `$PATH` Node (e.g. Node 20.18.1 ahead of nvm/Homebrew Node 22/24/26) transparently discovers and re-execs with a verified Node `>= 22.18.0` (checking `CLAVUE_NODE_BIN`, sibling `node` next to `clavue`/its prefix, remaining `$PATH`, and `nvm`/`fnm`/`volta`/`asdf`/`mise`/Homebrew), prepends the chosen Node `bin` dir to child `PATH` with `CLAVUE_NODE_REEXEC=1` recursion guard, and reports the active shadowed `node` binary path if none exists; binds `autoUpdater.ts` to the active Node's sibling `npm` (`resolveSiblingNpmInvocation`); and upgrades `install.sh` to auto-discover compatible Node >= 22.18.0 binaries before failing.
11
+
7
12
  ## 1.82.0 - 2026-11-22
8
13
 
9
14
  - **Shell 防挂死、编码安全截断、管道真退出码、全破坏性守卫与终端状态恢复(Round 1):** `Shell.ts` 默认注入 `NON_INTERACTIVE_SHELL_ENV`(`GIT_PAGER=cat`、`PAGER=cat`、`GH_PAGER=cat`、`GIT_TERMINAL_PROMPT=0`、`DEBIAN_FRONTEND=noninteractive`、`PIP_NO_INPUT=1`、`HOMEBREW_NO_AUTO_UPDATE=1`、`NPM_CONFIG_UPDATE_NOTIFIER=false`,同时保留 `envOverrides` 显式覆盖优先),根治分页器与交互提示挂死;`BashTool/utils.ts` 新增 UTF-16 代理对安全切片(`safeSliceHead`/`safeSliceTail`)杜绝 emoji/生僻汉字截断触发 API `HTTP 400`,检测并摘要高 NUL/二进制输出且清理残留 `\x00`,并为 `$TMPDIR/clavue-cmd-logs/` 增加 64 文件 / 24h TTL 自动回收(`pruneSpillLogs`);`verifyTee.ts` + `BashTool.tsx` 新增 `ensurePipefailForCheckPipeline`,为 `npm test | tail -n 20`、`cargo test | tee out.log` 等管道验收命令自动启用 `set -o pipefail`(避开 `head` 防 `SIGPIPE` 误伤),终结管道掩盖失败退出码 `0` 的假绿漏洞;`destructiveActionGuard.ts` 补齐 `git reset --hard`、`git clean -fd`/`-fdx`、`git push --force`/`-f`、`git checkout -- .`/`git restore .`、`chmod -R 777`、`curl|sh`/`wget|bash` 与数据库 `DROP`/`TRUNCATE`/`redis-cli FLUSHALL` 确认守卫;`gracefulShutdown.ts` 退出时安全恢复 `process.stdin.setRawMode(false)` 并注册幂等 `process.once('exit')` 兜底防止异常退出卡死终端。
package/README.md CHANGED
@@ -95,7 +95,7 @@ clavue-v1 --version
95
95
  Pin a version:
96
96
 
97
97
  ```bash
98
- curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.82.0/install.sh | bash -s -- 1.82.0
98
+ curl -fsSL https://github.com/mycode699/clavue-public/releases/download/v1.82.1/install.sh | bash -s -- 1.82.1
99
99
  ```
100
100
 
101
101
  Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/update` also prefer the public v1 release, then fall back to npm).
@@ -106,7 +106,7 @@ Upgrade later with `clavue update` or `clavue-v1 update` (startup check / `/upda
106
106
  npm install -g clavue-v1
107
107
  # or one-shot:
108
108
  npx -y clavue-v1
109
- npx -y clavue-v1@1.82.0 --version
109
+ npx -y clavue-v1@1.82.1 --version
110
110
  ```
111
111
 
112
112
  One-line global install via the package (npm / unpkg):
@@ -118,7 +118,7 @@ curl -fsSL https://unpkg.com/clavue-v1/install.sh | bash
118
118
  Install a specific version globally:
119
119
 
120
120
  ```bash
121
- curl -fsSL https://unpkg.com/clavue-v1@1.82.0/install.sh | bash -s -- 1.82.0
121
+ curl -fsSL https://unpkg.com/clavue-v1@1.82.1/install.sh | bash -s -- 1.82.1
122
122
  ```
123
123
 
124
124
  ```bash