Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): restore billing translations and update stale test wiring
kirozeng551213dddd97
diff --git a/apps/desktop/src/main/__tests__/authCredentialRecoveryWiring.test.ts b/apps/desktop/src/main/__tests__/authCredentialRecoveryWiring.test.tsindex 383133e2cc..a9ca4cbb23 100644--- a/apps/desktop/src/main/__tests__/authCredentialRecoveryWiring.test.ts+++ b/apps/desktop/src/main/__tests__/authCredentialRecoveryWiring.test.ts@@ -45,6 +45,7 @@ describe('production credential recovery wiring', () => {},authCredentialRecovery: { request },app: { isPackaged: true },+ isCindyVersionLaunchPending: () => false,noteAuthColdStartState: vi.fn(),};new Function(...Object.keys(deps), compiled)(...Object.values(deps));diff --git a/apps/desktop/src/renderer/__tests__/pinnedProjectSidebarIntegration.test.ts b/apps/desktop/src/renderer/__tests__/pinnedProjectSidebarIntegration.test.tsindex 90fa9d31d7..6c5ff26cf7 100644--- a/apps/desktop/src/renderer/__tests__/pinnedProjectSidebarIntegration.test.ts+++ b/apps/desktop/src/renderer/__tests__/pinnedProjectSidebarIntegration.test.ts@@ -83,11 +83,12 @@ describe('pinned project sidebar integration', () => {'const filter = useSidebarFilter(hiddenProjectKeys, sidebarSettingsSnapshot);',);expect(sidebarSource).toContain('collectRestorableProjectKeys({');- expect(sidebarSource).toContain('collectRestorableProjectKeysRef.current = () =>');+ expect(sidebarSource).toContain('const restorableProjectKeys = useMemo(');+ expect(sidebarSource).toContain('restorableProjectKeysRef.current = restorableProjectKeys;');expect(sidebarSource).toContain('sessions: scopedSidebarSessions,');expect(sidebarSource).toContain('const restored = await restoreHiddenProjectIfPresent({');expect(sidebarSource).toContain(- 'getCurrentProjectKeys: () => collectRestorableProjectKeysRef.current(),',+ 'getCurrentProjectKeys: () => restorableProjectKeysRef.current,',);expect(sidebarSource).toContain('ensureProjectIncluded: filter.ensureProjectIncluded,');expect(sidebarSource).toContain('localPlatform,');diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex 9b328e27b1..2fd526a4ae 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -12217,6 +12217,38 @@}},"billing": {+ "comparison": {+ "free": "FREE",+ "freeUsage": "Free to use",+ "priceFromSuffix": "and up",+ "topup": "Top up as needed",+ "topupExpiry": "Top-up credits never expire",+ "agent": "Full Agent features",+ "apiKey": "Bring your own API key",+ "existingSubscription": "Connect existing subscriptions",+ "localModels": "Use local models",+ "basicModels": "Access basic models",+ "subscription": "Subscription plan",+ "rollover": "Keep up to {{amount}} in unused credits for {{period}}",+ "nextPeriod": {+ "MONTH": "next month",+ "YEAR": "next year",+ "OTHER": "the next period"+ },+ "includesFree": "Everything in FREE",+ "advancedModels": "Unlock advanced models",+ "managedService": "Managed service, no setup",+ "topupUnlock": "Pay as you go to unlock advanced models",+ "select": "Choose {{name}}",+ "upgrade": "Upgrade to {{name}}",+ "downgrade": "Downgrade to {{name}}",+ "changeUnavailable": "Unavailable",+ "creditMultiple": "{{multiple}}× the period credits of {{name}}",+ "credits": {+ "MONTH": "{{amount}} credits each month",+ "YEAR": "{{amount}} credits each year"+ }+ },"sidebar": "Balance & Plans","settings": {"title": "Usage and billing",@@ -12339,6 +12371,7 @@},"dialogs": {"subscription": {+ "confirmTitle": "Confirm subscription","title": "Choose a subscription plan"},"topup": {diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex e5431472a4..680aa824d5 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -12200,6 +12200,38 @@}},"billing": {+ "comparison": {+ "free": "FREE",+ "freeUsage": "無料で利用",+ "priceFromSuffix": "〜",+ "topup": "必要な分だけチャージ",+ "topupExpiry": "チャージしたクレジットは無期限",+ "agent": "Agent の全機能",+ "apiKey": "自分の API key を使用",+ "existingSubscription": "既存のサブスクリプションを接続",+ "localModels": "ローカルモデルに対応",+ "basicModels": "基本モデルを利用",+ "subscription": "サブスクリプション",+ "rollover": "未使用クレジットは{{period}}も利用可能(最大 {{amount}})",+ "nextPeriod": {+ "MONTH": "翌月",+ "YEAR": "翌年",+ "OTHER": "次の期間"+ },+ "includesFree": "FREE の全機能を含む",+ "advancedModels": "上位モデルを利用可能に",+ "managedService": "公式サービス、設定不要",+ "topupUnlock": "必要な分だけ支払い、上位モデルを利用",+ "select": "{{name}} を選択",+ "upgrade": "{{name}} にアップグレード",+ "downgrade": "{{name}} にダウングレード",+ "changeUnavailable": "変更不可",+ "creditMultiple": "{{name}} の {{multiple}} 倍の期間クレジット",+ "credits": {+ "MONTH": "毎月 {{amount}} のクレジット",+ "YEAR": "毎年 {{amount}} のクレジット"+ }+ },"sidebar": "残高とプラン","settings": {"title": "使用量と請求",@@ -12322,6 +12354,7 @@},"dialogs": {"subscription": {+ "confirmTitle": "サブスクリプションの確認","title": "サブスクリプションプランを選択"},"topup": {diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex 7b05bc428e..ea7a3fb866 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -12200,6 +12200,38 @@}},"billing": {+ "comparison": {+ "free": "FREE",+ "freeUsage": "무료 사용",+ "priceFromSuffix": "부터",+ "topup": "필요할 때 충전",+ "topupExpiry": "충전 크레딧은 만료되지 않음",+ "agent": "모든 Agent 기능",+ "apiKey": "내 API key 사용",+ "existingSubscription": "기존 구독 연결",+ "localModels": "로컬 모델 지원",+ "basicModels": "기본 모델 사용",+ "subscription": "구독 요금제",+ "rollover": "남은 크레딧은 {{period}}에 최대 {{amount}}까지 사용 가능",+ "nextPeriod": {+ "MONTH": "다음 달",+ "YEAR": "다음 해",+ "OTHER": "다음 기간"+ },+ "includesFree": "FREE의 모든 기능 포함",+ "advancedModels": "고급 모델 잠금 해제",+ "managedService": "공식 서비스, 설정 불필요",+ "topupUnlock": "필요한 만큼 결제하고 고급 모델 사용",+ "select": "{{name}} 선택",+ "upgrade": "{{name}}(으)로 업그레이드",+ "downgrade": "{{name}}(으)로 다운그레이드",+ "changeUnavailable": "변경 불가",+ "creditMultiple": "{{name}} 대비 {{multiple}}배의 기간 크레딧",+ "credits": {+ "MONTH": "매월 {{amount}} 크레딧",+ "YEAR": "매년 {{amount}} 크레딧"+ }+ },"sidebar": "잔액 및 요금제","settings": {"title": "사용량 및 결제",@@ -12322,6 +12354,7 @@},"dialogs": {"subscription": {+ "confirmTitle": "구독 확인","title": "구독 요금제 선택"},"topup": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 94d721c561..831d80f4e0 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -12200,6 +12200,38 @@}},"billing": {+ "comparison": {+ "free": "FREE",+ "freeUsage": "免费使用",+ "priceFromSuffix": "起",+ "topup": "按需充值",+ "topupExpiry": "充值点数不过期",+ "agent": "完整 Agent 功能",+ "apiKey": "自带 API key",+ "existingSubscription": "接入已有订阅",+ "localModels": "支持本地模型",+ "basicModels": "可用基础模型",+ "subscription": "订阅套餐",+ "rollover": "剩余点数可留到{{period}},最多 {{amount}}",+ "nextPeriod": {+ "MONTH": "下月",+ "YEAR": "下一年",+ "OTHER": "下期"+ },+ "includesFree": "包含 FREE 全部能力",+ "advancedModels": "解锁高级模型",+ "managedService": "官方服务,免配置",+ "topupUnlock": "按需付费,解锁高级模型",+ "select": "选择 {{name}}",+ "upgrade": "升级至 {{name}}",+ "downgrade": "降级至 {{name}}",+ "changeUnavailable": "暂不可切换",+ "creditMultiple": "{{name}} 的 {{multiple}} 倍周期点数",+ "credits": {+ "MONTH": "每月 {{amount}} 点数",+ "YEAR": "每年 {{amount}} 点数"+ }+ },"sidebar": "余额与订阅","settings": {"title": "用量和计费",@@ -12322,6 +12354,7 @@},"dialogs": {"subscription": {+ "confirmTitle": "确认订阅","title": "选择订阅套餐"},"topup": {diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex 8b3212914c..e09d3c836c 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -12200,6 +12200,38 @@}},"billing": {+ "comparison": {+ "free": "FREE",+ "freeUsage": "免費使用",+ "priceFromSuffix": "起",+ "topup": "按需儲值",+ "topupExpiry": "儲值點數不過期",+ "agent": "完整 Agent 功能",+ "apiKey": "自備 API key",+ "existingSubscription": "接入現有訂閱",+ "localModels": "支援本機模型",+ "basicModels": "可用基礎模型",+ "subscription": "訂閱方案",+ "rollover": "剩餘點數可留到{{period}},最多 {{amount}}",+ "nextPeriod": {+ "MONTH": "下個月",+ "YEAR": "下一年",+ "OTHER": "下期"+ },+ "includesFree": "包含 FREE 全部功能",+ "advancedModels": "解鎖進階模型",+ "managedService": "官方服務,免設定",+ "topupUnlock": "按需付費,解鎖進階模型",+ "select": "選擇 {{name}}",+ "upgrade": "升級至 {{name}}",+ "downgrade": "降級至 {{name}}",+ "changeUnavailable": "暫不可切換",+ "creditMultiple": "{{name}} 的 {{multiple}} 倍週期點數",+ "credits": {+ "MONTH": "每月 {{amount}} 點數",+ "YEAR": "每年 {{amount}} 點數"+ }+ },"sidebar": "餘額與訂閱","settings": {"title": "用量和計費",@@ -12322,6 +12354,7 @@},"dialogs": {"subscription": {+ "confirmTitle": "確認訂閱","title": "選擇訂閱套餐"},"topup": {