mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
1.2 KiB
1.2 KiB
Implementation Tasks (Phase 3: Builds on add-zod-validation and add-change-commands)
1. Command Implementation
- 1.1 Create src/commands/spec.ts
- 1.2 Import RequirementSchema, ScenarioSchema, SpecSchema from src/core/schemas/
- 1.3 Import markdown parser from src/core/parsers/markdown-parser.ts
- 1.4 Import SpecValidator from src/core/validation/validator.ts
- 1.5 Import JSON converter from src/core/converters/json-converter.ts
- 1.6 Implement show subcommand with JSON output using existing converter
- 1.7 Implement list subcommand
- 1.8 Implement validate subcommand using existing SpecValidator
- 1.9 Add filtering options (--requirements, --no-scenarios, -r)
- 1.10 Add --strict mode support (leveraging existing validation infrastructure)
- 1.11 Add --json flag for validation reports
2. Integration
- 2.1 Register spec command in src/cli/index.ts
- 2.2 Add integration tests for all subcommands
- 2.3 Test JSON output validation
- 2.4 Test filtering options
- 2.5 Test validation with strict mode
- 2.6 Update CLI help documentation (add 'spec' command to main help, document subcommands: show, list, validate)