# 134130/intellij-mise architecture

> Architecture diagram of the GitHub repository 134130/intellij-mise, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/134130/intellij-mise
- Repository: https://github.com/134130/intellij-mise

## Overview

##### Main Components Identification

The system should be divided into these primary components:

a. Core Module:
- Command Processing System
- Language Support System
- Execution System
- UI Components (Tool Windows)
- Settings Management
- Notification System

b. Product-Specific Modules:
- GoLand Integration
- Gradle Integration
- IntelliJ IDEA Integration
- NodeJS Integration
- Rider Integration

##### Component Relationships

**[Core Module] ─────────────────┐**

- ┬─────┼─────┬─────┐

**[GoLand Module]  [Gradle Module] [IDEA] [NodeJS] [Rider]**

##### Detailed Component Breakdown

Core Module should show:
- MiseCommandLine system (command/*)
- Configuration management (setting/*)
- Task execution system (execution/*)
- TOML file support (lang/*)
- Tool window implementation (toolwindow/*)

##### Data Flow Representation

Key flows:
- mise.toml file parsing → Command processing → SDK setup
- User interaction → Task execution → Terminal integration
- Settings changes → Environment variable updates

##### Integration Points

Highlight:
- IDE extension points
- SDK integration points
- Run configuration extensions
- File type registration

##### Specific Implementation Details

Key architectural patterns:
- Observer pattern for settings (MiseSettingsListener)
- Factory pattern for configurations
- Strategy pattern for different IDE integrations
- Command pattern for task execution

##### Integration points with the IDE platform

Keep the abstraction level focused on the architectural components while showing the relationships between the core functionality and IDE-specific implementations. This will help developers understand both the overall structure and the extension points for adding support for new IDEs or features.

Remember to highlight the plugin's primary features:
- Tool integration for different SDKs
- Environment variable management
- TOML file support and autocompletion
- Run configuration integration

This approach will provide a clear understanding of the plugin's architecture while maintaining the necessary detail for implementation understanding.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Core
        CMD["Command Processing"]:::core
        LANG["Language Support"]:::core
        EXEC["Execution System"]:::core
        UI["UI Components"]:::core
        SET["Settings Management"]:::core
        NOT["Notification System"]:::core
        
        SET --> CMD
        SET --> EXEC
        CMD --> EXEC
        LANG --> CMD
        EXEC --> NOT
        UI --> CMD
        UI --> SET
    end

    subgraph Products
        GO["GoLand Integration"]:::product
        GR["Gradle Integration"]:::product
        IDEA["IntelliJ IDEA Integration"]:::product
        NODE["NodeJS Integration"]:::product
        RID["Rider Integration"]:::product
    end

    Core --> GO
    Core --> GR
    Core --> IDEA
    Core --> NODE
    Core --> RID

    classDef core fill:#3498db,stroke:#2980b9,color:white
    classDef product fill:#2ecc71,stroke:#27ae60,color:white

    %% Click events for component mapping
    click CMD "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/command/"
    click LANG "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/lang/"
    click EXEC "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/execution/"
    click UI "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/toolwindow/"
    click SET "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/setting/"
    click NOT "https://github.com/134130/intellij-mise/tree/main/modules/core/src/main/kotlin/com/github/l34130/mise/core/notification/"
    click GO "https://github.com/134130/intellij-mise/tree/main/modules/products/goland/"
    click GR "https://github.com/134130/intellij-mise/tree/main/modules/products/gradle/"
    click IDEA "https://github.com/134130/intellij-mise/tree/main/modules/products/idea/"
    click NODE "https://github.com/134130/intellij-mise/tree/main/modules/products/nodejs/"
    click RID "https://github.com/134130/intellij-mise/tree/main/modules/products/rider/"

    subgraph Legend
        L1["Core Components"]:::core
        L2["Product Modules"]:::product
    end
```
