Skip to content

fix: harden remove flows and machine-readable error semantics - #9

Merged
cyhhao merged 4 commits into
mainfrom
fix/collection-fallback-spinner-lifecycle
Mar 10, 2026
Merged

cyhhao merged 4 commits into
mainfrom
fix/collection-fallback-spinner-lifecycle

Conversation

@cyhhao

@cyhhao cyhhao commented Mar 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Improve askill remove behavior across name/path targets: resolve scope correctly, clean orphan canonical directories, and provide a clear --global (-g) hint when a skill is only installed globally.
  • Fix machine-readable failure semantics for remove not-found cases by returning ok: false, structured failed entries, and non-zero exit codes so automation can reliably detect errors.
  • Harden dependency and collection install flows by isolating nested spinners, adding collection fallback refs, and skipping invalid dependency declarations safely.
  • Expand coverage with targeted unit tests (collection, parser, remove-target) and stronger E2E lifecycle/remove-json scenarios.

Validation

  • npm test
  • npm run test:e2e

cyhhao added 4 commits March 9, 2026 23:53
Ignore canonical self-path when checking remaining agent skill references so remove can clean orphan canonical directories.

Add mock /api/v1/skills support and a CLI-only lifecycle e2e flow (find/info/add/remove/list), and make install-then-remove test non-interactive with JSON mode.
@github-actions github-actions Bot added the fix label Mar 10, 2026
@cyhhao
cyhhao merged commit 78bf9b4 into main Mar 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant