codexsession

package
v0.1.0-rc.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const Vendor = "codex"

Variables

This section is empty.

Functions

This section is empty.

Types

type Report

type Report struct {
	Sessions         int                   `json:"sessions"`
	Rows             Rows                  `json:"rows"`
	Records          Records               `json:"records"`
	Tokens           Tokens                `json:"tokens"`
	UnsupportedTurns int                   `json:"unsupported_turns"`
	UnknownRecords   int                   `json:"unknown_records,omitempty"`
	Transcript       codextranscript.Shape `json:"transcript"`
	Notes            []string              `json:"notes,omitempty"`
}

Report accounts for every rollout record and every emitted graph row. UnknownRecords are records of a type the reader does not know, discarded.

func Build

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

Build maps one decoded root tree in memory. It returns a graph even when unsupported turns were found so the debug CLI can explain them; callers must refuse persistence unless the report is balanced and UnsupportedTurns is zero.

func BuildWith

BuildWith preserves the selected product's interpretation of agent reports and executable command evidence.

type Rows

type Tokens

type Tokens struct {
	Records             int `json:"records"`
	AssignedInvocations int `json:"assigned_invocations"`
	AmbiguousRows       int `json:"ambiguous_rows"`
	RepeatedTotals      int `json:"repeated_totals"`
}

Jump to

Keyboard shortcuts

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