moui_agent

    MoUI agent protocol layer: observable/controllable runtime surface for external agents

    Download zip
    Author
    Version
    0.7.2
    License
    Apache-2.0
    Last updated
    8 hours ago
    Downloads
    631

    wzzc-dev/moui_agent does not have a README file

    AgentDiagnosticsHost

    pub(open) trait AgentDiagnosticsHost {
    fn runtime_state(Self) -> Result[RuntimeStateSnapshot, AgentDiagnosticsError]
    fn paint_summary(Self) -> Result[PaintSummary, AgentDiagnosticsError]
    fn dispatch_event(Self, event :
    AppEvent
    ) -> Result[DiagnosticsDispatchResult, AgentDiagnosticsError]
    fn dispatch_command(Self, intent :
    CommandIntent
    ) -> Result[DiagnosticsDispatchResult, AgentDiagnosticsError]
    }

    Opt-in diagnostics surface. It does not inherit from AgentHost and is not exposed by the default MCP registry.

    AgentHost

    pub(open) trait AgentHost {
    fn read_semantics(Self, since :
    SemanticsGeneration
    ?) -> Result[AgentSemanticsRead, AgentReadError]
    fn perform_action(Self, request : AgentActionRequest) -> Result[AgentActionReceipt, AgentActionError]
    }

    Stable semantic control surface for an Agent transport.

    The trait deliberately contains no coordinate input, global commands, runtime counters, frame capture, activation state, or subscriptions.

    AgentAccessibilityAnnouncement

    Agent-facing projection of one live-region change.

    AgentAccessibilityAnnouncement::equal

    automatically derived

    AgentAccessibilityAnnouncement::not_equal

    automatically derived

    AgentAccessibilityAnnouncement::to_json

    automatically derived

    AgentAccessibilityAnnouncement::to_repr

    automatically derived

    AgentActionReceipt

    AgentActionReceipt::equal

    automatically derived

    AgentActionReceipt::not_equal

    automatically derived

    AgentActionReceipt::to_json

    automatically derived

    AgentActionReceipt::to_repr

    automatically derived

    AgentActionRequest

    AgentActionRequest::equal

    automatically derived

    AgentActionRequest::not_equal

    automatically derived

    AgentActionRequest::to_json

    automatically derived

    AgentActionRequest::to_repr

    automatically derived

    AgentDiagnosticsError

    pub(all) enum AgentDiagnosticsError {
    HostClosed
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    AgentDiagnosticsError::code

    fn AgentDiagnosticsError::code(self : AgentDiagnosticsError) -> String

    AgentDiagnosticsError::equal

    automatically derived

    AgentDiagnosticsError::not_equal

    automatically derived

    AgentDiagnosticsError::to_json

    automatically derived

    AgentDiagnosticsError::to_repr

    automatically derived

    AgentGenerationPrecondition

    AgentGenerationPrecondition::equal

    automatically derived

    AgentGenerationPrecondition::not_equal

    automatically derived

    AgentGenerationPrecondition::to_json

    automatically derived

    AgentGenerationPrecondition::to_repr

    automatically derived

    AgentReadError

    pub(all) enum AgentReadError {
    HostClosed
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    AgentReadError::code

    fn AgentReadError::code(self : AgentReadError) -> String

    AgentReadError::equal

    automatically derived

    AgentReadError::not_equal

    fn AgentReadError::not_equal(x : AgentReadError, y : AgentReadError) -> Bool
    automatically derived

    AgentReadError::to_json

    automatically derived

    AgentReadError::to_repr

    automatically derived

    AgentSemanticsDelta

    Incremental semantics projection between two committed generations.

    AgentSemanticsDelta::equal

    automatically derived

    AgentSemanticsDelta::not_equal

    automatically derived

    AgentSemanticsDelta::to_json

    automatically derived

    AgentSemanticsDelta::to_repr

    automatically derived

    AgentSemanticsRead

    Result of reading committed semantics with an optional independent cursor.

    AgentSemanticsRead::equal

    automatically derived

    AgentSemanticsRead::not_equal

    automatically derived

    AgentSemanticsRead::to_json

    automatically derived

    AgentSemanticsRead::to_repr

    automatically derived

    AgentSemanticsSnapshot

    Immutable full semantics projection exposed by AgentHost.

    AgentSemanticsSnapshot::equal

    automatically derived

    AgentSemanticsSnapshot::not_equal

    automatically derived

    AgentSemanticsSnapshot::to_json

    automatically derived

    AgentSemanticsSnapshot::to_repr

    automatically derived

    DiagnosticsDispatchResult

    pub(all) struct DiagnosticsDispatchResult {
    accepted : Bool
    reason : String?
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    DiagnosticsDispatchResult::equal

    automatically derived

    DiagnosticsDispatchResult::not_equal

    automatically derived

    DiagnosticsDispatchResult::to_json

    automatically derived

    DiagnosticsDispatchResult::to_repr

    automatically derived

    PaintSummary

    pub(all) struct PaintSummary {
    texts : Array[String]
    draw_command_count : Int
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    PaintSummary::equal

    automatically derived

    PaintSummary::not_equal

    fn PaintSummary::not_equal(x : PaintSummary, y : PaintSummary) -> Bool
    automatically derived

    PaintSummary::to_json

    automatically derived

    PaintSummary::to_repr

    automatically derived

    RuntimeAgentHost

    pub struct RuntimeAgentHost {
    runtime :
    AppRuntime

    }

    Agent host permanently bound to one AppRuntime lifetime.

    RuntimeAgentHost::paint_summary

    RuntimeAgentHost::perform_action

    RuntimeAgentHost::runtime_state

    RuntimeStateSnapshot

    pub(all) struct RuntimeStateSnapshot {
    dispatched_count : Int
    update_count : Int
    pending_message_count : Int
    active_subscription_count : Int
    active_effect_task_count : Int
    } derive(Eq,
    Debug
    ,
    ToJson
    )

    RuntimeStateSnapshot::equal

    automatically derived

    RuntimeStateSnapshot::not_equal

    automatically derived

    RuntimeStateSnapshot::to_json

    automatically derived

    RuntimeStateSnapshot::to_repr

    automatically derived