Documentation
¶
Overview ¶
Package cli implements fairpeer's command-line entry: subcommand routing, flag parsing, assembly from config, and exit codes. The core is config-driven — providers and tools are resolved from configuration, not hardcoded.
Renders a unified diff as line-numbered, syntax-highlighted rows on green/red background bars with a +/- gutter.
Formats a tool call as a Claude-style card line: a "● Verb(primary arg)" header instead of the raw "-> name {json}", plus the "⎿" continuation gutter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FrameLines ¶
FrameLines is exported for testing. It returns the total number of terminal lines that selectOne/selectMany will print for the given state.
Types ¶
type RunMetrics ¶
type RunMetrics struct {
PromptTokens int `json:"prompt_tokens"`
CompletionTokens int `json:"completion_tokens"`
CacheHitTokens int `json:"cache_hit_tokens"`
CacheMissTokens int `json:"cache_miss_tokens"`
Steps int `json:"steps"` // model calls (one per stream, incl. tool rounds)
Compactions int `json:"compactions"`
ReadinessChecks int `json:"readiness_checks"`
ReadinessAllowed int `json:"readiness_allowed"`
ReadinessBlocks int `json:"readiness_blocks"`
ReadinessRecoveries int `json:"readiness_recoveries"`
ReadinessErrors int `json:"readiness_errors"`
ReadinessMissingProjectChecks int `json:"readiness_missing_project_checks"`
ReadinessIncompleteTodos int `json:"readiness_incomplete_todos"`
ReadinessCommandMismatches int `json:"readiness_command_mismatches"`
}
RunMetrics is the machine-readable token/cache/cost summary `run --metrics` writes, so a benchmark harness can read a run's cost without scraping stdout.
Source Files
¶
- acp.go
- autoplan.go
- bot.go
- box.go
- branch.go
- chat_tui.go
- chooser.go
- clear_confirm.go
- cli.go
- codegraph.go
- complete.go
- copy_picker.go
- diffview.go
- doctor.go
- effort.go
- gitstatus.go
- help_view.go
- hooks_view.go
- language.go
- latex.go
- mathnode.go
- mcp.go
- mcp_import_picker.go
- mcp_manager.go
- mcp_manager_actions.go
- mcp_manager_view.go
- mcp_view.go
- md.go
- memory.go
- memory_view.go
- model.go
- model_view.go
- output_style_view.go
- provider.go
- resume.go
- resume_picker.go
- review.go
- rewind.go
- run_metrics.go
- select.go
- skill_hooks.go
- skill_picker.go
- skill_picker_view.go
- skill_view.go
- style.go
- theme.go
- theme_osc_unix.go
- toolcard.go
- transcript.go
- view_helpers.go