Expand description
Canonical event union for all cross-adapter events.
This module is the single source of truth for events used by Tauri listeners, SSE handlers, and backend emitters.
§Structure
app- Application-level events (model added/removed/updated)download- Download progress and completion eventsserver- Model server lifecycle eventsmcp- MCP server lifecycle events
§Wire Format
Events are serialized with a type tag for TypeScript compatibility:
{ "type": "server_started", "modelName": "Llama-2-7B", "port": 8080 }Modules§
- app 🔒
- Application-level events (model lifecycle).
- download 🔒
- Download progress and completion events.
- mcp 🔒
- MCP server lifecycle events.
- server 🔒
- Model server lifecycle events.
Structs§
- McpServer
Summary - Summary of an MCP server for event payloads.
- Model
Summary - Summary of a model for event payloads.
- Noop
Server Events - No-op implementation of
ServerEventsfor testing and non-GUI contexts. - Server
Snapshot Entry - Entry in a server snapshot.
- Server
Summary - Summary of a running server for event emission.
Enums§
- AppEvent
- Canonical event types for all adapters.
Traits§
- Server
Events - Port for emitting server lifecycle events.