mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
1d3c292d94
- Replace any types with proper Change and Delta types from schemas - Add error logging in catch blocks when DEBUG env var is set - Include file paths in error messages for better debugging - Extract regex patterns and magic strings as constants - Improve code maintainability and type safety
750 B
750 B
Change: Add Change Commands with JSON Output
Why
OpenSpec change proposals currently can only be viewed as markdown files, creating the same programmatic access limitations as specs. Additionally, the current openspec list command only lists changes, which is inconsistent with the new resource-based command structure.
What Changes
- cli-change: Add new command for managing change proposals with show, list, and validate subcommands
- cli-list: Add deprecation notice for legacy list command to guide users to the new change list command
Impact
- Affected specs: cli-list (modify to add deprecation notice)
- Affected code:
- src/cli/index.ts (register new command)
- src/core/list.ts (add deprecation notice)