app

package
v0.0.0-...-84676b8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: MIT Imports: 66 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

func Run

func Run(args []string) error

Run executes the command-line application with args.

Types

type Account

type Account struct {
	// contains filtered or unexported fields
}

type AccountSnapshot

type AccountSnapshot struct {
	Turns              int64
	Limited            int64
	WSOpen             int64
	Activity           []int64
	APICostNanoDollars int64
	UnpricedResponses  int64
}

type Event

type Event struct {
	At      time.Time `json:"at"`
	Kind    string    `json:"kind"`
	Account string    `json:"account"`
	Detail  string    `json:"detail"`
	// contains filtered or unexported fields
}

type ModelCostSnapshot

type ModelCostSnapshot struct {
	Model              string
	APICostNanoDollars int64
	UnpricedResponses  int64
}

type MonthCostSnapshot

type MonthCostSnapshot struct {
	Month              time.Month
	APICostNanoDollars int64
	UnpricedResponses  int64
	ModelCosts         []ModelCostSnapshot
}

type Pool

type Pool struct {
	// contains filtered or unexported fields
}

type Snapshot

type Snapshot struct {
	Uptime             time.Duration
	Turns              int64
	Failures           int64
	Limited            int64
	TTFB               time.Duration
	WSOpen             int64
	MonthlyUsage       responseUsage
	APICostNanoDollars int64
	UnpricedResponses  int64
	ModelCosts         []ModelCostSnapshot
	LastMonth          MonthCostSnapshot
	PriceFetchedAt     time.Time
	Accounts           map[string]AccountSnapshot
	Threads            []ThreadSnapshot
	Events             []Event
}

type StateStore

type StateStore struct {
	// contains filtered or unexported fields
}

func (*StateStore) Close

func (s *StateStore) Close() error

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

type ThreadSnapshot

type ThreadSnapshot struct {
	Key          string `json:"key"`
	ClientIP     string `json:"-"`
	APIKeySuffix string `json:"-"`

	Account string `json:"account"`
	Model   string `json:"model"`

	Effort      string    `json:"reasoning_effort"`
	ServiceTier string    `json:"service_tier"`
	Via         transport `json:"via"`
	Metadata    turnMetadata
	Turns       int64 `json:"turns"`
	Compactions int64 `json:"compactions"`
	Usage       responseUsage
	LatestUsage responseUsage

	TTFB    time.Duration
	Latency time.Duration
	Last    time.Time `json:"last"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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