From 9cd7ac1811793bcac46fba9d24d2ef02a135e67c Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 6 Aug 2026 11:45:10 +0000 Subject: [PATCH] feat: show real agent docs in connection detail panel Load description, input, output, and usage from docs/agents.md and stage-*.md (JSDoc fallback for 20.8/20.9). Hide empty workflow and dependency sections instead of placeholder copy. Co-authored-by: telivity-otaip --- docs/agent-map.html | 107 +++++++++++-- scripts/agent-docs.ts | 231 +++++++++++++++++++++++++++++ scripts/generate-agent-map-html.ts | 112 ++++++++++++-- 3 files changed, 418 insertions(+), 32 deletions(-) create mode 100644 scripts/agent-docs.ts diff --git a/docs/agent-map.html b/docs/agent-map.html index 1fbc9b1..54cf973 100644 --- a/docs/agent-map.html +++ b/docs/agent-map.html @@ -807,6 +807,60 @@ } .mini-pill:hover { background: rgba(6, 189, 180, 0.14); border-color: var(--teal); } .p-dim { margin: 0; font-size: 0.8rem; font-weight: 300; color: var(--ink-4); } + .p-summary { + margin: 0.35rem 0 0; + font-size: 0.92rem; + font-weight: 400; + line-height: 1.45; + color: var(--ink-2); + letter-spacing: -0.01em; + } + .p-purpose { + margin: 0.55rem 0 0; + font-size: 0.84rem; + font-weight: 300; + line-height: 1.5; + color: var(--ink-3); + } + .p-io { + margin: 0; + padding: 0; + list-style: none; + display: flex; + flex-direction: column; + gap: 0.35rem; + font-size: 0.78rem; + line-height: 1.4; + color: var(--ink-2); + } + .p-io li { + padding-left: 0.85rem; + position: relative; + } + .p-io li::before { + content: ""; + position: absolute; + left: 0; + top: 0.55em; + width: 5px; + height: 5px; + border-radius: 50%; + background: var(--teal); + opacity: 0.7; + } + .p-usage { + margin: 0; + padding: 0.75rem 0.85rem; + border-radius: 12px; + background: rgba(35, 39, 61, 0.04); + border: 1px solid var(--hairline); + font-family: var(--mono); + font-size: 0.68rem; + line-height: 1.45; + color: var(--navy); + white-space: pre-wrap; + overflow-x: auto; + } .conn-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.4rem; } .conn-list li { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); } .conn-list .dir { color: var(--teal); } @@ -1843,9 +1897,11 @@

Every agent, by stage.

- +