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
ServiceConnectorimplementations 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.
- routes
- HTTP route handlers extracted from
server.rsto keep that file under the 500-SLOC production cap. - server
- Axum HTTP server for the trusty-console.
Structs§
Enums§
- Commands
- Available subcommands.