Expand description
The Daemon — the brain of the vibesurfer daemon.
Owns the SQLite store, the engine runtime, and the in-memory session
cache. Each primitive is a pub fn on Daemon living in one of
the per-group submodules ([lifecycle], [page_ops], [store_ops],
[engine_ops]); shared helpers (audit, session lookup, key
resolution) plus the Daemon struct + builders live here.
Concurrency: every public method is &self and acquires
fine-grained locks on the session map. Engine calls are dispatched
onto the engine thread via EngineRuntime; the daemon’s own state
is protected by std::sync::Mutex.
Re-exports§
pub use responses::ActCall;pub use responses::ActResponse;pub use responses::AnnotateResponse;pub use responses::AuthClearResponse;pub use responses::AuthListResponse;pub use responses::AuthLoadResponse;pub use responses::AuthSaveResponse;pub use responses::CaptureResponse;pub use responses::CloseResponse;pub use responses::ExtractResponse;pub use responses::FindHit;pub use responses::FindResponse;pub use responses::LayoutResponse;pub use responses::LogResponse;pub use responses::MarkResponse;pub use responses::OpenResponse;pub use responses::ReadResponse;pub use responses::SessionCloseResponse;pub use responses::SessionOpenResponse;pub use responses::SkillListResponse;pub use responses::SkillShowResponse;pub use responses::StatusResponse;pub use responses::ViewResponse;pub use responses::ViewportResponse;pub use responses::WaitResponse;
Modules§
- pending
- Pending-input queue. Backs the
vs_prompt_inputMCP path: thevs mcpsubprocess has no tty, so an MCP-driven agent that callsvs_prompt_inputenqueues a pending entry and blocks (with a timeout) on a condvar. The user — at their interactive shell — runsvs pending fulfill <id>(orvs pending listto see what’s queued), types the value into the local tty, and that fulfills the entry. The condvar wakes the parked MCP request, the daemon actually fills the field, and the agent’s tool call returns success. - responses
- Per-primitive response types and the
ActCallinput bundle.
Structs§
- Daemon
- Shared daemon state. Cheap to clone (it’s an
Arcinside).