Versions in this module Expand all Collapse all v0 v0.11.0 Nov 23, 2026 v0.10.0 Nov 20, 2026 v0.9.1 Nov 19, 2026 v0.9.0 Oct 26, 2026 Changes in this version + const DefaultByteLimit + const EditFileMaxBytes + const ExecuteFallbackGuideline + const FindResultCap + const FindResultDefault + const ListEntryCap + const ListEntryDefault + const MaxSearchContextLines + const ReadLineLimit + const SearchLineChars + const SearchMatchCap + const SearchOverExecuteGuideline + const SymbolResultCap + const SymbolResultDefault + func ApplyEdits(content string, edits []Edit) (string, int, error) + func CapMarker(noun, param string, limit, max int, alternative string) string + func ClampLimit(n, def, cap int) int + func CountCandidates(ctx context.Context, root string, p SearchParams) (int, error) + func ExpandBraces(p string) []string + func FileNavigationTools() []string + func FindMarker(limit int) string + func FoldConfusables(s string) string + func FoldLine(s string) string + func For(ws *workspace.Workspace, opts Options) ([]core.Tool, error) + func InvalidUTF8Marker(path string) string + func ListMarker(limit int) string + func LongLineMarker(line int, size int64, limit int, path string) string + func MatchGlob(pattern, path string) bool + func ReadMarker(shown, total int) string + func ReadOffsetMarker(from, to, total int) string + func ReducedEnv(base []string, extraPrefixes ...string) []string + func RenderSearchText(res SearchResult, marker string) string + func ResolveShell() (string, []string, error) + func Restore(s string, bom bool, ending LineEnding) string + func SearchBytesMarker(shown int, limit int) string + func SearchMarker(limit int) string + func ShellQuote(s string) string + func SymbolMarker(limit int) string + func SymbolPartialMarker(reason string) string + type Accumulator struct + Cap int + Mode TruncateMode + SpillDir string + SpillPrefix string + func NewAccumulator(capBytes int, mode TruncateMode) *Accumulator + func (a *Accumulator) Close() error + func (a *Accumulator) SpillPath() string + func (a *Accumulator) String() string + func (a *Accumulator) Total() int64 + func (a *Accumulator) Truncated() bool + func (a *Accumulator) Write(p []byte) (int, error) + type Edit struct + NewString string + OldString string + type EditError struct + Index int + Phase string + Text string + func (e *EditError) Error() string + type ExecOptions struct + Dir string + DrainCeiling time.Duration + DrainIdle time.Duration + Env []string + KeepHead bool + LogPath string + MaxBytes int + SpillDir string + Stdin io.Reader + Timeout time.Duration + type ExecResult struct + Duration time.Duration + ExitCode int + IOErr error + Outcome Outcome + Output string + SpillPath string + TotalBytes int64 + Truncated bool + func Run(ctx context.Context, command string, opts ExecOptions) (ExecResult, error) + func RunArgv(ctx context.Context, argv []string, opts ExecOptions) (ExecResult, error) + type Index interface + Close func() error + Invalidate func(rel string) + Symbols func(ctx context.Context, q SymbolQuery) (SymbolAnswer, bool, error) + Tools func() []core.Tool + type LineEnding string + const CRLF + const LF + func NormalizeForEdit(s string) (normalized string, bom bool, ending LineEnding) + type Options struct + DisableSpill bool + Env []string + Index Index + SpillDir string + Symbols SymbolOptions + type Outcome string + const OutcomeAbort + const OutcomeExit + const OutcomeOK + const OutcomeSignal + const OutcomeTimeout + func ClassifyOutcome(aborted, timedOut bool, exitCode int, signaled bool) Outcome + type ReferenceOptions struct + IncludeTests bool + MaxResults int + Path string + type ReferenceResult struct + Backend string + Errors int + PackagesChecked int + Partial bool + Sites []ReferenceSite + Target outline.Decl + Truncated bool + func References(ctx context.Context, ws *workspace.Workspace, target outline.Decl, ...) (ReferenceResult, error) + type ReferenceSite struct + Column int + Confidence string + Enclosing outline.Decl + Line int + Path string + Source string + type SearchMatch struct + After []string + Before []string + File string + Line int + Text string + type SearchParams struct + CaseSensitive *bool + ContextLines int + FileGlob string + MaxMatches int + Path string + Pattern string + type SearchPatternError struct + Err error + func (e *SearchPatternError) Error() string + func (e *SearchPatternError) Unwrap() error + type SearchResult struct + FilesSearched int + Matches []SearchMatch + Truncated bool + TruncatedBy TruncatedBy + func Search(ctx context.Context, root string, p SearchParams) (SearchResult, error) + func SearchIn(ctx context.Context, root string, p SearchParams, ig workspace.IgnoreOptions) (SearchResult, error) + type SymbolAnswer struct + Backends map[string]int + FilesIndexed int + Matches []SymbolMatch + type SymbolMatch struct + Backend string + Container string + EndLine int + Exported bool + Kind string + Name string + Path string + Signature string + StartLine int + func (m SymbolMatch) Decl() outline.Decl + type SymbolOptions struct + MaxDuration time.Duration + MaxFiles int + type SymbolQuery struct + Exact bool + Kind string + Name string + Path string + type TruncateMode int + const TruncateHead + const TruncateMiddle + const TruncateTail + type TruncatedBy string + const TruncatedByBytes + const TruncatedByLines