repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | /** |
| #2 | * CLAWD Credits Management |
| #3 | * |
| #4 | * Monitors the automaton's compute credit balance and triggers |
| #5 | * survival mode transitions. |
| #6 | */ |
| #7 | import type { ClawdRuntimeClient, FinancialState, SurvivalTier, AutomatonDatabase } from "../types.js"; |
| #8 | /** |
| #9 | * Check the current financial state of the automaton. |
| #10 | */ |
| #11 | export declare function checkFinancialState(runtime: ClawdRuntimeClient, usdcBalance: number): Promise<FinancialState>; |
| #12 | /** |
| #13 | * Determine the survival tier based on current credits. |
| #14 | */ |
| #15 | export declare function getSurvivalTier(creditsCents: number): SurvivalTier; |
| #16 | /** |
| #17 | * Format a credit amount for display. |
| #18 | */ |
| #19 | export declare function formatCredits(cents: number): string; |
| #20 | /** |
| #21 | * Log a credit check to the database. |
| #22 | */ |
| #23 | export declare function logCreditCheck(db: AutomatonDatabase, state: FinancialState): void; |
| #24 | //# sourceMappingURL=credits.d.ts.map |