huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:heswy/dsh-game-market
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
把大肥鱼干活的时间,变成一局游戏。
DeepSeek Harness 里的游戏市场。
大肥鱼忙着跑任务时,你在旁边开一局;右下角的小鲸鱼替你盯着进度,需要你时叫你一声。游戏自动存档,下次接着玩。
开发者的游戏也能投进来,审核通过后上架,所有人可玩。
两种方式,任选其一:
dsh plugin add dsh-game-markethttps://github.com/heswy/dsh-game-market装完后重启 DSH,侧栏出现「游戏市场」。
装的是最新发布版(当前 1.5.7)。需要 DSH >=0.2.0 <0.3.0、Node >=20。
![]() |
![]() |
| 我的游戏:5 款内置游戏 | 游戏详情:玩法、权限与游戏信息 |
| 游戏 | 类型 | 怎么玩 |
|---|---|---|
| Snake | 街机 | 方向键 / WASD 控制方向,收集食物,避开自己 |
| 轨道信使 Orbit Courier | 街机 | 在环行星的三条轨道间穿梭,收取货舱、穿过站门交付,躲避碎岩;一局约 120 秒 |
| 2048 | 益智 | 4×4 滑动合并相同数字,冲击 2048;每局一次撤销 |
| Jump | 街机 | 纵向平台跳跃,自动弹跳,踩移动 / 易碎 / 弹簧平台 |
| Breakout | 街机 | 鼠标或方向键移动挡板反弹球,击碎砖块,闯过 5 个关卡 |
5 款游戏全部内置,随插件打包,安装后即列出,5 款都带「内置」徽标。
官方目录另收录社区游戏:当前 1 款 Little Leviathan(维护者示例投稿,用于验证投稿 → 审核 → 上架链路)。
游戏铺满主工作区,顶部是返回 / 暂停,右下角是小鲸鱼。
右下角的小鲸鱼显示 Agent 状态:
| 状态 | 显示 |
|---|---|
| 运行中 | 点开可以继续上一局,或挑一个游戏 |
| 等你 | 「Agent 在等你 · 去看看」,处理审批或提问 |
| 完成 | 「任务完成啦 / 查看结果」,不暂停、不关闭游戏 |
| 出错 | 「遇到了一点问题」,点开回会话看原因 |
会话 tab 行还有状态 pill:等你 / 完成 / 出错 / 已暂停。
storage / score 两项能力,配额是 32 个键、单值 256 KiB、单游戏 1 MiB。Agent 需要你回答普通问题时,游戏暂停,问题面板出现在游戏上:选答案、补充文字、提交,然后继续游戏。
危险工具授权仍然回到 DSH 原生审批,不在游戏里处理。
设置里的「版本与更新」显示当前 Host / Client 版本、目标版本与发布通道。一次更新会:
另外:市场首页 / 我的游戏 / 详情 / 搜索 / 分类;本地安装 .html / .dshgame.zip;多文件资源包(asset-zip-v2)。
const game = DSH_GAME_SDK.createGameSDK();
// 在 ready 之前注册生命周期:pause / resume / before-save / hidden / visible
game.lifecycle.on('before-save', () => saveNow());
const info = await game.ready(); // 握手:主题与语言
const saved = await game.storage.load('current'); // 读档,缺失返回 null
await game.session.start();
await game.score.submit(score); // 交分数
await game.session.end({ outcome: 'completed', score });
dsh-game create my-game --template vanilla # 或 react(也可用 create-dsh-game)
cd my-game
npm run build && npm run validate && npm run pack
npm run dev # 本地 Runtime Simulator,无需真实 Agent
| 命令 | 作用 |
|---|---|
dsh-game create <id> |
从 Vanilla / React 模板生成工程 |
dsh-game build |
打成确定性单文件,或 asset-zip-v2 资源包 |
dsh-game validate |
与平台同一套校验(含运行时契约) |
dsh-game dev |
本地 Runtime Simulator,模拟暂停 / 存档 / 读档 |
dsh-game pack |
产出 <id>-<version>.html + .sha256 |
dsh-game publish |
生成目录条目、上传计划与审核清单 |
游戏运行在 sandbox iframe 里,页面 CSP 为 default-src 'none'、connect-src 'none';能力只有 storage 与 score;全出血,顶部 112px / 右下 96×96 安全区留给平台控件。
社区游戏目录是一个独立的 GitHub 内容仓库:heswy/dsh-game-registry。
dist/<id>-<version>.html(或 .dshgame.zip)+ .sha256、封面、截图、公开源码与固定 commit、submission.json。官方社区目录已开通:首个投稿位,留给你。
sandbox iframe 中,入口文档 CSP 为 default-src 'none'、connect-src 'none'、frame-src 'none',不能发起网络请求,也读不到 DSH 的页面与数据。storage / score;详情页会说明权限(例如「可保存游戏进度与成绩 · 不访问文件、网络或对话内容」)。.html / .dshgame.zip 不校验来源,只装你信任的文件。网络较慢时安装社区游戏失败? 如果提示
GM-5035(下载超时),点「重试」即可——这是到 GitHub 的连接超时,不是包损坏;插件会自动重试 2 次,仍失败时手动重试通常在网络恢复后一次成功。
| 项 | 值 |
|---|---|
| 当前版本 | v1.5.7(2026-11-05),tag v1.5.7,发布提交 619bb5a;npm dsh-game-market |
| 兼容 DSH | >=0.2.0 <0.3.0 |
| Node | >= 20 |
| 验证 | node --test 1580 例:1575 通过 / 4 跳过 / 1 例环境相关失败(干净 CI 为 0 fail);CHECK OK (45);安装产物 93 文件 / 3,511,894 字节 |
| 许可证 | MIT © 2026 heswy |
| 版本 | 内容 |
|---|---|
| v1.5.7 | 发布到 npm:dsh plugin add dsh-game-market;补 repository / keywords / homepage;发布工具支持公开包 |
| v1.5.0 | 首版公开发行:多文件资源包、平台自更新、游戏内问答、可移植存档、市场前端改版 |
| v1.5.1 | 修复 DSH 0.2.1-rc.5 下会话标题栏不渲染、游戏入口消失 |
| v1.5.2 | 「无需保存」不再误报为保存失败 |
| v1.5.3 | 保存提示移入会话标题栏,跟随宿主语言 |
| v1.5.4 | 目录索引增加 jsDelivr / GitHub API 镜像降级,在线状态收进设置 |
| v1.5.6 | 2048 / Breakout / Jump 改为内置:全新安装即列出 5 款内置游戏 |
| v1.5.5 | 「版本与更新」面板重做:四步步骤条、状态徽章、描边按钮与版本胶囊 |
每个版本的完整说明在 docs/releases/。
| 方向 | 状态 |
|---|---|
| 社区游戏上架(目录已开通,首个投稿位开放) | 已开放 |
| 实体硬件跨机迁移验证(功能已在独立主机通过,实体机未实测) | 待补验证 |
| 三个能力 seam(资源路由 / 受限解压 / 问答领域接口)等待 DSH 上游支持 | 待上游 |
| 多人联网、账号、付费、云排行榜、云存档同步 | 暂不做 |
当前版本明确不做的还有:游戏内处理危险操作审批、接管 DSH 品牌或自动更新、在游戏包里放安装脚本或任意可执行 Host 扩展。
| 文档 | 内容 |
|---|---|
| 开发者指南 | 从模板到上架 |
| CLI 参考 | 命令行与退出码 |
| 投稿指南 | 作者投稿流程 |
| 运营手册 | 维护者审核与上架 |
| 投稿契约 | 字段、字节与审核绑定 |
| V1.5 契约 | 包格式、安全边界、更新协议 |
| 发布流程 | 版本、索引与发布 |
| 发布记录 | 每个版本改了什么 |
本项目以 MIT 许可发布,作者 heswy。
FishLogo 组件(MIT),不复制、不热链官方图形资产;本项目不声称 DeepSeek 官方背书。yauzl@3.4.0(+ 传递依赖 pend@1.2.0,均 MIT),只用于 asset-zip-v2 解包,明细见 THIRD-PARTY-NOTICES.md。While the big fish grinds, you play.
The game market inside DeepSeek Harness.
Games fill the main workspace while the Agent works; the little whale keeps watch, calls you when it needs you, and your run auto-saves for next time.
Developers can submit their own games too: once reviewed, they go live for everyone.
中文 · English
Two ways, pick either:
dsh plugin add dsh-game-markethttps://github.com/heswy/dsh-game-marketRestart DSH afterwards; Game Market appears in the sidebar.
Installs the latest release (currently 1.5.7). Requires DSH >=0.2.0 <0.3.0 and Node >=20.
| Game | Genre | How it plays |
|---|---|---|
| Snake | Arcade | Arrow keys / WASD, collect food, avoid yourself |
| Orbit Courier | Arcade | Switch between three orbital lanes, collect cargo, pass station gates, dodge debris; ~120 s a run |
| 2048 | Puzzle | Slide and merge on a 4×4 board, one undo per run |
| Jump | Arcade | Endless vertical platformer with moving, fragile and spring platforms |
| Breakout | Arcade | Mouse or arrow keys, bounce the ball, clear 5 levels |
All five games are built in and ship with the plugin; a fresh install lists all five in My Games, each marked as built-in.
The official catalog adds community games: currently one, Little Leviathan (a maintainer example submission that exercises the submit → review → publish path).
.html and .dshgame.zip installs; multi-file packages (asset-zip-v2).dsh-game create my-game --template vanilla
cd my-game && npm run build && npm run validate && npm run pack
npm run dev # local Runtime Simulator, no real Agent needed
Games run in a sandboxed iframe with default-src 'none' and connect-src 'none': no network, no access to DSH files or conversations, only storage and score capabilities. Docs: developer guide, CLI reference, developer Skill.
The community catalog lives in heswy/dsh-game-registry. Prepare a package and screenshots, open the Submit a game issue form, and a maintainer reviews, plays and publishes it through a catalog PR. The first submission slot is open.
Community game install failed on a slow network? If you see
GM-5035(download timeout), press Retry — the connection to GitHub timed out; the package is not corrupt. The plugin retries twice automatically; if it still fails, a manual retry usually succeeds once the network recovers.
| Item | Value |
|---|---|
| Current version | v1.5.7 (2026-11-05), tag v1.5.7, release commit 619bb5a; npm dsh-game-market |
| DSH | >=0.2.0 <0.3.0 |
| Node | >= 20 |
| Verification | node --test: 1580 tests, 1575 pass, 4 skip, 1 environment-related failure (0 fail on clean CI); CHECK OK (45); 93-file / 3,511,894-byte artifact |
| License | MIT © 2026 heswy |
Out of scope for now: multiplayer, accounts, payments, cloud leaderboards, cloud saves, handling dangerous approvals inside the game, or shipping install scripts / arbitrary host extensions inside game packages.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: game。