-
Notifications
You must be signed in to change notification settings - Fork 0
Architecture Dependency Rules
YarCraSy edited this page Jul 8, 2026
·
2 revisions
-
src/coremust not importvscode. -
src/adaptersmust not importvscode, React, or HTTP clients. -
src/ui/chatmust not import Node extension code. -
src/deepseekApimust not import React or VS Code. -
apiKeymust not be stored in settings; it only belongs inSecretStorage. - The extension is DeepSeek-only: do not add Ollama branches or a multiprovider selector.
-
vscodeApimay depend oncore,adapters,infrastructure, anddeepseekApi. -
coremay depend onadapters. -
deepseekApimay depend onadapters. -
ui/chatshould communicate with the backend only through the message contract.
Create an interface when domain logic needs to:
- read files.
- write files.
- list directories.
- search content.
- execute commands.
- access the active workspace.
The concrete implementation should live in src/vscodeApi or src/infrastructure.