Commit Graph
18 Commits
Author SHA1 Message Date
西风逍遥游 5c9e2750e8 Merge remote-tracking branch 'origin/dev' into codex/ci-contract-hardening
# Conflicts:
#	src/engine/common/ScriptCompiler.h
2026-09-03 17:23:28 +08:00
西风逍遥游 c39660737e refactor(ci): make contracts and publication ownership explicit 2026-09-03 15:46:53 +08:00
西风逍遥游andCursor 6be64c3d9d feat(devtools): add EveScript LSP and name debugger call stacks
Move the language server into devtools, wire the VS Code extension, and show anonymous closures (eve_update = function) by frame prototype instead of a shifted CallGraph zip.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-03 00:58:22 +08:00
西风逍遥游 de6a7afa7b feat(gameplay): unify player and AI control API 2026-09-02 11:27:57 +08:00
西风逍遥游 47189745cf refactor(editor): split domain editors and unify results 2026-09-02 08:22:51 +08:00
西风逍遥游 8ccfd5ecbe feat(pixelworld): add deterministic Noita-style simulation stack 2026-08-31 17:55:05 +08:00
西风逍遥游 67ff5d320e feat(devtools): add evidence-gated agent game development workflow 2026-08-30 21:32:08 +08:00
西风逍遥游 7033036cb4 fix(editor): satisfy CI architecture contracts 2026-08-30 02:02:28 +08:00
西风逍遥游 f7b732def2 feat(tactics): add deterministic battle module and KayKit showcase 2026-08-29 09:23:46 +08:00
西风逍遥游 98978157d2 fix(mcp): keep evaluation snippets in memory 2026-08-28 10:56:29 +08:00
西风逍遥游 328e37e8ec feat(editor): complete P0 and P1 authoring services 2026-08-24 22:47:23 +08:00
西风逍遥游 34a9a63bfa Merge pull request #105 from EVEngine/codex/eve-mcp-host
feat(mcp): headless eve mcp host with AI-crafted MVVM editors
2026-08-18 10:40:21 +08:00
西风逍遥游 4b24d1a157 feat(mcp): headless eve mcp host with AI-crafted MVVM editors
Adds 'eve mcp': a desktop-only headless MCP host (stdio by default, --port for TCP, --root for the project). It runs the full runtime, attaches DevTools (eve_eval / eve_run_script / snapshot), and starts the new EditorHost module that renders JSON-defined editor Views (ImGui) bound two-way to Squirrel ViewModel tables (MVVM), persists editors under editors/, and exposes the eve_host_* tool family (apply/state/set_value/events/capture/script/shutdown...). The stdio transport uses a background stdin reader and keeps stdout JSON-RPC-only; script print() is routed to stderr.

Tests: stdio handshake + tools/list round trip, host editor binding (VM<->View sync, set_value -> VM write + onChange events, save/reload persistence). Docs updated (AI与MCP支持.md, 命令行设计.md, tools/eve-mcp README) with the editor JSON protocol and Codex stdio setup.
2026-08-17 22:43:08 +08:00
西风逍遥游 79127ed354 feat(scene-director): agent-drivable scene-authoring kit + engine MCP tools
Add the scene_director Squirrel kit (src/scripts/scene_director.nut) with
spawn/move/scale/rotate/remove/material/lighting/camera/cameras/info/modify/
reset, embedded into the engine and exposed to host games as
eve.sceneDirectorScript. New MCP tools (eve_scene_director_install/status,
eve_scene_reset, eve_scene_modify, eve_scene_info, eve_camera_generate) are
thin dispatchers over the kit, so agents can place props, set lighting,
frame cameras, inspect truth and reset the stage through MCP alone.

The kit's cross-references are written explicitly as scene_director.<field>
to avoid Squirrel table-closure 	his resolution, and cameras() uses a
fixed 6-way compass table (no math-lib dependency) so it works both in the
engine and in plain ssq test VMs.
2026-08-17 10:10:09 +08:00
西风逍遥游 072c454150 feat(mcp): add RenderVision — vision-model description of rendered frames
Adds a vision-model bridge (devtools/RenderVision) that captures the
current frame (Graphics readback -> PNG data URL) and sends it with
engine render parameters to an OpenAI-compatible vision model over
plain HTTP, returning prose that describes the frame and explains the
render-parameter <-> visual-result correspondence for other LLM agents.

- New MCP tools:
  - eve_render_describe (fresh/reason; cached otherwise)
  - eve_render_vision_config (set/read config, key masked)
- Breakpoint hit and runtime-error pause auto-flag a pending dump that
  McpServer::poll performs on the main (render) thread.
- Config via env (EVE_VISION_BASE_URL/API_KEY/MODEL/PATH/TIMEOUT_MS)
  or the config tool.
- No TLS/OpenSSL is linked, so the endpoint must be plain HTTP (works
  with local Ollama/vLLM/LM Studio).
- Compiles cleanly on MSVC (C++20); tests extended for new tools.
2026-08-16 16:10:26 +08:00
西风逍遥游 090283a743 feat(mcp): expose engine runtime features (scene/procgen/physics/render/particles/audio) as MCP tools
Add 18 new MCP tools to the embedded McpServer so agents can drive
the live game beyond the debugger surface:
- scene/entity query + transform mutation
- procgen recipe enumeration, map grid generation, mesh build
- 2D physics world create/list/raycast/remove
- render status + frame screenshot (PNG)
- particle emitter spawn, audio master control

Tool handlers use ModuleManager to reach Scene/Procgen/Physics/
Graphics/Particles/Audio and degrade gracefully when a module is
not mounted. Extend the tools/list and unit-test coverage.
2026-08-16 02:44:25 +08:00
Cursor Agentand西风逍遥游 6c8116123b fix(mcp): store Poco JSON via Object::Ptr and harden parsing
Raw `new Object()` values stored in Dynamic::Var broke Stringifier with
BadCast during tools/list. Wrap nested objects/arrays in Ptr, emit
compact JSON for newline framing, and convert request fields safely.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-08-10 00:50:51 +00:00
Cursor Agentand西风逍遥游 779307c80b feat(devtools): add embedded MCP server and AI panel for agent testing
Expose a localhost MCP JSON-RPC server (--mcp-port) alongside DAP so AI
agents can pause, eval, snapshot, and slice errors on a live session.
Add DevTools AI session log/ImGui panel (eve.dev.ai, F9) and a Cursor
stdio bridge under tools/eve-mcp.

Co-authored-by: 西风逍遥游 <sunxfancy@gmail.com>
2026-08-10 00:43:11 +00:00