Implementation: How should Space Map integrate with other platform builder t...
Documentation for Sessions
⚙️ Implementation: How should Space Map integrate with other platform builder t...
📋 Decision Context
Question:
How should Space Map integrate with other platform builder tools via CrossToolSyncService?
Task: Space Map cross-tool sync integration
🎯 Decision Made
Chosen:
Add broadcasts for all CRUD operations
Options Considered:
- Keep one-way (listen only)
- Add broadcasts for all CRUD operations
- Remove cross-tool sync entirely
- Use different sync mechanism
💭 Reasoning
SpaceMapState was only listening for node:update events but never broadcasting. This made it a one-way integration. Added: 1) broadcastNodeCreate after createPage, createGalaxy, createUniverse 2) broadcastNodeUpdate after updatePage 3) broadcastNodeDelete after deletePage 4) Listeners for node:create and node:delete events. Now Space Map is fully bidirectional with other tools.
📁 Files Involved
libs/libs-structural/space-map-lib/src/lib/state/space-map.state.ts
🔗 Related
- Decision ID:
dev_1767807221571_15nc1gc - Session: 22
- Workspace: editor2
Auto-generated by MCP Smart Consolidation