yasin0324/dsh-2048

yasin0324★ 0JavaScriptLast synced: 2026-08-16

Open on GitHub

🎮 在 DeepSeek Harness 里玩 2048

README excerpt

dsh-2048 🎮 一个在 DeepSeek Harness 里玩的 2048 小游戏,等 AI 回复的时候打发时间。 两种存在形式: - 动态 Cordis 插件 ( plugin/client.js ):注入运行中的 DSH 进程,代码不落盘、进程重启后消失——适合快速迭代。 - 常驻组合包插件 (仓库根目录,标准 dsh.bundle 格式):用官方 dsh plugin 命令安装进 profile,每次启动 DSH 自动加载,跨会话常驻——推荐日常使用。 项目结构 常驻版安装(推荐:官方 dsh plugin) DSH 的标准插件机制是「组合包 → profile」:插件包在 package.json 里声明 dsh.bundle , dsh plugin 一条命令完成依赖安装与补丁层接线。本仓库 已提交构建产物 ( client.js 即 bundle), 安装时无需构建。 前提条件: - dsh CLI 在 PATH(与 harness 同版本) - pnpm 在 PATH: corepack enable pnpm (Node 22+ 自带 corepack)或自行安装 pnpm - 使用 Web 界面 (游戏按钮在浏览器端) 安装后重启 dsh web 并刷新页面,输入框左侧出现「🎮 2048」。 卸载(官方): 方式二:无 pnpm 环境的手动安装(回退方案) scripts/install.sh 全自动、幂等:拷贝包文件到 /.dsh/plugins/dsh-2048/ 、建 /node modules/dsh-2048 符号链接、把 ui-2048 行写入 /.dsh/profiles/web/cordis.patch.yml (该补丁文件被热重载监听,无需重启)。卸载用 scripts/uninstall.sh ( --purge 连文件一起删)。 方式三:把仓库地址发给你的 DSH(最省事)✅ 直接在你的 DeepSeek Harness 会话里说: 请安装这个仓库 https://github.com/yasin0324/dsh-2048 —— 优先用 dsh plugin --profile web add github:yasin0324/dsh-2048 ; 如果 dsh/pnpm 命令不可用,就克隆后运行 scripts/install.sh 。装完刷新页面。 对方的 agent(需要有 bash 工具,standard/code preset 默认都有)会按上面两条路装好。 Windows 请用 WSL 或方式二的手动步骤。 安全提示:让 DSH 执行网上脚本前请先审阅内容。本项目脚本只做——拷文件、建符号链接、 写补丁行,全部在用户目录内,不碰部署文件;仓库公开,可逐行检查。 独立版怎么玩 直接用浏览器打开 st…

View full README on GitHub →
Fun / Ads2048deepseek-harnessdshdsh-plugingameplugin

Category