tui

package
v0.6.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source

Variables

This section is empty.

Functions

func ExtractToolHint

func ExtractToolHint(argsJSON, toolName string) string

ExtractToolHint pulls a short display hint out of a tool's JSON args. Prefers a "description" field; otherwise falls back to a priority list of common keys. For fs tools, paths are normalized to workspace-rooted form ("pkg/code" → "/pkg/code", "." → "/"). toolName may be empty if unknown.

func FormatTokens

func FormatTokens(n int64) string

FormatTokens renders a token count as a short human-readable string: "1.5M" / "1.5K" / "42".

func NormalizeWorkspacePath

func NormalizeWorkspacePath(p string) string

NormalizeWorkspacePath rewrites a workspace-relative path so that it always starts with "/". The cwd literals "." and "./" become "/". Already-absolute paths (starting with "/" or "~") pass through unchanged.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL