Files
skillshare/cmd
Willie 586f0f5773 fix(agents): correct project-mode agent dispatch for all commands
Fixes 3 high-severity bugs found by Codex adversarial review:

1. update -p agents: was writing to global agents instead of project.
   Fix: check project mode BEFORE agent branch, add cmdUpdateAgentsProject.

2. sync -p agents: was silently running skill sync.
   Fix: add syncAgentsProject with project config/target resolution.
   sync -p all: now runs skill sync then project agent sync.

3. uninstall -p agents: was searching .skillshare/skills instead of agents.
   Fix: already addressed in 22c6c61e, verified still correct.

Additional hardening for commands without project agent support:
- collect -p agents: returns explicit "not yet supported" error
- status -p agents: returns explicit error
- check -p agents: returns explicit error
- diff -p agents: returns explicit error
- audit -p agents: returns explicit error

Principle: never silently fall back to skills when agents is requested.
2026-04-07 18:05:40 +08:00
..