Documentation
¶
Index ¶
- Variables
- func InvalidArgs(toolID string, err error) error
- func IsProcessProbeCommand(command string) bool
- type ApprovalRequest
- type BackgroundJob
- type BashParams
- type BashPermissionsParams
- type BashResponseMetadata
- type Call
- type EditOperation
- type EditParams
- type EditPermissionsParams
- type EditResponseMetadata
- type Executor
- func NewBashExecutor() Executor
- func NewEditExecutor() Executor
- func NewGlobExecutor() Executor
- func NewGrepExecutor() Executor
- func NewJobKillExecutor() Executor
- func NewJobOutputExecutor() Executor
- func NewLSExecutor() Executor
- func NewMultiEditExecutor() Executor
- func NewReadExecutor() Executor
- func NewWriteExecutor() Executor
- type FailedEdit
- type FileVersion
- type FilesystemPathPolicy
- type GlobParams
- type GlobResponseMetadata
- type GrepParams
- type GrepResponseMetadata
- type InvalidArgsError
- type JobKillParams
- type JobKillResponseMetadata
- type JobOutputParams
- type JobOutputResponseMetadata
- type LSParams
- type LSResponseMetadata
- type MultiEditParams
- type MultiEditPermissionsParams
- type MultiEditResponseMetadata
- type NodeType
- type ReadParams
- type ReadResponseMetadata
- type Registry
- type Result
- type ResultStatus
- type RiskLevel
- type Spec
- type TreeNode
- type WriteParams
- type WritePermissionsParams
- type WriteResponseMetadata
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidArgs = errors.New("invalid tool arguments")
Functions ¶
func InvalidArgs ¶
func IsProcessProbeCommand ¶
Types ¶
type ApprovalRequest ¶
type BackgroundJob ¶
type BashParams ¶
type BashPermissionsParams ¶
type BashResponseMetadata ¶
type BashResponseMetadata struct {
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
Output string `json:"output"`
ExitCode int `json:"exit_code,omitempty"`
Description string `json:"description,omitempty"`
WorkingDirectory string `json:"working_directory"`
Background bool `json:"background,omitempty"`
ShellID string `json:"shell_id,omitempty"`
}
type EditOperation ¶
type EditParams ¶
type EditPermissionsParams ¶
type EditPermissionsParams struct {
FilePath string `json:"file_path"`
OldContent string `json:"old_content,omitempty"`
NewContent string `json:"new_content,omitempty"`
OldContentTruncated bool `json:"old_content_truncated,omitempty"`
NewContentTruncated bool `json:"new_content_truncated,omitempty"`
OldContentBytes int `json:"old_content_bytes,omitempty"`
NewContentBytes int `json:"new_content_bytes,omitempty"`
}
type EditResponseMetadata ¶
type Executor ¶
func NewBashExecutor ¶
func NewBashExecutor() Executor
func NewEditExecutor ¶
func NewEditExecutor() Executor
func NewGlobExecutor ¶
func NewGlobExecutor() Executor
func NewGrepExecutor ¶
func NewGrepExecutor() Executor
func NewJobKillExecutor ¶
func NewJobKillExecutor() Executor
func NewJobOutputExecutor ¶
func NewJobOutputExecutor() Executor
func NewLSExecutor ¶
func NewLSExecutor() Executor
func NewMultiEditExecutor ¶
func NewMultiEditExecutor() Executor
func NewReadExecutor ¶
func NewReadExecutor() Executor
func NewWriteExecutor ¶
func NewWriteExecutor() Executor
type FailedEdit ¶
type FailedEdit struct {
Index int `json:"index"`
Error string `json:"error"`
Edit EditOperation `json:"edit"`
}
type FileVersion ¶
type FilesystemPathPolicy ¶
type FilesystemPathPolicy struct {
Input string
WorkingDir string
WorkingDirProvided bool
Path string
RealPath string
RealWorkingDir string
BoundaryKnown bool
WithinWorkingDir bool
EscapesWorkingDir bool
SymlinkEvalApplied bool
}
func ResolveFilesystemPath ¶
func ResolveFilesystemPath(workingDir string, value string) (FilesystemPathPolicy, error)
type GlobParams ¶
type GlobResponseMetadata ¶
type GrepParams ¶
type GrepResponseMetadata ¶
type InvalidArgsError ¶
func (*InvalidArgsError) Error ¶
func (e *InvalidArgsError) Error() string
func (*InvalidArgsError) Is ¶
func (e *InvalidArgsError) Is(target error) bool
func (*InvalidArgsError) Unwrap ¶
func (e *InvalidArgsError) Unwrap() error
type JobKillParams ¶
type JobKillParams struct {
ShellID string `json:"shell_id"`
}
type JobKillResponseMetadata ¶
type JobOutputParams ¶
type LSResponseMetadata ¶
type MultiEditParams ¶
type MultiEditParams struct {
FilePath string `json:"file_path"`
Edits []EditOperation `json:"edits"`
}
type MultiEditPermissionsParams ¶
type MultiEditPermissionsParams struct {
FilePath string `json:"file_path"`
OldContent string `json:"old_content,omitempty"`
NewContent string `json:"new_content,omitempty"`
OldContentTruncated bool `json:"old_content_truncated,omitempty"`
NewContentTruncated bool `json:"new_content_truncated,omitempty"`
OldContentBytes int `json:"old_content_bytes,omitempty"`
NewContentBytes int `json:"new_content_bytes,omitempty"`
}
type MultiEditResponseMetadata ¶
type MultiEditResponseMetadata struct {
Diff string `json:"diff"`
Additions int `json:"additions"`
Removals int `json:"removals"`
OldContent string `json:"old_content,omitempty"`
NewContent string `json:"new_content,omitempty"`
EditsApplied int `json:"edits_applied"`
EditsFailed []FailedEdit `json:"edits_failed,omitempty"`
}
type ReadParams ¶
type ReadResponseMetadata ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
type Result ¶
type Result struct {
Content string `json:"content"`
Metadata any `json:"metadata,omitempty"`
MIMEType string `json:"mime_type,omitempty"`
Status ResultStatus `json:"status,omitempty"`
IsError bool `json:"is_error,omitempty"`
Approval *ApprovalRequest `json:"approval,omitempty"`
FileVersion *FileVersion `json:"file_version,omitempty"`
Background *BackgroundJob `json:"background,omitempty"`
}
type ResultStatus ¶
type ResultStatus string
const ( ResultStatusSuccess ResultStatus = "success" ResultStatusError ResultStatus = "error" ResultStatusNeutral ResultStatus = "neutral" )
type WriteParams ¶
type WritePermissionsParams ¶
type WritePermissionsParams struct {
FilePath string `json:"file_path"`
OldContent string `json:"old_content,omitempty"`
NewContent string `json:"new_content,omitempty"`
OldContentTruncated bool `json:"old_content_truncated,omitempty"`
NewContentTruncated bool `json:"new_content_truncated,omitempty"`
OldContentBytes int `json:"old_content_bytes,omitempty"`
NewContentBytes int `json:"new_content_bytes,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.