Documentation
¶
Overview ¶
TODO(V2): detect non-TTY (e.g. stdout redirected to file) and degrade Spinner to plain newline-based output to avoid \r\033[K noise in logs.
Index ¶
- Constants
- func FmtBytes(n int) string
- func FmtDur(d time.Duration) string
- func PrintAIReasoning(content string)
- func PrintThinkingDone(round int, elapsed time.Duration)
- func PrintToolDone(name, argsDisplay string, elapsed time.Duration, resultLen int, isErr bool)
- func PrintToolOutput(result string, maxLines int)
- func PrintToolStart(name, argsDisplay string)
- func TruncLine(s string, maxRunes int) string
- type Spinner
Constants ¶
View Source
const ( ColorReset = "\033[0m" ColorCyan = "\033[36m" ColorYellow = "\033[33m" ColorGreen = "\033[32m" ColorRed = "\033[31m" ColorGray = "\033[90m" )
Variables ¶
This section is empty.
Functions ¶
func PrintAIReasoning ¶
func PrintAIReasoning(content string)
func PrintThinkingDone ¶
func PrintToolDone ¶
func PrintToolOutput ¶
func PrintToolStart ¶
func PrintToolStart(name, argsDisplay string)
Types ¶
Click to show internal directories.
Click to hide internal directories.