Versions in this module Expand all Collapse all v1 v1.0.0 Sep 16, 2026 Changes in this version + func MigrateFromJSON(ctx context.Context, sessionsDir string, store Store) (int, error) + type JSONLStore struct + func NewJSONLStore(dir string) (*JSONLStore, error) + func (s *JSONLStore) AddFullMessage(_ context.Context, sessionKey string, msg providers.Message) error + func (s *JSONLStore) AddMessage(_ context.Context, sessionKey, role, content string) error + func (s *JSONLStore) Close() error + func (s *JSONLStore) Compact(_ context.Context, sessionKey string) error + func (s *JSONLStore) GetHistory(_ context.Context, sessionKey string) ([]providers.Message, error) + func (s *JSONLStore) GetSessionMeta(_ context.Context, sessionKey string) (SessionMeta, error) + func (s *JSONLStore) GetSummary(_ context.Context, sessionKey string) (string, error) + func (s *JSONLStore) ListSessions() []string + func (s *JSONLStore) PromoteAliasHistory(_ context.Context, sessionKey string, scope json.RawMessage, aliases []string) (bool, error) + func (s *JSONLStore) ResolveSessionKey(_ context.Context, sessionKey string) (string, bool, error) + func (s *JSONLStore) SetHistory(_ context.Context, sessionKey string, history []providers.Message) error + func (s *JSONLStore) SetSummary(_ context.Context, sessionKey, summary string) error + func (s *JSONLStore) TruncateHistory(_ context.Context, sessionKey string, keepLast int) error + func (s *JSONLStore) UpsertSessionMeta(_ context.Context, sessionKey string, scope json.RawMessage, aliases []string) error + type SessionMeta struct + Aliases []string + Count int + CreatedAt time.Time + Key string + Scope json.RawMessage + Skip int + Summary string + UpdatedAt time.Time + type Store interface + AddFullMessage func(ctx context.Context, sessionKey string, msg providers.Message) error + AddMessage func(ctx context.Context, sessionKey, role, content string) error + Close func() error + Compact func(ctx context.Context, sessionKey string) error + GetHistory func(ctx context.Context, sessionKey string) ([]providers.Message, error) + GetSummary func(ctx context.Context, sessionKey string) (string, error) + ListSessions func() []string + SetHistory func(ctx context.Context, sessionKey string, history []providers.Message) error + SetSummary func(ctx context.Context, sessionKey, summary string) error + TruncateHistory func(ctx context.Context, sessionKey string, keepLast int) error