store

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Diagnostics

type Diagnostics struct {
	Path        string
	Exists      bool
	SchemaReady bool
}

func CheckSQLite

func CheckSQLite(path string) (Diagnostics, error)

type SQLiteStore

type SQLiteStore struct {
	// contains filtered or unexported fields
}

func NewSQLite

func NewSQLite(path string) (*SQLiteStore, error)

func (*SQLiteStore) AcceptMessage

func (s *SQLiteStore) AcceptMessage(ctx context.Context, message core.Message, run core.Run) error

func (*SQLiteStore) Close

func (s *SQLiteStore) Close() error

func (*SQLiteStore) CompleteRun

func (s *SQLiteStore) CompleteRun(ctx context.Context, assistantMessage core.Message, run core.Run) error

func (*SQLiteStore) CreateApproval

func (s *SQLiteStore) CreateApproval(ctx context.Context, approval core.Approval) error

func (*SQLiteStore) CreateClientDelivery

func (s *SQLiteStore) CreateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error

func (*SQLiteStore) CreateFileSnapshot

func (s *SQLiteStore) CreateFileSnapshot(ctx context.Context, snapshot core.FileSnapshot) (core.FileSnapshot, error)

func (*SQLiteStore) CreateRun

func (s *SQLiteStore) CreateRun(ctx context.Context, run core.Run) error

func (*SQLiteStore) CreateSession

func (s *SQLiteStore) CreateSession(ctx context.Context, session core.Session) error

func (*SQLiteStore) DeleteExternalAgentSession added in v0.1.4

func (s *SQLiteStore) DeleteExternalAgentSession(ctx context.Context, sessionID string) error

func (*SQLiteStore) DeleteSession

func (s *SQLiteStore) DeleteSession(ctx context.Context, sessionID string) error

func (*SQLiteStore) GetApproval

func (s *SQLiteStore) GetApproval(ctx context.Context, approvalID string) (core.Approval, error)

func (*SQLiteStore) GetBinding

func (s *SQLiteStore) GetBinding(ctx context.Context, client string, externalKey string) (core.ClientBinding, error)

func (*SQLiteStore) GetExternalAgentSession added in v0.1.4

func (s *SQLiteStore) GetExternalAgentSession(ctx context.Context, sessionID string) (externalagents.SessionAttachment, error)

func (*SQLiteStore) GetRun

func (s *SQLiteStore) GetRun(ctx context.Context, runID string) (core.Run, error)

func (*SQLiteStore) GetSession

func (s *SQLiteStore) GetSession(ctx context.Context, sessionID string) (core.Session, error)

func (*SQLiteStore) ListApprovals

func (s *SQLiteStore) ListApprovals(ctx context.Context, sessionID string, state core.ApprovalState) ([]core.Approval, error)

func (*SQLiteStore) ListClientDeliveries

func (s *SQLiteStore) ListClientDeliveries(ctx context.Context, filter core.ClientDeliveryFilter) ([]core.ClientDelivery, error)

func (*SQLiteStore) ListFileSnapshots

func (s *SQLiteStore) ListFileSnapshots(ctx context.Context, sessionID string) ([]core.FileSnapshot, error)

func (*SQLiteStore) ListMessages

func (s *SQLiteStore) ListMessages(ctx context.Context, sessionID string, limit int) ([]core.Message, error)

func (*SQLiteStore) ListSessions

func (s *SQLiteStore) ListSessions(ctx context.Context, filter core.SessionListFilter) ([]core.Session, error)

func (*SQLiteStore) SaveBinding

func (s *SQLiteStore) SaveBinding(ctx context.Context, binding core.ClientBinding) error

func (*SQLiteStore) SaveExternalAgentSession added in v0.1.4

func (s *SQLiteStore) SaveExternalAgentSession(ctx context.Context, attachment externalagents.SessionAttachment) error

func (*SQLiteStore) SaveMessage

func (s *SQLiteStore) SaveMessage(ctx context.Context, message core.Message) error

func (*SQLiteStore) UpdateApproval

func (s *SQLiteStore) UpdateApproval(ctx context.Context, approval core.Approval) error

func (*SQLiteStore) UpdateClientDelivery

func (s *SQLiteStore) UpdateClientDelivery(ctx context.Context, delivery core.ClientDelivery) error

func (*SQLiteStore) UpdateMessage

func (s *SQLiteStore) UpdateMessage(ctx context.Context, message core.Message) error

func (*SQLiteStore) UpdateRun

func (s *SQLiteStore) UpdateRun(ctx context.Context, run core.Run) error

func (*SQLiteStore) UpdateSession

func (s *SQLiteStore) UpdateSession(ctx context.Context, session core.Session) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL