Expand description
wire CLI surface.
Every subcommand emits human-readable text by default and structured JSON
when --json is passed. Stable JSON shape is part of the API contract —
see docs/AGENT_INTEGRATION.md.
Subcommand split:
- agent-safe:
whoami,peers,verify,send,tail— pure message-layer ops, no trust establishment. - trust-establishing:
init,pair-host,pair-join. The CLI uses interactivey/Nprompts here. The MCP equivalents (wire_init,wire_pair_initiate,wire_pair_join,wire_pair_check,wire_pair_confirm) preserve the human gate by requiring the user to type the 6 SAS digits back into chat — seedocs/THREAT_MODEL.mdT10/T14.
Structs§
- Cli
- Top-level CLI.
- Doctor
Check - One DoctorCheck = one verdict on one health dimension.
Enums§
- Command
- Diag
Action - Group
Command - v0.6.3: top-level
wire meshverbs. Each verb operates on the current session’s view of the pinned peer set.statusis the read-only observability primitive (alias forwire session mesh-status); Group-chat verbs (v0.13.3). Membership is a creator-signed roster (src/group.rs); send fans a signed message over the member set. - Identity
Command - Mesh
Command broadcastfans a signed event to every pinned peer in one call.- Mesh
Role Action - v0.6.4: subcommands of
wire mesh role. - Profile
Action - Responder
Command - Service
Action - Session
Command
Functions§
- closest_
candidates - Return up to
max_resultsnames frompoolwhose edit distance toneedleis ≤max_distance, sorted by distance ascending. Used for “did you mean” suggestions on resolution miss. - maybe_
auto_ init_ cwd_ session - v0.7.0-alpha.2: idempotent per-cwd session creation.
- run
- Entry point — parse and dispatch.