@beremaran/godot-agent-loop 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +178 -668
  2. package/addons/godot_agent_loop/README.md +26 -16
  3. package/addons/godot_agent_loop/plugin.cfg +3 -2
  4. package/addons/godot_agent_loop/plugin.gd +840 -25
  5. package/agent-plugin/.claude-plugin/plugin.json +2 -2
  6. package/agent-plugin/.codex-plugin/plugin.json +3 -3
  7. package/agent-plugin/.mcp.json +1 -1
  8. package/agent-plugin/adapter-manifest.json +4 -4
  9. package/agent-plugin/pi/extension.ts +1 -1
  10. package/agent-plugin/skills/build-godot-game/SKILL.md +26 -5
  11. package/agent-plugin/skills/debug-godot-game/SKILL.md +20 -7
  12. package/agent-plugin/skills/ship-godot-game/SKILL.md +13 -3
  13. package/agent-plugin/skills/verify-godot-change/SKILL.md +17 -2
  14. package/build/authoring-session-manager.js +24 -1
  15. package/build/domain-tool-registries.js +5 -1
  16. package/build/editor-authoring-router.js +228 -0
  17. package/build/editor-bridge-protocol.js +2 -1
  18. package/build/editor-connection.js +29 -24
  19. package/build/editor-mutation-guard.js +3 -1
  20. package/build/editor-plugin-installer.js +2 -1
  21. package/build/editor-session-registry.js +392 -0
  22. package/build/editor-sync-queue.js +135 -0
  23. package/build/index.js +208 -29
  24. package/build/interaction-server-installer.js +1 -1
  25. package/build/lifecycle-trace.js +80 -0
  26. package/build/scripts/mcp_editor_plugin.gd +840 -25
  27. package/build/scripts/mcp_interaction_server.gd +76 -2
  28. package/build/scripts/mcp_runtime/core_domain.gd +2 -1
  29. package/build/scripts/mcp_runtime/system_domain.gd +2 -0
  30. package/build/server-instructions.js +5 -5
  31. package/build/session-timing.js +17 -1
  32. package/build/tool-definitions.js +99 -6
  33. package/build/tool-handlers/game-tool-handlers.js +21 -4
  34. package/build/tool-handlers/lifecycle-tool-handlers.js +361 -27
  35. package/build/tool-handlers/project-handler-services.js +50 -8
  36. package/build/tool-handlers/project-tool-handlers.js +10 -7
  37. package/build/tool-manifest.js +29 -1
  38. package/build/tool-mutation-policy.js +1 -0
  39. package/build/tool-surface.js +4 -4
  40. package/build/utils.js +14 -3
  41. package/package.json +5 -5
  42. package/product.json +9 -7
@@ -2,30 +2,40 @@
2
2
 
3
3
  An optional Godot 4 editor addon for
4
4
  [Godot Agent Loop](https://github.com/beremaran/godot-agent-loop). It adds a
5
- dock with authenticated connection status, live Agent Activity, human
6
- Pause/Resume Agent control, protocol and Godot compatibility diagnostics, and
7
- setup help for Claude Code, Codex, OpenCode, and Pi.
5
+ dock with authenticated connection status, live and replayed Agent Activity,
6
+ human Pause/Resume Agent control, and compatibility diagnostics.
7
+
8
+ Godot 4.7 or later is required.
8
9
 
9
10
  ## Install
10
11
 
11
- Copy `addons/godot_agent_loop/` into a Godot project, then enable **Godot Agent
12
- Loop Bridge** under **Project > Project Settings > Plugins**. Installing the
13
- addon is optional: the external MCP package creates and removes a transient
14
- bridge when this persistent addon is absent.
12
+ Install this directory as `addons/godot_agent_loop` in the Godot project, then
13
+ enable **Godot Agent Loop** under **Project > Project Settings > Plugins** and
14
+ restart the editor once. The **Agent Activity** dock remains present and says it
15
+ is waiting while no MCP is connected. Opening Godot normally is the recommended
16
+ interactive workflow; `editor_session ensure` discovers it by project.
17
+
18
+ The addon publishes a private, untracked session record at
19
+ `.godot/godot_agent_loop/editor-session.json`. It contains a fresh per-start
20
+ token and ephemeral loopback port. Do not copy or commit `.godot/`. The record
21
+ is removed on clean editor exit and stale records are rejected by the server.
15
22
 
16
- The addon listens only on loopback. It accepts commands only after a secret
17
- authenticated protocol handshake from an editor launched through Godot Agent
18
- Loop. A normally launched editor shows setup diagnostics but does not accept
19
- agent commands.
23
+ To uninstall, disable the plugin, close Godot, and remove
24
+ `addons/godot_agent_loop`. You may also remove a stale
25
+ `.godot/godot_agent_loop` directory while Godot is closed. MCP cleanup never
26
+ removes this persistent addon.
27
+
28
+ If an editor was started before the addon was installed and enabled, restart it
29
+ after installation. Godot does not expose a safe public API for loading a new
30
+ `EditorPlugin` into an already running editor.
20
31
 
21
32
  ## Human control
22
33
 
23
34
  Use **Pause Agent** before editing shared project state. Inspection remains
24
35
  available, while subsequent agent mutations are refused before dispatch. Use
25
- **Resume Agent** to return control.
36
+ **Resume Agent** to return control. An unsaved scene conflict is preserved and
37
+ reported; the addon never reloads over it.
26
38
 
27
39
  This addon does not install Node.js, an MCP client, or an AI agent. Follow the
28
- client setup in the main project documentation, then use `launch_editor` so the
29
- bridge receives its per-session authentication secret.
30
-
31
- Licensed under the MIT License; see [LICENSE](LICENSE).
40
+ client setup in the main project documentation. It is licensed under the MIT
41
+ License; see [LICENSE](LICENSE).
@@ -3,6 +3,7 @@
3
3
  name="Godot Agent Loop Bridge"
4
4
  description="Authenticated agent activity, pause control, compatibility diagnostics, and setup help for Godot Agent Loop."
5
5
  author="Berke Arslan"
6
- version="1.0.0"
6
+ version="1.1.0"
7
7
  script="plugin.gd"
8
- protocol_version="1"
8
+ protocol_version="2"
9
+ minimum_godot_version="4.7"