Documentation
¶
Overview ¶
Package nativetrace decodes bounded observations from an invocation-owned Codex trace.
Index ¶
- type Call
- type Cell
- func (c *Cell) Calls() []Call
- func (c *Cell) Commands(commands []commandanalysis.Command, workspace string) ([]binding.ToolResult, bool)
- func (c *Cell) Ended() bool
- func (c *Cell) ExecCommands() []string
- func (c *Cell) Patch(input string, occurrence int) (binding.ToolResult, bool)
- func (c *Cell) PatchPending(input string, occurrence int) bool
- func (c *Cell) Pending() bool
- func (c *Cell) ToolCalls() []string
- type Reader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Call ¶
type Call struct {
Tool, Input string
Command commandanalysis.Command
LocalEnvironment bool
Session string
}
Call contains decoded native invocation facts, not trace protocol payloads. LocalEnvironment is true only for a supported local command environment.
type Cell ¶
type Cell struct {
// contains filtered or unexported fields
}
Cell is a detached observation correlated by thread, outer call and source. Its methods do not refresh the reader or execute tools.
func (*Cell) Calls ¶
Calls returns call inputs in host dispatch order, including repeated occurrences.
func (*Cell) Commands ¶
func (c *Cell) Commands(commands []commandanalysis.Command, workspace string) ([]binding.ToolResult, bool)
Commands confirms each observed command by exactly one terminal host call. Any unobserved occurrence leaves the outcome unconfirmed.
func (*Cell) Ended ¶
Ended reports whether the host ended the outer cell, independently of its tools.
func (*Cell) ExecCommands ¶
ExecCommands lists an ended cell's nested exec_command calls.
func (*Cell) PatchPending ¶
PatchPending distinguishes an observed unfinished patch from an absent call.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader observes the private directory supplied to a Codex invocation. It owns no process, trace lifetime, capture policy or publication side effects.
func NewWithNotice ¶
NewWithNotice reports the first unsupported or discontinuous trace in an invocation.
func (*Reader) CommandTimeout ¶
CommandTimeout reads the original input by exact native thread/call identity. Missing or ambiguous input has no timeout label, including after fresh resume.