Documentation
¶
Overview ¶
Package transcript reads the few facts the status line takes from a session transcript.
Transcripts can be enormous, so only the first and last few lines are read, each within a byte bound.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
type Info struct {
// ActualModel is the model of the latest assistant turn in the last 200 lines.
ActualModel string
// Boot is the prompt size of the first assistant turn.
Boot int64
// SkillsChars is the length of the first skill listing.
SkillsChars int
// SkillsBare and SkillsTotal count the skills in the initial listing that lost their description, and all listed.
SkillsBare, SkillsTotal int
// MemDropped reports a SessionStart hook whose output was too large to inject.
MemDropped bool
// SubBare and SubTotal are the same counts for the subagent with the most stripped skills.
SubBare, SubTotal int
}
Info is what a transcript reveals; every field is zero when it is absent or unreadable.
func Read ¶
Read gathers Info from the transcript at path. An empty path or any read error yields the zero Info.
func (*Info) BootTokens ¶
BootTokens is the prompt size of the first assistant turn.
func (*Info) LatestModel ¶
LatestModel is the model of the latest assistant turn in the last 200 lines.
func (*Info) MemoryDropped ¶
MemoryDropped reports a SessionStart hook whose output was too large to inject.
func (*Info) SkillCounts ¶
SkillCounts is how many skills in the initial listing lost their description, and how many are listed.
func (*Info) SkillListChars ¶
SkillListChars is the length of the first skill listing.
func (*Info) SubagentSkillCounts ¶
SubagentSkillCounts is the same for the subagent with the most stripped skills.