Versions in this module Expand all Collapse all v0 v0.3.0 May 30, 2026 Changes in this version + var ErrDaemonClientRequired = errors.New("daemon client is required") + var ErrDaemonContextRequired = errors.New("daemon request context is required") + var ErrRunIDRequired = errors.New("run id is required") + var ErrWorkflowSlugRequired = errors.New("workflow slug is required") + type Client struct + func New(target Target) (*Client, error) + func (c *Client) ArchiveTaskWorkflow(ctx context.Context, workspace string, slug string) (apicore.ArchiveResult, error) + func (c *Client) CancelRun(ctx context.Context, runID string) error + func (c *Client) DaemonStatus(ctx context.Context) (apicore.DaemonStatus, error) + func (c *Client) DeleteWorkspace(ctx context.Context, ref string) error + func (c *Client) FetchReview(ctx context.Context, workspace string, slug string, ...) (apicore.ReviewFetchResult, error) + func (c *Client) GetLatestReview(ctx context.Context, workspace string, slug string) (apicore.ReviewSummary, error) + func (c *Client) GetReviewRound(ctx context.Context, workspace string, slug string, round int) (apicore.ReviewRound, error) + func (c *Client) GetRun(ctx context.Context, runID string) (apicore.Run, error) + func (c *Client) GetRunSnapshot(ctx context.Context, runID string) (apicore.RunSnapshot, error) + func (c *Client) GetRunTranscript(ctx context.Context, runID string) (apicore.RunTranscript, error) + func (c *Client) GetWorkspace(ctx context.Context, ref string) (apicore.Workspace, error) + func (c *Client) Health(ctx context.Context) (apicore.DaemonHealth, error) + func (c *Client) ListReviewIssues(ctx context.Context, workspace string, slug string, round int) ([]apicore.ReviewIssue, error) + func (c *Client) ListRunEvents(ctx context.Context, runID string, after apicore.StreamCursor, limit int) (apicore.RunEventPage, error) + func (c *Client) ListRuns(ctx context.Context, opts RunListOptions) ([]apicore.Run, error) + func (c *Client) ListTaskWorkflows(ctx context.Context, workspace string) ([]apicore.WorkflowSummary, error) + func (c *Client) ListWorkspaces(ctx context.Context) ([]apicore.Workspace, error) + func (c *Client) OpenRunStream(ctx context.Context, runID string, after apicore.StreamCursor) (RunStream, error) + func (c *Client) RegisterWorkspace(ctx context.Context, path string, name string) (apicore.WorkspaceRegisterResult, error) + func (c *Client) ResolveWorkspace(ctx context.Context, path string) (apicore.Workspace, error) + func (c *Client) StartExecRun(ctx context.Context, req apicore.ExecRequest) (apicore.Run, error) + func (c *Client) StartReviewRun(ctx context.Context, workspace string, slug string, round int, ...) (apicore.Run, error) + func (c *Client) StartReviewWatch(ctx context.Context, workspace string, slug string, ...) (apicore.Run, error) + func (c *Client) StartTaskRun(ctx context.Context, slug string, req apicore.TaskRunRequest) (apicore.Run, error) + func (c *Client) StopDaemon(ctx context.Context, force bool) error + func (c *Client) SyncWorkflow(ctx context.Context, req apicore.SyncRequest) (apicore.SyncResult, error) + func (c *Client) Target() Target + type RemoteError struct + Envelope contract.TransportError + StatusCode int + func (e *RemoteError) Error() string + type RunListOptions struct + Limit int + Mode string + Status string + Workspace string + type RunStream interface + Close func() error + Errors func() <-chan error + Items func() <-chan RunStreamItem + type RunStreamHeartbeat struct + Cursor apicore.StreamCursor + Timestamp time.Time + type RunStreamItem struct + Event *events.Event + Heartbeat *RunStreamHeartbeat + Overflow *RunStreamOverflow + Snapshot *RunStreamSnapshot + type RunStreamOverflow struct + Cursor apicore.StreamCursor + Reason string + Timestamp time.Time + type RunStreamSnapshot struct + Snapshot apicore.RunSnapshot + type Target struct + SocketPath string + func (t Target) String() string + func (t Target) Validate() error