Documentation
¶
Index ¶
- Constants
- func EditTool(root *os.Root, allowedWriteRoots ...string) tool.Tool
- func GlobTool(root *os.Root, allowedReadRoots ...string) tool.Tool
- func GrepTool(root *os.Root, allowedReadRoots ...string) tool.Tool
- func ImageTool(root *os.Root, allowedReadRoots ...string) tool.Tool
- func ReadTool(root *os.Root, allowedReadRoots ...string) tool.Tool
- func Tools(root *os.Root, opts *Options) []tool.Tool
- func WriteTool(root *os.Root, allowedWriteRoots ...string) tool.Tool
- type Freshness
- type Options
Constants ¶
View Source
const ( DefaultGrepLimit = 250 DefaultScanBufSize = 64 * 1024 MaxScanBufSize = 1024 * 1024 MaxLineDisplayLength = 500 )
View Source
const ( DefaultMaxLines = 2000 DefaultMaxBytes = 48 * 1024 MaxReadFileBytes = 10 * 1024 * 1024 MaxEditFileBytes = 10 * 1024 * 1024 )
View Source
const DefaultGlobLimit = 100
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Freshness ¶ added in v0.11.2
type Freshness struct {
// contains filtered or unexported fields
}
Freshness tracks the on-disk state of files the session's file tools touched, so external modifications (user edits, linters, shell commands) can be detected and announced to the model. A nil Freshness disables it.
func NewFreshness ¶ added in v0.11.2
func (*Freshness) Changed ¶ added in v0.11.2
Changed stats every tracked file and returns the paths whose on-disk state no longer matches what the session's tools last saw. Each change reports once: the record is updated (or dropped, for deleted files) so repeated sweeps stay quiet until the next external modification.
Click to show internal directories.
Click to hide internal directories.