deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
PROJECT README
经典俄罗斯方块,做成标准 DSH 插件 bundle:一条命令安装,在 DSH 侧栏点「🎮 俄罗斯方块」即可全屏游玩,支持跨玩家共享排行榜。
经典 10×20 俄罗斯方块,带现代玩法要素:
G 开关)C 键暂存当前方块M/B 开关,默认关闭)dsh plugin --profile web add dsh-tetris
dsh plugin --profile web add github:jasoncanada77-star/dsh-tetris
git 安装会跑 prepare 构建脚本,pnpm ≥10 首次需要你在 profile 的 pnpm-workspace.yaml 里允许:
allowBuilds:
dsh-tetris: true
dsh web 后,侧栏底部出现 「🎮 俄罗斯方块」 按钮,点击即全屏游玩dsh plugin --profile web remove dsh-tetris提示:
tool.view.cordis是动态插件专属座位,bundle 版改用shell.overlay(全屏浮层)+sidebar.footer.action(入口按钮)。
不装 bundle,直接在当前会话里定义运行:
code.client:把 dynamic/plugin/client.js 的全部内容粘贴进去code.host:留空(纯 Client 端)cordis_run 后在 Run 卡片内直接游玩(渲染在 tool.view.cordis)src/client/index.js 顶部 LEADERBOARD.readUrl / writeUrl 常量即可指向任意 JSON 文档存储,无需改游戏逻辑| 按键 | 功能 |
|---|---|
← → |
左右移动 |
↑ |
旋转(顺时针) |
Z |
反向旋转 |
↓ |
软降(每格 +1 分) |
空格 |
硬降 |
C / Shift |
保留/交换方块 |
P / Esc |
暂停 / 继续 |
G |
幽灵方块 开/关 |
M |
音效 开/关 |
B |
BGM 开/关 |
标准 bundle 结构(官方 docs/user/develop/basic/publish.md 的"打包与安装"路线):
package.json 声明 dsh.bundle.patch → cordis.patch.yml(insert 一行 dsh-tetris)exports["./client"] → lib/client.js,dsh.client.platform: "web";模块加载器把它编入 /plugins/dsh-tetris/client.jssrc/client/index.js —— inject: ['slots'],注册 sidebar.footer.action(打开按钮)+ shell.overlay(全屏游戏)tsdown.config.ts 复刻官方 clientBundle 契约(cjs/browser + window.__ModuleLoader__.load({id, factory}) 闭包工厂 + react 走模块表 external)src/index.js 空 apply()(仅占位 host 行)setInterval/setTimeout/requestAnimationFrame,全部在 useEffect cleanup 中回收window.fetch 直连 JSON-REST 端点,游戏逻辑与传输解耦;卸载后经 disposed 标记丢弃异步结果dsh-tetris/
├── package.json # dsh.bundle + dsh.client manifest
├── cordis.patch.yml # 插件行 patch
├── tsdown.config.ts # 构建配置(node 半部 + client bundle)
├── src/
│ ├── index.js # Node 半部(空 apply)
│ └── client/index.js # 浏览器半部(游戏 + 排行榜)
├── lib/ # 构建产物(提交进仓库,git 安装无需构建也能跑)
├── dynamic/plugin/client.js # 动态插件版(cordis_define 分发)
├── original/index.html # 原始网页版(仅供对照)
└── README.md / LICENSE
data/plugins/<owner>__<repo>.yml 即自动收录CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。