Commit Graph
1258 Commits
Author SHA1 Message Date
Supra4E8C 5aa1ad64a6 feat(i18n): add usage breakdown label for shared quota in Korean locale v1.25.6 2026-10-08 16:55:25 +08:00
Supra4E8C 346eaa2367 feat(i18n): add cloud session credits label to Vietnamese locale 2026-10-08 16:54:38 +08:00
☁️dungsil f03160ef43 feat(i18n): add Korean locale (#484) 2026-10-08 16:52:37 +08:00
Supra4E8C 77f10d5949 feat(quota): update xAI quota rendering to show shared usage breakdown and adjust related tests 2026-10-08 16:43:33 +08:00
Supra4E8C ebb4289bc6 feat(github): add GitHub token configuration with localization and tests v1.25.5 2026-10-08 00:56:25 +08:00
Supra4E8C 2ce627defa feat(claude): add ClaudeResetGrantDetails component and related tests; update styles and translations 2026-10-07 23:49:59 +08:00
whale 715cab426f fix(claude): label the dollar-denominated legacy window as cloud session credits (#466)
* fix(claude): label the dollar-denominated legacy window as cloud session credits

* fix(claude): treat remaining_dollars as a credit pool marker
2026-10-07 23:40:51 +08:00
Supra4E8C 18ca877f83 feat(codex): implement cooldown reset logic and add related tests 2026-10-07 23:28:48 +08:00
Supra4E8C 66cafd727c feat(i18n): integrate i18next for localization in provider model options tests 2026-10-07 20:13:34 +08:00
Supra4E8C efe96bff0f refactor: remove testModel field from models and update related logic 2026-10-07 20:05:48 +08:00
Supra4E8C 6abace9ffb Implement feature X to enhance user experience and fix bug Y in module Z v1.25.4 2026-10-07 01:34:06 +08:00
Supra4E8C 936b5eba74 Add Vietnamese locale tests and update existing tests for localization
- Introduced a new test suite for the Vietnamese locale to ensure all English keys are covered with matching interpolation tokens.
- Updated the ApiKeyStrengthMeter and configUiState tests to utilize the LANGUAGE_ORDER constant for locale management.
- Enhanced test descriptions for clarity regarding supported locales.
2026-10-07 01:14:28 +08:00
Supra4E8C bb324614ff fix(config): point migrated OAuth settings at upstream.* paths
Backend config_v8.go relocated shared provider behavior out of
oauth.providers.* to upstream.* (v8SharedPaths): Codex cloaking,
model-level cooling, stream bootstrap, orphan delegation and response
steering; Claude model-level cooling, cloak mode, cloaking model list
and header-defaults; and xAI inject-x-search. Read and write the
canonical paths so the panel reflects the values the runtime actually
applies; the backend still accepts and migrates legacy spellings.

OAuth-only fields (Codex live-media-relay and header-defaults,
Antigravity, aistudio, devin) keep their oauth.providers.* paths.
2026-10-07 01:11:24 +08:00
Supra4E8C 3a71fcf8d5 fix(config): read/write optimize-multi-agent-v2 at canonical client path
The backend migrated oauth.providers.codex.optimize-multi-agent-v2 to
client.codex.optimize-multi-agent-v2 (v8ClientPaths in config_v8.go).
The visual editor still read the historical path, so toggling
"Optimize multi-agent v2" saved but reverted to off after refresh —
and when client.codex already held false, writes to the stale alias
could never enable the feature.

Point the addition field and its search yamlKeys at the canonical
client.codex path; the backend normalizes any remaining legacy keys on
save.

Fixes router-for-me/Cli-Proxy-API-Management-Center#472
2026-10-07 01:10:23 +08:00
fc9b8e2d40 feat(i18n): add Vietnamese (vi) locale (#382)
Add a complete Vietnamese translation for the Management Center UI:

- src/i18n/locales/vi.json: full translation of all 1540 keys from
  en.json, with all interpolation placeholders preserved
- src/i18n/index.ts: register the vi resource bundle
- src/types/common.ts: extend the Language type with 'vi'
- src/utils/constants.ts: add 'vi' to LANGUAGE_ORDER and
  LANGUAGE_LABEL_KEYS
- src/utils/language.ts: auto-detect vi-* browser languages
- locales/{en,zh-CN,zh-TW,ru}.json: add the Tiếng Việt label so the
  new language appears in every language switcher

Tested by building with vite and deploying the bundle against a live
CLIProxyAPI v7.2.133 server; vi-* browsers resolve to the Vietnamese
UI and all strings render with correct placeholders.

Co-authored-by: nguyenha935 <nguyenha935@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-10-05 03:01:41 +08:00
whale dfc1b1cfaa fix(i18n): keep Claude and Antigravity plan names untranslated in Chinese locales (#464)
* fix(i18n): show the Claude Pro plan as Pro in Chinese locales

* fix(i18n): keep Free and Team plan names untranslated in Chinese locales
2026-10-05 02:39:34 +08:00
Supra4E8C ee79a79452 feat: update plan names to Pro 200 and Pro 100 across locales and tests v1.25.3 2026-10-03 15:57:46 +08:00
Supra4E8C 673b8ee9f6 feat: add getPluginLogo utility and corresponding tests for plugin logo resolution 2026-10-02 00:09:08 +08:00
Supra4E8C 752e0ee772 chore: remove demo files and related test cases for Claude reset functionality v1.25.2 2026-10-01 22:17:34 +08:00
Supra4E8C e5fb14c876 feat: implement Claude reset grants functionality with demo and tests 2026-10-01 22:16:26 +08:00
Supra4E8C d554bb0983 feat: add Claude reset grants functionality
- Implemented ClaudeResetGrants component to manage reset grants for Claude usage.
- Integrated reset grant operations with session management and eligibility checks.
- Added API service for reading and claiming reset grants from the Anthropic API.
- Enhanced UI with localized messages for reset grant actions.
- Created tests for grant parsing, claiming, and session handling to ensure reliability.
2026-10-01 21:58:20 +08:00
Supra4E8C a7ec312fbb fix(docs): update README and README_CN for clarity and consistency v1.25.1 2026-10-01 02:33:22 +08:00
Supra4E8C f1ee52cfe5 fix(config): preserve untouched duration fallback values 2026-10-01 02:23:59 +08:00
Supra4E8C 82711432b3 fix(config): match backend YAML boolean semantics 2026-10-01 02:22:42 +08:00
Supra4E8C 20b2372acf fix(config): store API key names by non-reversible fingerprint 2026-10-01 02:21:21 +08:00
Supra4E8C 066afcbe91 Merge remote-tracking branch 'origin/main' into dev 2026-10-01 01:40:10 +08:00
giovannircoandSupra4E8C 69ebed4f3f Show the Grok subscription on the xAI quota card (#451)
* feat(quota): show the Grok subscription on the xAI card

The billing payload has no plan name. The display name comes from
Grok settings and the tier from the user subscription include.

* Refactor provider credential weight normalization tests and update API key structure

- Updated test cases in `providerWeightTransformers.test.ts` to reflect changes in API key structure from 'api-key-entries' to 'keys'.
- Introduced new tests in `providerWorkbenchUi.test.ts` to verify the editing surface of provider workbench.
- Modified `sponsorCustomEndpoint.test.ts` to adapt to the new API key structure.
- Adjusted `visualConfigAntigravitySensitiveWords.test.ts` and `visualConfigConcurrency.test.ts` to accommodate new YAML structure for sensitive words and concurrency settings.
- Enhanced `visualConfigDefaults.test.ts` to ensure proper handling of boolean defaults and YAML structure.
- Updated `visualConfigDevinSensitiveWords.test.ts` to reflect changes in the YAML structure for sensitive words.
- Refined `visualConfigDisableImageGeneration.test.ts` to align with new multimedia settings.
- Added comprehensive tests in `visualConfigV8.test.ts` to validate the v8 visual config contract and ensure scalar read/write path parity.
- Improved validation tests in `visualConfigValidation.test.ts` to handle new routing and requests structure.
- Cleaned up `xaiApiKeyProvider.test.ts` by removing unnecessary API client mocks and focusing on normalization of the xAI API key contract.

* fix(config): prevent v8 configuration mutation regressions

* feat(proxy): add proxyUrl support across various components and API calls

* feat: implement model discovery merging and enhance provider forms

- Add mergeDiscoveredModels function to deduplicate and merge model entries based on incoming data.
- Refactor BaseProviderForm and SponsorProviderForm to utilize mergeDiscoveredModels for applying discovered models.
- Update ModelEntryInput type to include sourceIndex for better tracking of model identities.
- Enhance tests for provider model discovery to ensure correct merging behavior and metadata preservation.
- Modify serialization logic in providers API to handle new model structure and sourceIndex.
- Improve YAML AST handling in visual config tests to ensure accurate condition management.

* feat(cooldown): implement cooldown reset functionality and UI updates

* feat(authFileCard): add disabled state styling and update tests for clarity

* refactor: reorganize logs feature structure and improve log handling

- Deleted the `useLogScroller` hook and its associated logic to streamline log scrolling functionality.
- Moved `LogsPage` component to a new directory structure under `features/logs`.
- Updated API service for logs to enhance error handling and response normalization.
- Introduced new tests for log buffer, log parsing, and log selectors to ensure robust functionality.
- Added localization tests to verify translation consistency across multiple languages.
- Improved log request handling and lifecycle management in the logs controller.
- Enhanced log scrolling tests to validate anchor adjustments and pending log line counts.

* feat(logs): enhance log viewer with line wrapping and improved filter options

- Added a toggle for wrapping long log lines in the LogsPage component.
- Updated the structured filters panel to open in a modal for better accessibility.
- Improved accessibility features with appropriate ARIA attributes.
- Refactored log rendering logic to support new wrapping functionality.
- Updated translations for filter and display settings in multiple languages.
- Enhanced styles for better layout and responsiveness in log viewer.
- Added tests to ensure layout integrity and functionality of new features.

* feat(logs): update styles for improved layout and toolbar controls

* feat(i18n): add legacy backend error messages in Chinese and Traditional Chinese

feat(api): implement config patching logic for managing configuration changes

feat(api): add legacy backend probe for diagnosing v0 management support

fix(auth): handle legacy backend detection during login process

test: add tests for config patching and legacy backend probe functionality

test: implement visual config rebase tests for maintaining draft state

* fix(config): recover confirmed list edits without replaying stale indexes

* fix(config): block conflicting payload replacements after recovery

* fix(logs): respect handled Escape events in fullscreen

* fix(quota): load xAI subscription after quota and preserve remaining amounts

---------

Co-authored-by: Supra4E8C <tan13318527080@163.com>
2026-10-01 01:32:15 +08:00
Supra4E8C b33fcd1ec4 Merge pull request #452 from g497813927/main
fix(ui): enhance AutocompleteInput dropdown
2026-10-01 01:11:13 +08:00
Supra4E8C 33af96657f feat(kimi): implement quota URL resolution and enhance error handling 2026-10-01 01:08:33 +08:00
ed-smartassandEvgeny Gamov 32e7eb9f46 fix(quota): show Kimi monthly limit and kimi.ai accounts (#457)
* fix(quota): show Kimi monthly limit and kimi.ai accounts

Plans without a weekly limit report their monthly total only in usages.limit_month_total, so the card showed the 5-hour window alone. Kimi International (kimi-ai) credentials were left off the quota page; their token only works on api.kimi.ai.

* fix(quota): normalize kimi_ai when picking the Kimi usage host

---------

Co-authored-by: Evgeny Gamov <smartass@smartass.pw>
2026-10-01 01:02:43 +08:00
Supra4E8C 556a2b25bb feat: add API key name management and enhance search functionality 2026-10-01 00:38:52 +08:00
Supra4E8C 326cb6da13 feat: implement credential policy management and refresh functionality
- Add authFilePolicyAdapter.ts for handling credential alias and rule management.
- Extend authFiles.ts to include new fields for credential policies and refresh actions.
- Introduce tests for credential policy forms, preservation, and refresh actions.
- Enhance auth file status identity handling to support optional auth_index in API requests.
- Implement comprehensive tests for credential refresh lifecycle and result presentation.
2026-10-01 00:12:03 +08:00
Supra4E8C dab7cbc9da fix(providers): use shared selects in advanced editors 2026-09-30 21:41:05 +08:00
Supra4E8C 6275636285 feat(providers): replace error-rule JSON with row editor 2026-09-30 21:26:59 +08:00
Supra4E8C 587a37eaa8 fix(providers): remove group explanation from forms 2026-09-30 21:07:21 +08:00
Supra4E8C 698dcb1928 fix(providers): align thinking budget bounds with backend semantics 2026-09-30 20:46:05 +08:00
Supra4E8C a60586e2e1 feat(providers): add provider-specific request behavior options 2026-09-30 20:41:47 +08:00
Supra4E8C 2819fd7950 fix(providers): preserve explicit policy intent and model defaults 2026-09-30 20:31:19 +08:00
Supra4E8C 5be3afe9ea feat(providers): expose advanced model capabilities 2026-09-30 20:27:57 +08:00
Supra4E8C d78fcecda1 feat(providers): add credential runtime policy controls 2026-09-30 20:17:30 +08:00
Supra4E8C 9247abd944 feat: add server extras configuration for trusted proxies and discovery settings
- Introduced new visual configuration fields for trusted proxies and discovery options.
- Implemented validation for trusted proxies and discovery service type.
- Updated localization files for English, Russian, Simplified Chinese, and Traditional Chinese to include new fields and validation messages.
- Enhanced the visual configuration hooks to handle new server fields and validation errors.
- Added tests for server configuration notifications and UI components to ensure proper functionality and localization.
2026-09-30 18:50:08 +08:00
Supra4E8C 254594aa5c feat: add new visual configuration fields and localization for OAuth behavior
- Introduced new configuration fields related to OAuth behavior, including ICE server settings and cooldown parameters.
- Updated localization files for Traditional Chinese (zh-TW) to include new fields and validation messages.
- Enhanced visual configuration types to accommodate new fields and validation error codes.
- Added unit tests to ensure proper localization and UI rendering for new configuration fields.
- Implemented validation logic for new fields, including duration formats, IP addresses, and ICE server URLs.
2026-09-30 18:29:11 +08:00
Supra4E8C 45181b4fae feat(quota): add credit balance and unlimited credits support in CodexQuotaBody 2026-09-30 17:55:10 +08:00
Supra4E8C b87b9487f6 fix(logs): respect handled Escape events in fullscreen v1.25.0 2026-09-29 23:44:36 +08:00
Supra4E8C 5521c4ba54 fix(config): block conflicting payload replacements after recovery 2026-09-29 23:44:11 +08:00
Supra4E8C 9d5c0d971f fix(config): recover confirmed list edits without replaying stale indexes 2026-09-29 23:38:04 +08:00
Supra4E8C 8182892567 feat(i18n): add legacy backend error messages in Chinese and Traditional Chinese
feat(api): implement config patching logic for managing configuration changes

feat(api): add legacy backend probe for diagnosing v0 management support

fix(auth): handle legacy backend detection during login process

test: add tests for config patching and legacy backend probe functionality

test: implement visual config rebase tests for maintaining draft state
2026-09-29 15:26:05 +08:00
Supra4E8C edc10b44e7 feat(logs): update styles for improved layout and toolbar controls 2026-09-29 14:07:25 +08:00
Supra4E8C d82d95465b feat(logs): enhance log viewer with line wrapping and improved filter options
- Added a toggle for wrapping long log lines in the LogsPage component.
- Updated the structured filters panel to open in a modal for better accessibility.
- Improved accessibility features with appropriate ARIA attributes.
- Refactored log rendering logic to support new wrapping functionality.
- Updated translations for filter and display settings in multiple languages.
- Enhanced styles for better layout and responsiveness in log viewer.
- Added tests to ensure layout integrity and functionality of new features.
2026-09-29 13:46:16 +08:00
Supra4E8C deab4d6055 refactor: reorganize logs feature structure and improve log handling
- Deleted the `useLogScroller` hook and its associated logic to streamline log scrolling functionality.
- Moved `LogsPage` component to a new directory structure under `features/logs`.
- Updated API service for logs to enhance error handling and response normalization.
- Introduced new tests for log buffer, log parsing, and log selectors to ensure robust functionality.
- Added localization tests to verify translation consistency across multiple languages.
- Improved log request handling and lifecycle management in the logs controller.
- Enhanced log scrolling tests to validate anchor adjustments and pending log line counts.
2026-09-29 13:13:42 +08:00