Replaces the new-session hero with a combined picker: role cards for the agent presets and a workspace card, collapsed into capsule buttons that expand into two scrollable rows.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:wwwangzilin/dsh-role-cards
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 Web 插件:新建会话界面(hero)的组合角色卡 + 工作区卡选择器。
折叠时是一排小胶囊按钮(🎭 角色 / 📂 工作区);展开时是两行紧凑卡片(角色预设、 系统预设,然后工作区),支持悬停展开详情、滚轮切换、点击选择。
结构
src/client/ComboPanel.tsx— 组合面板组件(角色卡 + 工作区卡)src/client/index.ts— 客户端插件入口:注册两个 hero slotsrc/index.ts— host half(空 apply 占位)src/invariant.ts— invariant 伴随插件lib/— tsdown 构建产物(lib/client.js是浏览器 bundle)cordis.patch.yml— bundle patch(profile boot 挂载)tsdown.config.ts— 独立 tsdown 配置(node half + client half)
安装
在 ~/.dsh/profiles/web/package.json:
"dependencies": {
"dsh-role-cards": "link:D://projects//ds//dsh-role-cards"
}
并把 "dsh-role-cards" 加入 dsh.profile.bundles,然后重启:
pnpm dsh web
构建
pnpm install # 安装 tsdown / react 等 devDependencies
pnpm build # tsdown 产出 lib/(index.js + invariant.js + client.js)
也可以直接用 harness 仓库里的 tsdown(无需本地 node_modules):
node D:\projects\ds\deepseek-harness\node_modules\.bin\tsdown.cmd
说明
- 客户端注册
conversation.hero.agentPreset(渲染 null,顶掉官方 chip)与conversation.hero.workspace(渲染ComboPanel);不传priority,由 client-runner facade 自动分配更低优先级从而胜出。 - 角色卡显示预设
id属于ROLE_IDS(nekomode / luna / akane / rin / mei)时 使用ROLE_META的 emoji + tag;其余预设归入「系统模式 / 自定义」系统卡片。 - 「添加工作区」按钮需要
pickDirectory注入才可用(当前版本未注入,保持禁用)。
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.