mirror of
https://github.com/cline/cline.git
synced 2025-06-03 03:59:07 +00:00
![]() * rename old docs folder * set up mintlify docs base * add back script --------- Co-authored-by: Elephant Lumps <celestial_vault@mac.mynetworksettings.com> |
||
---|---|---|
.. | ||
extension-architecture.mmd | ||
README.md |
Cline Extension Architecture
This directory contains architectural documentation for the Cline VSCode extension.
Extension Architecture Diagram
The extension-architecture.mmd file contains a Mermaid diagram showing the high-level architecture of the Cline extension. The diagram illustrates:
-
Core Extension
- Extension entry point and main classes
- State management through VSCode's global state and secrets storage
- Core business logic in the Cline class
-
Webview UI
- React-based user interface
- State management through ExtensionStateContext
- Component hierarchy
-
Storage
- Task-specific storage for history and state
- Git-based checkpoint system for file changes
-
Data Flow
- Core extension data flow between components
- Webview UI data flow
- Bidirectional communication between core and webview
Viewing the Diagram
To view the diagram:
- Install a Mermaid diagram viewer extension in VSCode
- Open extension-architecture.mmd
- Use the extension's preview feature to render the diagram
You can also view the diagram on GitHub, which has built-in Mermaid rendering support.
Color Scheme
The diagram uses a high-contrast color scheme for better visibility:
- Pink (#ff0066): Global state and secrets storage components
- Blue (#0066ff): Extension state context
- Green (#00cc66): Cline provider
- All components use white text for maximum readability