traceparse

package
v0.0.60 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpencodeToolActivity

func OpencodeToolActivity(part *OpencodeRunPart) *traceview.AgentTraceActivity

func RegisterAdapter

func RegisterAdapter(priority int, adapter AgentTraceAdapter)

Types

type AgentTraceAdapter

type AgentTraceAdapter interface {
	Name() string
	Parse(raw json.RawMessage) (traceview.AgentTraceParsedEvent, bool)
}

type OpencodePartState

type OpencodePartState struct {
	Status string         `json:"status"`
	Error  string         `json:"error,omitempty"`
	Title  string         `json:"title,omitempty"`
	Output string         `json:"output,omitempty"`
	Input  map[string]any `json:"input,omitempty"`
}

type OpencodeRunLine

type OpencodeRunLine struct {
	Type      string           `json:"type"`
	Timestamp int64            `json:"timestamp,omitempty"`
	SessionID string           `json:"sessionID,omitempty"`
	Part      *OpencodeRunPart `json:"part,omitempty"`
	Error     map[string]any   `json:"error,omitempty"`
}

type OpencodeRunPart

type OpencodeRunPart struct {
	ID     string             `json:"id"`
	Type   string             `json:"type"`
	Tool   string             `json:"tool,omitempty"`
	Text   string             `json:"text,omitempty"`
	CallID string             `json:"callID,omitempty"`
	State  *OpencodePartState `json:"state,omitempty"`
}

Jump to

Keyboard shortcuts

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