Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080" width="100%" role="img" aria-labelledby="title desc">
<title id="title">Workspace Files</title>
<desc id="desc">Source-backed anatomy of the Gallery node’s Workspace Files panel, separating WebSocket listing/search from HTTP content and upload routes while showing how controlled path and selection parameters drive the Gallery node’s FileRef output. Sources: client/src/components/parameterPanel/GalleryPanel.tsx; client/src/components/parameterPanel/gallery/WorkspaceBrowser.tsx; server/nodes/filesystem/gallery/_handlers.py; server/nodes/filesystem/gallery/_service.py; server/nodes/filesystem/gallery/__init__.py; server/nodes/filesystem/_backend.py; server/routers/workspace.py; docs-internal/node-logic-flows/code_fs_process/gallery.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">Workspace Files</text>
<text x="72" y="91" class="subtitle">Browse, search, upload, preview, pin, and emit files from the workflow’s contained workspace.</text>
<g data-group-id="workspace-panel"><rect x="70" y="130" width="900" height="700" rx="18" fill="#15171c" stroke="#8be9fd" stroke-width="2"/><text x="90" y="162" class="group-label">GALLERY NODE · WORKSPACE FILES PANEL</text></g><g data-group-id="workspace-transport"><rect x="1010" y="130" width="840" height="420" rx="18" fill="#15171c" stroke="#bd93f9" stroke-width="2"/><text x="1030" y="162" class="group-label">WORKSPACE TRANSPORT + STORAGE</text></g><g data-group-id="gallery-execution"><rect x="1010" y="590" width="840" height="240" rx="18" fill="#15171c" stroke="#ffb86c" stroke-width="2"/><text x="1030" y="622" class="group-label">WORKFLOW EXECUTION PATH</text></g><g data-relationship-id="header-opens-upload"><title>Upload action</title><path d="M 520.0 300 L 790 325 L 790.0 350" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="728.6" y="310.0" width="122.8" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="790" y="328" class="edge-label" text-anchor="middle" textLength="104.8" lengthAdjust="spacingAndGlyphs">Upload action</text></g><g data-relationship-id="browser-activates-file"><title>activate, pin, or drag file</title><path d="M 610 525.0 L 650 525.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 630.0 505.0 L 1080 559" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="965.4" y="544.0" width="229.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1080" y="562" class="edge-label" text-anchor="middle" textLength="211.2" lengthAdjust="spacingAndGlyphs">activate, pin, or drag file</text></g><g data-relationship-id="browser-requests-listing"><title>browse path or send debounced search · via WebSocket</title><path d="M 360.0 350 L 360 325 L 990 325 L 990 265 L 1050 265.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 780.0 315.0 L 780 153" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="631.2" y="129.0" width="297.59999999999997" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="780" y="150" class="edge-label" text-anchor="middle" textLength="279.6" lengthAdjust="spacingAndGlyphs">browse path or send debounced search</text><text x="780" y="170" class="edge-protocol" text-anchor="middle">via WebSocket</text></g><g data-relationship-id="handler-selects-listing-mode"><title>directory list or recursive search</title><path d="M 1220.0 330 L 1220.0 390" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1078.8" y="345.0" width="282.4" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1220" y="363" class="edge-label" text-anchor="middle" textLength="264.4" lengthAdjust="spacingAndGlyphs">directory list or recursive search</text></g><g data-relationship-id="listing-reads-workspace"><title>contained ls_info / glob_info · via async filesystem</title><path d="M 1390 455.0 L 1450 455.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1420.0 450.0 L 1420 558" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1297.8" y="534.0" width="244.39999999999998" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1420" y="555" class="edge-label" text-anchor="middle" textLength="226.4" lengthAdjust="spacingAndGlyphs">contained ls_info / glob_info</text><text x="1420" y="575" class="edge-protocol" text-anchor="middle">via async filesystem</text></g><g data-relationship-id="actions-use-http"><title>upload, preview, or download · via HTTP</title><path d="M 930 525.0 L 990 525 L 990 265 L 1450 265.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 990.0 385.0 L 1440 148.0" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1321.6" y="124.0" width="236.79999999999998" height="48" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1440" y="145.0" class="edge-label" text-anchor="middle" textLength="218.8" lengthAdjust="spacingAndGlyphs">upload, preview, or download</text><text x="1440" y="165.0" class="edge-protocol" text-anchor="middle">via HTTP</text></g><g data-relationship-id="http-reads-writes-workspace"><title>write upload or stream content</title><path d="M 1630.0 330 L 1630.0 390" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="1504.0" y="345.0" width="252.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1630" y="363" class="edge-label" text-anchor="middle" textLength="234.0" lengthAdjust="spacingAndGlyphs">write upload or stream content</text></g><g data-relationship-id="browser-controls-path"><title>navigation writes path</title><path d="M 360.0 700 L 360 720 L 280 720 L 280 775 L 300 775.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 355.0 715.0 L 175 769" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="79.4" y="754.0" width="191.2" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="175" y="772" class="edge-label" text-anchor="middle" textLength="173.2" lengthAdjust="spacingAndGlyphs">navigation writes path</text></g><g data-relationship-id="actions-control-selection"><title>pinning writes selection</title><path d="M 790.0 700 L 790 720 L 760 720 L 760 775 L 740 775.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 760.0 715.0 L 940 823" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="836.8" y="808.0" width="206.39999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="940" y="826" class="edge-label" text-anchor="middle" textLength="188.4" lengthAdjust="spacingAndGlyphs">pinning writes selection</text></g><g data-relationship-id="params-drive-gallery-run"><title>run with path / selection</title><path d="M 740 775.0 L 980 775 L 980 710 L 1050 710.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><rect x="768.0" y="750.0" width="214.0" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="875" y="768" class="edge-label" text-anchor="middle" textLength="196.0" lengthAdjust="spacingAndGlyphs">run with path / selection</text></g><g data-relationship-id="gallery-reuses-listing-service"><title>reuse listing and FileRef conversion</title><path d="M 1220.0 650 L 1220.0 520" fill="none" stroke="#e8eaed" stroke-width="2" stroke-dasharray="10 8" marker-end="url(#arrow)"/><path d="M 1220.0 585.0 L 1220 801" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1071.2" y="786.0" width="297.59999999999997" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1220" y="804" class="edge-label" text-anchor="middle" textLength="279.6" lengthAdjust="spacingAndGlyphs">reuse listing and FileRef conversion</text></g><g data-relationship-id="gallery-emits-output"><title>emit selected or listed files</title><path d="M 1390 710.0 L 1450 710.0" fill="none" stroke="#e8eaed" stroke-width="2" marker-end="url(#arrow)"/><path d="M 1420.0 710.0 L 1420 602" fill="none" stroke="#9aa1ac" stroke-width="1" stroke-dasharray="3 4" opacity=".7"/><rect x="1297.8" y="587.0" width="244.39999999999998" height="30" rx="7" fill="#15171c" stroke="#2b2f37"/><text x="1420" y="605" class="edge-label" text-anchor="middle" textLength="226.4" lengthAdjust="spacingAndGlyphs">emit selected or listed files</text></g><g data-component-id="workspace-panel-header"><title>Workspace Files header</title><rect x="110" y="200" width="820" height="100" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="110" y="200" width="820" height="7" rx="4" fill="#8be9fd"/><text x="128" y="226" class="type-label">INTERFACE</text><text x="128" y="252" class="node-label">Workspace Files header</text><text x="128" y="278" class="node-detail">workflow-produced files · Upload action</text></g><g data-component-id="workspace-browser"><title>WorkspaceBrowser</title><rect x="110" y="350" width="500" height="350" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="110" y="350" width="500" height="7" rx="4" fill="#8be9fd"/><text x="128" y="376" class="type-label">INTERFACE</text><text x="128" y="402" class="node-label">WorkspaceBrowser</text><text x="128" y="428" class="node-detail">breadcrumbs + directory navigation</text><text x="128" y="448" class="node-detail">250 ms search · whole workspace</text><text x="128" y="468" class="node-detail">grid / list · refresh · 5 s poll</text><text x="128" y="488" class="node-detail">empty, missing, truncated states</text></g><g data-component-id="workspace-file-actions"><title>File actions</title><rect x="650" y="350" width="280" height="350" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="650" y="350" width="280" height="7" rx="4" fill="#50fa7b"/><text x="668" y="376" class="type-label">INTERFACE</text><text x="668" y="402" class="node-label">File actions</text><text x="668" y="428" class="node-detail">upload one or many</text><text x="668" y="448" class="node-detail">preview / download</text><text x="668" y="468" class="node-detail">pin for node output</text><text x="668" y="488" class="node-detail">FileRef drag payload</text></g><g data-component-id="gallery-node-parameters"><title>Node params: path + selection</title><rect x="300" y="740" width="440" height="70" rx="12" fill="#1b1e25" stroke="#f1fa8c" stroke-width="2"/><rect x="300" y="740" width="440" height="7" rx="4" fill="#f1fa8c"/><text x="318" y="766" class="type-label">NODE PARAMS</text><text x="318" y="792" class="node-label">Node params · path + selection</text></g><g data-component-id="list-workspace-files-handler"><title>list_workspace_files</title><rect x="1050" y="200" width="340" height="130" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="1050" y="200" width="340" height="7" rx="4" fill="#ff79c6"/><text x="1068" y="226" class="type-label">WEBSOCKET</text><text x="1068" y="252" class="node-label">list_workspace_files</text><text x="1068" y="278" class="node-detail">path or workspace-wide search</text><text x="1068" y="298" class="node-detail">limit 500 from panel</text></g><g data-component-id="workspace-http-routes"><title>Workspace HTTP routes</title><rect x="1450" y="200" width="360" height="130" rx="12" fill="#1b1e25" stroke="#8be9fd" stroke-width="2"/><rect x="1450" y="200" width="360" height="7" rx="4" fill="#8be9fd"/><text x="1468" y="226" class="type-label">HTTP</text><text x="1468" y="252" class="node-label">Workspace HTTP routes</text><text x="1468" y="278" class="node-detail">POST uploads</text><text x="1468" y="298" class="node-detail">GET content · Range</text></g><g data-component-id="workspace-listing-service"><title>Workspace listing service</title><rect x="1050" y="390" width="340" height="130" rx="12" fill="#1b1e25" stroke="#bd93f9" stroke-width="2"/><rect x="1050" y="390" width="340" height="7" rx="4" fill="#bd93f9"/><text x="1068" y="416" class="type-label">SERVICE</text><text x="1068" y="442" class="node-label">Workspace listing</text><text x="1068" y="464" class="node-label">service</text><text x="1068" y="490" class="node-detail">directory or recursive glob</text><text x="1068" y="510" class="node-detail">sort, cap, crumbs, preview</text></g><g data-component-id="contained-workspace-root"><title>Contained workflow workspace</title><rect x="1450" y="390" width="360" height="130" rx="12" fill="#1b1e25" stroke="#ff79c6" stroke-width="2"/><rect x="1450" y="390" width="360" height="7" rx="4" fill="#ff79c6"/><text x="1468" y="416" class="type-label">FILESYSTEM</text><text x="1468" y="442" class="node-label">Contained workflow</text><text x="1468" y="464" class="node-label">workspace</text><text x="1468" y="490" class="node-detail">WorkspaceBackend</text><text x="1468" y="510" class="node-detail">workspace-relative paths</text></g><g data-component-id="gallery-node-runtime"><title>Gallery node execution</title><rect x="1050" y="650" width="340" height="120" rx="12" fill="#1b1e25" stroke="#ffb86c" stroke-width="2"/><rect x="1050" y="650" width="340" height="7" rx="4" fill="#ffb86c"/><text x="1068" y="676" class="type-label">RUNTIME</text><text x="1068" y="702" class="node-label">Gallery node</text><text x="1068" y="724" class="node-label">execution</text><text x="1068" y="750" class="node-detail">selection > pattern > directory</text></g><g data-component-id="gallery-file-ref-output"><title>Downstream FileRef output</title><rect x="1450" y="650" width="360" height="120" rx="12" fill="#1b1e25" stroke="#50fa7b" stroke-width="2"/><rect x="1450" y="650" width="360" height="7" rx="4" fill="#50fa7b"/><text x="1468" y="676" class="type-label">RESULT</text><text x="1468" y="702" class="node-label">Downstream FileRef</text><text x="1468" y="724" class="node-label">output</text><text x="1468" y="750" class="node-detail">files · directories · missing[]</text></g><g data-callout-id="workspace-channel-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">Two channels, one contained workspace</text><text x="86" y="936" class="callout-text">WebSocket owns listing and search; HTTP owns upload and file bytes for preview, download, and Range requests.</text><text x="86" y="958" class="callout-text">Rows arrive with a server-built FileRef and preview verdict, so the client does not duplicate path or security decisions.</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>