Sign in

    moui_agent

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

    Download zip
    Author
    Version
    0.2.1
    License
    Apache-2.0
    Last updated
    5 days ago
    Downloads
    12

    Dependencies

    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::not_equal

    AgentAccessibilityAnnouncement::to_json

    AgentActionReceipt

    AgentActionReceipt::equal

    AgentActionReceipt::not_equal

    AgentActionReceipt::to_json

    AgentActionRequest

    AgentActionRequest::equal

    AgentActionRequest::not_equal

    AgentActionRequest::to_json

    AgentDiagnosticsError

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

    AgentDiagnosticsError::code

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

    AgentDiagnosticsError::equal

    AgentDiagnosticsError::not_equal

    AgentDiagnosticsError::to_json

    AgentGenerationPrecondition

    pub(all) enum AgentGenerationPrecondition {
    Exact(
    SemanticsGeneration
    )
    Latest
    } derive(Eq, ToJson,
    Debug
    )

    AgentGenerationPrecondition::not_equal

    AgentGenerationPrecondition::to_json

    AgentReadError

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

    AgentReadError::code

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

    AgentReadError::equal

    AgentReadError::not_equal

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

    AgentReadError::to_json

    AgentSemanticsRead

    Result of reading committed semantics with an optional independent cursor.

    AgentSemanticsRead::equal

    AgentSemanticsRead::not_equal

    AgentSemanticsRead::to_json

    AgentSemanticsSnapshot

    Immutable full semantics projection exposed by AgentHost.

    AgentSemanticsSnapshot::equal

    AgentSemanticsSnapshot::not_equal

    AgentSemanticsSnapshot::to_json

    DiagnosticsDispatchResult

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

    DiagnosticsDispatchResult::equal

    DiagnosticsDispatchResult::not_equal

    DiagnosticsDispatchResult::to_json

    PaintSummary

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

    PaintSummary::equal

    PaintSummary::not_equal

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

    PaintSummary::to_json

    RuntimeAgentHost

    pub struct RuntimeAgentHost {
    runtime :
    AppRuntime

    }

    Agent host permanently bound to one AppRuntime lifetime.

    RuntimeAgentHost::dispatch_command

    RuntimeAgentHost::dispatch_event

    RuntimeAgentHost::paint_summary

    RuntimeAgentHost::perform_action

    RuntimeAgentHost::read_semantics

    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, ToJson,
    Debug
    )

    RuntimeStateSnapshot::equal

    RuntimeStateSnapshot::not_equal

    RuntimeStateSnapshot::to_json

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io