claude-code-best/src/cli
林凯90331 c2d5077cf9 fix(update): enhance failure diagnostics and prevent claude symlink deletion
Add analyzeNpmError() to classify npm install failures (permission, network, missing package, locked file, etc.) and return InstallResult with errorCategory, suggestion, and raw npmStderr.

Display targeted troubleshooting steps with colored cause and fix suggestions when csc update fails.

Fix removeInstalledSymlink() to only delete symlinks pointing into our managed ~/.local/share/claude/versions/ directory, preventing accidental removal of user-installed claude binaries from other sources.

Signed-off-by: 林凯90331 <90331@sangfor.com>

Co-authored-by: CoStrict <zgsm@sangfor.com.cn>
2026-05-15 16:19:13 +08:00
..
__tests__ fix: 优化用户交互文案,为错误消息添加可操作提示 2026-05-05 00:05:35 +08:00
bg chore: 清理 src 下 33 项死代码和类型断言 2026-05-05 16:07:30 +08:00
handlers refactor: remove special handling for upgrade command, simplify logic 2026-05-15 14:53:01 +08:00
transports docs: 合并性能分析报告并优化内存管理 2026-05-02 09:11:12 +08:00
bg.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
exit.ts feat: 添加服务层增强与零散改进 2026-04-22 22:38:10 +08:00
ndjsonSafeStringify.ts feat: build 2026-03-31 19:22:47 +08:00
print.ts feat: add task notification mode and skip review builtin option 2026-05-15 10:34:05 +08:00
remoteIO.ts feat(remote-control): 优化 Web 展示、状态同步与桥接控制流程 (#288) 2026-04-17 16:21:27 +08:00
rollback.ts Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
structuredIO.ts style: 完成所有文件的lint 2026-05-01 21:39:30 +08:00
up.ts Feat/integrate lint preview (#285) 2026-04-16 20:59:29 +08:00
update.ts fix(update): enhance failure diagnostics and prevent claude symlink deletion 2026-05-15 16:19:13 +08:00
updateCCB.ts fix: ccb update 使用 bun install -g @latest 替代 bun update -g 2026-05-03 19:28:16 +08:00