skillhub/skillhub-cli
chenbaowang 32395ee5c2 refactor(cli): use dynamic isUniversalForScope instead of static isUniversalAgent
- Add isUniversalForScope(agent, isGlobal) and getAgentTargetDir(agent, isGlobal) to agent-detector.ts
- An agent is 'universal' when its target install dir equals the canonical .agents/skills directory
- This fixes incorrect symlink skipping for agents like Codex/Cursor whose globalSkillsDir
  differs from .agents/skills (e.g. .codex/skills, .cursor/skills)
- Update installer.ts to use dynamic check via optional AgentInfo parameter
- Update install.ts to use getAgentTargetDir and pass agent info to installSkill
- Update uninstall.ts to use isUniversalForScope for correct path resolution
- Clean up unused isUniversalAgent import in list.ts
2026-04-20 19:48:58 +08:00
..
src refactor(cli): use dynamic isUniversalForScope instead of static isUniversalAgent 2026-04-20 19:48:58 +08:00
tests feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
.npmignore chore(cli): update .npmignore and add release scripts 2026-04-20 10:42:12 +08:00
package.json feat(cli): custom grouped help page with aliases and examples 2026-04-16 23:26:41 +08:00
pnpm-lock.yaml fix(cli): replace execSync unzip with unzipper for cross-platform support 2026-04-16 11:18:20 +08:00
tsconfig.json feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
unbuild.config.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
vitest.config.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00