Versions in this module Expand all Collapse all v1 v1.4.1 Nov 21, 2026 v1.4.0 Nov 21, 2026 v1.3.0 Nov 21, 2026 v1.2.0 Nov 21, 2026 v1.1.1 Nov 21, 2026 v1.1.0 Nov 21, 2026 Changes in this version + const CacheVersion + const MaxOutput + const Prefix + const Protocol + const RunTimeout + const SpecTimeout + func CachePath(userCacheDir func() (string, error)) (string, error) + type Cache struct + Entries map[string]cacheEntry + Version int + func LoadCache(path string) *Cache + func (c *Cache) Save(path string) error + type Candidate struct + Name string + Path string + func Discover(pathList string) []Candidate + type DetectSpec struct + Regex string + Score float64 + type Diff struct + Op string + Text string + type ExportData struct + Data string + Ext string + type ExportResponse struct + Error *InputError + Export *ExportData + type Info struct + Name string + Path string + Problems []string + Protocol int + Tools []string + func Load(ctx context.Context, cands []Candidate, builtin []tool.Tool, cache *Cache) ([]tool.Tool, []Info) + func Registry(ctx context.Context, pathList, cacheFile string, builtin []tool.Tool) (*registry.Registry, []Info, error) + type InputError struct + Col int + Input string + Line int + Message string + type InputSpec struct + Key string + Label string + Lang string + Multiline bool + type KV struct + Key string + Value string + type OptionSpec struct + Choices []string + Default any + Help string + Key string + Kind string + Label string + Max int + Min int + type Result struct + Diff []Diff + Lang string + Meta []KV + Spans []Span + Text string + type RunRequest struct + Inputs map[string]string + Options map[string]any + Protocol int + Tool string + type RunResponse struct + Error *InputError + Result *Result + type Span struct + End int + Group int + Input string + Start int + type SpecMessage struct + Protocol int + Tools []ToolSpec + type Tool struct + func (t *Tool) Plugin() (name, path string) + func (t *Tool) Run(ctx context.Context, req tool.Request) (tool.Result, error) + func (t *Tool) Spec() tool.Spec + type ToolSpec struct + Category string + Description string + Detect *DetectSpec + Export bool + ID string + Inputs []InputSpec + Keywords []string + Live *bool + Name string + Options []OptionSpec + Output string