@cc-claw/code 0.6.146 → 0.6.148

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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,6 +7,10 @@
7
7
 
8
8
  ## 最近更新
9
9
 
10
+ v0.6.148:**Bash 失败退出码置顶与正文整齐缩进**——TUI 终端层优化失败展示体验:非零退出码提升为首行置顶 ` ⎿ Error: Exit code {code}`(红色醒目展示),自动剥离末尾冗余的 `[Exit code: N]` 标记并将输出正文以 4 列悬挂缩进对齐,长输出时不再淹没退出原因;同版完成 `message_render.rs`(90KB+)目录级解耦拆分为独立的 `decorators/`(Bash / Glob / Read / AskUser)模块,并清扫全仓历史测试命名为 100% 全英文 snake_case。完整记录见 [CHANGELOG](https://github.com/cc-claws/cc-code/blob/main/CHANGELOG.md)。
11
+
12
+ v0.6.147:新增跨项目 **Agent Command Center**:`/agents` 或空输入框 `←` 查看全部项目根会话,支持分组、五档状态、分页、详情、搜索、重命名与二次确认永久删除。Enter 恢复目标项目,`n` 在选中项目新建空会话;存在运行任务或审批时保持原会话。原 agent 定义入口改为 `/agent-design`,`/tasks` 入口由中心替代。完整记录见 [CHANGELOG](https://github.com/cc-claws/cc-code/blob/main/CHANGELOG.md)。
13
+
10
14
  v0.6.146:修复 Windows CI 上 cc-tui 测试的间歇性失败(**内部改动,无用户可见行为变化**)——这些用例用固定墙钟超时等待真实子进程(`cmd`/git-bash/嵌套 powershell),libtest 并发时互相抢进程与 IO,在 4 核 runner 上被放大成超时;现用全局锁串行化真起进程的用例并统一放宽等待预算,不改任何用例语义(#538)。
11
15
 
12
16
  v0.6.145:三项 TUI 输入修复——① 输入框内 `/command` 用 suggestion 蓝高亮,规则对齐 Claude Code(`!` shell 态跳过,避免把 `/etc` 之类路径着色)(#529);② Rewind 对话回滚从「双击 `Esc`」改为正式命令 `/rewind`(别名 `/undo`)——`Esc` 是取消/中断键,连按两次会误弹出回滚面板,而输入 `/rewind` 反而无效(#531);③ Agent 运行中按 `Enter` 不再把命令静默变成模型提问——此前 `/exit` 不退出、`/gc` 不回收内存、未知命令反被模型回答。判定收敛到唯一入口 `CommandSystem::resolve`:普通消息 / Skill / ACP 命令 / 转发型命令入队等本轮结束后执行,需要空闲 UI 的命令、`!` 输入与未知命令一律拒绝并**保留输入框内容**(#533)。
@@ -39,12 +43,25 @@ v0.6.129:输入 `@` 即显示文件候选。默认仅列当前目录,最多
39
43
  npm install -g @cc-claw/code
40
44
  ```
41
45
 
46
+ > [!WARNING]
47
+ > **npm 12+(2026 年 7 月发布)默认阻止依赖包的 `postinstall` 脚本,而本包的平台二进制正是在该脚本里下载的。** 安装会显示成功,但运行 `cc-code` 时报 `spawnSync ...cc-code.exe ENOENT`(bin 里只有 node 脚本、没有 exe)。请显式放行:
48
+ >
49
+ > ```bash
50
+ > npm install -g --allow-scripts=@cc-claw/code @cc-claw/code
51
+ > ```
52
+ >
53
+ > 对所有全局安装长期放行:`npm config set allow-scripts=@cc-claw/code --location=user`
54
+ >
55
+ > 用 **pnpm / bun**?它们同样阻止 build script —— 先 `pnpm approve-builds`,否则装不到二进制。
56
+
42
57
  ## 升级
43
58
 
44
59
  ```bash
45
60
  npm update -g @cc-claw/code
46
61
  ```
47
62
 
63
+ npm 12+ 需带同样的参数:`npm update -g --allow-scripts=@cc-claw/code @cc-claw/code`。
64
+
48
65
  ## 快速开始
49
66
 
50
67
  ```bash
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-claw/code",
3
- "version": "0.6.146",
3
+ "version": "0.6.148",
4
4
  "description": "cc-code — Terminal coding agent powered by open-source models — Rust-built, Claude Code compatible",
5
5
  "keywords": [
6
6
  "agent",