Skip to main content

Crate trusty_console

Crate trusty_console 

Source
Expand description

trusty-console library entry point.

Why: Expose the console daemon’s startup sequence as a public run() function so bundled shim binaries inside host crates (trusty-search, trusty-memory, trusty-analyze, trusty-review, trusty-mpm) can call trusty_console::run() without duplicating any logic. This mirrors the exact pattern used by trusty-embedderd (bundled into trusty-search via issue #187) and trusty-bm25-daemon (bundled into trusty-memory via PR #190). What: Re-exports all public submodules and provides run() as the canonical library entry point that parses argv and dispatches to subcommands. Test: cargo test -p trusty-console exercises the CLI parsing tests defined in the submodules.

Modules§

bind
Bind-address resolution for trusty-console.
connector
ServiceConnector trait — the extensibility seam for all per-service adapters.
detect
Concrete ServiceConnector implementations for trusty-search, trusty-memory, trusty-analyze, and trusty-review.
mcp_handle
Supervised stdio MCP connection to a local service (epic #1104 Phase 0b).
metrics_poller
Background metrics poller for supervised stdio MCP connections (epic #1104).
poller
Background health-poll cache for all registered daemon connectors.
proxy
Reverse-proxy module for trusty-console P1.
server
Axum HTTP server for the trusty-console.

Structs§

Cli
trusty-console: web dashboard for trusty services.
ServeArgs
Arguments for trusty-console serve.

Enums§

Commands
Available subcommands.

Functions§

run
Library entry point for the trusty-console daemon.
run_serve
Run the serve subcommand.