Versions in this module Expand all Collapse all v2 v2.2.0 Nov 4, 2026 v2.1.0 Oct 25, 2026 v2.0.0 Oct 22, 2026 Changes in this version + const CodeBadRequest + const CodeBusy + const CodeDisabled + const CodeFilesOff + const CodeHostDenied + const CodeHostLegacy + const CodeHostNotFound + const CodeHostOff + const CodeHostOffline + const CodeInternal + const CodeLimit + const CodeModeDenied + const CodeNotAllowed + const CodeNotFound + const CodeNotReady + const CodeOutputGone + const CodePathDenied + const CodePaused + const CodeReadonly + const CodeSSHCredMissing + const CodeSSHOff + const CodeSSHTerminalOnly + const CodeSSHUntrusted + const CodeTicketGone + const CodeWeakToken + const Notice + type Caller struct + Channel string + Credential *model.MCPCredential + CredentialID uint + CredentialName string + OriginHost string + Permissions model.Permissions + RemoteIP string + Source string + TokenString string + UserAgent string + func (c Caller) Hybrid() bool + type Error struct + Code string + Message string + State string + func (e *Error) Error() string + type ExecRequest struct + Command string + Cwd string + Description string + IdempotencyKey string + MaxOutputBytes int + ProjectDirectory string + Shell string + Target string + Thread string + TimeoutSeconds int + WaitSeconds int + WaitSet bool + WorkflowID string + type Executor interface + Exec func(ctx context.Context, caller Caller, req ExecRequest) (any, error) + Run func(ctx context.Context, caller Caller, req RunRequest) (any, error) + Targets func(ctx context.Context, caller Caller, target string) (any, error) + type FileExecutor interface + Files func(ctx context.Context, caller Caller, req FileRequest) (any, error) + type FileHashResult struct + Path string + SHA256 string + Size int64 + Target string + type FilePullResult struct + ExpiresIn int + Hint string + Method string + Path string + SHA256 string + Size int64 + Target string + URL string + type FilePushResult struct + Path string + Redirects int + SHA256 string + Size int64 + Source string + Status int + Target string + type FileRequest struct + Action string + Overwrite bool + Path string + SHA256 string + Target string + URL string + type FileStatResult struct + Exists bool + MTime string + Mode string + Path string + Size int64 + Target string + Type string + type Limits struct + AllowedDirs []string + AllowedPaths []string + MaxConcurrent int + MaxOutputBytes int + MaxTimeoutSeconds int + MaxWaitSeconds int + WholeFS bool + type Output struct + Bytes int64 + DroppedBytes int64 + NextOffset int64 + Tail string + Text string + Truncated bool + type OutputPage struct + EOF bool + Gap bool + NextOffset int64 + Notice string + Offset int64 + RunID string + Running bool + Stream string + Text string + TotalBytes int64 + type Preview struct + Head string + Tail string + type RunRequest struct + Action string + Limit int + Offset int64 + RunID string + Stream string + WaitSeconds int + type RunResult struct + Adjusted []string + DurationMS int64 + ExitCode *int + FinishedAt string + Hint string + Message string + Mode string + Notice string + Preview *Preview + Reason string + RunID string + Signal string + StartedAt string + State string + Stderr *Output + Stdout *Output + Target string + Thread string + Warnings []string + type Target struct + Arch string + Backend string + Blocked string + DuplicateName bool + Files bool + FilesBlocked string + Home string + Hostname string + MachineCode string + Mode string + Name string + OS string + Online bool + PathSep string + Running int + Shell string + Usable bool + type TargetsResult struct + Hint string + Limits *Limits + Targets []Target v2.0.0-rc.3 Oct 20, 2026 v2.0.0-rc.2 Oct 20, 2026 v2.0.0-rc.1 Oct 20, 2026