Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

refactor(desktop): 余额/额度卡与积分条对齐订阅卡既有样式

JupiterTheWarlock09bb466fb2e3
diff --git a/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx b/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
index 1751e69a96..6b11f24ce8 100644
--- a/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
+++ b/apps/desktop/src/renderer/components/settings/ProviderAccountUsageModule.tsx
@@ -1,305 +1,60 @@
/**
- * ProviderAccountUsageModule —— API Key 计费供应商的账户余额卡(设置 → 模型供应商详情)。
+ * ProviderAccountUsageModule —— API Key 计费供应商的余额/额度卡(设置 → 模型供应商详情)。
*
- * 与订阅卡(QuotaHoverCard + providerWeeklyQuotaSource)互斥呈现:订阅制读 OAuth 周期
- * 配额,这里读供应商自己的账户接口(DeepSeek `/user/balance`)。账户余额对整个账号生效
- * (与 runtime 无关),因此一个供应商一张卡;查询用的 key 按 claude-code → codex → pi
- * 顺序取第一个指向官方端点的 runtime(main 侧同一口径,见 provider-account-usage.ts)。
- *
- * 智谱 GLM Coding Plan 没有公开的额度查询 API(官方只给网页用量页),这里只给
- * 「查看套餐用量」外链,不做任何余额拉取。两类内容都缺席时模块不渲染。
+ * 样式完全对齐订阅卡(Codex/Claude/xAI):同一个 QuotaHoverCard、同一个壳。差异只在
+ * 数据源——这里经 useProviderAccountUsage 读供应商自己的账户接口(DeepSeek 余额、
+ * 智谱 Coding Plan 额度窗口),投影成 UsageCardAccount 后交同一张卡渲染。不支持的
+ * 供应商返回 null,不占位。
*/
-import { AlertTriangle, ExternalLink, RefreshCw } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import type { ProviderView } from '@cindy/model-providers';
-import { ZHIPU_CODING_PLAN_USAGE_URL, type ProviderAccountUsageResult } from '../../../shared/providerAccountUsage';
-import { isZhipuCodingPlanProviderView } from '../../lib/zhipuCodingPlan';
+import { ZHIPU_CODING_PLAN_USAGE_URL } from '../../../shared/providerAccountUsage';
+import {
+ hasDeepSeekOfficialRouteView,
+ isZhipuCodingPlanProviderView,
+} from '../../lib/providerAccountUsageView';
import { useProviderAccountUsage } from '../../hooks/useProviderAccountUsage';
+import { QuotaHoverCard } from '../status/QuotaHoverCard';
+import { buildDeepSeekUsageCard, buildZhipuUsageCard } from '../status/usageCardModel';
-import { cn } from '@/lib/utils';
-import { Tip } from '@/components/ui/tooltip';
-import { QuotaBar } from '@/components/status/QuotaBar';
-
-function formatCurrency(value: string, currency: string, locale: string): string {
- try {
- const fractionLength = value.split('.')[1]?.replace(/0+$/, '').length ?? 0;
- const formatter = new Intl.NumberFormat(locale, {
- style: 'currency',
- currency,
- });
- const defaultDigits = formatter.resolvedOptions().minimumFractionDigits ?? 0;
- if (fractionLength > 20) return `${value} ${currency}`;
- // ECMA-402 允许直接 format 十进制字符串,避免先过 Number 再舍入。
- const precise = new Intl.NumberFormat(locale, {
- style: 'currency',
- currency,
- maximumFractionDigits: Math.max(defaultDigits, fractionLength),
- });
- return (precise.format as unknown as (input: string) => string)(value);
- } catch {
- return `${value} ${currency}`;
- }
-}
-
-function errorKey(error: string): string {
- return `providerAccountUsage.error.${error}`;
-}
-
-function UsageMetric({ label, value }: { label: string; value: string }) {
- return (
- <div className="min-w-0">
- <p className="text-11 text-[var(--text-tertiary)]">{label}</p>
- <p className="mt-0.5 truncate text-13 font-medium tabular-nums text-[var(--text-primary)]">
- {value}
- </p>
- </div>
- );
-}
-
-/** 智谱 GLM Coding Plan 额度体:套餐档位 + 5 小时 / 每周窗口进度。 */
-function ZhipuQuotaBody({
- snapshot,
- locale,
-}: {
- snapshot: Extract<ProviderAccountUsageResult, { status: 'ready' }>['snapshot'];
- locale: string;
-}) {
- const { t } = useTranslation();
- if (snapshot.kind !== 'zhipu-coding-plan-quota') return null;
- if (snapshot.noPlan) {
- return (
- <p className="mt-3 flex items-start gap-2 text-13 text-[var(--text-secondary)]">
- <AlertTriangle size={14} className="mt-0.5 shrink-0 text-[var(--warning-fg)]" aria-hidden />
- <span>{t('providerAccountUsage.zhipuCodingPlan.noPlan')}</span>
- </p>
- );
- }
- const resetFmt = (resetsAt: number | null) =>
- resetsAt == null
- ? null
- : new Intl.DateTimeFormat(locale, { timeStyle: 'short' }).format(resetsAt);
- const windows: { label: string; usedPercent: number; resetsAt: number | null }[] = [];
- if (snapshot.fiveHour) {
- windows.push({ label: t('providerAccountUsage.zhipuCodingPlan.fiveHour'), ...snapshot.fiveHour });
- }
- if (snapshot.weekly) {
- windows.push({ label: t('providerAccountUsage.zhipuCodingPlan.weekly'), ...snapshot.weekly });
- }
- return (
- <div className="mt-3 space-y-3">
- {snapshot.level && (
- <p className="text-11 text-[var(--text-tertiary)]">
- {t('providerAccountUsage.zhipuCodingPlan.level', { level: snapshot.level })}
- </p>
- )}
- {windows.length === 0 ? (
- <p className="text-13 text-[var(--text-secondary)]">
- {t('providerAccountUsage.zhipuCodingPlan.empty')}
- </p>
- ) : (
- windows.map((window) => {
- const resets = resetFmt(window.resetsAt);
- return (
- <div key={window.label} className="rounded-lg bg-[var(--surface-chip)] px-3 py-2.5">
- <div className="flex items-baseline justify-between gap-3">
- <span className="text-12 font-medium text-[var(--text-secondary)]">{window.label}</span>
- <span className="text-13 font-medium tabular-nums text-[var(--text-primary)]">
- {t('providerAccountUsage.zhipuCodingPlan.usedPercent', {
- value: Math.round(window.usedPercent),
- })}
- </span>
- </div>
- <div className="mt-2">
- <QuotaBar
- usedPercent={window.usedPercent}
- ariaLabel={window.label}
- />
- </div>
- {resets && (
- <p className="mt-1.5 text-11 text-[var(--text-tertiary)]">
- {t('providerAccountUsage.zhipuCodingPlan.resetsAt', { time: resets })}
- </p>
- )}
- </div>
- );
- })
- )}
- </div>
- );
-}
+const DEEPSEEK_USAGE_DASHBOARD_URL = 'https://platform.deepseek.com/usage';
-function BalanceBody({
- result,
- locale,
-}: {
- result: Extract<ProviderAccountUsageResult, { status: 'ready' }>;
- locale: string;
-}) {
- const { t } = useTranslation();
- const { snapshot } = result;
- if (snapshot.kind !== 'deepseek-balance') return null;
- if (!snapshot.isAvailable || snapshot.balances.length === 0) {
- return (
- <p className="mt-3 flex items-start gap-2 text-13 text-[var(--text-secondary)]">
- <AlertTriangle size={14} className="mt-0.5 shrink-0 text-[var(--warning-fg)]" aria-hidden />
- <span>
- {t(
- snapshot.isAvailable
- ? 'providerAccountUsage.deepSeek.empty'
- : 'providerAccountUsage.deepSeek.unavailable',
- )}
- </span>
- </p>
- );
- }
- return (
- <div className="mt-3 space-y-3">
- {snapshot.balances.map((balance) => (
- <div key={balance.currency} className="rounded-lg bg-[var(--surface-chip)] px-3 py-2.5">
- <div className="flex items-baseline justify-between gap-3">
- <span className="text-12 font-medium text-[var(--text-secondary)]">
- {balance.currency}
- </span>
- <span className="text-16 font-medium tabular-nums text-[var(--text-primary)]">
- {formatCurrency(balance.totalBalance, balance.currency, locale)}
- </span>
- </div>
- <div className="mt-2 grid grid-cols-2 gap-3">
- <UsageMetric
- label={t('providerAccountUsage.deepSeek.granted')}
- value={formatCurrency(balance.grantedBalance, balance.currency, locale)}
- />
- <UsageMetric
- label={t('providerAccountUsage.deepSeek.toppedUp')}
- value={formatCurrency(balance.toppedUpBalance, balance.currency, locale)}
- />
- </div>
- </div>
- ))}
- </div>
- );
-}
-
-/** API Key 供应商的账户余额 / 用量入口卡。两类内容都缺席时返回 null。 */
export function ProviderAccountUsageModule({ provider }: { provider?: ProviderView }) {
const { t, i18n } = useTranslation();
const locale = i18n.resolvedLanguage ?? i18n.language;
- const usage = useProviderAccountUsage(provider);
- const zhipuUsageLink = isZhipuCodingPlanProviderView(provider);
- const showBalance = usage.supported;
- if (!showBalance && !zhipuUsageLink) return null;
- const { result, busy } = usage;
+ const deepSeek = hasDeepSeekOfficialRouteView(provider);
+ const zhipu = isZhipuCodingPlanProviderView(provider);
+ const usage = useProviderAccountUsage(deepSeek || zhipu ? provider : undefined);
+ if (!deepSeek && !zhipu) return null;
+ const snapshot = usage.result?.status === 'ready' ? usage.result.snapshot : null;
+ const errorText =
+ usage.result?.status === 'unavailable'
+ ? t(`providerAccountUsage.error.${usage.result.error}`)
+ : null;
+ const account = deepSeek
+ ? buildDeepSeekUsageCard(snapshot?.kind === 'deepseek-balance' ? snapshot : null, t, locale)
+ : buildZhipuUsageCard(snapshot?.kind === 'zhipu-coding-plan-quota' ? snapshot : null, t);
+ if (errorText && !snapshot) account.emptyText = errorText;
return (
<div
- data-testid="provider-account-usage-module"
- className="border-t border-[var(--settings-theme-card-border)] px-5 py-4"
+ data-testid="provider-usage-module"
+ className="border-t px-1 py-2"
+ style={{ borderColor: 'var(--settings-theme-card-border)' }}
>
- <div className="flex items-center justify-between gap-3">
- <span className="text-12 font-medium text-[var(--settings-section-title)]">
- {t('providerAccountUsage.title')}
- </span>
- {showBalance && (
- <Tip text={t('providerAccountUsage.refresh')} side="top">
- <button
- type="button"
- aria-label={t('providerAccountUsage.refresh')}
- disabled={busy}
- onClick={usage.refresh}
- className="flex h-7 w-7 items-center justify-center rounded-full text-[var(--text-tertiary)] transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)] disabled:opacity-50"
- >
- <span
- className={cn(
- 'inline-flex',
- busy && 'animate-spinner motion-reduce:animate-none',
- )}
- >
- <RefreshCw size={14} aria-hidden />
- </span>
- </button>
- </Tip>
- )}
- </div>
-
- {showBalance &&
- (result === null ? (
- <p className="mt-2 text-13 text-[var(--text-secondary)]">
- {t('providerAccountUsage.updating')}
- </p>
- ) : result.status === 'unavailable' ? (
- <div className="mt-2 flex flex-wrap items-center justify-between gap-3">
- <p className="flex min-w-0 items-center gap-2 text-13 text-[var(--text-secondary)]">
- <AlertTriangle size={14} className="shrink-0 text-[var(--error-fg)]" aria-hidden />
- <span>{t(errorKey(result.error))}</span>
- </p>
- {/* no-credentials 下重试必然失败:错误文案已指引补密钥,不给死按钮。 */}
- {result.error !== 'no-credentials' && (
- <button
- type="button"
- onClick={usage.refresh}
- className="rounded-full border border-[var(--border-default)] px-3 py-1 text-12 text-[var(--text-secondary)] transition-colors hover:bg-[var(--surface-hover)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)]"
- >
- {t('providerAccountUsage.retry')}
- </button>
- )}
- </div>
- ) : result.status === 'ready' ? (
- <>
- <div className="mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-11 text-[var(--text-tertiary)]">
- <span>
- {t('providerAccountUsage.updatedAt', {
- time: new Intl.DateTimeFormat(locale, {
- dateStyle: 'medium',
- timeStyle: 'short',
- }).format(result.snapshot.fetchedAt),
- })}
- </span>
- {result.stale && (
- <span
- data-testid="provider-account-usage-stale"
- className="inline-flex items-center gap-1 text-[var(--warning-fg)]"
- >
- <AlertTriangle size={12} aria-hidden />
- {t('providerAccountUsage.stale')}
- </span>
- )}
- {result.error && (
- <span className="basis-full text-[var(--text-secondary)]">
- {t(errorKey(result.error))}
- </span>
- )}
- </div>
- <BalanceBody result={result} locale={locale} />
- <ZhipuQuotaBody snapshot={result.snapshot} locale={locale} />
- {result.snapshot.kind === 'deepseek-balance' ? (
- <button
- type="button"
- onClick={() => void window.electronAPI.openExternal('https://platform.deepseek.com/usage')}
- className="mt-3 inline-flex items-center gap-1.5 text-12 text-[var(--text-secondary)] transition-colors hover:text-[var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)]"
- >
- {t('providerAccountUsage.openDashboard')}
- <ExternalLink size={12} aria-hidden />
- </button>
- ) : null}
- </>
- ) : null)}
-
- {zhipuUsageLink && (
- <button
- type="button"
- onClick={() => void window.electronAPI.openExternal(ZHIPU_CODING_PLAN_USAGE_URL)}
- className={cn(
- 'inline-flex items-center gap-1.5 text-12 text-[var(--text-secondary)] transition-colors hover:text-[var(--text-primary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--focus-ring-soft)]',
- showBalance && 'mt-3',
- )}
- >
- {t('providerAccountUsage.zhipuCodingPlan.usage')}
- <ExternalLink size={12} aria-hidden />
- </button>
- )}
+ <QuotaHoverCard
+ variant="embedded"
+ account={account}
+ dashboardLabel={deepSeek ? t('providerAccountUsage.openDashboard') : t('providerAccountUsage.zhipuCodingPlan.usage')}
+ onOpenDashboard={
+ deepSeek
+ ? () => void window.electronAPI.openExternal(DEEPSEEK_USAGE_DASHBOARD_URL)
+ : () => void window.electronAPI.openExternal(ZHIPU_CODING_PLAN_USAGE_URL)
+ }
+ />
</div>
);
}
diff --git a/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx b/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
index e6a2a9cc48..4266a850a1 100644
--- a/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
+++ b/apps/desktop/src/renderer/components/status/TodaySpendChip.tsx
@@ -127,9 +127,17 @@ import { quotaFullCelebrations } from './quotaFullCelebrations';
import {
buildClaudeUsageCard,
buildCodexUsageCard,
+ buildDeepSeekUsageCard,
buildXaiUsageCard,
+ buildZhipuUsageCard,
type UsageCardAccount,
} from './usageCardModel';
+import { useProviderAccountUsage } from '@/hooks/useProviderAccountUsage';
+import {
+ hasDeepSeekOfficialRouteView,
+ isZhipuCodingPlanProviderView,
+} from '@/lib/providerAccountUsageView';
+import { ZHIPU_CODING_PLAN_USAGE_URL, type ProviderAccountUsageSnapshot, type ZhipuCodingPlanQuotaSnapshot } from '../../../shared/providerAccountUsage';
// XD 网关 / 托管账号之前会跳到内部用量看板(内部域名)—— 开源前移除该硬编码。
// 登录随凭据只下发 { endpoint, apiKey }(见 main/model-access/credentialsSync.ts),不含
@@ -139,6 +147,7 @@ import {
// usageDashboardUrl / consoleUrl),据此恢复网关账号的跳转 + tooltip 链接行
// (i18n 文案 todaySpend.openProxyUsage 已保留待复用,勿当死 key 删)。
const CODEX_USAGE_DASHBOARD_URL = 'https://chatgpt.com/codex/settings/usage';
+const DEEPSEEK_USAGE_DASHBOARD_URL = 'https://platform.deepseek.com/usage';
const XAI_USAGE_DASHBOARD_URL = 'https://grok.com';
const CLAUDE_USAGE_DASHBOARD_URL = 'https://claude.ai/settings/usage';
@@ -507,6 +516,44 @@ function getClaudeChipWindows(
}));
}
+/** 智谱 GLM Coding Plan chip 窗口段(与 Claude 形态同构:5 小时 + 每周)。 */
+function getZhipuChipWindows(
+ snapshot: ZhipuCodingPlanQuotaSnapshot | null,
+ t: TFunction,
+ nowMs: number,
+): ChipWindowSegment[] {
+ if (!snapshot) return [];
+ const windows: ChipWindowSegment[] = [];
+ const push = (
+ key: string,
+ window: { usedPercent: number; resetsAt: number | null } | null,
+ fallbackLabel: string,
+ windowMinutes: number,
+ ) => {
+ if (!window || !Number.isFinite(window.usedPercent)) return;
+ const resetsAtMs =
+ typeof window.resetsAt === 'number' && window.resetsAt > 0 ? window.resetsAt : null;
+ const countdown = formatCompactTimeUntilReset(
+ resetsAtMs != null ? resetsAtMs / 1000 : null,
+ nowMs,
+ t,
+ windowMinutes,
+ );
+ const remainingPercent = 100 - clampPercent(window.usedPercent);
+ windows.push({
+ key,
+ label: countdown ?? fallbackLabel,
+ remainingPercent,
+ resetsAtMs,
+ resetPending: isResetPending(resetsAtMs, nowMs),
+ alerting: remainingPercent <= 20,
+ });
+ };
+ push('zhipu-5h', snapshot.fiveHour, '5h', FIVE_HOUR_WINDOW_MINUTES);
+ push('zhipu-weekly', snapshot.weekly, t('quotaCard.weeklyLabel'), WEEKLY_WINDOW_MINUTES);
+ return windows;
+}
+
// 告警判定 (chip 变红的口径 + allowed_warning 为何不染红、为何不用 representativeClaim
// 的取舍) 已收进 shared/claudeSubscriptionUsage.ts 的
// isClaudeSubscriptionAlerting (纯数据判定, 有直接单测)。
@@ -722,6 +769,29 @@ function interpolateRemaining(text: string, remaining: React.ReactNode): React.R
);
}
+/** DeepSeek chip 主指标:首币种总余额(如「余额 ¥194.06」);无快照 → null。 */
+function formatDeepSeekBalanceSegment(
+ snapshot: ProviderAccountUsageSnapshot | null,
+ t: TFunction,
+ locale?: string,
+): string | null {
+ if (!snapshot || snapshot.kind !== 'deepseek-balance') return null;
+ const line = snapshot.balances[0];
+ if (!line) return null;
+ let balance = `${line.totalBalance} ${line.currency}`;
+ try {
+ const formatter = new Intl.NumberFormat(locale, {
+ style: 'currency',
+ currency: line.currency,
+ maximumFractionDigits: 2,
+ });
+ balance = (formatter.format as unknown as (input: string) => string)(line.totalBalance);
+ } catch {
+ // 非法货币码等:退回原始数字 + 货币码。
+ }
+ return t('providerAccountUsage.deepSeek.chipBalance', { balance });
+}
+
function renderSegmentedLabel(segments: React.ReactNode[]): React.ReactNode {
return segments.map((seg, i) => (
<React.Fragment key={i}>
@@ -927,6 +997,18 @@ export function TodaySpendChip({
// 远程会话不读本机账户快照 —— 额度事实在远端:SSH 用 remoteHostId 判,device-link 与
// 远程 Agent 用 isDeviceLinkRemote 判(任一成立即远程,turn 消耗的是远端账号的额度)。
const isAnyRemoteSession = Boolean(remoteHostId) || isDeviceLinkRemote;
+ // API Key 计费供应商(DeepSeek 余额 / 智谱 Coding Plan 额度):只认本机会话且显式选中
+ // 该供应商的形态;额度事实在本机账户,远程会话不借用(口径同订阅形态)。
+ const usesDeepSeekAccountForm =
+ !isAnyRemoteSession && Boolean(hasDeepSeekOfficialRouteView(selectedQuotaProvider));
+ const usesZhipuCodingPlanForm =
+ !isAnyRemoteSession && Boolean(isZhipuCodingPlanProviderView(selectedQuotaProvider));
+ const usesProviderAccountUsageForm = usesDeepSeekAccountForm || usesZhipuCodingPlanForm;
+ const providerAccountUsage = useProviderAccountUsage(
+ usesProviderAccountUsageForm ? selectedQuotaProvider : undefined,
+ );
+ const providerAccountSnapshot =
+ providerAccountUsage.result?.status === 'ready' ? providerAccountUsage.result.snapshot : null;
// Model Access 配额只属于实际走 XD/Cindy AI Gateway 的本地会话。显式自定义供应商即使
// 复用了 env-key / oauth-bearer host,也不能据 host 的启动凭证把 /v2/user/info 串进来。
const isClaudeGateway =
@@ -1290,7 +1372,11 @@ export function TodaySpendChip({
? CODEX_USAGE_DASHBOARD_URL
: isClaudeSubscription
? CLAUDE_USAGE_DASHBOARD_URL
- : null;
+ : usesDeepSeekAccountForm
+ ? DEEPSEEK_USAGE_DASHBOARD_URL
+ : usesZhipuCodingPlanForm
+ ? ZHIPU_CODING_PLAN_USAGE_URL
+ : null;
// 看板链接行文案:与 usageDashboardUrl 一一对应;网关账号无看板 → null
// (tooltip 不显示"打开看板"行,chip 也不可点)。
const usageDashboardLabel: string | null = isDeviceLinkRemote
@@ -1301,14 +1387,18 @@ export function TodaySpendChip({
? t('todaySpend.openCodexUsage')
: isClaudeSubscription
? t('todaySpend.openClaudeUsage')
- : null;
+ : usesDeepSeekAccountForm
+ ? t('providerAccountUsage.openDashboard')
+ : usesZhipuCodingPlanForm
+ ? t('providerAccountUsage.zhipuCodingPlan.usage')
+ : null;
const [windowLabelNowMs, setWindowLabelNowMs] = React.useState(() => Date.now());
const codexResetSummary = React.useMemo(
() => summarizeCodexRateLimitReset(codexRateLimits, windowLabelNowMs),
[codexRateLimits, windowLabelNowMs],
);
- // 当前形态下 chip 展示的限额窗口段 (Codex 订阅 / Claude 订阅共用结构);
+ // 当前形态下 chip 展示的限额窗口段 (Codex 订阅 / Claude 订阅 / 智谱 Coding Plan 共用结构);
// 其它形态为空数组, 两个 rollup slot 空转。
const chipWindows: ChipWindowSegment[] = usesCodexQuotaForm
? getCodexChipWindows(accountUsage, t, windowLabelNowMs)
@@ -1316,7 +1406,15 @@ export function TodaySpendChip({
? getXaiChipWindows(xaiSubscriptionUsage, t, windowLabelNowMs)
: isClaudeSubscription
? getClaudeChipWindows(claudeSubscriptionUsage, modelId, t, windowLabelNowMs)
- : [];
+ : usesZhipuCodingPlanForm
+ ? getZhipuChipWindows(
+ providerAccountSnapshot?.kind === 'zhipu-coding-plan-quota'
+ ? providerAccountSnapshot
+ : null,
+ t,
+ windowLabelNowMs,
+ )
+ : [];
// chip 最多两个窗口段, 固定两个 slot 无条件调 hook(Rules of Hooks)。
// 重置滚动: 快照刷新中同窗口剩余百分比大幅回升(典型: 窗口到点重置 0% → 100%)
// 时, 显示值从 0% 快速滚动到新值。
@@ -1504,8 +1602,15 @@ export function TodaySpendChip({
) : (
<span className="tabular-nums opacity-60">{DEFAULT_MONEY_SYMBOL}</span>
);
- } else if (usesCodexQuotaForm || usesXaiQuotaForm || isClaudeSubscription) {
- const chipSegments = [...windowSegments];
+ } else if (usesCodexQuotaForm || usesXaiQuotaForm || isClaudeSubscription || usesProviderAccountUsageForm) {
+ // DeepSeek 余额形态无窗口段:chip 主指标直接显示余额(与 GPT credits 同层)。
+ const deepSeekBalanceSegment = usesDeepSeekAccountForm
+ ? formatDeepSeekBalanceSegment(providerAccountSnapshot, t, formatterLocale)
+ : null;
+ const chipSegments = [
+ ...(usesDeepSeekAccountForm && deepSeekBalanceSegment ? [deepSeekBalanceSegment] : []),
+ ...windowSegments,
+ ];
if (sessionSegment) chipSegments.push(sessionSegment);
labelNode =
chipSegments.length > 0 ? (
@@ -1526,16 +1631,34 @@ export function TodaySpendChip({
)
: usesXaiQuotaForm
? buildXaiUsageCard(xaiSubscriptionUsage, xaiRateLimit, t, windowLabelNowMs)
- : buildClaudeUsageCard(claudeSubscriptionUsage, t);
- // Identity and quota must come from the same provider on the same execution device.
- const identityProvider = quotaProviders.find(
- (provider) =>
- provider.id ===
- (providerId ?? (usesCodexQuotaForm ? 'openai' : usesXaiQuotaForm ? 'xai' : 'anthropic')),
- );
- account.identity = usesCodexQuotaForm
- ? identityProvider?.openAiAccount?.identity
- : identityProvider?.subscriptionAccount?.identity;
+ : usesDeepSeekAccountForm
+ ? buildDeepSeekUsageCard(
+ providerAccountSnapshot?.kind === 'deepseek-balance' ? providerAccountSnapshot : null,
+ t,
+ formatterLocale,
+ )
+ : usesZhipuCodingPlanForm
+ ? buildZhipuUsageCard(
+ providerAccountSnapshot?.kind === 'zhipu-coding-plan-quota'
+ ? providerAccountSnapshot
+ : null,
+ t,
+ )
+ : buildClaudeUsageCard(claudeSubscriptionUsage, t);
+ if (
+ !usesProviderAccountUsageForm &&
+ (usesCodexQuotaForm || usesXaiQuotaForm || isClaudeSubscription)
+ ) {
+ // Identity and quota must come from the same provider on the same execution device.
+ const identityProvider = quotaProviders.find(
+ (provider) =>
+ provider.id ===
+ (providerId ?? (usesCodexQuotaForm ? 'openai' : usesXaiQuotaForm ? 'xai' : 'anthropic')),
+ );
+ account.identity = usesCodexQuotaForm
+ ? identityProvider?.openAiAccount?.identity
+ : identityProvider?.subscriptionAccount?.identity;
+ }
}
} else {
const slots = computeMetricSlots(claudeQuota, creditTotals, sessionSegment, t);
diff --git a/apps/desktop/src/renderer/components/status/usageCardModel.ts b/apps/desktop/src/renderer/components/status/usageCardModel.ts
index 0cc1de72d9..c57fa82bad 100644
--- a/apps/desktop/src/renderer/components/status/usageCardModel.ts
+++ b/apps/desktop/src/renderer/components/status/usageCardModel.ts
@@ -4,6 +4,10 @@ import type { CodexRateLimitResetSummary } from '@cindy/maker-shared/session-con
import type { RateLimitSnapshot } from '@/hooks/useAccountUsage';
import type { XaiRateLimitSnapshot } from '@/hooks/useXaiRateLimit';
import type { ClaudeSubscriptionUsageSnapshot } from '../../../shared/claudeSubscriptionUsage';
+import type {
+ DeepSeekAccountUsageSnapshot,
+ ZhipuCodingPlanQuotaSnapshot,
+} from '../../../shared/providerAccountUsage';
import {
isXaiWeeklyUsageCurrent,
type XaiSubscriptionUsageSnapshot,
@@ -139,6 +143,98 @@ export function buildClaudeUsageCard(
};
}
+/** DeepSeek 余额卡:余额不是限额窗口,与 Codex credits 同层走 details 行。 */
+export function buildDeepSeekUsageCard(
+ snapshot: DeepSeekAccountUsageSnapshot | null,
+ t: TFunction,
+ locale?: string,
+): UsageCardAccount {
+ if (!snapshot) return { title: 'DeepSeek', windows: [], emptyText: t('quotaCard.waiting') };
+ if (!snapshot.isAvailable || snapshot.balances.length === 0) {
+ return {
+ title: 'DeepSeek',
+ windows: [],
+ updatedAt: snapshot.fetchedAt,
+ emptyText: t('quotaCard.noWindows'),
+ };
+ }
+ const format = (value: string, currency: string): string => {
+ try {
+ const fractionLength = value.split('.')[1]?.replace(/0+$/, '').length ?? 0;
+ const defaultDigits =
+ new Intl.NumberFormat(locale, { style: 'currency', currency }).resolvedOptions()
+ .minimumFractionDigits ?? 0;
+ const formatter = new Intl.NumberFormat(locale, {
+ style: 'currency',
+ currency,
+ maximumFractionDigits: Math.max(defaultDigits, fractionLength),
+ });
+ // ECMA-402 允许直接 format 十进制字符串,避免先过 Number 再舍入。
+ return (formatter.format as unknown as (input: string) => string)(value);
+ } catch {
+ return `${value} ${currency}`;
+ }
+ };
+ return {
+ title: 'DeepSeek',
+ windows: [],
+ details: snapshot.balances.map((balance) =>
+ t('providerAccountUsage.deepSeek.balanceLine', {
+ total: format(balance.totalBalance, balance.currency),
+ granted: format(balance.grantedBalance, balance.currency),
+ toppedUp: format(balance.toppedUpBalance, balance.currency),
+ }),
+ ),
+ updatedAt: snapshot.fetchedAt,
+ };
+}
+
+/** 智谱 GLM Coding Plan 额度卡:与 Claude 订阅同构(5 小时 + 每周窗口)。 */
+export function buildZhipuUsageCard(
+ snapshot: ZhipuCodingPlanQuotaSnapshot | null,
+ t: TFunction,
+): UsageCardAccount {
+ if (!snapshot) return { title: 'GLM Coding Plan', windows: [], emptyText: t('quotaCard.waiting') };
+ if (snapshot.noPlan) {
+ return {
+ title: 'GLM Coding Plan',
+ windows: [],
+ updatedAt: snapshot.fetchedAt,
+ emptyText: t('providerAccountUsage.zhipuCodingPlan.noPlan'),
+ };
+ }
+ const windows: UsageCardWindow[] = [];
+ if (snapshot.fiveHour) {
+ windows.push({
+ key: 'five-hour',
+ title: t('quotaCard.fiveHourLabel'),
+ showRemaining: true,
+ window: {
+ utilization: snapshot.fiveHour.usedPercent,
+ resetsAt: snapshot.fiveHour.resetsAt != null ? snapshot.fiveHour.resetsAt / 1000 : null,
+ },
+ });
+ }
+ if (snapshot.weekly) {
+ windows.push({
+ key: 'weekly',
+ title: t('quotaCard.weeklyLabel'),
+ showRemaining: true,
+ window: {
+ utilization: snapshot.weekly.usedPercent,
+ resetsAt: snapshot.weekly.resetsAt != null ? snapshot.weekly.resetsAt / 1000 : null,
+ },
+ });
+ }
+ return {
+ title: 'GLM Coding Plan',
+ planLabel: snapshot.level ? snapshot.level.toUpperCase() : undefined,
+ windows,
+ updatedAt: snapshot.fetchedAt,
+ emptyText: windows.length ? undefined : t('quotaCard.noWindows'),
+ };
+}
+
/** Window labels follow the upstream duration, never assume a fixed pair of windows. */
export function quotaWindowLabel(minutes: number | null | undefined, t: TFunction): string {
if (typeof minutes !== 'number' || !Number.isFinite(minutes) || minutes <= 0)
diff --git a/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts b/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
index bd156410e6..70eebc9d4e 100644
--- a/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
+++ b/apps/desktop/src/renderer/hooks/useProviderAccountUsage.ts
@@ -1,10 +1,9 @@
/**
- * useProviderAccountUsage —— API Key 供应商余额卡数据 hook。
+ * useProviderAccountUsage —— API Key 供应商余额/额度数据 hook。
*
* 与订阅卡的 useProviderSubscriptionCard 互补:那边读 OAuth 订阅配额,这边经
- * PROVIDER_ACCOUNT_USAGE 读供应商自己的账户接口。挂载时拉一次,刷新按钮手动
- * forceRefresh;不支持(unsupported)时 hook 返回 supported=false,模块不渲染。
- * 失败不重试轮询——重试入口是刷新按钮本身。
+ * PROVIDER_ACCOUNT_USAGE 读供应商自己的账户接口。挂载时拉一次;失败不轮询,重挂载
+ * (重开详情/chip 重现)即重试。不支持(unsupported)时 supported=false,模块不渲染。
*/
import { useCallback, useEffect, useRef, useState } from 'react';
@@ -12,7 +11,10 @@ import { useCallback, useEffect, useRef, useState } from 'react';
import type { ProviderView } from '@cindy/model-providers';
import type { ProviderAccountUsageResult } from '../../shared/providerAccountUsage';
-import { isZhipuCodingPlanProviderView } from '../lib/zhipuCodingPlan';
+import {
+ hasDeepSeekOfficialRouteView,
+ isZhipuCodingPlanProviderView,
+} from '../lib/providerAccountUsageView';
export interface ProviderAccountUsageState {
/** false = 该供应商没有可读的账户接口,调用方不应渲染模块。 */
@@ -22,30 +24,13 @@ export interface ProviderAccountUsageState {
refresh: () => void;
}
-const DEEPSEEK_ORIGIN = 'https://api.deepseek.com';
-
-/** 任一 runtime 是否指向官方 DeepSeek 端点(与 main 认领规则同口径,首屏免查询裁剪用)。 */
-function hasDeepSeekOfficialRoute(provider: ProviderView | undefined): boolean {
- if (!provider) return false;
- return Object.values(provider.routing ?? {}).some((route) => {
- const upstream = (route as { upstream?: string } | undefined)?.upstream;
- if (!upstream) return false;
- try {
- const url = new URL(upstream);
- return url.protocol === 'https:' && url.origin === DEEPSEEK_ORIGIN;
- } catch {
- return false;
- }
- });
-}
-
export function useProviderAccountUsage(
provider: ProviderView | undefined,
): ProviderAccountUsageState {
const supported =
!!provider
&& provider.auth?.method !== 'oauth'
- && (hasDeepSeekOfficialRoute(provider) || isZhipuCodingPlanProviderView(provider));
+ && (hasDeepSeekOfficialRouteView(provider) || isZhipuCodingPlanProviderView(provider));
const [result, setResult] = useState<ProviderAccountUsageResult | null>(null);
const [busy, setBusy] = useState(false);
const requestId = useRef(0);
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 7d60bb79b1..a8a3455d0b 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -1,10 +1,77 @@
{
- "providerAccountUsage": {"title":"Account balance","refresh":"Refresh balance","retry":"Retry balance query","updating":"Checking balance…","updatedAt":"Updated {{time}}","stale":"Showing an older snapshot","openDashboard":"Open DeepSeek usage dashboard","deepSeek":{"granted":"Granted balance","toppedUp":"Topped-up balance","unavailable":"DeepSeek did not provide balance details. Open the usage dashboard or retry later.","empty":"DeepSeek returned no balance details. Open the usage dashboard to check the account."},"zhipuCodingPlan":{"usage":"View Zhipu plan usage", "level": "Plan: {{level}}", "fiveHour": "5-hour credits", "weekly": "Weekly credits", "usedPercent": "{{value}}% used", "resetsAt": "Resets {{time}}", "noPlan": "This key has no GLM Coding Plan subscription (likely a pay-as-you-go account). Check the website.", "empty": "Zhipu returned no quota windows. Retry later or open the usage page."},"error":{"no-credentials":"No API key is available for this provider. Edit the provider and add the key.","auth":"The provider rejected this API key. Check or replace the key, then retry.","rate-limited":"The provider is limiting balance queries. Retry later.","network":"Cindy cannot reach the provider. Check the network and retry.","server":"The provider cannot return the balance right now. Retry later.","invalid-response":"The provider returned unreadable balance data. Retry later.","throttled":"The balance was just refreshed. Retry a bit later.","unknown":"Cindy cannot load the provider balance. Retry later."}},
- "localAgent": {"title":"Local App Connections","empty":"No connected apps","description":"Authorized local apps can use Cindy models and agent capabilities. Cindy keeps supplier credentials.","revoke":"Revoke Connection","failed":"Could not read app connections.","connectTitle":"Connect a Local App","connectMessage":"Allow “{{app}}” to use Cindy?","connectDetail":"This app can list models and providers, create its own executions, and supply tools. Native execution can read and write files and run commands with your system user permissions; the working directory does not restrict access. Provider credentials stay in Cindy. Revoke individual connections in Settings → Remote Connections → Local App Connections.","cancel":"Cancel","allow":"Allow Connection","revokeMessage":"Revoke all local app connections?","revokeDetail":"All local app connections will stop working and their running tasks will stop. Apps can request a new connection when needed.","clientIdentity":"App-reported ID: {{id}}\nVersion: {{version}}\nThe requesting app supplies its name and ID; Cindy has not verified its publisher.","revokeOneMessage":"Revoke this connection for “{{app}}”?","revokeOneDetail":"Tasks running through this connection will stop. Other app connections will keep working. The app can request a new connection when needed.","revokeConnection":"Revoke connection for “{{app}}”","clientId":"App ID: {{id}}","operationFailed":"Could not confirm the local app operation. Check its current state before continuing.","invalidConnection":"The app connection ID is invalid.","revokeFailed":"Could not confirm the revocation. Check the current connection state.","loading":"Loading app connections…","revoking":"Revoking connection…","authorizationRequired":"This operation requires valid local app authorization.","pairExpired":"The connection request expired or was cancelled. Request a new connection from the app.","busy":"A local app execution is still running or the execution limit is reached. End unused executions first.","limitReached":"The local app connection limit is reached. Revoke unused connections in Settings.","invalidWorkspace":"The app must specify an existing absolute working directory on this computer.","sessionExists":"This execution ID is already in use by this app connection.","executionUnavailable":"The requested execution or tool call is unavailable. Messages and tool operations were not replayed.","selectionUnavailable":"The selected model, provider, or reasoning effort is unavailable. Select an available option in the app.","requestNotReplayed":"This request was not repeated. Check the original operation result in the app.","storageUnavailable":"Could not read or save local app connection data. Existing authorization records were retained.","stopUnconfirmed":"Further messages to this execution are blocked, but the process has not been confirmed stopped.","interactionUnavailable":"The engine requires an interaction that this app cannot receive.","interrupted":"This send was interrupted.","toolTimeout":"The app tool timed out. It was not automatically retried.","connectResult":"Return to the requesting app for the connection result. Authorization is decided in the Cindy confirmation window.","invalidRequest":"The app request is invalid or the operation is unsupported.","hostInUse":"Another Cindy instance manages local app connections for this profile. View the connections in that instance.","developerConnection":"Development Connection","copyCode":"Copy Connection Code","codeCopied":"Connection code copied","codeCopyFailed":"Could not copy the connection code","developerState":{"ready":"For temporary connections from apps on this computer. Approval in this Cindy is still required. Copy a new code after restarting.","starting":"Preparing connection…","owner-unavailable":"Sign in or enter local mode first","host-in-use":"Another Cindy manages connections for this data folder","failed":"The local connection could not start","stopped":"The local connection has stopped"}},
- "attachmentAccessConfirmation": {
- "title": "Confirm Attachment Access",
- "message": "Cindy cannot read this attachment. Select the original file to continue sending this message. Cancelling keeps your draft.",
- "button": "Use Original File"
+ "providerAccountUsage": {
+ "openDashboard": "Open DeepSeek usage dashboard",
+ "deepSeek": {
+ "balanceLine": "Balance {{total}} (topped up {{toppedUp}} / granted {{granted}})",
+ "chipBalance": "Balance {{balance}}"
+ },
+ "zhipuCodingPlan": {
+ "usage": "View Zhipu plan usage",
+ "noPlan": "This key has no GLM Coding Plan subscription (likely a pay-as-you-go account). Check the website."
+ },
+ "error": {
+ "no-credentials": "No API key is available for this provider. Edit the provider and add the key.",
+ "auth": "The provider rejected this API key. Check or replace the key, then retry.",
+ "rate-limited": "The provider is limiting balance queries. Retry later.",
+ "network": "Cindy cannot reach the provider. Check the network and retry.",
+ "server": "The provider cannot return the balance right now. Retry later.",
+ "invalid-response": "The provider returned unreadable balance data. Retry later.",
+ "throttled": "The balance was just refreshed. Retry a bit later.",
+ "unknown": "Cindy cannot load the provider balance. Retry later."
+ }
+ },
+ "localAgent": {
+ "title": "Local App Connections",
+ "empty": "No connected apps",
+ "description": "Authorized local apps can use Cindy models and agent capabilities. Cindy keeps supplier credentials.",
+ "revoke": "Revoke Connection",
+ "failed": "Could not read app connections.",
+ "connectTitle": "Connect a Local App",
+ "connectMessage": "Allow “{{app}}” to use Cindy?",
+ "connectDetail": "This app can list models and providers, create its own executions, and supply tools. Native execution can read and write files and run commands with your system user permissions; the working directory does not restrict access. Provider credentials stay in Cindy. Revoke individual connections in Settings → Remote Connections → Local App Connections.",
+ "cancel": "Cancel",
+ "allow": "Allow Connection",
+ "revokeMessage": "Revoke all local app connections?",
+ "revokeDetail": "All local app connections will stop working and their running tasks will stop. Apps can request a new connection when needed.",
+ "clientIdentity": "App-reported ID: {{id}}\nVersion: {{version}}\nThe requesting app supplies its name and ID; Cindy has not verified its publisher.",
+ "revokeOneMessage": "Revoke this connection for “{{app}}”?",
+ "revokeOneDetail": "Tasks running through this connection will stop. Other app connections will keep working. The app can request a new connection when needed.",
+ "revokeConnection": "Revoke connection for “{{app}}”",
+ "clientId": "App ID: {{id}}",
+ "operationFailed": "Could not confirm the local app operation. Check its current state before continuing.",
+ "invalidConnection": "The app connection ID is invalid.",
+ "revokeFailed": "Could not confirm the revocation. Check the current connection state.",
+ "loading": "Loading app connections…",
+ "revoking": "Revoking connection…",
+ "authorizationRequired": "This operation requires valid local app authorization.",
+ "pairExpired": "The connection request expired or was cancelled. Request a new connection from the app.",
+ "busy": "A local app execution is still running or the execution limit is reached. End unused executions first.",
+ "limitReached": "The local app connection limit is reached. Revoke unused connections in Settings.",
+ "invalidWorkspace": "The app must specify an existing absolute working directory on this computer.",
+ "sessionExists": "This execution ID is already in use by this app connection.",
+ "executionUnavailable": "The requested execution or tool call is unavailable. Messages and tool operations were not replayed.",
+ "selectionUnavailable": "The selected model, provider, or reasoning effort is unavailable. Select an available option in the app.",
+ "requestNotReplayed": "This request was not repeated. Check the original operation result in the app.",
+ "storageUnavailable": "Could not read or save local app connection data. Existing authorization records were retained.",
+ "stopUnconfirmed": "Further messages to this execution are blocked, but the process has not been confirmed stopped.",
+ "interactionUnavailable": "The engine requires an interaction that this app cannot receive.",
+ "interrupted": "This send was interrupted.",
+ "toolTimeout": "The app tool timed out. It was not automatically retried.",
+ "connectResult": "Return to the requesting app for the connection result. Authorization is decided in the Cindy confirmation window.",
+ "invalidRequest": "The app request is invalid or the operation is unsupported.",
+ "hostInUse": "Another Cindy instance manages local app connections for this profile. View the connections in that instance.",
+ "developerConnection": "Development Connection",
+ "copyCode": "Copy Connection Code",
+ "codeCopied": "Connection code copied",
+ "codeCopyFailed": "Could not copy the connection code",
+ "developerState": {
+ "ready": "For temporary connections from apps on this computer. Approval in this Cindy is still required. Copy a new code after restarting.",
+ "starting": "Preparing connection…",
+ "owner-unavailable": "Sign in or enter local mode first",
+ "host-in-use": "Another Cindy manages connections for this data folder",
+ "failed": "The local connection could not start",
+ "stopped": "The local connection has stopped"
+ }
},
"mailReader": {
"markReadFailed": "Could not sync read status. Check mailbox authorization and reopen this email.",
@@ -991,7 +1058,6 @@
"SSH_HARNESS_SWITCH_UNSUPPORTED": "This SSH task cannot switch Harness. Choose a model in its current Harness, or create a new SSH task with the Harness you need.",
"MODEL_SELECTION_UNAVAILABLE": "The selected model is no longer available from its provider. Check the connection in Settings or choose another available model.",
"HARNESS_SWITCH_NOT_READY": "The Harness switch is not ready. Check the error details and retry after the Harness is ready.",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy cannot read the source attachment; the message was not sent. Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again.",
"DEVICE_LINK_BUSY": "The remote computer is busy. Please try again shortly.",
"INVALID_PARAMS": "Invalid input. Please check and try again.",
"PRECONDITION_FAILED": "This action is unavailable in the current state. Please try again.",
@@ -1041,8 +1107,8 @@
"SSH_HOST_KEY_MISMATCH": "SSH Host Key Changed"
},
"providerError": {
- "AUTH_INVALID": "Authentication failed for this interface. Check the address, key, and authentication method.",
- "AUTH_FORBIDDEN": "This interface denied access. Check your plan, model, or regional permissions.",
+ "AUTH_INVALID": "Invalid or expired API key (401). Check the key and try again",
+ "AUTH_FORBIDDEN": "Key is valid but access is denied (403). Check plan or model permissions",
"RATE_LIMITED": "Rate limited (429). Try again later",
"QUOTA_EXCEEDED": "Quota or balance exhausted. Check your provider account",
"MODEL_NOT_FOUND": "Model not found or not accessible. Check the model ID",
@@ -3281,13 +3347,8 @@
"placeholder": "Choose a template…"
},
"test": {
- "inconclusive": "Connection could not be confirmed. Check the address or network before retrying; the previous request may have run.",
- "exhausted": "All candidate interfaces were tried. No working connection was found.",
- "costHint": "Testing sends short generation requests and may incur a small charge.",
- "details": "View attempts",
"button": "Test connection",
"testing": "Testing…",
- "stop": "Stop test",
"ok": "Connected ({{ms}} ms)",
"needFields": "Fill in the base URL and at least one model ID first",
"unsupportedProtocol": "This model protocol is not supported by connection testing"
@@ -3529,7 +3590,6 @@
},
"effortMixed": "Effort differs by engine. A selection applies to engines that support that level.",
"protocol": {
- "automatic": "Automatic",
"reference": "Native API",
"compatibility": "Compatibility mode",
"compatibilityHint": "Compatibility mode may be unstable or behave unexpectedly. Recommended for experienced users.",
@@ -3881,10 +3941,6 @@
"modelCount": "{{count}} models configured",
"modelsAutomatic": "Model details are imported automatically. Adjust individual models in the model list.",
"manualModel": "Model IDs (if discovery is unavailable)",
- "manualAdd": "Add a model manually",
- "manualId": "Model ID",
- "saveProvider": "Save provider",
- "removeModel": "Remove model",
"modelTypeAutomatic": "Detect Automatically",
"manualModelTypeHint": "Use the same ID to update its type. Automatic detection restores the catalog type.",
"mediaOnlyTestHint": "This connection has only non-chat models. Fetch the model list to check catalog access; model execution is not tested here."
@@ -3897,17 +3953,6 @@
"unavailable": "Temporarily unavailable"
},
"claudeAccountRetired": "Cindy no longer supports signing in to your subscription through this legacy Claude connection. Your Claude account and subscription are unaffected. Use “Sign in with Claude Code” to connect.",
- "detection": {
- "keyRequired": "Enter your API key to continue.",
- "authRejected": "Authentication failed. Check the URL and API key; we’ll retry when you update them.",
- "hint": "Enter the URL and API key to identify the provider. Protocol settings remain available when editing the saved connection.",
- "pending": "Identifying provider…",
- "matched": "Identified as {{name}}",
- "ambiguous": "Multiple configurations match. Continue with custom settings or choose a provider.",
- "custom": "Continue with custom settings. You can fetch models or add them manually.",
- "configure": "Configure provider",
- "keepCustom": "Continue with custom settings"
- },
"speechSetup": {
"title": "Speech",
"add": "Add speech models",
@@ -8852,7 +8897,6 @@
"task": "Task runtime",
"service": "Accounts and models"
},
- "sessionDetail": "Task: {{title}}",
"services": {
"audio": "Audio Service",
"network": "Network Service",
@@ -11660,8 +11704,6 @@
"errorBanner": {
"requestFormatError": "The app sent an invalid request, so this reply could not be completed.",
"replyFailed": "Could not complete the reply",
- "attachmentAccessDeniedTitle": "Cindy cannot read the source attachment; the message was not sent.",
- "attachmentAccessDeniedRecovery": "Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again.",
"retryTitle": "Resend the last message",
"cancelTitle": "Dismiss error",
"retry": "Retry",
@@ -12401,7 +12443,6 @@
"LOCAL_OLLAMA_NOT_READY": "Local Ollama isn't ready. Open Settings → Model Providers → Ollama.",
"DEVICE_LINK_CONTROL_DISABLED": "Control for this device is off; the message was not sent.",
"DEVICE_LINK_MEDIA_TRANSFER_FAILED": "Attachment transfer failed; the message was not sent. Please try again.",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy cannot read the source attachment; the message was not sent. Save a copy to Downloads or another accessible folder, remove the original attachment, and add the copy using the attachment button before sending again.",
"MCP_APPROVAL_AUTO_BLOCKED": "Automatic approval review blocked this tool call. No manual rejection was received.",
"MCP_APPROVAL_CONFIRMATION_TIMEOUT": "The permission request timed out without a confirmed decision. A timeout does not show whether you clicked a button.",
"MCP_APPROVAL_CONFIRMATION_UNAVAILABLE": "Permission confirmation could not be completed. No manual rejection was received.",
@@ -13314,10 +13355,7 @@
"treeLoading": "Loading files…",
"treeAction": {
"collapseAll": "Collapse all",
- "refresh": "Refresh",
- "showIgnoredDirs": "Show ignored directories",
- "hideIgnoredDirs": "Hide ignored directories",
- "showIgnoredDirsUnsupported": "The remote device is running an older {{appName}} version that cannot show ignored directories"
+ "refresh": "Refresh"
},
"treeMenu": {
"newFile": "New File",
@@ -15410,19 +15448,6 @@
"dirUnavailable": "The folder on {{device}} is temporarily unavailable. Check the connection or network drive, then try again. The Worker wasn't created."
}
},
- "editWorker": {
- "title": "Edit worker",
- "submit": "Save",
- "closeAria": "Close edit worker dialog",
- "labelLabel": "Label",
- "labelHint": "The label uniquely identifies this worker inside the team. Use letters, numbers, hyphens and underscores only; after saving, the Lead and other references locate the worker by the new label.",
- "labelHintAria": "About worker label",
- "labelPlaceholder": "Worker label (leave empty to keep)",
- "labelInvalid": "Label may only contain letters, numbers, hyphens and underscores",
- "duplicateLabel": "Label {{label}} is already used by another worker in this team",
- "saveFailed": "Failed to save. Please try again.",
- "labelLocked": "This worker's label is referenced by an active plugin team plan and can't be changed until the plan finishes. Change the role name, or release the worker first."
- },
"rolePill": {
"unread": "Unread update",
"worker": "Worker",
@@ -15431,7 +15456,6 @@
"workerCountSummary_other": "{{totalCount}} workers · {{activeCount}} running",
"statusAria": "status {{status}}",
"archiveWorkerAria": "Archive worker {{name}}",
- "editWorkerAria": "Edit worker {{name}}",
"createWorker": "Create new worker",
"hardLimitHint": "Hard limit reached: {{count}}. Archive an existing worker to create another one.",
"hardLimitSettingsHint": "Hard limit reached: {{count}}. Click to adjust in collaboration settings.",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 38994c95dc..be039262b5 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -1,10 +1,77 @@
{
- "providerAccountUsage": {"title":"アカウント残高","refresh":"残高を更新","retry":"残高の取得を再試行","updating":"残高を確認しています…","updatedAt":"{{time}} に更新","stale":"古いスナップショットを表示中","openDashboard":"DeepSeek の使用量ページを開く","deepSeek":{"granted":"付与残高","toppedUp":"チャージ残高","unavailable":"DeepSeek が残高情報を返しませんでした。使用量ページを開くか、後でもう一度お試しください。","empty":"DeepSeek から残高明細が返されませんでした。使用量ページでアカウントを確認してください。"},"zhipuCodingPlan":{"usage":"Zhipu プランの使用量を見る", "level": "プラン:{{level}}", "fiveHour": "5時間クレジット", "weekly": "週間クレジット", "usedPercent": "{{value}}% 使用済み", "resetsAt": "{{time}} にリセット", "noPlan": "このキーには GLM Coding Plan のサブスクリプションがありません(従量課金アカウントの可能性)。公式サイトで確認してください。", "empty": "Zhipu からクレジット枠が返されませんでした。後でもう一度試すか、使用量ページを開いてください。"},"error":{"no-credentials":"このプロバイダーには利用可能な API キーがありません。プロバイダーを編集してキーを追加してください。","auth":"プロバイダーがこの API キーを拒否しました。確認または交換してから再試行してください。","rate-limited":"プロバイダーが残高照会を制限しています。後でもう一度お試しください。","network":"プロバイダーに接続できません。ネットワークを確認して再試行してください。","server":"プロバイダーが現在一時的に残高を返せません。後でもう一度お試しください。","invalid-response":"プロバイダーが認識できない残高データを返しました。後でもう一度お試しください。","throttled":"残高は更新されたばかりです。少し待ってから再試行してください。","unknown":"プロバイダーの残高を読み込めませんでした。後でもう一度お試しください。"}},
- "localAgent": {"title":"ローカルアプリの接続","empty":"接続済みのアプリはありません","description":"承認したローカルアプリが Cindy のモデルと実行機能を利用できます。認証情報は Cindy が管理します。","revoke":"接続を解除","failed":"アプリの接続を読み込めませんでした。","connectTitle":"ローカルアプリを接続","connectMessage":"「{{app}}」に Cindy の利用を許可しますか?","connectDetail":"このアプリはモデルとプロバイダーの一覧を取得し、独自の実行を作成してツールを提供できます。ネイティブ実行では、現在の OS ユーザーの権限でファイルを読み書きし、コマンドを実行できます。作業ディレクトリはアクセス範囲を制限しません。認証情報は Cindy が保持します。設定 → リモート接続 → ローカルアプリの接続で個別に解除できます。","cancel":"キャンセル","allow":"接続を許可","revokeMessage":"すべてのローカルアプリ接続を取り消しますか?","revokeDetail":"すべてのローカルアプリ接続が無効になり、実行中のタスクが停止します。必要に応じて再接続できます。","clientIdentity":"アプリが申告した ID:{{id}}\nバージョン:{{version}}\n名前と ID は申請元の申告であり、Cindy が発行元を確認したことを意味しません。","revokeOneMessage":"「{{app}}」のこの接続を取り消しますか?","revokeOneDetail":"この接続で実行中のタスクが停止します。他のアプリ接続には影響しません。必要に応じて再接続できます。","revokeConnection":"「{{app}}」の接続を取り消す","clientId":"アプリ ID:{{id}}","operationFailed":"ローカルアプリの操作結果を確認できませんでした。現在の状態を確認してから続けてください。","invalidConnection":"アプリ接続の ID が無効です。","revokeFailed":"接続の解除を確認できませんでした。現在の接続状態を確認してください。","loading":"アプリの接続を読み込み中…","revoking":"接続を解除中…","authorizationRequired":"この操作には有効なローカルアプリの承認が必要です。","pairExpired":"接続リクエストの有効期限が切れたか、キャンセルされました。アプリから接続を再申請してください。","busy":"ローカルアプリの実行が続いているか、実行数の上限に達しています。不要な実行を先に終了してください。","limitReached":"ローカルアプリの接続数が上限に達しています。設定で不要な接続を解除してください。","invalidWorkspace":"アプリは、このコンピューター上に存在する作業ディレクトリを絶対パスで指定する必要があります。","sessionExists":"このアプリ接続では、その実行 ID がすでに使われています。","executionUnavailable":"要求された実行またはツール呼び出しは利用できません。メッセージやツール操作は再実行されていません。","selectionUnavailable":"選択したモデル、プロバイダー、または推論強度は利用できません。アプリで利用可能な項目を選択してください。","requestNotReplayed":"このリクエストは再実行されていません。アプリで元の操作結果を確認してください。","storageUnavailable":"ローカルアプリの接続データを読み込めないか、保存できませんでした。既存の承認記録は保持されています。","stopUnconfirmed":"この実行への追加メッセージは停止しましたが、プロセスの終了はまだ確認できていません。","interactionUnavailable":"エンジンが必要とする操作を、このアプリでは受け取れません。","interrupted":"今回の送信は中断されました。","toolTimeout":"アプリのツールがタイムアウトしました。自動で再試行していません。","connectResult":"接続結果は申請元のアプリで確認してください。承認は Cindy の確認ウィンドウで決定します。","invalidRequest":"アプリのリクエストが無効か、この操作はサポートされていません。","hostInUse":"このプロファイルのローカルアプリ接続は、別の Cindy インスタンスが管理しています。そのインスタンスで接続を確認してください。","developerConnection":"開発用接続","copyCode":"接続コードをコピー","codeCopied":"接続コードをコピーしました","codeCopyFailed":"接続コードをコピーできませんでした","developerState":{"ready":"このパソコンのアプリから一時的に接続できます。この Cindy での許可が必要です。再起動後はコードをコピーし直してください。","starting":"接続を準備しています…","owner-unavailable":"先にログインするかローカルモードに入ってください","host-in-use":"このデータフォルダーの接続は別の Cindy が管理しています","failed":"ローカル接続を開始できませんでした","stopped":"ローカル接続は停止しています"}},
- "attachmentAccessConfirmation": {
- "title": "添付ファイルへのアクセスを確認",
- "message": "Cindy がこの添付ファイルを読み取れません。元のファイルを選択すると、このメッセージの送信を続行します。キャンセルすると下書きが保持されます。",
- "button": "元のファイルを使用"
+ "providerAccountUsage": {
+ "openDashboard": "DeepSeek の使用量ページを開く",
+ "deepSeek": {
+ "balanceLine": "残高 {{total}}(チャージ {{toppedUp}} / 付与 {{granted}})",
+ "chipBalance": "残高 {{balance}}"
+ },
+ "zhipuCodingPlan": {
+ "usage": "Zhipu プランの使用量を見る",
+ "noPlan": "このキーには GLM Coding Plan のサブスクリプションがありません(従量課金アカウントの可能性)。公式サイトで確認してください。"
+ },
+ "error": {
+ "no-credentials": "このプロバイダーには利用可能な API キーがありません。プロバイダーを編集してキーを追加してください。",
+ "auth": "プロバイダーがこの API キーを拒否しました。確認または交換してから再試行してください。",
+ "rate-limited": "プロバイダーが残高照会を制限しています。後でもう一度お試しください。",
+ "network": "プロバイダーに接続できません。ネットワークを確認して再試行してください。",
+ "server": "プロバイダーが現在一時的に残高を返せません。後でもう一度お試しください。",
+ "invalid-response": "プロバイダーが認識できない残高データを返しました。後でもう一度お試しください。",
+ "throttled": "残高は更新されたばかりです。少し待ってから再試行してください。",
+ "unknown": "プロバイダーの残高を読み込めませんでした。後でもう一度お試しください。"
+ }
+ },
+ "localAgent": {
+ "title": "ローカルアプリの接続",
+ "empty": "接続済みのアプリはありません",
+ "description": "承認したローカルアプリが Cindy のモデルと実行機能を利用できます。認証情報は Cindy が管理します。",
+ "revoke": "接続を解除",
+ "failed": "アプリの接続を読み込めませんでした。",
+ "connectTitle": "ローカルアプリを接続",
+ "connectMessage": "「{{app}}」に Cindy の利用を許可しますか?",
+ "connectDetail": "このアプリはモデルとプロバイダーの一覧を取得し、独自の実行を作成してツールを提供できます。ネイティブ実行では、現在の OS ユーザーの権限でファイルを読み書きし、コマンドを実行できます。作業ディレクトリはアクセス範囲を制限しません。認証情報は Cindy が保持します。設定 → リモート接続 → ローカルアプリの接続で個別に解除できます。",
+ "cancel": "キャンセル",
+ "allow": "接続を許可",
+ "revokeMessage": "すべてのローカルアプリ接続を取り消しますか?",
+ "revokeDetail": "すべてのローカルアプリ接続が無効になり、実行中のタスクが停止します。必要に応じて再接続できます。",
+ "clientIdentity": "アプリが申告した ID:{{id}}\nバージョン:{{version}}\n名前と ID は申請元の申告であり、Cindy が発行元を確認したことを意味しません。",
+ "revokeOneMessage": "「{{app}}」のこの接続を取り消しますか?",
+ "revokeOneDetail": "この接続で実行中のタスクが停止します。他のアプリ接続には影響しません。必要に応じて再接続できます。",
+ "revokeConnection": "「{{app}}」の接続を取り消す",
+ "clientId": "アプリ ID:{{id}}",
+ "operationFailed": "ローカルアプリの操作結果を確認できませんでした。現在の状態を確認してから続けてください。",
+ "invalidConnection": "アプリ接続の ID が無効です。",
+ "revokeFailed": "接続の解除を確認できませんでした。現在の接続状態を確認してください。",
+ "loading": "アプリの接続を読み込み中…",
+ "revoking": "接続を解除中…",
+ "authorizationRequired": "この操作には有効なローカルアプリの承認が必要です。",
+ "pairExpired": "接続リクエストの有効期限が切れたか、キャンセルされました。アプリから接続を再申請してください。",
+ "busy": "ローカルアプリの実行が続いているか、実行数の上限に達しています。不要な実行を先に終了してください。",
+ "limitReached": "ローカルアプリの接続数が上限に達しています。設定で不要な接続を解除してください。",
+ "invalidWorkspace": "アプリは、このコンピューター上に存在する作業ディレクトリを絶対パスで指定する必要があります。",
+ "sessionExists": "このアプリ接続では、その実行 ID がすでに使われています。",
+ "executionUnavailable": "要求された実行またはツール呼び出しは利用できません。メッセージやツール操作は再実行されていません。",
+ "selectionUnavailable": "選択したモデル、プロバイダー、または推論強度は利用できません。アプリで利用可能な項目を選択してください。",
+ "requestNotReplayed": "このリクエストは再実行されていません。アプリで元の操作結果を確認してください。",
+ "storageUnavailable": "ローカルアプリの接続データを読み込めないか、保存できませんでした。既存の承認記録は保持されています。",
+ "stopUnconfirmed": "この実行への追加メッセージは停止しましたが、プロセスの終了はまだ確認できていません。",
+ "interactionUnavailable": "エンジンが必要とする操作を、このアプリでは受け取れません。",
+ "interrupted": "今回の送信は中断されました。",
+ "toolTimeout": "アプリのツールがタイムアウトしました。自動で再試行していません。",
+ "connectResult": "接続結果は申請元のアプリで確認してください。承認は Cindy の確認ウィンドウで決定します。",
+ "invalidRequest": "アプリのリクエストが無効か、この操作はサポートされていません。",
+ "hostInUse": "このプロファイルのローカルアプリ接続は、別の Cindy インスタンスが管理しています。そのインスタンスで接続を確認してください。",
+ "developerConnection": "開発用接続",
+ "copyCode": "接続コードをコピー",
+ "codeCopied": "接続コードをコピーしました",
+ "codeCopyFailed": "接続コードをコピーできませんでした",
+ "developerState": {
+ "ready": "このパソコンのアプリから一時的に接続できます。この Cindy での許可が必要です。再起動後はコードをコピーし直してください。",
+ "starting": "接続を準備しています…",
+ "owner-unavailable": "先にログインするかローカルモードに入ってください",
+ "host-in-use": "このデータフォルダーの接続は別の Cindy が管理しています",
+ "failed": "ローカル接続を開始できませんでした",
+ "stopped": "ローカル接続は停止しています"
+ }
},
"mailReader": {
"markReadFailed": "既読状態を同期できませんでした。メールボックスの認証を確認して開き直してください。",
@@ -979,7 +1046,6 @@
"SSH_HARNESS_SWITCH_UNSUPPORTED": "この SSH タスクでは Harness を切り替えられません。現在の Harness のモデルを選ぶか、必要な Harness で新しい SSH タスクを作成してください。",
"MODEL_SELECTION_UNAVAILABLE": "選択したプロバイダーのモデルは利用できなくなりました。設定で接続を確認するか、利用可能なモデルを選び直してください。",
"HARNESS_SWITCH_NOT_READY": "Harness の切り替えが完了していません。エラーの詳細を確認し、Harness の準備ができてから再試行してください。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。",
"DEVICE_LINK_BUSY": "接続先のコンピュータが混み合っています。しばらくしてから再試行してください。",
"INVALID_PARAMS": "パラメータが無効です。確認して再試行してください。",
"PRECONDITION_FAILED": "現在の状態ではこの操作を実行できません。しばらくしてから再試行してください。",
@@ -1029,8 +1095,8 @@
"SSH_HOST_KEY_MISMATCH": "SSH ホスト鍵が変更されました"
},
"providerError": {
- "AUTH_INVALID": "このインターフェースで認証に失敗しました。アドレス、キー、認証方式を確認してください。",
- "AUTH_FORBIDDEN": "このインターフェースへのアクセスが拒否されました。プラン、モデル、地域のアクセス権を確認してください。",
+ "AUTH_INVALID": "API キーが無効か期限切れです(401)。キーを確認して再試行してください",
+ "AUTH_FORBIDDEN": "キーは有効ですがアクセス権がありません(403)。プランやモデルの権限を確認してください",
"RATE_LIMITED": "レート制限中です(429)。しばらくしてから再試行してください",
"QUOTA_EXCEEDED": "クォータまたは残高が不足しています。プロバイダーのアカウントを確認してください",
"MODEL_NOT_FOUND": "モデルが存在しないか利用権限がありません。モデル ID を確認してください",
@@ -3252,13 +3318,8 @@
"placeholder": "テンプレートを選択…"
},
"test": {
- "inconclusive": "接続を確認できませんでした。アドレスやネットワークを確認してから再試行してください。前のリクエストが実行済みの可能性があります。",
- "exhausted": "すべての候補を試しましたが、接続できませんでした。",
- "costHint": "テストでは短い生成リクエストを送信し、少額の料金が発生する場合があります。",
- "details": "試行結果を表示",
"button": "接続テスト",
"testing": "テスト中…",
- "stop": "テストを停止",
"ok": "接続に成功しました({{ms}}ms)",
"needFields": "先にベース URL と少なくとも 1 つのモデル ID を入力してください",
"unsupportedProtocol": "接続テストはこのモデルプロトコルに対応していません"
@@ -3499,7 +3560,6 @@
},
"effortMixed": "推論強度はエンジンごとに異なります。選択した強度に対応するエンジンに適用します。",
"protocol": {
- "automatic": "自動選択",
"reference": "ネイティブAPI",
"compatibility": "互換モード",
"compatibilityHint": "互換モードでは動作が不安定になったり、一部の機能が正常に動作しない場合があります。経験のあるユーザー向けです。",
@@ -3850,10 +3910,6 @@
"modelCount": "{{count}} 個のモデルを設定済み",
"modelsAutomatic": "モデル情報は自動取得されます。個別の設定はモデル一覧から変更できます。",
"manualModel": "モデル ID(自動取得できない場合)",
- "manualAdd": "モデルを手動で追加",
- "manualId": "モデル ID",
- "saveProvider": "プロバイダーを保存",
- "removeModel": "モデルを削除",
"modelTypeAutomatic": "自動判別",
"manualModelTypeHint": "同じ ID で種類を更新できます。自動判別を選ぶと、カタログの種類に戻ります。",
"mediaOnlyTestHint": "この接続にはチャット以外のモデルのみが含まれています。モデル一覧の取得でカタログへのアクセスを確認できます。ここではモデルの実行はテストしません。"
@@ -3866,17 +3922,6 @@
"unavailable": "一時的に利用できません"
},
"claudeAccountRetired": "Cindy では、この旧式の Claude 接続を使ったサブスクリプションへのログインに対応していません。Claude アカウントとサブスクリプションには影響ありません。「Claude Code でログイン」から接続してください。",
- "detection": {
- "keyRequired": "API キーを入力して続けてください。",
- "authRejected": "認証できませんでした。URL と API キーを確認してください。変更すると自動的に再試行します。",
- "hint": "URL と API キーを入力するとプロバイダーを識別します。保存後、接続の編集でプロトコルを変更できます。",
- "pending": "プロバイダーを識別中…",
- "matched": "{{name}} として識別されました",
- "ambiguous": "複数の設定が一致しました。カスタム設定を続けるか、プロバイダーを選択してください。",
- "custom": "カスタム設定を続けます。モデル一覧を取得するか、手動で追加できます。",
- "configure": "設定に進む",
- "keepCustom": "カスタム設定を続ける"
- },
"speechSetup": {
"title": "音声",
"add": "音声モデルを追加",
@@ -8820,7 +8865,6 @@
"task": "タスク実行",
"service": "アカウントとモデル"
},
- "sessionDetail": "タスク:{{title}}",
"services": {
"audio": "オーディオサービス",
"network": "ネットワークサービス",
@@ -11621,8 +11665,6 @@
"errorBanner": {
"requestFormatError": "アプリが送信したリクエストの形式に問題があり、返信を完了できませんでした。",
"replyFailed": "返信を完了できませんでした",
- "attachmentAccessDeniedTitle": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。",
- "attachmentAccessDeniedRecovery": "「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。",
"retryTitle": "最後のメッセージを再送信",
"cancelTitle": "エラーを閉じる",
"retry": "再試行",
@@ -12362,7 +12404,6 @@
"LOCAL_OLLAMA_NOT_READY": "ローカル Ollama の準備ができていません。設定 → モデルプロバイダー → Ollama を開いてください。",
"DEVICE_LINK_CONTROL_DISABLED": "このデバイスの操作はオフです。メッセージは送信されていません。",
"DEVICE_LINK_MEDIA_TRANSFER_FAILED": "添付ファイルの転送に失敗しました。メッセージは送信されていません。もう一度お試しください。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy が元の添付ファイルを読み取れないため、メッセージは送信されていません。「ダウンロード」などアクセス可能なフォルダーにコピーを保存し、元の添付ファイルを削除してから、添付ボタンでコピーを追加し、再送信してください。",
"MCP_APPROVAL_AUTO_BLOCKED": "このツール呼び出しは自動審査でブロックされました。手動で拒否された記録はありません。",
"MCP_APPROVAL_CONFIRMATION_TIMEOUT": "権限の確認がタイムアウトし、有効な確認結果を受信できませんでした。タイムアウトだけでは、ボタンをクリックしたかどうかは判断できません。",
"MCP_APPROVAL_CONFIRMATION_UNAVAILABLE": "権限の確認を完了できませんでした。手動で拒否された記録はありません。",
@@ -13266,10 +13307,7 @@
"treeLoading": "ファイルを読み込み中…",
"treeAction": {
"collapseAll": "すべて折りたたむ",
- "refresh": "更新",
- "showIgnoredDirs": "無視されるディレクトリを表示",
- "hideIgnoredDirs": "無視されるディレクトリを隠す",
- "showIgnoredDirsUnsupported": "相手デバイスの {{appName}} のバージョンが古く、無視されるディレクトリを表示できません"
+ "refresh": "更新"
},
"treeMenu": {
"newFile": "新規ファイル",
@@ -15361,19 +15399,6 @@
"dirUnavailable": "{{device}} のフォルダーは一時的に使用できません。接続やネットワークドライブを確認して再試行してください。Worker は作成されていません。"
}
},
- "editWorker": {
- "title": "Worker を編集",
- "submit": "保存",
- "closeAria": "Worker 編集ダイアログを閉じる",
- "labelLabel": "識別子",
- "labelHint": "識別子はチーム内でこの Worker を一意に識別するために使います。使用できるのは英数字・ハイフン・アンダースコアのみです。保存後、Lead などの参照は新しい識別子で Worker を特定します。",
- "labelHintAria": "識別子について",
- "labelPlaceholder": "Worker 識別子(空欄なら変更しません)",
- "labelInvalid": "識別子は英数字・ハイフン・アンダースコアのみ使用できます",
- "duplicateLabel": "識別子 {{label}} はこのチームの別の Worker が使用しています",
- "saveFailed": "保存に失敗しました。もう一度お試しください。",
- "labelLocked": "この Worker の識別子は進行中のプラグインのチーム計画から参照されているため、計画の完了まで変更できません。役割名の変更か、先に Worker を解放してください。"
- },
"rolePill": {
"unread": "未読の更新",
"worker": "Worker",
@@ -15381,7 +15406,6 @@
"workerCountSummary_other": "Worker 合計 {{totalCount}} · 稼働中 {{activeCount}}",
"statusAria": "ステータス {{status}}",
"archiveWorkerAria": "Worker {{name}} をアーカイブ",
- "editWorkerAria": "Worker {{name}} を編集",
"createWorker": "新しい Worker を作成",
"hardLimitHint": "ハード上限 {{count}} に達しました。既存 Worker をアーカイブすると追加できます。",
"hardLimitSettingsHint": "ハード上限 {{count}} に達しました。クリックして協同設定を調整します。",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index e55435aeb4..af6561047c 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -1,10 +1,77 @@
{
- "providerAccountUsage": {"title":"계정 잔액","refresh":"잔액 새로 고침","retry":"잔액 조회 다시 시도","updating":"잔액을 확인하는 중…","updatedAt":"{{time}}에 업데이트됨","stale":"이전 스냅샷 표시 중","openDashboard":"DeepSeek 사용량 페이지 열기","deepSeek":{"granted":"증여 잔액","toppedUp":"충전 잔액","unavailable":"DeepSeek가 잔액 내역을 제공하지 않았습니다. 사용량 페이지를 열거나 나중에 다시 시도하세요.","empty":"DeepSeek가 잔액 내역을 반환하지 않았습니다. 사용량 페이지에서 계정을 확인하세요."},"zhipuCodingPlan":{"usage":"Zhipu 플랜 사용량 보기", "level": "플랜: {{level}}", "fiveHour": "5시간 크레딧", "weekly": "주간 크레딧", "usedPercent": "{{value}}% 사용됨", "resetsAt": "{{time}} 초기화", "noPlan": "이 키에는 GLM Coding Plan 구독이 없습니다(종량제 계정일 가능성). 공식 사이트에서 확인하세요.", "empty": "Zhipu가 크레딧 창을 반환하지 않았습니다. 나중에 다시 시도하거나 사용량 페이지를 여세요."},"error":{"no-credentials":"이 제공자에게 사용 가능한 API 키가 없습니다. 제공자를 편집해 키를 추가하세요.","auth":"제공자가 이 API 키를 거부했습니다. 확인하거나 교체한 후 다시 시도하세요.","rate-limited":"제공자가 잔액 조회를 제한하고 있습니다. 나중에 다시 시도하세요.","network":"제공자에 연결할 수 없습니다. 네트워크를 확인한 후 다시 시도하세요.","server":"제공자가 현재 잔액을 반환할 수 없습니다. 나중에 다시 시도하세요.","invalid-response":"제공자가 인식할 수 없는 잔액 데이터를 반환했습니다. 나중에 다시 시도하세요.","throttled":"잔액을 방금 새로 고쳤습니다. 잠시 후 다시 시도하세요.","unknown":"제공자 잔액을 불러올 수 없습니다. 나중에 다시 시도하세요."}},
- "localAgent": {"title":"로컬 앱 연결","empty":"연결된 앱 없음","description":"승인된 로컬 앱이 Cindy 모델과 실행 기능을 사용할 수 있습니다. 제공자 인증 정보는 Cindy가 관리합니다.","revoke":"연결 해제","failed":"앱 연결을 불러오지 못했습니다.","connectTitle":"로컬 앱 연결","connectMessage":"“{{app}}”의 Cindy 사용을 허용할까요?","connectDetail":"이 앱은 모델과 제공자 목록을 확인하고 자체 실행을 만들며 도구를 제공할 수 있습니다. 네이티브 실행은 현재 시스템 사용자 권한으로 파일을 읽고 쓰거나 명령을 실행할 수 있으며, 작업 디렉터리가 접근 범위를 제한하지 않습니다. 제공자 인증 정보는 Cindy가 보관합니다. 설정 → 원격 연결 → 로컬 앱 연결에서 개별 연결을 해제할 수 있습니다.","cancel":"취소","allow":"연결 허용","revokeMessage":"모든 로컬 앱 연결을 해제할까요?","revokeDetail":"모든 로컬 앱 연결이 무효화되고 실행 중인 작업이 중지됩니다. 필요하면 다시 연결할 수 있습니다.","clientIdentity":"앱이 제공한 ID: {{id}}\n버전: {{version}}\n이름과 ID는 요청 앱이 제공하며, Cindy가 게시자를 확인했다는 의미가 아닙니다.","revokeOneMessage":"“{{app}}”의 이 연결을 취소할까요?","revokeOneDetail":"이 연결에서 실행 중인 작업이 중지됩니다. 다른 앱 연결에는 영향을 주지 않습니다. 필요하면 다시 연결할 수 있습니다.","revokeConnection":"“{{app}}” 연결 취소","clientId":"앱 ID: {{id}}","operationFailed":"로컬 앱 작업 결과를 확인하지 못했습니다. 현재 상태를 확인한 후 계속하세요.","invalidConnection":"앱 연결 ID가 유효하지 않습니다.","revokeFailed":"연결 해제 결과를 확인하지 못했습니다. 현재 연결 상태를 확인하세요.","loading":"앱 연결을 불러오는 중…","revoking":"연결 해제 중…","authorizationRequired":"이 작업에는 유효한 로컬 앱 승인이 필요합니다.","pairExpired":"연결 요청이 만료되었거나 취소되었습니다. 앱에서 새 연결을 요청하세요.","busy":"로컬 앱 실행이 진행 중이거나 실행 한도에 도달했습니다. 사용하지 않는 실행을 먼저 종료하세요.","limitReached":"로컬 앱 연결 한도에 도달했습니다. 설정에서 사용하지 않는 연결을 해제하세요.","invalidWorkspace":"앱은 이 컴퓨터에 존재하는 작업 디렉터리의 절대 경로를 지정해야 합니다.","sessionExists":"이 앱 연결에서 해당 실행 ID를 이미 사용하고 있습니다.","executionUnavailable":"요청한 실행 또는 도구 호출을 사용할 수 없습니다. 메시지와 도구 작업은 다시 실행되지 않았습니다.","selectionUnavailable":"선택한 모델, 제공자 또는 추론 강도을 사용할 수 없습니다. 앱에서 사용 가능한 항목을 선택하세요.","requestNotReplayed":"이 요청은 다시 실행되지 않았습니다. 앱에서 원래 작업 결과를 확인하세요.","storageUnavailable":"로컬 앱 연결 데이터를 읽거나 저장하지 못했습니다. 기존 승인 기록은 유지되었습니다.","stopUnconfirmed":"이 실행에 추가 메시지를 보내는 것은 차단되었지만 프로세스가 중지되었는지는 확인되지 않았습니다.","interactionUnavailable":"엔진에 필요한 상호작용을 이 앱이 받을 수 없습니다.","interrupted":"이번 전송이 중단되었습니다.","toolTimeout":"앱 도구 호출 시간이 초과되었습니다. 자동으로 재시도하지 않았습니다.","connectResult":"연결 결과는 요청한 앱에서 확인하세요. 승인은 Cindy 확인 창에서 결정합니다.","invalidRequest":"앱 요청이 유효하지 않거나 지원하지 않는 작업입니다.","hostInUse":"이 프로필의 로컬 앱 연결은 다른 Cindy 인스턴스가 관리합니다. 해당 인스턴스에서 연결을 확인하세요.","developerConnection":"개발용 연결","copyCode":"연결 코드 복사","codeCopied":"연결 코드를 복사했습니다","codeCopyFailed":"연결 코드를 복사하지 못했습니다","developerState":{"ready":"이 컴퓨터의 앱에서 임시로 연결합니다. 이 Cindy에서 승인이 필요합니다. 다시 시작하면 코드를 다시 복사하세요.","starting":"연결 준비 중…","owner-unavailable":"먼저 로그인하거나 로컬 모드로 들어가세요","host-in-use":"다른 Cindy가 이 데이터 폴더의 연결을 관리하고 있습니다","failed":"로컬 연결을 시작하지 못했습니다","stopped":"로컬 연결이 중지되었습니다"}},
- "attachmentAccessConfirmation": {
- "title": "첨부 파일 접근 확인",
- "message": "Cindy가 이 첨부 파일을 읽을 수 없습니다. 원본 파일을 선택하면 이 메시지 전송을 계속합니다. 취소하면 초안이 유지됩니다.",
- "button": "원본 파일 사용"
+ "providerAccountUsage": {
+ "openDashboard": "DeepSeek 사용량 페이지 열기",
+ "deepSeek": {
+ "balanceLine": "잔액 {{total}} (충전 {{toppedUp}} / 증여 {{granted}})",
+ "chipBalance": "잔액 {{balance}}"
+ },
+ "zhipuCodingPlan": {
+ "usage": "Zhipu 플랜 사용량 보기",
+ "noPlan": "이 키에는 GLM Coding Plan 구독이 없습니다(종량제 계정일 가능성). 공식 사이트에서 확인하세요."
+ },
+ "error": {
+ "no-credentials": "이 제공자에게 사용 가능한 API 키가 없습니다. 제공자를 편집해 키를 추가하세요.",
+ "auth": "제공자가 이 API 키를 거부했습니다. 확인하거나 교체한 후 다시 시도하세요.",
+ "rate-limited": "제공자가 잔액 조회를 제한하고 있습니다. 나중에 다시 시도하세요.",
+ "network": "제공자에 연결할 수 없습니다. 네트워크를 확인한 후 다시 시도하세요.",
+ "server": "제공자가 현재 잔액을 반환할 수 없습니다. 나중에 다시 시도하세요.",
+ "invalid-response": "제공자가 인식할 수 없는 잔액 데이터를 반환했습니다. 나중에 다시 시도하세요.",
+ "throttled": "잔액을 방금 새로 고쳤습니다. 잠시 후 다시 시도하세요.",
+ "unknown": "제공자 잔액을 불러올 수 없습니다. 나중에 다시 시도하세요."
+ }
+ },
+ "localAgent": {
+ "title": "로컬 앱 연결",
+ "empty": "연결된 앱 없음",
+ "description": "승인된 로컬 앱이 Cindy 모델과 실행 기능을 사용할 수 있습니다. 제공자 인증 정보는 Cindy가 관리합니다.",
+ "revoke": "연결 해제",
+ "failed": "앱 연결을 불러오지 못했습니다.",
+ "connectTitle": "로컬 앱 연결",
+ "connectMessage": "“{{app}}”의 Cindy 사용을 허용할까요?",
+ "connectDetail": "이 앱은 모델과 제공자 목록을 확인하고 자체 실행을 만들며 도구를 제공할 수 있습니다. 네이티브 실행은 현재 시스템 사용자 권한으로 파일을 읽고 쓰거나 명령을 실행할 수 있으며, 작업 디렉터리가 접근 범위를 제한하지 않습니다. 제공자 인증 정보는 Cindy가 보관합니다. 설정 → 원격 연결 → 로컬 앱 연결에서 개별 연결을 해제할 수 있습니다.",
+ "cancel": "취소",
+ "allow": "연결 허용",
+ "revokeMessage": "모든 로컬 앱 연결을 해제할까요?",
+ "revokeDetail": "모든 로컬 앱 연결이 무효화되고 실행 중인 작업이 중지됩니다. 필요하면 다시 연결할 수 있습니다.",
+ "clientIdentity": "앱이 제공한 ID: {{id}}\n버전: {{version}}\n이름과 ID는 요청 앱이 제공하며, Cindy가 게시자를 확인했다는 의미가 아닙니다.",
+ "revokeOneMessage": "“{{app}}”의 이 연결을 취소할까요?",
+ "revokeOneDetail": "이 연결에서 실행 중인 작업이 중지됩니다. 다른 앱 연결에는 영향을 주지 않습니다. 필요하면 다시 연결할 수 있습니다.",
+ "revokeConnection": "“{{app}}” 연결 취소",
+ "clientId": "앱 ID: {{id}}",
+ "operationFailed": "로컬 앱 작업 결과를 확인하지 못했습니다. 현재 상태를 확인한 후 계속하세요.",
+ "invalidConnection": "앱 연결 ID가 유효하지 않습니다.",
+ "revokeFailed": "연결 해제 결과를 확인하지 못했습니다. 현재 연결 상태를 확인하세요.",
+ "loading": "앱 연결을 불러오는 중…",
+ "revoking": "연결 해제 중…",
+ "authorizationRequired": "이 작업에는 유효한 로컬 앱 승인이 필요합니다.",
+ "pairExpired": "연결 요청이 만료되었거나 취소되었습니다. 앱에서 새 연결을 요청하세요.",
+ "busy": "로컬 앱 실행이 진행 중이거나 실행 한도에 도달했습니다. 사용하지 않는 실행을 먼저 종료하세요.",
+ "limitReached": "로컬 앱 연결 한도에 도달했습니다. 설정에서 사용하지 않는 연결을 해제하세요.",
+ "invalidWorkspace": "앱은 이 컴퓨터에 존재하는 작업 디렉터리의 절대 경로를 지정해야 합니다.",
+ "sessionExists": "이 앱 연결에서 해당 실행 ID를 이미 사용하고 있습니다.",
+ "executionUnavailable": "요청한 실행 또는 도구 호출을 사용할 수 없습니다. 메시지와 도구 작업은 다시 실행되지 않았습니다.",
+ "selectionUnavailable": "선택한 모델, 제공자 또는 추론 강도을 사용할 수 없습니다. 앱에서 사용 가능한 항목을 선택하세요.",
+ "requestNotReplayed": "이 요청은 다시 실행되지 않았습니다. 앱에서 원래 작업 결과를 확인하세요.",
+ "storageUnavailable": "로컬 앱 연결 데이터를 읽거나 저장하지 못했습니다. 기존 승인 기록은 유지되었습니다.",
+ "stopUnconfirmed": "이 실행에 추가 메시지를 보내는 것은 차단되었지만 프로세스가 중지되었는지는 확인되지 않았습니다.",
+ "interactionUnavailable": "엔진에 필요한 상호작용을 이 앱이 받을 수 없습니다.",
+ "interrupted": "이번 전송이 중단되었습니다.",
+ "toolTimeout": "앱 도구 호출 시간이 초과되었습니다. 자동으로 재시도하지 않았습니다.",
+ "connectResult": "연결 결과는 요청한 앱에서 확인하세요. 승인은 Cindy 확인 창에서 결정합니다.",
+ "invalidRequest": "앱 요청이 유효하지 않거나 지원하지 않는 작업입니다.",
+ "hostInUse": "이 프로필의 로컬 앱 연결은 다른 Cindy 인스턴스가 관리합니다. 해당 인스턴스에서 연결을 확인하세요.",
+ "developerConnection": "개발용 연결",
+ "copyCode": "연결 코드 복사",
+ "codeCopied": "연결 코드를 복사했습니다",
+ "codeCopyFailed": "연결 코드를 복사하지 못했습니다",
+ "developerState": {
+ "ready": "이 컴퓨터의 앱에서 임시로 연결합니다. 이 Cindy에서 승인이 필요합니다. 다시 시작하면 코드를 다시 복사하세요.",
+ "starting": "연결 준비 중…",
+ "owner-unavailable": "먼저 로그인하거나 로컬 모드로 들어가세요",
+ "host-in-use": "다른 Cindy가 이 데이터 폴더의 연결을 관리하고 있습니다",
+ "failed": "로컬 연결을 시작하지 못했습니다",
+ "stopped": "로컬 연결이 중지되었습니다"
+ }
},
"mailReader": {
"markReadFailed": "읽음 상태를 동기화하지 못했습니다. 메일함 인증을 확인하고 다시 여세요.",
@@ -979,7 +1046,6 @@
"SSH_HARNESS_SWITCH_UNSUPPORTED": "이 SSH 작업에서는 Harness를 전환할 수 없습니다. 현재 Harness의 모델을 선택하거나 필요한 Harness로 새 SSH 작업을 만드세요.",
"MODEL_SELECTION_UNAVAILABLE": "선택한 제공자의 모델을 더 이상 사용할 수 없습니다. 설정에서 연결을 확인하거나 사용 가능한 모델을 다시 선택하세요.",
"HARNESS_SWITCH_NOT_READY": "Harness 전환이 완료되지 않았습니다. 오류 세부 정보를 확인하고 Harness가 준비되면 다시 시도하세요.",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다. 다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요.",
"DEVICE_LINK_BUSY": "원격 컴퓨터가 사용 중입니다. 잠시 후 다시 시도해 주세요.",
"INVALID_PARAMS": "매개변수가 잘못되었습니다. 확인 후 다시 시도하세요.",
"PRECONDITION_FAILED": "현재 상태에서는 이 작업을 수행할 수 없습니다. 잠시 후 다시 시도하세요.",
@@ -1029,8 +1095,8 @@
"SSH_HOST_KEY_MISMATCH": "SSH 호스트 키가 변경됨"
},
"providerError": {
- "AUTH_INVALID": "이 인터페이스에서 인증에 실패했습니다. 주소, 키 및 인증 방식을 확인하세요.",
- "AUTH_FORBIDDEN": "이 인터페이스가 접근을 거부했습니다. 요금제, 모델 또는 지역 권한을 확인하세요.",
+ "AUTH_INVALID": "API 키가 유효하지 않거나 만료되었습니다(401). 키를 확인한 후 다시 시도하세요",
+ "AUTH_FORBIDDEN": "키는 유효하지만 접근 권한이 없습니다(403). 요금제 또는 모델 권한을 확인하세요",
"RATE_LIMITED": "요청이 제한되었습니다(429). 잠시 후 다시 시도하세요",
"QUOTA_EXCEEDED": "할당량 또는 잔액이 부족합니다. 제공자 계정을 확인하세요",
"MODEL_NOT_FOUND": "모델이 존재하지 않거나 사용 권한이 없습니다. 모델 ID를 확인하세요",
@@ -3252,13 +3318,8 @@
"placeholder": "템플릿 선택…"
},
"test": {
- "inconclusive": "연결을 확인하지 못했습니다. 주소나 네트워크를 확인한 후 다시 시도하세요. 이전 요청이 실행되었을 수 있습니다.",
- "exhausted": "모든 후보 인터페이스를 시도했지만 연결하지 못했습니다.",
- "costHint": "테스트는 짧은 생성 요청을 보내며 소액의 요금이 발생할 수 있습니다.",
- "details": "시도 결과 보기",
"button": "연결 테스트",
"testing": "테스트 중…",
- "stop": "테스트 중지",
"ok": "연결 성공 ({{ms}}ms)",
"needFields": "먼저 기본 URL과 모델 ID를 하나 이상 입력하세요",
"unsupportedProtocol": "연결 테스트는 이 모델 프로토콜을 지원하지 않습니다"
@@ -3499,7 +3560,6 @@
},
"effortMixed": "엔진마다 추론 강도가 다릅니다. 선택한 단계를 지원하는 엔진에 적용합니다.",
"protocol": {
- "automatic": "자동 선택",
"reference": "기본 API",
"compatibility": "호환 모드",
"compatibilityHint": "호환 모드에서는 작동이 불안정하거나 일부 기능에 문제가 생길 수 있습니다. 숙련된 사용자에게 권장합니다.",
@@ -3850,10 +3910,6 @@
"modelCount": "모델 {{count}}개 설정됨",
"modelsAutomatic": "모델 정보는 자동으로 가져옵니다. 개별 설정은 모델 목록에서 변경하세요.",
"manualModel": "모델 ID (자동으로 가져올 수 없는 경우)",
- "manualAdd": "모델 직접 추가",
- "manualId": "모델 ID",
- "saveProvider": "제공자 저장",
- "removeModel": "모델 제거",
"modelTypeAutomatic": "자동 감지",
"manualModelTypeHint": "같은 ID로 유형을 변경할 수 있습니다. 자동 감지를 선택하면 카탈로그의 유형으로 돌아갑니다.",
"mediaOnlyTestHint": "이 연결에는 채팅 이외의 모델만 있습니다. 모델 목록을 가져와 카탈로그 접근을 확인할 수 있습니다. 여기서는 모델 실행을 테스트하지 않습니다."
@@ -3866,17 +3922,6 @@
"unavailable": "일시적으로 사용할 수 없음"
},
"claudeAccountRetired": "Cindy에서는 이 이전 Claude 연결 방식으로 구독에 로그인할 수 없습니다. Claude 계정과 구독에는 영향이 없습니다. ‘Claude Code로 로그인’을 사용해 구독을 연결하세요.",
- "detection": {
- "keyRequired": "API 키를 입력해 계속하세요.",
- "authRejected": "인증하지 못했습니다. URL과 API 키를 확인하세요. 수정하면 자동으로 다시 시도합니다.",
- "hint": "URL과 API 키를 입력하면 제공자를 식별합니다. 저장한 연결을 편집하여 프로토콜을 변경할 수 있습니다.",
- "pending": "제공자 식별 중…",
- "matched": "{{name}}(으)로 식별됨",
- "ambiguous": "여러 설정이 일치합니다. 사용자 지정 설정을 계속하거나 제공자를 선택하세요.",
- "custom": "사용자 지정 설정을 계속합니다. 모델 목록을 가져오거나 직접 추가할 수 있습니다.",
- "configure": "설정으로 이동",
- "keepCustom": "사용자 지정 계속"
- },
"speechSetup": {
"title": "음성",
"add": "음성 모델 추가",
@@ -8820,7 +8865,6 @@
"task": "작업 실행",
"service": "계정 및 모델"
},
- "sessionDetail": "작업: {{title}}",
"services": {
"audio": "오디오 서비스",
"network": "네트워크 서비스",
@@ -11621,8 +11665,6 @@
"errorBanner": {
"requestFormatError": "앱이 보낸 요청 형식에 문제가 있어 답변을 완료하지 못했습니다.",
"replyFailed": "답변을 완료하지 못했습니다",
- "attachmentAccessDeniedTitle": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다.",
- "attachmentAccessDeniedRecovery": "다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요.",
"retryTitle": "마지막 메시지 다시 보내기",
"cancelTitle": "오류 알림 닫기",
"retry": "다시 시도",
@@ -12362,7 +12404,6 @@
"LOCAL_OLLAMA_NOT_READY": "로컬 Ollama가 아직 준비되지 않았습니다. 설정 → 모델 제공자 → Ollama를 여세요.",
"DEVICE_LINK_CONTROL_DISABLED": "이 기기의 제어가 꺼져 있어 메시지가 전송되지 않았습니다.",
"DEVICE_LINK_MEDIA_TRANSFER_FAILED": "첨부 파일 전송에 실패했습니다. 메시지가 전송되지 않았습니다. 다시 시도하세요.",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy가 원본 첨부 파일을 읽을 수 없어 메시지가 전송되지 않았습니다. 다운로드 등 접근 가능한 폴더에 사본을 저장하고, 원본 첨부 파일을 제거한 뒤 첨부 버튼으로 사본을 추가하여 다시 전송하세요.",
"MCP_APPROVAL_AUTO_BLOCKED": "자동 승인 검토가 이 도구 호출을 차단했습니다. 직접 거부한 기록은 없습니다.",
"MCP_APPROVAL_CONFIRMATION_TIMEOUT": "권한 확인 시간이 초과되어 유효한 확인 결과를 받지 못했습니다. 시간 초과만으로는 버튼을 클릭했는지 알 수 없습니다.",
"MCP_APPROVAL_CONFIRMATION_UNAVAILABLE": "권한 확인을 완료하지 못했습니다. 직접 거부한 기록은 없습니다.",
@@ -13266,10 +13307,7 @@
"treeLoading": "파일 불러오는 중…",
"treeAction": {
"collapseAll": "모두 접기",
- "refresh": "새로 고침",
- "showIgnoredDirs": "무시된 디렉터리 표시",
- "hideIgnoredDirs": "무시된 디렉터리 숨기기",
- "showIgnoredDirsUnsupported": "상대 기기의 {{appName}} 버전이 오래되어 무시된 디렉터리를 표시할 수 없습니다"
+ "refresh": "새로 고침"
},
"treeMenu": {
"newFile": "새 파일",
@@ -15361,19 +15399,6 @@
"dirUnavailable": "{{device}}의 폴더를 일시적으로 사용할 수 없습니다. 연결 또는 네트워크 드라이브를 확인한 후 다시 시도하세요. Worker가 생성되지 않았습니다."
}
},
- "editWorker": {
- "title": "Worker 편집",
- "submit": "저장",
- "closeAria": "Worker 편집 대화상자 닫기",
- "labelLabel": "식별자",
- "labelHint": "식별자는 팀 안에서 이 Worker를 고유하게 식별하는 데 씁니다. 영문, 숫자, 하이픈, 밑줄만 사용할 수 있습니다. 저장하면 Lead를 비롯한 참조가 새 식별자로 Worker를 찾습니다.",
- "labelHintAria": "식별자 안내",
- "labelPlaceholder": "Worker 식별자(비우면 변경하지 않음)",
- "labelInvalid": "식별자는 영문, 숫자, 하이픈, 밑줄만 사용할 수 있습니다",
- "duplicateLabel": "식별자 {{label}}은(는) 이 팀의 다른 Worker가 사용 중입니다",
- "saveFailed": "저장하지 못했습니다. 다시 시도해 주세요.",
- "labelLocked": "이 Worker의 식별자는 진행 중인 플러그인 팀 계획에서 참조하고 있어 계획이 끝날 때까지 변경할 수 없습니다. 역할 이름을 바꾸거나 먼저 Worker를 릴리스하세요."
- },
"rolePill": {
"unread": "읽지 않은 업데이트",
"worker": "Worker",
@@ -15381,7 +15406,6 @@
"workerCountSummary_other": "전체 Worker {{totalCount}} · 실행 중 {{activeCount}}",
"statusAria": "상태 {{status}}",
"archiveWorkerAria": "Worker {{name}} 아카이브",
- "editWorkerAria": "Worker {{name}} 편집",
"createWorker": "새 Worker 만들기",
"hardLimitHint": "하드 제한 {{count}} 에 도달했습니다. 기존 Worker 를 아카이브하면 더 만들 수 있습니다.",
"hardLimitSettingsHint": "하드 제한 {{count}} 에 도달했습니다. 클릭하여 협업 설정을 조정합니다.",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index a3ec799cb0..1aebc5f077 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -1,10 +1,77 @@
{
- "providerAccountUsage": {"title":"账户余额","refresh":"刷新余额","retry":"重试余额查询","updating":"正在查询余额…","updatedAt":"更新于 {{time}}","stale":"正在显示旧快照","openDashboard":"打开 DeepSeek 用量页","deepSeek":{"granted":"赠送余额","toppedUp":"充值余额","unavailable":"DeepSeek 暂时没有提供余额明细,请打开用量页或稍后重试。","empty":"DeepSeek 没有返回余额明细,请打开用量页检查账户。"},"zhipuCodingPlan":{"usage":"查看智谱套餐用量", "level": "套餐:{{level}}", "fiveHour": "5 小时积分", "weekly": "每周积分", "usedPercent": "已用 {{value}}%", "resetsAt": "{{time}} 重置", "noPlan": "这个 key 没有订阅 GLM Coding Plan(可能是按量付费账户),请在官网确认。", "empty": "智谱没有返回配额窗口信息,请稍后重试或打开用量页。"},"error":{"no-credentials":"这个供应商没有可用的 API 密钥,请编辑供应商并补齐密钥。","auth":"供应商拒绝了这个 API 密钥,请检查或更换密钥后重试。","rate-limited":"供应商限制了余额查询频率,请稍后重试。","network":"Cindy 无法连接供应商,请检查网络后重试。","server":"供应商暂时无法返回余额,请稍后重试。","invalid-response":"供应商返回了无法识别的余额数据,请稍后重试。","throttled":"刚刚刷新过余额,请稍后重试。","unknown":"Cindy 无法加载供应商余额,请稍后重试。"}},
- "localAgent": {"title":"本机应用连接","empty":"尚未连接应用","description":"允许已授权的本机应用使用 Cindy 的模型与执行能力。供应商登录仍由 Cindy 管理。","revoke":"撤销连接","failed":"无法读取应用连接。","connectTitle":"连接本机应用","connectMessage":"允许“{{app}}”使用 Cindy?","connectDetail":"此应用可以查看模型与供应商目录、创建自己的执行并提供工具。原生执行可以按当前系统用户的权限读写文件、运行命令;工作目录不限制访问范围。供应商凭证保留在 Cindy。可在设置 → 远程连接 → 本机应用连接中单独撤销连接。","cancel":"取消","allow":"允许连接","revokeMessage":"撤销所有本机应用连接?","revokeDetail":"所有本机应用的连接会失效,正在运行的接入任务会停止。需要使用时可重新申请连接。","clientIdentity":"应用自报编号:{{id}}\n版本:{{version}}\n名称和编号由申请方提供,不代表 Cindy 已验证其发布者。","revokeOneMessage":"撤销“{{app}}”的这条连接?","revokeOneDetail":"这条连接正在运行的任务会停止。其他应用连接不受影响。需要使用时可重新申请连接。","revokeConnection":"撤销“{{app}}”的连接","clientId":"应用编号:{{id}}","operationFailed":"无法确认本机应用操作的结果,请先查看当前状态。","invalidConnection":"应用连接编号无效。","revokeFailed":"无法确认撤销结果,请查看当前连接状态。","loading":"正在读取应用连接…","revoking":"正在撤销连接…","authorizationRequired":"此操作需要有效的本机应用授权。","pairExpired":"连接申请已过期或取消,请从应用重新申请连接。","busy":"本机应用仍有执行正在运行,或已达到执行上限,请先结束不用的执行。","limitReached":"已达到本机应用连接上限,请在设置中撤销不用的连接。","invalidWorkspace":"应用须指定此电脑上已存在的绝对工作目录。","sessionExists":"此应用连接已在使用该执行编号。","executionUnavailable":"所请求的执行或工具调用不可用,消息与工具操作未被重放。","selectionUnavailable":"所选模型、供应商或推理强度不可用,请在应用中重新选择。","requestNotReplayed":"此请求未被重复执行,请在应用中查看原操作结果。","storageUnavailable":"无法读取或保存本机应用连接数据,已保留现有授权记录。","stopUnconfirmed":"已阻止继续向此执行发送消息,但尚未确认进程已停止。","interactionUnavailable":"引擎需要此应用无法接收的交互操作。","interrupted":"本次发送已中断。","toolTimeout":"应用工具调用已超时,未自动重试。","connectResult":"请返回申请连接的应用查看结果,授权由 Cindy 确认窗口决定。","invalidRequest":"应用请求无效,或该操作不受支持。","hostInUse":"此配置的本机应用连接正由另一个 Cindy 实例管理,请在该实例中查看连接。","developerConnection":"开发连接","copyCode":"复制连接码","codeCopied":"连接码已复制","codeCopyFailed":"未能复制连接码","developerState":{"ready":"供此电脑上的应用临时连接,仍需在此 Cindy 中授权。重启后需重新复制。","starting":"正在准备连接…","owner-unavailable":"请先登录或进入本地模式","host-in-use":"此数据目录的连接正由另一个 Cindy 管理","failed":"本机连接未能启动","stopped":"本机连接已停止"}},
- "attachmentAccessConfirmation": {
- "title": "确认附件访问",
- "message": "Cindy 无法读取这个附件。请选择原文件,确认后继续发送这条消息;取消会保留草稿。",
- "button": "使用原文件"
+ "providerAccountUsage": {
+ "openDashboard": "打开 DeepSeek 用量页",
+ "deepSeek": {
+ "balanceLine": "余额 {{total}}(充值 {{toppedUp}} / 赠送 {{granted}})",
+ "chipBalance": "余额 {{balance}}"
+ },
+ "zhipuCodingPlan": {
+ "usage": "查看智谱套餐用量",
+ "noPlan": "这个 key 没有订阅 GLM Coding Plan(可能是按量付费账户),请在官网确认。"
+ },
+ "error": {
+ "no-credentials": "这个供应商没有可用的 API 密钥,请编辑供应商并补齐密钥。",
+ "auth": "供应商拒绝了这个 API 密钥,请检查或更换密钥后重试。",
+ "rate-limited": "供应商限制了余额查询频率,请稍后重试。",
+ "network": "Cindy 无法连接供应商,请检查网络后重试。",
+ "server": "供应商暂时无法返回余额,请稍后重试。",
+ "invalid-response": "供应商返回了无法识别的余额数据,请稍后重试。",
+ "throttled": "刚刚刷新过余额,请稍后重试。",
+ "unknown": "Cindy 无法加载供应商余额,请稍后重试。"
+ }
+ },
+ "localAgent": {
+ "title": "本机应用连接",
+ "empty": "尚未连接应用",
+ "description": "允许已授权的本机应用使用 Cindy 的模型与执行能力。供应商登录仍由 Cindy 管理。",
+ "revoke": "撤销连接",
+ "failed": "无法读取应用连接。",
+ "connectTitle": "连接本机应用",
+ "connectMessage": "允许“{{app}}”使用 Cindy?",
+ "connectDetail": "此应用可以查看模型与供应商目录、创建自己的执行并提供工具。原生执行可以按当前系统用户的权限读写文件、运行命令;工作目录不限制访问范围。供应商凭证保留在 Cindy。可在设置 → 远程连接 → 本机应用连接中单独撤销连接。",
+ "cancel": "取消",
+ "allow": "允许连接",
+ "revokeMessage": "撤销所有本机应用连接?",
+ "revokeDetail": "所有本机应用的连接会失效,正在运行的接入任务会停止。需要使用时可重新申请连接。",
+ "clientIdentity": "应用自报编号:{{id}}\n版本:{{version}}\n名称和编号由申请方提供,不代表 Cindy 已验证其发布者。",
+ "revokeOneMessage": "撤销“{{app}}”的这条连接?",
+ "revokeOneDetail": "这条连接正在运行的任务会停止。其他应用连接不受影响。需要使用时可重新申请连接。",
+ "revokeConnection": "撤销“{{app}}”的连接",
+ "clientId": "应用编号:{{id}}",
+ "operationFailed": "无法确认本机应用操作的结果,请先查看当前状态。",
+ "invalidConnection": "应用连接编号无效。",
+ "revokeFailed": "无法确认撤销结果,请查看当前连接状态。",
+ "loading": "正在读取应用连接…",
+ "revoking": "正在撤销连接…",
+ "authorizationRequired": "此操作需要有效的本机应用授权。",
+ "pairExpired": "连接申请已过期或取消,请从应用重新申请连接。",
+ "busy": "本机应用仍有执行正在运行,或已达到执行上限,请先结束不用的执行。",
+ "limitReached": "已达到本机应用连接上限,请在设置中撤销不用的连接。",
+ "invalidWorkspace": "应用须指定此电脑上已存在的绝对工作目录。",
+ "sessionExists": "此应用连接已在使用该执行编号。",
+ "executionUnavailable": "所请求的执行或工具调用不可用,消息与工具操作未被重放。",
+ "selectionUnavailable": "所选模型、供应商或推理强度不可用,请在应用中重新选择。",
+ "requestNotReplayed": "此请求未被重复执行,请在应用中查看原操作结果。",
+ "storageUnavailable": "无法读取或保存本机应用连接数据,已保留现有授权记录。",
+ "stopUnconfirmed": "已阻止继续向此执行发送消息,但尚未确认进程已停止。",
+ "interactionUnavailable": "引擎需要此应用无法接收的交互操作。",
+ "interrupted": "本次发送已中断。",
+ "toolTimeout": "应用工具调用已超时,未自动重试。",
+ "connectResult": "请返回申请连接的应用查看结果,授权由 Cindy 确认窗口决定。",
+ "invalidRequest": "应用请求无效,或该操作不受支持。",
+ "hostInUse": "此配置的本机应用连接正由另一个 Cindy 实例管理,请在该实例中查看连接。",
+ "developerConnection": "开发连接",
+ "copyCode": "复制连接码",
+ "codeCopied": "连接码已复制",
+ "codeCopyFailed": "未能复制连接码",
+ "developerState": {
+ "ready": "供此电脑上的应用临时连接,仍需在此 Cindy 中授权。重启后需重新复制。",
+ "starting": "正在准备连接…",
+ "owner-unavailable": "请先登录或进入本地模式",
+ "host-in-use": "此数据目录的连接正由另一个 Cindy 管理",
+ "failed": "本机连接未能启动",
+ "stopped": "本机连接已停止"
+ }
},
"mailReader": {
"markReadFailed": "未能同步已读状态,请检查邮箱授权后重新打开。",
@@ -979,7 +1046,6 @@
"SSH_HARNESS_SWITCH_UNSUPPORTED": "此 SSH 任务暂不支持切换 Harness。请选择当前 Harness 下的模型,或使用所需 Harness 新建 SSH 任务。",
"MODEL_SELECTION_UNAVAILABLE": "所选模型在该供应商下已不可用。请在设置中检查连接,或重新选择可用模型。",
"HARNESS_SWITCH_NOT_READY": "Harness 尚未完成切换。请查看错误详情,待 Harness 就绪后重试。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 无法读取源附件,消息未发送。请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。",
"DEVICE_LINK_BUSY": "远端繁忙,请稍后重试。",
"INVALID_PARAMS": "参数无效,请检查后重试。",
"PRECONDITION_FAILED": "当前状态下无法执行此操作,请稍后重试。",
@@ -1029,8 +1095,8 @@
"SSH_HOST_KEY_MISMATCH": "SSH 主机密钥已变化"
},
"providerError": {
- "AUTH_INVALID": "当前接口认证失败,请检查地址、密钥和认证方式",
- "AUTH_FORBIDDEN": "当前接口拒绝访问,请检查套餐、模型或地区权限",
+ "AUTH_INVALID": "API 密钥无效或已过期(401),请检查密钥后重试",
+ "AUTH_FORBIDDEN": "密钥有效但无权访问(403),请检查套餐或模型权限",
"RATE_LIMITED": "请求被限流(429),请稍后重试",
"QUOTA_EXCEEDED": "配额或余额不足,请检查供应商账户",
"MODEL_NOT_FOUND": "模型不存在或无权使用,请检查模型 ID",
@@ -3252,13 +3318,8 @@
"placeholder": "选择一个模板…"
},
"test": {
- "inconclusive": "暂时无法确认连接。请检查地址或网络后重试;上一条请求可能已执行。",
- "exhausted": "已尝试所有候选接口,暂未找到可用连接。",
- "costHint": "测试会发送简短生成请求,可能产生少量费用。",
- "details": "查看尝试结果",
"button": "测试连接",
"testing": "测试中…",
- "stop": "停止测试",
"ok": "连接成功({{ms}}ms)",
"needFields": "请先填写基础 URL 和至少一个模型 ID",
"unsupportedProtocol": "测试连接暂不支持该模型协议"
@@ -3499,7 +3560,6 @@
},
"effortMixed": "各引擎的档位不同;选择后应用于支持该档位的引擎。",
"protocol": {
- "automatic": "自动选择",
"reference": "原生协议",
"compatibility": "兼容模式",
"compatibilityHint": "兼容模式可能出现运行不稳定或功能异常,建议有经验的用户使用。",
@@ -3850,10 +3910,6 @@
"modelCount": "已配置 {{count}} 个模型",
"modelsAutomatic": "模型资料自动获取。单个模型的设置在模型列表中调整。",
"manualModel": "模型 ID(无法自动获取时填写)",
- "manualAdd": "手动添加模型",
- "manualId": "模型 ID",
- "saveProvider": "保存供应商",
- "removeModel": "移除模型",
"modelTypeAutomatic": "自动识别",
"manualModelTypeHint": "同一 ID 可更新类型;自动识别会恢复目录中的类型。",
"mediaOnlyTestHint": "此连接仅含非对话模型。可获取模型列表检查目录访问,此处不验证模型调用。"
@@ -3866,17 +3922,6 @@
"unavailable": "暂时不可用"
},
"claudeAccountRetired": "Cindy 已不再支持通过这条旧版 Claude 连接登录订阅,不影响你的 Claude 账号和订阅。请改用「使用 Claude Code 登录」连接订阅",
- "detection": {
- "keyRequired": "填写 API 密钥后继续。",
- "authRejected": "认证未通过,请检查地址和 API 密钥,修改后会自动重试。",
- "hint": "填写地址和 API 密钥后自动识别供应商。保存后可在编辑连接中调整协议。",
- "pending": "正在识别供应商…",
- "matched": "已识别为 {{name}}",
- "ambiguous": "匹配到多个配置,请继续自定义或选择供应商。",
- "custom": "继续自定义配置,可获取模型列表或手动添加。",
- "configure": "前往配置",
- "keepCustom": "继续自定义"
- },
"speechSetup": {
"title": "语音",
"add": "添加语音模型",
@@ -8820,7 +8865,6 @@
"task": "任务运行",
"service": "账户与模型"
},
- "sessionDetail": "任务:{{title}}",
"services": {
"audio": "音频服务",
"network": "网络服务",
@@ -11621,8 +11665,6 @@
"errorBanner": {
"requestFormatError": "应用发送的请求格式有误,本次回复未能完成。",
"replyFailed": "回复未完成",
- "attachmentAccessDeniedTitle": "Cindy 无法读取源附件,消息未发送。",
- "attachmentAccessDeniedRecovery": "请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。",
"retryTitle": "重新发送最后一条消息",
"cancelTitle": "关闭错误提示",
"retry": "重试",
@@ -12362,7 +12404,6 @@
"LOCAL_OLLAMA_NOT_READY": "本机 Ollama 还没就绪。请打开设置 → 模型供应商 → Ollama。",
"DEVICE_LINK_CONTROL_DISABLED": "已关闭对该设备的控制,消息未发送。",
"DEVICE_LINK_MEDIA_TRANSFER_FAILED": "附件传输失败,消息未发送。请重试。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 无法读取源附件,消息未发送。请将文件另存到“下载”或其他可访问的文件夹,移除原附件,再用附件按钮添加副本后发送。",
"MCP_APPROVAL_AUTO_BLOCKED": "这次工具调用被自动审核拦截,未收到你手动拒绝的记录。",
"MCP_APPROVAL_CONFIRMATION_TIMEOUT": "权限确认超时,未收到有效的确认结果。仅凭超时无法判断你是否点过按钮。",
"MCP_APPROVAL_CONFIRMATION_UNAVAILABLE": "这次权限确认未完成,未收到你手动拒绝的记录。",
@@ -13266,10 +13307,7 @@
"treeLoading": "正在加载文件…",
"treeAction": {
"collapseAll": "收起所有",
- "refresh": "刷新",
- "showIgnoredDirs": "显示被忽略的目录",
- "hideIgnoredDirs": "隐藏被忽略的目录",
- "showIgnoredDirsUnsupported": "对方设备的 {{appName}} 版本过旧,暂不支持显示被忽略的目录"
+ "refresh": "刷新"
},
"treeMenu": {
"newFile": "新建文件",
@@ -15361,19 +15399,6 @@
"dirUnavailable": "{{device}} 上的目录暂时无法访问。请检查连接或网络盘后重试。Worker 没有创建。"
}
},
- "editWorker": {
- "title": "编辑 Worker",
- "submit": "保存",
- "closeAria": "关闭编辑 Worker 弹窗",
- "labelLabel": "标识",
- "labelHint": "标识用于在团队内唯一识别这个 Worker,只能包含字母、数字、连字符和下划线;改动后 Lead 与各处引用按新标识定位。",
- "labelHintAria": "标识说明",
- "labelPlaceholder": "Worker 标识(留空表示不变)",
- "labelInvalid": "标识只能包含字母、数字、连字符和下划线",
- "duplicateLabel": "标识 {{label}} 已被本团队其他 Worker 使用",
- "saveFailed": "保存失败,请重试",
- "labelLocked": "该 Worker 的标识已被活跃的插件团队计划引用,计划结束前不能修改;可改角色名,或先释放该 Worker。"
- },
"rolePill": {
"unread": "未读更新",
"worker": "Worker",
@@ -15381,7 +15406,6 @@
"workerCountSummary_other": "{{totalCount}} 个 Worker · {{activeCount}} 运行中",
"statusAria": "状态 {{status}}",
"archiveWorkerAria": "归档 Worker {{name}}",
- "editWorkerAria": "编辑 Worker {{name}}",
"createWorker": "创建新 Worker",
"hardLimitHint": "已达硬上限 {{count}} 个 · 归档现有 Worker 后可继续创建",
"hardLimitSettingsHint": "已达硬上限 {{count}} 个 · 点击前往协同设置调整",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
index e9ccf19f32..315b7038a8 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json
@@ -1,10 +1,77 @@
{
- "providerAccountUsage": {"title":"帳戶餘額","refresh":"重新整理餘額","retry":"重試餘額查詢","updating":"正在查詢餘額…","updatedAt":"更新於 {{time}}","stale":"正在顯示舊快照","openDashboard":"開啟 DeepSeek 用量頁","deepSeek":{"granted":"贈送餘額","toppedUp":"儲值餘額","unavailable":"DeepSeek 暫時沒有提供餘額明細,請開啟用量頁或稍後重試。","empty":"DeepSeek 沒有回傳餘額明細,請開啟用量頁檢查帳戶。"},"zhipuCodingPlan":{"usage":"查看智譜套餐用量", "level": "方案:{{level}}", "fiveHour": "5 小時積分", "weekly": "每週積分", "usedPercent": "已用 {{value}}%", "resetsAt": "{{time}} 重置", "noPlan": "這把金鑰沒有訂閱 GLM Coding Plan(可能是按用量付費帳戶),請在官網確認。", "empty": "智譜沒有回傳配額窗口資訊,請稍後重試或開啟用量頁。"},"error":{"no-credentials":"這個供應商沒有可用的 API 金鑰,請編輯供應商並補齊金鑰。","auth":"供應商拒絕了這個 API 金鑰,請檢查或更換金鑰後重試。","rate-limited":"供應商限制了餘額查詢頻率,請稍後重試。","network":"Cindy 無法連線供應商,請檢查網路後重試。","server":"供應商暫時無法回傳餘額,請稍後重試。","invalid-response":"供應商回傳了無法辨識的餘額資料,請稍後重試。","throttled":"剛剛重新整理過餘額,請稍後重試。","unknown":"Cindy 無法載入供應商餘額,請稍後重試。"}},
- "localAgent": {"title":"本機應用程式連線","empty":"尚未連接應用程式","description":"允許已授權的本機應用程式使用 Cindy 的模型與執行能力。供應商登入仍由 Cindy 管理。","revoke":"撤銷連線","failed":"無法讀取應用程式連線。","connectTitle":"連接本機應用程式","connectMessage":"允許「{{app}}」使用 Cindy?","connectDetail":"此應用程式可以查看模型與供應商目錄、建立自己的執行並提供工具。原生執行可以依目前系統使用者的權限讀寫檔案、執行命令;工作目錄不限制存取範圍。供應商憑證保留在 Cindy。可在設定 → 遠端連線 → 本機應用程式連線中個別撤銷連線。","cancel":"取消","allow":"允許連接","revokeMessage":"撤銷所有本機應用程式連線?","revokeDetail":"所有本機應用程式連線將失效,正在執行的接入任務會停止。需要時可重新申請連線。","clientIdentity":"應用程式自報編號:{{id}}\n版本:{{version}}\n名稱與編號由申請方提供,不代表 Cindy 已驗證其發行者。","revokeOneMessage":"撤銷「{{app}}」的這條連線?","revokeOneDetail":"透過此連線執行的任務會停止。其他應用程式連線不受影響,需要時可重新申請連線。","revokeConnection":"撤銷「{{app}}」的連線","clientId":"應用程式編號:{{id}}","operationFailed":"無法確認本機應用程式操作的結果,請先查看目前狀態。","invalidConnection":"應用程式連線編號無效。","revokeFailed":"無法確認撤銷結果,請查看目前連線狀態。","loading":"正在讀取應用程式連線…","revoking":"正在撤銷連線…","authorizationRequired":"此操作需要有效的本機應用程式授權。","pairExpired":"連線申請已過期或取消,請從應用程式重新申請連線。","busy":"本機應用程式仍有執行正在運行,或已達執行上限,請先結束不用的執行。","limitReached":"已達本機應用程式連線上限,請在設定中撤銷不用的連線。","invalidWorkspace":"應用程式須指定此電腦上已存在的絕對工作目錄。","sessionExists":"此應用程式連線已在使用該執行編號。","executionUnavailable":"所請求的執行或工具呼叫無法使用,訊息與工具操作未被重播。","selectionUnavailable":"所選模型、供應商或推理強度無法使用,請在應用程式中重新選擇。","requestNotReplayed":"此請求未被重複執行,請在應用程式中查看原操作結果。","storageUnavailable":"無法讀取或儲存本機應用程式連線資料,已保留現有授權紀錄。","stopUnconfirmed":"已阻止繼續向此執行傳送訊息,但尚未確認程序已停止。","interactionUnavailable":"引擎需要此應用程式無法接收的互動操作。","interrupted":"本次傳送已中斷。","toolTimeout":"應用程式工具呼叫已逾時,未自動重試。","connectResult":"請返回申請連線的應用程式查看結果,授權由 Cindy 確認視窗決定。","invalidRequest":"應用程式請求無效,或該操作不受支援。","hostInUse":"此設定檔的本機應用程式連線正由另一個 Cindy 執行個體管理,請在該執行個體中查看連線。","developerConnection":"開發連線","copyCode":"複製連線碼","codeCopied":"連線碼已複製","codeCopyFailed":"無法複製連線碼","developerState":{"ready":"供此電腦上的應用程式暫時連線,仍需在此 Cindy 中授權。重新啟動後需重新複製。","starting":"正在準備連線…","owner-unavailable":"請先登入或進入本機模式","host-in-use":"此資料目錄的連線正由另一個 Cindy 管理","failed":"本機連線未能啟動","stopped":"本機連線已停止"}},
- "attachmentAccessConfirmation": {
- "title": "確認附件存取",
- "message": "Cindy 無法讀取這個附件。請選擇原始檔案,確認後繼續傳送這則訊息;取消會保留草稿。",
- "button": "使用原始檔案"
+ "providerAccountUsage": {
+ "openDashboard": "開啟 DeepSeek 用量頁",
+ "deepSeek": {
+ "balanceLine": "餘額 {{total}}(儲值 {{toppedUp}} / 贈送 {{granted}})",
+ "chipBalance": "餘額 {{balance}}"
+ },
+ "zhipuCodingPlan": {
+ "usage": "查看智譜套餐用量",
+ "noPlan": "這把金鑰沒有訂閱 GLM Coding Plan(可能是按用量付費帳戶),請在官網確認。"
+ },
+ "error": {
+ "no-credentials": "這個供應商沒有可用的 API 金鑰,請編輯供應商並補齊金鑰。",
+ "auth": "供應商拒絕了這個 API 金鑰,請檢查或更換金鑰後重試。",
+ "rate-limited": "供應商限制了餘額查詢頻率,請稍後重試。",
+ "network": "Cindy 無法連線供應商,請檢查網路後重試。",
+ "server": "供應商暫時無法回傳餘額,請稍後重試。",
+ "invalid-response": "供應商回傳了無法辨識的餘額資料,請稍後重試。",
+ "throttled": "剛剛重新整理過餘額,請稍後重試。",
+ "unknown": "Cindy 無法載入供應商餘額,請稍後重試。"
+ }
+ },
+ "localAgent": {
+ "title": "本機應用程式連線",
+ "empty": "尚未連接應用程式",
+ "description": "允許已授權的本機應用程式使用 Cindy 的模型與執行能力。供應商登入仍由 Cindy 管理。",
+ "revoke": "撤銷連線",
+ "failed": "無法讀取應用程式連線。",
+ "connectTitle": "連接本機應用程式",
+ "connectMessage": "允許「{{app}}」使用 Cindy?",
+ "connectDetail": "此應用程式可以查看模型與供應商目錄、建立自己的執行並提供工具。原生執行可以依目前系統使用者的權限讀寫檔案、執行命令;工作目錄不限制存取範圍。供應商憑證保留在 Cindy。可在設定 → 遠端連線 → 本機應用程式連線中個別撤銷連線。",
+ "cancel": "取消",
+ "allow": "允許連接",
+ "revokeMessage": "撤銷所有本機應用程式連線?",
+ "revokeDetail": "所有本機應用程式連線將失效,正在執行的接入任務會停止。需要時可重新申請連線。",
+ "clientIdentity": "應用程式自報編號:{{id}}\n版本:{{version}}\n名稱與編號由申請方提供,不代表 Cindy 已驗證其發行者。",
+ "revokeOneMessage": "撤銷「{{app}}」的這條連線?",
+ "revokeOneDetail": "透過此連線執行的任務會停止。其他應用程式連線不受影響,需要時可重新申請連線。",
+ "revokeConnection": "撤銷「{{app}}」的連線",
+ "clientId": "應用程式編號:{{id}}",
+ "operationFailed": "無法確認本機應用程式操作的結果,請先查看目前狀態。",
+ "invalidConnection": "應用程式連線編號無效。",
+ "revokeFailed": "無法確認撤銷結果,請查看目前連線狀態。",
+ "loading": "正在讀取應用程式連線…",
+ "revoking": "正在撤銷連線…",
+ "authorizationRequired": "此操作需要有效的本機應用程式授權。",
+ "pairExpired": "連線申請已過期或取消,請從應用程式重新申請連線。",
+ "busy": "本機應用程式仍有執行正在運行,或已達執行上限,請先結束不用的執行。",
+ "limitReached": "已達本機應用程式連線上限,請在設定中撤銷不用的連線。",
+ "invalidWorkspace": "應用程式須指定此電腦上已存在的絕對工作目錄。",
+ "sessionExists": "此應用程式連線已在使用該執行編號。",
+ "executionUnavailable": "所請求的執行或工具呼叫無法使用,訊息與工具操作未被重播。",
+ "selectionUnavailable": "所選模型、供應商或推理強度無法使用,請在應用程式中重新選擇。",
+ "requestNotReplayed": "此請求未被重複執行,請在應用程式中查看原操作結果。",
+ "storageUnavailable": "無法讀取或儲存本機應用程式連線資料,已保留現有授權紀錄。",
+ "stopUnconfirmed": "已阻止繼續向此執行傳送訊息,但尚未確認程序已停止。",
+ "interactionUnavailable": "引擎需要此應用程式無法接收的互動操作。",
+ "interrupted": "本次傳送已中斷。",
+ "toolTimeout": "應用程式工具呼叫已逾時,未自動重試。",
+ "connectResult": "請返回申請連線的應用程式查看結果,授權由 Cindy 確認視窗決定。",
+ "invalidRequest": "應用程式請求無效,或該操作不受支援。",
+ "hostInUse": "此設定檔的本機應用程式連線正由另一個 Cindy 執行個體管理,請在該執行個體中查看連線。",
+ "developerConnection": "開發連線",
+ "copyCode": "複製連線碼",
+ "codeCopied": "連線碼已複製",
+ "codeCopyFailed": "無法複製連線碼",
+ "developerState": {
+ "ready": "供此電腦上的應用程式暫時連線,仍需在此 Cindy 中授權。重新啟動後需重新複製。",
+ "starting": "正在準備連線…",
+ "owner-unavailable": "請先登入或進入本機模式",
+ "host-in-use": "此資料目錄的連線正由另一個 Cindy 管理",
+ "failed": "本機連線未能啟動",
+ "stopped": "本機連線已停止"
+ }
},
"mailReader": {
"markReadFailed": "未能同步已讀狀態,請檢查信箱授權後重新開啟。",
@@ -979,7 +1046,6 @@
"SSH_HARNESS_SWITCH_UNSUPPORTED": "此 SSH 任務暫不支援切換 Harness。請選擇目前 Harness 下的模型,或使用所需 Harness 建立新的 SSH 任務。",
"MODEL_SELECTION_UNAVAILABLE": "所選模型在該供應商下已無法使用。請在設定中檢查連線,或重新選擇可用模型。",
"HARNESS_SWITCH_NOT_READY": "Harness 尚未完成切換。請查看錯誤詳細資訊,待 Harness 就緒後重試。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 無法讀取來源附件,訊息未傳送。請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。",
"DEVICE_LINK_BUSY": "遠端忙碌中,請稍後再試。",
"INVALID_PARAMS": "引數無效,請檢查後重試。",
"PRECONDITION_FAILED": "目前狀態下無法執行此操作,請稍後再試。",
@@ -1029,8 +1095,8 @@
"SSH_HOST_KEY_MISMATCH": "SSH 主機金鑰已變更"
},
"providerError": {
- "AUTH_INVALID": "目前介面驗證失敗,請檢查位址、金鑰和驗證方式",
- "AUTH_FORBIDDEN": "目前介面拒絕存取,請檢查方案、模型或地區權限",
+ "AUTH_INVALID": "API 金鑰無效或已過期(401),請檢查金鑰後重試",
+ "AUTH_FORBIDDEN": "金鑰有效但無權訪問(403),請檢查套餐或模型權限",
"RATE_LIMITED": "請求被限流(429),請稍後重試",
"QUOTA_EXCEEDED": "配額或餘額不足,請檢查供應商帳戶",
"MODEL_NOT_FOUND": "模型不存在或無權使用,請檢查模型 ID",
@@ -3252,13 +3318,8 @@
"placeholder": "選擇一個模板…"
},
"test": {
- "inconclusive": "暫時無法確認連線。請檢查位址或網路後重試;上一個請求可能已執行。",
- "exhausted": "已嘗試所有候選介面,暫未找到可用連線。",
- "costHint": "測試會傳送簡短生成請求,可能產生少量費用。",
- "details": "查看嘗試結果",
"button": "測試連線",
"testing": "測試中…",
- "stop": "停止測試",
"ok": "連線成功({{ms}}ms)",
"needFields": "請先填寫基礎 URL 和至少一個模型 ID",
"unsupportedProtocol": "測試連線暫不支援此模型協定"
@@ -3499,7 +3560,6 @@
},
"effortMixed": "各引擎的檔位不同;選擇後套用至支援該檔位的引擎。",
"protocol": {
- "automatic": "自動選擇",
"reference": "原生協定",
"compatibility": "相容模式",
"compatibilityHint": "相容模式可能出現執行不穩定或功能異常,建議有經驗的使用者使用。",
@@ -3850,10 +3910,6 @@
"modelCount": "已設定 {{count}} 個模型",
"modelsAutomatic": "模型資料自動取得。個別模型的設定請在模型清單調整。",
"manualModel": "模型 ID(無法自動取得時填寫)",
- "manualAdd": "手動新增模型",
- "manualId": "模型 ID",
- "saveProvider": "儲存供應商",
- "removeModel": "移除模型",
"modelTypeAutomatic": "自動辨識",
"manualModelTypeHint": "相同 ID 可更新類型;自動辨識會恢復目錄中的類型。",
"mediaOnlyTestHint": "此連線僅含非對話模型。可取得模型列表檢查目錄存取,此處不驗證模型呼叫。"
@@ -3866,17 +3922,6 @@
"unavailable": "暫時無法使用"
},
"claudeAccountRetired": "Cindy 已不再支援透過這筆舊版 Claude 連線登入訂閱,不影響你的 Claude 帳號和訂閱。請改用「使用 Claude Code 登入」連線訂閱",
- "detection": {
- "keyRequired": "填寫 API 金鑰後繼續。",
- "authRejected": "驗證未通過,請檢查位址和 API 金鑰,修改後會自動重試。",
- "hint": "填寫網址和 API 金鑰後自動識別供應商。儲存後可在編輯連線中調整協定。",
- "pending": "正在識別供應商…",
- "matched": "已識別為 {{name}}",
- "ambiguous": "符合多個設定,請繼續自訂或選擇供應商。",
- "custom": "繼續自訂設定,可取得模型清單或手動新增。",
- "configure": "前往設定",
- "keepCustom": "繼續自訂"
- },
"speechSetup": {
"title": "語音",
"add": "新增語音模型",
@@ -8820,7 +8865,6 @@
"task": "任務執行",
"service": "帳戶與模型"
},
- "sessionDetail": "任務:{{title}}",
"services": {
"audio": "音訊服務",
"network": "網路服務",
@@ -11620,8 +11664,6 @@
"errorBanner": {
"requestFormatError": "應用程式送出的請求格式有誤,本次回覆未能完成。",
"replyFailed": "回覆未完成",
- "attachmentAccessDeniedTitle": "Cindy 無法讀取來源附件,訊息未傳送。",
- "attachmentAccessDeniedRecovery": "請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。",
"retryTitle": "重新傳送最後一條訊息",
"cancelTitle": "關閉錯誤提示",
"retry": "重試",
@@ -12361,7 +12403,6 @@
"LOCAL_OLLAMA_NOT_READY": "本機 Ollama 尚未就緒。請打開設定 → 模型供應商 → Ollama。",
"DEVICE_LINK_CONTROL_DISABLED": "已關閉對該裝置的控制,訊息未傳送。",
"DEVICE_LINK_MEDIA_TRANSFER_FAILED": "附件傳輸失敗,訊息未傳送。請重試。",
- "DEVICE_LINK_MEDIA_ACCESS_DENIED": "Cindy 無法讀取來源附件,訊息未傳送。請將檔案另存到「下載」或其他可存取的資料夾,移除原附件,再用附件按鈕加入副本後傳送。",
"MCP_APPROVAL_AUTO_BLOCKED": "這次工具呼叫被自動審核攔截,未收到你手動拒絕的紀錄。",
"MCP_APPROVAL_CONFIRMATION_TIMEOUT": "權限確認逾時,未收到有效的確認結果。僅憑逾時無法判斷你是否點過按鈕。",
"MCP_APPROVAL_CONFIRMATION_UNAVAILABLE": "這次權限確認未完成,未收到你手動拒絕的紀錄。",
@@ -13266,10 +13307,7 @@
"treeLoading": "正在載入檔案…",
"treeAction": {
"collapseAll": "收起所有",
- "refresh": "重新整理",
- "showIgnoredDirs": "顯示被忽略的目錄",
- "hideIgnoredDirs": "隱藏被忽略的目錄",
- "showIgnoredDirsUnsupported": "對方裝置的 {{appName}} 版本過舊,暫不支援顯示被忽略的目錄"
+ "refresh": "重新整理"
},
"treeMenu": {
"newFile": "新建檔案",
@@ -15361,19 +15399,6 @@
"dirUnavailable": "{{device}} 上的目錄暫時無法存取。請檢查連線或網路磁碟後重試。Worker 沒有建立。"
}
},
- "editWorker": {
- "title": "編輯 Worker",
- "submit": "儲存",
- "closeAria": "關閉編輯 Worker 彈窗",
- "labelLabel": "標識",
- "labelHint": "標識用於在團隊內唯一識別這個 Worker,只能包含字母、數字、連字號與底線;改動後 Lead 與各處引用會依新標識定位。",
- "labelHintAria": "標識說明",
- "labelPlaceholder": "Worker 標識(留空表示不變更)",
- "labelInvalid": "標識只能包含字母、數字、連字號與底線",
- "duplicateLabel": "標識 {{label}} 已被本團隊其他 Worker 使用",
- "saveFailed": "儲存失敗,請重試",
- "labelLocked": "該 Worker 的標識已被活躍的插件團隊計畫引用,計畫結束前不能修改;可改角色名,或先釋放該 Worker。"
- },
"rolePill": {
"unread": "未讀更新",
"worker": "Worker",
@@ -15381,7 +15406,6 @@
"workerCountSummary_other": "{{totalCount}} 個 Worker · {{activeCount}} 執行中",
"statusAria": "狀態 {{status}}",
"archiveWorkerAria": "歸檔 Worker {{name}}",
- "editWorkerAria": "編輯 Worker {{name}}",
"createWorker": "建立新 Worker",
"hardLimitHint": "已達硬上限 {{count}} 個 · 歸檔現有 Worker 後可繼續建立",
"hardLimitSettingsHint": "已達硬上限 {{count}} 個 · 點擊前往協同設定調整",
diff --git a/apps/desktop/src/renderer/lib/providerAccountUsageView.ts b/apps/desktop/src/renderer/lib/providerAccountUsageView.ts
new file mode 100644
index 0000000000..1b63c39dae
--- /dev/null
+++ b/apps/desktop/src/renderer/lib/providerAccountUsageView.ts
@@ -0,0 +1,42 @@
+/**
+ * API Key 供应商账户接口的 renderer 侧视图判定(与 main 侧认领规则同口径,见
+ * maker-host/provider-account-usage.ts 的 INTEGRATIONS)。
+ *
+ * 依据官方接入端点而不是 provider 名字:内置预设与从模板创建的自定义连接都按
+ * baseUrl 识别;走代理 / 自定义域名的连接不算(key 属于代理,main 侧也不会认领)。
+ */
+
+import type { ProviderView } from '@cindy/model-providers';
+
+const DEEPSEEK_ORIGIN = 'https://api.deepseek.com';
+const ZHIPU_ANTHROPIC_BASE = 'https://open.bigmodel.cn/api/anthropic';
+const ZHIPU_CODING_PREFIX = 'https://open.bigmodel.cn/api/coding/';
+
+function routingUpstreams(provider: ProviderView | undefined | null): string[] {
+ return Object.values(provider?.routing ?? {}).map(
+ (route) => (route as { upstream?: string } | undefined)?.upstream ?? '',
+ );
+}
+
+/** 任一 runtime 是否指向官方 DeepSeek 端点。 */
+export function hasDeepSeekOfficialRouteView(provider: ProviderView | undefined | null): boolean {
+ return routingUpstreams(provider).some((upstream) => {
+ if (!upstream) return false;
+ try {
+ const url = new URL(upstream);
+ return url.protocol === 'https:' && url.origin === DEEPSEEK_ORIGIN;
+ } catch {
+ return false;
+ }
+ });
+}
+
+/** 是否智谱 GLM Coding Plan 接入(/api/anthropic 或 /api/coding/*);按量付费不算。 */
+export function isZhipuCodingPlanProviderView(provider: ProviderView | undefined | null): boolean {
+ if (!provider) return false;
+ if (provider.id === 'zhipu-coding-plan-cn') return true;
+ return routingUpstreams(provider).some(
+ (upstream) =>
+ upstream === ZHIPU_ANTHROPIC_BASE || upstream.startsWith(ZHIPU_CODING_PREFIX),
+ );
+}
diff --git a/apps/desktop/src/renderer/lib/zhipuCodingPlan.ts b/apps/desktop/src/renderer/lib/zhipuCodingPlan.ts
deleted file mode 100644
index 437c189da3..0000000000
--- a/apps/desktop/src/renderer/lib/zhipuCodingPlan.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-/**
- * 智谱 GLM Coding Plan 连接识别(renderer 侧视图判定;main 侧同口径见
- * maker-host/provider-account-usage.ts 的 isZhipuCodingPlanProvider)。
- *
- * 依据官方接入端点而不是 provider 名字:内置预设(zhipu-coding-plan-cn)与从模板创建的
- * 自定义连接(baseUrl 指向 open.bigmodel.cn/api/anthropic 或 /api/coding/*)都算;
- * 按量计费的开放平台连接(open.bigmodel.cn/api/paas/*)不算——它没有 Coding 套餐额度页。
- */
-
-import type { ProviderView } from '@cindy/model-providers';
-
-const ZHIPU_ANTHROPIC_BASE = 'https://open.bigmodel.cn/api/anthropic';
-const ZHIPU_CODING_PREFIX = 'https://open.bigmodel.cn/api/coding/';
-
-export function isZhipuCodingPlanProviderView(provider: ProviderView | undefined | null): boolean {
- if (!provider) return false;
- if (provider.id === 'zhipu-coding-plan-cn') return true;
- return Object.values(provider.routing ?? {}).some((route) => {
- const upstream = (route as { upstream?: string } | undefined)?.upstream;
- if (!upstream) return false;
- return upstream === ZHIPU_ANTHROPIC_BASE || upstream.startsWith(ZHIPU_CODING_PREFIX);
- });
-}