MCPcopy Index your code
hub / github.com/BlockRunAI/ClawRouter / SpendControlStorage

Interface SpendControlStorage

src/spend-control.ts:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64export interface SpendControlStorage {
65 load(): { limits: SpendLimits; history: SpendRecord[] } | null;
66 save(data: { limits: SpendLimits; history: SpendRecord[] }): void;
67}
68
69export class FileSpendControlStorage implements SpendControlStorage {
70 private readonly spendingFile: string;

Callers 2

loadMethod · 0.65
saveMethod · 0.65

Implementers 3

FileSpendControlStoragesrc/spend-control.ts
InMemorySpendControlStoragesrc/spend-control.ts
SpendControlsrc/spend-control.ts

Calls

no outgoing calls

Tested by

no test coverage detected