Versions in this module Expand all Collapse all v0 v0.1.3 Oct 1, 2026 Changes in this version + const CheckpointMarker + const DefaultMaxAge + const IssueClosed + const IssueOpen + const SchemaVersion + var ErrConflict = errors.New("checkpoint history conflict") + var ErrInvalid = errors.New("invalid checkpoint") + var ErrStale = errors.New("checkpoint precondition changed") + func EncodeCheckpoint(checkpoint *workv1.Checkpoint) (string, error) + func Fingerprint(issue *workv1.SourceIssue) string + func RenderTicket(spec *workv1.TicketSpec) (string, error) + func Resume(snapshot *workv1.SourceSnapshot, revision string, now time.Time, ...) *workv1.ResumeRecord + func RunGitHub(ctx context.Context, args ...string) ([]byte, error) + func TicketTemplate() *workv1.TicketSpec + func ValidateCheckpoint(checkpoint *workv1.Checkpoint) error + func ValidateTaskURL(taskURL string) error + type Command func(ctx context.Context, args ...string) ([]byte, error) + type Continuity struct + func NewContinuity(options ...Option) (*Continuity, error) + func (service *Continuity) Checkpoint(ctx context.Context, taskURL string, input *workv1.Checkpoint) (*workv1.ResumeRecord, error) + func (service *Continuity) Resume(ctx context.Context, taskURL, revision string) (*workv1.ResumeRecord, error) + type GitHubSource struct + func NewGitHubSource(command Command) *GitHubSource + func (source *GitHubSource) Append(ctx context.Context, taskURL, body string) (*workv1.SourceComment, error) + func (source *GitHubSource) CreateTicket(ctx context.Context, spec *workv1.TicketSpec) (*workv1.TicketReceipt, error) + func (source *GitHubSource) Load(ctx context.Context, taskURL string) (*workv1.SourceSnapshot, error) + type HTTPGitHubSource struct + func NewHTTPGitHubSource(client *http.Client) (*HTTPGitHubSource, error) + func (source *HTTPGitHubSource) Append(ctx context.Context, taskURL, body string) (*workv1.SourceComment, error) + func (source *HTTPGitHubSource) Load(ctx context.Context, taskURL string) (*workv1.SourceSnapshot, error) + type ISource interface + Append func(ctx context.Context, taskURL, body string) (*workv1.SourceComment, error) + Load func(ctx context.Context, taskURL string) (*workv1.SourceSnapshot, error) + type Option func(service *Continuity) + func WithLogger(logger *telemetry.JSONLLogger) Option + func WithMaxAge(maxAge time.Duration) Option + func WithSource(source ISource) Option