birdman1992/dsh-birdman-plugins--plugins-dsh-plugin-workspace-artifacts0

dsh-plugin-workspace-artifacts

产物视图:在 Web 会话视图添加「产物」标签,浏览当前工作区文件树并查看文件内容(代码高亮 / Markdown 渲染)。

AI 분석

核心用途是在 DSH Web 界面中直观浏览和查看工作区文件。适合需要频繁查看生成代码、Markdown 产物且不希望离开会话界面的用户。支持大文件保护,超过 256KB 自动截断。

패키지
dsh-plugin-workspace-artifacts
버전
0.1.0
최근 업데이트
2026. 8. 14.

설치

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:birdman1992/dsh-birdman-plugins#db6e2f3d4ece46ab36b5fdd0ee345e548e93a2b0&path:plugins/dsh-plugin-workspace-artifacts

dsh-plugin-workspace-artifacts

English | 中文

作用

产物视图(Artifacts):在 Web 会话视图中添加「产物」标签,浏览当前会话 工作区(session.header.cwd)的目录树并查看文件内容:

  • 文件树:目录可展开 / 折叠(懒加载),显示文件大小
  • 文件查看:代码自动高亮(内置分词器,支持 JS/TS/Python/Go/Rust/Java/C 系/ Shell/YAML/JSON/SQL/Markup/CSS 等)、Markdown 渲染(标题 / 列表 / 代码块 / 引用 / 链接)
  • 大文件保护:超过 256KB 自动截断

架构(双面插件):

  • host 面lib/index.js):通过 connection RPC 通道(/rpc 通道的 artifacts/workspaceartifacts/listartifacts/read 端点)暴露 文件系统能力
  • client 面lib/client.js):浏览器 bundle,向 conversation.view 槽位注册「产物」标签,通过 connection.rpc.call 调用 host 端点

安装

dsh plugin --profile web add github:birdman1992/dsh-birdman-plugins#path:plugins/dsh-plugin-workspace-artifacts

安装后重启 profile:

dsh --profile web

打开任一会话,「产物」标签出现在会话视图顶部标签栏中。