skillhub/cli/test/integration
dongmucat a14d89d8c9 refactor(cli): improve doctor command semantics and transparency
变更摘要:

- doctor 命令重构:从重建改为扫描并合并语义,保留扫描范围外的条目

- 修复字段命名:itemsRestored → itemsScanned/itemsPreserved,语义更清晰

- 改进用户提示:输出区分扫描到的和保留的条目,帮助文档补充保留行为说明

- 补充代码注释:说明同 slug 不同 installDir 允许并存的设计意图

- 统一错误码:download/handleJsonResponse 的非 2xx 响应统一使用 EXIT.generic

- 新增测试覆盖:合并场景、刷新场景、冲突不删除无关条目等边界情况

关键文件:

- cli/src/services/doctor-service.ts

- cli/src/commands/doctor.ts

- cli/src/commands/help.ts

- cli/test/unit/services/doctor-service.test.ts

- cli/test/integration/doctor-command.test.ts
2026-05-09 11:30:36 +08:00
..
auth-commands.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
doctor-command.test.ts refactor(cli): improve doctor command semantics and transparency 2026-05-09 11:30:36 +08:00
error-output.test.ts fix(cli): improve parse error output 2026-04-29 15:37:05 +08:00
help-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
install-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
list-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
publish-command.test.ts refactor(cli): improve doctor command semantics and transparency 2026-05-09 11:30:36 +08:00
remove-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
search-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
update-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
version-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
whoami-command.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00