chore(architecture): enforce layer boundaries

This commit is contained in:
syntaxbullet
2026-07-03 09:34:21 +02:00
parent a8dbd26474
commit d7406e803a
14 changed files with 354 additions and 17 deletions

8
editor/AGENTS.md Normal file
View File

@@ -0,0 +1,8 @@
# Editor State Rules
- `editor/` owns transient app/editor state types and the app store.
- Transient state includes viewport/camera, selection, tools, active entities, and drag/session state.
- Do not put persisted document fields here; use `core/` for saved image document state.
- Do not import React, renderer/WebGL, storage, network, or filesystem APIs.
- The store must expose read/subscribe and command dispatch only; no public direct setters.
- State changes must flow through commands, including viewport/camera changes.