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 | * Resource Monitor |
| #3 | * |
| #4 | * Continuously monitors the automaton's resources and triggers |
| #5 | * survival mode transitions when needed. |
| #6 | */ |
| #7 | import type { AutomatonDatabase, ClawdRuntimeClient, AutomatonIdentity, FinancialState, SurvivalTier } from "../types.js"; |
| #8 | export interface ResourceStatus { |
| #9 | financial: FinancialState; |
| #10 | tier: SurvivalTier; |
| #11 | previousTier: SurvivalTier | null; |
| #12 | tierChanged: boolean; |
| #13 | sandboxHealthy: boolean; |
| #14 | } |
| #15 | /** |
| #16 | * Check all resources and return current status. |
| #17 | */ |
| #18 | export declare function checkResources(identity: AutomatonIdentity, runtime: ClawdRuntimeClient, db: AutomatonDatabase): Promise<ResourceStatus>; |
| #19 | /** |
| #20 | * Generate a human-readable resource report. |
| #21 | */ |
| #22 | export declare function formatResourceReport(status: ResourceStatus): string; |
| #23 | //# sourceMappingURL=monitor.d.ts.map |