SuperCharge Claude Code v1.0.0 - Complete Customization Package
Features: - 30+ Custom Skills (cognitive, development, UI/UX, autonomous agents) - RalphLoop autonomous agent integration - Multi-AI consultation (Qwen) - Agent management system with sync capabilities - Custom hooks for session management - MCP servers integration - Plugin marketplace setup - Comprehensive installation script Components: - Skills: always-use-superpowers, ralph, brainstorming, ui-ux-pro-max, etc. - Agents: 100+ agents across engineering, marketing, product, etc. - Hooks: session-start-superpowers, qwen-consult, ralph-auto-trigger - Commands: /brainstorm, /write-plan, /execute-plan - MCP Servers: zai-mcp-server, web-search-prime, web-reader, zread - Binaries: ralphloop wrapper Installation: ./supercharge.sh
This commit is contained in:
32
plugins/claude-hud/dist/usage-api.d.ts
vendored
Normal file
32
plugins/claude-hud/dist/usage-api.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { UsageData } from './types.js';
|
||||
export type { UsageData } from './types.js';
|
||||
interface UsageApiResponse {
|
||||
five_hour?: {
|
||||
utilization?: number;
|
||||
resets_at?: string;
|
||||
};
|
||||
seven_day?: {
|
||||
utilization?: number;
|
||||
resets_at?: string;
|
||||
};
|
||||
}
|
||||
export type UsageApiDeps = {
|
||||
homeDir: () => string;
|
||||
fetchApi: (accessToken: string) => Promise<UsageApiResponse | null>;
|
||||
now: () => number;
|
||||
readKeychain: (now: number, homeDir: string) => {
|
||||
accessToken: string;
|
||||
subscriptionType: string;
|
||||
} | null;
|
||||
};
|
||||
/**
|
||||
* Get OAuth usage data from Anthropic API.
|
||||
* Returns null if user is an API user (no OAuth credentials) or credentials are expired.
|
||||
* Returns { apiUnavailable: true, ... } if API call fails (to show warning in HUD).
|
||||
*
|
||||
* Uses file-based cache since HUD runs as a new process each render (~300ms).
|
||||
* Cache TTL: 60s for success, 15s for failures.
|
||||
*/
|
||||
export declare function getUsage(overrides?: Partial<UsageApiDeps>): Promise<UsageData | null>;
|
||||
export declare function clearCache(homeDir?: string): void;
|
||||
//# sourceMappingURL=usage-api.d.ts.map
|
||||
Reference in New Issue
Block a user