Documentation
¶
Index ¶
- Constants
- func AddRuntimeOutputProperties(_ map[string]any)
- func AddRuntimeProperties(_ map[string]any)
- func EditDescription(base string) string
- func PatchDescription(base string) string
- func PathDescription(hostDescription string) string
- func ToolDescription(base string) string
- type CommandEnv
- type FileRuntimeSelection
- type Result
- type SearchOptions
- type Service
- func (s *Service) ApplyPatch(ctx context.Context, args map[string]any) (Result, error)
- func (svc *Service) Edit(ctx context.Context, args map[string]any) (Result, error)
- func (s *Service) EditFile(args map[string]any) (Result, error)
- func (svc *Service) ListDir(ctx context.Context, args map[string]any) (Result, error)
- func (svc *Service) ListFiles(ctx context.Context, args map[string]any) (Result, error)
- func (s *Service) ParseRGJSON(output []byte, options SearchOptions) ([]map[string]any, bool, bool)
- func (svc *Service) ReadFile(ctx context.Context, args map[string]any) (Result, error)
- func (svc *Service) SearchText(ctx context.Context, args map[string]any) (Result, error)
- func (s *Service) SearchTextGo(ctx context.Context, path workspace.Path, options SearchOptions) (Result, error)
- type SkillResourceResolver
- type ToolError
Constants ¶
View Source
const ( MaxTextFileReadBytes = 32 << 20 MaxTextOutputBytes = 4 << 20 )
Variables ¶
This section is empty.
Functions ¶
func AddRuntimeProperties ¶
func EditDescription ¶
func PatchDescription ¶
func PathDescription ¶
func ToolDescription ¶
Types ¶
type FileRuntimeSelection ¶
type FileRuntimeSelection = fileRuntimeSelection
func SelectFileRuntime ¶
func SelectFileRuntime(args map[string]any) (FileRuntimeSelection, error)
type SearchOptions ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func New ¶
func New(ws *workspace.Workspace, resolveSkillResource SkillResourceResolver, commandEnv CommandEnv) *Service
func (*Service) ApplyPatch ¶
func (*Service) ParseRGJSON ¶
func (*Service) SearchText ¶
func (*Service) SearchTextGo ¶
type SkillResourceResolver ¶
Source Files
¶
- bounded_file.go
- diff_parse.go
- diff_preview.go
- edit_file.go
- export.go
- file_edit.go
- file_runtime.go
- file_runtime_other.go
- file_snapshot.go
- file_snapshot_unix.go
- git_apply_patch.go
- helpers.go
- ignore.go
- patch.go
- rename_noreplace_linux.go
- runtime_files.go
- search.go
- service.go
- text.go
- text_edit_prepare.go
- wsl_files_other.go
- wsl_patch_policy.go
Click to show internal directories.
Click to hide internal directories.