Documentation
¶
Index ¶
- Constants
- func Execute(ctx context.Context, args []string, stdout, stderr io.Writer, ...) error
- func ExitStatus(err error) (int, bool)
- func IsCommand(value string) bool
- func ParseDirList(value string) []string
- func ResolveDirs(explicit []string, environment string) []string
- func ValidateAgentDirs(agent string, claudeDirs, codexDirs []string) error
- type Compact
- type Cost
- type DirList
- type ErrorCandidate
- type ErrorDetail
- type ErrorResponse
- type Event
- type EventCost
- type EventRecord
- type EventTool
- type EventUsage
- type ExitError
- type HitEvent
- type HitSession
- type ListPage
- type ListResponse
- type Options
- type RawRecord
- type RawResponse
- type Registry
- type RegistryFactory
- type ScopedCost
- type ScopedTokens
- type SearchHit
- type SearchPage
- type SearchResponse
- type Session
- type ShowPage
- type ShowResponse
- type ShowTotals
- type TokenTotals
- type Warning
Constants ¶
View Source
const SchemaVersion = 1
Variables ¶
This section is empty.
Functions ¶
func ExitStatus ¶
func ParseDirList ¶ added in v0.3.0
func ResolveDirs ¶ added in v0.3.0
func ValidateAgentDirs ¶ added in v0.3.0
Types ¶
type ErrorCandidate ¶
type ErrorDetail ¶
type ErrorDetail struct {
Code string `json:"code"`
Message string `json:"message"`
Candidates []ErrorCandidate `json:"candidates,omitempty"`
}
type ErrorResponse ¶
type ErrorResponse struct {
SchemaVersion int `json:"schema_version"`
Error ErrorDetail `json:"error"`
}
type Event ¶
type Event struct {
Index int `json:"index"`
Timestamp string `json:"timestamp"`
Kind string `json:"kind"`
Text string `json:"text"`
Model string `json:"model"`
Tool *EventTool `json:"tool,omitempty"`
Usage *EventUsage `json:"usage,omitempty"`
Cost *EventCost `json:"cost,omitempty"`
Truncated []string `json:"truncated"`
Record *EventRecord `json:"record,omitempty"`
Harness bool `json:"harness,omitempty"`
SubagentRef string `json:"subagent_ref,omitempty"`
Compact *Compact `json:"compact,omitempty"`
}
type EventRecord ¶
type EventUsage ¶
type ExitError ¶
type ExitError struct {
Status int
Detail ErrorDetail
}
type HitSession ¶
type ListResponse ¶
type RawResponse ¶
type ScopedCost ¶
type ScopedTokens ¶
type ScopedTokens struct {
Self TokenTotals `json:"self"`
Descendants TokenTotals `json:"descendants"`
Total TokenTotals `json:"total"`
}
type SearchPage ¶
type SearchPage struct {
Offset int `json:"offset"`
Limit int `json:"limit"`
Returned int `json:"returned"`
HasMore bool `json:"has_more"`
NextOffset int `json:"next_offset"`
Complete bool `json:"complete"`
Total *int `json:"total,omitempty"`
SessionsScanned int `json:"sessions_scanned"`
SessionsMatched int `json:"sessions_matched"`
}
type SearchResponse ¶
type SearchResponse struct {
SchemaVersion int `json:"schema_version"`
Command string `json:"command"`
Hits []SearchHit `json:"hits"`
Page SearchPage `json:"page"`
Warnings []Warning `json:"warnings"`
}
type Session ¶
type Session struct {
Ref string `json:"ref"`
Agent string `json:"agent"`
Project string `json:"project"`
CWD string `json:"cwd"`
Title string `json:"title"`
GitBranch string `json:"git_branch"`
Models []string `json:"models"`
StartedAt string `json:"started_at"`
UpdatedAt string `json:"updated_at"`
Messages int `json:"messages"`
Subagents int `json:"subagents"`
HasError bool `json:"has_error"`
Tokens TokenTotals `json:"tokens"`
Cost Cost `json:"cost"`
Path string `json:"path"`
}
type ShowResponse ¶
type ShowResponse struct {
SchemaVersion int `json:"schema_version"`
Command string `json:"command"`
Session Session `json:"session"`
SubagentRefs []string `json:"subagent_refs"`
Totals ShowTotals `json:"totals"`
Events []Event `json:"events"`
Page ShowPage `json:"page"`
Warnings []Warning `json:"warnings"`
}
type ShowTotals ¶
type ShowTotals struct {
Tokens ScopedTokens `json:"tokens"`
Cost ScopedCost `json:"cost"`
}
type TokenTotals ¶
Click to show internal directories.
Click to hide internal directories.