kiro

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package kiro reads sessions from Kiro CLI's classic, v2, and v3 stores.

Index

Constants

View Source
const (
	Binary  = "kiro-cli"
	EnvHome = "KIRO_HOME"
)

Variables

This section is empty.

Functions

func IsV3Path

func IsV3Path(path string) bool

IsV3Path reports whether path belongs to Kiro's v3 session store.

func ResolveHome

func ResolveHome() (string, error)

Types

type Store

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

func Open

func Open() (*Store, error)

func OpenAt

func OpenAt(home string) *Store

OpenAt treats home as a self-contained Kiro fixture with data.sqlite3 at its root and sessions below it.

func (*Store) FindByID

func (s *Store) FindByID(id string) (*session.Session, error)

func (*Store) FindByLocator

func (s *Store) FindByLocator(id, path string) (*session.Session, error)

func (*Store) GrepKeys

func (s *Store) GrepKeys(query string, regex bool) (map[string]struct{}, error)

func (*Store) Messages

func (s *Store) Messages(sessionID string, limit int) ([]session.Message, time.Time, int, error)

func (*Store) MessagesForSession

func (s *Store) MessagesForSession(sess *session.Session, limit int) ([]session.Message, time.Time, int, error)

func (*Store) Scan

func (s *Store) Scan() ([]*session.Session, error)

func (*Store) ScanFiltered

func (s *Store) ScanFiltered(allow map[string]struct{}) ([]*session.Session, error)

Jump to

Keyboard shortcuts

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