skillhub/cli/test/unit
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
..
agents fix(cli): label scope by userRoots membership instead of cwd prefix 2026-05-15 14:43:25 +08:00
clients test(cli): restore NpmRegistryClient unit tests and fix publish test name 2026-05-14 16:24:49 +08:00
commands Merge branch 'main' into feat/cli-install-scope 2026-05-19 09:48:49 +08:00
platform test(cli): add comprehensive integration tests and fix update command bugs 2026-05-07 14:46:40 +08:00
services refactor(cli): improve doctor command semantics and transparency 2026-05-09 11:30:36 +08:00
shared feat(cli,domain): support non-global namespace skill download (#497) 2026-06-05 16:20:34 +08:00
stores fix(cli): resolve Windows CI test failures across three platform issues 2026-04-29 16:03:09 +08:00