<?xml version="1.0" encoding="UTF-8"?>
<mxfile host="eli.ai" agent="eli.ai diagram exporter" version="1">
  <diagram id="agent-surface-detailed-system-view-a8f942f5" name="Agent surface — detailed system view">
    <mxGraphModel dx="1600" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1200" math="0" shadow="0">
      <root>
        <mxCell id="0"/>
        <object id="1" label="Agent surface — detailed system view" schemaVersion="1" diagramId="agent-surface-detailed-system-view-a8f942f5" canonicalAppearanceKey="md:docs/architecture/workspace/05-agent-surface.md#2" sourceSha256="a8f942f5eaba069d20e2e0ee55af2cc68e7345b9ab232a6776eaf0ca479eef91" metadataPayloadSha256="acf07c18b76bb3f4cbb964a6afcedc9c8d94697acc0235bb9d70ee87174b06d0" generationKey="21cac0a767d5e83d1c16aef0a9e8c2a88437f9d55f6dd5e7545508d4812815d8" concepts="[&quot;Agent surface&quot;,&quot;External agents&quot;]" keywords="[&quot;HTTP transport&quot;,&quot;HTTP / SSE + Bearer&quot;,&quot;RLS insert / update&quot;,&quot;list_artifacts, read_artifact, list_versions&quot;,&quot;create / edit / rename / delete_artifact&quot;,&quot;get_diff, restore_version&quot;,&quot;add_comment, daily_note, apply_template&quot;,&quot;memory_search, memory_get&quot;,&quot;Bearer eli_pair_* or eli_pat_*&quot;,&quot;Gemini CLI / OpenClaw&quot;,&quot;/pair page&quot;,&quot;stdin/stdout JSON-RPC&quot;,&quot;Claude Code / Cursor / Codex CLI&quot;,&quot;Next route (mcp-handler)&quot;,&quot;authForMcp / authForLocal&quot;,&quot;createMcpServer + registerTools&quot;,&quot;search (fts / semantic / hybrid)&quot;,&quot;LocalAdapter / SupabaseAdapter&quot;,&quot;staticContext, agentName pinned&quot;,&quot;mode-conditional withMcpAuth&quot;,&quot;service-role prefix lookup&quot;,&quot;parseBearer / verifyHash&quot;,&quot;dual text + structured output&quot;,&quot;MCP&quot;,&quot;bin/eli-mcp.mjs&quot;,&quot;MCP authentication&quot;,&quot;stdio transport&quot;]" application="{&quot;name&quot;:&quot;eli-ai&quot;,&quot;version&quot;:&quot;0.1.0&quot;}" packages="{&quot;mermaid&quot;:&quot;11.16.0&quot;,&quot;mermaidCli&quot;:&quot;11.16.0&quot;,&quot;playwright&quot;:&quot;1.62.1&quot;,&quot;playwrightCore&quot;:&quot;1.62.1&quot;,&quot;puppeteer&quot;:&quot;25.6.0&quot;,&quot;puppeteerCore&quot;:&quot;25.6.0&quot;}" environment="{&quot;architecture&quot;:&quot;x64&quot;,&quot;containerImage&quot;:&quot;playwright:v1.62.1-noble@sha256:c091b21d9fae78c76e85cd4356431e9b018402f172a214fc7d7a5e9a7e29d8ac+node:26.3.1-bookworm-slim@sha256:209558c3e5e40e8adff68959d3c2ba7cd73723e716d89196878a0c362fa1e109&quot;,&quot;node&quot;:&quot;v26.3.1&quot;,&quot;platform&quot;:&quot;linux&quot;,&quot;yarn&quot;:&quot;4.17.1&quot;}" renderer="{&quot;browser&quot;:{&quot;executableSha256&quot;:&quot;0b20b130e7edd9dd51873be867761295fe0cfad490c2b9a64f95bd3cfc08fa71&quot;,&quot;name&quot;:&quot;chromium&quot;,&quot;revision&quot;:&quot;1234&quot;,&quot;version&quot;:&quot;151.0.7922.34&quot;},&quot;font&quot;:{&quot;family&quot;:&quot;Eli Diagram Inter Variable&quot;,&quot;fileSha256&quot;:&quot;3100e775e8616cd2611beecfa23a4263d7037586789b43f035236a2e6fbd4c62&quot;,&quot;licenseSha256&quot;:&quot;3b0a5fca3d17942cde889069889dedbbbd075e9b599968c82a95f4d944e9b345&quot;},&quot;mermaidConfigSha256&quot;:&quot;68c10966fe84406ee626034d58bfabd555df9f65f691204b7c46db24038da101&quot;,&quot;themeCssSha256&quot;:&quot;c80287a78d80ad63d27bd5ca348b2ef9a7e2f44da289e436be6484ea28a1b033&quot;}" adapterVersions="{&quot;diagramGenerator&quot;:&quot;2&quot;,&quot;drawioFlowchart&quot;:&quot;1&quot;,&quot;drawioGantt&quot;:&quot;1&quot;,&quot;drawioSequence&quot;:&quot;1&quot;,&quot;drawioState&quot;:&quot;1&quot;}" mermaidType="flowchart" direction="LR" generatedAt="2026-08-12T23:36:26.328Z" mermaidSource="flowchart LR&#10;    classDef ext fill:#dbeafe,stroke:#3b82f6,color:#1e3a5f&#10;    classDef core fill:#dcfce7,stroke:#22c55e,color:#14532d&#10;    classDef sec fill:#f3e8ff,stroke:#a855f7,color:#4c1d95&#10;    classDef infra fill:#ffedd5,stroke:#f97316,color:#7c2d12&#10;    classDef gap fill:#fee2e2,stroke:#ef4444,color:#7f1d1d&#10;&#10;    subgraph sgAgents[&quot;External agents&quot;]&#10;        agent[&quot;Claude Code / Cursor / Codex CLI&lt;br/&gt;Gemini CLI / OpenClaw&quot;]:::ext&#10;        webext[&quot;Browser extension / bookmarklet&quot;]:::ext&#10;    end&#10;&#10;    subgraph sgStdio[&quot;stdio transport (local only)&quot;]&#10;        binShim[&quot;bin shim&lt;br/&gt;bin/eli-mcp.mjs&quot;]:::infra&#10;        stdioSrv[&quot;runStdioServer&lt;br/&gt;lib/mcp/stdio.ts&quot;]:::infra&#10;        esb[&quot;esbuild bundle&lt;br/&gt;scripts/build-mcp-bin.mjs&quot;]:::infra&#10;    end&#10;&#10;    subgraph sgHttp[&quot;HTTP transport (both modes)&quot;]&#10;        httpRoute[&quot;Next route (mcp-handler)&lt;br/&gt;app/api/mcp/(transport)/route.ts&quot;]:::infra&#10;        authMod[&quot;authForMcp / authForLocal&lt;br/&gt;lib/mcp/auth.ts&quot;]:::sec&#10;        rlMod[&quot;rate limiter 60/min + 10k/day&lt;br/&gt;lib/mcp/ratelimit.ts&quot;]:::sec&#10;    end&#10;&#10;    subgraph sgCore[&quot;Server core&quot;]&#10;        mcpSrv[&quot;createMcpServer + registerTools&lt;br/&gt;lib/mcp/server.ts&quot;]:::core&#10;        ctxMod[&quot;McpContext providers&lt;br/&gt;lib/mcp/context.ts&quot;]:::core&#10;        fmtMod[&quot;serializeNote + formatting&lt;br/&gt;lib/mcp/format.ts&quot;]:::core&#10;    end&#10;&#10;    subgraph sgTools[&quot;16 tools (lib/mcp/tools/)&quot;]&#10;        tRead[&quot;read.ts&lt;br/&gt;list_artifacts, read_artifact, list_versions&quot;]:::core&#10;        tWrite[&quot;write.ts&lt;br/&gt;create / edit / rename / delete_artifact&quot;]:::core&#10;        tAppend[&quot;append.ts&lt;br/&gt;append_to_artifact&quot;]:::core&#10;        tSearch[&quot;search.ts&lt;br/&gt;search (fts / semantic / hybrid)&quot;]:::core&#10;        tDiff[&quot;diff.ts&lt;br/&gt;get_diff, restore_version&quot;]:::core&#10;        tCdt[&quot;comment.ts / daily.ts / template.ts&lt;br/&gt;add_comment, daily_note, apply_template&quot;]:::core&#10;        tMem[&quot;memory.ts&lt;br/&gt;memory_search, memory_get&quot;]:::core&#10;    end&#10;&#10;    subgraph sgCred[&quot;Credentials&quot;]&#10;        patLib[&quot;PAT primitives&lt;br/&gt;lib/auth/pat.ts&quot;]:::sec&#10;        patActs[&quot;PAT Server Actions&lt;br/&gt;app/_actions/pats.ts&quot;]:::sec&#10;        patUi2[&quot;Developers page + dialogs&lt;br/&gt;components/pat/*&quot;]:::sec&#10;        pairLib[&quot;Pairing tokens&lt;br/&gt;lib/pair/extension.ts&quot;]:::sec&#10;        pairUi[&quot;/pair page + /api/pair&lt;br/&gt;components/pair-approval.tsx&quot;]:::sec&#10;    end&#10;&#10;    subgraph sgSetup[&quot;Setup + guidance&quot;]&#10;        setupDlg[&quot;Setup dialog + palette entry&lt;br/&gt;components/setup/*&quot;]:::infra&#10;        setupAct[&quot;setupExternalToolsAction&lt;br/&gt;app/_actions/setup.ts&quot;]:::infra&#10;        setupWr[&quot;5 config writers&lt;br/&gt;lib/setup/*&quot;]:::infra&#10;        agentsLib[&quot;AGENTS.md library (UNWIRED)&lt;br/&gt;lib/agents-md/*&quot;]:::gap&#10;        oclawLib[&quot;OpenClaw compat&lt;br/&gt;lib/openclaw/format.ts + scaffold.ts&quot;]:::infra&#10;    end&#10;&#10;    subgraph sgNeighbors[&quot;Neighbouring clusters + stores&quot;]&#10;        storageAd2[&quot;StorageAdapter (C1)&lt;br/&gt;LocalAdapter / SupabaseAdapter&quot;]:::ext&#10;        hybridMod[&quot;hybridSearch (C3)&lt;br/&gt;lib/search/hybrid.ts&quot;]:::ext&#10;        patsTable[&quot;personal_access_tokens (C7)&quot;]:::ext&#10;        cfgJson[&quot;~/.eli/config.json&lt;br/&gt;pairings list (hashed)&quot;]:::ext&#10;        agentCfgs[&quot;Agent config files&lt;br/&gt;~/.claude, ~/.cursor, ~/.codex,&lt;br/&gt;~/.gemini, ~/.openclaw&quot;]:::ext&#10;        clipRoute[&quot;/api/clip (C8)&quot;]:::ext&#10;    end&#10;&#10;    agentCfgs -.-&gt;|&quot;tells agents how to spawn eli&quot;| agent&#10;    agent --&gt;|&quot;stdin/stdout JSON-RPC&quot;| binShim&#10;    agent --&gt;|&quot;HTTP / SSE + Bearer&quot;| httpRoute&#10;    esb -.-&gt;|&quot;pnpm build:mcp / prepack&quot;| binShim&#10;    binShim --&gt; stdioSrv&#10;    stdioSrv --&gt;|&quot;staticContext, agentName pinned&quot;| mcpSrv&#10;    httpRoute --&gt;|&quot;mode-conditional withMcpAuth&quot;| authMod&#10;    authMod --&gt;|&quot;after successful auth&quot;| rlMod&#10;    authMod --&gt;|&quot;service-role prefix lookup&quot;| patsTable&#10;    authMod -.-&gt;|&quot;parseBearer / verifyHash&quot;| patLib&#10;    httpRoute --&gt; mcpSrv&#10;    mcpSrv --&gt;|&quot;registers 16 tools&quot;| sgTools&#10;    sgTools --&gt;|&quot;getContext per call&quot;| ctxMod&#10;    sgTools -.-&gt;|&quot;dual text + structured output&quot;| fmtMod&#10;    ctxMod --&gt; storageAd2&#10;    tSearch --&gt;|&quot;kind semantic / hybrid&quot;| hybridMod&#10;    tMem -.-&gt;|&quot;pathInScope helpers&quot;| oclawLib&#10;    patUi2 --&gt; patActs&#10;    patActs --&gt;|&quot;RLS insert / update&quot;| patsTable&#10;    patActs -.-&gt; patLib&#10;    webext --&gt; pairUi&#10;    pairUi --&gt; pairLib&#10;    pairLib --&gt;|&quot;sha256 hash persisted&quot;| cfgJson&#10;    webext --&gt;|&quot;Bearer eli_pair_* or eli_pat_*&quot;| clipRoute&#10;    clipRoute -.-&gt;|&quot;verifyPairingToken&quot;| pairLib&#10;    setupDlg --&gt; setupAct&#10;    setupAct --&gt; setupWr&#10;    setupWr --&gt;|&quot;atomic tmp + rename&quot;| agentCfgs&#10;    mcpSrv -.-&gt;|&quot;handshake instructions mention AGENTS.md&quot;| agentsLib">
          <mxCell parent="0"/>
        </object>
        <object id="c:sgNeighbors" label="Neighbouring clusters + stores" mermaidId="sgNeighbors" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1022.84375" y="8" width="3918.3125" height="272" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgSetup" label="Setup + guidance" mermaidId="sgSetup" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="8" y="660" width="4602.15625" height="170" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgCred" label="Credentials" mermaidId="sgCred" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="2109.84375" y="300" width="1413.3125" height="340" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgTools" label="16 tools (lib/mcp/tools/)" mermaidId="sgTools" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="3773.15625" y="850" width="306" height="1046" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgCore" label="Server core" mermaidId="sgCore" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="3217.15625" y="1916" width="1393" height="272" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgHttp" label="HTTP transport (both modes)" mermaidId="sgHttp" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="2109.84375" y="1297" width="1413.3125" height="268" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgStdio" label="stdio transport (local only)" mermaidId="sgStdio" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1553.84375" y="1977.5" width="1413.3125" height="169.5" as="geometry"/>
          </mxCell>
        </object>
        <object id="c:sgAgents" label="External agents" mermaidId="sgAgents" mermaidShape="frame">
          <mxCell parent="1" vertex="1" style="collapsible=0;container=1;dashed=1;fillColor=none;fontColor=#333333;html=1;recursiveResize=0;rounded=0;strokeColor=#9370DB;whiteSpace=wrap;">
            <mxGeometry x="1553.84375" y="1280.5" width="306" height="296" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:agent" label="Claude Code / Cursor / Codex CLIGemini CLI / OpenClaw" mermaidId="agent" mermaidShape="rectangle">
          <mxCell parent="c:sgAgents" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="161" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:webext" label="Browser extension / bookmarklet" mermaidId="webext" mermaidShape="rectangle">
          <mxCell parent="c:sgAgents" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="35" width="256" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:binShim" label="bin shimbin/eli-mcp.mjs" mermaidId="binShim" mermaidShape="rectangle">
          <mxCell parent="c:sgStdio" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="645.039063" y="36.5" width="173.234375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:stdioSrv" label="runStdioServerlib/mcp/stdio.ts" mermaidId="stdioSrv" mermaidShape="rectangle">
          <mxCell parent="c:sgStdio" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="1173.835938" y="36.5" width="172.953125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:esb" label="esbuild bundlescripts/build-mcp-bin.mjs" mermaidId="esb" mermaidShape="rectangle">
          <mxCell parent="c:sgStdio" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="27.359375" y="58.5" width="251.28125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:httpRoute" label="Next route (mcp-handler)app/api/mcp/(transport)/route.ts" mermaidId="httpRoute" mermaidShape="rectangle">
          <mxCell parent="c:sgHttp" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="107" width="301.3125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:authMod" label="authForMcp / authForLocallib/mcp/auth.ts" mermaidId="authMod" mermaidShape="rectangle">
          <mxCell parent="c:sgHttp" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="576.3125" y="52.5" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:rlMod" label="rate limiter 60/min + 10k/daylib/mcp/ratelimit.ts" mermaidId="rlMod" mermaidShape="rectangle">
          <mxCell parent="c:sgHttp" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="1132.3125" y="96.5" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:mcpSrv" label="createMcpServer + registerToolslib/mcp/server.ts" mermaidId="mcpSrv" mermaidShape="rectangle">
          <mxCell parent="c:sgCore" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="86" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:ctxMod" label="McpContext providerslib/mcp/context.ts" mermaidId="ctxMod" mermaidShape="rectangle">
          <mxCell parent="c:sgCore" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="1127.875" y="35" width="224.25" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:fmtMod" label="serializeNote + formattinglib/mcp/format.ts" mermaidId="fmtMod" mermaidShape="rectangle">
          <mxCell parent="c:sgCore" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="1113.96875" y="161" width="252.0625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tRead" label="read.tslist_artifacts, read_artifact, list_versions" mermaidId="tRead" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="911" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tWrite" label="write.tscreate / edit / rename / delete_artifact" mermaidId="tWrite" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="185" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tAppend" label="append.tsappend_to_artifact" mermaidId="tAppend" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="55.085938" y="335" width="195.828125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tSearch" label="search.tssearch (fts / semantic / hybrid)" mermaidId="tSearch" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="35" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tDiff" label="diff.tsget_diff, restore_version" mermaidId="tDiff" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="35.257813" y="611" width="235.484375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tCdt" label="comment.ts / daily.ts / template.tsadd_comment, daily_note, apply_template" mermaidId="tCdt" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="737" width="256" height="124" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:tMem" label="memory.tsmemory_search, memory_get" mermaidId="tMem" mermaidShape="rectangle">
          <mxCell parent="c:sgTools" vertex="1" style="fillColor=#dcfce7 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#22c55e !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="461" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:patLib" label="PAT primitiveslib/auth/pat.ts" mermaidId="patLib" mermaidShape="rectangle">
          <mxCell parent="c:sgCred" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="1178.882813" y="229" width="162.859375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:patActs" label="PAT Server Actionsapp/_actions/pats.ts" mermaidId="patActs" mermaidShape="rectangle">
          <mxCell parent="c:sgCred" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="599.945313" y="47" width="208.734375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:patUi2" label="Developers page + dialogscomponents/pat/*" mermaidId="patUi2" mermaidShape="rectangle">
          <mxCell parent="c:sgCred" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="47.65625" y="35" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:pairLib" label="Pairing tokenslib/pair/extension.ts" mermaidId="pairLib" mermaidShape="rectangle">
          <mxCell parent="c:sgCred" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="601.9375" y="197" width="204.75" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:pairUi" label="/pair page + /api/paircomponents/pair-approval.tsx" mermaidId="pairUi" mermaidShape="rectangle">
          <mxCell parent="c:sgCred" vertex="1" style="fillColor=#f3e8ff !important;fontColor=#333333;html=1;rounded=0;strokeColor=#a855f7 !important;whiteSpace=wrap;">
            <mxGeometry x="47.65625" y="185" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:setupDlg" label="Setup dialog + palette entrycomponents/setup/*" mermaidId="setupDlg" mermaidShape="rectangle">
          <mxCell parent="c:sgSetup" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="35" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:setupAct" label="setupExternalToolsActionapp/_actions/setup.ts" mermaidId="setupAct" mermaidShape="rectangle">
          <mxCell parent="c:sgSetup" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="331" y="47" width="248.84375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:setupWr" label="5 config writerslib/setup/*" mermaidId="setupWr" mermaidShape="rectangle">
          <mxCell parent="c:sgSetup" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="629.84375" y="47" width="174.3125" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:agentsLib" label="AGENTS.md library (UNWIRED)lib/agents-md/*" mermaidId="agentsLib" mermaidShape="rectangle">
          <mxCell parent="c:sgSetup" vertex="1" style="fillColor=#fee2e2 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#ef4444 !important;whiteSpace=wrap;">
            <mxGeometry x="3790.15625" y="35" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:oclawLib" label="OpenClaw compatlib/openclaw/format.ts + scaffold.ts" mermaidId="oclawLib" mermaidShape="rectangle">
          <mxCell parent="c:sgSetup" vertex="1" style="fillColor=#ffedd5 !important;fontColor=#333333;html=1;rounded=0;strokeColor=#f97316 !important;whiteSpace=wrap;">
            <mxGeometry x="4321.15625" y="35" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:storageAd2" label="StorageAdapter (C1)LocalAdapter / SupabaseAdapter" mermaidId="storageAd2" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="3637.3125" y="86" width="256" height="100" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:hybridMod" label="hybridSearch (C3)lib/search/hybrid.ts" mermaidId="hybridMod" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="3333.09375" y="98" width="202.4375" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:patsTable" label="personal_access_tokens (C7)" mermaidId="patsTable" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="2219.3125" y="35" width="256" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:cfgJson" label="~/.eli/config.jsonpairings list (hashed)" mermaidId="cfgJson" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="2240.234375" y="161" width="214.15625" height="76" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:agentCfgs" label="Agent config files~/.claude, ~/.cursor, ~/.codex,~/.gemini, ~/.openclaw" mermaidId="agentCfgs" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="25" y="74" width="256" height="124" as="geometry"/>
          </mxCell>
        </object>
        <object id="n:clipRoute" label="/api/clip (C8)" mermaidId="clipRoute" mermaidShape="rectangle">
          <mxCell parent="c:sgNeighbors" vertex="1" style="fillColor=#dbeafe !important;fontColor=#333333;html=1;rounded=0;strokeColor=#3b82f6 !important;whiteSpace=wrap;">
            <mxGeometry x="1185.335938" y="110" width="154.640625" height="52" as="geometry"/>
          </mxCell>
        </object>
        <object id="e:L_agentCfgs_agent_0" label="tells agents how to spawn eli" mermaidId="L_agentCfgs_agent_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:agentCfgs" target="n:agent" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1303.84375" y="144" as="sourcePoint"/>
              <mxPoint x="1701.16657" y="1441.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1428.84375" y="144"/>
                <mxPoint x="1553.84375" y="144"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_agent_binShim_0" label="stdin/stdout JSON-RPC" mermaidId="L_agent_binShim_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:agent" target="n:binShim" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1834.84375" y="1518.689542" as="sourcePoint"/>
              <mxPoint x="2198.882813" y="2041.151663" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1859.84375" y="1524"/>
                <mxPoint x="1984.84375" y="2030"/>
                <mxPoint x="2109.84375" y="2030"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_agent_httpRoute_0" label="HTTP / SSE + Bearer" mermaidId="L_agent_httpRoute_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:agent" target="n:httpRoute" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1834.84375" y="1450.088235" as="sourcePoint"/>
              <mxPoint x="2134.84375" y="1442" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1859.84375" y="1442"/>
                <mxPoint x="1984.84375" y="1442"/>
                <mxPoint x="2109.84375" y="1442"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_esb_binShim_0" label="pnpm build:mcp / prepack" mermaidId="L_esb_binShim_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:esb" target="n:binShim" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1832.484375" y="2074" as="sourcePoint"/>
              <mxPoint x="2198.882813" y="2062.848337" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1859.84375" y="2074"/>
                <mxPoint x="1984.84375" y="2074"/>
                <mxPoint x="2109.84375" y="2074"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_binShim_stdioSrv_0" label="" mermaidId="L_binShim_stdioSrv_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:binShim" target="n:stdioSrv" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2372.117188" y="2052" as="sourcePoint"/>
              <mxPoint x="2727.679688" y="2052" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="2052"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_stdioSrv_mcpSrv_0" label="staticContext, agentName pinned" mermaidId="L_stdioSrv_mcpSrv_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:stdioSrv" target="n:mcpSrv" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2900.632813" y="2052" as="sourcePoint"/>
              <mxPoint x="3242.15625" y="2052" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="2052"/>
                <mxPoint x="3092.15625" y="2052"/>
                <mxPoint x="3217.15625" y="2052"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_httpRoute_authMod_0" label="mode-conditional withMcpAuth" mermaidId="L_httpRoute_authMod_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:httpRoute" target="n:authMod" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2436.15625" y="1418.772191" as="sourcePoint"/>
              <mxPoint x="2686.15625" y="1399.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="1399.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_authMod_rlMod_0" label="after successful auth" mermaidId="L_authMod_rlMod_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:authMod" target="n:rlMod" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2942.15625" y="1436.310458" as="sourcePoint"/>
              <mxPoint x="3242.15625" y="1443.5" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="1443.5"/>
                <mxPoint x="3092.15625" y="1443.5"/>
                <mxPoint x="3217.15625" y="1443.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_authMod_patsTable_0" label="service-role prefix lookup" mermaidId="L_authMod_patsTable_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:authMod" target="n:patsTable" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2942.15625" y="1362.689542" as="sourcePoint"/>
              <mxPoint x="3365.594461" y="119" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="1355.5"/>
                <mxPoint x="3092.15625" y="1355.5"/>
                <mxPoint x="3217.15625" y="1355.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_authMod_patLib_0" label="parseBearer / verifyHash" mermaidId="L_authMod_patLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:authMod" target="n:patLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2942.15625" y="1399.5" as="sourcePoint"/>
              <mxPoint x="3363.172466" y="605" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="1399.5"/>
                <mxPoint x="3092.15625" y="1399.5"/>
                <mxPoint x="3217.15625" y="1399.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_httpRoute_mcpSrv_0" label="" mermaidId="L_httpRoute_mcpSrv_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:httpRoute" target="n:mcpSrv" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2422.427288" y="1480" as="sourcePoint"/>
              <mxPoint x="3355.816981" y="2002" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="1518.5"/>
                <mxPoint x="2814.15625" y="1518.5"/>
                <mxPoint x="2967.15625" y="1518.5"/>
                <mxPoint x="3092.15625" y="1518.5"/>
                <mxPoint x="3217.15625" y="1518.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_ctxMod_storageAd2_0" label="" mermaidId="L_ctxMod_storageAd2_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:ctxMod" target="n:storageAd2" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="4569.28125" y="1989" as="sourcePoint"/>
              <mxPoint x="4660.15625" y="144" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="4610.15625" y="1989"/>
                <mxPoint x="4635.15625" y="144"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_tSearch_hybridMod_0" label="kind semantic / hybrid" mermaidId="L_tSearch_hybridMod_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:tSearch" target="n:hybridMod" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="4054.15625" y="935" as="sourcePoint"/>
              <mxPoint x="4355.9375" y="144" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="4079.15625" y="935"/>
                <mxPoint x="4204.15625" y="144"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_tMem_oclawLib_0" label="pathInScope helpers" mermaidId="L_tMem_oclawLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:tMem" target="n:oclawLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="4054.15625" y="1361" as="sourcePoint"/>
              <mxPoint x="4329.15625" y="745" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="4079.15625" y="1361"/>
                <mxPoint x="4204.15625" y="745"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_patUi2_patActs_0" label="" mermaidId="L_patUi2_patActs_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:patUi2" target="n:patActs" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2413.5" y="385" as="sourcePoint"/>
              <mxPoint x="2709.789063" y="385" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="385"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_patActs_patsTable_0" label="RLS insert / update" mermaidId="L_patActs_patsTable_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:patActs" target="n:patsTable" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2918.523438" y="385" as="sourcePoint"/>
              <mxPoint x="3351.03125" y="119" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="385"/>
                <mxPoint x="3092.15625" y="385"/>
                <mxPoint x="3217.15625" y="385"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_patActs_patLib_0" label="" mermaidId="L_patActs_patLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:patActs" target="n:patLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2846.101305" y="423" as="sourcePoint"/>
              <mxPoint x="3288.726563" y="567" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="567"/>
                <mxPoint x="3092.15625" y="567"/>
                <mxPoint x="3217.15625" y="567"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_webext_pairUi_0" label="" mermaidId="L_webext_pairUi_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:webext" target="n:pairUi" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1805.386123" y="1391.5" as="sourcePoint"/>
              <mxPoint x="2157.5" y="535" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1859.84375" y="1412.5"/>
                <mxPoint x="1984.84375" y="535"/>
                <mxPoint x="2109.84375" y="535"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_pairUi_pairLib_0" label="" mermaidId="L_pairUi_pairLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:pairUi" target="n:pairLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2413.5" y="535" as="sourcePoint"/>
              <mxPoint x="2711.78125" y="535" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="535"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_pairLib_cfgJson_0" label="sha256 hash persisted" mermaidId="L_pairLib_cfgJson_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:pairLib" target="n:cfgJson" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2916.53125" y="535" as="sourcePoint"/>
              <mxPoint x="3352.43064" y="245" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2967.15625" y="535"/>
                <mxPoint x="3092.15625" y="535"/>
                <mxPoint x="3217.15625" y="535"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_webext_clipRoute_0" label="Bearer eli_pair_* or eli_pat_*" mermaidId="L_webext_clipRoute_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:webext" target="n:clipRoute" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="1834.84375" y="1339.696078" as="sourcePoint"/>
              <mxPoint x="2208.179688" y="144" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="1859.84375" y="1337"/>
                <mxPoint x="1984.84375" y="144"/>
                <mxPoint x="2109.84375" y="144"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_clipRoute_pairLib_0" label="verifyPairingToken" mermaidId="L_clipRoute_pairLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:clipRoute" target="n:pairLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="2362.820313" y="144" as="sourcePoint"/>
              <mxPoint x="2789.568015" y="497" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="2561.15625" y="144"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_setupDlg_setupAct_0" label="" mermaidId="L_setupDlg_setupAct_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:setupDlg" target="n:setupAct" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="289" y="745" as="sourcePoint"/>
              <mxPoint x="339" y="745" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="314" y="745"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_setupAct_setupWr_0" label="" mermaidId="L_setupAct_setupWr_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:setupAct" target="n:setupWr" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="587.84375" y="745" as="sourcePoint"/>
              <mxPoint x="637.84375" y="745" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="612.84375" y="745"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_setupWr_agentCfgs_0" label="atomic tmp + rename" mermaidId="L_setupWr_agentCfgs_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:setupWr" target="n:agentCfgs" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="812.15625" y="745" as="sourcePoint"/>
              <mxPoint x="1160.060056" y="206" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="917.5" y="745"/>
                <mxPoint x="1022.84375" y="745"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_mcpSrv_agentsLib_0" label="handshake instructions mention AGENTS.md" mermaidId="L_mcpSrv_agentsLib_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:mcpSrv" target="n:agentsLib" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="3477.149257" y="2002" as="sourcePoint"/>
              <mxPoint x="3919.964425" y="795" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="3523.15625" y="1980.5"/>
                <mxPoint x="3648.15625" y="1980.5"/>
                <mxPoint x="3773.15625" y="1980.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_mcpSrv_sgTools_0" label="registers 16 tools" mermaidId="L_mcpSrv_sgTools_0" mermaidKind="relationship">
          <mxCell parent="1" source="n:mcpSrv" target="c:sgTools" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="3468.865927" y="2102" as="sourcePoint"/>
              <mxPoint x="3902.137412" y="1861" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="3523.15625" y="2129.5"/>
                <mxPoint x="3648.15625" y="2129.5"/>
                <mxPoint x="3773.15625" y="2129.5"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_sgTools_ctxMod_0" label="getContext per call" mermaidId="L_sgTools_ctxMod_0" mermaidKind="relationship">
          <mxCell parent="1" source="c:sgTools" target="n:ctxMod" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="3961.737645" y="1761" as="sourcePoint"/>
              <mxPoint x="4345.03125" y="1989" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="4079.15625" y="1596"/>
                <mxPoint x="4204.15625" y="1989"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
        <object id="e:L_sgTools_fmtMod_0" label="dual text + structured output" mermaidId="L_sgTools_fmtMod_0" mermaidKind="relationship">
          <mxCell parent="1" source="c:sgTools" target="n:fmtMod" edge="1" style="edgeStyle=orthogonalEdgeStyle;endArrow=block;endFill=1;html=1;jettySize=auto;orthogonalLoop=1;rounded=0;strokeColor=#333333;">
            <mxGeometry relative="1" as="geometry">
              <mxPoint x="4054.15625" y="1838.189542" as="sourcePoint"/>
              <mxPoint x="4331.125" y="2115" as="targetPoint"/>
              <Array as="points">
                <mxPoint x="4079.15625" y="1843.5"/>
                <mxPoint x="4204.15625" y="2115"/>
              </Array>
            </mxGeometry>
          </mxCell>
        </object>
      </root>
    </mxGraphModel>
  </diagram>
</mxfile>
