parser

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindLatestSessionID

func FindLatestSessionID(projectPath string) (string, error)

func GetSessionFilePath

func GetSessionFilePath(projectPath, sessionID string) (string, error)

func ParseSummary

func ParseSummary(filePath string) string

func ResolveCurrentSessionID

func ResolveCurrentSessionID(projectPath, sessionID string) (string, error)

Types

type ContentBlock

type ContentBlock struct {
	Type      string
	Content   string
	ToolName  string
	ToolUseID string
	ToolInput string
	IsError   bool
}

type Message

type Message struct {
	ID        string
	Role      string
	Timestamp time.Time
	Blocks    []ContentBlock
}

func ParseFile

func ParseFile(filePath string) ([]Message, error)

Jump to

Keyboard shortcuts

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