Documentation
¶
Index ¶
- Constants
- func BackgroundRGB(r, g, b uint8) string
- func ColorizeAtTagsReplInput(s string) string
- func ColorizeErrorLines(s string) string
- func ColorizeImgTags(s string) string
- func ColorizeImgTagsReplInput(s string) string
- func ColorizeReplInputTags(s string) string
- func EditFileDeleteToolLine(path string) string
- func Enabled() bool
- func ForegroundRGB(r, g, b uint8) string
- func FormatSystemBlock(message string) string
- func FormatWorkedDuration(secs float64) string
- func Init(opts InitOptions)
- func Plain(s string) string
- func REPLRawStdout() bool
- func ResetSeq() string
- func SetREPLRawStdout(v bool)
- func SystemMessageText(v any) string
- func ThoughtForSuffix(secs float64) string
- func ToolHeaderLine(toolName, body string) string
- func ToolLine(toolName, body string) string
- func UsageTokensLine(...) string
- func WelcomeUsageTotals(userTok, reasoningTok, responseTok, totalTok int64) string
- func WrapAssistant(s string) string
- func WrapBoldGold(s string) string
- func WrapContext(s string) string
- func WrapEditFileNewString(s string) string
- func WrapEditFileOldString(s string) string
- func WrapImgTag(tag string) string
- func WrapRed(s string) string
- func WrapSystem(s string) string
- func WrapThinking(s string) string
- func WrapTool(s string) string
- func WrapUser(s string) string
- func WrapUserReadline(s string) string
- func WrapWhite(s string) string
- func WriteSystem(w io.Writer, message string)
- func ZshStyle(key ZshStyleKey, s string) string
- type ErrorLineWriter
- type InitOptions
- type ToolLineWriter
- type ZshStyleKey
Constants ¶
View Source
const SystemBorder = "===SYSTEM==="
Variables ¶
This section is empty.
Functions ¶
func BackgroundRGB ¶
func ColorizeAtTagsReplInput ¶ added in v2026.606.3
func ColorizeErrorLines ¶ added in v2026.601.0
func ColorizeImgTags ¶
func ColorizeReplInputTags ¶ added in v2026.606.3
func EditFileDeleteToolLine ¶ added in v2026.606.1
func ForegroundRGB ¶
func FormatSystemBlock ¶
func FormatWorkedDuration ¶
func Init ¶
func Init(opts InitOptions)
func REPLRawStdout ¶ added in v2026.608.1
func REPLRawStdout() bool
func SetREPLRawStdout ¶ added in v2026.608.1
func SetREPLRawStdout(v bool)
func SystemMessageText ¶
func ThoughtForSuffix ¶
func ToolHeaderLine ¶
func UsageTokensLine ¶
func WelcomeUsageTotals ¶
func WrapAssistant ¶
func WrapBoldGold ¶
func WrapContext ¶
func WrapEditFileNewString ¶ added in v2026.602.2
func WrapEditFileOldString ¶ added in v2026.602.2
func WrapImgTag ¶
func WrapSystem ¶
func WrapThinking ¶
func WrapUserReadline ¶
func WriteSystem ¶
func ZshStyle ¶ added in v2026.606.0
func ZshStyle(key ZshStyleKey, s string) string
Types ¶
type ErrorLineWriter ¶ added in v2026.601.0
func NewErrorLineWriter ¶ added in v2026.601.0
func NewErrorLineWriter(w io.Writer) *ErrorLineWriter
func (*ErrorLineWriter) Flush ¶ added in v2026.601.0
func (w *ErrorLineWriter) Flush() error
type ToolLineWriter ¶
func NewToolLineWriter ¶
func NewToolLineWriter(w io.Writer) *ToolLineWriter
func (*ToolLineWriter) Flush ¶
func (w *ToolLineWriter) Flush() error
type ZshStyleKey ¶ added in v2026.606.0
type ZshStyleKey string
const ( ZshUnknownToken ZshStyleKey = "unknown-token" ZshReservedWord ZshStyleKey = "reserved-word" ZshArg0 ZshStyleKey = "arg0" ZshBuiltin ZshStyleKey = "builtin" ZshPath ZshStyleKey = "path" ZshPathPrefix ZshStyleKey = "path_prefix" ZshGlobbing ZshStyleKey = "globbing" ZshSingleQuoted ZshStyleKey = "single-quoted-argument" ZshDoubleQuoted ZshStyleKey = "double-quoted-argument" ZshDollarDoubleQuoted ZshStyleKey = "dollar-double-quoted-argument" ZshRedirection ZshStyleKey = "redirection" ZshCommandSeparator ZshStyleKey = "commandseparator" ZshComment ZshStyleKey = "comment" ZshDefault ZshStyleKey = "default" )
Click to show internal directories.
Click to hide internal directories.