Skip to main content

Module cli

Module cli 

Source
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 interactive y/N prompts 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 — see docs/THREAT_MODEL.md T10/T14.

Structs§

Cli
Top-level CLI.
DoctorCheck
One DoctorCheck = one verdict on one health dimension.

Enums§

Command
DiagAction
GroupCommand
v0.6.3: top-level wire mesh verbs. Each verb operates on the current session’s view of the pinned peer set. status is the read-only observability primitive (alias for wire 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.
IdentityCommand
MeshCommand
broadcast fans a signed event to every pinned peer in one call.
MeshRoleAction
v0.6.4: subcommands of wire mesh role.
ProfileAction
ResponderCommand
ServiceAction
SessionCommand

Functions§

closest_candidates
Return up to max_results names from pool whose edit distance to needle is ≤ 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.