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

Method setLimit

src/spend-control.ts:172–178  ·  view source on GitHub ↗
(window: SpendWindow, amount: number)

Source from the content-addressed store, hash-verified

170 }
171
172 setLimit(window: SpendWindow, amount: number): void {
173 if (!Number.isFinite(amount) || amount <= 0) {
174 throw new Error("Limit must be a finite positive number");
175 }
176 this.limits[window] = amount;
177 this.save();
178 }
179
180 clearLimit(window: SpendWindow): void {
181 delete this.limits[window];

Callers 1

Calls 1

saveMethod · 0.95

Tested by

no test coverage detected