claudesession

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Vendor = "claude_code"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Profile traceprocessing.MappingProfile
	Survey  bool
}

BuildOptions preserves product-specific interpretation independently from the optional transcript-shape diagnostic. Its zero value keeps local mapping.

type Lines

Lines accounts for the lines read, one bucket each.

type Report

type Report struct {
	Sessions   int                    `json:"sessions"`
	Rows       Rows                   `json:"rows"`
	Lines      Lines                  `json:"lines"`
	Transcript claudetranscript.Shape `json:"transcript"`
	Notes      []string               `json:"notes,omitempty"`
}

Report says what a transcript tree became, and what it did not.

func Build

func Build(tree *claudetranscript.Tree) (*session.Graph, *Report, error)

Build maps a transcript tree into one session tree.

func BuildWith

func BuildWith(tree *claudetranscript.Tree, opts BuildOptions) (*session.Graph, *Report, error)

type Rows

type Rows struct {
	UserInputs        int `json:"user_inputs"`
	ModelInvocations  int `json:"model_invocations"`
	AssistantMessages int `json:"assistant_messages"`
	ToolUses          int `json:"tool_uses"`
	ToolResults       int `json:"tool_results"`
	FileTouches       int `json:"file_touches"`
	Attributes        int `json:"session_attributes"`
	VendorIDs         int `json:"vendor_ids"`
}

Jump to

Keyboard shortcuts

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