Files
worldwideview/packages/wwv-cli/package.json
Antigravity AI 11e7dce791 feat(cli): accept flags for non-interactive plugin scaffolding
The 'wwv create' command was fully interactive (prompts-only) and the
plugin-implementer agent's documented '--local' flag did not exist, so
agents fell back to slow manual scaffolding.

- Add a positional [pluginId] arg plus a flag for every prompt
  (--display-name, --description, --category, --architecture,
  --seeder-tier, --render-style) and a --yes guard that fails fast
  instead of hanging when a required value is missing. Any omitted
  flag still prompts, so interactive use is unchanged.
- Fix seeder output to the real community/private layout:
  local-seeders/<tier>/packages/<name>/{package.json,tsup.config.ts,
  src/index.ts}, exporting the canonical { name, cron, fn } shape with
  name === plugin id (kebab-case) per ADR-0002. Previously it wrote a
  bare seeder.mjs to the wrong path with an unusable context.emit stub.
- Update plugin-implementer.md: drop the bogus --local flag, document
  the flag-based invocation and the correct seeder location, and note
  the CLI build step for fresh worktrees.
- Bump CLI to 1.3.0 and fix the stale hardcoded --version string.
2026-05-29 19:17:08 +12:00

25 lines
476 B
JSON

{
"name": "@worldwideview/wwv-cli",
"version": "1.3.0",
"type": "module",
"description": "WorldWideView CLI",
"main": "dist/index.js",
"bin": {
"wwv": "dist/index.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"clean": "rm -rf dist"
},
"dependencies": {
"commander": "^14.0.3",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/node": "^25.9.1",
"@types/prompts": "^2.4.9",
"typescript": "^5.0.0"
}
}