mirror of
https://github.com/Fission-AI/OpenSpec.git
synced 2026-11-07 09:14:38 +08:00
* Add OpenCode files to gitignore * docs(changes): add opencode-command-references change artifacts * fix(opencode): transform command references from colon to hyphen format
1.4 KiB
1.4 KiB
1. Implementation
- 1.1 Create
src/utils/command-references.tswithtransformToHyphenCommands()function - 1.2 Export
transformToHyphenCommandsfromsrc/utils/index.ts - 1.3 Update
generateSkillContent()insrc/core/shared/skill-generation.tsto accept optionaltransformInstructionscallback - 1.4 Update OpenCode adapter in
src/core/command-generation/adapters/opencode.tsto usetransformToHyphenCommands()for body text - 1.5 Update
init.tsto pass transformer when generating skills for OpenCode - 1.6 Update
update.tsto pass transformer when generating skills for OpenCode
2. Testing
- 2.1 Create
test/utils/command-references.test.tswith unit tests fortransformToHyphenCommands() - 2.2 Add test to
test/core/command-generation/adapters.test.tsfor OpenCode body transformation - 2.3 Add test to
test/core/shared/skill-generation.test.tsfor transformer callback
3. Verification
- 3.1 Run
npx vitest run test/utils/command-references.test.ts test/core/command-generation/adapters.test.ts test/core/shared/skill-generation.test.tsto ensure tests pass - 3.2 Run
pnpm run buildto ensure no TypeScript errors - 3.3 Run
openspec init --tools opencodein a temp directory and verify:- Command files in
.opencode/command/contain/opsx-references (not/opsx:) - Skill files in
.opencode/skills/contain/opsx-references (not/opsx:)
- Command files in