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

Method constructor

src/spend-control.ts:166–170  ·  view source on GitHub ↗
(options?: SpendControlOptions)

Source from the content-addressed store, hash-verified

164 private readonly now: () => number;
165
166 constructor(options?: SpendControlOptions) {
167 this.storage = options?.storage ?? new FileSpendControlStorage();
168 this.now = options?.now ?? (() => Date.now());
169 this.load();
170 }
171
172 setLimit(window: SpendWindow, amount: number): void {
173 if (!Number.isFinite(amount) || amount <= 0) {

Callers

nothing calls this directly

Calls 1

loadMethod · 0.95

Tested by

no test coverage detected