Skip to main content

Module cli

Module cli 

Source
Expand description

CLI module — clap Parser types and subcommand dispatch for the symforge binary.

Subcommands: symforge init — configure Claude, Codex, or both symforge analytics <cmd> — inspect or reset local analytics storage symforge hook <subcommand> — hook scripts called by Claude Code symforge daemon — shared project/session backend symforge trust project-config — audit, accept, or revoke project-config trust symforge update — update the npm-managed SymForge install

Plan 03 wires these into main.rs and handles the top-level dispatch.

Modules§

admin
symforge admin — open (or start + open) the operator dashboard (009 US3).
analytics
browser
BrowserOpener seam — open the dashboard URL in the OS browser (009, D4).
harness
HarnessRegistry — the catalog of known MCP clients and the per-client logic to detect / add / refresh a SymForge HTTP attach entry (the 004 serve URL + Bearer key) in each client’s config.
harness_apply
Backup-then-apply writer for harness configs: dry-run planning, timestamped backups, atomic writes, restore, and idempotency.
harness_command
Per-harness symforge-admin command-file install (009 US3, D2).
hook
Hook binary logic — reads the OS-tagged .symforge/sidecar.<os>.port, calls the sidecar over sync HTTP, and outputs a single JSON line to stdout.
init
symforge init command — client-aware Claude/Claude Desktop/Codex/Gemini/Kilo Code configuration.
onboarding
First-run / post-update onboarding banner with persisted shown-state.
operator_profile
OperatorSetupProfile — operator-local setup convenience state (009, D5).
serve
symforge serve CLI subcommand — operator server flags.
setup
symforge setup — guided operator setup wizard (009 US2).
trust
CLI control surface for project-config trust.
update
Explicit npm-managed self-update command.
version
Version output with a best-effort npm update advisory.

Structs§

Cli
Top-level CLI parser for the symforge binary.

Enums§

Commands
Top-level subcommands.
HookSubcommand
Hook subcommands — one per Claude Code tool event type.
InitClient
Supported symforge init targets.