mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-01 20:23:36 +00:00
refactor: remove Codex credits handling from services and UI components
- Eliminated CodexCreditsSnapshot interface and related logic from CodexUsageService and UI components. - Updated CodexUsageSection to display only plan type, removing credits information for a cleaner interface. - Streamlined Codex usage formatting functions by removing unused credit formatting logic. These changes simplify the Codex usage management by focusing on plan types, enhancing clarity and maintainability.
This commit is contained in:
@@ -55,7 +55,6 @@ export interface AppServerRateLimitsResponse {
|
||||
export interface AppServerRateLimits {
|
||||
primary: AppServerRateLimitWindow | null;
|
||||
secondary: AppServerRateLimitWindow | null;
|
||||
credits?: AppServerCredits;
|
||||
planType?: string;
|
||||
}
|
||||
|
||||
@@ -65,12 +64,6 @@ export interface AppServerRateLimitWindow {
|
||||
resetsAt: number;
|
||||
}
|
||||
|
||||
export interface AppServerCredits {
|
||||
hasCredits: boolean;
|
||||
unlimited: boolean;
|
||||
balance: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generic JSON-RPC request structure
|
||||
*/
|
||||
|
||||
@@ -40,7 +40,6 @@ export type {
|
||||
AppServerRateLimitsResponse,
|
||||
AppServerRateLimits,
|
||||
AppServerRateLimitWindow,
|
||||
AppServerCredits,
|
||||
JsonRpcRequest,
|
||||
JsonRpcResponse,
|
||||
} from './codex-app-server.js';
|
||||
|
||||
Reference in New Issue
Block a user