skillhub/skillhub-cli/src/core
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
..
agent-detector.ts refactor(cli): use dynamic isUniversalForScope instead of static isUniversalAgent 2026-04-20 19:48:58 +08:00
api-client.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
auth-token.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
config.ts feat(cli): support SKILLHUB_REGISTRY env var for registry URL 2026-04-16 10:49:40 +08:00
installer.ts refactor(cli): use dynamic isUniversalForScope instead of static isUniversalAgent 2026-04-20 19:48:58 +08:00
interactive-search.ts feat(explore): add --sort parameter for hot/newest/downloads ordering 2026-04-14 14:12:37 +08:00
skill-discovery.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
skill-lock.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
skill-name.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00
source-parser.ts feat(skillhub-cli): add skillhub CLI with interactive multi-agent support 2026-04-14 10:21:09 +08:00