MCPcopy Create free account
hub / github.com/codehamr/codehamr / BudgetStatus

Struct BudgetStatus

internal/cloud/cloud.go:56–59  ·  view source on GitHub ↗

BudgetStatus is the client's latest snapshot of server accounting. Set is false until the first cloud response, so zero values never render. Remaining is the pass fraction (1.0 = fresh, 0.0 = depleted).

Source from the content-addressed store, hash-verified

54// false until the first cloud response, so zero values never render. Remaining
55// is the pass fraction (1.0 = fresh, 0.0 = depleted).
56type BudgetStatus struct {
57 Set bool
58 Remaining float64
59}
60
61// FromHeaders reads the budget header. Missing (e.g. local Ollama) yields the
62// zero value and the UI skips the segment. Out-of-range values are clamped, not

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected