- Add MemoryBackendContext interface for backend-aware memory integration - Implement getMemoryInstructions() method with backend-specific logic in project-memory.ts - Add QMD memory backend type detection and instruction context for QMD-backed projects - Update memory-plugin-contract.md with backend-variant instruction requirements (section 3.8.7) - Update settings reference for memoryBackendType with custom backend support - Add comprehensive regression tests for backend-variant memory instruction behavior - Add changeset for @gsxdsm/fusion package
667 B
667 B
@gsxdsm/fusion
| @gsxdsm/fusion |
|---|
| patch |
Make memory instruction injection backend-aware for the triage and executor prompts. Behavior now branches correctly based on memoryBackendType setting:
filebackend → includes.fusion/memory.mdread/write guidancereadonlybackend → read-only wording without write/update directivesqmd/non-file backends → generic instructions without unconditional.fusion/memory.mdreference
The resolveMemoryInstructionContext() function provides backend metadata for instruction generation. Backward compatible: omitting memoryBackendType or using unknown types falls back to file-style output with explicit path.