skillhub/cli/test/unit/services
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
..
doctor-service.test.ts refactor(cli): improve doctor command semantics and transparency 2026-05-09 11:30:36 +08:00
install-service.test.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
registry-service.test.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
remove-service.test.ts test(cli): add P0/P1/P2 test coverage for security and error paths 2026-04-29 15:37:05 +08:00
update-service.test.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00