mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-09-14 20:16:53 +08:00
0b1be19302
The update command now only updates existing AI tool configuration files instead of forcing CLAUDE.md creation. This allows team members to use different AI tools without conflicts. - Modified update.ts to check for existing files before updating - Added comprehensive tests for the new behavior - Updated spec and documentation to reflect team-friendly approach - Created project README documenting the behavior
872 B
872 B
Implementation Tasks
1. Update Update Command
- Remove hardcoded CLAUDE.md update from
src/core/update.ts - Add logic to check for existing AI tool configuration files
- Update only existing files using their appropriate configurators
- Iterate through all registered configurators to check for existing files
2. Update Configurator Registry
- Add method to get all configurators for update command
- Ensure each configurator can check if its file exists
3. Add Tests
- Test update command with only CLAUDE.md present
- Test update command with no AI tool files present
- Test update command with multiple AI tool files present
- Test that update never creates new AI tool files
4. Update Documentation
- Update README to clarify team-friendly behavior
- Document that update only modifies existing files