Upgrade CLI to v0.2.0: add validate, list commands, --version, --dry-run, --backup flags

- Fix npm test glob pattern for Node >= 21 compatibility
- Add --version/-v flag to display package version
- Add validate command: run 78 profile checks (files, skills, frontmatter, legacy patterns, AGENTS mapping)
- Add list command: display all 13 bundled skills with descriptions
- Add --dry-run/-n flag for init: preview files without copying
- Add --backup/-b flag for init --force: backup existing .agent before overwrite
- Add name field to workflow frontmatter (brainstorm, execute-plan, write-plan)
- Expand smoke check to cover all 13 skills and new command files
- Increase test coverage from 3 to 20 tests (cli, init, validate)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-19 01:25:28 +07:00
parent 5325629a81
commit 9f1d6eb880
12 changed files with 627 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "antigravity-superpowers",
"version": "0.1.0",
"version": "0.2.0",
"description": "CLI to initialize the Antigravity Superpowers .agent profile",
"type": "module",
"bin": {
@@ -13,7 +13,7 @@
"README.md"
],
"scripts": {
"test": "node --test tests",
"test": "node --test 'tests/**/*.test.mjs'",
"smoke:pack": "node scripts/check-pack.mjs",
"prepublishOnly": "npm test && npm run smoke:pack"
},