Documentation
¶
Overview ¶
Package system provides system utility commands (ls, grep, find, tree, wc, watch, read, search, log, deps, clean, ccusage, discover, tee, profile).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CcusagePeriod ¶
type CcusagePeriod struct {
Key string `json:"key"`
InputTokens uint64 `json:"inputTokens"`
OutputTokens uint64 `json:"outputTokens"`
CacheCreationTokens uint64 `json:"cacheCreationTokens"`
CacheReadTokens uint64 `json:"cacheReadTokens"`
TotalTokens uint64 `json:"totalTokens"`
TotalCost float64 `json:"totalCost"`
}
CcusagePeriod represents usage data for a time period.
type DiscoverResult ¶
type DiscoverResult struct {
Project string `json:"project,omitempty"`
TotalCommands int `json:"total_commands"`
MissedSavings int `json:"missed_savings"`
Opportunities []DiscoveredCommand `json:"opportunities"`
UnsupportedCmds []DiscoveredCommand `json:"unsupported_commands,omitempty"`
}
DiscoverResult represents the discovery results
type DiscoveredCommand ¶
type DiscoveredCommand struct {
Command string `json:"command"`
Count int `json:"count"`
Category string `json:"category"`
CouldSave bool `json:"could_save"`
SavingsPct float64 `json:"savings_percent,omitempty"`
TokensSaved int `json:"tokens_saved,omitempty"`
Example string `json:"example,omitempty"`
}
DiscoveredCommand represents a discovered command pattern
Click to show internal directories.
Click to hide internal directories.