skillhub/cli/src/commands
XiaoSeS 2bb7dedaf4
feat(cli,domain): support non-global namespace skill download (#497)
* feat(cli,domain): support non-global namespace skill download

Parse namespace from skill name using -- separator (e.g.,
astroclaw--api-gateway) so users don't need --namespace flag.
Allow anonymous download for any PUBLIC skill regardless of namespace.

CLI changes:
- Add cli/src/shared/skill-name-parser.ts utility
- Update install and remove commands to parse skill name argument
- 10 unit tests covering edge cases

Domain changes:
- SkillDownloadService.isAnonymousDownloadAllowed: drop namespace
  type check, only require PUBLIC visibility
- Update test to expect success for team-namespace public skill

Synced from SAAS commit 26c67e31b1221249cf9b73321d1b726d8ba6e6df

* fix(cli): use bun:test instead of vitest in skill-name-parser test
2026-06-05 16:20:34 +08:00
..
doctor.ts refactor(cli): improve doctor command semantics and transparency 2026-05-09 11:30:36 +08:00
help.ts feat(cli): add --scope option to install command 2026-05-15 14:43:25 +08:00
install.ts feat(cli,domain): support non-global namespace skill download (#497) 2026-06-05 16:20:34 +08:00
list.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
login.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
logout.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
publish.ts fix(publish): address Codex review findings for dry-run 2026-05-18 14:50:14 +08:00
remove.ts feat(cli,domain): support non-global namespace skill download (#497) 2026-06-05 16:20:34 +08:00
search.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
update.ts test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
version.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00
whoami.ts feat(cli): add SkillHub CLI v1 with full command suite 2026-04-29 15:37:04 +08:00