Files
DBAdmin/archive/NASA/3.mmd
T
2026-05-18 06:40:19 +00:00

98 lines
4.4 KiB
Plaintext

%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#1e293b', 'edgeLabelBackground':'#0f172a', 'tertiaryColor': '#0f172a'}}}%%
graph TD
%% --- STYLIZACJA NASA/SCI-FI ---
classDef ui fill:#172554,stroke:#3b82f6,stroke-width:3px,color:#e0f2fe,rx:10,ry:10,font-weight:bold;
classDef middleware fill:#312e81,stroke:#818cf8,stroke-width:2px,color:#e0eaff,rx:5,ry:5;
classDef gateway fill:#064e3b,stroke:#10b981,stroke-width:4px,color:#d1fae5,rx:15,ry:15,stroke-dasharray: 5 5;
classDef commander fill:#4c1d95,stroke:#d8b4fe,stroke-width:3px,color:#f3e8ff,rx:12,ry:12,font-weight:bold;
classDef specialist fill:#1f2937,stroke:#6b7280,stroke-width:2px,color:#d1d5db,rx:8,ry:8;
classDef storage fill:#000000,stroke:#f59e0b,stroke-width:3px,color:#fef3c7,rx:2,ry:2,shape:q;
classDef protocol fill:#7f1d1d,stroke:#ef4444,stroke-width:2px,color:#fee2e2,stroke-dasharray: 2 2;
%% --- WARSTWA 1: FLIGHT DECK (Frontend) ---
subgraph FLIGHT_DECK ["🛰️ FLIGHT DECK (Mission Control UI)"]
style FLIGHT_DECK fill:#0f172a,stroke:#3b82f6,color:#fff
Operator((👨‍✈️ Operator<br/>Paweł)) ==>|Kliknięcie 'EXECUTE'| MC_UI[🖥️ Dashboard Next.js<br/>Tailwind CSS]:::ui
subgraph UI_Elements ["UI Telemetry & Controls"]
style UI_Elements fill:#1e293b,stroke:none
StatusBar["📊 MISSION STATUS BAR<br/>[NSM: MRR PRO] [WIP: 2/2]"]:::middleware
DraftProtocol["🟡 DRAFT / 🟢 FINAL<br/>Approval Switch"]:::protocol
end
MC_UI -.- StatusBar
MC_UI -.- DraftProtocol
end
%% --- WARSTWA 2: COMMS ARRAY (Middleware) ---
subgraph COMMS ["📡 COMMS ARRAY (API & Auth)"]
style COMMS fill:#1e1b4b,stroke:#818cf8,color:#fff
NextAPI["API Routes / Server Actions<br/>(Auth & Validation)"]:::middleware
SSE["Real-time Uplink<br/>(Server-Sent Events)"]:::middleware
MC_UI <==>|REST / Zdarzenia| NextAPI
NextAPI -.->|Live Updates| SSE
SSE -.-> MC_UI
end
%% --- WARSTWA 3: ENGINE ROOM (OpenClaw) ---
subgraph ENGINE ["⚙️ ENGINE ROOM (OpenClaw Gateway)"]
style ENGINE fill:#022c22,stroke:#10b981,color:#fff
Gateway["OPENCLAW SERVER<br/>Port: 18789 / Node.js"]:::gateway
ToolManager["🧰 TOOL MANAGER<br/>(Bezpieczny dostęp do plików)"]:::middleware
%%NextAPI <==>|(Bearer Token)| Gateway
%%Gateway <==>|Wywołanie Funkcji| ToolManager
end
%% --- WARSTWA 4: THE FLEET (Agenci) ---
subgraph FLEET ["🚀 THE FLEET (Agent Command Structure)"]
style FLEET fill:#2e1065,stroke:#d8b4fe,color:#fff
%% Dowództwo
HOUSTON["🏛️ HOUSTON (@ceo)<br/>Mission Director"]:::commander
ORACLE["🧠 ORACLE (@mba)<br/>Strategist & Red Team"]:::commander
%% Dywizjony Operacyjne
subgraph OPS_WING ["🛠️ Operations Wing"]
style OPS_WING fill:#1e1b4b,stroke:none
ATLAS["⚙️ ATLAS (@coo)<br/>Flight Ops"]:::commander
AEGIS["🛡️ Aegis (Sec)"]:::specialist
ORBIT["مد Orbit (DevOps)"]:::specialist
ATLAS --> AEGIS & ORBIT
end
subgraph GROWTH_WING ["📈 Growth Wing"]
style GROWTH_WING fill:#1e1b4b,stroke:none
COMET["📢 COMET (@cmo)<br/>Comms & Content"]:::commander
VOYAGER["🤝 VOYAGER (@cso)<br/>Exploration & Sales"]:::commander
PULSAR["✍️ Pulsar (Writer)"]:::specialist
NEBULA["🎨 Nebula (Art)"]:::specialist
NOVA["🎬 Nova (Video)"]:::specialist
COMET --> PULSAR & NEBULA & NOVA
end
%% Przepływ Rozkazów
Gateway ===>|Orkiestracja| HOUSTON & ATLAS & COMET & VOYAGER & ORACLE
HOUSTON -.->|Strategia| ATLAS & COMET & VOYAGER
end
%% --- WARSTWA 5: THE SURFACE (Johnny Decimal Data Layer) ---
subgraph SURFACE ["🪐 THE SURFACE (Local File System .org)"]
style SURFACE fill:#1c1917,stroke:#f59e0b,color:#fff
%% Obszary Johnny Decimal
JD_00["📂 00-09 Meta & Management<br/>(Decisions, Runway)"]:::storage
JD_10["📂 10-19 Live & Journal<br/>(Daily Logs, Inbox)"]:::storage
JD_20["📂 20-29 Active Projects<br/>(Sprints, WIP)"]:::storage
JD_30["📂 30-39 Areas & Content<br/>(Marketing Pipeline)"]:::storage
JD_40["📂 40-49 Resources & Brain<br/>(SOPs, Second Brain)"]:::storage
%% Mapowanie dostępu (Hard Mode)
ToolManager ===>|ReadOnly| JD_40
%%ToolManager ===>|AppendOnly (Draft)| JD_10 & JD_30
%%%ToolManager ===>|Read/Write (Final)| JD_20 & JD_00
%% Kto gdzie działa
HOUSTON -.-> JD_00
ATLAS -.-> JD_20
COMET -.-> JD_30
VOYAGER -.-> JD_20
ORACLE -.-> JD_40
end