命名空间 | |
| namespace | detail |
| namespace | lsp |
| namespace | project_index |
类 | |
| 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. 更多... | |
| struct | FrameContactSheetOptions |
| Bounded, row-major contact sheet of immutable final-color captures. 更多... | |
| struct | FramePreview |
| Encoded preview; width and height may differ from the original attachment. 更多... | |
| struct | FramePreviewOptions |
| Explicit CPU preview transformation, separate from costly GPU capture. 更多... | |
| class | FrameStatsPanel |
| Lightweight FPS / frame-time overlay for DevTools (0.6 closeout). 更多... | |
| struct | GameWorldSnapshotInput |
| Inputs used to assemble one Discover snapshot. @ownership Callers own the pointed-to Values; they are not retained. 更多... | |
| 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. 更多... | |
| struct | McpFilterStats |
| Proxy counters for profile A/B comparisons (not billing truth). 更多... | |
| struct | McpProfileEscalate |
| Suggested profile change when a call is rejected by the active profile. 更多... | |
| class | McpServer |
| Embedded Model Context Protocol (MCP) server for AI-assisted game development. 更多... | |
| struct | McpToolFamily |
| Process-lifetime compiled family descriptor, generated from its provider declaration. 更多... | |
| class | McpToolFamilyCatalog |
| Immutable schema/route catalogue built transactionally from compiled families. @ownership Owns schema strings and tool-name keys; function pointers remain binary-owned. @lifetime Immutable until destruction; not a plugin/unload registration mechanism. @thread Construction is caller-owned; concurrent const reads are safe afterward. @reentrancy Schema callbacks run without locks and must not request this catalogue while it is building. 更多... | |
| struct | McpToolNameView |
| One advertised MCP tool after schema parse (name only for filtering). 更多... | |
| struct | McpToolRoute |
| Owned route value; callbacks belong to the compiled binary, never a reloadable plugin. 更多... | |
| 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 | McpToolPayload { TextValue , ContentEnvelope } |
| Wire shape returned by a compiled tool provider. 更多... | |
| 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. 更多... | |
函数 | |
| Result< std::string > | actionGuideAovFileStem (std::string_view aov) |
Map pack AOV name to export file stem (silhouette → silhouette.png). | |
| Result< Value > | writeActionGuideArtifactPack (const ActionGuideCaptureSnapshot &snapshot, const std::filesystem::path &root) |
Encode Ready silhouette/depth(/bone) buffers as PNG + manifest under root. | |
| Result< ActionGuideCandidateFrame > | decodeActionGuideCandidatePng (std::span< const std::uint8_t > pngBytes) |
| Decode an 8-bit RGBA PNG into an owning RGBA8 buffer. | |
| Result< std::vector< ActionGuideCandidateFrame > > | loadActionGuideCandidates (const std::filesystem::path &candidateDir, const ActionGuidePack &pack) |
Load NNNN/{meta.json,frame.png} under candidateDir into an ordered frame list. @cost Disk IO + PNG decode × frame count. | |
| Result< Value > | writeActionGuideIngestPack (const ActionGuideIngestDraft &draft, std::span< const ActionGuideCandidateFrame > frames, const std::filesystem::path &outputRoot) |
| Atomically write frames + clip/ability drafts under outputRoot. | |
| Result< ActionGuideVerifyRequest > | loadActionGuideVerifyRequest (const ActionGuidePack &pack, const std::filesystem::path &guideArtifactDir, const std::filesystem::path &candidateDir) |
| Load guide silhouette PNGs + candidate frames into a verify request. | |
| Result< Value > | writeActionGuideVerifyEvidence (const ActionGuideVerifyReport &report, const std::filesystem::path &outputRoot) |
| Write verify.evidence.json under outputRoot (creates directories). @cost Small JSON encode + filesystem write. | |
| 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 () |
| void | mcpRecordSnippetError (std::string report) |
| VM-thread-only owning diagnostic publication; clears stale slicing data. | |
| const std::string & | mcpLastReport () |
| std::string | mcpFormatError (const std::string &message) |
| Result< FramePreview > | frameCapturePreview (const FrameCaptureBuffer &b, const FramePreviewOptions &o) |
| Result< FramePreview > | frameContactSheet (std::span< const FrameCaptureBuffer > frames, const FrameContactSheetOptions &options) |
| Result< Value > | parseWorldObject (const Value &world) |
Validate one runtime-published world object. | |
| Result< void > | publishWorldContext (Value world) |
| Replace the runtime world brief published by the live game script. | |
| void | clearWorldContext () |
| Drop the runtime world brief (soft restart with script reload). | |
| bool | hasWorldContext () noexcept |
| Whether a runtime brief is currently published. | |
| const Value * | runtimeWorldContext () noexcept |
| Current runtime brief, or null when none is published. @ownership Borrowed; valid until the next publish/clear on this thread. | |
| Result< Value > | buildGameWorldSnapshot (const GameWorldSnapshotInput &input) |
| Assemble runtime world brief plus live system lists. | |
| std::string | readConfigTitle (HSQUIRRELVM vm) |
Read config.title from the attached VM root. | |
| std::vector< std::string > | readConfiguredModules (HSQUIRRELVM vm) |
Read config.modules / optionalModules from the attached VM root. | |
| std::vector< std::string > | readLiveModules (HSQUIRRELVM vm) |
List instantiated module slots declared in eve.moduleList. | |
| Result< Value > | liveGameWorldSnapshot () |
| Build the Discover snapshot against the live engine. | |
| std::ostream & | operator<< (std::ostream &os, LspDispatch value) |
| bool | isMcpActionGuideTool (std::string_view name) |
| True for the action-guide MCP family. | |
| void | resetMcpActionGuide () |
| Clear the process-local guide-pack session used by get/set. | |
| std::string | callMcpActionGuideTool (std::string_view name, Object::Ptr args) |
| std::string_view | mcpActionGuideToolSchemas () |
| Comma-separated schemas for tools/list. | |
| EVENGINE_API_FOUNDATION std::string | callMcpActionGuideTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Main-thread tool dispatch for guide-pack validate/landmarks/capture/export. | |
| bool | isMcpArchitectureTool (std::string_view name) |
| Read-only architecture queries derived from the build's binding registry. | |
| std::string | callMcpArchitectureTool (std::string_view name, Object::Ptr args) |
| std::string_view | mcpArchitectureToolSchemas () |
| Comma-free schema objects for the read-only architecture tools. @ownership Borrowed view of process-owned immutable schema text. @lifetime Valid for the remainder of the process after first initialization. @thread Static initialization is synchronized; subsequent reads are safe. | |
| EVENGINE_API_FOUNDATION std::string | callMcpArchitectureTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Query evidence, candidate impact or a bounded task context; returns MCP envelope JSON. @ownership Returns owning text, never pointers to world objects. @lifetime Graph evidence is process-owned and immutable; returned text is independent. @thread Registry/main MCP poll thread; no VM execution or world writes. | |
| 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 | isMcpAssetKitTool (std::string_view name) |
Whether name is list/get/resolve under the asset-kit family. | |
| std::string | callMcpAssetKitTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one asset-kit tool. | |
| std::string_view | mcpAssetKitToolSchemas () |
| Comma-free MCP tool schema fragments for the asset-kit family. | |
| std::string_view | mcpCoreToolSchemas () |
| Borrow legacy core tool schemas; process lifetime, synchronized first initialization. @cost First access joins the core schema fragments once; subsequent reads are constant time. | |
| 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 | callMcpEntityInspectionTool (std::string_view name, Object::Ptr args) |
| std::string_view | mcpEntityInspectionSchemas () |
| Source-owned schemas for the optional entity-inspection capability. | |
| EVENGINE_API_FOUNDATION std::string | callMcpEntityInspectionTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Owner-thread geometry-inspection dispatch; worker only owns immutable CPU pixels. | |
| bool | isMcpFrameCaptureTool (std::string_view name) |
| True for the frame snapshot MCP family. | |
| void | resetMcpFrameCapture () |
| Main-thread disconnect cleanup; workers observe cancellation before publishing files. | |
| std::string | callMcpFrameCaptureTool (std::string_view name, Object::Ptr args) |
| std::string_view | mcpFrameCaptureSchemas () |
| Comma-separated schemas for tools/list. | |
| EVENGINE_API_FOUNDATION std::string | callMcpFrameCaptureTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Main-thread tool dispatch; workers only access immutable CPU leases. | |
| bool | isMcpInputTool (std::string_view name) |
Whether name belongs to the input playtest tool family. | |
| std::string | callMcpInputTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one input tool. | |
| std::string_view | mcpInputToolSchemas () |
| Comma-free MCP tool schema fragments for the input family. | |
| void | pollMcpInputBatches () |
| Advance pending wait/capture batches once per game-loop poll. @thread MCP poll / game-loop thread only. | |
| void | resetMcpInputBatchesForTest () |
| Drop pending batches (tests / server stop). | |
| 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. | |
| Poco::JSON::Object::Ptr | mcpFailureObject (const std::string &error, const std::string &hint={}, bool retryable=false, const std::vector< std::string > &nextTools={}) |
| Structured tool failure object for agent self-correction. | |
| 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 | isMcpProjectIndexTool (std::string_view name) |
| Recognizes project-index discovery/refresh tools; no project code is executed. | |
| std::string | callMcpProjectIndexTool (std::string_view name, Object::Ptr args) |
| std::string_view | mcpProjectIndexToolSchemas () |
| Comma-separated tool schemas without an enclosing array. @ownership Borrowed process-owned immutable text. @lifetime Valid until process exit. @thread Synchronized static initialization, then immutable reads. | |
| EVENGINE_API_FOUNDATION std::string | callMcpProjectIndexTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Refresh or query current project evidence, including the project mode of eve_task_context. @ownership Returned JSON text owns its contents; cached source records are process-owned. @lifetime Project snapshots are replaced atomically after each successful scan. @thread Main MCP poll thread; filesystem reads and derived cache updates only. | |
| bool | isMcpRecipeTool (std::string_view name) |
Whether name is eve_recipe_list or eve_recipe_apply. | |
| std::string | callMcpRecipeTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one recipe tool. | |
| std::string_view | mcpRecipeToolSchemas () |
| Comma-free MCP tool schema fragments for the recipe family. | |
| std::string | gameWorld () |
| 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 | runMcpVmSnippet (HSQUIRRELVM vm, const std::string &source, std::string *err) |
| Compile and run a transient MCP snippet (no return value). @thread Game-loop / MCP poll thread with an attached VM. | |
| std::string | callSceneDirectorReturn (HSQUIRRELVM vm, const std::string &snippet, std::string *err) |
| Compile+run a snippet that returns a value; serialize it as JSON. | |
| bool | ensureSceneDirectorInstalled (HSQUIRRELVM vm, std::string *err) |
| Convenience overload: allow heavy install immediately (tests / explicit install tool). | |
| bool | ensureSceneDirectorInstalled (HSQUIRRELVM vm, std::string *err, bool allowHeavyWork) |
| Install scene_director.nut into the live VM (idempotent). | |
| void | flushPendingSceneDirectorInstall (HSQUIRRELVM vm) |
| Run a deferred scene_director install on the game/MCP poll thread. | |
| bool | sceneDirectorInstallPending () |
| Whether a deferred install is waiting for the next poll. | |
| std::string | sceneDirectorToolError (const std::string &name, const std::string &err) |
| Format a scene-director tool failure. | |
| Result< std::string > | sceneLiteral (const Poco::Dynamic::Var &value, int depth=0) |
| Encode owning JSON data as a Squirrel literal without losing pointer containers or precision. | |
| std::string | callSceneSearch (std::string_view name, Object::Ptr args) |
| std::string_view | sceneSearchSchemas () |
| 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/attachEditor/detachEditor 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. | |
| bool | mcpResolveTaskProfile (std::string_view taskKind, std::string_view profile, std::string *outProfile, std::string *outTaskKind, std::string *errorCode, std::string *errorMessage) |
| Resolve taskKind + optional profile into a concrete profile id. | |
| std::vector< std::string > | mcpProfileToolsetTags (std::string_view profile) |
Tag list advertised for EVE_MCP_TOOLSET when only a named profile is chosen. | |
| std::string | mcpProfileToolsetEnv (std::string_view profile) |
Comma-joined toolset tags for env forwarding (eve-mcp --profile=). | |
| bool | mcpProfileAllowsTool (std::string_view profile, std::string_view tool) |
Whether tool is allowed under a concrete named profile (empty = no profile gate). | |
| std::optional< McpProfileEscalate > | mcpProfileEscalateHint (std::string_view profile, std::string_view tool) |
Suggest an escalate edge when tool is denied by profile. | |
| void | mcpSetProcessProfile (std::string_view profile) |
Install or clear the process-level profile (EVE_MCP_PROFILE mirror for tests). | |
| std::string | mcpProcessProfile () |
| Current process-level profile; empty when unset. | |
| void | mcpSetSessionProfile (std::string_view profile) |
| Install or clear the session-level profile overlay. | |
| std::string | mcpSessionProfile () |
| Current session-level profile; empty when no session overlay. | |
| void | mcpFilterNoteCall (bool allowed, std::size_t resultBytes, bool offeredEscalate) |
| Record a tools/call attempt for proxy metrics. | |
| McpFilterStats | mcpFilterStats () |
| Snapshot of proxy metrics since process start / last test reset. | |
| void | mcpFilterStatsResetForTest () |
| Test helper: zero proxy metrics. | |
| const McpToolFamilyCatalog & | compiledMcpToolCatalog () |
| Build the process-immortal compiled catalogue once, then borrow it until exit. @lifetime Survives static teardown together with McpServer's detached stdio reader. @thread Synchronized first construction; schema callbacks cannot reenter this function during that build. | |
| std::vector< McpToolFamily > | compiledMcpToolFamilies () |
| Generated build input; returns binary-owned descriptors for exactly the compiled providers. @cost Copies a descriptor per compiled family, once per catalogue construction. | |
| void | mcpToolFilterReloadForTest () |
| Test helper: clear cached env snapshot so the next allow check reloads. | |
| std::vector< std::string > | mcpToolTags (std::string_view name) |
| Classify a built-in or script tool into toolset tags. | |
| bool | mcpToolMutates (std::string_view name) |
| Whether the tool mutates game / editor / host state. | |
| bool | mcpToolAllowed (std::string_view name) |
Whether name is visible under the current env filter. | |
| std::string | filterMcpToolsBody (std::string_view toolsBody) |
| Filter a JSON tools array body in place (objects joined by commas). | |
| std::string | mcpToolFilteredPayload (std::string_view name) |
| Human-readable rejection payload fields when a call is filtered out. | |
| bool | isMcpWhiteboxTool (std::string_view name) |
Whether name belongs to the white-box playtest tool family. | |
| std::string | callMcpWhiteboxTool (std::string_view name, Poco::JSON::Object::Ptr args) |
| Execute one white-box tool. | |
| std::string_view | mcpWhiteboxToolSchemas () |
| Comma-free MCP tool schema fragments for the white-box family. | |
| bool | isMcpWorkshopTool (std::string_view name) |
Whether name is the workshop facade. | |
| std::string | callMcpWorkshopTool (std::string_view name, Poco::JSON::Object::Ptr args) |
Execute eve_workshop with a narrow op. | |
| std::string_view | mcpWorkshopToolSchemas () |
Comma-free MCP tool schema fragment for eve_workshop. | |
| void | resetMcpWorkshopStateForTest () |
| Test helper: clear workshop mode overlay. | |
| 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 std::string_view | kGameWorldSchemaId = "evengine.game-world" |
| Schema id for the game-world snapshot returned to agents. | |
| constexpr std::int64_t | kGameWorldSchemaVersion = 1 |
| Schema version for the game-world snapshot. | |
| 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 行定义.
◆ McpToolPayload
|
strong |
Wire shape returned by a compiled tool provider.
| 枚举值 | |
|---|---|
| TextValue | |
| ContentEnvelope | |
在文件 McpToolFamilies.hpp 第 18 行定义.
◆ 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 行定义.
函数说明
◆ actionGuideAovFileStem()
| EVENGINE_API_FOUNDATION Result< std::string > eve::dev::actionGuideAovFileStem | ( | std::string_view | aov | ) |
Map pack AOV name to export file stem (silhouette → silhouette.png).
在文件 ActionGuideExport.cpp 第 79 行定义.
引用了 eve::InvalidArgument , 以及 eve::Result< T >::success().
被这些函数引用 writeActionGuideArtifactPack().
◆ agentDevelopmentPhaseName()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::agentDevelopmentPhaseName | ( | AgentDevelopmentPhase | phase | ) |
Stable JSON protocol name for a development phase.
在文件 AgentDevelopmentSession.cpp 第 189 行定义.
引用了 agentDevelopmentPhaseName() , 以及 phase.
被这些函数引用 agentDevelopmentPhaseName().
◆ agentDevelopmentToolSchemas()
| std::string_view eve::dev::agentDevelopmentToolSchemas | ( | ) |
Comma-separated MCP tool schema fragments without surrounding array brackets.
在文件 AgentDevelopmentMcp.cpp 第 150 行定义.
◆ buildGameWorldSnapshot()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::buildGameWorldSnapshot | ( | const GameWorldSnapshotInput & | input | ) |
Assemble runtime world brief plus live system lists.
- 参数
-
input Snapshot ingredients; pointers are not retained.
- 返回
- Owning Value with schemaId
evengine.game-world.
在文件 GameWorldContext.cpp 第 179 行定义.
引用了 input, kGameWorldSchemaId, kGameWorldSchemaVersion, runtimeWorldContext(), snapshot, source , 以及 eve::Result< T >::success().
被这些函数引用 liveGameWorldSnapshot().
◆ 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 第 102 行定义.
引用了 Aborted, eve::dev::AgentDevelopmentEvidence::criterionId, evidence, index, eve::dev::AgentDevelopmentSession::instance(), name, parseAgentDevelopmentPhase(), phase, result, session , 以及 snapshot.
◆ callMcpActionGuideTool() [1/2]
| std::string eve::dev::callMcpActionGuideTool | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
在文件 McpActionGuideTools.cpp 第 721 行定义.
◆ callMcpActionGuideTool() [2/2]
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpActionGuideTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Main-thread tool dispatch for guide-pack validate/landmarks/capture/export.
◆ callMcpArchitectureTool() [1/2]
| std::string eve::dev::callMcpArchitectureTool | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
◆ callMcpArchitectureTool() [2/2]
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpArchitectureTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Query evidence, candidate impact or a bounded task context; returns MCP envelope JSON. @ownership Returns owning text, never pointers to world objects. @lifetime Graph evidence is process-owned and immutable; returned text is independent. @thread Registry/main MCP poll thread; no VM execution or world writes.
◆ callMcpAssetKitTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpAssetKitTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one asset-kit tool.
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpAssetKitTools.cpp 第 378 行定义.
引用了 name.
◆ 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 第 292 行定义.
引用了 name.
◆ callMcpEntityInspectionTool() [1/2]
| std::string eve::dev::callMcpEntityInspectionTool | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
在文件 McpEntityInspection.cpp 第 48 行定义.
引用了 eve::Array, bounds, buffer, camera, encoding, error, eve::Failed, eve::frameCapturePhaseName(), info, input, key, mcpStringify(), n, name, number, p, pending, provider, eve::Ready, request, result, snapshot, text, token, v, value , 以及 view.
◆ callMcpEntityInspectionTool() [2/2]
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpEntityInspectionTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Owner-thread geometry-inspection dispatch; worker only owns immutable CPU pixels.
◆ callMcpFrameCaptureTool() [1/2]
| std::string eve::dev::callMcpFrameCaptureTool | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
在文件 McpFrameCapture.cpp 第 174 行定义.
引用了 a, b, buffer, c, cancelled, caps, cell, cells, channels, eve::dev::FrameContactSheetOptions::columns, depth, done, encoding, error, f, finite, found, eve::frameAttachmentName(), eve::frameCaptureLinearDepth(), eve::frameCapturePhaseName(), eve::frameCapturePixel(), frameContactSheet(), future, eve::dev::McpServer::gameRoot(), getArgFloat(), getArgInt(), getArgString(), eve::HwDepth, imageContentResult(), eve::dev::McpServer::instance(), eve::dev::FramePreviewOptions::inverseProjection, key, mcpStringify(), name, object, options, eve::parseFrameAttachment(), path, pending, eve::Queued, eve::ReadbackPending, eve::Ready, eve::Recording, request, resolved, result, root, service, snapshot, state, token, tokens, view, x , 以及 y.
被这些函数引用 callMcpRuntimeTool().
◆ callMcpFrameCaptureTool() [2/2]
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpFrameCaptureTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Main-thread tool dispatch; workers only access immutable CPU leases.
◆ callMcpInputTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpInputTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one input tool.
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpInputTools.cpp 第 345 行定义.
引用了 name.
◆ callMcpProjectIndexTool() [1/2]
| std::string eve::dev::callMcpProjectIndexTool | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
在文件 McpProjectIndexTools.cpp 第 202 行定义.
引用了 error, isMcpProjectIndexTool(), mcpFailureObject(), mcpStringify(), name, eve::dev::project_index::requiredString(), result, root, sourcePath, state , 以及 textContentResult().
被这些函数引用 callMcpArchitectureTool().
◆ callMcpProjectIndexTool() [2/2]
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpProjectIndexTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Refresh or query current project evidence, including the project mode of eve_task_context. @ownership Returned JSON text owns its contents; cached source records are process-owned. @lifetime Project snapshots are replaced atomically after each successful scan. @thread Main MCP poll thread; filesystem reads and derived cache updates only.
◆ callMcpRecipeTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpRecipeTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one recipe tool.
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpRecipeTools.cpp 第 306 行定义.
引用了 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 第 390 行定义.
引用了 callMcpFrameCaptureTool(), gameWorld(), isMcpFrameCaptureTool() , 以及 name.
◆ callMcpWhiteboxTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpWhiteboxTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute one white-box tool.
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpWhiteboxTools.cpp 第 223 行定义.
引用了 name.
◆ callMcpWorkshopTool()
| EVENGINE_API_FOUNDATION std::string eve::dev::callMcpWorkshopTool | ( | std::string_view | name, |
| Poco::JSON::Object::Ptr | args | ||
| ) |
Execute eve_workshop with a narrow op.
- 返回
- Complete MCP
tools/callresult object JSON (content envelope included).
在文件 McpWorkshopTools.cpp 第 158 行定义.
引用了 name.
◆ callSceneDirectorReturn()
| EVENGINE_API_FOUNDATION std::string eve::dev::callSceneDirectorReturn | ( | HSQUIRRELVM | vm, |
| const std::string & | snippet, | ||
| std::string * | err | ||
| ) |
Compile+run a snippet that returns a value; serialize it as JSON.
在文件 McpSceneDirector.cpp 第 76 行定义.
引用了 eve::script::clearLastScriptError(), sqValueToJson(), text, top , 以及 vm.
◆ callSceneSearch()
| std::string eve::dev::callSceneSearch | ( | std::string_view | name, |
| Object::Ptr | args | ||
| ) |
在文件 McpSceneSearch.cpp 第 105 行定义.
引用了 eve::Array, center, constraint, evidence, frame, hit, mcpStringify(), eve::SceneEmbeddingBatch::model, name, number, offset, out, provider, record, relation, result, eve::sceneSpatialFrameNames, eve::sceneSpatialRelationNames, size, eve::SceneEmbeddingBatch::snapshot, snapshot, spatial, string, tag, tags, textContentResult(), value, values , 以及 eve::SceneEmbeddingBatch::vectors.
◆ 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 第 281 行定义.
引用了 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 第 327 行定义.
被这些函数引用 eve::dev::DevTool::attach(), eve::dev::DevTool::detach() , 以及 exposeMcpScriptApi().
◆ clearWorldContext()
| EVENGINE_API_FOUNDATION void eve::dev::clearWorldContext | ( | ) |
Drop the runtime world brief (soft restart with script reload).
在文件 GameWorldContext.cpp 第 168 行定义.
被这些函数引用 executeSoftRestart() , 以及 eve::dev::DevTool::exposeScriptApi().
◆ compiledMcpToolCatalog()
| EVENGINE_API_FOUNDATION const McpToolFamilyCatalog & eve::dev::compiledMcpToolCatalog | ( | ) |
Build the process-immortal compiled catalogue once, then borrow it until exit. @lifetime Survives static teardown together with McpServer's detached stdio reader. @thread Synchronized first construction; schema callbacks cannot reenter this function during that build.
- 异常
-
std::invalid_argument If a compiled declaration violates the shared catalogue contract. @cost First access parses all schemas; subsequent requests reuse the immutable snapshot.
在文件 McpToolFamilies.cpp 第 47 行定义.
引用了 compiledMcpToolFamilies(), eve::dev::Immortal< T >::get() , 以及 value.
◆ compiledMcpToolFamilies()
| std::vector< McpToolFamily > eve::dev::compiledMcpToolFamilies | ( | ) |
Generated build input; returns binary-owned descriptors for exactly the compiled providers. @cost Copies a descriptor per compiled family, once per catalogue construction.
被这些函数引用 compiledMcpToolCatalog().
◆ 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 第 402 行定义.
引用了 bytes, eve::crashLogPath(), exists, out, path , 以及 size.
◆ decodeActionGuideCandidatePng()
| EVENGINE_API_FOUNDATION Result< ActionGuideCandidateFrame > eve::dev::decodeActionGuideCandidatePng | ( | std::span< const std::uint8_t > | pngBytes | ) |
Decode an 8-bit RGBA PNG into an owning RGBA8 buffer.
- 备注
- Supports only non-interlaced 8-bit RGBA with IHDR/IDAT/IEND (matches FrameCapturePreview encode). @cost Linear in pixel count (inflate + unfilter).
在文件 ActionGuideIngestIO.cpp 第 91 行定义.
引用了 crc, filter, frame, height, input, length, offset, eve::ParseError, raw, eve::Result< T >::success(), type, eve::Unsupported, eve::ActionGuideCandidateFrame::width, width , 以及 y.
被这些函数引用 loadActionGuideCandidates() , 以及 loadActionGuideVerifyRequest().
◆ ensureSceneDirectorInstalled() [1/2]
| EVENGINE_API_FOUNDATION bool eve::dev::ensureSceneDirectorInstalled | ( | HSQUIRRELVM | vm, |
| std::string * | err | ||
| ) |
Convenience overload: allow heavy install immediately (tests / explicit install tool).
在文件 McpSceneDirector.cpp 第 98 行定义.
引用了 ensureSceneDirectorInstalled() , 以及 vm.
被这些函数引用 ensureSceneDirectorInstalled() , 以及 flushPendingSceneDirectorInstall().
◆ ensureSceneDirectorInstalled() [2/2]
| EVENGINE_API_FOUNDATION bool eve::dev::ensureSceneDirectorInstalled | ( | HSQUIRRELVM | vm, |
| std::string * | err, | ||
| bool | allowHeavyWork | ||
| ) |
Install scene_director.nut into the live VM (idempotent).
- 参数
-
allowHeavyWork When false, a missing kit is queued for flushPendingSceneDirectorInstalland the call returns false with errdeferred-to-update(never compile in tools/call).
在文件 McpSceneDirector.cpp 第 102 行定义.
◆ 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 第 898 行定义.
引用了 executePlayRequest(), eve::Result< T >::failure(), eve::Value::fromJson(), request , 以及 response.
◆ 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 第 894 行定义.
引用了 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 第 890 行定义.
引用了 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 第 147 行定义.
引用了 active, eve::dev::SoftRestartReport::args, clearWorldContext(), 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/attachEditor/detachEditor on a VM.
在文件 McpScriptTools.cpp 第 336 行定义.
引用了 eve::dev::ConsolePanel::addLog(), clearScriptTools(), count, eve::editorMcpAttachHook(), eve::editorMcpDetachHook(), found, eve::dev::ConsolePanel::instance(), name, ok, pointer, raw, removed, scriptToolCount(), scriptToolNames(), top , 以及 vm.
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ filterMcpToolsBody()
| EVENGINE_API_FOUNDATION std::string eve::dev::filterMcpToolsBody | ( | std::string_view | toolsBody | ) |
Filter a JSON tools array body in place (objects joined by commas).
- 参数
-
toolsBody Contents inside [...]without the brackets.
- 返回
- Filtered body; empty when every tool was removed.
在文件 McpToolFilter.cpp 第 272 行定义.
引用了 mcpStringify(), mcpToolAllowed(), name , 以及 out.
◆ flushPendingSceneDirectorInstall()
| EVENGINE_API_FOUNDATION void eve::dev::flushPendingSceneDirectorInstall | ( | HSQUIRRELVM | vm | ) |
Run a deferred scene_director install on the game/MCP poll thread.
在文件 McpSceneDirector.cpp 第 126 行定义.
引用了 ensureSceneDirectorInstalled() , 以及 vm.
被这些函数引用 eve::dev::McpServer::poll().
◆ frameCapturePreview()
| EVENGINE_API_FOUNDATION Result< FramePreview > eve::dev::frameCapturePreview | ( | const FrameCaptureBuffer & | b, |
| const FramePreviewOptions & | o | ||
| ) |
在文件 FrameCapturePreview.cpp 第 29 行定义.
引用了 eve::Albedo, b, c, eve::dev::FramePreviewOptions::channel, eve::Depth, depth, eve::Depth32Float, eve::Emissive, eve::dev::FramePreviewOptions::exposure, eve::Result< T >::failure(), eve::Final, eve::frameCaptureLinearDepth(), eve::frameCapturePixel(), eve::framePixelBytes(), eve::dev::FramePreviewOptions::inverseProjection, eve::dev::FramePreviewOptions::maxBytes, eve::dev::FramePreviewOptions::maxHeight, eve::dev::FramePreviewOptions::maxWidth, eve::Normal, offset, out, eve::dev::FramePreviewOptions::rangeMax, eve::dev::FramePreviewOptions::rangeMin, eve::Rgba16Float, scale, eve::Result< T >::success(), value, values, eve::Velocity, eve::dev::FramePreviewOptions::view, eve::dev::FramePreview::view, x , 以及 y.
被这些函数引用 frameContactSheet().
◆ frameContactSheet()
| EVENGINE_API_FOUNDATION Result< FramePreview > eve::dev::frameContactSheet | ( | std::span< const FrameCaptureBuffer > | frames, |
| const FrameContactSheetOptions & | options | ||
| ) |
在文件 FrameContactSheet.cpp 第 6 行定义.
引用了 eve::Bgra8, eve::FrameCaptureBuffer::bytes, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Final, frame, frameCapturePreview(), eve::FrameCaptureBuffer::height, height, index, eve::InvalidArgument, left, eve::dev::FramePreviewOptions::maxBytes, eve::dev::FramePreviewOptions::maxHeight, eve::dev::FramePreviewOptions::maxWidth, message, options, p, pixels, eve::Rgba8, rows, scale, source, top, eve::dev::FramePreviewOptions::view, eve::FrameCaptureBuffer::width, width, x , 以及 y.
被这些函数引用 callMcpFrameCaptureTool().
◆ gameWorld()
| std::string eve::dev::gameWorld | ( | ) |
在文件 McpRuntimeTools.cpp 第 368 行定义.
引用了 liveGameWorldSnapshot(), snapshot, eve::statusCodeName() , 以及 textContentResult().
被这些函数引用 callMcpRuntimeTool().
◆ getArgBool()
|
inline |
◆ getArgFloat()
|
inline |
Floating-point argument, or def when absent or not convertible.
在文件 McpArgs.hpp 第 55 行定义.
引用了 key.
被这些函数引用 callMcpFrameCaptureTool().
◆ getArgInt()
|
inline |
Integer argument, or def when absent or not convertible.
在文件 McpArgs.hpp 第 35 行定义.
引用了 key.
被这些函数引用 callMcpFrameCaptureTool().
◆ getArgInt64()
|
inline |
◆ getArgString()
|
inline |
String argument, or def when absent or not convertible.
在文件 McpArgs.hpp 第 25 行定义.
被这些函数引用 callMcpFrameCaptureTool().
◆ getArgVar()
|
inline |
◆ hasWorldContext()
|
noexcept |
Whether a runtime brief is currently published.
在文件 GameWorldContext.cpp 第 173 行定义.
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ 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 第 102 行定义.
引用了 image, mcpStringify() , 以及 result.
被这些函数引用 callMcpFrameCaptureTool().
◆ isAgentDevelopmentTool()
| bool eve::dev::isAgentDevelopmentTool | ( | std::string_view | name | ) |
Whether a tool name belongs to the Agent development-session protocol.
在文件 AgentDevelopmentMcp.cpp 第 95 行定义.
引用了 name.
◆ isMcpActionGuideTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpActionGuideTool | ( | std::string_view | name | ) |
◆ isMcpArchitectureTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpArchitectureTool | ( | std::string_view | name | ) |
Read-only architecture queries derived from the build's binding registry.
在文件 McpArchitectureTools.cpp 第 192 行定义.
引用了 name.
被这些函数引用 callMcpArchitectureTool().
◆ isMcpAssetKitTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpAssetKitTool | ( | std::string_view | name | ) |
Whether name is list/get/resolve under the asset-kit family.
在文件 McpAssetKitTools.cpp 第 374 行定义.
引用了 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 第 285 行定义.
引用了 name.
◆ isMcpFrameCaptureTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpFrameCaptureTool | ( | std::string_view | name | ) |
True for the frame snapshot MCP family.
在文件 McpFrameCapture.cpp 第 159 行定义.
引用了 name.
被这些函数引用 callMcpRuntimeTool() , 以及 isMcpRuntimeTool().
◆ isMcpInputTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpInputTool | ( | std::string_view | name | ) |
◆ isMcpProjectIndexTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpProjectIndexTool | ( | std::string_view | name | ) |
Recognizes project-index discovery/refresh tools; no project code is executed.
在文件 McpProjectIndexTools.cpp 第 199 行定义.
引用了 name.
被这些函数引用 callMcpProjectIndexTool().
◆ isMcpRecipeTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpRecipeTool | ( | std::string_view | 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 第 383 行定义.
引用了 isMcpFrameCaptureTool() , 以及 name.
◆ isMcpWhiteboxTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpWhiteboxTool | ( | std::string_view | name | ) |
Whether name belongs to the white-box playtest tool family.
在文件 McpWhiteboxTools.cpp 第 221 行定义.
引用了 name.
◆ isMcpWorkshopTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isMcpWorkshopTool | ( | std::string_view | name | ) |
◆ isScriptTool()
| EVENGINE_API_FOUNDATION bool eve::dev::isScriptTool | ( | const std::string & | name | ) |
Whether name is exported by the project script registry.
在文件 McpScriptTools.cpp 第 250 行定义.
◆ 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 第 240 行定义.
◆ liveGameWorldSnapshot()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::liveGameWorldSnapshot | ( | ) |
Build the Discover snapshot against the live engine.
- 返回
- Owning snapshot. @thread Game-loop / MCP poll thread only.
在文件 GameWorldContext.cpp 第 292 行定义.
引用了 buildGameWorldSnapshot(), eve::Value::fromJson(), eve::dev::GameWorldSnapshotInput::gameRoot, eve::dev::McpServer::gameRoot(), id, input, eve::dev::Debugger::instance(), eve::dev::McpServer::instance(), object, path, readConfigTitle(), readConfiguredModules(), readLiveModules(), root, vm , 以及 eve::dev::Debugger::vm().
被这些函数引用 eve::dev::DevTool::exposeScriptApi() , 以及 gameWorld().
◆ loadActionGuideCandidates()
| EVENGINE_API_FOUNDATION Result< std::vector< ActionGuideCandidateFrame > > eve::dev::loadActionGuideCandidates | ( | const std::filesystem::path & | candidateDir, |
| const ActionGuidePack & | pack | ||
| ) |
Load NNNN/{meta.json,frame.png} under candidateDir into an ordered frame list. @cost Disk IO + PNG decode × frame count.
在文件 ActionGuideIngestIO.cpp 第 161 行定义.
引用了 eve::decodeActionGuideCandidateMeta(), decodeActionGuideCandidatePng(), eve::Failed, frame, eve::Value::fromJson(), eve::InvalidArgument, eve::NotFound , 以及 pack.
◆ loadActionGuideVerifyRequest()
| EVENGINE_API_FOUNDATION Result< ActionGuideVerifyRequest > eve::dev::loadActionGuideVerifyRequest | ( | const ActionGuidePack & | pack, |
| const std::filesystem::path & | guideArtifactDir, | ||
| const std::filesystem::path & | candidateDir | ||
| ) |
Load guide silhouette PNGs + candidate frames into a verify request.
- 备注
- guideArtifactDir uses export layout
shots/NNNN/silhouette.png. candidateDir uses ingest layoutNNNN/frame.png. @cost Disk IO + PNG decode × shot count.
在文件 ActionGuideVerifyIO.cpp 第 41 行定义.
引用了 eve::ActionGuideVerifyShotInput::candidateRgba8, decodeActionGuideCandidatePng(), eve::Failed, eve::Result< T >::failure(), eve::ActionGuideVerifyShotInput::guideSilhouetteRgba8, eve::ActionGuideVerifyShotInput::height, eve::InvalidArgument, eve::NotFound, eve::ActionGuideVerifyRequest::pack, pack, request, eve::ActionGuideVerifyShotInput::shotId, eve::ActionGuidePack::shots, eve::Result< T >::success() , 以及 eve::ActionGuideVerifyShotInput::width.
◆ mcpActionGuideToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpActionGuideToolSchemas | ( | ) |
Comma-separated schemas for tools/list.
在文件 McpActionGuideTools.cpp 第 734 行定义.
◆ mcpArchitectureToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpArchitectureToolSchemas | ( | ) |
Comma-free schema objects for the read-only architecture tools. @ownership Borrowed view of process-owned immutable schema text. @lifetime Valid for the remainder of the process after first initialization. @thread Static initialization is synchronized; subsequent reads are safe.
在文件 McpArchitectureTools.cpp 第 205 行定义.
引用了 eve::Array, input, mcpStringify(), name, text , 以及 value.
◆ mcpAssetKitToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpAssetKitToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for the asset-kit family.
在文件 McpAssetKitTools.cpp 第 385 行定义.
◆ mcpCallgraphEvents()
| std::size_t eve::dev::mcpCallgraphEvents | ( | ) |
◆ mcpCallgraphStackDepth()
| std::size_t eve::dev::mcpCallgraphStackDepth | ( | ) |
在文件 DevTool.cpp 第 895 行定义.
引用了 eve::dev::CallGraph::currentStack(), eve::dev::DevTool::graph() , 以及 eve::dev::DevTool::instance().
◆ mcpCoreToolSchemas()
| std::string_view eve::dev::mcpCoreToolSchemas | ( | ) |
Borrow legacy core tool schemas; process lifetime, synchronized first initialization. @cost First access joins the core schema fragments once; subsequent reads are constant time.
在文件 McpCoreSchemas.cpp 第 5 行定义.
◆ mcpDevAttached()
| bool eve::dev::mcpDevAttached | ( | ) |
Thin hooks so McpServer.cpp need not include DevTool.hpp (avoids a cycle).
在文件 DevTool.cpp 第 891 行定义.
引用了 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 第 307 行定义.
◆ mcpEntityInspectionSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpEntityInspectionSchemas | ( | ) |
Source-owned schemas for the optional entity-inspection capability.
在文件 McpEntityInspection.cpp 第 164 行定义.
引用了 mcpEntityInspectionSchemas().
被这些函数引用 mcpEntityInspectionSchemas().
◆ mcpFailureObject()
|
inline |
Structured tool failure object for agent self-correction.
- 参数
-
error Stable machine-readable reason. hint What the agent should try next (human + model readable). retryable Whether repeating the same call may succeed after progress. nextTools Optional tool names to call next.
- 返回
- Object with
ok=falseplus the optional recovery fields.
在文件 McpJson.hpp 第 63 行定义.
被这些函数引用 callMcpArchitectureTool(), callMcpProjectIndexTool() , 以及 mcpToolFilteredPayload().
◆ mcpFilterNoteCall()
| EVENGINE_API_FOUNDATION void eve::dev::mcpFilterNoteCall | ( | bool | allowed, |
| std::size_t | resultBytes, | ||
| bool | offeredEscalate | ||
| ) |
Record a tools/call attempt for proxy metrics.
在文件 McpTaskProfile.cpp 第 283 行定义.
被这些函数引用 mcpToolFilteredPayload().
◆ mcpFilterStats()
| EVENGINE_API_FOUNDATION McpFilterStats eve::dev::mcpFilterStats | ( | ) |
Snapshot of proxy metrics since process start / last test reset.
在文件 McpTaskProfile.cpp 第 291 行定义.
◆ mcpFilterStatsResetForTest()
| EVENGINE_API_FOUNDATION void eve::dev::mcpFilterStatsResetForTest | ( | ) |
Test helper: zero proxy metrics.
在文件 McpTaskProfile.cpp 第 296 行定义.
◆ mcpFormatError()
| std::string eve::dev::mcpFormatError | ( | const std::string & | message | ) |
在文件 DevTool.cpp 第 909 行定义.
引用了 eve::dev::DevTool::formatError(), eve::dev::DevTool::instance() , 以及 message.
◆ mcpFrameCaptureSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpFrameCaptureSchemas | ( | ) |
Comma-separated schemas for tools/list.
在文件 McpFrameCapture.cpp 第 545 行定义.
引用了 bounds, key, mcpFrameCaptureSchemas(), mcpStringify(), name, object, out, p, required, type, value , 以及 values.
被这些函数引用 mcpFrameCaptureSchemas().
◆ mcpInputToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpInputToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for the input family.
在文件 McpInputTools.cpp 第 352 行定义.
◆ mcpJsonEscape()
|
inline |
Escape a raw string for embedding inside a JSON string literal.
在文件 McpJson.hpp 第 31 行定义.
被这些函数引用 sceneLiteral(), scriptToolSchemas(), sqKeyToJson() , 以及 sqValueToJson().
◆ mcpLastReport()
| const std::string & eve::dev::mcpLastReport | ( | ) |
在文件 DevTool.cpp 第 907 行定义.
引用了 eve::dev::DevTool::instance() , 以及 eve::dev::DevTool::lastReport().
◆ mcpProcessProfile()
| EVENGINE_API_FOUNDATION std::string eve::dev::mcpProcessProfile | ( | ) |
Current process-level profile; empty when unset.
在文件 McpTaskProfile.cpp 第 267 行定义.
被这些函数引用 mcpToolAllowed() , 以及 mcpToolFilteredPayload().
◆ mcpProfileAllowsTool()
| EVENGINE_API_FOUNDATION bool eve::dev::mcpProfileAllowsTool | ( | std::string_view | profile, |
| std::string_view | tool | ||
| ) |
Whether tool is allowed under a concrete named profile (empty = no profile gate).
在文件 McpTaskProfile.cpp 第 144 行定义.
引用了 mcpProfileToolsetTags() , 以及 tags.
被这些函数引用 mcpProfileEscalateHint(), mcpToolAllowed() , 以及 mcpToolFilteredPayload().
◆ mcpProfileEscalateHint()
| EVENGINE_API_FOUNDATION std::optional< McpProfileEscalate > eve::dev::mcpProfileEscalateHint | ( | std::string_view | profile, |
| std::string_view | tool | ||
| ) |
Suggest an escalate edge when tool is denied by profile.
- 返回
- Empty when no legal edge exists for this denial.
在文件 McpTaskProfile.cpp 第 210 行定义.
引用了 eve::dev::McpProfileEscalate::errorCode, mcpProfileAllowsTool(), eve::dev::McpProfileEscalate::reason , 以及 eve::dev::McpProfileEscalate::to.
被这些函数引用 mcpToolFilteredPayload().
◆ mcpProfileToolsetEnv()
| EVENGINE_API_FOUNDATION std::string eve::dev::mcpProfileToolsetEnv | ( | std::string_view | profile | ) |
Comma-joined toolset tags for env forwarding (eve-mcp --profile=).
在文件 McpTaskProfile.cpp 第 134 行定义.
引用了 mcpProfileToolsetTags(), out, tag , 以及 tags.
◆ mcpProfileToolsetTags()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::mcpProfileToolsetTags | ( | std::string_view | profile | ) |
Tag list advertised for EVE_MCP_TOOLSET when only a named profile is chosen.
在文件 McpTaskProfile.cpp 第 124 行定义.
被这些函数引用 mcpProfileAllowsTool() , 以及 mcpProfileToolsetEnv().
◆ mcpProjectIndexToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpProjectIndexToolSchemas | ( | ) |
Comma-separated tool schemas without an enclosing array. @ownership Borrowed process-owned immutable text. @lifetime Valid until process exit. @thread Synchronized static initialization, then immutable reads.
在文件 McpProjectIndexTools.cpp 第 223 行定义.
◆ mcpRecipeToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpRecipeToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for the recipe family.
在文件 McpRecipeTools.cpp 第 312 行定义.
◆ mcpRecordSnippetError()
| void eve::dev::mcpRecordSnippetError | ( | std::string | report | ) |
VM-thread-only owning diagnostic publication; clears stale slicing data.
在文件 DevTool.cpp 第 905 行定义.
引用了 eve::dev::DevTool::instance() , 以及 eve::dev::DevTool::recordMcpSnippetError().
◆ mcpResolveTaskProfile()
| EVENGINE_API_FOUNDATION bool eve::dev::mcpResolveTaskProfile | ( | std::string_view | taskKind, |
| std::string_view | profile, | ||
| std::string * | outProfile, | ||
| std::string * | outTaskKind, | ||
| std::string * | errorCode, | ||
| std::string * | errorMessage | ||
| ) |
Resolve taskKind + optional profile into a concrete profile id.
- 参数
-
taskKind Empty defaults to verify.profile Empty selects the taskKind default profile. outProfile Receives the resolved profile id on success. outTaskKind Receives the resolved taskKind on success. errorCode Receives a stable rejection code on failure. errorMessage Receives a human-readable rejection on failure.
- 返回
- true when both values are valid and consistent.
在文件 McpTaskProfile.cpp 第 81 行定义.
引用了 kind.
被这些函数引用 eve::dev::AgentDevelopmentSession::escalate() , 以及 eve::dev::AgentDevelopmentSession::start().
◆ mcpRuntimeToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpRuntimeToolSchemas | ( | ) |
Comma-separated MCP tool schema fragments without surrounding array brackets.
在文件 McpRuntimeTools.cpp 第 420 行定义.
◆ mcpSessionProfile()
| EVENGINE_API_FOUNDATION std::string eve::dev::mcpSessionProfile | ( | ) |
Current session-level profile; empty when no session overlay.
在文件 McpTaskProfile.cpp 第 278 行定义.
被这些函数引用 mcpToolAllowed() , 以及 mcpToolFilteredPayload().
◆ mcpSetProcessProfile()
| EVENGINE_API_FOUNDATION void eve::dev::mcpSetProcessProfile | ( | std::string_view | profile | ) |
Install or clear the process-level profile (EVE_MCP_PROFILE mirror for tests).
在文件 McpTaskProfile.cpp 第 261 行定义.
被这些函数引用 mcpToolFilterReloadForTest().
◆ mcpSetSessionProfile()
| EVENGINE_API_FOUNDATION void eve::dev::mcpSetSessionProfile | ( | std::string_view | profile | ) |
Install or clear the session-level profile overlay.
在文件 McpTaskProfile.cpp 第 273 行定义.
被这些函数引用 eve::dev::AgentDevelopmentSession::escalate(), eve::dev::AgentDevelopmentSession::reset() , 以及 eve::dev::AgentDevelopmentSession::start().
◆ mcpStringify()
|
inline |
Compact single-line JSON text for a newline-framed MCP payload.
在文件 McpJson.hpp 第 24 行定义.
被这些函数引用 callMcpArchitectureTool(), callMcpEntityInspectionTool(), callMcpFrameCaptureTool(), callMcpProjectIndexTool(), callSceneSearch(), filterMcpToolsBody(), imageContentResult(), mcpArchitectureToolSchemas(), mcpFrameCaptureSchemas(), eve::dev::McpToolFamilyCatalog::McpToolFamilyCatalog(), mcpToolFilteredPayload() , 以及 textContentResult().
◆ mcpToolAllowed()
| EVENGINE_API_FOUNDATION bool eve::dev::mcpToolAllowed | ( | std::string_view | name | ) |
Whether name is visible under the current env filter.
- 备注
- Call sites must use the same predicate for tools/list and tools/call.
在文件 McpToolFilter.cpp 第 250 行定义.
引用了 hit, mcpProcessProfile(), mcpProfileAllowsTool(), mcpSessionProfile(), mcpToolMutates(), mcpToolTags(), name, tag , 以及 tags.
被这些函数引用 filterMcpToolsBody().
◆ mcpToolFilteredPayload()
| EVENGINE_API_FOUNDATION std::string eve::dev::mcpToolFilteredPayload | ( | std::string_view | name | ) |
Human-readable rejection payload fields when a call is filtered out.
- 返回
- Compact JSON object text: ok/error/hint/nextTools.
在文件 McpToolFilter.cpp 第 295 行定义.
引用了 error, mcpFailureObject(), mcpFilterNoteCall(), mcpProcessProfile(), mcpProfileAllowsTool(), mcpProfileEscalateHint(), mcpSessionProfile(), mcpStringify(), mcpToolMutates(), mcpToolTags(), name, out, payload, tag , 以及 tags.
◆ mcpToolFilterReloadForTest()
| EVENGINE_API_FOUNDATION void eve::dev::mcpToolFilterReloadForTest | ( | ) |
Test helper: clear cached env snapshot so the next allow check reloads.
在文件 McpToolFilter.cpp 第 100 行定义.
引用了 mcpSetProcessProfile() , 以及 raw.
◆ mcpToolMutates()
| EVENGINE_API_FOUNDATION bool eve::dev::mcpToolMutates | ( | std::string_view | name | ) |
Whether the tool mutates game / editor / host state.
在文件 McpToolFilter.cpp 第 204 行定义.
引用了 name.
被这些函数引用 mcpToolAllowed() , 以及 mcpToolFilteredPayload().
◆ mcpToolTags()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::mcpToolTags | ( | std::string_view | name | ) |
Classify a built-in or script tool into toolset tags.
- 参数
-
name Tool name from tools/list / tools/call.
- 返回
- Stable tag labels (never empty; unknown names get
core).
在文件 McpToolFilter.cpp 第 112 行定义.
被这些函数引用 mcpToolAllowed() , 以及 mcpToolFilteredPayload().
◆ mcpWhiteboxToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpWhiteboxToolSchemas | ( | ) |
Comma-free MCP tool schema fragments for the white-box family.
在文件 McpWhiteboxTools.cpp 第 228 行定义.
◆ mcpWorkshopToolSchemas()
| EVENGINE_API_FOUNDATION std::string_view eve::dev::mcpWorkshopToolSchemas | ( | ) |
Comma-free MCP tool schema fragment for eve_workshop.
在文件 McpWorkshopTools.cpp 第 163 行定义.
◆ 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 第 203 行定义.
引用了 applied, 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, recording, request, root, steps, eve::Result< T >::success(), eve::Unsupported , 以及 version.
被这些函数引用 replayPlayTrace().
◆ parseWorldObject()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::parseWorldObject | ( | const Value & | world | ) |
Validate one runtime-published world object.
- 参数
-
world Candidate object; unknown fields fail.
- 返回
- Normalized owning object on success.
- 备注
- Allowed keys: title, summary, genre, tags, dimensions, perspective, systems. At least one of title / summary / genre / systems is required.
在文件 GameWorldContext.cpp 第 109 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), found, key, object, eve::ParseError, eve::Result< T >::success() , 以及 title.
被这些函数引用 publishWorldContext().
◆ 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().
◆ pollMcpInputBatches()
| EVENGINE_API_FOUNDATION void eve::dev::pollMcpInputBatches | ( | ) |
Advance pending wait/capture batches once per game-loop poll. @thread MCP poll / game-loop thread only.
在文件 McpInputTools.cpp 第 356 行定义.
引用了 b.
被这些函数引用 eve::dev::McpServer::poll().
◆ publishWorldContext()
| EVENGINE_API_FOUNDATION Result< void > eve::dev::publishWorldContext | ( | Value | world | ) |
Replace the runtime world brief published by the live game script.
- 参数
-
world Owning object; validated with parseWorldObject. @thread Game-loop / MCP poll thread only.
在文件 GameWorldContext.cpp 第 160 行定义.
引用了 eve::Result< T >::failure(), parseWorldObject() , 以及 eve::Result< T >::success().
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ readConfigTitle()
| EVENGINE_API_FOUNDATION std::string eve::dev::readConfigTitle | ( | HSQUIRRELVM | vm | ) |
Read config.title from the attached VM root.
- 参数
-
vm Live Squirrel VM, or null (returns empty).
在文件 GameWorldContext.cpp 第 215 行定义.
引用了 found, object, title , 以及 vm.
被这些函数引用 liveGameWorldSnapshot().
◆ readConfiguredModules()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::readConfiguredModules | ( | HSQUIRRELVM | vm | ) |
Read config.modules / optionalModules from the attached VM root.
- 参数
-
vm Live Squirrel VM, or null (returns empty).
在文件 GameWorldContext.cpp 第 229 行定义.
引用了 vm.
被这些函数引用 liveGameWorldSnapshot().
◆ readLiveModules()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::readLiveModules | ( | HSQUIRRELVM | vm | ) |
List instantiated module slots declared in eve.moduleList.
- 参数
-
vm Live Squirrel VM, or null (returns empty).
在文件 GameWorldContext.cpp 第 243 行定义.
引用了 count, index, live, present, slot, top , 以及 vm.
被这些函数引用 liveGameWorldSnapshot().
◆ 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(), recording, response, root, state, step, steps , 以及 eve::Result< T >::success().
◆ resetMcpActionGuide()
| EVENGINE_API_FOUNDATION void eve::dev::resetMcpActionGuide | ( | ) |
Clear the process-local guide-pack session used by get/set.
在文件 McpActionGuideTools.cpp 第 719 行定义.
引用了 session.
被这些函数引用 eve::dev::ReloadSession::begin(), eve::dev::McpServer::listenStdio() , 以及 eve::dev::McpServer::poll().
◆ resetMcpFrameCapture()
| EVENGINE_API_FOUNDATION void eve::dev::resetMcpFrameCapture | ( | ) |
Main-thread disconnect cleanup; workers observe cancellation before publishing files.
在文件 McpFrameCapture.cpp 第 166 行定义.
引用了 token.
被这些函数引用 eve::dev::ReloadSession::begin(), eve::dev::McpServer::listenStdio() , 以及 eve::dev::McpServer::poll().
◆ resetMcpInputBatchesForTest()
| EVENGINE_API_FOUNDATION void eve::dev::resetMcpInputBatchesForTest | ( | ) |
Drop pending batches (tests / server stop).
在文件 McpInputTools.cpp 第 378 行定义.
◆ resetMcpWorkshopStateForTest()
| EVENGINE_API_FOUNDATION void eve::dev::resetMcpWorkshopStateForTest | ( | ) |
Test helper: clear workshop mode overlay.
在文件 McpWorkshopTools.cpp 第 167 行定义.
◆ 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 第 134 行定义.
被这些函数引用 eve::dev::DevTool::exposeScriptApi().
◆ resourceCacheCount()
| EVENGINE_API_FOUNDATION std::size_t eve::dev::resourceCacheCount | ( | ) |
Current ResourceManager cache entry count (for restart telemetry).
在文件 SoftRestart.cpp 第 145 行定义.
引用了 eve::ResourceManager::count() , 以及 eve::ResourceManager::getInstance().
被这些函数引用 executeSoftRestart() , 以及 eve::dev::DevTool::exposeScriptApi().
◆ runMcpVmSnippet()
| EVENGINE_API_FOUNDATION bool eve::dev::runMcpVmSnippet | ( | HSQUIRRELVM | vm, |
| const std::string & | source, | ||
| std::string * | err | ||
| ) |
Compile and run a transient MCP snippet (no return value). @thread Game-loop / MCP poll thread with an attached VM.
在文件 McpSceneDirector.cpp 第 54 行定义.
引用了 eve::script::clearLastScriptError(), source, top , 以及 vm.
◆ runtimeWorldContext()
|
noexcept |
Current runtime brief, or null when none is published. @ownership Borrowed; valid until the next publish/clear on this thread.
在文件 GameWorldContext.cpp 第 175 行定义.
被这些函数引用 buildGameWorldSnapshot() , 以及 eve::dev::DevTool::exposeScriptApi().
◆ sceneDirectorInstallPending()
| EVENGINE_API_FOUNDATION bool eve::dev::sceneDirectorInstallPending | ( | ) |
Whether a deferred install is waiting for the next poll.
在文件 McpSceneDirector.cpp 第 132 行定义.
◆ sceneDirectorToolError()
| EVENGINE_API_FOUNDATION std::string eve::dev::sceneDirectorToolError | ( | const std::string & | name, |
| const std::string & | err | ||
| ) |
Format a scene-director tool failure.
- 备注
deferred-to-updatebecomes a structured retryable JSON object; other errors keep the legacyerror: <name>: <err>text for existing clients.
在文件 McpSceneDirector.cpp 第 134 行定义.
引用了 name.
◆ sceneLiteral()
|
inline |
Encode owning JSON data as a Squirrel literal without losing pointer containers or precision.
- 参数
-
value Parsed JSON value. depth Internal recursion depth, limited to 16.
- 返回
- Owning literal or InvalidArgument for unsupported/nonfinite/deep input. @thread Calling thread; no VM access, callbacks or retained references.
在文件 McpSceneLiteral.hpp 第 19 行定义.
引用了 depth, eve::Diagnostic::error(), eve::Result< T >::failure(), first, eve::InvalidArgument, key, mcpJsonEscape(), number, object, sceneLiteral(), eve::Result< T >::success(), text , 以及 value.
被这些函数引用 sceneLiteral().
◆ sceneSearchSchemas()
| std::string_view eve::dev::sceneSearchSchemas | ( | ) |
在文件 McpSceneSearch.cpp 第 260 行定义.
◆ scriptToolCount()
| EVENGINE_API_FOUNDATION int eve::dev::scriptToolCount | ( | ) |
Number of exported tools (for eve_status).
在文件 McpScriptTools.cpp 第 263 行定义.
被这些函数引用 exposeMcpScriptApi().
◆ scriptToolNames()
| EVENGINE_API_FOUNDATION std::vector< std::string > eve::dev::scriptToolNames | ( | ) |
Exported tool names in registration order.
在文件 McpScriptTools.cpp 第 255 行定义.
被这些函数引用 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 第 268 行定义.
引用了 mcpJsonEscape() , 以及 out.
◆ 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(), out, sqKeyToJson(), sqValueToJson(), value , 以及 vm.
被这些函数引用 callSceneDirectorReturn(), 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 第 84 行定义.
引用了 mcpStringify(), result , 以及 text.
被这些函数引用 callMcpArchitectureTool(), callMcpProjectIndexTool(), callSceneSearch() , 以及 gameWorld().
◆ writeActionGuideArtifactPack()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::writeActionGuideArtifactPack | ( | const ActionGuideCaptureSnapshot & | snapshot, |
| const std::filesystem::path & | root | ||
| ) |
Encode Ready silhouette/depth(/bone) buffers as PNG + manifest under root.
- 参数
-
snapshot Ready lease borrowed for this call; bytes must remain valid for the duration. root Absolute destination directory (created if missing).
- 返回
- Owning Value summarizing written relative paths, or a structured failure.
- 备注
- Layout:
manifest.json+shots/NNNN/{meta.json,silhouette.png,depth.png,…}. @cost Linear in shot × AOV × canvas pixels (PNG encode); amortize by reusing Ready leases. @thread Caller thread; may perform filesystem IO. Does not touch GPU.
在文件 ActionGuideExport.cpp 第 89 行定义.
引用了 actionGuideAovFileStem(), eve::Failed, eve::Result< T >::failure(), eve::InvalidArgument, eve::Value::object(), eve::Ready, eve::dev::project_index::Snapshot::revision, root, snapshot, eve::Result< T >::success(), tag, tags , 以及 eve::Value::toJson().
◆ writeActionGuideIngestPack()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::writeActionGuideIngestPack | ( | const ActionGuideIngestDraft & | draft, |
| std::span< const ActionGuideCandidateFrame > | frames, | ||
| const std::filesystem::path & | outputRoot | ||
| ) |
Atomically write frames + clip/ability drafts under outputRoot.
- 备注
- Stages under
.stagingthen renames; failure leaves no published tree. @cost Linear in frame count × pixels (PNG encode) plus filesystem IO.
在文件 ActionGuideIngestIO.cpp 第 197 行定义.
引用了 draft, eve::Failed, eve::Result< T >::failure(), height, eve::InvalidArgument, name, eve::Value::object(), r, eve::Result< T >::success(), value , 以及 width.
◆ writeActionGuideVerifyEvidence()
| EVENGINE_API_FOUNDATION Result< Value > eve::dev::writeActionGuideVerifyEvidence | ( | const ActionGuideVerifyReport & | report, |
| const std::filesystem::path & | outputRoot | ||
| ) |
Write verify.evidence.json under outputRoot (creates directories). @cost Small JSON encode + filesystem write.
在文件 ActionGuideVerifyIO.cpp 第 91 行定义.
引用了 eve::encodeActionGuideVerifyReport(), eve::ActionGuideVerifyReport::evidence, eve::Failed, eve::Result< T >::failure(), eve::Value::isNull(), eve::Value::object(), eve::ActionGuideVerifyReport::passed, eve::ActionGuideVerifyReport::sourceGuideRevision, eve::Result< T >::status(), eve::Result< T >::success(), eve::Value::toJson() , 以及 eve::Result< T >::value().
变量说明
◆ kGameWorldSchemaId
|
inlineconstexpr |
Schema id for the game-world snapshot returned to agents.
在文件 GameWorldContext.hpp 第 36 行定义.
被这些函数引用 buildGameWorldSnapshot().
◆ kGameWorldSchemaVersion
|
inlineconstexpr |
Schema version for the game-world snapshot.
在文件 GameWorldContext.hpp 第 38 行定义.
被这些函数引用 buildGameWorldSnapshot().
◆ 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().