event

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Kind           Kind            `json:"kind"`
	Agent          string          `json:"agent"`
	AgentSessionID string          `json:"agent_session_id,omitempty"`
	Worktree       string          `json:"worktree"`
	At             int64           `json:"at"`
	Prompt         string          `json:"prompt,omitempty"`
	ToolName       string          `json:"tool_name,omitempty"`
	ContextType    string          `json:"context_type,omitempty"`
	Text           string          `json:"text,omitempty"`
	Paths          []string        `json:"paths,omitempty"`
	Lines          *LineRange      `json:"lines,omitempty"`
	TranscriptPath string          `json:"transcript_path,omitempty"`
	GitSHA         string          `json:"git_sha,omitempty"`
	Raw            json.RawMessage `json:"raw,omitempty"`
}

func (Event) Sanitized

func (e Event) Sanitized() Event

type Kind

type Kind string
const (
	SessionStart Kind = "session_start"
	TurnStart    Kind = "turn_start"
	ToolEdit     Kind = "tool_edit"
	FileRead     Kind = "file_read"
	TurnContext  Kind = "turn_context"
	TurnEnd      Kind = "turn_end"
	SessionEnd   Kind = "session_end"
	GitCommit    Kind = "git_commit"
)

type LineRange

type LineRange struct {
	Start int `json:"start"`
	End   int `json:"end"`
}

Jump to

Keyboard shortcuts

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