dsh-role-cards
Manifest validDSH Web 插件:新建会话界面上的角色卡 + 工作区卡选择器(毛玻璃卡片墙 / 横向滚动 / 角色主题色 / 入场动画)
dsh-role-cards
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注入才可用(当前版本未注入,保持禁用)。
Comments
Loading…
Similar plugins
by zhm20001
本项目为 DeepSeek Harness web 控制台带来一块 2D 调色盘应用板。唤出悬浮面板,即时搜索、分类过滤、全键盘导航,把散落在侧栏与浏览器里的插件页面收进一张可自定义的卡片网格。
★ 0
MIT
TypeScript
Aug 31, 2026
dsh plugin --profile web add dsh-plugin-palette-boardby chinosk6
Deepseek Harness 角色扮演插件 Role-play conversations, character-card authoring and image generation for DeepSeek Harness
★ 9
↓ 488/wk
MIT
TypeScript
Sep 13, 2026
dsh plugin --profile web add dsh-roleplayby BiKing567
DSH 插件:把每个子代理渲染成主对话里可点击的卡片,点击直接进入子代理会话(与标题栏同一路径)。| DSH plugin: render every subagent as a clickable inline card that opens the child session — same navigation the header's subagent catalog uses.
★ 0
MIT
JavaScript
Aug 31, 2026
dsh plugin --profile web add dsh-subagent-panelby jinzhengen964-cmyk
DSH web 背景皮肤插件:将 DSH 界面背景替换为本地图片(半屏居中覆盖对话区域,AI 输出卡片不透明)
★ 0
MIT
JavaScript
Aug 20, 2026
dsh plugin --profile web add dsh-bg-skinby He2way
DSH client plugin: flip the page over to a glass task console — live jobs, subagents, session and workspace cards, an infinite canvas that unrolls a card into its own controls, embedded web apps, and a conversation box that edits the canvas.
★ 0
MIT
JavaScript
Sep 17, 2026
dsh plugin --profile web add dsh-task-consoleby etony668
DSH 项目任务看板插件:会话「任务看板」视图 + 父子任务树工具与技能 + 本地 JSON 存储(CodexFF 移植)
★ 3
MIT
JavaScript
Sep 11, 2026
dsh plugin --profile web add @etony668/dsh-task-board