Chinesezjc/dsh-tool-owned-render 预览 preview

Chinesezjc/dsh-tool-owned-render

Plugin插件 Native原生 ⭐ 2 MIT UI & Themes界面与主题

A design note and interactive prototype for making tool result rendering in an agent chat UI tool-owned: each tool self-registers its own React component on a keyed render slot and composes shared layout primitives, instead of a central skeleton owning a render-kind union.

catalog descriptioncatalog 简介 / catalog description:Design note and interactive prototype for tool-owned render: each tool owns its own result presentation, composing shared layout primitives instead of a central render-kind union.

Project Overview项目介绍

The dsh-tool-owned-render plugin shifts tool result rendering to the tools themselves: each tool self-registers a React component on the keyed tool.call.toolview slot, composing the shared ToolCard, Segment, and Group primitives instead of relying on a central skeleton with a render-kind union. Use it when tool authors need to change or restructure their own presentation in isolation. A status lamp is offered as a helper derived from observation, not imposed. Two authoring paths are available: custom React, or a zero-code generic fallback.

DSH 插件 tool-owned-render 将工具结果渲染交由工具自身管理:每个工具在键控槽位 tool.call.toolview 中自行注册 React 组件,并复用 ToolCard、Segment、Group 三个布局原语,不再由中央骨架按 render-kind 分发。适用于希望工具作者可独立调整或重构各自呈现的场景。状态指示灯由观察式推导得出,作为辅助而非强制。可使用自带 React 或零代码通用回退两种方式实现。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:Chinesezjc/dsh-tool-owned-render

把 Chinesezjc/dsh-tool-owned-render 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

tool-owned-render

A design note and interactive prototype for making tool result rendering in an agent chat UI tool-owned: each tool self-registers its own React component on a keyed render slot and composes shared layout primitives, instead of a central skeleton owning a render-kind union.

The design

Two principles decide the model:

  • A tool's presentation must be changeable in isolation.
  • A tool author keeps the right to restructure their own presentation.

A central skeleton with a shared render-kind switch fails both. So there is no central render dispatch and no render-kind union. Instead there are three layout primitives:

  • ToolCard — the card frame.
  • Segment — the core IN/OUT unit.
  • Group — optional; bundles Segments under one status lamp, for multi-execution tools.

Plus one observational status derivation offered as a helper (rather than imposed), and two paths for a tool author: write your own React, or get a generic zero-code fallback.

Read the note

The note covers the primitives, the lamp derivation, the two paths, the text-reconstructable data boundary, deferred extension points, alternatives considered, and a staged migration plan.

Prototype

prototype/unified-list-of-blocks-mock.html is a standalone interactive prototype — open it directly in a browser, no build step. It covers all tool shapes, Group cases, stress cases, and both authoring paths.

Tool-owned render, dark and light:

tool-owned render, dark

tool-owned render, light

The two paths — a tool composing its own React, versus the generic zero-code fallback:

two paths

The implementation

src/ is a working DSH client plugin built on this design: primitives (ToolCard/Segment/Group), the observation-derived lamp, and registrants that take over the keyed tool.call.toolview slot for read, bash, write/edit, grep/glob and web_search/web_fetch.

PLUGIN.md documents it: what each registrant renders, install and layering, takeover semantics, and the four things that need host changes and cannot be done from a plugin.

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev obsidian-workbench 下一个 Next BigFocus →