mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
849 B
849 B
Why
Need a command to archive completed changes to the archive folder with proper date prefixing, following OpenSpec conventions. Currently changes must be manually moved and renamed.
What Changes
- Add new
archivecommand to CLI that moves changes tochanges/archive/YYYY-MM-DD-[change-name]/ - Check for incomplete tasks before archiving and warn user
- Allow interactive selection of change to archive
- Prevent archiving if target directory already exists
- Update main specs from the change's future state specs (copy from
changes/[name]/specs/toopenspec/specs/) - Show confirmation prompt before updating specs, displaying which specs will be created/updated
- Support
--yesflag to skip confirmations for automation
Impact
- Affected specs: cli-archive (new)
- Affected code: src/cli/index.ts, src/core/archive.ts (new)