Versions in this module Expand all Collapse all v0 v0.0.18 Oct 29, 2026 Changes in this version + func PermissionAllowOnce(ctx context.Context, req acp.RequestPermissionRequest) (acp.RequestPermissionResponse, error) + func UpdateLine(update acp.SessionUpdate) string type Options + ClientFS bool + OnPermission PermissionHandler + type PermissionHandler func(ctx context.Context, req acp.RequestPermissionRequest) (acp.RequestPermissionResponse, error) + func PermissionInteractive(ask func(title string, options []acp.PermissionOption) string) PermissionHandler v0.0.17 Oct 20, 2026 Changes in this version + const DefaultTimeout + type Agent struct + Args []string + Command string + Env map[string]string + Name string + type Options struct + Cwd string + OnUpdate func(update acp.SessionUpdate) error + Prompt string + System string + Timeout time.Duration + type Result struct + StopReason acp.StopReason + Text string + func Run(ctx context.Context, agent Agent, opts Options) (Result, error)