Versions in this module Expand all Collapse all v0 v0.3.0 Oct 22, 2026 v0.2.0 Oct 16, 2026 Changes in this version + type Client struct + func Dial(target string, opts ...Option) (*Client, error) + func (c *Client) Approve(ctx context.Context, uid string, decision api.ApprovalDecision) (*v1.ApproveResponse, error) + func (c *Client) Close() error + func (c *Client) CreateSession(ctx context.Context, s *v1.Session) (*v1.Session, error) + func (c *Client) DeleteSession(ctx context.Context, uid string) (*v1.Session, error) + func (c *Client) Exec(ctx context.Context, opts ExecOptions) (*TurnResult, error) + func (c *Client) Fork(ctx context.Context, uid string, opts ForkOptions) ([]*v1.Session, error) + func (c *Client) GetSession(ctx context.Context, uid string) (*v1.Session, error) + func (c *Client) ListSessions(ctx context.Context, project string) ([]*v1.Session, error) + func (c *Client) ListSessionsPage(ctx context.Context, project string, pageSize int32, token string) (*v1.ListSessionsResponse, error) + func (c *Client) Replay(ctx context.Context, uid string, fromSeq, toSeq int64) ([]*v1.LogRecord, error) + func (c *Client) Resume(ctx context.Context, uid string, boot bool) (*v1.Session, error) + func (c *Client) Sessions() v1.SessionsClient + func (c *Client) Suspend(ctx context.Context, uid string) (*v1.Session, error) + type ExecOptions struct + Config []byte + ExpectedLastSeq *int64 + Harness string + Inputs []string + OnDelta func(*v1.Delta) + OnRecord func(*v1.LogRecord) + OnSession func(*v1.Session) + Session string + type ForkOptions struct + AtSeq int64 + Count int32 + Names []string + type Option func(*config) + func WithDialOptions(opts ...grpc.DialOption) Option + func WithProject(p string) Option + type TurnResult struct + LastSeq int64 + Output string + Records []*v1.LogRecord + Session *v1.Session