How prooflinedev/cli works
Proofline CLI is a local client for Proofline’s review service. The main workflow selects repository changes or a scan target, applies local safety checks where relevant, requests or reads review data, then interprets and presents findings. Separate commands cover retained-review history, fix verification, coverage uploads, MCP tools and Git hooks. The graph also preserves authentication, agent registration and self-update capabilities. Source excerpts are partial; documented capabilities are included, while edges without visible call ownership are omitted.
Main entry points: api.rs Review API client · lib.rs Command router · scan.rs Repository scans · git.rs Git change selection
Components 25
CLI workflows
- Command router
src/lib.rs - Review commands
src/lib.rs - Repository scans
src/scan.rs - Coverage upload
src/coverage.rs - History and reruns
src/lib.rs - Fix verification
src/fixes.rs
Repository workflows
- Git change selection
src/git.rs - Secret preflight
src/preflight.rs - Git hooks
src/hooks.rs
Service access
- Review API client
src/api.rs - Proofline service
Review results
- Review data model
src/model.rs - Outcome evaluation
src/outcome.rs - Terminal rendering
src/render.rs - SARIF export
src/sarif.rs - CI annotations
src/annotations.rs - GitHub Actions
src/github_actions.rs
Identity and extensions
- Credentials
src/credentials.rs - Device sign-in
src/device.rs - MCP bridge
src/mcp.rs - Knowledge commands
src/knowledge.rs - Agent registration
src/agent.rs - Client config editing
src/agent/config.rs - Self-update
src/update.rs
Other components
- CLI user
Connections 30
- CLI user → Command router: runs commands
README.md - Command router → Review commands: dispatches
src/lib.rs - Command router → Repository scans: dispatches
src/scan.rs - Command router → Coverage upload: dispatches
src/coverage.rs - Command router → History and reruns: dispatches
src/lib.rs - Command router → Fix verification: dispatches
src/lib.rs - Review commands → Git change selection: selects changes
README.md - Review commands → Secret preflight: checks secrets
README.md - Review commands → Review API client: requests reviews
src/lib.rs - Repository scans → Review API client: requests scan
src/scan.rs - Repository scans → Git change selection: resolves target
src/scan.rs - Coverage upload → Review API client: uploads reports
src/coverage.rs - History and reruns → Review API client: reads records
src/lib.rs - Fix verification → Review API client: requests verification
- Review API client → Proofline service: sends HTTP
README.md - Review API client → Review data model: decodes responses
src/api.rs - Review commands → Terminal rendering: prints findings
src/lib.rs - Terminal rendering → Outcome evaluation: evaluates status
src/render.rs - SARIF export → Outcome evaluation: evaluates status
src/sarif.rs - SARIF export → Review data model: projects review
src/sarif.rs - GitHub Actions → CI annotations: prints annotations
- Git hooks → Git change selection: selects commits
src/hooks.rs - Git hooks → Review API client: requests reviews
src/hooks.rs - Device sign-in → Review API client: requests credentials
src/device.rs - Device sign-in → Credentials: loads credentials
src/device.rs - MCP bridge → Review API client: forwards calls
src/mcp.rs - Knowledge commands → Review API client: calls tools
src/knowledge.rs - Knowledge commands → MCP bridge: uses tools
src/knowledge.rs - Agent registration → Client config editing: edits client config
src/agent/config.rs - Self-update → Review API client: checks update
src/update.rs