Versions in this module Expand all Collapse all v1 v1.2.0 Aug 8, 2025 v1.1.1 Jul 31, 2025 Changes in this version + const BashOutputCollapseThreshold + const ContentTypeText + const ContentTypeToolResult + const ContentTypeToolUse + const DefaultBufferSize + const HTMLBuilderInitialCapacity + const MaxLineSize + const MinTextLengthForPrefixMatch + const RoleAssistant + const RoleUser + const ShortUUIDLength + const TagCommandArgs + const TagCommandName + const TagCommandStdout + const ThousandSeparatorThreshold + const ToolNameBash + const ToolNameEdit + const ToolNameMultiEdit + const ToolNameRead + const ToolNameTask + const ToolNameTodoWrite + const ToolNameWrite + const TypeAssistant + const TypeMessage + const TypeToolResult + const TypeToolUse + const TypeUser + func EstimateTokens(text string) int + func GetBoolValue(m map[string]interface{}, key string) bool + func GetStringValue(m map[string]interface{}, key string) string + func ProcessAssistantMessage(msg map[string]interface{}, cwd string) (string, []models.ToolCall) + func ProcessEntries(entries []models.LogEntry) []*models.ProcessedEntry + func ProcessToolUse(toolUse map[string]interface{}) models.ToolCall + func ProcessUserMessage(msg map[string]interface{}) string + type HierarchyBuilder struct + func NewHierarchyBuilder() *HierarchyBuilder + func (h *HierarchyBuilder) BuildHierarchy(entries []*models.ProcessedEntry) error + func (h *HierarchyBuilder) BuildParentChildMap(entries []*models.ProcessedEntry) map[string][]string + type MatchingOptions struct + WindowSize time.Duration + type MessageHandler func(*models.ProcessedEntry, map[string]interface{}, models.LogEntry) error + type ProcessingState struct + Entries []*models.ProcessedEntry + Index int + ParentChildMap map[string][]string + RootParent string + ToolCallMap map[string]*ToolCallContext + type SidechainContext struct + EndIndex int + Entries []*models.ProcessedEntry + RootToolCallID string + StartIndex int + type SidechainProcessor struct + func NewSidechainProcessor() *SidechainProcessor + func (s *SidechainProcessor) ProcessSidechains(entries []*models.ProcessedEntry, originalEntries []models.LogEntry, ...) error + type TaskMatchContext struct + Entry *models.LogEntry + EntryMap map[string]*models.ProcessedEntry + MatchedSidechains map[string]bool + OriginalEntries []models.LogEntry + SidechainRoots []*models.ProcessedEntry + ToolCall *models.ToolCall + type TokenProcessor struct + func NewTokenProcessor() *TokenProcessor + func (tp *TokenProcessor) ProcessTokens(processed *models.ProcessedEntry, msg map[string]interface{}) + type ToolCallContext struct + CallTime time.Time + Entry *models.ProcessedEntry + IsComplete bool + ParentID string + ToolCall *models.ToolCall + type ToolCallMatcher struct + func NewToolCallMatcher() *ToolCallMatcher + func (m *ToolCallMatcher) FilterRootEntries(entries []*models.ProcessedEntry) []*models.ProcessedEntry + func (m *ToolCallMatcher) MatchToolCalls(entries []*models.ProcessedEntry) error + type ToolProcessor struct + func GetToolProcessor() *ToolProcessor + func (tp *ToolProcessor) ProcessToolCall(toolCall *models.ToolCall) + func (tp *ToolProcessor) ProcessToolUseWithRegistry(toolUse map[string]interface{}) models.ToolCall