Skip to content

added full project UML class diagram#13

Merged
Mystic-commits merged 1 commit into
Mystic-commits:mainfrom
adnan275:feat/uml-architecture
Apr 14, 2026
Merged

added full project UML class diagram#13
Mystic-commits merged 1 commit into
Mystic-commits:mainfrom
adnan275:feat/uml-architecture

Conversation

@adnan275

Copy link
Copy Markdown
Contributor
classDiagram
    %% Core Interfaces & APIs (Red/Pinkish)
    style SentinelAPI fill:#ff9999,stroke:#333,stroke-width:2px

    %% Core Engines (Blue)
    style Scanner fill:#99ccff,stroke:#333,stroke-width:2px
    style FileClassifier fill:#99ccff,stroke:#333,stroke-width:2px
    style RulesEngine fill:#99ccff,stroke:#333,stroke-width:2px

    %% AI & Intelligence (Purple)
    style AIPlanner fill:#cc99ff,stroke:#333,stroke-width:2px

    %% Safety & Execution (Orange / Green)
    style SafetyValidator fill:#ffcc99,stroke:#333,stroke-width:2px
    style Executor fill:#99ff99,stroke:#333,stroke-width:2px

    %% Database & Storage (Yellow)
    style DatabaseManager fill:#ffff99,stroke:#333,stroke-width:2px

    %% User Interfaces (Grey)
    style WebUI fill:#e6e6e6,stroke:#333,stroke-width:2px
    style CLI fill:#e6e6e6,stroke:#333,stroke-width:2px

    class SentinelAPI {
        +start_scan(path: str)
        +execute_plan(plan_id: str)
        +undo_task(task_id: str)
        +get_task_status()
    }

    class Scanner {
        +scan_directory(path: str) List~FileMetadata~
        +calculate_hashes()
        -ignore_blacklisted()
    }

    class FileClassifier {
        +classify(file: FileMetadata) Category
        +detect_duplicates(files)
    }

    class RulesEngine {
        +apply_rules(files)
        +load_user_preferences()
    }

    class AIPlanner {
        +generate_plan(files, category) JSON
        -communicate_with_ollama()
    }

    class SafetyValidator {
        +validate_plan(plan: JSON) bool
        -check_system_paths()
    }

    class Executor {
        +execute(plan: JSON) Result
        +undo(task_id: str)
        -move_to_trash()
    }

    class DatabaseManager {
        +save_task()
        +save_execution_log()
        +record_user_decision()
    }

    class WebUI {
        +render_dashboard()
        +show_diff_viewer()
        +handle_websocket_events()
    }

    class CLI {
        +parse_arguments()
        +display_rich_table()
    }

    SentinelAPI --> Scanner : invokes
    Scanner --> FileClassifier : uses
    FileClassifier --> RulesEngine : forwards to
    RulesEngine --> AIPlanner : requests plan
    AIPlanner --> SafetyValidator : validates
    SafetyValidator --> SentinelAPI : returns safe plan
    SentinelAPI --> Executor : triggers
    Executor --> DatabaseManager : logs actions
    WebUI --> SentinelAPI : REST / WebSocket Calls
    CLI --> SentinelAPI : Local Commands
Loading

@vercel

vercel Bot commented Apr 14, 2026

Copy link
Copy Markdown

@adnan275 is attempting to deploy a commit to the Yug's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Mystic-commits Mystic-commits merged commit dfdc0b3 into Mystic-commits:main Apr 14, 2026
2 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants