mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
87cb206e88
Add three OpenSpec change proposals for enhancing the CLI: - add-spec-commands: Resource-based spec commands with JSON output - add-change-commands: Resource-based change commands with JSON output - add-zod-validation: Runtime validation with detailed error reporting These proposals enable programmatic access to specs and changes, improving integration with CI/CD pipelines and external tooling.
726 B
726 B
Change: Add Spec Commands with JSON Output
Why
Currently, OpenSpec specs can only be viewed as markdown files. This makes programmatic access difficult and prevents integration with CI/CD pipelines, external tools, and automated processing.
What Changes
- Add new
openspec speccommand with three subcommands:show,list, andvalidate - Implement JSON output capability for specs using heading-based parsing
- Add Zod schemas for spec structure validation
- Enable content filtering options (requirements only, no scenarios, specific requirement)
Impact
- Affected specs: None (new capability)
- Affected code:
- src/cli/index.ts (register new command)
- package.json (add zod dependency)