Versions in this module Expand all Collapse all v0 v0.2.0 Jun 11, 2026 Changes in this version type Store + func (s *Store) ListThreads(ctx context.Context, opts sessiontree.ListThreadsOptions) ([]sessiontree.ThreadMeta, error) v0.1.0 Jun 10, 2026 Changes in this version + func DefaultTestUIPath(root string) string + type ImportSummary struct + Conflicts int + Metadata int + PromptRuns int + Skipped int + Threads int + type Option func(*options) + type Store struct + func Open(path string, opts ...Option) (*Store, error) + func OpenMemory(opts ...Option) (*Store, error) + func (s *Store) AcquireTurnLease(ctx context.Context, lease sessiontree.TurnLease) error + func (s *Store) ActiveToolset(ctx context.Context, runID, provider, model string) (cache.ToolsetSnapshot, bool, error) + func (s *Store) ActiveTurnLease(ctx context.Context, threadID string) (sessiontree.TurnLease, bool, error) + func (s *Store) Append(ctx context.Context, entry sessiontree.Entry, opts sessiontree.AppendOptions) (sessiontree.Entry, error) + func (s *Store) AppendProviderRequest(ctx context.Context, req cache.ProviderRequestRecord) error + func (s *Store) AppendProviderResponse(ctx context.Context, resp cache.ProviderResponseRecord) error + func (s *Store) AppendSegment(ctx context.Context, seg cache.Segment) error + func (s *Store) AppendToolset(ctx context.Context, snap cache.ToolsetSnapshot) error + func (s *Store) ClearExpiredTurnLease(ctx context.Context, threadID string, cutoff time.Time) (sessiontree.TurnLease, bool, error) + func (s *Store) Close() error + func (s *Store) CreateThread(ctx context.Context, meta sessiontree.ThreadMeta) (sessiontree.ThreadMeta, error) + func (s *Store) DBPath() string + func (s *Store) DeleteMetadata(ctx context.Context, namespace, id string) error + func (s *Store) DeleteRuns(ctx context.Context, runIDs ...string) error + func (s *Store) DeleteSession(ctx context.Context, req storage.DeleteSessionRequest) error + func (s *Store) DeleteThread(ctx context.Context, threadID string) error + func (s *Store) Entries(ctx context.Context, threadID string) ([]sessiontree.Entry, error) + func (s *Store) Entry(ctx context.Context, threadID, entryID string) (sessiontree.Entry, error) + func (s *Store) Fork(ctx context.Context, opts sessiontree.ForkOptions) (sessiontree.ThreadMeta, error) + func (s *Store) ImportMetadataDir(ctx context.Context, namespace, root string) (ImportSummary, error) + func (s *Store) ImportPromptCache(ctx context.Context, root string) (ImportSummary, error) + func (s *Store) ImportSessionTree(ctx context.Context, root string) (ImportSummary, error) + func (s *Store) LatestPressureAnchor(ctx context.Context, sessionID, providerName, model string) (cache.PressureAnchorState, bool, error) + func (s *Store) ListMetadata(ctx context.Context, namespace string) ([]storage.MetadataRecord, error) + func (s *Store) MetaValue(ctx context.Context, key string) (string, error) + func (s *Store) Metadata(ctx context.Context, namespace, id string) (storage.MetadataRecord, error) + func (s *Store) MoveLeaf(ctx context.Context, threadID, entryID string) error + func (s *Store) Path(ctx context.Context, threadID, leafID string) ([]sessiontree.Entry, error) + func (s *Store) ProviderRequests(ctx context.Context, runID string) ([]cache.ProviderRequestRecord, error) + func (s *Store) ProviderResponses(ctx context.Context, runID string) ([]cache.ProviderResponseRecord, error) + func (s *Store) PutMetaValue(ctx context.Context, key, value string) error + func (s *Store) PutMetadata(ctx context.Context, rec storage.MetadataRecord) error + func (s *Store) ReleaseTurnLease(ctx context.Context, lease sessiontree.TurnLease) error + func (s *Store) SchemaVersion(ctx context.Context) (string, error) + func (s *Store) Segments(ctx context.Context, runID, provider, model string) ([]cache.Segment, error) + func (s *Store) Thread(ctx context.Context, threadID string) (sessiontree.ThreadMeta, error) + func (s *Store) UpdateThread(ctx context.Context, meta sessiontree.ThreadMeta) error