100 Commits
Author SHA1 Message Date
LTbinglingfeng c595ada80d feat(antigravity): add subscription management with UI integration and localization support 2026-06-17 13:14:04 +08:00
LTbinglingfeng e95cc2b621 feat(quota): enhance quota management with new data structures and improved UI components 2026-06-17 12:30:03 +08:00
LTbinglingfeng 227a5679ad refactor(plugin): add support for plugin feature detection and routing 2026-06-13 04:31:20 +08:00
LTbinglingfeng cd44dca9c0 refactor(utils): share isRecord and getErrorMessage helpers
isRecord was declared locally in 15 modules (with two divergent shapes) and getErrorMessage in 7. Move a single canonical pair into utils/helpers and import it everywhere. The shared isRecord excludes arrays; the call sites that previously allowed them only read named properties, so behavior is unchanged.
2026-06-13 02:11:21 +08:00
LTbinglingfeng 07cdc5a8c4 refactor(storage): remove unused helpers and legacy aliases
clear()/hasItem() and the secureStorage/encryptData/decryptData/isEncrypted aliases had no callers. migratePlaintextKeys now reuses isObfuscated instead of duplicating the prefix literal.
2026-06-13 02:04:45 +08:00
LTbinglingfeng f3959a0b19 feat(quota): implement manual quota reset functionality with confirmation and UI updates 2026-06-12 17:26:23 +08:00
LTbinglingfeng 67c4041939 feat(quota): add subscription expiry handling and improve UI elements 2026-06-12 17:03:19 +08:00
LTbinglingfeng 73066b517c feat(i18n): update provider keys detail and add duplicate alias message in multiple locales
feat(authFiles): refactor OAuth provider handling and improve alias validation

feat(config): implement unsaved changes guard in ConfigPage

feat(dashboard): extend provider stats to include vertex and ampcode

fix(logs): enhance incremental log merging and improve error handling

feat(system): format build time display using utility functions

feat(api): normalize OAuth provider keys in authFiles API

feat(provider): update OpenAI provider deletion method to use index

feat(format): add date formatting utilities for better date handling
2026-06-10 16:17:40 +08:00
hkfires 8eada1cd2c feat(logs): enhance logging functionality and UI updates
- Refactored MainLayout to always show logs in the sidebar.
- Updated i18n files for English, Russian, Simplified Chinese, and Traditional Chinese to include new log-related messages.
- Improved LogsPage styling for better layout and added runtime notices.
- Enhanced LogsPage logic to handle different server runtime kinds (CPA and Home).
- Added new API methods to handle logs fetching and request log downloading with runtime checks.
- Introduced runtime kind detection during authentication and connection status updates.
- Updated types to include server runtime kind and adjusted API responses accordingly.
2026-06-02 16:52:14 +08:00
LTbinglingfeng 9a5c2b0ea4 feat: add xAI/Grok quota management
- Introduced new quota management for xAI/Grok, including types, API calls, and UI components.
- Added localization support for xAI quota in English, Russian, Chinese (Simplified and Traditional).
- Updated styles for xAI quota cards and sections.
- Integrated xAI quota fetching and rendering logic into existing quota management system.
- Enhanced auth file handling to support xAI files.
2026-05-24 01:08:04 +08:00
LTbinglingfeng 0fa6b741b2 chore: remove unused hooks and utils 2026-05-21 01:29:27 +08:00
LTbinglingfeng eab19952e0 fix(routes): strictly parse provider edit indexes 2026-05-20 01:29:55 +08:00
LTbinglingfeng 57eeff505f feat: add support for xAI provider with OAuth integration and localization 2026-05-17 02:46:05 +08:00
Supra4E8C 011cd3b106 refactor: update provider stats functions to use total stats and improve type definitions 2026-05-02 04:15:26 +08:00
Supra4E8C 632be0bbe0 refactor: remove unused chart configuration and latency utilities
- Deleted chartConfig.ts and its exports from index.ts, as they are no longer needed.
- Removed latency.ts and its related functions for latency statistics and formatting.
- Cleaned up usageIndex.ts by removing functions related to indexing usage details, as they are not in use.
2026-05-02 03:41:14 +08:00
Supra4E8C b25f722fef Refactor provider usage tracking to utilize recent requests data
- Introduced `useProviderRecentRequests` hook to manage recent request data for providers.
- Replaced usage of `useProviderStats` with `useProviderRecentRequests` in relevant components.
- Updated `VertexSection` and other provider components to consume recent request data instead of key stats.
- Removed obsolete `useProviderStats` hook and related usage details.
- Added new utility functions for handling recent request data, including normalization and aggregation.
- Updated API service to fetch recent request usage data.
- Refactored `AuthFileCard` and related components to utilize recent request statistics.
- Cleaned up unused code and types related to previous usage stats implementation.
2026-05-02 02:53:15 +08:00
Supra4E8C 808f44dd9c fix: remove total latency references from ModelStatsCard and localization files 2026-04-30 01:21:21 +08:00
vvrf de97726d3c feat: show thinking intensity in request events 2026-04-25 08:35:18 +08:00
Supra4E8C a28920de94 feat: enhance source information handling and disambiguation in usage components 2026-04-18 23:34:40 +08:00
Supra4E8C a1401d40c0 feat: enhance usage tracking with auth index support across providers 2026-04-18 18:14:22 +08:00
Supra4E8C cf41ca3edb Merge pull request #216 from CtriXin/fix/usage-rfc3339-nanoseconds
fix(usage): normalize high-precision RFC3339 timestamps
2026-04-17 23:17:07 +08:00
Supra4E8C 18544b79f9 fix(i18n): map zh-HK and zh-MO to zh-TW 2026-04-17 23:16:02 +08:00
Supra4E8C fa01f2a395 Merge pull request #206 from lmanchu/feat/add-zh-TW-locale
feat(i18n): add Traditional Chinese (Taiwan) locale (zh-TW)
2026-04-17 23:11:05 +08:00
xin 0c39e8d16f fix(usage): handle Date inputs in timestamp parser 2026-04-15 19:55:50 +08:00
xin 496f9900c6 fix(usage): normalize high-precision RFC3339 timestamps 2026-04-15 19:12:48 +08:00
Supra4E8C 70a12bba4f fix(oauth): remove qwen oauth card 2026-04-14 23:22:20 +08:00
lmanchuandlmanchu 30f14500c8 feat(i18n): add Traditional Chinese (Taiwan) locale
Add zh-TW as a new supported language, covering all 1500+ translation keys
with Taiwan-standard terminology and phrasing.

Changes:
- src/i18n/locales/zh-TW.json: new file, full Traditional Chinese translation
- src/i18n/index.ts: import and register zh-TW locale
- src/types/common.ts: add 'zh-TW' to Language union type
- src/utils/constants.ts: add zh-TW to LANGUAGE_ORDER and LANGUAGE_LABEL_KEYS
- src/utils/language.ts: add zh-tw/zh-hant browser locale detection
- src/i18n/locales/*.json: add chinese_tw label key to all locales

Co-authored-by: lmanchu <lman.chu@gmail.com>
2026-04-12 14:15:46 +08:00
Supra4E8C 62cc7cc92d fix(usage): match non-standard source ids
Include normalizeUsageSourceId(apiKey) in candidate ids so provider stats can match usage rows when source is classified as text (issue #198).
2026-04-11 23:35:47 +08:00
Supra4E8C 74d9adc5fb feat: add latency tracking and display enhancements across usage components 2026-04-11 13:34:15 +08:00
Michael d84cf61915 feat: improve usage latency formatting 2026-04-05 11:14:46 +08:00
Michael 13a0283e00 feat(usage): show request time in usage stats 2026-04-05 01:36:36 +08:00
Supra4E8C 73e260c37f perf(ai-providers): lighten dirty checks for edits 2026-04-03 01:32:49 +08:00
Supra4E8C 4d3bd279a0 fix(usage): resolve nullable merge in index 2026-04-03 01:32:35 +08:00
Supra4E8C f8455dcdb8 perf(usage): streamline pre-index collection 2026-04-03 00:54:09 +08:00
Supra4E8C 6637bc70a0 perf(ai-providers): index usage details by source 2026-04-02 23:58:48 +08:00
Supra4E8C 4b28d8a496 refactor(auth-files): replace regex search with wildcard matching 2026-03-28 02:40:27 +08:00
Supra4E8C 135619ff49 feat(AuthFilesPage): add regex search mode with validation and toggle
feat(i18n): update search placeholders and error messages for regex support
feat(uiState): include regex search mode in AuthFiles UI state
feat(regexSafety): implement regex safety check to prevent catastrophic backtracking
2026-03-28 01:52:55 +08:00
Supra4E8C 75f4c7cd1a chore(storage): clarify local storage is obfuscation 2026-03-27 22:06:45 +08:00
Supra4E8C 163c1ac29d fix(openai): treat Authorization header as case-insensitive 2026-03-27 22:03:57 +08:00
Supra4E8C bf8dafcab5 feat(styles): update card background gradients and synchronize theme colors 2026-03-22 23:38:27 +08:00
Supra4E8C 6d91cd0c06 fix(quota): avoid blocking gemini cli quota refresh on code assist 2026-03-17 00:46:32 +08:00
Supra4E8C ccf90f88dd feat(quota): restore Claude plan detection via profile API 2026-03-07 15:48:03 +08:00
Supra4E8C 62587c9a83 feat(quota): sync antigravity groups with latest usage models
drop deprecated 4.5/3-pro-image mappings

add Gemini 3.1 Pro Series group and new model ids

support nested body payload parsing for antigravity usage responses
2026-02-28 14:23:30 +08:00
Supra4E8C 72c0ef07ed fix(quota): localize kimi quota fallback labels and reset hint 2026-02-24 18:07:56 +08:00
Supra4E8C dc941f6857 feat(quota): add Kimi quota management with auth file inline viewing 2026-02-24 17:54:35 +08:00
Supra4E8C 19532064da fix(usage): stabilize dashboard metrics and reduce repeated parsing 2026-02-22 18:48:01 +08:00
Supra4E8C d64780f6db fix(quota): update Gemini Pro Series model id to gemini-3.1 format 2026-02-22 16:35:47 +08:00
Supra4E8C b363edc9bd refactor(source): extract resolveSourceDisplay 2026-02-22 16:08:06 +08:00
Supra4E8C c25e7556ed refactor(source): extract buildSourceInfoMap 2026-02-22 16:08:06 +08:00
Supra4E8C c9e0c5d73e refactor(usage): centralize normalizeAuthIndex 2026-02-22 16:08:06 +08:00