@jayyuen66/dsh-dir-prep-organize 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/DETAIL.md CHANGED
@@ -1,32 +1,11 @@
1
1
  # Draft polish and templates
2
2
 
3
- Polishes the draft sitting in the input box before you send it, and inserts curated templates at the cursor.
3
+ ![Composer workbench: split polish button, caret-safe insertion, template library, import, allowed roots, model and write-back protection.](images/capability-map.svg)
4
4
 
5
- ## What the card changes
5
+ ![Two lanes: polish calls the model in five guarded steps; templates insert in four steps with zero model calls.](images/organize-flow.svg)
6
6
 
7
- This card has two list editors rather than a grid of knobs.
7
+ ![Role library card: template row anatomy, import roles, import allowed directories, restore defaults, and the local draft that is written only on Save.](images/templates-card.svg)
8
8
 
9
- - **Role library** — rows of name, emoji, group, description and body, which the input-box Template picker reads. Leaving the table empty is not a disabled state: the plugin then serves its built-in curated set, fetched on demand rather than shipped inside the form description.
10
- - **Import-allowed roots** — additional absolute directories whose role files may be imported. An empty list adds nothing: this card has no session context, so only the bundled `agents/` role library stays importable; the endpoint called with a session also accepts paths inside that session's cwd. Absolute paths outside those zones stay refused. It is not a placeholder waiting to be filled.
9
+ ![Import boundary: the three allowed zones — session cwd, bundled agents and registered roots — plus refusals and three off-card deployment values.](images/import-boundary.svg)
11
10
 
12
- Both are read per request, so a change applies on the next action without restarting the host.
13
-
14
- ## Values that are not on the card
15
-
16
- `organizeTimeoutMs` is marked as a live value but has no knob here: the client reads it only to size its own fetch timeout, and the host times out first.
17
-
18
- `maxSnippetBytes` and `readConcurrency` are deployment assumptions kept off the card deliberately. Set them in the `config:` block of this plugin's row in `cordis.patch.yml`; they take effect on restart.
19
-
20
- ## What it needs from outside
21
-
22
- No external CLI, interpreter or credential of its own. It uses the host's model runtime and model selection (the live agent's current choice, falling back to the default selection), the session store and the filesystem service; polish follows the model selected for that conversation, so switching the model in the input area changes what the next polish call uses.
23
-
24
- ## Further detail
25
-
26
- The vendored role library, the generated default-template table and the import-scan depth rules are developer-facing and live in the package README (`README.md` / `README.zh-CN.md`).
27
-
28
- ## Feedback
29
-
30
- Issues and pull requests are welcome: [https://github.com/JayYuen666/dsh-dir-prep-organize/issues](https://github.com/JayYuen666/dsh-dir-prep-organize/issues).
31
-
32
- If a plugin fails to boot, include the dsh host version, the profile install shape, and the browser console line. The `missed the module table` line is especially useful: it tells us whether the shared client row was materialized.
11
+ Issues and PRs: https://github.com/JayYuen666/dsh-dir-prep-organize/issues
package/docs/DETAIL.zh.md CHANGED
@@ -1,32 +1,11 @@
1
1
  # 输入框润色与模板
2
2
 
3
- 在发送之前把输入框里的草稿润色一遍,并把精选模板插到光标处。
3
+ ![输入框工作台:拆分式润色、光标安全插入、模板库、导入、允许目录、模型与写回保护。](images/capability-map.zh.svg)
4
4
 
5
- ## 设置卡上改的是什么
5
+ ![双泳道:润色五步调模型并受保护写回;模板四步零模型调用。](images/organize-flow.zh.svg)
6
6
 
7
- 这张卡是两个列表编辑器,不是一堆开关。
7
+ ![角色库设置卡:模板行结构、导入角色、导入允许目录、恢复默认,以及只在保存时才写入的本地草稿。](images/templates-card.zh.svg)
8
8
 
9
- - **角色库** — 每行是名称、表情、分组、说明与正文,输入框的「模板」选择器读的就是这张表。把表清空不是关掉功能:插件会改用随包内置的精选集合,需要时由宿主现取,而不是把整份塞进表单描述里。
10
- - **允许导入的目录** — 额外允许导入角色文件的绝对目录。留空不额外放行:这张卡没有会话上下文,因此只剩随包内置的 `agents/` 角色库可导入;带会话调用的端点还接受该会话 cwd 之内的路径。这些区域之外的绝对路径仍被拒绝,而不是等着填的占位。
9
+ ![导入边界:会话 cwd、内置 agents 与登记目录三块允许区,越界拒绝,以及三个卡外部署值。](images/import-boundary.zh.svg)
11
10
 
12
- 两者都是每次请求现读,改完下一次动作就生效,不需要重启宿主。
13
-
14
- ## 卡上没有的值
15
-
16
- `organizeTimeoutMs` 虽标为即时生效,但卡上没有它的旋钮:客户端只读它来对齐自己的 fetch 超时,真正先超时的是宿主那侧。
17
-
18
- `maxSnippetBytes` 与 `readConcurrency` 是刻意留在卡外的部署假定值。写在本插件注册行的 `config:` 块,改值随重启生效。
19
-
20
- ## 需要外部提供什么
21
-
22
- 不需要外部 CLI、解释器或自有凭据。它用宿主的模型运行时与模型选择(会话活 Agent 的当前选择,取不到时回落默认选择)、会话存储与文件系统服务;润色跟随当前会话选定的模型,所以在输入区换模型会改变下一次润色用的是哪个。
23
-
24
- ## 更完整的说明
25
-
26
- vendored 角色库、生成的默认模板表、导入扫描的层数规则都属于开发内容,写在随包 README(`README.md` / `README.zh-CN.md`)。
27
-
28
- ## 反馈
29
-
30
- 欢迎提 issue 和 PR:[https://github.com/JayYuen666/dsh-dir-prep-organize/issues](https://github.com/JayYuen666/dsh-dir-prep-organize/issues)。
31
-
32
- 插件启动失败时,请附上 dsh 宿主版本、profile 安装形态和浏览器控制台原文。`missed the module table` 这一行尤其有用:它能直接说明 shared 客户端供应行有没有被物化。
11
+ 问题与 PR:https://github.com/JayYuen666/dsh-dir-prep-organize/issues
@@ -0,0 +1,66 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1180" height="720" viewBox="0 0 1180 720" role="img" aria-labelledby="title desc" aria-describedby="desc" font-family="Inter, system-ui, -apple-system, 'Segoe UI', sans-serif">
2
+ <title id="title">DSH PLUGIN &#183; INPUT DOCK &#8212; Polish and templates beside the composer</title>
3
+ <desc id="desc">A split polish button and a template dropdown live right next to the input box.</desc>
4
+ <defs>
5
+ <linearGradient id="dsh-bg" x2="100%" y2="100%"><stop stop-color="#0b1218"/><stop offset="1" stop-color="#080d12"/></linearGradient>
6
+ <linearGradient id="dsh-accent"><stop stop-color="#56c2f0"/><stop offset="1" stop-color="#8a91ff"/></linearGradient>
7
+ <linearGradient id="dsh-edge"><stop stop-color="#56c2f0"/><stop offset=".5" stop-color="#8a91ff"/><stop offset="1" stop-color="#56c2f0"/></linearGradient>
8
+ <linearGradient id="dsh-wash"><stop stop-color="#56c2f0" stop-opacity=".16"/><stop offset="1" stop-color="#8a91ff" stop-opacity=".10"/></linearGradient>
9
+ <linearGradient id="dsh-icon-bg" x2="100%" y2="100%"><stop stop-color="#56c2f0" stop-opacity=".20"/><stop offset="1" stop-color="#2a7fc0" stop-opacity=".24"/></linearGradient>
10
+ <linearGradient id="dsh-polish" x2="0%" y2="100%"><stop stop-color="#56c2f0"/><stop offset="1" stop-color="#2a7fc0"/></linearGradient>
11
+ <radialGradient id="dsh-glow-top" gradientUnits="userSpaceOnUse" cx="1014.8" cy="0" r="330"><stop stop-color="#56c2f0" stop-opacity=".22"/><stop offset="1" stop-color="#56c2f0" stop-opacity="0"/></radialGradient>
12
+ <radialGradient id="dsh-glow-bottom" gradientUnits="userSpaceOnUse" cx="0" cy="720" r="300"><stop stop-color="#8a91ff" stop-opacity=".14"/><stop offset="1" stop-color="#8a91ff" stop-opacity="0"/></radialGradient>
13
+ <pattern id="dsh-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M.5 34V.5H34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
14
+ <circle id="dsh-dot" r="2.2" fill="#56c2f0" fill-opacity=".8"/>
15
+ <symbol id="dsh-tree" viewBox="0 0 24 24"><rect x="2.5" y="10" width="7" height="4" rx="1"/><rect x="15" y="4" width="7" height="4" rx="1"/><rect x="15" y="16" width="7" height="4" rx="1"/><path d="M9.5 12H12M15 6h-2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h2"/></symbol>
16
+ <symbol id="dsh-wand" viewBox="0 0 24 24"><path d="m15 4 5 5L7 22l-5-5zM14 7l3 3M9 2h2M19 12h2M2 9h2"/></symbol>
17
+ <symbol id="dsh-download" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4m4-5 5 5 5-5m-5 5V3"/></symbol>
18
+ <symbol id="dsh-caret-icon" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M22 12h-4M6 12H2M12 6V2M12 22v-4"/></symbol>
19
+ <symbol id="dsh-pen" viewBox="0 0 24 24"><path d="M21.17 6.81a1 1 0 0 0-3.09-3.09L3 18.75V21h3.25Z"/></symbol>
20
+ <symbol id="dsh-shield" viewBox="0 0 24 24"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1zM9 12l2 2 4-4"/></symbol>
21
+ <symbol id="dsh-chevron" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></symbol>
22
+ <g id="dsh-card-base">
23
+ <rect width="258" height="150" rx="18" fill="#fff" fill-opacity=".045" stroke="#fff" stroke-opacity=".10"/>
24
+ <rect x="16" y="16" width="36" height="36" rx="11" fill="url(#dsh-icon-bg)" stroke="#56c2f0" stroke-opacity=".28"/>
25
+ <use href="#dsh-dot" x="18" y="62"/><use href="#dsh-dot" x="18" y="82"/><use href="#dsh-dot" x="18" y="102"/>
26
+ <rect x="16" y="116" width="226" height="22" rx="11" fill="url(#dsh-wash)" stroke="currentColor" stroke-opacity=".35"/>
27
+ </g>
28
+ </defs>
29
+ <style>
30
+ .dsh-strong{fill:#f2f5fb;font-weight:700} .dsh-copy{fill:#d6deec;fill-opacity:.82} .dsh-muted{fill:#94a0b6;fill-opacity:.9}
31
+ .dsh-icon{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round} .dsh-status{fill:currentColor;font-size:11.5px;font-weight:600;text-anchor:middle}
32
+ .dsh-outline{fill:#fff;fill-opacity:.03;stroke:#56c2f0;stroke-opacity:.45;stroke-width:1.1} .dsh-soft{fill:#fff;fill-opacity:.03;stroke:#fff;stroke-opacity:.07}
33
+ </style>
34
+ <g aria-hidden="true"><rect width="1180" height="720" fill="url(#dsh-bg)"/><rect width="1180" height="720" fill="url(#dsh-glow-top)"/><rect width="1180" height="720" fill="url(#dsh-glow-bottom)"/><rect width="1180" height="720" fill="url(#dsh-grid)"/><rect width="1180" height="3" fill="url(#dsh-edge)" opacity=".495"/></g>
35
+ <text x="56" y="48" font-size="12.5" font-weight="700" fill="url(#dsh-accent)">DSH PLUGIN &#183; INPUT DOCK</text>
36
+ <text x="56" y="86" font-size="31" class="dsh-strong">Polish and templates beside the composer</text>
37
+ <text x="56" y="120" font-size="15" class="dsh-muted">A split polish button and a template dropdown live right next to the input box.</text>
38
+ <rect x="870" y="45" width="186" height="30" rx="15" fill="url(#dsh-wash)" stroke="#56c2f0" stroke-opacity=".4"/><circle cx="886" cy="60" r="3.5" fill="#56c2f0"/><text x="898" y="64.5" font-size="12.5" font-weight="600" fill="#56c2f0">6 capability surfaces</text>
39
+ <rect x="1072" y="34" width="52" height="52" rx="16" fill="url(#dsh-icon-bg)" stroke="#56c2f0" stroke-opacity=".28"/><use href="#dsh-tree" x="1086" y="48" width="24" height="24" class="dsh-icon" color="#56c2f0" aria-hidden="true"/>
40
+ <g aria-hidden="true"><path d="M314 235H326V559H314M314 397H326M326 337H338M866 235H854V559H866M866 397H854M854 337H842" fill="none" stroke="#94a0b6" stroke-opacity=".42" stroke-width="1.2" stroke-dasharray="4 4"/><use href="#dsh-dot" x="326" y="337"/><use href="#dsh-dot" x="854" y="337"/></g>
41
+ <g font-size="12.2" color="#56c2f0">
42
+ <g transform="translate(56 160)"><use href="#dsh-card-base"/><use href="#dsh-wand" x="24.5" y="24.5" width="19" height="19" class="dsh-icon"/><text x="64" y="39" class="dsh-strong" font-size="15">Split polish button</text>
43
+ <text x="32" y="66" class="dsh-copy">main key: direct polish<tspan x="32" dy="20">&#9662; menu: role-styled rewrite</tspan><tspan x="32" dy="20">role text only in &lt;data&gt; fence</tspan></text><text x="129" y="131" class="dsh-status">error flashes 4s &#183; draft intact</text></g>
44
+ <g transform="translate(56 322)"><use href="#dsh-card-base"/><use href="#dsh-tree" x="24.5" y="24.5" width="19" height="19" class="dsh-icon"/><text x="64" y="39" class="dsh-strong" font-size="15">Allowed roots</text>
45
+ <text x="32" y="66" class="dsh-copy">absolute dirs only; ~ dropped<tspan x="32" dy="20">cwd &#183; built-ins &#183; roots</tspan><tspan x="32" dy="20">. / .. / hidden segments denied</tspan></text><text x="129" y="131" class="dsh-status">out-of-root &#8594; 403 + roots listed</text></g>
46
+ <g transform="translate(56 484)"><use href="#dsh-card-base"/><use href="#dsh-download" x="24.5" y="24.5" width="19" height="19" class="dsh-icon"/><text x="64" y="39" class="dsh-strong" font-size="15">Import</text>
47
+ <text x="32" y="66" class="dsh-copy">empty path: built-in agents/<tspan x="32" dy="20">explicit paths pass roots first</tspan><tspan x="32" dy="20">skip counts reported as-is</tspan></text><text x="129" y="131" class="dsh-status">read-only &#183; zero model calls</text></g>
48
+ <g transform="translate(866 160)" color="#8a91ff"><use href="#dsh-card-base"/><use href="#dsh-caret-icon" x="24.5" y="24.5" width="19" height="19" class="dsh-icon" color="#56c2f0"/><text x="64" y="39" class="dsh-strong" font-size="15">Caret-safe insertion</text>
49
+ <text x="32" y="66" class="dsh-copy">captureInsertion() takes caret<tspan x="32" dy="20">insertText validates the span</tspan><tspan x="32" dy="20">stale or submitting &#8594; refused</tspan></text><text x="129" y="131" class="dsh-status">no whole-draft fallback</text></g>
50
+ <g transform="translate(866 322)" color="#8a91ff"><use href="#dsh-card-base"/><use href="#dsh-pen" x="24.5" y="24.5" width="19" height="19" class="dsh-icon" color="#56c2f0"/><text x="64" y="39" class="dsh-strong" font-size="15">Template library</text>
51
+ <text x="32" y="66" class="dsh-copy">row-level CRUD per template<tspan x="32" dy="20">groups; emoji &#8804; 12 code points</tspan><tspan x="32" dy="20">save once from a local draft</tspan></text><text x="129" y="131" class="dsh-status">reset = unset(templates)</text></g>
52
+ <g transform="translate(866 484)" color="#8a91ff"><use href="#dsh-card-base"/><use href="#dsh-shield" x="24.5" y="24.5" width="19" height="19" class="dsh-icon" color="#56c2f0"/><text x="64" y="39" class="dsh-strong" font-size="15">Model &amp; write-back</text>
53
+ <text x="32" y="66" class="dsh-copy">live agent model first<tspan x="32" dy="20">finish.kind === stop only</tspan><tspan x="32" dy="20">rechecks session/rev/phase</tspan></text><text x="129" y="131" class="dsh-status">stale results never written</text></g>
54
+ </g>
55
+ <rect x="338" y="160" width="504" height="222" rx="16" class="dsh-outline"/>
56
+ <text x="362" y="210" font-size="15.5" class="dsh-muted">Draft a refactor plan for the auth module&#8230;<tspan dx="2" fill="#56c2f0" fill-opacity="1" font-size="18" aria-hidden="true">|</tspan></text>
57
+ <text x="362" y="248" font-size="12.2" class="dsh-muted">cursor at | &#8212; templates insert right here,<tspan x="362" dy="19">quotes and attachments untouched</tspan></text>
58
+ <path d="M362 294H818" stroke="#94a0b6" stroke-opacity=".22"/>
59
+ <rect x="496" y="316" width="158" height="42" rx="21" fill="url(#dsh-polish)"/><path d="M612 316h21a21 21 0 0 1 0 42h-21Z" fill="#0a0f16" fill-opacity=".08"/><path d="M612 316v42" stroke="#0a0f16" stroke-opacity=".32"/>
60
+ <text x="554" y="342" text-anchor="middle" font-size="13.5" font-weight="700" fill="#0a0f16">Polish</text><use href="#dsh-chevron" x="624" y="328" width="18" height="18" class="dsh-icon" color="#0a0f16"/>
61
+ <rect x="666" y="316" width="152" height="42" rx="21" class="dsh-outline"/><text x="686" y="342" font-size="13.5" font-weight="700" fill="#56c2f0">Templates</text><use href="#dsh-chevron" x="781" y="328" width="18" height="18" class="dsh-icon" color="#56c2f0"/>
62
+ <rect x="338" y="414" width="504" height="174" rx="18" class="dsh-soft"/><text x="362" y="448" font-size="12" font-weight="700" fill="#56c2f0">WHERE IT MOUNTS</text>
63
+ <use href="#dsh-dot" x="364" y="473"/><use href="#dsh-dot" x="364" y="499"/><use href="#dsh-dot" x="364" y="525"/>
64
+ <text x="378" y="477" font-size="12.2" class="dsh-copy">dock slot conversation.input.right &#183; order 99 / 100<tspan x="378" dy="26">placeholder chain slot conversation.input.placeholder</tspan><tspan x="378" dy="26">card data plane: dirPrepOrganize remote</tspan><tspan x="378" dy="20">over the host /api gateway</tspan></text>
65
+ <rect x="56" y="650" width="1068" height="46" rx="14" class="dsh-soft"/><rect x="72" y="662" width="3" height="22" rx="1.5" fill="url(#dsh-accent)"/><text x="88" y="678" font-size="13.5" class="dsh-copy">No model tools, no plugin HTTP routes; the role library is vendored upstream MIT data, never hand-edited.</text>
66
+ </svg>
@@ -0,0 +1,74 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1180" height="720" viewBox="0 0 1180 720" overflow="hidden" xml:lang="zh-CN" role="img" aria-labelledby="title desc" aria-describedby="desc" font-family="Inter, system-ui, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', sans-serif">
2
+ <title id="title">DSH 插件 · 输入框组件 — 输入框旁的润色与模板</title>
3
+ <desc id="desc">一个拆分式润色按钮和一个模板下拉,就长在输入框旁边。</desc>
4
+ <style>
5
+ .dsh-heading { fill:#f2f5fb; font-weight:700 } .dsh-copy { fill:#d6deec; fill-opacity:.82 } .dsh-muted { fill:#94a0b6; fill-opacity:.9 }
6
+ .dsh-panel { fill:#fff; fill-opacity:.045; stroke:#fff; stroke-opacity:.10 } .dsh-soft { fill:#fff; fill-opacity:.03; stroke:#fff; stroke-opacity:.07 }
7
+ .dsh-focus { fill:#fff; fill-opacity:.03; stroke:#56c2f0; stroke-opacity:.45; stroke-width:1.1 } .dsh-tile { fill:url(#dsh-tile-ink); stroke:#56c2f0; stroke-opacity:.28 }
8
+ .dsh-icon { fill:none; stroke:#56c2f0; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round } .dsh-dot { fill:#56c2f0; fill-opacity:.8 }
9
+ .dsh-chip { fill:url(#dsh-chip-ink); stroke:#56c2f0; stroke-opacity:.35 } .dsh-chip-violet { stroke:#8a91ff }
10
+ .dsh-tag { fill:#56c2f0; font-size:12px; font-weight:600 } .dsh-tag-violet { fill:#8a91ff }
11
+ </style>
12
+ <defs>
13
+ <linearGradient id="dsh-bg" x2="100%" y2="100%"><stop stop-color="#0b1218"/><stop offset="100%" stop-color="#080d12"/></linearGradient>
14
+ <linearGradient id="dsh-title-ink"><stop stop-color="#56c2f0"/><stop offset="100%" stop-color="#8a91ff"/></linearGradient>
15
+ <linearGradient id="dsh-top"><stop stop-color="#56c2f0" stop-opacity=".55"/><stop offset="50%" stop-color="#8a91ff" stop-opacity=".55"/><stop offset="100%" stop-color="#56c2f0" stop-opacity=".55"/></linearGradient>
16
+ <linearGradient id="dsh-polish" x2="0%" y2="100%"><stop stop-color="#56c2f0"/><stop offset="100%" stop-color="#2a7fc0"/></linearGradient>
17
+ <linearGradient id="dsh-tile-ink" x2="100%" y2="100%"><stop stop-color="#56c2f0" stop-opacity=".20"/><stop offset="100%" stop-color="#2a7fc0" stop-opacity=".24"/></linearGradient>
18
+ <linearGradient id="dsh-chip-ink"><stop stop-color="#56c2f0" stop-opacity=".16"/><stop offset="100%" stop-color="#8a91ff" stop-opacity=".10"/></linearGradient>
19
+ <radialGradient id="dsh-glow-cyan"><stop stop-color="#56c2f0" stop-opacity=".22"/><stop offset="100%" stop-color="#56c2f0" stop-opacity="0"/></radialGradient>
20
+ <radialGradient id="dsh-glow-violet"><stop stop-color="#8a91ff" stop-opacity=".14"/><stop offset="100%" stop-color="#8a91ff" stop-opacity="0"/></radialGradient>
21
+ <pattern id="dsh-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M34 .5H.5V34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
22
+ <symbol id="dsh-wand" viewBox="0 0 24 24"><path d="m15 4 5 5L7 22l-5-5z M14 7l3 3 M9 2h2 M19 12h2 M2 9h2"/></symbol>
23
+ <symbol id="dsh-folder-tree" viewBox="0 0 24 24"><rect x="2" y="9" width="7" height="6" rx="1"/><rect x="15" y="3" width="7" height="6" rx="1"/><rect x="15" y="15" width="7" height="6" rx="1"/><path d="M9 12h3m3-6h-3v12h3"/></symbol>
24
+ <symbol id="dsh-download" viewBox="0 0 24 24"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4 M7 10l5 5 5-5 M12 15V3"/></symbol>
25
+ <symbol id="dsh-crosshair" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M22 12h-4 M6 12H2 M12 6V2 M12 22v-4"/></symbol>
26
+ <symbol id="dsh-pen" viewBox="0 0 24 24"><path d="M4 16l-1 5 5-1L20 8a2.83 2.83 0 0 0-4-4Z M13.5 6.5l4 4"/></symbol>
27
+ <symbol id="dsh-shield-check" viewBox="0 0 24 24"><path d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z M9 12l2 2 4-4"/></symbol>
28
+ <g id="dsh-card-base"><rect width="256" height="150" rx="18" class="dsh-panel"/><rect x="16" y="14" width="34" height="34" rx="10" class="dsh-tile"/><g class="dsh-dot"><circle cx="20" cy="63" r="2.2"/><circle cx="20" cy="83" r="2.2"/><circle cx="20" cy="103" r="2.2"/></g></g>
29
+ </defs>
30
+ <rect width="1180" height="720" fill="url(#dsh-bg)"/>
31
+ <circle cx="1014.8" cy="0" r="330" fill="url(#dsh-glow-cyan)"/><circle cx="0" cy="720" r="300" fill="url(#dsh-glow-violet)"/>
32
+ <rect width="1180" height="720" fill="url(#dsh-grid)"/><rect width="1180" height="3" fill="url(#dsh-top)" opacity=".9"/>
33
+ <text x="56" y="48" font-size="12.5" font-weight="700" fill="url(#dsh-title-ink)">DSH 插件 · 输入框组件</text>
34
+ <text x="56" y="86" font-size="31" class="dsh-heading">输入框旁的润色与模板</text><text x="56" y="120" font-size="15" class="dsh-muted">一个拆分式润色按钮和一个模板下拉,就长在输入框旁边。</text>
35
+ <rect x="944" y="45" width="112" height="30" rx="15" class="dsh-chip"/><circle cx="960" cy="60" r="3.5" fill="#56c2f0"/><text x="971" y="64.5" font-size="12.5" font-weight="600" fill="#56c2f0">6 个能力面</text>
36
+ <rect x="1072" y="34" width="52" height="52" rx="16" class="dsh-tile"/><use href="#dsh-folder-tree" xlink:href="#dsh-folder-tree" x="1086" y="48" width="24" height="24" class="dsh-icon"/>
37
+ <path d="M312 235H328V559H312 M312 397H328 M328 334H344 M868 235H852V559H868 M868 397H852 M852 334H836" fill="none" stroke="#94a0b6" stroke-opacity=".42" stroke-width="1.2"/>
38
+ <rect x="344" y="160" width="492" height="224" rx="16" class="dsh-focus"/><circle cx="344" cy="334" r="2.5" class="dsh-dot"/><circle cx="836" cy="334" r="2.5" class="dsh-dot"/>
39
+ <rect x="368" y="196" width="2" height="24" rx="1" fill="#56c2f0"/><text x="377" y="214" font-size="16" class="dsh-copy">帮我起草 auth 模块的重构计划…</text>
40
+ <text x="368" y="249" font-size="12.5" class="dsh-muted">光标在 | 处 —— 模板就插在这里,引用块与附件原样</text>
41
+ <path d="M368 286.5H812" stroke="#56c2f0" stroke-opacity=".18"/>
42
+ <rect x="520" y="312" width="158" height="44" rx="22" fill="url(#dsh-polish)" opacity=".9"/><path d="M634 320v28" stroke="#0a0f16" stroke-opacity=".42" stroke-linecap="round"/>
43
+ <text x="577" y="339" text-anchor="middle" fill="#0a0f16" font-size="14" font-weight="700">润色</text><path d="M651 332h10l-5 5z" fill="#0a0f16"/>
44
+ <rect x="690" y="312" width="122" height="44" rx="22" class="dsh-focus"/><text x="740" y="339" text-anchor="middle" fill="#56c2f0" font-size="14" font-weight="700">模板</text><path d="M766 332h10l-5 5z" fill="#56c2f0"/>
45
+ <g transform="translate(56 160)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-wand" xlink:href="#dsh-wand" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
46
+ <text x="62" y="36" font-size="15" class="dsh-heading">拆分式润色按钮</text>
47
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">主键直接润色,不带角色</tspan><tspan x="32" y="87">▾ 展开:按角色风格润色</tspan><tspan x="32" y="107">角色正文只进 &lt;data&gt; 围栏</tspan></text>
48
+ <rect x="18" y="117" width="168" height="23" rx="11.5" class="dsh-chip"/><text x="30" y="133" class="dsh-tag">失败闪错 4 秒 · 不碰草稿</text></g>
49
+ <g transform="translate(56 322)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-folder-tree" xlink:href="#dsh-folder-tree" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
50
+ <text x="62" y="36" font-size="15" class="dsh-heading">允许目录</text>
51
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">只收绝对目录;~ 丢弃</tspan><tspan x="32" y="87">会话 cwd · 内置库 · 登记根</tspan><tspan x="32" y="107">「.」「..」与隐藏段拒绝</tspan></text>
52
+ <rect x="18" y="117" width="154" height="23" rx="11.5" class="dsh-chip"/><text x="30" y="133" class="dsh-tag">越界 403 并点名允许区</text></g>
53
+ <g transform="translate(56 484)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-download" xlink:href="#dsh-download" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
54
+ <text x="62" y="36" font-size="15" class="dsh-heading">导入</text>
55
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">路径留空:内置 agents/ 两层</tspan><tspan x="32" y="87">显式路径先过允许根再读</tspan><tspan x="32" y="107">跳过计数如实回报</tspan></text>
56
+ <rect x="18" y="117" width="126" height="23" rx="11.5" class="dsh-chip"/><text x="30" y="133" class="dsh-tag">只读 · 零模型调用</text></g>
57
+ <g transform="translate(868 160)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-crosshair" xlink:href="#dsh-crosshair" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
58
+ <text x="62" y="36" font-size="15" class="dsh-heading">光标安全插入</text>
59
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">captureInsertion() 取光标</tspan><tspan x="32" y="87">insertText 校验捕获选区</tspan><tspan x="32" y="107">已变化或提交期 → 拒绝</tspan></text>
60
+ <rect x="18" y="117" width="112" height="23" rx="11.5" class="dsh-chip dsh-chip-violet"/><text x="30" y="133" class="dsh-tag dsh-tag-violet">不回落整稿替换</text></g>
61
+ <g transform="translate(868 322)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-pen" xlink:href="#dsh-pen" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
62
+ <text x="62" y="36" font-size="15" class="dsh-heading">模板库管理</text>
63
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">行级新增 / 编辑 / 删除</tspan><tspan x="32" y="87">分组字段;emoji ≤ 12 码点</tspan><tspan x="32" y="107">本地草稿,保存一次写入</tspan></text>
64
+ <rect x="18" y="117" width="198" height="23" rx="11.5" class="dsh-chip dsh-chip-violet"/><text x="30" y="133" class="dsh-tag dsh-tag-violet">恢复默认 = unset(templates)</text></g>
65
+ <g transform="translate(868 484)"><use href="#dsh-card-base" xlink:href="#dsh-card-base"/><use href="#dsh-shield-check" xlink:href="#dsh-shield-check" x="23.5" y="21.5" width="19" height="19" class="dsh-icon"/>
66
+ <text x="62" y="36" font-size="15" class="dsh-heading">模型与写回保护</text>
67
+ <text font-size="13" class="dsh-copy"><tspan x="32" y="67">会话活 Agent 模型优先</tspan><tspan x="32" y="87">只有 finish.kind === stop 算成功</tspan><tspan x="32" y="107">复核会话 · draftRev · phase</tspan></text>
68
+ <rect x="18" y="117" width="124" height="23" rx="11.5" class="dsh-chip dsh-chip-violet"/><text x="30" y="133" class="dsh-tag dsh-tag-violet">过期结果绝不写回</text></g>
69
+ <rect x="344" y="426" width="492" height="208" rx="18" class="dsh-soft"/><text x="368" y="462" font-size="13" font-weight="700" fill="#56c2f0">挂载位置</text>
70
+ <path d="M368 477.5H812 M368 523.5H812 M368 569.5H812" stroke="#fff" stroke-opacity=".08"/><g class="dsh-dot"><circle cx="370" cy="501" r="2.2"/><circle cx="370" cy="547" r="2.2"/><circle cx="370" cy="593" r="2.2"/></g>
71
+ <text font-size="13" class="dsh-copy"><tspan x="384" y="506">dock 槽位 conversation.input.right · order 99 / 100</tspan><tspan x="384" y="552">占位符链槽 conversation.input.placeholder</tspan><tspan x="384" y="598">卡片数据面:dirPrepOrganize remote,走宿主 /api 网关</tspan></text>
72
+ <rect x="56" y="648" width="1068" height="48" rx="14" class="dsh-soft"/><rect x="58" y="660" width="3" height="24" rx="1.5" fill="url(#dsh-title-ink)"/>
73
+ <text x="80" y="677" font-size="13.5" class="dsh-copy">不注册模型工具、无自有 HTTP 路由;角色库是上游 MIT 的 vendored 数据,不手改;内置精选模板由同一库经代码生成产出。</text>
74
+ </svg>
@@ -0,0 +1,64 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="1180" height="720" viewBox="0 0 1180 720" preserveAspectRatio="xMidYMid meet" class="dsh-ib" role="img" aria-labelledby="dsh-ib-title" aria-describedby="dsh-ib-desc" xml:lang="en">
2
+ <title id="dsh-ib-title">DSH PLUGIN · IMPORT BOUNDARY AND OFF-CARD SETTINGS</title>
3
+ <desc id="dsh-ib-desc">Imports read three allowed zones only: session endpoints also accept the session working directory, the bundled agents library is always available, and importAllowRoots registers absolute directories. The path check resolves the real target first; relative paths, tilde, dot segments, hidden segments, out-of-zone paths and symlink escapes are refused. Directory scans cover the top level plus one sub-directory and only take .md files with a name in frontmatter. Off-card deployment values are organizeTimeoutMs, maxSnippetBytes and readConcurrency; the latter two take effect on restart.</desc>
4
+ <defs>
5
+ <linearGradient id="dsh-ib-bg" x2="100%" y2="100%"><stop offset="0%" stop-color="#0b1218"/><stop offset="100%" stop-color="#080d12"/></linearGradient>
6
+ <linearGradient id="dsh-ib-accent"><stop offset="0%" stop-color="#56c2f0"/><stop offset="100%" stop-color="#8a91ff"/></linearGradient>
7
+ <linearGradient id="dsh-ib-tile" x2="100%" y2="100%"><stop offset="0%" stop-color="#56c2f0" stop-opacity=".20"/><stop offset="100%" stop-color="#2a7fc0" stop-opacity=".24"/></linearGradient>
8
+ <linearGradient id="dsh-ib-chip"><stop offset="0%" stop-color="#56c2f0" stop-opacity=".16"/><stop offset="100%" stop-color="#8a91ff" stop-opacity=".10"/></linearGradient>
9
+ <radialGradient id="dsh-ib-glow-cyan"><stop offset="0%" stop-color="#56c2f0" stop-opacity=".22"/><stop offset="100%" stop-color="#56c2f0" stop-opacity="0"/></radialGradient>
10
+ <radialGradient id="dsh-ib-glow-violet"><stop offset="0%" stop-color="#8a91ff" stop-opacity=".14"/><stop offset="100%" stop-color="#8a91ff" stop-opacity="0"/></radialGradient>
11
+ <pattern id="dsh-ib-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M0.5 34V0.5H34" fill="none" stroke="#ffffff" stroke-opacity=".05"/></pattern>
12
+ <symbol id="dsh-ib-folder" viewBox="0 0 24 24"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"/></symbol>
13
+ <symbol id="dsh-ib-home" viewBox="0 0 24 24"><path d="M3 11 12 3l9 8M5 10v10h14V10"/></symbol>
14
+ <symbol id="dsh-ib-package" viewBox="0 0 24 24"><path d="M21 8 12 3 3 8v8l9 5 9-5ZM3 8l9 5 9-5M12 13v8"/></symbol>
15
+ <symbol id="dsh-ib-filter" viewBox="0 0 24 24"><path d="M3 4h18l-7 8v7l-4 2v-9Z"/></symbol>
16
+ <symbol id="dsh-ib-shield" viewBox="0 0 24 24"><path d="M12 3 20 6v6c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V6ZM9 12l2 2 4-4"/></symbol>
17
+ <symbol id="dsh-ib-file" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8ZM14 2v6h6M8 13h8M8 17h5"/></symbol>
18
+ <symbol id="dsh-ib-gauge" viewBox="0 0 24 24"><path d="M4 18a8 8 0 1 1 16 0M12 18l4-5"/><circle cx="12" cy="18" r="1.5"/></symbol>
19
+ <symbol id="dsh-ib-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
20
+ </defs>
21
+ <style>
22
+ .dsh-ib text{font-family:Inter,'Segoe UI',Arial,'DejaVu Sans',sans-serif}
23
+ .dsh-ib .ib-brand{font-size:13px;font-weight:700;fill:url(#dsh-ib-accent)}
24
+ .dsh-ib .ib-title{font-size:31px;font-weight:700;fill:#f2f5fb}.dsh-ib .ib-sub{font-size:15px;fill:#94a0b6}
25
+ .dsh-ib .ib-section,.dsh-ib .ib-scan-title{font-weight:700;fill:#f2f5fb}.dsh-ib .ib-section{font-size:16px}.dsh-ib .ib-scan-title{font-size:13.5px}
26
+ .dsh-ib .ib-body{font-size:12.5px;fill:#d6deec;fill-opacity:.82}.dsh-ib .ib-note{font-size:11.5px;fill:#94a0b6;fill-opacity:.85}
27
+ .dsh-ib .ib-label{font-size:11.5px;font-weight:700;fill:#56c2f0}.dsh-ib .ib-check{font-size:12.5px;font-weight:600;fill:#8a91ff}
28
+ .dsh-ib .ib-mono{font-family:ui-monospace,Menlo,Consolas,'DejaVu Sans Mono',monospace;font-size:12px;fill:#56c2f0}.dsh-ib .ib-mono.ib-compact{font-size:11.5px}
29
+ .dsh-ib .ib-panel{fill:#ffffff;fill-opacity:.045;stroke:#ffffff;stroke-opacity:.10}.dsh-ib .ib-card{fill:#ffffff;fill-opacity:.03;stroke:#ffffff;stroke-opacity:.07}
30
+ .dsh-ib .ib-tile{fill:url(#dsh-ib-tile);stroke:#56c2f0;stroke-opacity:.28}.dsh-ib .ib-deny{fill:#8a91ff;fill-opacity:.08;stroke:#8a91ff;stroke-opacity:.28}
31
+ .dsh-ib .ib-icon{fill:none;stroke:#56c2f0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
32
+ </style>
33
+ <rect width="1180" height="720" fill="url(#dsh-ib-bg)"/><circle cx="1015" cy="0" r="330" fill="url(#dsh-ib-glow-cyan)"/><circle cx="0" cy="720" r="300" fill="url(#dsh-ib-glow-violet)"/>
34
+ <rect width="1180" height="720" fill="url(#dsh-ib-grid)"/><rect width="1180" height="3" fill="url(#dsh-ib-accent)"/>
35
+ <text x="56" y="46" class="ib-brand">DSH PLUGIN · IMPORT BOUNDARY &amp; OFF-CARD LIMITS</text>
36
+ <text x="56" y="85" class="ib-title">Allowed zones are explicit trust</text>
37
+ <text x="56" y="119" class="ib-sub">Imports read three places only; three deployment values stay off the card.</text>
38
+ <g transform="translate(908 57)"><rect width="148" height="32" rx="16" fill="url(#dsh-ib-chip)" stroke="#8a91ff" stroke-opacity=".45"/><circle cx="16" cy="16" r="3.5" fill="#8a91ff"/><text x="30" y="20.5" font-size="12.5" font-weight="700" fill="#8a91ff">deny by default</text></g>
39
+ <rect x="1072" y="47" width="52" height="52" rx="16" class="ib-tile"/><use href="#dsh-ib-shield" x="1086" y="61" width="24" height="24" class="ib-icon"/>
40
+ <rect x="56" y="148" width="692" height="484" rx="18" class="ib-panel"/><rect x="772" y="148" width="352" height="484" rx="18" class="ib-panel"/>
41
+ <text x="76" y="180" class="ib-section">Imports read three allowed zones</text>
42
+ <g transform="translate(76 198)"><rect width="208" height="102" rx="12" class="ib-card"/><rect x="14" y="14" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-home" x="21" y="21" width="18" height="18" class="ib-icon"/><text x="14" y="65" class="ib-body" font-weight="600">Session cwd</text><text x="14" y="85" class="ib-note">session endpoints only</text></g>
43
+ <g transform="translate(298 198)"><rect width="208" height="102" rx="12" class="ib-card"/><rect x="14" y="14" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-package" x="21" y="21" width="18" height="18" class="ib-icon"/><text x="14" y="65" class="ib-body" font-weight="600">Bundled agents/</text><text x="14" y="85" class="ib-note">shipped library · on-card</text></g>
44
+ <g transform="translate(520 198)"><rect width="208" height="102" rx="12" class="ib-card"/><rect x="14" y="14" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-folder" x="21" y="21" width="18" height="18" class="ib-icon"/><text x="14" y="65" class="ib-mono ib-compact">importAllowRoots</text><text x="14" y="85" class="ib-note">registered absolute dirs</text></g>
45
+ <path d="M180 306V322M176 318l4 4 4-4 M402 306V322M398 318l4 4 4-4 M624 306V322M620 318l4 4 4-4" fill="none" stroke="#56c2f0" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
46
+ <rect x="76" y="330" width="652" height="46" rx="12" fill="#8a91ff" fill-opacity=".10" stroke="#8a91ff" stroke-opacity=".36"/><use href="#dsh-ib-filter" x="90" y="344" width="18" height="18" class="ib-icon"/>
47
+ <text x="118" y="357" class="ib-check">Path check: resolve the real target, then require an allowed zone</text>
48
+ <text x="76" y="404" class="ib-label">REFUSED</text><rect x="76" y="416" width="652" height="54" rx="12" class="ib-deny"/>
49
+ <text x="90" y="438" class="ib-body">relative · ~ · <tspan class="ib-mono">.</tspan> / <tspan class="ib-mono">..</tspan> · hidden segments</text>
50
+ <text x="90" y="457" class="ib-body">outside the zones · symlink escape · missing dirs</text>
51
+ <rect x="76" y="486" width="652" height="100" rx="12" class="ib-card"/><text x="90" y="509" class="ib-scan-title">Directory scan shape</text>
52
+ <text x="90" y="531" class="ib-body">Top level + one sub-directory; hidden and out-of-zone targets skipped.</text>
53
+ <text x="90" y="551" class="ib-body">Only .md with a name in frontmatter; the body becomes template text.</text>
54
+ <text x="90" y="571" class="ib-body">deeper / too large / unreadable / not a role / escaped: counted per class</text>
55
+ <text x="76" y="612" class="ib-note">No session on the card: on-card imports use the bundled library and registered roots only.</text>
56
+ <text x="792" y="180" class="ib-section">Off-card deployment values</text>
57
+ <g transform="translate(792 198)"><rect width="312" height="110" rx="12" class="ib-card"/><use href="#dsh-ib-clock" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="29" class="ib-mono">organizeTimeoutMs</text><text x="16" y="58" class="ib-body">120000 ms · read per request</text><text x="16" y="78" class="ib-note">client fetch adds a 5000 ms allowance</text><text x="16" y="96" class="ib-note">clamped to [1, 2147483647]</text></g>
58
+ <g transform="translate(792 320)"><rect width="312" height="110" rx="12" class="ib-card"/><use href="#dsh-ib-file" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="29" class="ib-mono">maxSnippetBytes</text><text x="16" y="58" class="ib-body">262144 · per-file snippet limit</text><text x="16" y="78" class="ib-note">over the limit: the whole file is skipped</text><text x="16" y="96" class="ib-note">takes effect on restart</text></g>
59
+ <g transform="translate(792 442)"><rect width="312" height="110" rx="12" class="ib-card"/><use href="#dsh-ib-gauge" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="29" class="ib-mono">readConcurrency</text><text x="16" y="58" class="ib-body">8 · parallel key-file reads</text><text x="16" y="78" class="ib-note">clamped to [1, 64]; zero would hang</text><text x="16" y="96" class="ib-note">takes effect on restart</text></g>
60
+ <text x="792" y="576" class="ib-note">organizeTimeoutMs applies to the next request;<tspan x="792" y="594">the other two need a restart.</tspan></text>
61
+ <text x="792" y="612" class="ib-note">Set them in settings.yaml or the row's config:</text>
62
+ <rect x="56" y="650" width="1068" height="46" rx="14" class="ib-panel"/><rect x="68" y="662" width="3" height="22" rx="1.5" fill="url(#dsh-ib-accent)"/>
63
+ <use href="#dsh-ib-shield" x="84" y="664" width="18" height="18" class="ib-icon"/><text x="110" y="677" class="ib-body">Deny by default: an empty allow list trusts no extra directory; refusals echo the resolved path.</text>
64
+ </svg>
@@ -0,0 +1,66 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1180" height="720" viewBox="0 0 1180 720" preserveAspectRatio="xMidYMid meet" class="dsh-ib" role="img" aria-labelledby="dsh-ib-title" aria-describedby="dsh-ib-desc" xml:lang="zh">
2
+ <title id="dsh-ib-title">DSH PLUGIN · 导入边界与卡外配置</title>
3
+ <desc id="dsh-ib-desc">导入只读三块允许区:带会话的端点额外接受会话工作目录,内置 agents 角色库始终可用,importAllowRoots 逐条登记绝对目录。路径判定先解析真实目标,相对路径、波浪号、点段、隐藏段、区外路径与符号链接逃逸都被拒绝。目录扫描顶层加一层子目录,只收 frontmatter 带 name 的 .md。卡外的部署值是 organizeTimeoutMs、maxSnippetBytes 与 readConcurrency;后两项随重启生效。</desc>
4
+ <defs>
5
+ <linearGradient id="dsh-ib-bg" x2="100%" y2="100%"><stop offset="0" stop-color="#0b1218"/><stop offset="1" stop-color="#080d12"/></linearGradient>
6
+ <linearGradient id="dsh-ib-accent"><stop offset="0" stop-color="#56c2f0"/><stop offset="1" stop-color="#8a91ff"/></linearGradient>
7
+ <pattern id="dsh-ib-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M0.5 34V0.5H34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
8
+ <linearGradient id="dsh-ib-tile" x2="100%" y2="100%"><stop offset="0" stop-color="#56c2f0" stop-opacity=".20"/><stop offset="1" stop-color="#2a7fc0" stop-opacity=".24"/></linearGradient>
9
+ <linearGradient id="dsh-ib-chip"><stop offset="0" stop-color="#56c2f0" stop-opacity=".16"/><stop offset="1" stop-color="#8a91ff" stop-opacity=".10"/></linearGradient>
10
+ <radialGradient id="dsh-ib-glow-cyan"><stop offset="0" stop-color="#56c2f0" stop-opacity=".22"/><stop offset="1" stop-color="#56c2f0" stop-opacity="0"/></radialGradient>
11
+ <radialGradient id="dsh-ib-glow-violet"><stop offset="0" stop-color="#8a91ff" stop-opacity=".14"/><stop offset="1" stop-color="#8a91ff" stop-opacity="0"/></radialGradient>
12
+ <symbol id="dsh-ib-home" viewBox="0 0 24 24"><path d="M3 11 12 3l9 8M5 10v10h14V10"/></symbol>
13
+ <symbol id="dsh-ib-package" viewBox="0 0 24 24"><path d="M21 8 12 3 3 8v8l9 5 9-5ZM3 8l9 5 9-5M12 13v8"/></symbol>
14
+ <symbol id="dsh-ib-folder" viewBox="0 0 24 24"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"/></symbol>
15
+ <symbol id="dsh-ib-filter" viewBox="0 0 24 24"><path d="M3 4h18l-7 8v7l-4 2v-9Z"/></symbol>
16
+ <symbol id="dsh-ib-shield" viewBox="0 0 24 24"><path d="M12 3 20 6v6c0 5-3.5 7.5-8 9-4.5-1.5-8-4-8-9V6ZM9 12l2 2 4-4"/></symbol>
17
+ <symbol id="dsh-ib-file" viewBox="0 0 24 24"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8ZM14 2v6h6M8 13h8M8 17h5"/></symbol>
18
+ <symbol id="dsh-ib-gauge" viewBox="0 0 24 24"><path d="M4 18a8 8 0 1 1 16 0M12 18l4-5"/><circle cx="12" cy="18" r="1.5"/></symbol>
19
+ <symbol id="dsh-ib-clock" viewBox="0 0 24 24"><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></symbol>
20
+ </defs>
21
+ <style type="text/css">
22
+ .dsh-ib text{font-family:Inter,'Segoe UI',Arial,'PingFang SC','Microsoft YaHei','Noto Sans CJK SC','Noto Sans SC',sans-serif}
23
+ .dsh-ib .ib-brand{font-size:13px;font-weight:700;fill:url(#dsh-ib-accent)} .dsh-ib .ib-title{font-size:31px;font-weight:700;fill:#f2f5fb}
24
+ .dsh-ib .ib-sub{font-size:15px;fill:#94a0b6} .dsh-ib .ib-section{font-size:16px;font-weight:700;fill:#f2f5fb} .dsh-ib .ib-section.ib-scan-title{font-size:13.5px}
25
+ .dsh-ib .ib-body{font-size:12.5px;fill:#d6deec;fill-opacity:.82} .dsh-ib .ib-note{font-size:11.5px;fill:#94a0b6;fill-opacity:.85}
26
+ .dsh-ib .ib-label{font-size:11.5px;font-weight:700;fill:#56c2f0} .dsh-ib .ib-body.ib-rule{fill:#8a91ff;fill-opacity:1;font-weight:600}
27
+ .dsh-ib .ib-mono{font-family:ui-monospace,Menlo,Consolas,'DejaVu Sans Mono',monospace;font-size:12px;fill:#56c2f0} .dsh-ib .ib-mono.ib-root-key{font-size:11.5px}
28
+ .dsh-ib .ib-panel{fill:#fff;fill-opacity:.045;stroke:#fff;stroke-opacity:.10} .dsh-ib .ib-card{fill:#fff;fill-opacity:.03;stroke:#fff;stroke-opacity:.07}
29
+ .dsh-ib .ib-tile{fill:url(#dsh-ib-tile);stroke:#56c2f0;stroke-opacity:.28} .dsh-ib .ib-icon{fill:none;stroke:#56c2f0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
30
+ .dsh-ib .ib-deny{fill:#8a91ff;fill-opacity:.08;stroke:#8a91ff;stroke-opacity:.28}
31
+ </style>
32
+ <g aria-hidden="true"><rect width="1180" height="720" fill="url(#dsh-ib-bg)"/><circle cx="1015" cy="0" r="330" fill="url(#dsh-ib-glow-cyan)"/><circle cx="0" cy="720" r="300" fill="url(#dsh-ib-glow-violet)"/><rect width="1180" height="720" fill="url(#dsh-ib-grid)"/><rect width="1180" height="3" fill="url(#dsh-ib-accent)"/></g>
33
+ <text x="56" y="46" class="ib-brand">DSH PLUGIN · 导入边界与卡外配置</text><text x="56" y="86" class="ib-title">允许区是显式信任</text>
34
+ <text x="56" y="119" class="ib-sub">导入只读三块地方;三个部署值不在卡上。</text>
35
+ <rect x="952" y="59" width="104" height="30" rx="15" fill="url(#dsh-ib-chip)" stroke="#8a91ff" stroke-opacity=".45"/><circle cx="974" cy="74" r="3.5" fill="#8a91ff"/><text x="988" y="78.5" font-size="12.5" font-weight="700" fill="#8a91ff">默认拒绝</text>
36
+ <rect x="1072" y="48" width="52" height="52" rx="16" class="ib-tile"/><use href="#dsh-ib-shield" xlink:href="#dsh-ib-shield" x="1086" y="62" width="24" height="24" class="ib-icon"/>
37
+
38
+ <rect x="56" y="148" width="700" height="496" rx="18" class="ib-panel"/><text x="76" y="180" class="ib-section">导入:只读三块允许区</text>
39
+ <g transform="translate(76 196)"><rect width="212" height="84" rx="12" class="ib-card"/><rect x="16" y="26" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-home" xlink:href="#dsh-ib-home" x="23" y="33" width="18" height="18" class="ib-icon"/><text x="60" y="35" class="ib-body" font-weight="600">会话 cwd</text><text x="60" y="57" class="ib-note">带会话的端点额外接受</text></g>
40
+ <g transform="translate(300 196)"><rect width="212" height="84" rx="12" class="ib-card"/><rect x="16" y="26" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-package" xlink:href="#dsh-ib-package" x="23" y="33" width="18" height="18" class="ib-icon"/><text x="60" y="35" class="ib-body" font-weight="600">内置 agents/</text><text x="60" y="57" class="ib-note">随包角色库 · 卡上可用</text></g>
41
+ <g transform="translate(524 196)"><rect width="212" height="84" rx="12" class="ib-card"/><rect x="16" y="26" width="32" height="32" rx="9" class="ib-tile"/><use href="#dsh-ib-folder" xlink:href="#dsh-ib-folder" x="23" y="33" width="18" height="18" class="ib-icon"/><text x="60" y="35" class="ib-mono ib-root-key">importAllowRoots</text><text x="60" y="57" class="ib-note">逐条登记的绝对目录</text></g>
42
+ <path d="M182 285V304M178 300L182 304L186 300 M406 285V304M402 300L406 304L410 300 M630 285V304M626 300L630 304L634 300" fill="none" stroke="#56c2f0" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/>
43
+ <rect x="76" y="310" width="660" height="48" rx="12" fill="#8a91ff" fill-opacity=".10" stroke="#8a91ff" stroke-opacity=".36"/><use href="#dsh-ib-filter" xlink:href="#dsh-ib-filter" x="92" y="325" width="18" height="18" class="ib-icon"/>
44
+ <text x="120" y="339" class="ib-body ib-rule">路径判定:先解析真实目标,再要求落在允许区内</text>
45
+ <text x="76" y="386" class="ib-label">直接拒绝</text><rect x="76" y="398" width="660" height="60" rx="12" class="ib-deny"/>
46
+ <text x="92" y="422" class="ib-body">相对路径 · ~ · <tspan class="ib-mono">.</tspan> / <tspan class="ib-mono">..</tspan> · 隐藏段</text>
47
+ <text x="92" y="443" class="ib-body">允许区之外 · 符号链接逃逸 · 不存在的目录</text>
48
+ <rect x="76" y="474" width="660" height="114" rx="12" class="ib-card"/><text x="92" y="500" class="ib-section ib-scan-title">目录扫描形状</text>
49
+ <text x="92" y="524" class="ib-body">顶层 + 一层子目录;跳过隐藏项与越界目标。</text>
50
+ <text x="92" y="546" class="ib-body">只收 frontmatter 带 name 的 .md,正文提炼为模板正文。</text>
51
+ <text x="92" y="568" class="ib-body">更深层 / 过大 / 不可读 / 非角色 / 越界:逐类计数回执给用户。</text>
52
+ <path d="M76 602H736" stroke="#fff" stroke-opacity=".07"/><text x="76" y="626" class="ib-note">设置卡没有会话上下文:卡上只能用内置库与已登记目录。</text>
53
+
54
+ <rect x="784" y="148" width="340" height="496" rx="18" class="ib-panel"/><text x="804" y="180" class="ib-section">卡外的部署值</text>
55
+ <g transform="translate(804 196)"><rect width="300" height="108" rx="12" class="ib-card"/><use href="#dsh-ib-clock" xlink:href="#dsh-ib-clock" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="30" class="ib-mono">organizeTimeoutMs</text>
56
+ <text x="16" y="53" class="ib-body">120000 ms · 每次请求现读</text><text x="16" y="73" class="ib-note">客户端 fetch 再加 5000 ms 余量</text><text x="16" y="92" class="ib-note">夹到 [1, 2147483647]</text></g>
57
+ <g transform="translate(804 316)"><rect width="300" height="108" rx="12" class="ib-card"/><use href="#dsh-ib-file" xlink:href="#dsh-ib-file" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="30" class="ib-mono">maxSnippetBytes</text>
58
+ <text x="16" y="53" class="ib-body">262144 · 单文件摘要上限</text><text x="16" y="73" class="ib-note">超出整份跳过,不截断后硬读</text><text x="16" y="92" class="ib-note">随重启生效</text></g>
59
+ <g transform="translate(804 436)"><rect width="300" height="108" rx="12" class="ib-card"/><use href="#dsh-ib-gauge" xlink:href="#dsh-ib-gauge" x="16" y="16" width="18" height="18" class="ib-icon"/><text x="42" y="30" class="ib-mono">readConcurrency</text>
60
+ <text x="16" y="53" class="ib-body">8 · 并发读取关键文件</text><text x="16" y="73" class="ib-note">夹到 [1, 64];下界 0 会无限等待</text><text x="16" y="92" class="ib-note">随重启生效</text></g>
61
+ <text x="804" y="567" class="ib-note">organizeTimeoutMs 下一次请求即生效;</text><text x="804" y="586" class="ib-note">另两个随重启生效。</text>
62
+ <path d="M804 602H1104" stroke="#fff" stroke-opacity=".07"/><text x="804" y="626" class="ib-note">改在 settings.yaml 或注册行的 config: 块。</text>
63
+
64
+ <rect x="56" y="660" width="1068" height="44" rx="14" class="ib-panel"/><rect x="68" y="671" width="3" height="22" rx="1.5" fill="url(#dsh-ib-accent)"/>
65
+ <use href="#dsh-ib-shield" xlink:href="#dsh-ib-shield" x="84" y="673" width="18" height="18" class="ib-icon"/><text x="110" y="687" class="ib-body">默认拒绝是策略:空允许表不额外信任任何目录;越界报错并回显解析后的路径。</text>
66
+ </svg>
@@ -0,0 +1,83 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="dsh-tp"
2
+ width="1180" height="720" viewBox="0 0 1180 720" overflow="hidden" xml:lang="en"
3
+ role="img" aria-labelledby="dsh-tp-title" aria-describedby="dsh-tp-desc"
4
+ font-family="Inter, system-ui, 'Segoe UI', Arial, sans-serif">
5
+ <title id="dsh-tp-title">DSH PLUGIN · TWO PATHS — Polish calls the model; templates never do</title>
6
+ <desc id="dsh-tp-desc">Both paths start from the composer dock and write back through guarded host actions.</desc>
7
+ <defs>
8
+ <linearGradient id="dsh-tp-bg" y2="100%"><stop offset="0" stop-color="#0b1218"/><stop offset="1" stop-color="#080d12"/></linearGradient>
9
+ <linearGradient id="dsh-tp-accent"><stop offset="0" stop-color="#56c2f0"/><stop offset="1" stop-color="#8a91ff"/></linearGradient>
10
+ <linearGradient id="dsh-tp-rim"><stop offset="0" stop-color="#56c2f0" stop-opacity=".55"/><stop offset=".5" stop-color="#8a91ff" stop-opacity=".55"/><stop offset="1" stop-color="#56c2f0" stop-opacity=".55"/></linearGradient>
11
+ <linearGradient id="dsh-tp-badge"><stop offset="0" stop-color="#56c2f0" stop-opacity=".16"/><stop offset="1" stop-color="#8a91ff" stop-opacity=".10"/></linearGradient>
12
+ <linearGradient id="dsh-tp-tile" y2="100%"><stop offset="0" stop-color="#56c2f0" stop-opacity=".20"/><stop offset="1" stop-color="#2a7fc0" stop-opacity=".24"/></linearGradient>
13
+ <linearGradient id="dsh-tp-step" x2="0%" y2="100%"><stop offset="0" stop-color="#56c2f0"/><stop offset="1" stop-color="#2a7fc0"/></linearGradient>
14
+ <radialGradient id="dsh-tp-cyan"><stop offset="0" stop-color="#56c2f0" stop-opacity=".22"/><stop offset="1" stop-color="#56c2f0" stop-opacity="0"/></radialGradient>
15
+ <radialGradient id="dsh-tp-violet"><stop offset="0" stop-color="#8a91ff" stop-opacity=".14"/><stop offset="1" stop-color="#8a91ff" stop-opacity="0"/></radialGradient>
16
+ <pattern id="dsh-tp-grid" width="34" height="34" patternUnits="userSpaceOnUse"><path d="M0 .5H34M.5 0V34" fill="none" stroke="#fff" stroke-opacity=".05"/></pattern>
17
+ <path id="dsh-tp-arrow" d="M0 -.8H6V-3.8L12 0 6 3.8V.8H0Z" fill="#56c2f0" fill-opacity=".8"/>
18
+ <g id="dsh-tp-marks">
19
+ <circle cx="24" cy="24" r="12" fill="url(#dsh-tp-step)" opacity=".92"/>
20
+ <g fill="#56c2f0" fill-opacity=".8"><circle cx="14" cy="52" r="2.2"/><circle cx="14" cy="73" r="2.2"/><circle cx="14" cy="94" r="2.2"/></g>
21
+ </g>
22
+ </defs>
23
+ <style>
24
+ #dsh-tp .lane, #dsh-tp .soft { fill: #fff; stroke: #fff; stroke-width: 1; }
25
+ #dsh-tp .lane { fill-opacity: .045; stroke-opacity: .10; }
26
+ #dsh-tp .soft { fill-opacity: .03; stroke-opacity: .07; }
27
+ #dsh-tp .strong { fill: #f2f5fb; font-weight: 700; }
28
+ #dsh-tp .copy { fill: #d6deec; fill-opacity: .82; }
29
+ #dsh-tp .note { fill: #94a0b6; fill-opacity: .85; }
30
+ #dsh-tp .label { fill: #56c2f0; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; }
31
+ #dsh-tp .num { fill: #0b0d12; font-size: 13.5px; font-weight: 700; text-anchor: middle; }
32
+ </style>
33
+ <rect width="1180" height="720" fill="url(#dsh-tp-bg)"/>
34
+ <circle cx="1014.8" cy="0" r="330" fill="url(#dsh-tp-cyan)"/><circle cx="0" cy="720" r="300" fill="url(#dsh-tp-violet)"/>
35
+ <rect width="1180" height="720" fill="url(#dsh-tp-grid)"/><rect width="1180" height="3" fill="url(#dsh-tp-rim)" opacity=".9"/>
36
+ <text x="56" y="48" font-size="12.5" font-weight="700" letter-spacing="2.4" fill="url(#dsh-tp-accent)">DSH PLUGIN · TWO PATHS</text>
37
+ <text x="56" y="86" font-size="31" class="strong">Polish calls the model; templates never do</text>
38
+ <text x="56" y="120" font-size="15" class="note">Both paths start from the composer dock and write back through guarded host actions.</text>
39
+ <g transform="translate(886 45)"><rect width="170" height="30" rx="15" fill="url(#dsh-tp-badge)" stroke="#56c2f0" stroke-opacity=".4"/><circle cx="17" cy="15" r="3.5" fill="#56c2f0"/><text x="29" y="19.5" fill="#56c2f0" font-size="12.5" font-weight="600">guarded write-back</text></g>
40
+ <g transform="translate(1072 34)"><rect width="52" height="52" rx="16" fill="url(#dsh-tp-tile)" stroke="#56c2f0" stroke-opacity=".28"/>
41
+ <path transform="translate(14 14)" d="M15 4l5 5L7 22l-5-5Z M14 7l3 3M9 2h2M19 12h2M2 9h2" fill="none" stroke="#56c2f0" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/></g>
42
+
43
+ <g transform="translate(56 146)" font-size="12">
44
+ <rect width="1068" height="210" rx="18" class="lane"/><text x="20" y="31" class="label">POLISH PATH — calls the model</text>
45
+ <g transform="translate(20 46)"><rect width="188" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">1</text><text class="strong" x="44" y="29" font-size="14">Begin</text>
46
+ <text class="copy"><tspan x="28" y="56">writeBack.begin() ticket</tspan> <tspan x="28" y="77">inFlight ref + seq guard</tspan> <tspan x="28" y="98">empty draft refused</tspan></text></g>
47
+ <g transform="translate(230 46)"><rect width="188" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">2</text><text class="strong" x="44" y="29" font-size="14">Assemble</text>
48
+ <text class="copy"><tspan x="28" y="56">draft + dir entries</tspan> <tspan x="28" y="77">recent real turns</tspan> <tspan x="28" y="98">cwd of the live session</tspan></text></g>
49
+ <g transform="translate(440 46)"><rect width="188" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">3</text><text class="strong" x="44" y="29" font-size="14">Model</text>
50
+ <text class="copy"><tspan x="28" y="56">request-only message</tspan> <tspan x="28" y="77">system = rules + cwd</tspan> <tspan x="28" y="98">stream; stop or fail</tspan></text></g>
51
+ <g transform="translate(650 46)"><rect width="398" height="120" rx="12" class="soft"/><path d="M199 14V106" fill="none" stroke="#fff" stroke-opacity=".14"/>
52
+ <use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">4</text><text class="strong" x="44" y="29" font-size="14">Write back</text>
53
+ <text class="copy"><tspan x="28" y="56">recheck ticket+draftRev</tspan> <tspan x="28" y="77">phase must be plain</tspan> <tspan x="28" y="98">setDraft atomically</tspan></text>
54
+ <g transform="translate(210 0)"><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">5</text><text class="strong" x="44" y="29" font-size="14">Stale check</text>
55
+ <text class="copy"><tspan x="28" y="56">same call as write-back</tspan> <tspan x="28" y="77">changed → drop result</tspan> <tspan x="28" y="98">button flashes 4s</tspan></text></g>
56
+ </g>
57
+ <use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="213" y="106"/><use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="423" y="106"/><use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="633" y="106"/>
58
+ <text x="20" y="191" class="note">Timeout is organizeTimeoutMs plus a 5 s client slack; a failed or stale result never reaches the draft.</text>
59
+ </g>
60
+
61
+ <g transform="translate(56 370)" font-size="12">
62
+ <rect width="1068" height="210" rx="18" class="lane"/><text x="20" y="31" class="label">TEMPLATE PATH — no model call</text>
63
+ <g transform="translate(912 15)"><rect width="136" height="24" rx="12" fill="url(#dsh-tp-badge)" stroke="#4ed17e" stroke-opacity=".35"/><text x="68" y="16" text-anchor="middle" fill="#4ed17e" font-size="11.5" font-weight="600">zero model calls</text></g>
64
+ <g transform="translate(20 46)"><rect width="242" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">1</text><text class="strong" x="44" y="29" font-size="14">Pick</text>
65
+ <text class="copy"><tspan x="28" y="56">grouped dropdown</tspan> <tspan x="28" y="77">hover shows description</tspan> <tspan x="28" y="98">saved library or built-ins</tspan></text></g>
66
+ <g transform="translate(282 46)"><rect width="242" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">2</text><text class="strong" x="44" y="29" font-size="14">Capture</text>
67
+ <text class="copy"><tspan x="28" y="56">captureInsertion() span</tspan> <tspan x="28" y="77">selection + draftRev</tspan> <tspan x="28" y="98">insertion ticket</tspan></text></g>
68
+ <g transform="translate(544 46)"><rect width="242" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">3</text><text class="strong" x="44" y="29" font-size="14">Insert</text>
69
+ <text class="copy"><tspan x="28" y="56">insertText(text, span)</tspan> <tspan x="28" y="77">host validates version</tspan> <tspan x="28" y="98">invalid → refused</tspan></text></g>
70
+ <g transform="translate(806 46)"><rect width="242" height="120" rx="12" class="soft"/><use href="#dsh-tp-marks" xlink:href="#dsh-tp-marks"/><text class="num" x="24" y="29">4</text><text class="strong" x="44" y="29" font-size="14">Done</text>
71
+ <text class="copy"><tspan x="28" y="56">quotes/attachments intact</tspan> <tspan x="28" y="77">no whole-draft fallback</tspan> <tspan x="28" y="98">compose phase only</tspan></text></g>
72
+ <use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="266" y="106"/><use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="528" y="106"/><use href="#dsh-tp-arrow" xlink:href="#dsh-tp-arrow" x="790" y="106"/>
73
+ <text x="20" y="191" class="note">The insertion ticket is validated by the host input at the moment of insertion; a stale ticket is refused without replacing the draft.</text>
74
+ </g>
75
+
76
+ <g transform="translate(56 594)">
77
+ <rect width="1068" height="40" rx="12" class="soft"/><rect x="12" y="6" width="28" height="28" rx="8" fill="url(#dsh-tp-tile)" stroke="#56c2f0" stroke-opacity=".28"/>
78
+ <path transform="translate(18.5 12.5) scale(.625)" d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1Z M9 12l2 2 4-4" fill="none" stroke="#56c2f0" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round"/>
79
+ <text x="52" y="24.5" class="copy" font-size="12.3">Shared edges: both paths end in guarded host actions — no plugin HTTP routes, no direct DOM writes.</text>
80
+ </g>
81
+ <g transform="translate(56 648)"><rect width="1068" height="48" rx="14" class="soft"/><rect x="10" y="10" width="3" height="28" rx="1.5" fill="url(#dsh-tp-accent)"/>
82
+ <text x="24" y="29" class="copy" font-size="13.5">No model tools, no plugin HTTP routes; the role library is vendored upstream MIT data, never hand-edited.</text></g>
83
+ </svg>