sessindex

package
v0.3.30 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractIndexableMessages

func ExtractIndexableMessages(events []agentkit.SessionEvent) []indexableMessage

ExtractIndexableMessages returns user/assistant text from session events.

func NewSQLiteIndex

func NewSQLiteIndex(cfg SQLiteIndexConfig, deps SQLiteIndexDeps) (capsessionindex.Service, error)

NewSQLiteIndex registers session/sqlite-index: FTS index over session/store JSONL files.

func SearchSyncedSessions

func SearchSyncedSessions(ctx context.Context, index capsessionindex.Service, sessionsDir, query string, limit int) ([]capsessionindex.Hit, error)

SearchSyncedSessions syncs then runs FTS over indexed messages.

func SyncSessionIndex

func SyncSessionIndex(ctx context.Context, index capsessionindex.Service, sessionsDir string) error

SyncSessionIndex refreshes the SQLite FTS index from a sessions directory.

Types

type SQLiteIndex

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

SQLiteIndex persists FTS5 over session JSONL transcripts per tenant workspace.

func (*SQLiteIndex) ListSessions

func (s *SQLiteIndex) ListSessions(ctx context.Context, limit int) ([]capsessionindex.SessionSummary, error)

func (*SQLiteIndex) ScrollMessages

func (s *SQLiteIndex) ScrollMessages(ctx context.Context, sessionID string, anchorSeq int64, before, after int) ([]capsessionindex.MessageRow, error)

func (*SQLiteIndex) Search

func (s *SQLiteIndex) Search(ctx context.Context, query string, limit int) ([]capsessionindex.Hit, error)

func (*SQLiteIndex) SyncSessions

func (s *SQLiteIndex) SyncSessions(ctx context.Context, sessionsDir string) error

type SQLiteIndexConfig

type SQLiteIndexConfig struct {
	// IndexRel is the workspace-relative SQLite file path.
	IndexRel string `json:"indexRel"`
}

type SQLiteIndexDeps

type SQLiteIndexDeps struct {
	Workspace workspace.Service `json:"workspace"`
}

Jump to

Keyboard shortcuts

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