Versions in this module Expand all Collapse all v0 v0.2.0 Aug 3, 2026 Changes in this version + const EventPermissionRequired + type Permission string + const PermissionAuto + const PermissionOpen + const PermissionStrict + func ParsePermission(s string) (Permission, error) + func (p Permission) Resolve() Permission type Request + AllowedTools []string v0.1.0 Jul 25, 2026 Changes in this version + const EventProviderError + const EventProviderFinished + const EventProviderOutput + const EventProviderSelected + const PayloadDetail + const PayloadToolResult + func StripViewOnly(payload map[string]any) map[string]any + func TruncateDetail(s string, keepTail bool) string + type Adapter interface + Command func(req Request) (name string, args []string, extraEnv []string) + Name func() string + Translate func(line []byte) ([]Event, error) + type Event struct + Payload map[string]any + Type string + type Executor struct + Adapter Adapter + Debug io.Writer + Stderr io.Writer + Warn io.Writer + func (e *Executor) Run(ctx context.Context, req Request, emit Sink) (Result, error) + type Request struct + AddDirs []string + PermissionMode string + Prompt string + ResumeID string + Timeout time.Duration + WorkDir string + type Result struct + Duration time.Duration + ErrorReported bool + ExitCode int + Started bool + type Sink func(ev Event, ts int64) error