sdk

package
v2026.701.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTodo added in v2026.611.0

func AddTodo(name, todo string) (map[string]any, error)

func BuildPlan added in v2026.611.0

func BuildPlan(name string) (map[string]any, error)

func CheckPlan added in v2026.611.0

func CheckPlan(name string, full bool) (map[string]any, error)

func CheckTodo added in v2026.611.0

func CheckTodo(sha1 string) (map[string]any, error)

func CreatePlan added in v2026.611.0

func CreatePlan(name, goal string) (map[string]any, error)

func DeepResearch added in v2026.617.0

func DeepResearch(query, category string) (map[string]any, error)

func DeleteFile added in v2026.611.0

func DeleteFile(path, intent string) error

func DeletePlan added in v2026.611.0

func DeletePlan(name string) (map[string]any, error)

func DocsArticle added in v2026.611.0

func DocsArticle(path string) (string, error)

func DocsRetrieval

func DocsRetrieval(query string) (string, error)

func DocsSearch added in v2026.611.0

func DocsSearch(query string) (string, error)

func EditFile

func EditFile(path, oldString, newString, intent string, delete bool) error

func EditPlan added in v2026.611.0

func EditPlan(name, old, new, intent string) (map[string]any, error)

func FetchWeb

func FetchWeb(url string) (string, error)

func FetchWebWithTimeout added in v2026.611.0

func FetchWebWithTimeout(url string, secs int) (string, error)

func Find

func Find(pattern string, files bool) (string, error)

func FindIn added in v2026.611.0

func FindIn(dir, pattern string, files bool) (string, error)

func FindInTimeout added in v2026.611.0

func FindInTimeout(dir, pattern string, files bool, secs int) (string, error)

func FindTimeout added in v2026.611.0

func FindTimeout(pattern string, files bool, secs int) (string, error)

func Glob added in v2026.611.0

func Glob(pattern string) ([]string, error)

func GlobIn added in v2026.611.0

func GlobIn(dir, pattern string) ([]string, error)

func GlobInLimit added in v2026.611.0

func GlobInLimit(dir, pattern string, headLimit int) ([]string, error)

func GlobInTimeout added in v2026.611.0

func GlobInTimeout(dir, pattern string, secs int) ([]string, error)

func GlobLimit added in v2026.611.0

func GlobLimit(pattern string, headLimit int) ([]string, error)

func GlobTimeout added in v2026.611.0

func GlobTimeout(pattern string, secs int) ([]string, error)

func Grep added in v2026.611.0

func Grep(pattern string) (string, error)

func GrepContextAfter added in v2026.611.0

func GrepContextAfter(pattern string, after int) (string, error)

func GrepContextBefore added in v2026.611.0

func GrepContextBefore(pattern string, before int) (string, error)

func GrepContextBeforeAfter added in v2026.611.0

func GrepContextBeforeAfter(pattern string, before, after int) (string, error)

func GrepCount added in v2026.611.0

func GrepCount(pattern string) (string, error)

func GrepFiles added in v2026.611.0

func GrepFiles(pattern string) ([]string, error)

func GrepFilesIgnoreCase added in v2026.611.0

func GrepFilesIgnoreCase(pattern string) ([]string, error)

func GrepFilesIn added in v2026.611.0

func GrepFilesIn(dir, pattern string) ([]string, error)

func GrepFilesInIgnoreCase added in v2026.611.0

func GrepFilesInIgnoreCase(dir, pattern string) ([]string, error)

func GrepFilesInTimeout added in v2026.611.0

func GrepFilesInTimeout(dir, pattern string, secs int) ([]string, error)

func GrepFilesTimeout added in v2026.611.0

func GrepFilesTimeout(pattern string, secs int) ([]string, error)

func GrepIgnoreCase added in v2026.611.0

func GrepIgnoreCase(pattern string) (string, error)

func GrepIn added in v2026.611.0

func GrepIn(dir, pattern string) (string, error)

func GrepInIgnoreCase added in v2026.611.0

func GrepInIgnoreCase(dir, pattern string) (string, error)

func GrepInLimit added in v2026.611.0

func GrepInLimit(dir, pattern string, headLimit int) (string, error)

func GrepInMultiline added in v2026.611.0

func GrepInMultiline(dir, pattern string) (string, error)

func GrepInPathGlob added in v2026.611.0

func GrepInPathGlob(dir, pattern, pathGlob string) (string, error)

func GrepInTimeout added in v2026.611.0

func GrepInTimeout(dir, pattern string, secs int) (string, error)

func GrepInWithContext added in v2026.611.0

func GrepInWithContext(dir, pattern string, contextLines int) (string, error)

func GrepLimit added in v2026.611.0

func GrepLimit(pattern string, headLimit int) (string, error)

func GrepMultiline added in v2026.611.0

func GrepMultiline(pattern string) (string, error)

func GrepPathGlob added in v2026.611.0

func GrepPathGlob(pattern, pathGlob string) (string, error)

func GrepTimeout added in v2026.611.0

func GrepTimeout(pattern string, secs int) (string, error)

func GrepWithContext added in v2026.611.0

func GrepWithContext(pattern string, contextLines int) (string, error)

func Print

func Print(v ...any)

func Printf added in v2026.611.0

func Printf(format string, v ...any)

func Println

func Println(v ...any)

func ReadFile

func ReadFile(path string) (string, error)

func ReadFileFromLine added in v2026.611.0

func ReadFileFromLine(path string, start int) (string, error)

func ReadFileLines added in v2026.611.0

func ReadFileLines(path string, start, end int) (string, error)

func ReadFileUntilLine added in v2026.611.0

func ReadFileUntilLine(path string, end int) (string, error)

func RemoveTodo added in v2026.611.0

func RemoveTodo(sha1 string) (map[string]any, error)

func RenameFile added in v2026.611.0

func RenameFile(path, renameTo, intent string) error

func ReplaceInFile added in v2026.611.0

func ReplaceInFile(path, oldString, newString, intent string) error

func ResearchStatus added in v2026.617.0

func ResearchStatus(jobID string) (map[string]any, error)

func Shell

func Shell(command, intent string) (string, error)

func ShellWithTimeout added in v2026.611.0

func ShellWithTimeout(command, intent string, secs int) (string, error)

func TodoList added in v2026.611.0

func TodoList(name string) (map[string]string, error)

func Tree added in v2026.617.0

func Tree(path string) (string, error)

func TreeDepth added in v2026.617.0

func TreeDepth(path string, maxDepth int) (string, error)

func WebSearch

func WebSearch(query string) (string, error)

func WebSearchEngine added in v2026.611.0

func WebSearchEngine(query, engine string) (string, error)

func WebSearchEngineN added in v2026.611.0

func WebSearchEngineN(query, engine string, maxResults int) (string, error)

func WebSearchEngineNTimeout added in v2026.611.0

func WebSearchEngineNTimeout(query, engine string, maxResults, secs int) (string, error)

func WebSearchEngineTimeout added in v2026.611.0

func WebSearchEngineTimeout(query, engine string, secs int) (string, error)

func WebSearchN added in v2026.611.0

func WebSearchN(query string, maxResults int) (string, error)

func WebSearchNTimeout added in v2026.611.0

func WebSearchNTimeout(query string, maxResults, secs int) (string, error)

func WebSearchWithTimeout added in v2026.611.0

func WebSearchWithTimeout(query string, secs int) (string, error)

func WriteFile added in v2026.611.0

func WriteFile(path, content, intent string) error

Types

type DocsResult added in v2026.611.0

type DocsResult struct {
	Mode    string        `json:"mode"`
	Query   string        `json:"query"`
	Path    string        `json:"path,omitempty"`
	Lines   int           `json:"lines,omitempty"`
	Content string        `json:"content,omitempty"`
	Results []DocsSnippet `json:"results,omitempty"`
}

func DocsArticleInfo added in v2026.611.0

func DocsArticleInfo(path string) (DocsResult, error)

func DocsRetrievalInfo added in v2026.611.0

func DocsRetrievalInfo(query string) (DocsResult, error)

func DocsSearchInfo added in v2026.611.0

func DocsSearchInfo(query string) (DocsResult, error)

type DocsSnippet added in v2026.611.0

type DocsSnippet struct {
	Path      string  `json:"path"`
	Heading   string  `json:"heading"`
	StartLine int     `json:"startLine"`
	EndLine   int     `json:"endLine"`
	Snippet   string  `json:"snippet"`
	Score     float64 `json:"score"`
}

type EditResult added in v2026.611.0

type EditResult struct {
	OK     bool
	Action string
	Reason string
	From   string
	To     string
	Intent string
}

func DeleteFileResult added in v2026.611.0

func DeleteFileResult(path, intent string) (EditResult, error)

func EditFileResult added in v2026.611.0

func EditFileResult(path, oldString, newString, intent string, delete bool) (EditResult, error)

func RenameFileResult added in v2026.611.0

func RenameFileResult(path, renameTo, intent string) (EditResult, error)

func ReplaceInFileResult added in v2026.611.0

func ReplaceInFileResult(path, oldString, newString, intent string) (EditResult, error)

func WriteFileResult added in v2026.611.0

func WriteFileResult(path, content, intent string) (EditResult, error)

type FetchWebResult added in v2026.611.0

type FetchWebResult struct {
	URL         string
	Status      int
	ContentType string
	Markdown    string
}

func FetchWebInfo added in v2026.611.0

func FetchWebInfo(url string) (FetchWebResult, error)

func FetchWebInfoWithTimeout added in v2026.611.0

func FetchWebInfoWithTimeout(url string, secs int) (FetchWebResult, error)

type FindResult added in v2026.611.0

type FindResult struct {
	Files      bool
	Pattern    string
	Path       string
	Matches    []string
	Count      int
	OutputMode string
	Output     string
	Exit       int
}

func FindInInfo added in v2026.611.0

func FindInInfo(dir, pattern string, files bool) (FindResult, error)

func FindInTimeoutInfo added in v2026.611.0

func FindInTimeoutInfo(dir, pattern string, files bool, secs int) (FindResult, error)

func FindInfo added in v2026.611.0

func FindInfo(pattern string, files bool) (FindResult, error)

func FindTimeoutInfo added in v2026.611.0

func FindTimeoutInfo(pattern string, files bool, secs int) (FindResult, error)

type GrepCountEntry added in v2026.611.0

type GrepCountEntry struct {
	Path  string
	Count int
}

func GrepCountEntries added in v2026.611.0

func GrepCountEntries(pattern string) ([]GrepCountEntry, error)

func GrepCountEntriesIgnoreCase added in v2026.611.0

func GrepCountEntriesIgnoreCase(pattern string) ([]GrepCountEntry, error)

func GrepCountEntriesIn added in v2026.611.0

func GrepCountEntriesIn(dir, pattern string) ([]GrepCountEntry, error)

func GrepCountEntriesInIgnoreCase added in v2026.611.0

func GrepCountEntriesInIgnoreCase(dir, pattern string) ([]GrepCountEntry, error)

func GrepCountEntriesInTimeout added in v2026.611.0

func GrepCountEntriesInTimeout(dir, pattern string, secs int) ([]GrepCountEntry, error)

func GrepCountEntriesTimeout added in v2026.611.0

func GrepCountEntriesTimeout(pattern string, secs int) ([]GrepCountEntry, error)

type GrepLine added in v2026.611.0

type GrepLine struct {
	Path string
	Line int
	Text string
}

func GrepLines added in v2026.611.0

func GrepLines(pattern string) ([]GrepLine, error)

func GrepLinesContextAfter added in v2026.611.0

func GrepLinesContextAfter(pattern string, after int) ([]GrepLine, error)

func GrepLinesContextBefore added in v2026.611.0

func GrepLinesContextBefore(pattern string, before int) ([]GrepLine, error)

func GrepLinesContextBeforeAfter added in v2026.611.0

func GrepLinesContextBeforeAfter(pattern string, before, after int) ([]GrepLine, error)

func GrepLinesIgnoreCase added in v2026.611.0

func GrepLinesIgnoreCase(pattern string) ([]GrepLine, error)

func GrepLinesIn added in v2026.611.0

func GrepLinesIn(dir, pattern string) ([]GrepLine, error)

func GrepLinesInIgnoreCase added in v2026.611.0

func GrepLinesInIgnoreCase(dir, pattern string) ([]GrepLine, error)

func GrepLinesInLimit added in v2026.611.0

func GrepLinesInLimit(dir, pattern string, headLimit int) ([]GrepLine, error)

func GrepLinesInMultiline added in v2026.611.0

func GrepLinesInMultiline(dir, pattern string) ([]GrepLine, error)

func GrepLinesInPathGlob added in v2026.611.0

func GrepLinesInPathGlob(dir, pattern, pathGlob string) ([]GrepLine, error)

func GrepLinesInTimeout added in v2026.611.0

func GrepLinesInTimeout(dir, pattern string, secs int) ([]GrepLine, error)

func GrepLinesInWithContext added in v2026.611.0

func GrepLinesInWithContext(dir, pattern string, contextLines int) ([]GrepLine, error)

func GrepLinesLimit added in v2026.611.0

func GrepLinesLimit(pattern string, headLimit int) ([]GrepLine, error)

func GrepLinesMultiline added in v2026.611.0

func GrepLinesMultiline(pattern string) ([]GrepLine, error)

func GrepLinesPathGlob added in v2026.611.0

func GrepLinesPathGlob(pattern, pathGlob string) ([]GrepLine, error)

func GrepLinesTimeout added in v2026.611.0

func GrepLinesTimeout(pattern string, secs int) ([]GrepLine, error)

func GrepLinesWithContext added in v2026.611.0

func GrepLinesWithContext(pattern string, contextLines int) ([]GrepLine, error)

type ListDirEntry added in v2026.617.0

type ListDirEntry struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Size int64  `json:"size,omitempty"`
}

func ListDir added in v2026.617.0

func ListDir(path string) ([]ListDirEntry, error)

type ListDirResult added in v2026.617.0

type ListDirResult struct {
	Path    string         `json:"path"`
	Entries []ListDirEntry `json:"entries"`
	Count   int            `json:"count"`
}

func ListDirInfo added in v2026.617.0

func ListDirInfo(path string) (ListDirResult, error)

type ReadResult added in v2026.611.0

type ReadResult struct {
	Path       string
	Content    string
	TotalLines int
	StartLine  int
	EndLine    int
}

func ReadFileFromLineInfo added in v2026.611.0

func ReadFileFromLineInfo(path string, start int) (ReadResult, error)

func ReadFileInfo added in v2026.611.0

func ReadFileInfo(path string) (ReadResult, error)

func ReadFileLinesInfo added in v2026.611.0

func ReadFileLinesInfo(path string, start, end int) (ReadResult, error)

func ReadFileUntilLineInfo added in v2026.611.0

func ReadFileUntilLineInfo(path string, end int) (ReadResult, error)

type ShellOutput added in v2026.611.0

type ShellOutput struct {
	Output string
	Exit   int
	Intent string
}

func ShellResult added in v2026.611.0

func ShellResult(command, intent string) (ShellOutput, error)

func ShellResultWithTimeout added in v2026.611.0

func ShellResultWithTimeout(command, intent string, secs int) (ShellOutput, error)

type TreeResult added in v2026.617.0

type TreeResult struct {
	Path      string `json:"path"`
	Tree      string `json:"tree"`
	Entries   int    `json:"entries"`
	Truncated bool   `json:"truncated,omitempty"`
}

func TreeInfo added in v2026.617.0

func TreeInfo(path string) (TreeResult, error)

type WebHit added in v2026.611.0

type WebHit struct {
	Title   string `json:"title"`
	URL     string `json:"url"`
	Snippet string `json:"snippet,omitempty"`
}

type WebSearchResult added in v2026.611.0

type WebSearchResult struct {
	Engine       string   `json:"engine"`
	Hits         []WebHit `json:"hits"`
	HasMore      bool     `json:"hasMore,omitempty"`
	SearxBaseURL string   `json:"searxBaseURL,omitempty"`
}

func WebSearchEngineInfo added in v2026.611.0

func WebSearchEngineInfo(query, engine string) (WebSearchResult, error)

func WebSearchEngineNInfo added in v2026.611.0

func WebSearchEngineNInfo(query, engine string, maxResults int) (WebSearchResult, error)

func WebSearchEngineNTimeoutInfo added in v2026.611.0

func WebSearchEngineNTimeoutInfo(query, engine string, maxResults, secs int) (WebSearchResult, error)

func WebSearchEngineTimeoutInfo added in v2026.611.0

func WebSearchEngineTimeoutInfo(query, engine string, secs int) (WebSearchResult, error)

func WebSearchInfo added in v2026.611.0

func WebSearchInfo(query string) (WebSearchResult, error)

func WebSearchNInfo added in v2026.611.0

func WebSearchNInfo(query string, maxResults int) (WebSearchResult, error)

func WebSearchNTimeoutInfo added in v2026.611.0

func WebSearchNTimeoutInfo(query string, maxResults, secs int) (WebSearchResult, error)

func WebSearchWithTimeoutInfo added in v2026.611.0

func WebSearchWithTimeoutInfo(query string, secs int) (WebSearchResult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL