Versions in this module Expand all Collapse all v0 v0.1.0 Jul 14, 2026 Changes in this version + const MaxFileBytes + var CandidateNames = []string + func Render(files []File) string + func RenderAppendReport(w io.Writer, report AppendReport) + func RenderFileReport(w io.Writer, report FileReport) + func RenderReport(w io.Writer, report Report) + func RenderResetReport(w io.Writer, report ResetReport) + func RenderSearchReport(w io.Writer, report SearchReport) + func RenderSelectionReport(w io.Writer, report SelectionReport) + func RenderShowReport(w io.Writer, report ShowReport) + func ResolvePath(workspace string, target string) (string, error) + type AppendReport struct + Action string + Bytes int + Kind string + Path string + Status string + func Append(workspace string, text string) (AppendReport, error) + type File struct + Body string + Chars int + ModifiedAt time.Time + Name string + Path string + Scope string + SizeBytes int64 + Truncated bool + func Discover(workspace string) ([]File, error) + func DiscoverWithRulesImport(workspace string, rulesImport RulesImportOptions) ([]File, error) + type FileReport struct + Action string + Created bool + Editor string + Kind string + Message string + Opened bool + Path string + Status string + func Edit(workspace string, target string, editor string, openEditor bool) (FileReport, error) + func Ensure(workspace string, target string) (FileReport, error) + func Path(workspace string, target string) (FileReport, error) + type Metadata struct + AgeSeconds int64 + Chars int + Contributes bool + Empty bool + Lines int + ModifiedAt string + Name string + Origin string + OutsideProject bool + Path string + Scope string + ScopePath string + SizeBytes int64 + Source string + Truncated bool + Words int + func MetadataFor(workspace string, files []File) []Metadata + type Report struct + Action string + Files []Summary + InstructionFiles int + Kind string + Status string + WorkingDirectory string + func BuildReport(workspace string) (Report, error) + func BuildReportWithRulesImport(workspace string, rulesImport RulesImportOptions) (Report, error) + type ResetFile struct + BytesRemoved int + Name string + Path string + Scope string + type ResetOptions struct + All bool + Confirm bool + Target string + type ResetReport struct + Action string + All bool + Files []ResetFile + Kind string + ResetCount int + Status string + Target string + WorkingDirectory string + func Reset(workspace string, opts ResetOptions) (ResetReport, error) + type RulesImportOptions struct + Frameworks []string + Mode string + func (o RulesImportOptions) ShouldImport(framework string) bool + type SearchMatch struct + Line string + LineNumber int + MatchedTerms []string + Name string + Path string + Scope string + Score int + type SearchReport struct + Action string + Kind string + MatchCount int + Matches []SearchMatch + Query string + Status string + WorkingDirectory string + func Search(workspace string, query string, limit int) (SearchReport, error) + func SearchWithRulesImport(workspace string, query string, limit int, rulesImport RulesImportOptions) (SearchReport, error) + type SelectionOption struct + Exists bool + Name string + Origin string + Path string + Scope string + Selected bool + Source string + type SelectionReport struct + Action string + Kind string + OptionCount int + Options []SelectionOption + Selected string + Status string + Target string + WorkingDirectory string + func Select(workspace string, target string) (SelectionReport, error) + type ShowReport struct + Action string + Body string + File File + Kind string + Status string + func Show(workspace string, target string) (ShowReport, error) + func ShowWithRulesImport(workspace string, target string, rulesImport RulesImportOptions) (ShowReport, error) + type Summary struct + AgeSeconds int64 + Chars int + Empty bool + Lines int + ModifiedAt string + Name string + Path string + Preview string + Scope string + SizeBytes int64 + Truncated bool + Words int + func Summaries(files []File) []Summary + func SummariesAt(files []File, now time.Time) []Summary