1475505/miliastra-beyond-simulator
千星沙箱模拟器:Lua 驱动的 2D 奇域外置沙箱 ,支持 DeepSeek Harness、Web 和 MCP
Project Overview项目介绍
miliastra-beyond-simulator is a 2D + Lua development sandbox and playtest simulator for the miliastra/千星奇域 game engine. It executes client-side Lua scripts outside the real game, renders the corresponding UI, and reacts to player input so that an AI agent or a human developer can iterate on a project without repeatedly opening the official client and editor. The product is distributed as three independent packages that share the same core: a DeepSeek Harness plugin (dsh-plugin-beyond-simulator), a browser-based full-stack web app (beyond-simulator-web), and a local MCP stdio server (beyond-simulator-mcp). All three are published to npm under matching names and are also installable from the GitHub repository 1475505/miliastra-beyond-simulator or from a prebuilt .tgz whose filename and version are recorded in release/manifest.json.
The recommended workflow is a seven-step loop: write a design proposal, define TDD test cases, build an HTML prototype for confirmation, prepare art references and assets, implement the Lua scripts and UI in the simulator, run automated playtests, and finally verify the exported assets on the real engine. The Harness plugin additionally ships a "千星 2D+Lua 游戏制作" Agent preset that can be selected when starting a new session, and a playtest skill so the agent can drive the simulator, read screenshots, inspect logs, and replay recorded test timelines. Installation requires Node.js 22+; the Harness route uses dsh plugin --profile web add dsh-plugin-beyond-simulator (or github:1475505/miliastra-beyond-simulator for source builds) followed by dsh --profile web --dump-config and dsh web. Source builds also need pnpm 10.15.0, and the first install may prompt for build-script approval.
The editor covers 11 client widget types with image, text, and preset-button editors, supports 5 PC/phone canvases for layout checks, and simulates 1–8 local players across separate viewports with shared variables and signals. Save data is a single JSON archive containing server UI, client UI templates, and Lua scripts; the package can also export supported GIA subsets, UI authoring JSON, and individual script bundles. Important limits: emulator success does not guarantee real-device success, the server side only models variables and signals (no full official node graph or network play), image previews are limited to IDs 100001–100006, and the bundle does not include the official asset library or its Lua API docs. The project is licensed GPL-3.0-only; automated npm publishing is driven by npm-* Git tags after binding a Trusted Publisher, and the self-contained test suite runs from a clean checkout using only repo sources and synthetic data.
千星沙箱模拟器(miliastra-beyond-simulator)是面向千星奇域的 2D+Lua 游戏开发工具,可在游戏外运行客户端 Lua 脚本、渲染 UI 并响应操作。它以三种方式分发:DeepSeek Harness 插件、Web 前后端服务以及本地 MCP stdio 服务,同时支持 npm、GitHub 源码与本地 .tgz 三种安装入口,并通过 release/manifest.json 记录当前版本与文件。
安装 Harness 插件需准备 Node.js 22+ 与 DeepSeek Harness,使用 dsh plugin --profile web add dsh-plugin-beyond-simulator、dsh plugin --profile web add github:1475505/miliastra-beyond-simulator 或本地包路径任一命令,再执行 dsh --profile web --dump-config 与 dsh web 启动;插件附带的"千星 2D+Lua 游戏制作"Agent 预设可在新建会话时选用。Web 端通过 beyond-simulator-web --workspace ../my-game --open 启动 MCP 则需在客户端配置 beyond-simulator-mcp --workspace <绝对路径>。
典型工作流遵循"策划案 → TDD 测试用例 → HTML 效果展示 → 美术参考 → Lua 编码 → 模拟器测试 → 真机验证与修复"七步循环;模拟器提供可视化 UI 编辑器、11 类客户端控件、1–8 人本地多玩家模拟、5 种 PC/手机画布、AI 试玩工具与 JSON 存档导出。局限包括模拟器通过不等于真机通过、部分 GIA 内容未覆盖、图片 ID 仅 100001–100006 有代理预览;源码采用 GPL-3.0-only,开发依赖 Node.js 22+ 与 pnpm 10.15.0。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:miliastra-beyond-simulator(1475505/miliastra-beyond-simulator)
仓库:https://github.com/1475505/miliastra-beyond-simulator
本站详情页:https://www.yhbd.top/plugins/1475505-miliastra-beyond-simulator/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 GPL-3.0 · ⭐ 39 · 最近提交 2026-10-01 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 39 stars - an early-stage project星标 39,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-plugin-beyond-simulator
把 1475505/miliastra-beyond-simulator 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
千星沙箱模拟器
面向千星奇域 2D + Lua 脚本驱动的游戏开发的独立模拟器:在游戏之外执行客户端 Lua 脚本、显示 UI、响应操作,并让 AI 直接试玩游戏。
提供 Web 编辑器、MCP 服务和 DeepSeek Harness 插件三种接入方式,共用同一套模拟器核心。可以独立在浏览器中使用,也可以通过 MCP 接入 OpenCode、WorkBuddy、Codex 等 AI 工具,配合 Web 查看和试玩。
你可以在浏览器中编辑界面、调试脚本,也可以让 AI 读取工程、修改控件、点击按钮、发送按键、查看截图与日志,完成“编写 → 试玩 → 检查 → 修改”的开发循环。日常调试无需反复打开游戏和官方编辑器,完成后再导出资产进行真机验证。
包含什么
| 能力 | 你可以做什么 |
|---|---|
| 可视化 UI 编辑器 | 查看控件树,调整位置、尺寸、锚点和属性;创建 11 类客户端控件,其中图片、文本框和预设按钮提供较完整的编辑能力。 |
| Lua 脚本模拟运行 | 管理多个脚本并挂载到客户端控件或模板,检查脚本生命周期、UI 操作、输入响应和动画效果。 |
| 独立试玩窗口 | 启动、暂停、继续和单步运行,通过鼠标、触摸或按键测试交互,查看运行状态、日志和错误。 |
| 多设备与多玩家模拟 | 在 5 种 PC / 手机画布上检查布局;在本地模拟 1–8 名玩家,切换视角检查变量与信号交互。 |
| AI 试玩与自动测试 | 通过工具直接编辑工程、驱动操作、获取截图;记录操作时间线,回放用例并检查控件、变量和日志。 |
| 七步游戏制作工作流 | 从策划案与测试用例出发,展示 HTML 效果、准备千星美术素材,再完成 Lua 编码、测试与真机反馈修复。 |
| 存档与资产交换 | 用完整 JSON 存档保存工程,导入导出 UI、Lua 脚本及已支持的 GIA 内容,衔接后续编辑与交付。 |
11 类控件的实际运行能力和缺口见 客户端控件支持矩阵。文本视窗、网格视窗现支持基础滚轮/拖拽/触摸与滚动条;编辑、字段存取与完整仿真程度分别说明。
集成方式
按你的开发环境选择接入方式。Web 可以独立使用;让 AI 直接编辑和测试工程时使用 MCP;需要边对话边看画面时组合 MCP + Web:
| 方式 | 适合谁 | 使用体验 |
|---|---|---|
| Web 编辑器 | 在浏览器中编辑、调试,或配合外部 AI 工具查看结果 | 独立运行 UI/Lua 编辑器与试玩窗口,预览磁盘中的工程存档。 |
| MCP 服务 | 使用 OpenCode、WorkBuddy、Codex 等支持本地 MCP stdio 的 AI 工具 | 向 AI 提供工程编辑、试玩、截图和保存工具,可独立使用或配合 Web。 |
| DeepSeek Harness 插件 | 使用 DeepSeek Harness | 在 Harness 内嵌编辑器、注册模拟器工具,并提供 Skill 与 Agent 预设。 |
三个包已发布到 npm,也可从 GitHub 源码或本地构建的 .tgz 安装。Web 包名和启动命令均为 beyond-simulator-web。本地安装包路径以仓库根目录为基准;当前版本及文件名见 release/manifest.json。
Web 部署
准备 Node.js 22+,从 npm 安装后即可启动完整前后端:
npm install -g beyond-simulator-web
mkdir ../my-game
beyond-simulator-web --workspace ../my-game --open
也可以从源码启动。准备 pnpm 10.15.0,在本仓库根目录执行:
pnpm install --frozen-lockfile
mkdir ../my-game
pnpm dev:web --workspace ../my-game
这里的 my-game 是保存游戏文件的工作区。已有项目时,跳过创建目录,将参数换成现有目录,例如 --workspace E:/my-game。
启动后打开:
Web 也支持安装预构建包运行,仓库提供了 Docker 部署配置。对外部署时需配置访问口令和 HTTPS;当前面向单个可信操作者,不提供网站用户之间的项目权限隔离。安装包、Docker 和部署参数见 Web 使用与部署指南。
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
esengine/DeepSeek-Reasonix
strukto-ai/mirage
chuspeeism/dashi-taskboard
Aisland-SJL/dsh-worktable
ccch1mneyyy/working-activity
zhoushoujianwork/easyeda-agent