Versions in this module Expand all Collapse all v0 v0.15.0 Jun 23, 2026 v0.14.0 Jun 7, 2026 Changes in this version + var ErrMcpFailureBanner = errors.New("ptyrunner: MCP failure banner detected; check claude's MCP server config") + var ErrNetworkFailure = errors.New("ptyrunner: network failure detected; claude API unreachable") + var ErrTrustModalDetected = errors.New(...) + func Run(ctx context.Context, cfg Config) (err error) + type Config struct + AllowedTools []string + ClaudeBin string + Effort string + Env []string + HomeDir string + Logger *slog.Logger + MaxTurns int + Model string + PromptBytes []byte + PromptCommitTimeout time.Duration + SessionID string + SettingsPath string + Stderr io.Writer + Stdout io.Writer + SystemPrompt string + WatchdogTick time.Duration + WatchdogTrackerOpts tuidriver.TrackerOpts + WorkDir string