aga-j/dsh-mini-games

aga-j★ 0JavaScript最后同步: 2026-08-19

在 GitHub 打开

DeepSeek Harness details 面板的纯前端小游戏合集:猜数字 / 2048 / 扫雷。一键安装,无后端,最高分存 localStorage。

README 摘要

dsh-mini-games 🎮 纯前端小游戏集合插件,挂在 DeepSeek Harness Web 界面的 details 面板 (右侧栏,可拖拽调宽、可收起为零宽)。 内置三个可独立游玩的小游戏: 猜数字 / 2048 / 扫雷 。无宿主逻辑、无后端、最高分存 localStorage 。 功能 - details 面板常驻游戏集合页 :标签切换 猜数字 / 2048 / 扫雷,切换时游戏状态保留 - 🎮 右上角悬浮开关 :原生 UI 无法用鼠标重新打开收起的 details 面板(rc 半成品),本插件在 shell.overlay 插槽自带了开关按钮;无有效会话时点击会给出提示 - 最高分本地持久化 ( localStorage ,键前缀 dsh-mini-games: ) - 2048 支持方向键 + 屏幕按钮;扫雷支持右键插旗、首击安全、计时 - 全部使用 DSH 主题别名 token( --dsw-alias- )配色,跟随明暗主题 安装 也可以直接从 GitHub 安装(首次会要求放行 allowBuilds): 安装过程中的 missing peer @deepseek-ai/ 警告是正常现象(profile 的 autoInstallPeers: false ,这些 peer 运行时由官方 bundle 提供), 不要 手动安装 @deepseek-ai/cordis 。 重启后,点击聊天区 右上角的 🎮 圆形按钮 打开/收起小游戏面板。 验证安装 (可选): 要求 :DeepSeek Harness 0.1.0-rc.6+(Web profile)。面板需要处于一个 非空白的会话 中(首页或新建的空白会话点击 🎮 会提示「先进入一个会话」)。 卸载 临时禁用(不卸载):编辑 %USERPROFILE%\.dsh\profiles\web\cordis.patch.yml 加两行,重启生效,删掉即恢复: 工作原理(对照 0.1.0-rc.6 源码核实) 机制 出处 说明 插槽 sidebar / conversation / details / shell.overlay @deepseek-ai/dsh-client-ui-layout 三栏 AppFrame 声明; details 为 { kind: 'single', scope: 'session' } ,关闭时零宽 ctx.slots.inject(key, cb) @deepseek-ai/dsh-client-runtime 等待目标插槽 声明 出现后执行回调,声明坍缩时自动清理——注册进 details 必须走它(ui-layout 是兄弟入口,无排序边) ctx.slots.register({name, ...}, Comp) @deepseek-ai/ds…

在 GitHub 查看完整 README →
娱乐/广告2048deepseek-harnessdshdsh-pluginguess-numberminesweepermini-games

分类