sessions

package
v0.0.49 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatInfoText

func FormatInfoText(info *SessionInfo, home string, now time.Time) string

func FormatListTable

func FormatListTable(sessions []Session, home string, now time.Time) string

Types

type Session

type Session struct {
	ID              string
	LastActiveAt    time.Time
	CWD             string
	Title           string
	Path            string
	NumChatMessages int
}

func Find

func Find(grokHome, sessionID string) (Session, error)

func List

func List(grokHome string, limit int) ([]Session, error)

type SessionInfo

type SessionInfo struct {
	Session
	CreatedAt, UpdatedAt        time.Time
	NumMessages                 int
	CurrentModelID              string
	AgentName                   string
	SandboxProfile              string
	GitRootDir                  string
	HeadBranch                  string
	HeadCommit                  string
	SessionDir                  string
	SummaryPath                 string
	UpdatesPath                 string
	SignalsPath                 string
	PromptContextPath           string
	UpdatesExists               bool
	SignalsExists               bool
	PromptContextExists         bool
	ContextTokensUsed           int
	ContextWindowTokens         int
	ContextWindowUsage          int
	TotalTokensBeforeCompaction int
}

func Info

func Info(grokHome, sessionID string) (*SessionInfo, error)

Jump to

Keyboard shortcuts

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