A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
feat(history): agent runs are marked in History, file undo is kept by space, captures stop at 1568 px
yhh2957b6dd6791
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex f1062fefb..1108e4c9a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -22,6 +22,7 @@ published separately; it ships inside the editor.- **An agent call over MCP is one undo step, files included.** Everything one call changes — its scene edits and the project files it writes — goes back with one Undo and forward with one Redo, shown in History as **AI · *tool***. A call that only wrote files does not mark the scene unsaved, and the `undo` / `redo` tools answer once the files are back on disk. Every tool also carries MCP annotations from what it does (read-only, undoable, destructive), so a client asks before only the calls that leave the project or run unlisted code; a long call sends a progress note every five seconds; arguments are checked inside arrays and objects, with the place named; and each call is noted in a local log (`~/.estella/mcp-calls.jsonl`, never the arguments, `ESTELLA_MCP_CALL_LOG=0` to turn off) that `desktop/scripts/mcp-call-stats.mjs` summarises by the tools that fail most. `write_project_file` no longer reports a failure for a script it wrote outside the project's script folders.- **The MCP connection survives an editor that fails to start, and tells the agent how to work.** A call made while the editor cannot start says why, in the editor's own output, and the next call tries again; the connection used to drop with it. Every session gets short server instructions at connect (tool groups, the open scene versus the running game, `step` instead of waiting, one call per undo step). Saves, exports, project creation and play-mode tools are no longer undo steps, so Undo does not roll a saved file back. A cancelled call does not start, and a composite one stops at its next step. `enable_tools` takes `plugins`, for clients that do not refresh their tool list.+- **History shows where an agent run began, and an agent's undo reaches further back.** A rule marks each run's start (**AI run · client · time**), so taking the whole run back is one click on the row above it. Copies of the files agent calls write are kept by space (512 MB) instead of the last 32 calls, and a step whose copies had to go is marked **files kept** before anyone presses Undo. Screenshots an agent takes are sent at 1568 px on the long side by default — what Claude's vision input looks at — which halves their size with nothing seen lost.- **Plugin agent tools reach MCP clients.** A tool a plugin lends with `ctx.agentTools.register` is now listed to every connected MCP client beside the editor's own, and a call runs in the editor. Its `schema` is checked first, and a tool whose `effect` is not `read` is offered only while the editor lets agents change the project. The LDtk plugin's `estella_ldtk_import` is the first.## [0.97.0] - 2026-10-31diff --git a/desktop b/desktopindex ad4ea5062..aa1f0aeb1 160000--- a/desktop+++ b/desktop@@ -1 +1 @@-Subproject commit ad4ea50625e052ab2d713d2299e7ea916442a8b8+Subproject commit aa1f0aeb1033eb0ff5eef4eac76eb0e8b193ee67diff --git a/docs/astro/src/content/docs/agents/mcp.mdx b/docs/astro/src/content/docs/agents/mcp.mdxindex f80918554..c15510801 100644--- a/docs/astro/src/content/docs/agents/mcp.mdx+++ b/docs/astro/src/content/docs/agents/mcp.mdx@@ -232,6 +232,9 @@ folder in one call — each asset keeps the settings the patch does not name.one **Ctrl/⌘ + Z**, and comes forward again with Redo. The step shows in **History** as **AI · *tool***. A call that only wrotefiles does not mark the scene unsaved. The agent's own `undo` / `redo` tools answer once the files are back on disk.Saving, exporting, creating a project and anything done to the running game are not steps: Undo does not take back a save.+ History draws a rule where each agent run begins (**AI run · *client* · *time***): clicking the row just above it takes the+ whole run back. Copies of written files are kept while they fit in 512 MB; a step whose copies had to go is marked+ **files kept**, and its Undo takes back only the scene part.- **Your client knows what each tool does.** Every tool carries MCP annotations: reading tools are marked read-only, and only theones that leave the project or run code nobody listed (an editor command, a probe in the running game) are marked destructive.A client that asks before such calls asks only before those.diff --git a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdxindex 5bad980e0..281fd2c56 100644--- a/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx+++ b/docs/astro/src/content/docs/zh-cn/agents/mcp.mdx@@ -207,6 +207,8 @@ claude mcp add estella --env ESTELLA_MCP_ALLOW_WRITES=1 -- \- **一次调用就是一步撤销。** 一次调用改的所有东西——场景改动*和*它写的项目文件——按一次 **Ctrl/⌘ + Z** 一起退回,重做再一起回来。这一步在**历史**里显示为 **AI · *工具名***。只写了文件的调用不会把场景标成未保存。代理自己的 `undo` / `redo` 工具会等文件回到磁盘上才回复。保存、导出、新建项目以及对运行中游戏做的事不算步骤:撤销不会把一次保存退回去。+ 历史面板会在每次代理运行开始的地方画一条线(**AI 运行 · *客户端* · *时间***):点它上面那一行,就把整次运行退回去。+ 写过的文件副本在 512 MB 以内都会保留;副本不得不清掉的步骤会标出**文件不可撤回**,撤销它只退回场景部分。- **客户端知道每个工具会做什么。** 每个工具都带 MCP 注解:读取类标为只读,只有离开当前项目、或执行没人列得清后果的代码(编辑器命令、在运行中的游戏里跑探针)的才标为破坏性。会在这类调用前询问的客户端,只会在这些调用前问。- **长调用会说自己还在跑。** 请求了进度的客户端每五秒会收到一次:哪个工具在跑、跑了多久——打开大场景或导出不再像卡住了。