Documentation
¶
Index ¶
- func ClaudeDir() string
- func EmptyTrash() error
- func EnsureTrashDir() error
- func MoveToTrash(session *Session) error
- func PermanentlyDelete(session *Session) error
- func ProjectDir(session *Session) string
- func ProjectsDir() string
- func ReassignProjectPath(oldPath, newPath string) (int, error)
- func ReassignSessionPath(session *Session, newPath string) error
- func RenameSession(session *Session, newSummary string) error
- func RestoreFromTrash(session *Session) error
- func SearchPreview(preview *PreviewContent, query string) []int
- func TrashDir() string
- type AssistantMessage
- type ContentBlock
- type PreviewContent
- type PreviewMessage
- type RawMessage
- type SearchResult
- type Session
- type SessionIndex
- type UserMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyTrash ¶
func EmptyTrash() error
func EnsureTrashDir ¶
func EnsureTrashDir() error
func MoveToTrash ¶
func PermanentlyDelete ¶
func ProjectDir ¶
func ProjectsDir ¶
func ProjectsDir() string
func ReassignProjectPath ¶
func ReassignSessionPath ¶
func RenameSession ¶
func RestoreFromTrash ¶
func SearchPreview ¶
func SearchPreview(preview *PreviewContent, query string) []int
Types ¶
type AssistantMessage ¶
type AssistantMessage struct {
Role string `json:"role"`
Content []ContentBlock `json:"content"`
}
type ContentBlock ¶
type PreviewContent ¶
type PreviewContent struct {
Messages []PreviewMessage
Error string
}
func LoadSessionPreview ¶
func LoadSessionPreview(session *Session, maxMessages int) PreviewContent
type PreviewMessage ¶
type RawMessage ¶
type RawMessage struct {
Type string `json:"type"`
Message json.RawMessage `json:"message"`
}
type SearchResult ¶
type SearchResult struct {
Session *Session
MessageIndex int
Role string
Content string
MatchPosition int
}
func SearchAllSessions ¶
func SearchAllSessions(sessions []Session, query string) []SearchResult
type Session ¶
type Session struct {
SessionID string `json:"sessionId"`
FullPath string `json:"fullPath"`
FirstPrompt string `json:"firstPrompt"`
Summary string `json:"summary"`
MessageCount int `json:"messageCount"`
Created time.Time `json:"created"`
Modified time.Time `json:"modified"`
GitBranch string `json:"gitBranch"`
ProjectPath string `json:"projectPath"`
IsSidechain bool `json:"isSidechain"`
ProjectName string `json:"-"`
InTrash bool `json:"-"`
}
func LoadAllSessions ¶
type SessionIndex ¶
type UserMessage ¶
Click to show internal directories.
Click to hide internal directories.