Skip to main content

Crate infinity_daemon

Crate infinity_daemon 

Source

Modules§

client_handler
config
ids
Unique-id generation for user-visible entities (sessions and threads).
mcp_proxy
In-process RAP server that exposes an MCP client over RAP.
memory_store
The daemon’s stores: the core in-memory stores wrapped with per-thread JSON-file persistence and daemon-only bookkeeping.
migrate
Session migration orchestrator.
models
Registry of model providers and the models they offer.
rap_callback
HTTP callback routing for RAP tool results.
rap_servers
Lazy, daemon-managed RAP tool servers.
remote
session
session_store
set_title_tool
web_assets
ws_handler

Constants§

DAEMON_READY_LINE
Line printed to stdout when run_daemon is called with announce_ready = true, once initialization has succeeded and the daemon is serving. A supervising process (the CLI auto-launch) races this line against daemon exit to detect startup failures. It must remain the daemon’s only stdout output.

Functions§

launch_session_manager
Launch a fully-initialized session manager: bind the RAP callback listener, build the session::SessionManager with the listener’s callback URL, and start serving callbacks into it. This is the shared startup path for the daemon and the CLI’s direct (daemonless) mode.
run_daemon
Run the daemon until it receives a shutdown signal. When announce_ready is true, prints DAEMON_READY_LINE to stdout after all initialization (including the session manager and its model providers) has succeeded.