Licence
MIT
Version
0.1.3
Deps
0
Size
34 kB
Vulns
0
Weekly
0
@hzgotb/dsh-client-ui-work-inspector
将对话中的 Think、工具调用和执行过程收纳到一个可展开的执行过程面板中。执行期间显示“已执行 N 步”胶囊;回复完成后胶囊会自动隐藏。点击执行入口后,执行过程以右侧 inset slideover 显示,不占用 DSH 的 details 栏。
安装
使用 npm Trusted Publishing 发布的最新版本为 0.1.3。
先把插件安装到 DSH 的 web profile:
dsh plugin --profile web add @hzgotb/dsh-client-ui-work-inspector
然后编辑 $DSH_HOME/profiles/web/cordis.patch.yml。默认的 $DSH_HOME 是 ~/.dsh,也可以通过环境变量 DSH_HOME 修改。将下面的条目加入顶层 YAML 数组:
- insert:
- id: ui-work-inspector
name: '@hzgotb/dsh-client-ui-work-inspector'
如果文件还不存在,可以创建它;空文件不是有效的 patch,至少要包含上面的数组内容。保存后重启 Web profile:
dsh web
也可以显式指定版本:
dsh plugin --profile web add @hzgotb/dsh-client-ui-work-inspector@0.1.3
验证
发送一个会触发 Think 或工具调用的请求。执行过程中应看到“已执行 N 步”胶囊;点击后应打开右侧执行过程面板。回复完成后,胶囊不再显示,但已完成的消息仍可通过消息操作区的执行过程入口查看记录。
更新与卸载
更新包:
dsh plugin --profile web update @hzgotb/dsh-client-ui-work-inspector
卸载包后,还要从 $DSH_HOME/profiles/web/cordis.patch.yml 删除 ui-work-inspector 条目:
dsh plugin --profile web remove @hzgotb/dsh-client-ui-work-inspector
最后重启 dsh web。
说明
这是一个 Web 客户端插件,不会新增模型工具或修改会话数据。插件依赖 DSH 的 locale、runtime、conversation、layout 和 primitives 客户端模块;这些依赖由 DSH profile 提供。