载入中...
搜索中...
未找到
EditorCommandService.h
浏览该文件的文档.
48using EditorCommandHandler = std::function<Result<EditorValue>(const CommandContext&, const EditorValue&)>;
79 Result<EditorValue> registerPlannedCommand(CommandDescriptor descriptor, EditorCommandPlanner planner,
122 [[nodiscard]] Result<void> checkExecutionPolicy(const CommandDescriptor& descriptor, const CommandId& id,
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:313
Deterministic owning value tree shared by authoring hosts.
Definition EditingValue.h:23
Registry and execution gate for UI-, script- and automation-neutral commands.
Definition EditorCommandService.h:60
uint64_t revision() const
Monotonic registry generation changed by registration mutations.
Definition EditorCommandService.h:95
Hosts interchangeable editor tools and routes their lifecycle/input.
Definition EditorSession.h:30
Upper capability boundary for one editor host.
Definition EditorHostProfile.h:51
Definition ActionPreviewController.cpp:6
std::function< Result< TransactionReceipt >(const CommandRequest &, const CommandPlan &)> EditorCommandPlanExecutor
Definition EditorCommandService.h:51
std::function< Result< EditorValue >(const CommandContext &, const EditorValue &)> EditorCommandHandler
Definition EditorCommandService.h:48
HostFeature
Coarse host features used to discover and gate editor extensions.
Definition EditorHostProfile.h:18
std::function< Result< CommandPlan >(const CommandRequest &)> EditorCommandPlanner
Definition EditorCommandService.h:49
Immutable execution context captured for a synchronous command.
Definition EditorCommandService.h:21
uint64_t targetRevision
Definition EditorCommandService.h:25
Presentation and execution metadata for a registered command.
Definition EditorCommandService.h:30
std::string panelCapability
Bound workspace panel capability (panel-before-automation).
Definition EditorCommandService.h:43
bool createsTransaction
Definition EditorCommandService.h:36
bool automationAllowed
Definition EditorCommandService.h:37
PropertySchema payloadSchema
Payload schema projected to MCP inputSchema / Inspector.
Definition EditorCommandService.h:41
HostFeature requiredFeatures
Definition EditorCommandService.h:35
std::vector< std::string > targetKinds
Target type names this command may bind.
Definition EditorCommandService.h:39
std::string ownerModule
Definition EditorCommandService.h:32
std::string displayName
Definition EditorCommandService.h:33