transcript

package
v0.0.156 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PluginCompliance

type PluginCompliance struct {
	CodeReviewer    bool `json:"code_reviewer"`
	SecurityAuditor bool `json:"security_auditor"`
}

PluginCompliance reports whether the required review plugins were dispatched and completed successfully.

type TranscriptSummary

type TranscriptSummary struct {
	// Session metadata.
	SessionID    string               `json:"session_id,omitempty"`
	Status       claude.ProcessStatus `json:"status"`
	MessageCount int                  `json:"message_count"`
	TotalCost    *float64             `json:"total_cost_usd"`
	ErrorMessage string               `json:"error,omitempty"`

	// Result summary.
	ResultText string `json:"result_text"`

	// Message type distribution (type -> count).
	MessageTypes map[string]int `json:"message_types,omitempty"`

	// Tool usage (tool name -> count).
	ToolCalls map[string]int `json:"tool_calls,omitempty"`

	// Model usage (model name -> count).
	ModelUsage map[string]int `json:"model_usage,omitempty"`

	// Token usage.
	TokenUsage *claude.TokenUsage `json:"token_usage,omitempty"`

	// GitHub PR URLs extracted from tool results.
	PRURLs []string `json:"pr_urls,omitempty"`

	// Subagent dispatches.
	SubagentCalls []claude.SubagentCall `json:"subagent_calls,omitempty"`

	// Error count and truncated error texts.
	ErrorCount int      `json:"error_count,omitempty"`
	ErrorTexts []string `json:"error_texts,omitempty"`

	// Plugin compliance check.
	PluginCompliance PluginCompliance `json:"plugin_compliance"`
}

TranscriptSummary aggregates all analysis results from a completed session. It covers the same sections as parse-transcript.py: session metadata, message distribution, tool/model/token usage, PR URLs, subagent dispatches, errors, and plugin compliance.

func Summarize

func Summarize(detail claude.ResultDetailInfo) TranscriptSummary

Summarize computes a TranscriptSummary from a ResultDetailInfo. It works for both live and archived (persisted) results.

Jump to

Keyboard shortcuts

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