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