Documentation
¶
Overview ¶
Package toolargs picks the short argument a tool call is shown by, from its input as JSON, the same for the transcript and the live phase.
Index ¶
Constants ¶
View Source
const ( // MaxPaths and MaxPathBytes bound the paths read from a patch or asked // about at once, and each path; MaxHintBytes bounds a patch's paths // together. MaxPaths = 64 MaxPathBytes = 4096 MaxHintBytes = 16 << 10 )
Variables ¶
This section is empty.
Functions ¶
func BoundedPreview ¶
BoundedPreview is s on one line, each run of white space one space, cut to at most limit bytes on a rune boundary.
func Compact ¶
Compact is the argument a call of tool name with input (its arguments as JSON) is shown by, and the file path it names, if any.
func PatchFilePaths ¶
PatchFilePaths parses only the supported patch framing and file headers. Content lines must belong to Add or Update sections; unknown or truncated syntax discards all paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.