mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## What changed - Make Summary the initial Analytics tab, showing profile identity, token totals, streaks, activity insights, and most-used plugins and skills. - Move daily, weekly, and cumulative token activity charts into Summary. Replace the usage menu's separate views with “View analytics”; `/usage weekly` and the other explicit modes open Summary with the requested view, while reopening from the menu retains navigation. - Load account profiles independently of other reports, preserve missing values separately from zero, and reject responses when the active account changes. Refresh retries profile failures. - Adapt Summary to narrow terminals and compact large chart totals and axis labels. Show the account email without its ID in the Analytics header. - Flush queued transcript history before opening an overlay so startup output stays in the transcript. ## Testing Add profile decoding and account identity tests, Summary layout and navigation snapshots, refresh and cancellation coverage, and regression tests for retained navigation and transcript history when opening Analytics. GitOrigin-RevId: 6dbe6c4c98209000d8b4bc18a4e01b98fab5991a
65 lines
2.5 KiB
Rust
65 lines
2.5 KiB
Rust
mod analytics_session;
|
|
mod client;
|
|
pub(crate) mod types;
|
|
|
|
pub use analytics_session::AnalyticsAccount;
|
|
pub use analytics_session::AnalyticsSession;
|
|
pub use client::AddCreditsNudgeCreditType;
|
|
pub use client::ChatgptThreadTurnCosts;
|
|
pub use client::ChatgptTurnCost;
|
|
pub use client::Client;
|
|
pub use client::RequestError;
|
|
pub use client::ThreadUsage;
|
|
pub use client::ThreadUsageBreakdownGroup;
|
|
pub use client::analytics::AnalyticsReport;
|
|
pub use client::analytics::AnalyticsResponse;
|
|
pub use client::profile::AccountProfile;
|
|
pub use client::profile::ProfileIdentity;
|
|
pub use client::profile::ProfileInvocation;
|
|
pub use client::profile::ProfileInvocationKind;
|
|
pub use client::profile::ProfileMetadata;
|
|
pub use client::profile::ProfileStats;
|
|
pub use client::turn_usage::ApiKeyResponseCost;
|
|
pub use client::turn_usage::ApiKeyTurnCost;
|
|
pub use client::turn_usage::ApiKeyTurnCostStatus;
|
|
pub use types::AccountEntry;
|
|
pub use types::AccountsCheckResponse;
|
|
pub use types::CodeTaskDetailsResponse;
|
|
pub use types::CodeTaskDetailsResponseExt;
|
|
pub use types::CodexUserSettingsResponse;
|
|
pub use types::CodexWorkspaceMessage;
|
|
pub use types::CodexWorkspaceMessageType;
|
|
pub use types::CodexWorkspaceMessagesResponse;
|
|
pub use types::ConfigBundleResponse;
|
|
pub use types::ConsumeRateLimitResetCreditCode;
|
|
pub use types::ConsumeRateLimitResetCreditResponse;
|
|
pub use types::DeliveredConfigToml;
|
|
pub use types::DeliveredManagedLayers;
|
|
pub use types::DeliveredRequirementsToml;
|
|
pub use types::DeliveredTomlFragment;
|
|
pub use types::PaginatedListTaskListItem;
|
|
pub use types::RateLimitResetCreditDetails;
|
|
pub use types::RateLimitResetCreditsDetails;
|
|
pub use types::RateLimitResetCreditsSummary;
|
|
pub use types::RateLimitsWithResetCredits;
|
|
pub use types::TaskListItem;
|
|
pub use types::TokenUsageProfile;
|
|
pub use types::TokenUsageProfileDailyBucket;
|
|
pub use types::TokenUsageProfileStats;
|
|
pub use types::TurnAttemptsSiblingTurnsResponse;
|
|
|
|
pub use client::plan_history::PlanLimitBreakdown;
|
|
pub use client::plan_history::PlanLimitDimension;
|
|
pub use client::plan_history::PlanLimitHistory;
|
|
pub use client::plan_history::PlanLimitPeriod;
|
|
pub use client::plan_history::PlanLimitValue;
|
|
|
|
pub use client::task_usage::TaskCredits;
|
|
pub use client::task_usage::TaskUsage;
|
|
pub use client::task_usage::TaskUsageAmounts;
|
|
pub use client::task_usage::TaskUsageGroup;
|
|
pub use client::task_usage::TaskUsageResponse;
|
|
pub use client::task_usage::TaskUsageStatus;
|
|
pub use client::task_usage::TaskUsageThread;
|
|
pub use codex_backend_openapi_models::models::analytics as analytics_models;
|