Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + func DetectColorSupport() bool + func DetectTerminalWidth() int + func DetectUnicodeSupport() bool + func FormatHistory(notifications []Notification) string + func FormatNotification(notif Notification) string + func FormatSuggestions(suggestions []Suggestion, maxDisplay int) string + func FuzzyMatch(input, candidate string) (bool, float64) + func HighlightCode(code string, language string) string + func InstallCompletion(shell string) (string, error) + func RenderStreaming(ch <-chan string) <-chan string + func RenderTable(rows [][]string) string + func StripANSI(text string) string + func WrapText(text string, width int) string + type Autocompleter struct + Files []string + History []string + ProjectDir string + SlashCommands []string + Tools []string + func NewAutocompleter(projectDir string) *Autocompleter + func (ac *Autocompleter) Complete(input string, cursorPos int) []Suggestion + func (ac *Autocompleter) CompleteFilePath(prefix string) []Suggestion + func (ac *Autocompleter) CompleteFromHistory(prefix string) []Suggestion + func (ac *Autocompleter) CompleteSlashCommand(prefix string) []Suggestion + func (ac *Autocompleter) RankSuggestions(suggestions []Suggestion) []Suggestion + func (ac *Autocompleter) RecordInput(input string) + func (ac *Autocompleter) RefreshFiles() + type BrailleSpinner struct + func NewBrailleSpinner(style SpinnerStyle, text string) *BrailleSpinner + func (s *BrailleSpinner) Frame() string + func (s *BrailleSpinner) Start(interval time.Duration, render func(string)) + func (s *BrailleSpinner) Stop() + func (s *BrailleSpinner) Tick() string + type CommandInfo struct + Description string + Flags []FlagInfo + Name string + Subcommands []CommandInfo + type CompletionGenerator struct + Commands []CommandInfo + Flags []FlagInfo + Models []string + Providers []string + SlashCommands []string + func NewCompletionGenerator() *CompletionGenerator + func (g *CompletionGenerator) GenerateBash() string + func (g *CompletionGenerator) GenerateFish() string + func (g *CompletionGenerator) GenerateJSON() string + func (g *CompletionGenerator) GenerateZsh() string + type ContextualHelp struct + Entries map[string]*HelpEntry + func NewContextualHelp() *ContextualHelp + func (ch *ContextualHelp) FormatHelp(entry *HelpEntry) string + func (ch *ContextualHelp) FormatSearchResults(entries []*HelpEntry) string + func (ch *ContextualHelp) GetCategories() []string + func (ch *ContextualHelp) GetHelp(topic string) *HelpEntry + func (ch *ContextualHelp) ListByCategory(category string) []*HelpEntry + func (ch *ContextualHelp) SearchHelp(query string) []*HelpEntry + func (ch *ContextualHelp) SuggestHelp(context string) []*HelpEntry + type DiffTheme struct + Added string + Changed string + Context string + Header string + LineNo string + Removed string + Reset string + WordAdd string + WordDel string + func DefaultDiffTheme() DiffTheme + type FeedbackReport struct + Arch string + Body string + Category string + Model string + OS string + Provider string + SessionID string + Timestamp string + Version string + type FileDiffStat struct + Additions int + Deletions int + Path string + Status string + type FlagInfo struct + Choices []string + Description string + Name string + Short string + Type string + type GhostText struct + func NewGhostText() *GhostText + func (g *GhostText) Accept() string + func (g *GhostText) Active() bool + func (g *GhostText) Clear() + func (g *GhostText) Get() string + func (g *GhostText) Suggest(aiResponse string) + func (g *GhostText) SuggestExplicit(cmd string) + type HelpEntry struct + Category string + Detail string + Examples []string + Related []string + Summary string + Topic string + type InputClass int + const InputClassAgent + const InputClassNeutral + const InputClassShell + const InputClassSlash + type InputIndicator struct + func (ind *InputIndicator) Classify(input string, mode shellmode.Mode) InputClass + func (ind *InputIndicator) Label() string + func (ind *InputIndicator) Render() string + type MarkdownRenderer struct + SyntaxHighlight bool + Theme *MarkdownTheme + Width int + func NewMarkdownRenderer(width int) *MarkdownRenderer + func (r *MarkdownRenderer) Render(markdown string) string + type MarkdownTheme struct + BlockQuote string + Bold string + Code string + CodeBlock string + Heading string + HorizontalRule string + Italic string + Link string + ListBullet string + Reset string + func DefaultTheme() *MarkdownTheme + type Notification struct + ID string + Level string + Message string + Read bool + Timestamp time.Time + Title string + type Notifier struct + Desktop bool + Enabled bool + History []Notification + Level string + Sound bool + func NewNotifier() *Notifier + func (n *Notifier) Bell() + func (n *Notifier) ClearTitle() + func (n *Notifier) DesktopNotify(title, message string) error + func (n *Notifier) GetHistory(limit int) []Notification + func (n *Notifier) GetUnread() []Notification + func (n *Notifier) MarkRead(id string) + func (n *Notifier) Notify(title, message, level string) + func (n *Notifier) NotifyBudgetWarning(pct float64, remaining float64) + func (n *Notifier) NotifyCostMilestone(cost float64) + func (n *Notifier) NotifyError(err string) + func (n *Notifier) NotifyTaskComplete(task string, duration time.Duration) + func (n *Notifier) SetTerminalTitle(title string) + type OutputFormatter struct + ColorEnabled bool + Theme OutputTheme + UnicodeEnabled bool + Verbose bool + Width int + func NewOutputFormatter() *OutputFormatter + func (f *OutputFormatter) FormatBytes(n int64) string + func (f *OutputFormatter) FormatDiff(added, removed int) string + func (f *OutputFormatter) FormatDuration(d time.Duration) string + func (f *OutputFormatter) FormatError(msg string) string + func (f *OutputFormatter) FormatInfo(msg string) string + func (f *OutputFormatter) FormatList(items []string, numbered bool) string + func (f *OutputFormatter) FormatNumber(n int) string + func (f *OutputFormatter) FormatProgress(current, total int, label string) string + func (f *OutputFormatter) FormatSuccess(msg string) string + func (f *OutputFormatter) FormatTable(headers []string, rows [][]string) string + func (f *OutputFormatter) FormatTree(root string, children []TreeNode) string + func (f *OutputFormatter) FormatWarning(msg string) string + func (f *OutputFormatter) Truncate(s string, maxWidth int) string + type OutputTheme struct + Error string + Info string + Muted string + Primary string + Reset string + Secondary string + Success string + Warning string + type ProgressStep struct + Duration time.Duration + EndTime *time.Time + Name string + Progress float64 + StartTime *time.Time + Status string + Substeps []string + type ProgressTracker struct + CurrentStep int + StartTime time.Time + Steps []ProgressStep + Title string + func NewProgressTracker(title string) *ProgressTracker + func (pt *ProgressTracker) AddStep(name string) + func (pt *ProgressTracker) AddSubstep(stepIndex int, substep string) + func (pt *ProgressTracker) CompleteStep(index int) + func (pt *ProgressTracker) EstimateRemaining() time.Duration + func (pt *ProgressTracker) FailStep(index int, reason string) + func (pt *ProgressTracker) GetElapsed() time.Duration + func (pt *ProgressTracker) IsComplete() bool + func (pt *ProgressTracker) Render() string + func (pt *ProgressTracker) RenderCompact() string + func (pt *ProgressTracker) RenderDone() string + func (pt *ProgressTracker) SetProgress(index int, pct float64) + func (pt *ProgressTracker) SkipStep(index int) + func (pt *ProgressTracker) StartStep(index int) + type SpinnerStyle string + const SpinnerBraille + const SpinnerBrailleWave + const SpinnerDNA + const SpinnerOrbit + const SpinnerPulse + const SpinnerRandom + const SpinnerScan + const SpinnerSnake + type Suggestion struct + Category string + Description string + Score float64 + Text string + type TreeNode struct + Children []TreeNode + Icon string + Name string + type VisualDiff struct + ContextLines int + ShowLineNumbers bool + Theme DiffTheme + Width int + WordLevel bool + func NewVisualDiff(width int) *VisualDiff + func (vd *VisualDiff) ColorizeByLanguage(line, language string) string + func (vd *VisualDiff) RenderDiffSummary(files []FileDiffStat) string + func (vd *VisualDiff) RenderFileDiff(path, oldContent, newContent string) string + func (vd *VisualDiff) RenderInline(diff string) string + func (vd *VisualDiff) RenderSideBySide(diff string) string + func (vd *VisualDiff) RenderWordDiff(oldLine, newLine string) (string, string) + type WordChange struct + Text string + Type string + func FindWordChanges(old, new string) []WordChange v0.1.0 May 12, 2026 Changes in this version + var Commit = "none" + var Date = "unknown" + var Version = "dev" + func ApplyPowerLevel(sess *engine.Session, level int) + func BuildResearchPrompt(cfg ResearchConfig) string + func DescribePower(level int) string + func DetectRunCommand(dir string) string + func Execute() error + func ExportContext(dir string, focus string) (string, error) + func ExportContextToFile(dir, focus, outputPath string) error + func FormatReviewReport(findings []ReviewFinding) string + func GenerateAgentsTemplate(projectType string) string + func GenerateManPage() string + func RenderBreakdown(tb TokenBreakdown, windowSize int) string + func SetBuildDate(d string) + func SetVersion(v string) + func ShortVersion() string + func VersionString() string + func VibeLoop(ctx context.Context, sess *engine.Session, prompt string, config VibeConfig) error + type AIDirective struct + Instruction string + Line int + Mode string + Path string + type CommandState struct + Count int + Digits string + FindType byte + Op Operator + Scope byte + Type CommandType + type CommandType int + const CmdCount + const CmdFind + const CmdIdle + const CmdOperator + const CmdOperatorFind + const CmdOperatorTextObj + const CmdReplace + type ContextState int + const ContextBlocking + const ContextError + const ContextNormal + const ContextWarning + type ContextVisualization struct + BlockingThreshold int + CompactThreshold int + ContextWindowSize int + CurrentTokens int + WarningThreshold int + func NewContextVisualization(windowSize int) *ContextVisualization + func (cv *ContextVisualization) PercentUsed() float64 + func (cv *ContextVisualization) Render(width int) string + func (cv *ContextVisualization) State() ContextState + func (cv *ContextVisualization) Update(tokens int) + type ExecResult struct + Branch string + Duration string + ExitCode int + Model string + Response string + SessionID string + TokensIn int + TokensOut int + TurnsTaken int + Worktree string + type FileWatcher struct + func NewFileWatcher(dir string, ignore []string, onChange func(string, string)) *FileWatcher + func (fw *FileWatcher) Start(ctx context.Context) error + func (fw *FileWatcher) Stop() + type Operator int + const OpChange + const OpDelete + const OpNone + const OpYank + type PersistentState struct + LastChange *RecordedChange + LastFind byte + LastFindType byte + Recording *RecordedChange + Register string + RegisterLine bool + type PowerConfig struct + AutoApply bool + BudgetUSD float64 + ContextWindow int + Level int + MaxTokens int + MaxTurns int + Model string + ReviewDepth string + Temperature float64 + ToolParallelism int + func PowerPreset(level int) PowerConfig + type QueryProfile struct + APICall time.Duration + StartTime time.Time + TTFT time.Duration + TokensIn int + TokensOut int + ToolExec time.Duration + TotalTime time.Duration + func (p *QueryProfile) Finish() + func (p *QueryProfile) RecordAPICallEnd() + func (p *QueryProfile) RecordAPICallStart() + func (p *QueryProfile) RecordTTFT() + func (p *QueryProfile) RecordToolExecEnd() + func (p *QueryProfile) RecordToolExecStart() + func (p *QueryProfile) String() string + type RecordedChange struct + EndPos int + Keys []tea.KeyMsg + StartPos int + Text string + Type string + type ResearchConfig struct + BranchPrefix string + Budget int + Direction string + MetricCmd string + MetricGrep string + ResultsFile string + func DefaultResearchConfig() ResearchConfig + type ReviewConcern struct + Name string + Prompt string + func DefaultConcerns() []ReviewConcern + type ReviewFinding struct + Concern string + File string + Fix string + Line int + Message string + Severity string + func RunReviewPipeline(files []string, concerns []ReviewConcern) ([]ReviewFinding, string) + type StartupWarning struct + Check string + Message string + func (w StartupWarning) String() string + type Tip struct + Category string + ID string + Text string + type TokenBreakdown struct + Assistant int + System int + ToolResult int + ToolUse int + Total int + UserMsgs int + type VibeConfig struct + AutoApply bool + AutoRun bool + Enabled bool + MaxIterations int + RunCommand string + ShowDiffs bool + func DefaultVibeConfig() VibeConfig + type VimMode int + const VimInsert + const VimNormal + type VimState struct + Command CommandState + Mode VimMode + Persistent PersistentState + func NewVimState() *VimState + func (v *VimState) HandleKey(msg tea.KeyMsg, text string, cursor int) (string, int, bool) + func (v *VimState) IsEnabled() bool + func (v *VimState) ModeString() string + func (v *VimState) SetEnabled(enabled bool)