Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectEditor ¶
func DetectEditor() string
DetectEditor returns the user's preferred editor from the environment. It checks $EDITOR and $VISUAL first, then falls back to common editors.
func EditPrompt ¶
EditPrompt writes prompt content to a temp file, opens it in the user's editor, and returns the (possibly modified) content after the editor exits.
func EstimateTokens ¶
EstimateTokens estimates the number of tokens in text using the ~3.5 chars/token heuristic. Accuracy is within ~20% for typical English text.
func PrintTokenWarnings ¶
func PrintTokenWarnings(tokens int)
PrintTokenWarnings prints warnings when the prompt is too short or too long.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.