Skip to content

Self-improving AI Employees for everyone

19.8 KB
Raw Blame
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" width="100%" role="img" aria-labelledby="title desc">
<title id="title">Runtime Observability Dock</title>
<desc id="desc">Source-backed topology of the collapsible Chat / Console dock: chat messages, Console node records, and terminal logs use distinct producers and retention paths, converge in WebSocketContext state, and render in a resizable chat pane plus Console and Terminal tabs with targeted filters and clear actions. Sources: client/src/components/ui/ConsolePanel.tsx; client/src/contexts/WebSocketContext.tsx; server/nodes/utility/console/__init__.py; server/services/status_broadcaster.py; server/routers/websocket.py; server/nodes/trigger/chat_trigger/_events.py; server/services/process_service.py; server/core/logging.py; docs-internal/node-logic-flows/chat_utility/console.md</desc>
<defs>
  <marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M0,0 L10,5 L0,10 z" fill="#e8eaed"/></marker>
  <style>
    .title { fill:#e8eaed; font:700 30px Geist,system-ui,sans-serif; }
    .subtitle { fill:#9aa1ac; font:400 18px Geist,system-ui,sans-serif; }
    .group-label { fill:#9aa1ac; font:600 16px 'JetBrains Mono',ui-monospace,monospace; letter-spacing:1.2px; }
    .type-label { fill:#9aa1ac; font:600 16px 'JetBrains Mono',ui-monospace,monospace; letter-spacing:.8px; }
    .node-label { fill:#e8eaed; font:650 20px Geist,system-ui,sans-serif; }
    .node-detail { fill:#9aa1ac; font:400 16px Geist,system-ui,sans-serif; }
    .edge-label { fill:#e8eaed; font:500 16px Geist,system-ui,sans-serif; }
    .edge-protocol { fill:#9aa1ac; font:500 16px 'JetBrains Mono',ui-monospace,monospace; }
    .callout-title { fill:#e8eaed; font:650 18px Geist,system-ui,sans-serif; }
    .callout-text { fill:#9aa1ac; font:400 16px Geist,system-ui,sans-serif; }
    .legend { fill:#9aa1ac; font:500 16px Geist,system-ui,sans-serif; }
  </style>
</defs>
<rect width="1920" height="1080" fill="#0d0f13"/>
<text x="72" y="58" class="title">Runtime Observability Dock</text>
<text x="72" y="91" class="subtitle">One resizable dock combines workflow chat, Console-node output, and live server/process logs without conflating their scopes.</text>
<g data-group-id="runtime-producers"><rect x="70" y="130" width="460" height="700" rx="18" fill="#15171c" stroke="#ffb86c" stroke-width="2"/><text x="90" y="162" class="group-label">RUNTIME PRODUCERS + CONSUMERS</text></g><g data-group-id="observability-transport"><rect x="570" y="130" width="590" height="700" rx="18" fill="#15171c" stroke="#bd93f9" stroke-width="2"/><text x="590" y="162" class="group-label">TRANSPORT + RETAINED STATE</text></g><g data-group-id="observability-dock"><rect x="1200" y="130" width="650" height="700" rx="18" fill="#15171c" stroke="#8be9fd" stroke-width="2"/><text x="1220" y="162" class="group-label">COLLAPSIBLE CHAT / CONSOLE DOCK</text></g><g data-relationship-id="console-broadcasts-log"><title>broadcast_console_log</title><path d="M 490 275.0 L 610 280.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 550.0 265.0 L 460 373" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="368.2" y="358.0" width="183.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="460" y="376" class="edge-label" text-anchor="middle" textLength="165.6" lengthAdjust="spacingAndGlyphs">broadcast_console_log</text></g><g data-relationship-id="runtime-broadcasts-terminal"><title>broadcast_terminal_log</title><path d="M 490 505.0 L 550 505 L 550 315 L 610 280.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 550.0 410.0 L 640 410" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="544.4" y="395.0" width="191.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="640" y="413" class="edge-label" text-anchor="middle" textLength="173.2" lengthAdjust="spacingAndGlyphs">broadcast_terminal_log</text></g><g data-relationship-id="broadcaster-persists-console"><title>persist Console records</title><path d="M 730.0 360 L 730.0 440" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 730.0 400.0 L 910 400" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="810.6" y="385.0" width="198.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="910" y="403" class="edge-label" text-anchor="middle" textLength="180.8" lengthAdjust="spacingAndGlyphs">persist Console records</text></g><g data-relationship-id="broadcaster-retains-terminal"><title>retain latest Terminal records</title><path d="M 850 280.0 L 870 280 L 870 405 L 1005 405 L 1005.0 440" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 920.0 395.0 L 920 611" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="794.0" y="596.0" width="252.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="920" y="614" class="edge-label" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">retain latest Terminal records</text></g><g data-relationship-id="handlers-query-db"><title>get / clear scoped history</title><path d="M 1005.0 360 L 1005 400 L 870 400 L 870 505 L 850 505.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 885.0 390.0 L 1065 174" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="954.2" y="159.0" width="221.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1065" y="177" class="edge-label" text-anchor="middle" textLength="203.6" lengthAdjust="spacingAndGlyphs">get / clear scoped history</text></g><g data-relationship-id="handlers-query-terminal-cache"><title>get / clear terminal history</title><path d="M 1005.0 360 L 1005.0 440" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1005.0 400.0 L 1005 139.0" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="886.6" y="124.0" width="236.79999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1005" y="142.0" class="edge-label" text-anchor="middle" textLength="218.8" lengthAdjust="spacingAndGlyphs">get / clear terminal history</text></g><g data-relationship-id="handlers-dispatch-chat-trigger"><title>dispatch chat_message_received · via workflow-scoped CloudEvent</title><path d="M 890 280.0 L 560 280 L 560 720 L 490 720.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 560.0 600.0 L 560 816" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="434.0" y="792.0" width="252.0" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="560" y="813" class="edge-label" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">dispatch chat_message_received</text><text x="560" y="833" class="edge-protocol" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">via workflow-scoped CloudEvent</text></g><g data-relationship-id="live-events-update-context"><title>live console_log / terminal_log · via WebSocket broadcast</title><path d="M 610 280.0 L 590 280 L 590 720 L 760 720.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 675.0 625.0 L 585 625" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="455.2" y="601.0" width="259.6" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="585" y="622" class="edge-label" text-anchor="middle" textLength="241.6" lengthAdjust="spacingAndGlyphs">live console_log / terminal_log</text><text x="585" y="642" class="edge-protocol" text-anchor="middle">via WebSocket broadcast</text></g><g data-relationship-id="handlers-hydrate-context"><title>hydrate on connect or workflow switch</title><path d="M 1120 280.0 L 1140 280 L 1140 630 L 890 630 L 890.0 660" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><path d="M 1135.0 520.0 L 1045 790" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="892.4" y="775.0" width="305.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1045" y="793" class="edge-label" text-anchor="middle" textLength="287.2" lengthAdjust="spacingAndGlyphs">hydrate on connect or workflow switch</text></g><g data-relationship-id="chat-sends-handler-request"><title>send_chat_message / clear chat · via WebSocket request</title><path d="M 1370.0 200 L 1370 165 L 1005 165 L 1005.0 200" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1190.0 160.0 L 1640 148.0" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1514.0" y="124.0" width="252.0" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1640" y="145.0" class="edge-label" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">send_chat_message / clear chat</text><text x="1640" y="165.0" class="edge-protocol" text-anchor="middle">via WebSocket request</text></g><g data-relationship-id="context-renders-chat"><title>chat messages</title><path d="M 1020 720.0 L 1180 720 L 1180 450 L 1240 450.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1180.0 585.0 L 1090 693" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1028.6" y="678.0" width="122.8" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1090" y="696" class="edge-label" text-anchor="middle" textLength="104.8" lengthAdjust="spacingAndGlyphs">chat messages</text></g><g data-relationship-id="context-renders-console"><title>Console records</title><path d="M 890.0 660 L 890 610 L 1175 610 L 1175 145 L 1675 145 L 1675.0 200" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1510.0 140.0 L 1839.0 140" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1770.0" y="125.0" width="138.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1839.0" y="143" class="edge-label" text-anchor="middle" textLength="120.0" lengthAdjust="spacingAndGlyphs">Console records</text></g><g data-relationship-id="context-renders-terminal"><title>Terminal records</title><path d="M 890.0 780 L 890 845 L 1675 845 L 1675.0 700" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1407.2" y="825.0" width="145.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1480" y="843" class="edge-label" text-anchor="middle" textLength="127.6" lengthAdjust="spacingAndGlyphs">Terminal records</text></g><g data-relationship-id="prefs-shape-chat-pane"><title>height + split width + font</title><path d="M 1240 765.0 L 1220 775 L 1220 720 L 1370 720 L 1370.0 700" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><path d="M 1300.0 715.0 L 1030 823" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="915.4" y="808.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1030" y="826" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">height + split width + font</text></g><g data-relationship-id="prefs-select-log-tab"><title>selected Console / Terminal tab</title><path d="M 1810 765.0 L 1830 775 L 1830 720 L 1675 720 L 1675.0 700" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><path d="M 1725.0 715.0 L 1778.2 445" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1648.4" y="430.0" width="259.6" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1778.2" y="448" class="edge-label" text-anchor="middle" textLength="241.6" lengthAdjust="spacingAndGlyphs">selected Console / Terminal tab</text></g><g data-component-id="console-node-producer"><title>Console node output</title><rect x="110" y="200" width="380" height="150" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="110" y="200" width="380" height="7" rx="4" fill="#ffb86c"/><text x="128" y="226" class="type-label">WORKFLOW</text><text x="128" y="252" class="node-label">Console node output</text><text x="128" y="278" class="node-detail">label · format · formatted data</text><text x="128" y="298" class="node-detail">workflow + source node IDs</text></g><g data-component-id="terminal-log-producers"><title>Server / process / CLI logs</title><rect x="110" y="430" width="380" height="150" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="110" y="430" width="380" height="7" rx="4" fill="#ffb86c"/><text x="128" y="456" class="type-label">RUNTIME</text><text x="128" y="482" class="node-label">Server / process / CLI</text><text x="128" y="504" class="node-label">logs</text><text x="128" y="530" class="node-detail">level · message · source</text><text x="128" y="550" class="node-detail">optional details</text></g><g data-component-id="chat-trigger-consumers"><title>chatTrigger consumers</title><rect x="110" y="660" width="380" height="120" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="110" y="660" width="380" height="7" rx="4" fill="#ff79c6"/><text x="128" y="686" class="type-label">TRIGGER</text><text x="128" y="712" class="node-label">chatTrigger consumers</text><text x="128" y="738" class="node-detail">workflow-scoped CloudEvent</text></g><g data-component-id="status-broadcaster"><title>StatusBroadcaster</title><rect x="610" y="200" width="240" height="160" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="610" y="200" width="240" height="7" rx="4" fill="#ff79c6"/><text x="628" y="226" class="type-label">EVENT BUS</text><text x="628" y="252" class="node-label">StatusBroadcaster</text><text x="628" y="278" class="node-detail">console_log</text><text x="628" y="298" class="node-detail">terminal_log</text><text x="628" y="318" class="node-detail">clear broadcasts</text></g><g data-component-id="dock-ws-handlers"><title>Dock WebSocket handlers</title><rect x="890" y="200" width="230" height="160" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="890" y="200" width="230" height="7" rx="4" fill="#bd93f9"/><text x="908" y="226" class="type-label">SERVICE</text><text x="908" y="252" class="node-label">Dock WebSocket</text><text x="908" y="274" class="node-label">handlers</text><text x="908" y="300" class="node-detail">send / get / clear</text><text x="908" y="320" class="node-detail" textLength="194.0" lengthAdjust="spacingAndGlyphs">chat · console · terminal</text></g><g data-component-id="workflow-history-db"><title>Workflow history DB</title><rect x="610" y="440" width="240" height="130" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="610" y="440" width="240" height="7" rx="4" fill="#ff79c6"/><text x="628" y="466" class="type-label">DATABASE</text><text x="628" y="492" class="node-label" textLength="204.0" lengthAdjust="spacingAndGlyphs">Workflow history DB</text><text x="628" y="518" class="node-detail">chat_messages</text><text x="628" y="538" class="node-detail">console_logs</text></g><g data-component-id="terminal-ring-buffer"><title>Terminal ring buffer</title><rect x="890" y="440" width="230" height="130" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="890" y="440" width="230" height="7" rx="4" fill="#ff79c6"/><text x="908" y="466" class="type-label">MEMORY</text><text x="908" y="492" class="node-label">Terminal ring</text><text x="908" y="514" class="node-label">buffer</text><text x="908" y="540" class="node-detail">latest 200 entries</text><text x="908" y="560" class="node-detail">global in process</text></g><g data-component-id="websocket-context-state"><title>WebSocketContext state</title><rect x="760" y="660" width="260" height="120" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="760" y="660" width="260" height="7" rx="4" fill="#bd93f9"/><text x="778" y="686" class="type-label">CLIENT STATE</text><text x="778" y="712" class="node-label">WebSocketContext</text><text x="778" y="734" class="node-label">state</text><text x="778" y="760" class="node-detail" textLength="224.0" lengthAdjust="spacingAndGlyphs">chat · console · terminal arrays</text></g><g data-component-id="chat-pane"><title>Chat pane</title><rect x="1240" y="200" width="260" height="500" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="1240" y="200" width="260" height="7" rx="4" fill="#8be9fd"/><text x="1258" y="226" class="type-label">INTERFACE</text><text x="1258" y="252" class="node-label">Chat pane</text><text x="1258" y="278" class="node-detail" textLength="224.0" lengthAdjust="spacingAndGlyphs">All Triggers or one target</text><text x="1258" y="298" class="node-detail">user + assistant messages</text><text x="1258" y="318" class="node-detail">Enter to send</text><text x="1258" y="338" class="node-detail">clear current workflow</text></g><g data-component-id="console-tab"><title>Console tab</title><rect x="1540" y="200" width="270" height="230" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="1540" y="200" width="270" height="7" rx="4" fill="#8be9fd"/><text x="1558" y="226" class="type-label">INTERFACE</text><text x="1558" y="252" class="node-label">Console tab</text><text x="1558" y="278" class="node-detail">filter by Console node</text><text x="1558" y="298" class="node-detail">search + pretty print</text><text x="1558" y="318" class="node-detail">workflow-scoped clear</text></g><g data-component-id="terminal-tab"><title>Terminal tab</title><rect x="1540" y="470" width="270" height="230" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="1540" y="470" width="270" height="7" rx="4" fill="#8be9fd"/><text x="1558" y="496" class="type-label">INTERFACE</text><text x="1558" y="522" class="node-label">Terminal tab</text><text x="1558" y="548" class="node-detail">level threshold</text><text x="1558" y="568" class="node-detail">message / source search</text><text x="1558" y="588" class="node-detail">global clear</text></g><g data-component-id="dock-preferences"><title>Persisted dock preferences</title><rect x="1240" y="720" width="570" height="90" rx="12" fill="#1b1e25" stroke="#9aa1ac" stroke-width="2"/><rect x="1240" y="720" width="570" height="7" rx="4" fill="#9aa1ac"/><text x="1258" y="746" class="type-label">LOCAL STATE</text><text x="1258" y="772" class="node-label">Persisted dock preferences</text><text x="1258" y="798" class="node-detail">height · split width · font · autoscroll · pretty print · tab</text></g><g data-callout-id="observability-scope-contract"><rect x="70" y="880" width="1780" height="90" rx="10" fill="#1b1e25" stroke="#f1fa8c" stroke-width="2" stroke-dasharray="7 6"/><text x="86" y="910" class="callout-title">Scope and retention stay deliberately distinct</text><text x="86" y="936" class="callout-text">Chat and Console history are persisted and scoped to the current workflow; Terminal history is a process-wide in-memory buffer of the latest 200 entries.</text><text x="86" y="958" class="callout-text">The dock persists only presentation preferences in localStorage—panel height, split width, font size, auto-scroll, pretty print, and selected log tab.</text></g>
<g aria-label="Legend"><circle cx="72" cy="1038" r="7" fill="#bd93f9"/><text x="86" y="1044" class="legend">Agents / system</text><circle cx="317" cy="1038" r="7" fill="#8be9fd"/><text x="331" y="1044" class="legend">Models / interfaces</text><circle cx="562" cy="1038" r="7" fill="#50fa7b"/><text x="576" y="1044" class="legend">Tools / results</text><circle cx="807" cy="1038" r="7" fill="#ff79c6"/><text x="821" y="1044" class="legend">Triggers / events</text><circle cx="1052" cy="1038" r="7" fill="#ffb86c"/><text x="1066" y="1044" class="legend">Workflow / runtime</text><circle cx="1297" cy="1038" r="7" fill="#f1fa8c"/><text x="1311" y="1044" class="legend">Security note</text></g>
</svg>