Icon, Chinese display name and a one-line note for every DSH plugin, organized with folders, favorites, drag or pinyin ordering, list and grid views. Icons are auto-assigned to all installed plugins and can be overridden; import and export cover icons, names, notes, folders and order. Display-only: plugin files and cordis config are never modified; enable switches call the official plugin manager.
Install
# from npm (prebuilt)
dsh plugin --profile web add dsh-plugin-namecards
# from a prebuilt release tarball
dsh plugin --profile web add -w "https://github.com/3Tiga3/dsh-plugin-namecards/releases/download/v0.6.2/dsh-plugin-namecards-0.6.2.tgz"
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:3Tiga3/dsh-plugin-namecards
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
给 DSH「插件」页里的插件换图标、中文名(备注)和中文说明,并用文件夹、收藏、拖拽排序、列表/铺陈两种视图来管理。只改显示:不修改插件文件、不写 cordis 配置;唯一的写操作是你在界面里拨动的启用开关(转调官方插件管理器)。
两个页签
| 页签 | 作用 |
|---|---|
| 已安装 | 官方页面;列表里的图标/名称/说明会被名片覆盖 |
| 插件管理 | 编辑名片 + 文件夹 + 收藏 + 排序 + 列表/铺陈 + 启停开关 |
插件管理
- 工具栏:搜索 · 列表/铺陈 · +新建文件夹 · 按备注名排序 · 启用名片覆盖 · 导入 · 导出 · 刷新;
- 列表:收藏 → 自定义文件夹 → 未分组;组合包行可展开子行;行上可收藏、开关、更多操作;
- 按备注名排序:对所有文件夹与文件夹弹窗生效(备注名拼音);关闭后回到拖拽顺序;
- 铺陈:图标网格(72px),图标下是开关和备注名;文件夹是缩略方块,点开后显示其中的插件(毛玻璃遮罩覆盖整个窗口);
- 点插件行/图标 → 右侧「编辑名片」抽屉:图标、中文说明(支持多行,列表只显示单行省略号)、备注(显示名称)、所在文件夹;点抽屉外空白或 Esc 关闭;
- 文件夹弹窗内:点插件打开编辑名片,名片浮在弹窗之上;点空白处先退出名片、文件夹保留,再点一下才退出文件夹;Esc 同样逐层退出;
- 「恢复预设」:一键清空自定义名片与布局,重新生成默认图标、实验性插件文件夹、子代理插件文件夹与官方中文备注;
- 自动图标:装载后会为所有插件补一个合适的图标(按名称/说明匹配分类;不会覆盖你手动设过的);插件升级后若新版本带作者内置图标,会自动改用作者图标,没有作者图标则保持原样;未安装条目也一并补齐。
更新记录
- 0.6.6:文件夹弹窗里打开编辑名片后,点空白第一下只退出名片、文件夹保留;再点一下才退出文件夹;Esc 逐层退出。
- 0.6.5:编辑名片改为行内 z-index,稳定浮在文件夹弹窗遮罩之上;开关提示 toast 同样置顶。
- 0.6.3:插件升级后,若新版本带作者内置图标则自动改用作者图标,否则保持原样(新增版本基线,首次运行只记录基线)。
- 0.6.2:文件夹/对话框遮罩改为全屏毛玻璃(覆盖标题栏、侧边栏),点空白关闭。
安装
从 GitHub 安装(推荐,无需 npm)
dsh plugin --profile web add github:3Tiga3/dsh-plugin-namecards
桌面版:插件页 → 添加插件 → 安装第三方插件 → 填 GitHub 地址。
本地目录安装(开发)
插件页 → 添加插件 → 安装第三方插件 → 填本仓库的绝对路径。
从 npm 安装
dsh plugin --profile web add dsh-plugin-namecards
安装后重启一次应用(宿主半边需要重启);之后只改客户端/样式时刷新页面即可。
兼容性与安全
- 在 DSH 0.2.1-rc.2 / rc.3 上测试通过(桌面端);声明
engines.dsh: >=0.2.0-rc.1。 - 宿主半边只包装
pluginManager.listBundles()的返回值,用于替换展示字段;不修改任何插件文件、不写 cordis 配置。 - 本地 HTTP 路由只接受回环地址请求;不联网、不上传任何数据。
- 启用开关转调官方
setBundleEnabled/setPluginEnabled,部分改动需要重启后生效。
数据
%USERPROFILE%\.dsh\dsh-plugin-namecards\cards.json:名片、文件夹、收藏、顺序、视图%USERPROFILE%\.dsh\dsh-plugin-namecards\icons\:上传的图标- 导入 / 导出:导出 JSON 含图标(内置 id + 上传图 base64)、备注名、中文说明、文件夹名称与内容、排序;导入会连同图标一起恢复。
- 从旧版(
dsh-plugin-cards/~/.dsh/plugin-cards)升级时,数据会自动迁移并保留旧目录。
已知限制
- 官方「已安装」页结构不可改,管理界面都在「插件管理」页;
- 卡片说明只有一行;
- 依赖宿主内部接口做展示替换,DSH 大版本升级后可能需要适配;
- 只在本机可用(路由 loopback)。
自测
node test/run-host.mjs
node test/run-client.mjs
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 10715
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 10715
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
ccch1mneyyy/dsh-TUI★ 8617
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 7532
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
omdsh-dev/DSH-better-sidebar★ 5410
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
omdsh-dev/dsh-genui★ 1099
Interactive UI components rendered inline in replies: layout, charts, forms, quizzes, mermaid, 3D scenes, and an action event loop back to the model.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.