Documentation
¶
Index ¶
- Variables
- func FetchGitCommits(ctx context.Context, workingDir, base, head string) (string, error)
- func FetchGitDiff(ctx context.Context, workingDir, base, head string, ignoredLockFiles []string) (string, []string, error)
- func IsLockFile(path string, ignoredLockFiles []string) bool
- func RegisterLocalTools(r *Registry, ignoredLockFiles []string)
- type Registry
- type ToolHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLockFiles = []string{
"go.sum",
"package-lock.json",
"yarn.lock",
"pnpm-lock.yaml",
"bun.lockb",
"deno.lock",
"Cargo.lock",
"poetry.lock",
"uv.lock",
"Gemfile.lock",
"composer.lock",
"pubspec.lock",
"mix.lock",
"flake.lock",
"MODULE.bazel.lock",
}
Functions ¶
func FetchGitCommits ¶
FetchGitCommits retrieves a list of commit messages between base and head.
func FetchGitDiff ¶
func IsLockFile ¶ added in v0.1.0
IsLockFile reports whether path names one of the ignored lockfiles — either at the repository root (path == name) or in any subdirectory (path ends in "/name"). Used by callers that operate on pre-computed paths (e.g. PR file lists) rather than via git pathspec excludes.
func RegisterLocalTools ¶
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) HandleCall ¶
func (*Registry) RegisterTool ¶
func (r *Registry) RegisterTool(def llm.ToolDef, handler ToolHandler)
Click to show internal directories.
Click to hide internal directories.