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
1. Update Command Implementation
- 1.1 Create
src/core/update.tswithUpdateCommandclass - 1.2 Check if
openspecdirectory exists (useFileSystemUtils.directoryExists) - 1.3 Write
readmeTemplatetoopenspec/README.mdusingFileSystemUtils.writeFile - 1.4 Update
CLAUDE.mdusing markers viaFileSystemUtils.updateFileWithMarkersandTemplateManager.getClaudeTemplate() - 1.5 Display ASCII-safe success message:
Updated OpenSpec instructions
2. CLI Integration
- 2.1 Register
updatecommand insrc/cli/index.ts - 2.2 Add command description:
Update OpenSpec instruction files - 2.3 Handle errors with
ora().fail(...)and exit code 1 (missingopenspecdirectory, file write errors)
3. Testing
- 3.1 Verify
openspec/README.mdis fully replaced with latest template - 3.2 Verify
CLAUDE.mdOpenSpec block updates without altering user content outside markers - 3.3 Verify idempotency (running twice yields identical files, no duplicate markers)
- 3.4 Verify error when
openspecdirectory is missing with friendly message - 3.5 Verify success message displays properly in ASCII-only terminals