命名空间 | |
| namespace | lsp |
类 | |
| struct | AgentAcceptanceCriterion |
| One explicit acceptance condition for a development objective. 更多... | |
| struct | AgentDevelopmentEvidence |
| Immutable evidence recorded against an acceptance condition. 更多... | |
| struct | AgentDevelopmentResult |
| Structured result for development-session state transitions. 更多... | |
| class | AgentDevelopmentSession |
| Process-owned state machine and evidence ledger for Agent game development. 更多... | |
| struct | AiLogEntry |
| class | AiPanel |
| In-engine AI / MCP session surface for DevTools. 更多... | |
| struct | Breakpoint |
| struct | CallFrame |
| class | CallGraph |
| Runtime call graph + dynamic data-flow tracer with backward slicing. 更多... | |
| struct | ConsoleLine |
| class | ConsolePanel |
| In-engine runtime console / log ring buffer for DevTools. 更多... | |
| struct | ConsoleSlice |
| One bounded read of the console ring buffer together with its cursors. 更多... | |
| struct | DataFlowEdge |
| class | DebugAdapter |
| Minimal Debug Adapter Protocol (DAP) server for VS Code. 更多... | |
| class | Debugger |
| Script + frame debugger: pause/step, breakpoints, watches. 更多... | |
| class | DevTool |
| Platform-level script + render debugger / dynamic slicer front-end. 更多... | |
| class | FrameStatsPanel |
| Lightweight FPS / frame-time overlay for DevTools (0.6 closeout). 更多... | |
| struct | Immortal |
| Process-immortal singleton holder for DevTools objects. 更多... | |
| struct | InspectCapture |
| 一次原子快照的结果:PNG 渲染帧 + 配套几何 JSON。 更多... | |
| struct | InspectView |
| 场景巡检工具集(MCP 底层数据底座)。 更多... | |
| class | IPlayHostRuntime |
| Injected runtime used by Play Host. Tests supply a fake; MCP uses the engine adapter. Implementations must not retain request pointers and must not invoke unknown callbacks. @thread Owner simulation / game-loop thread only. 更多... | |
| class | LanguageServer |
In-process EveScript language service used by eve language-server and by unit tests. Owns a dedicated Runtime so it can compile without a running game. JSON-RPC is optional; typed methods are the canonical API. 更多... | |
| struct | LanguageSignatureHelp |
| Binding-contract signature shown while typing a call. 更多... | |
| struct | LanguageSignatureParameter |
| One parameter in an LSP signature-help result. 更多... | |
| class | McpServer |
| Embedded Model Context Protocol (MCP) server for AI-assisted game development. 更多... | |
| class | PlayReplayGuard |
| RAII flag so nested Play requests during replay are not recorded. 更多... | |
| class | PlayTraceBuffer |
Process-owned append buffer for trace=append. 更多... | |
| class | ReloadSession |
| One state hot-reload transaction: capture → reload → restore. 更多... | |
| struct | RenderEvent |
| class | RenderFlow |
| Render-pipeline flow tracer with a Weiser-style backward slice. 更多... | |
| struct | RenderSliceCriterion |
| struct | RenderSliceResult |
| class | RenderVision |
| Vision-model bridge for rendered-frame review (desktop / devtools only). 更多... | |
| struct | ScenarioEvent |
| One serializable event payload recorded from the event queue. 更多... | |
| struct | ScenarioFrame |
| All events consumed during one game frame. 更多... | |
| class | ScenarioRecorder |
| A state-driven bug scenario: baseline snapshot + ordered per-frame inputs. 更多... | |
| class | SceneInspect |
| struct | SliceCriterion |
| Criterion for a Weiser-style dynamic backward slice. 更多... | |
| struct | SliceResult |
| class | Snapshot |
| Script + native state snapshot for state hot reload. 更多... | |
| struct | SoftRestartReport |
| Outcome of a successful soft restart. @ownership Owning value; safe to keep across frames. 更多... | |
| struct | SoftRestartRequest |
| Inputs for one soft restart. @thread Game / MCP poll thread only. 更多... | |
| struct | SourceLoc |
| Source location in a Squirrel (or synthetic) script. 更多... | |
| struct | StackFrameInfo |
| struct | TraceEvent |
| One recorded runtime event used by the dynamic slicer. 更多... | |
| struct | VariableInfo |
| struct | WatchEntry |
类型定义 | |
| using | StderrLineSink = std::function< void(const std::string &)> |
| Sink invoked on the drain thread for every complete stderr line. | |
枚举 | |
| enum class | AgentDevelopmentPhase { Discover , Modify , Run , Observe , Verify , Recover , Complete , Aborted } |
| Ordered stage of an Agent-driven game-development session. 更多... | |
| enum class | TraceKind : uint8_t { Call = 0 , Return , Line , Def , Use } |
| enum class | PauseReason : uint8_t { None = 0 , PauseKey , Breakpoint , Step , Exception , Snapshot } |
| enum class | RunMode : uint8_t { Running = 0 , Paused , StepFrame , StepInto , StepOver , StepOut } |
| enum class | VarKind : uint8_t { Locals = 0 , Globals = 1 } |
| Where a variable tree node is rooted (used by containerChildren). 更多... | |
| enum class | LspDispatch : uint8_t { Continue = 0 , Exit } |
| Whether the stdio/JSON-RPC host should keep reading after one dispatch. 更多... | |
| enum class | RenderEventKind : uint8_t { FrameBegin = 0 , FrameEnd , PassBegin , PassEnd , Target , Bind , Draw , Error } |
| enum class | StderrCaptureStatus { Active , Rejected , Unavailable } |
| Outcome of a capture request. 更多... | |
函数 | |
| bool | isAgentDevelopmentTool (std::string_view name) |
| Whether a tool name belongs to the Agent development-session protocol. | |
| std::string | callAgentDevelopmentTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one Agent development-session tool and return compact JSON. | |
| std::string_view | agentDevelopmentToolSchemas () |
| Comma-separated MCP tool schema fragments without surrounding array brackets. | |
| std::string_view | agentDevelopmentPhaseName (AgentDevelopmentPhase phase) |
| Stable JSON protocol name for a development phase. | |
| AgentDevelopmentResult | parseAgentDevelopmentPhase (std::string_view name, AgentDevelopmentPhase *phase) |
| Parse a stable JSON protocol phase name. | |
| bool | mcpDevAttached () |
| Thin hooks so McpServer.cpp need not include DevTool.hpp (avoids a cycle). | |
| std::size_t | mcpCallgraphEvents () |
| std::size_t | mcpCallgraphStackDepth () |
| const std::string & | mcpLastReport () |
| std::string | mcpFormatError (const std::string &message) |
| std::ostream & | operator<< (std::ostream &os, LspDispatch value) |
| Poco::Dynamic::Var | getArgVar (Poco::JSON::Object::Ptr args, const char *key) |
Raw JSON value of key, or an empty Var when absent. | |
| std::string | getArgString (Poco::JSON::Object::Ptr args, const char *key, const std::string &def={}) |
String argument, or def when absent or not convertible. | |
| int | getArgInt (Poco::JSON::Object::Ptr args, const char *key, int def=0) |
Integer argument, or def when absent or not convertible. | |
| long long | getArgInt64 (Poco::JSON::Object::Ptr args, const char *key, long long def=0) |
64-bit integer argument (sequence numbers, handles), or def. | |
| float | getArgFloat (Poco::JSON::Object::Ptr args, const char *key, float def=0.f) |
Floating-point argument, or def when absent or not convertible. | |
| bool | getArgBool (Poco::JSON::Object::Ptr args, const char *key, bool def=false) |
Boolean argument, or def when absent or not convertible. | |
| bool | isMcpDomainTool (std::string_view name) |
Whether name belongs to a capability-backed domain tool family. | |
| std::string | callMcpDomainTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one domain tool. | |
| std::string_view | mcpDomainToolSchemas () |
| Comma-free MCP tool schema fragments for the domain families. | |
| std::string | mcpStringify (const Poco::Dynamic::Var &value) |
| Compact single-line JSON text for a newline-framed MCP payload. | |
| std::string | mcpJsonEscape (const std::string &value) |
| Escape a raw string for embedding inside a JSON string literal. | |
| std::string | textContentResult (const std::string &text, bool isError=false) |
MCP tools/call result object carrying one text content item. | |
| std::string | imageContentResult (const std::string &base64Png, const std::string &mimeType, const std::string &caption) |
MCP tools/call result object carrying one image content item. | |
| bool | isMcpRuntimeTool (std::string_view name) |
Whether name belongs to the MCP runtime console / frame-capture surface. | |
| std::string | callMcpRuntimeTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one runtime tool. | |
| Poco::JSON::Object::Ptr | crashLogSummary () |
Summary of the persistent crash/error log (eve.log). | |
| std::string_view | mcpRuntimeToolSchemas () |
| Comma-separated MCP tool schema fragments without surrounding array brackets. | |
| bool | isValidScriptToolName (const std::string &name) |
| Validate an exported tool name. | |
| bool | isScriptTool (const std::string &name) |
Whether name is exported by the project script registry. | |
| std::vector< std::string > | scriptToolNames () |
| Exported tool names in registration order. | |
| int | scriptToolCount () |
Number of exported tools (for eve_status). | |
| std::string | scriptToolSchemas () |
| Comma-free MCP tool schema fragments for every exported tool. | |
| std::string | callScriptTool (const std::string &name, Poco::JSON::Object::Ptr args) |
| Invoke one exported tool. | |
| void | clearScriptTools (HSQUIRRELVM owner) |
Drop registry entries owned by owner. | |
| void | exposeMcpScriptApi (ssq::VM &vm) |
Expose eve.mcp.tool/remove/tools/clear on a VM. | |
| std::string | sqValueToJson (HSQUIRRELVM vm, SQInteger idx, int depth=0) |
| Forward declaration: the key serializer falls back to the value serializer. | |
| std::string | sqKeyToJson (HSQUIRRELVM vm, SQInteger idx) |
| Serialize a Squirrel table key as a JSON string literal. | |
| Result< Value > | executePlayRequest (const Value &request, IPlayHostRuntime &runtime) |
| Execute one versioned Play request against an injected runtime. | |
| Result< Value > | executePlayRequest (const Value &request) |
| Execute one Play request against the live engine runtime. | |
| Result< std::string > | executePlayJson (std::string_view requestJson) |
| Parse, execute and serialize one Play JSON request against the live engine. | |
| Result< std::string > | playObservationDigest (const Value &state) |
| Canonical digest of a Play observation state object. | |
| Result< Value > | parsePlayTrace (const Value &recording) |
| Parse and reject unknown fields on a Play Trace recording. | |
| Result< Value > | replayPlayTrace (const Value &recording, IPlayHostRuntime &runtime) |
| Replay a parsed recording against a host runtime. | |
| std::uint32_t | resetNativeStateProviders () |
| Reset every registered IStateProvider to its defaults. | |
| std::size_t | resourceCacheCount () |
| Current ResourceManager cache entry count (for restart telemetry). | |
| Result< SoftRestartReport > | executeSoftRestart (HSQUIRRELVM vm, SoftRestartRequest request) |
Soft-restart the game attached to vm. | |
| StderrCaptureStatus | startStderrCapture (StderrLineSink sink) |
Start mirroring stderr into sink. | |
| void | stopStderrCapture () |
| Restore stderr and join the drain thread. No-op when inactive. | |
| bool | stderrCaptureActive () |
| Whether stderr is currently mirrored into a sink. | |
变量 | |
| constexpr int | kSqJsonMaxDepth = 16 |
| Maximum container nesting serialized from a script value. | |
类型定义说明
◆ StderrLineSink
| using eve::dev::StderrLineSink = typedef std::function<void(const std::string&)> |
Sink invoked on the drain thread for every complete stderr line.
在文件 StderrCapture.hpp 第 44 行定义.
枚举类型说明
◆ AgentDevelopmentPhase
|
strong |
Ordered stage of an Agent-driven game-development session.
| 枚举值 | |
|---|---|
| Discover | |
| Modify | |
| Run | |
| Observe | |
| Verify | |
| Recover | |
| Complete | |
| Aborted | |
在文件 AgentDevelopmentSession.hpp 第 13 行定义.
◆ LspDispatch
|
strong |
Whether the stdio/JSON-RPC host should keep reading after one dispatch.
| 枚举值 | |
|---|---|
| Continue | |
| Exit | |
在文件 LanguageServer.hpp 第 20 行定义.
◆ PauseReason
|
strong |
| 枚举值 | |
|---|---|
| None | |
| PauseKey | |
| Breakpoint | |
| Step | |
| Exception | |
| Snapshot | Script state was restored while the debugger was already paused. |
在文件 Debugger.hpp 第 19 行定义.
◆ RenderEventKind
|
strong |
| 枚举值 | |
|---|---|
| FrameBegin | |
| FrameEnd | |
| PassBegin | |
| PassEnd | |
| Target | |
| Bind | |
| Draw | |
| Error | |
在文件 RenderFlow.hpp 第 15 行定义.
◆ RunMode
|
strong |
| 枚举值 | |
|---|---|
| Running | |
| Paused | |
| StepFrame | |
| StepInto | |
| StepOver | |
| StepOut | |
在文件 Debugger.hpp 第 29 行定义.
◆ StderrCaptureStatus
|
strong |
Outcome of a capture request.
| 枚举值 | |
|---|---|
| Active | Capture is running: started now, or already active. |
| Rejected | No sink was supplied; nothing was changed. |
| Unavailable | The platform pipe could not be created; stderr is untouched. |
在文件 StderrCapture.hpp 第 47 行定义.
◆ TraceKind
|
strong |
| 枚举值 | |
|---|---|
| Call | |
| Return | |
| Line | |
| Def | |
| Use | |
在文件 CallGraph.hpp 第 26 行定义.
◆ VarKind
|
strong |
Where a variable tree node is rooted (used by containerChildren).
| 枚举值 | |
|---|---|
| Locals | |
| Globals | |
在文件 Debugger.hpp 第 69 行定义.
函数说明
◆ agentDevelopmentPhaseName()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::agentDevelopmentPhaseName | ( | AgentDevelopmentPhase | phase | ) |
Stable JSON protocol name for a development phase.
在文件 AgentDevelopmentSession.cpp 第 150 行定义.
引用了 agentDevelopmentPhaseName() , 以及 phase.
被这些函数引用 agentDevelopmentPhaseName().
◆ agentDevelopmentToolSchemas()
| std::string_view eve::dev::agentDevelopmentToolSchemas | ( | ) |
Comma-separated MCP tool schema fragments without surrounding array brackets.
在文件 AgentDevelopmentMcp.cpp 第 129 行定义.
◆ callAgentDevelopmentTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callAgentDevelopmentTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one Agent development-session tool and return compact JSON.
在文件 AgentDevelopmentMcp.cpp 第 85 行定义.
引用了 Aborted, eve::dev::AgentDevelopmentEvidence::artifact, eve::dev::AgentDevelopmentEvidence::criterionId, index, eve::dev::AgentDevelopmentSession::instance(), eve::dev::AgentDevelopmentEvidence::kind, name, parseAgentDevelopmentPhase(), phase, session, eve::dev::AgentDevelopmentEvidence::status , 以及 eve::dev::AgentDevelopmentEvidence::summary.
◆ callMcpDomainTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpDomainTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one domain tool.
- 参数
-
name Tool name accepted by isMcpDomainTool. args Decoded argumentsobject (may be null).
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpDomainTools.cpp 第 281 行定义.
引用了 name.
◆ callMcpRuntimeTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpRuntimeTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one runtime tool.
- 参数
-
name Tool name accepted by isMcpRuntimeTool. args Decoded argumentsobject (may be null).
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpRuntimeTools.cpp 第 368 行定义.
引用了 name.
◆ callScriptTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callScriptTool | ( | const std::string & | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Invoke one exported tool.
- 参数
-
name Registered tool name. args Decoded argumentsobject (may be null, passed as an empty table).
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpScriptTools.cpp 第 276 行定义.
引用了 found, handler, name, sqValueToJson(), text, top , 以及 vm.
◆ clearScriptTools()
| EVENGINE_API_FOUNDATION void eve::dev::clearScriptTools | ( | HSQUIRRELVM | owner | ) |
Drop registry entries owned by owner.
- 参数
-
owner VM whose handlers may be released. Entries registered against a different VM are discarded without touching it: that VM may already be destroyed, and releasing into freed VM memory would corrupt the heap.
在文件 McpScriptTools.cpp 第 322 行定义.
引用了 dropped.
被这些函数引用 eve::dev::DevTool::attach(), eve::dev::DevTool::detach() , 以及 exposeMcpScriptApi().
◆ crashLogSummary()
| EVENGINE_API_FOUNDATION Poco::JSON::Object::Ptr eve::dev::crashLogSummary | ( | ) |
Summary of the persistent crash/error log (eve.log).
An MCP server dies with the process it serves, so the only way an agent can learn why a previous run ended is the log written by common/CrashLog.h. This is the same object eve_crash_report returns, without the tail lines.
在文件 McpRuntimeTools.cpp 第 378 行定义.
引用了 bytes, eve::crashLogPath(), exists, path , 以及 size.
◆ executePlayJson()
| EVENGINE_API_FOUNDATION Result< std::string > eve::dev::executePlayJson | ( | std::string_view | requestJson | ) |
Parse, execute and serialize one Play JSON request against the live engine.
- 参数
-
requestJson Strict UTF-8 JSON request.
在文件 PlayHost.cpp 第 866 行定义.
引用了 executePlayRequest(), eve::Result< T >::failure(), eve::Value::fromJson() , 以及 request.
◆ executePlayRequest() [1/2]
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::executePlayRequest | ( | const Value & | request | ) |
Execute one Play request against the live engine runtime.
- 参数
-
request Object with schema id evengine.play-requestand version 1.
在文件 PlayHost.cpp 第 862 行定义.
引用了 executePlayRequest() , 以及 request.
◆ executePlayRequest() [2/2]
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::executePlayRequest | ( | const Value & | request, |
| IPlayHostRuntime & | runtime | ||
| ) |
Execute one versioned Play request against an injected runtime.
- 参数
-
request Object with schema id evengine.play-requestand version 1.runtime Host clock, contract, observation and capture backend.
- 返回
- Owning response object, or structured parse/routing/runtime diagnostics.
- 备注
- Unknown root fields are rejected. Nested
batchis rejected.
在文件 PlayHost.cpp 第 858 行定义.
引用了 request.
被这些函数引用 executePlayJson(), executePlayRequest() , 以及 replayPlayTrace().
◆ executeSoftRestart()
| EVENGINE_API_FOUNDATION Result< SoftRestartReport > eve::dev::executeSoftRestart | ( | HSQUIRRELVM | vm, |
| SoftRestartRequest | request | ||
| ) |
Soft-restart the game attached to vm.
- 参数
-
vm Live game VM (must already have run load.nut).request Args + reloadScripts flag.
- 返回
- Report on success; Failed/NotFound when the VM has no soft_restart_game helper or the restart fails.
- 备注
- Does not call ResourceManager::clear(). Resource counts in the report let callers prove assets were not dropped. @thread Owner game-loop / MCP poll thread only. @reentrancy Must not be called while a ReloadSession is active.
在文件 SoftRestart.cpp 第 142 行定义.
引用了 active, eve::dev::SoftRestartReport::args, eve::Conflict, eve::Diagnostic::error(), eve::Failed, eve::Result< T >::failure(), eve::dev::SoftRestartReport::initCalled, eve::dev::ReloadSession::instance(), eve::NotFound, request, resourceCacheCount(), eve::dev::SoftRestartReport::resourceCountAfter, eve::dev::SoftRestartReport::resourceCountBefore, eve::dev::SoftRestartReport::scriptsReloaded, eve::Result< T >::success() , 以及 vm.
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ exposeMcpScriptApi()
| EVENGINE_API_FOUNDATION void eve::dev::exposeMcpScriptApi | ( | ssq::VM & | vm | ) |
Expose eve.mcp.tool/remove/tools/clear on a VM.
在文件 McpScriptTools.cpp 第 331 行定义.
引用了 eve::dev::ConsolePanel::addLog(), clearScriptTools(), count, found, eve::dev::ConsolePanel::instance(), name, removed, scriptToolCount(), scriptToolNames() , 以及 vm.
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ getArgBool()
|
inline |
◆ getArgFloat()
|
inline |
◆ getArgInt()
|
inline |
◆ getArgInt64()
|
inline |
◆ getArgString()
|
inline |
String argument, or def when absent or not convertible.
在文件 McpArgs.hpp 第 25 行定义.
◆ getArgVar()
|
inline |
◆ imageContentResult()
|
inline |
MCP tools/call result object carrying one image content item.
- 参数
-
base64Png Base64 PNG payload without any data:URL prefix.mimeType Image MIME type ( image/png).caption Optional text content item returned next to the image.
在文件 McpJson.hpp 第 77 行定义.
引用了 image , 以及 mcpStringify().
◆ isAgentDevelopmentTool()
| bool eve::dev::isAgentDevelopmentTool | ( | std::string_view | name | ) |
Whether a tool name belongs to the Agent development-session protocol.
在文件 AgentDevelopmentMcp.cpp 第 79 行定义.
引用了 name.
◆ isMcpDomainTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpDomainTool | ( | std::string_view | name | ) |
Whether name belongs to a capability-backed domain tool family.
在文件 McpDomainTools.cpp 第 274 行定义.
引用了 name.
◆ isMcpRuntimeTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpRuntimeTool | ( | std::string_view | name | ) |
Whether name belongs to the MCP runtime console / frame-capture surface.
在文件 McpRuntimeTools.cpp 第 363 行定义.
引用了 name.
◆ isScriptTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isScriptTool | ( | const std::string & | name | ) |
Whether name is exported by the project script registry.
在文件 McpScriptTools.cpp 第 245 行定义.
◆ isValidScriptToolName()
| EVENGINE_API_FOUNDATION bool eve::dev::isValidScriptToolName | ( | const std::string & | name | ) |
Validate an exported tool name.
Requires 3..64 characters of [a-z][a-z0-9_]* and rejects the prefixes used by the built-in tables (eve_, inspect_, set_, capture_, get_), because a built-in always wins at dispatch time and a shadowed tool would be silently unreachable.
在文件 McpScriptTools.cpp 第 235 行定义.
◆ mcpCallgraphEvents()
| std::size_t eve::dev::mcpCallgraphEvents | ( | ) |
◆ mcpCallgraphStackDepth()
| std::size_t eve::dev::mcpCallgraphStackDepth | ( | ) |
在文件 DevTool.cpp 第 868 行定义.
引用了 eve::dev::CallGraph::currentStack(), eve::dev::DevTool::graph() , 以及 eve::dev::DevTool::instance().
◆ mcpDevAttached()
| bool eve::dev::mcpDevAttached | ( | ) |
Thin hooks so McpServer.cpp need not include DevTool.hpp (avoids a cycle).
在文件 DevTool.cpp 第 864 行定义.
引用了 eve::dev::DevTool::instance() , 以及 eve::dev::DevTool::isAttached().
◆ mcpDomainToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpDomainToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for the domain families.
在文件 McpDomainTools.cpp 第 295 行定义.
◆ mcpFormatError()
| std::string eve::dev::mcpFormatError | ( | const std::string & | message | ) |
在文件 DevTool.cpp 第 874 行定义.
引用了 eve::dev::DevTool::formatError(), eve::dev::DevTool::instance() , 以及 message.
◆ mcpJsonEscape()
|
inline |
Escape a raw string for embedding inside a JSON string literal.
在文件 McpJson.hpp 第 30 行定义.
被这些函数引用 scriptToolSchemas(), sqKeyToJson() , 以及 sqValueToJson().
◆ mcpLastReport()
| const std::string & eve::dev::mcpLastReport | ( | ) |
在文件 DevTool.cpp 第 872 行定义.
引用了 eve::dev::DevTool::instance() , 以及 eve::dev::DevTool::lastReport().
◆ mcpRuntimeToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpRuntimeToolSchemas | ( | ) |
Comma-separated MCP tool schema fragments without surrounding array brackets.
在文件 McpRuntimeTools.cpp 第 396 行定义.
◆ mcpStringify()
|
inline |
Compact single-line JSON text for a newline-framed MCP payload.
在文件 McpJson.hpp 第 23 行定义.
引用了 value.
被这些函数引用 imageContentResult() , 以及 textContentResult().
◆ operator<<()
|
inline |
在文件 LanguageServer.hpp 第 22 行定义.
◆ parseAgentDevelopmentPhase()
| AgentDevelopmentResult eve::dev::parseAgentDevelopmentPhase | ( | std::string_view | name, |
| AgentDevelopmentPhase * | phase | ||
| ) |
Parse a stable JSON protocol phase name.
在文件 AgentDevelopmentSession.cpp 第 164 行定义.
引用了 name, parseAgentDevelopmentPhase() , 以及 phase.
被这些函数引用 callAgentDevelopmentTool() , 以及 parseAgentDevelopmentPhase().
◆ parsePlayTrace()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::parsePlayTrace | ( | const Value & | recording | ) |
Parse and reject unknown fields on a Play Trace recording.
- 参数
-
recording Object with schema id evengine.play-traceand version 1.
在文件 PlayTrace.cpp 第 63 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), index, eve::ParseError, request, root, steps, eve::Result< T >::success() , 以及 eve::Unsupported.
被这些函数引用 replayPlayTrace().
◆ playObservationDigest()
| EVENGINE_API_FOUNDATION Result< std::string > eve::dev::playObservationDigest | ( | const Value & | state | ) |
Canonical digest of a Play observation state object.
- 参数
-
state Owning observation projection (typically response.state).
- 返回
fnv1a64:plus 16 hex digits, or a serialization failure.
在文件 PlayTrace.cpp 第 57 行定义.
引用了 eve::Result< T >::failure(), state , 以及 eve::Result< T >::success().
被这些函数引用 eve::dev::PlayTraceBuffer::append() , 以及 replayPlayTrace().
◆ replayPlayTrace()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::replayPlayTrace | ( | const Value & | recording, |
| IPlayHostRuntime & | runtime | ||
| ) |
Replay a parsed recording against a host runtime.
- 参数
-
recording Play Trace object. runtime Same runtime used to produce the recording.
- 返回
- Response with
statuspassedor a structured mismatch/runtime failure.
- 备注
- Capture pixels are not compared. Observation digests must match exactly.
在文件 PlayTrace.cpp 第 103 行定义.
引用了 digest, eve::Diagnostic::error(), executePlayRequest(), eve::Failed, eve::Result< T >::failure(), eve::HashMismatch, index, eve::ParseError, parsePlayTrace(), playObservationDigest(), root, state, step, steps , 以及 eve::Result< T >::success().
◆ resetNativeStateProviders()
| EVENGINE_API_FOUNDATION std::uint32_t eve::dev::resetNativeStateProviders | ( | ) |
Reset every registered IStateProvider to its defaults.
- 返回
- Number of providers that reported success.
在文件 SoftRestart.cpp 第 132 行定义.
引用了 ok , 以及 eve::caps::IStateProvider::resetToDefaults().
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ resourceCacheCount()
| EVENGINE_API_FOUNDATION std::size_t eve::dev::resourceCacheCount | ( | ) |
Current ResourceManager cache entry count (for restart telemetry).
在文件 SoftRestart.cpp 第 140 行定义.
引用了 eve::ResourceManager::count() , 以及 eve::ResourceManager::getInstance().
被这些函数引用 executeSoftRestart() , 以及 eve::dev::DevTool::exposeScriptApi().
◆ scriptToolCount()
| EVENGINE_API_FOUNDATION int eve::dev::scriptToolCount | ( | ) |
Number of exported tools (for eve_status).
在文件 McpScriptTools.cpp 第 258 行定义.
被这些函数引用 exposeMcpScriptApi().
◆ scriptToolNames()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::scriptToolNames | ( | ) |
Exported tool names in registration order.
在文件 McpScriptTools.cpp 第 250 行定义.
被这些函数引用 exposeMcpScriptApi().
◆ scriptToolSchemas()
| EVENGINE_API_FOUNDATION std::string eve::dev::scriptToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for every exported tool.
- 返回
- Object fragments without surrounding brackets, or an empty string.
在文件 McpScriptTools.cpp 第 263 行定义.
引用了 mcpJsonEscape().
◆ sqKeyToJson()
|
inline |
Serialize a Squirrel table key as a JSON string literal.
JSON object keys are always strings; a numeric or boolean key would otherwise produce a document no parser accepts, and an opaque key (closure, instance) must not silently become null and lose the entry's identity.
在文件 McpSquirrelJson.hpp 第 34 行定义.
引用了 idx, mcpJsonEscape(), sqValueToJson(), text, value , 以及 vm.
被这些函数引用 sqValueToJson().
◆ sqValueToJson()
|
inline |
Forward declaration: the key serializer falls back to the value serializer.
Serialize the Squirrel value at stack index idx to compact JSON.
- 参数
-
vm VM owning the value. idx Stack index (negative indices are relative to the top). depth Current nesting depth; callers pass 0.
- 返回
- Compact single-line JSON text.
在文件 McpSquirrelJson.hpp 第 53 行定义.
引用了 buffer, depth, first, idx, kSqJsonMaxDepth, mcpJsonEscape(), sqKeyToJson(), sqValueToJson(), value , 以及 vm.
被这些函数引用 callScriptTool(), sqKeyToJson() , 以及 sqValueToJson().
◆ startStderrCapture()
| EVENGINE_API_FOUNDATION StderrCaptureStatus eve::dev::startStderrCapture | ( | StderrLineSink | sink | ) |
Start mirroring stderr into sink.
- 参数
-
sink Invoked once per complete line on the drain thread.
- 返回
- A named status:
Activealso covers the already-active case, so the call is idempotent.Unavailablemeans stderr was left untouched and the console will only see script output.
在文件 StderrCapture.cpp 第 123 行定义.
引用了 Active, Rejected, stopStderrCapture(), target , 以及 Unavailable.
被这些函数引用 eve::dev::ConsolePanel::attach().
◆ stderrCaptureActive()
| EVENGINE_API_FOUNDATION bool eve::dev::stderrCaptureActive | ( | ) |
Whether stderr is currently mirrored into a sink.
在文件 StderrCapture.cpp 第 189 行定义.
◆ stopStderrCapture()
| EVENGINE_API_FOUNDATION void eve::dev::stopStderrCapture | ( | ) |
Restore stderr and join the drain thread. No-op when inactive.
在文件 StderrCapture.cpp 第 168 行定义.
被这些函数引用 eve::dev::ConsolePanel::detach() , 以及 startStderrCapture().
◆ textContentResult()
|
inline |
MCP tools/call result object carrying one text content item.
- 参数
-
text Payload text (compact JSON for structured tools). isError Whether the client should treat the call as failed.
在文件 McpJson.hpp 第 59 行定义.
引用了 mcpStringify() , 以及 text.
变量说明
◆ kSqJsonMaxDepth
|
constexpr |
Maximum container nesting serialized from a script value.
Script tables can be cyclic (a.b = a), and an untrusted or generated table would otherwise recurse until the stack dies. Beyond this depth containers are emitted as null, which keeps the produced document valid JSON.
在文件 McpSquirrelJson.hpp 第 22 行定义.
被这些函数引用 sqValueToJson().