Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Install ¶
Install merges into the original JSON object, including fields added by Claude or by other hook providers that Trace does not itself understand.
func ParseEvents ¶
ParseEvents closes unfinished turns on failure or session shutdown and requests a final scan for changes not reported by a tool hook.
Types ¶
type TranscriptContext ¶
type TranscriptContext struct {
Reasoning string
ToolCalls string
FilesRead string
TokensIn int64
TokensOut int64
}
TranscriptContext is the context Claude has written since a turn began. Only assistant content is collected; user prompts are captured by the hook.
func ReadTranscript ¶
ReadTranscript reads complete JSONL records starting at offset. It returns the next complete-record offset so a partially written line is retried.