Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(i18n): 补全桌面端与移动端界面翻译
davidd10d31ca581a
diff --git a/apps/desktop/src/main/maker-ipc/register.ts b/apps/desktop/src/main/maker-ipc/register.tsindex 11c6ffa84d..eb4b937dd9 100644--- a/apps/desktop/src/main/maker-ipc/register.ts+++ b/apps/desktop/src/main/maker-ipc/register.ts@@ -14108,7 +14108,7 @@ export function registerMakerIpc(maker: Maker, options: RegisterMakerIpcOptions)BrowserWindow.fromWebContents(e.sender) ?? BrowserWindow.getFocusedWindow() ?? undefined;const defaultPath = path.join(app.getPath('documents'), 'cindy-session.html');const picked = await dialog.showSaveDialog(parent!, {- title: 'Export session to HTML',+ title: t('ccAgent.sidebar.sessionMenu.exportHtml'),defaultPath,filters: [{ name: 'HTML', extensions: ['html'] }],});diff --git a/apps/desktop/src/renderer/__tests__/i18nCompleteness.test.ts b/apps/desktop/src/renderer/__tests__/i18nCompleteness.test.tsindex 5fe5d5fa75..785fb0515e 100644--- a/apps/desktop/src/renderer/__tests__/i18nCompleteness.test.ts+++ b/apps/desktop/src/renderer/__tests__/i18nCompleteness.test.ts@@ -28,9 +28,6 @@ const PLURAL_SUFFIXES = ['_zero', '_one', '_two', '_few', '_many', '_other'] as* 记录在案以免阻断 device-link 工作;后续按文件 owner 逐条补齐后从这里删除。*/const KNOWN_MISSING: ReadonlySet<string> = new Set([- 'ccAgent.workdirBrowse.fileBody.drawioLoading',- 'ccAgent.workdirBrowse.fileBody.pdfLoading',- 'chat.media.clickToZoom',]);function loadLocales(): Record<string, unknown>[] {diff --git a/apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx b/apps/desktop/src/renderer/components/chat/ChatAudioCard.tsxindex dbf1d9f9ef..bef3650f05 100644--- a/apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx+++ b/apps/desktop/src/renderer/components/chat/ChatAudioCard.tsx@@ -312,7 +312,7 @@ export function ChatAudioCard({ track, sessionId }: ChatAudioCardProps) {<buttontype="button"onClick={handleTogglePlay}- aria-label={playing ? 'Pause' : 'Play'}+ aria-label={playing ? t('chat.media.audioPause') : t('chat.media.audioPlay')}className={cn('flex h-7 w-7 shrink-0 items-center justify-center rounded-full','bg-[var(--msg-tool-card-text)] text-[var(--msg-tool-card-bg)]',diff --git a/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx b/apps/desktop/src/renderer/components/chat/GhostToolCard.tsxindex 785b21808f..43d069d577 100644--- a/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx+++ b/apps/desktop/src/renderer/components/chat/GhostToolCard.tsx@@ -98,7 +98,7 @@ function buildAudioRowHtml(durationLabel: string): string {'flex-shrink:0;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--msg-tool-card-chevron,#525252)';return ('<div data-x-row style="display:flex;align-items:center;gap:12px;user-select:none">' +- '<button type="button" data-x-play aria-label="Play" style="display:flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:9999px;border:0;padding:0;cursor:pointer;background:var(--msg-tool-card-text,#262626);color:var(--msg-tool-card-bg,#ffffff)">' ++ '<button type="button" data-x-play aria-label="" style="display:flex;width:28px;height:28px;flex:0 0 auto;align-items:center;justify-content:center;border-radius:9999px;border:0;padding:0;cursor:pointer;background:var(--msg-tool-card-text,#262626);color:var(--msg-tool-card-bg,#ffffff)">' +AUDIO_PLAY_SVG +'</button>' +`<span data-x-cur style="${timeStyle}">0:00</span>` +@@ -297,7 +297,10 @@ function GhostCardCanvas({curEl.textContent = formatAudioClock(a.currentTime);durEl.textContent = formatAudioClock(d);btn.innerHTML = a.paused ? AUDIO_PLAY_SVG : AUDIO_PAUSE_SVG;- btn.setAttribute('aria-label', a.paused ? 'Play' : 'Pause');+ btn.setAttribute(+ 'aria-label',+ a.paused ? t('chat.media.audioPlay') : t('chat.media.audioPause'),+ );};const onEnded = (): void => {// 与 ChatAudioCard 同观感:播完回 0:00 待重播。@@ -353,7 +356,7 @@ function GhostCardCanvas({});render();},- [],+ [t],);// 组件卸载:解绑 audio 监听、注销互斥总线、停播并释放媒体资源。diff --git a/apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx b/apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsxindex 715526eee4..dc27bc5649 100644--- a/apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx+++ b/apps/desktop/src/renderer/components/chat/JumpToBottomChip.tsx@@ -24,6 +24,7 @@*/import { ArrowDown } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { cn } from '@/lib/utils';@@ -42,6 +43,7 @@ export function JumpToBottomChip({onClick,bottomOffset,}: JumpToBottomChipProps) {+ const { t } = useTranslation();return (<divaria-live="polite"@@ -57,7 +59,7 @@ export function JumpToBottomChip({><buttontype="button"- aria-label="跳到底部"+ aria-label={t('chat.jumpToBottom')}onClick={onClick}className={cn(// 与 NewMessageIndicator 同款 pill 外形 (h-8 / px-3 py-1.5)@@ -76,7 +78,7 @@ export function JumpToBottomChip({<ArrowDown size={14} className="shrink-0" />{/* translate-y-[0.5px]:leading-none + 中文字符相对 icon 视觉中心偏上,微调 0.5px 下移让"跳到底部"和向下箭头的视觉中线对齐。 */}- <span className="translate-y-[0.5px]">跳到底部</span>+ <span className="translate-y-[0.5px]">{t('chat.jumpToBottom')}</span></button></div>);diff --git a/apps/desktop/src/renderer/components/chat/ModelLightbox.tsx b/apps/desktop/src/renderer/components/chat/ModelLightbox.tsxindex 7831a08a39..4ce92609a2 100644--- a/apps/desktop/src/renderer/components/chat/ModelLightbox.tsx+++ b/apps/desktop/src/renderer/components/chat/ModelLightbox.tsx@@ -239,7 +239,7 @@ export function ModelLightbox({ source, onClose }: ModelLightboxProps) {// renders.{...(modelUrl ? { src: modelUrl } : {})}{...(poster ? { poster } : {})}- alt="3D model preview"+ alt={t('chat.media.modelPreviewAlt')}// 带内嵌动画的 GLB(如 mivo animate_3d_model 绑定动作的产物)自动// 播放第一条动画轨;静态模型无动画轨时该属性为 no-op。autoplaydiff --git a/apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx b/apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsxindex 124f15da85..1eb280be11 100644--- a/apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx+++ b/apps/desktop/src/renderer/components/chat/PrevMessageJumpChip.tsx@@ -13,6 +13,7 @@*/import { ArrowUp } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { cn } from '@/lib/utils';@@ -36,11 +37,12 @@ export function PrevMessageJumpChip({preview,onClick,}: PrevMessageJumpChipProps) {+ const { t } = useTranslation();// 显隐由调用方决定:不需要时不挂载本组件。chip 在 TopRightChipStack 的// flex 栈里占一行,所以不能像旧 absolute 定位那样靠 opacity 隐身,否则// 会在 DiffToggle 下留一个空 28px 槽位。出场动画用 tailwindcss-animate// 的 mount-only 动画,符合"出现就动一下、消失瞬时"的预期。- const label = `跳到上一条提问:${preview}`;+ const label = t('chat.prevMessageJump', { preview });return (<buttondiff --git a/apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx b/apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsxindex c825a2204b..166f8f620e 100644--- a/apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx+++ b/apps/desktop/src/renderer/components/chat/ToolPayloadLightbox.tsx@@ -552,7 +552,7 @@ export function ToolPayloadLightbox({>Esc</span>- <span className="text-12 text-white/40">or click backdrop to close</span>+ <span className="text-12 text-white/40">{t('chat.textLightbox.closeHint')}</span></div></div>);diff --git a/apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx b/apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsxindex 5701faab68..aecea3405d 100644--- a/apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx+++ b/apps/desktop/src/renderer/components/settings/SshKeySetupDialog.tsx@@ -774,6 +774,7 @@ interface PasswordInputProps {function PasswordInput({label, value, onChange, disabled, visible, onToggleVisible, errorText, autoFocus, onSubmit,}: PasswordInputProps) {+ const { t } = useTranslation();return (<label className="flex flex-col gap-1"><span className="text-12 font-medium"@@ -808,7 +809,9 @@ function PasswordInput({type="button"onClick={onToggleVisible}disabled={disabled}- aria-label={visible ? 'Hide' : 'Show'}+ aria-label={+ visible ? t('sessionShare.export.hidePassword') : t('sessionShare.export.showPassword')+ }className="flex h-8 w-8 items-center justify-center"style={{ color: 'var(--settings-integration-subtitle)' }}>diff --git a/apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx b/apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsxindex a27164528e..353bbd3214 100644--- a/apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx+++ b/apps/desktop/src/renderer/components/settings/contacts/ContactDetailPane.tsx@@ -275,7 +275,9 @@ export function ContactDetailPane({ profile, groups, onChanged, onDelete }: Propsource: source.displayName,target: profile.displayName,}),- description: t('settings.contacts.merge.confirmDescription'),+ description: t('settings.contacts.merge.confirmDescription', {+ source: source.displayName,+ }),confirmText: t('settings.contacts.merge.confirm'),cancelText: t('settings.contacts.deleteConfirm.cancel'),});diff --git a/apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsx b/apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsxindex 371f443d88..788a4643f1 100644--- a/apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsx+++ b/apps/desktop/src/renderer/components/sidebar/VendorReadinessBadge.tsx@@ -3,6 +3,7 @@*/import type { Readiness } from '@/hooks/useVendorReadiness';+import { useTranslation } from 'react-i18next';const BADGE_MAP: Record<Exclude<Readiness, 'loading'>, string> = {ready: '🟢',@@ -15,8 +16,15 @@ interface VendorReadinessBadgeProps {}export function VendorReadinessBadge({ readiness }: VendorReadinessBadgeProps) {+ const { t } = useTranslation();if (readiness === 'loading') {- return <span className="text-10 text-muted-foreground" aria-label="loading">●</span>;+ return (+ <span className="text-10 text-muted-foreground" aria-label={t('sidebar.vendorReadiness.loading')}>+ ●+ </span>+ );}- return <span aria-label={readiness}>{BADGE_MAP[readiness]}</span>;+ return (+ <span aria-label={t(`sidebar.vendorReadiness.${readiness}`)}>{BADGE_MAP[readiness]}</span>+ );}diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsxindex d17cf162a5..6093e0fdd4 100644--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSessionView.tsx@@ -2645,7 +2645,7 @@ export function CCAgentSessionView({await sessionService.update(sessionId, { extraDirs: next });} catch (err) {log.warn('extraDirs DB update failed', err);- toast.error('附加目录保存失败');+ toast.error(t('ccAgent.layout.extraDirsSaveFailed'));return;}}@@ -2657,7 +2657,7 @@ export function CCAgentSessionView({}await refreshServerSession();},- [sessionId, refreshServerSession],+ [sessionId, refreshServerSession, t],);// /issue 命令的 composer 附件不随命令 payload 走 main IPC 往返 —— AttachedFile 是diff --git a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsxindex 459c313ef3..6e9efec236 100644--- a/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/RolePillDropdown.tsx@@ -84,6 +84,7 @@ function WorkerAvatar({showAttentionDot?: boolean;selected?: boolean;}) {+ const { t } = useTranslation();const vendor = agentKindToVendor(agent);const selectedIdleClassName =selected && status !== 'running' && status !== 'error'@@ -104,7 +105,7 @@ function WorkerAvatar({backgroundColor: 'var(--card-status-done)',boxShadow: '0 0 0 1.5px var(--surface-elevated)',}}- aria-label="unread"+ aria-label={t('orca.rolePill.unread')}/>)}</span>diff --git a/apps/desktop/src/renderer/features/cc-agent/sidebar/ScheduleBindingBadge.tsx b/apps/desktop/src/renderer/features/cc-agent/sidebar/ScheduleBindingBadge.tsxindex b57629e758..147f2ea476 100644--- a/apps/desktop/src/renderer/features/cc-agent/sidebar/ScheduleBindingBadge.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/sidebar/ScheduleBindingBadge.tsx@@ -40,7 +40,7 @@ function frequencyText(): string {return schedule.manual? t('scheduler.detail.manualTrigger')- : summarizeConfig(cronToConfig(schedule.cronExpr));+ : summarizeConfig(cronToConfig(schedule.cronExpr), t);}export function ScheduleBindingBadge({diff --git a/apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseRoute.tsx b/apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseRoute.tsxindex 8013424a88..536bd078cb 100644--- a/apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseRoute.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/workdir-browse/WorkdirBrowseRoute.tsx@@ -402,11 +402,11 @@ export function WorkdirBrowseRoute() {await sessionService.patchMeta(id, { title: newTitle });} catch (err) {log.error('[session rename] doc mode', err);- toast.error('重命名失败');+ toast.error(t('ccAgent.sidebar.renameFailed'));if (oldTitle !== undefined) sessionsHook.patchLocal(id, { title: oldTitle });}},- [sessionsHook],+ [sessionsHook, t],);// 关闭最后一个 tab / 关闭无邻居的 active tab → 清空 ?file= + 清空 selectedFile,diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsxindex 81ba9e2938..8541fa169a 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/orca-workers/OrcaWorkersAttentionIcon.tsx@@ -1,4 +1,5 @@import { UsersRound } from 'lucide-react';+import { useTranslation } from 'react-i18next';import { AttentionDot } from '@/components/sidebar/AttentionDot';import { useWorkerProjection } from '@/features/cc-agent/hooks/workerProjectionStore';@@ -11,6 +12,7 @@ export function OrcaWorkersAttentionIcon({sessionId: string | null;active: boolean;}) {+ const { t } = useTranslation();const attention = useWorkerAttentionSnapshot();const projection = useWorkerProjection(sessionId ?? '');const hasAttention = Boolean(@@ -22,7 +24,7 @@ export function OrcaWorkersAttentionIcon({<UsersRound size={13} />{!active && hasAttention && (<span- aria-label="unread"+ aria-label={t('orca.rolePill.unread')}className="absolute -right-[3px] -top-[3px] inline-flex rounded-full"style={{ boxShadow: '0 0 0 1.5px var(--surface)' }}>diff --git a/apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsx b/apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsxindex 3d37da8ce5..9704f55304 100644--- a/apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsx+++ b/apps/desktop/src/renderer/features/right-sidebar/plugins/web-browser/index.tsx@@ -18,6 +18,7 @@import { Globe, Volume2 } from 'lucide-react';import type { TFunction } from 'i18next';import { lazy, useState } from 'react';+import { useTranslation } from 'react-i18next';import { cn } from '@/lib/utils';@@ -77,6 +78,7 @@ function WebBrowserTabPillTitle({* favicon onError(404 / 取不到)→ 也走 fallback,不让破图占位。*/export function WebBrowserTabPillIcon({ state }: { state: WebBrowserState }) {+ const { t } = useTranslation();const base = state.favicon ? (<FaviconImagekey={state.favicon}@@ -95,7 +97,7 @@ export function WebBrowserTabPillIcon({ state }: { state: WebBrowserState }) {size={9}strokeWidth={2.5}className="pointer-events-none absolute -bottom-0.5 -right-1 text-[var(--accent-cta-bg)]"- aria-label="audible"+ aria-label={t('rightSidebar.browser.audible')}/></span>);diff --git a/apps/desktop/src/renderer/features/scheduler/components/RunHistoryCard.tsx b/apps/desktop/src/renderer/features/scheduler/components/RunHistoryCard.tsxindex ea825cc820..10003becf4 100644--- a/apps/desktop/src/renderer/features/scheduler/components/RunHistoryCard.tsx+++ b/apps/desktop/src/renderer/features/scheduler/components/RunHistoryCard.tsx@@ -155,7 +155,7 @@ export function RunHistoryCard({const metaText =run.status === 'running'- ? formatStartedAgo(run.firedAt)+ ? formatStartedAgo(run.firedAt, Date.now(), t): t('scheduler.runs.took', { duration: formatDuration(run.firedAt, run.finishedAt) });const costText = run.status === 'running'? null@@ -276,7 +276,7 @@ export function RunHistoryCard({)}</span><span className="truncate text-14 font-medium text-[var(--msg-assistant-text)]">- {formatRunTimestamp(run.firedAt)}+ {formatRunTimestamp(run.firedAt, Date.now(), t)}</span></div><StatusChip status={run.status} />diff --git a/apps/desktop/src/renderer/features/scheduler/components/RunHistoryPane.tsx b/apps/desktop/src/renderer/features/scheduler/components/RunHistoryPane.tsxindex 00b8ffb376..136d639f8f 100644--- a/apps/desktop/src/renderer/features/scheduler/components/RunHistoryPane.tsx+++ b/apps/desktop/src/renderer/features/scheduler/components/RunHistoryPane.tsx@@ -208,9 +208,9 @@ export function RunHistoryPane({// manual schedule 不参与 cron,cron 字段是占位 → header 显示 "Manual trigger"。const cronText = s.manual? t('scheduler.detail.manualTrigger')- : summarizeConfig(cronToConfig(s.cronExpr));+ : summarizeConfig(cronToConfig(s.cronExpr), t);const agentText = humanizeAgentKind(s.agentKind);- const dest = describeDestination(s);+ const dest = describeDestination(s, t);// title 兜底显示完整路径,悬浮即可看到 — basename 视觉简洁,hover/title 看全量const titleText = `${cronText} · ${agentText} · ${dest.prefix}${dest.workingDir ?? ''}`;diff --git a/apps/desktop/src/renderer/features/scheduler/components/ScheduleChips.tsx b/apps/desktop/src/renderer/features/scheduler/components/ScheduleChips.tsxindex 3de8e092e6..6720f1e9d3 100644--- a/apps/desktop/src/renderer/features/scheduler/components/ScheduleChips.tsx+++ b/apps/desktop/src/renderer/features/scheduler/components/ScheduleChips.tsx@@ -378,7 +378,7 @@ export function ScheduleChip({const intervalIsPreset = timingPresentation.kind !== 'intervalExact';const scheduleUnset = intervalMs === undefined && cronExpr.trim() === '';const scheduleSummary = intervalMs === undefined- ? summarizeConfig(normalizeScheduleConfig(config))+ ? summarizeConfig(normalizeScheduleConfig(config), t): formatIntervalDuration(intervalMs, i18n.resolvedLanguage ?? i18n.language);const chipLabel = scheduleUnset? t('scheduler.chips.chooseTime')@@ -575,21 +575,21 @@ function ScheduleConfigPanel({{(mode === 'daily' || mode === 'weekdays') && (<><TimeRow config={panelConfig} onFocus={commit} onUpdate={(patch) => onUpdate({ mode, ...patch })} />- <PreviewPill text={summarizeConfig(panelConfig)} />+ <PreviewPill text={summarizeConfig(panelConfig, t)} /></>)}{mode === 'weekly' && (<><WeekdayRow value={panelConfig.weekday} onFocus={commit} onChange={(weekday) => onUpdate({ mode: 'weekly', weekday })} /><TimeRow config={panelConfig} onFocus={commit} onUpdate={(patch) => onUpdate({ mode: 'weekly', ...patch })} />- <PreviewPill text={summarizeConfig(panelConfig)} />+ <PreviewPill text={summarizeConfig(panelConfig, t)} /></>)}{mode === 'monthly' && (<><MonthDayRow value={panelConfig.monthDay} onFocus={commit} onChange={(monthDay) => onUpdate({ mode: 'monthly', monthDay })} /><TimeRow config={panelConfig} onFocus={commit} onUpdate={(patch) => onUpdate({ mode: 'monthly', ...patch })} />- <PreviewPill text={summarizeConfig(panelConfig)} />+ <PreviewPill text={summarizeConfig(panelConfig, t)} /></>)}</div>@@ -931,6 +931,7 @@ function WeekdayRow({onFocus: () => void;multi?: boolean;}) {+ const { t } = useTranslation();const selected = multi ? [1, 2, 3, 4, 5] : [value];return (<div className="flex min-h-[34px] w-full items-center">@@ -949,9 +950,11 @@ function WeekdayRow({? 'border-transparent bg-[var(--chat-input-chip-bg)] font-medium text-[var(--msg-assistant-text)] dark:bg-[var(--chat-input-chip-bg)] dark:text-[var(--msg-assistant-text)]': 'border-[var(--cmd-palette-border)] bg-transparent text-[var(--cmd-palette-item-meta)] hover:bg-[var(--confirm-btn-secondary-hover)] dark:border-[var(--cmd-palette-border)] dark:hover:bg-[var(--settings-btn-secondary-hover-bg)]',)}- aria-label={WEEKDAY_LABELS[day]}+ aria-label={t(`scheduler.presentation.weekday.full.${day}`)}>- {WEEKDAY_SHORT[day]}+ {t(`scheduler.presentation.weekday.short.${day}`, {+ defaultValue: WEEKDAY_SHORT[day],+ })}</button>);})}diff --git a/apps/desktop/src/renderer/features/scheduler/components/ScheduleStatusChip.tsx b/apps/desktop/src/renderer/features/scheduler/components/ScheduleStatusChip.tsxindex 280673ae6c..b1f5ca3385 100644--- a/apps/desktop/src/renderer/features/scheduler/components/ScheduleStatusChip.tsx+++ b/apps/desktop/src/renderer/features/scheduler/components/ScheduleStatusChip.tsx@@ -13,6 +13,7 @@import { cn } from '@/lib/utils';import type { ScheduleStatus } from '@cindy/maker-scheduler';+import { useTranslation } from 'react-i18next';export type ChipVariant = ScheduleStatus | 'running';@@ -23,14 +24,9 @@ interface Props {// 内部 status 'expired' 对外显示成 "Once" — 一次性任务跑完是预期终态,// "Expired" 字样会让用户误以为任务出错。-const VARIANT_LABEL: Record<ChipVariant, string> = {- active: 'Active',- paused: 'Paused',- expired: 'Once',- running: 'Running',-};-export function ScheduleStatusChip({ variant, className }: Props) {+ const { t } = useTranslation();+ const label = t(`scheduler.presentation.status.${variant}`);const isFilled = variant === 'active' || variant === 'running';return (<span@@ -44,7 +40,7 @@ export function ScheduleStatusChip({ variant, className }: Props) {: 'border border-[var(--cmd-palette-border)] bg-transparent text-[var(--settings-section-desc)]',className,)}- aria-label={`Status: ${VARIANT_LABEL[variant]}`}+ aria-label={t('scheduler.runs.statusAria', { status: label })}>{variant === 'running' && (<span@@ -52,7 +48,7 @@ export function ScheduleStatusChip({ variant, className }: Props) {aria-hidden/>)}- {VARIANT_LABEL[variant]}+ {label}</span>);}diff --git a/apps/desktop/src/renderer/features/scheduler/components/TaskListCell.tsx b/apps/desktop/src/renderer/features/scheduler/components/TaskListCell.tsxindex 7cc6db35f8..e5256afd2d 100644--- a/apps/desktop/src/renderer/features/scheduler/components/TaskListCell.tsx+++ b/apps/desktop/src/renderer/features/scheduler/components/TaskListCell.tsx@@ -155,8 +155,8 @@ export function TaskListCell({// · 没跑过 → "Next in Y" · 没下一次 → "Last X ago"// 用 lastFiredAt(上一次开始时间)而不是 lastFinishedAt:用户更关心"任务上次什么时候被触发",// 而不是"上次跑完是什么时候"。长跑任务在 running 中也能立刻看到 "Last HH:mm"。- const lastText = formatLastRun(s.lastFiredAt);- const nextText = s.status === 'active' ? formatNextRun(s.nextFireAt) : null;+ const lastText = formatLastRun(s.lastFiredAt, Date.now(), t);+ const nextText = s.status === 'active' ? formatNextRun(s.nextFireAt, Date.now(), t) : null;let subtitle: string | null;if (queuedForSession) {// 排在目标会话队列里等派发 —— 比"没抢到执行槽"更靠前判定:这一轮已经触发过了,diff --git a/apps/desktop/src/renderer/features/scheduler/lib/cronCodexPreset.ts b/apps/desktop/src/renderer/features/scheduler/lib/cronCodexPreset.tsindex 3c3172fd9a..9ec9a5a561 100644--- a/apps/desktop/src/renderer/features/scheduler/lib/cronCodexPreset.ts+++ b/apps/desktop/src/renderer/features/scheduler/lib/cronCodexPreset.ts@@ -1,3 +1,5 @@+import type { TFunction } from 'i18next';+/*** cronCodexPreset — codex 8 种 schedule mode ↔ 5-field cron 双向转换* ---------------------------------------------------------------------------@@ -311,29 +313,43 @@ export function switchScheduleTimingMode(}/** chip 文案:mode + 关键参数;"每天 09:00" / "工作日 09:00" / "每 2 小时" */-export function summarizeConfig(c: CodexScheduleConfig): string {- const t = `${pad(c.hour)}:${pad(c.minute)}`;+export function summarizeConfig(c: CodexScheduleConfig, translate?: TFunction): string {+ const time = `${pad(c.hour)}:${pad(c.minute)}`;+ const text = (key: string, fallback: string, values?: Record<string, string | number>) =>+ translate?.(key, { defaultValue: fallback, ...values }) ?? fallback;switch (c.mode) {case 'minute':- return 'Every minute';+ return text('scheduler.chips.schedulePreview.everyMinute', 'Every minute');case 'hourly':- return 'Hourly';+ return text('scheduler.presentation.summary.hourly', 'Hourly');case 'daily':- return `Daily at ${t}`;+ return text('scheduler.presentation.summary.daily', `Daily at ${time}`, { time });case 'weekly':- return `${WEEKDAY_LABELS[c.weekday]} at ${t}`;+ return text('scheduler.presentation.summary.weekly', `${WEEKDAY_LABELS[c.weekday]} at ${time}`, {+ weekday: text(`scheduler.presentation.weekday.full.${c.weekday}`, WEEKDAY_LABELS[c.weekday]),+ time,+ });case 'weekdays':- return `Weekdays at ${t}`;+ return text('scheduler.presentation.summary.weekdays', `Weekdays at ${time}`, { time });case 'weekends':- return `Weekends at ${t}`;+ return text('scheduler.presentation.summary.weekends', `Weekends at ${time}`, { time });case 'monthly':- return `Monthly on day ${c.monthDay} at ${t}`;+ return text('scheduler.presentation.summary.monthly', `Monthly on day ${c.monthDay} at ${time}`, {+ day: c.monthDay,+ time,+ });case 'interval':- return `Every ${c.intervalHours} hours`;+ return text('scheduler.chips.schedulePreview.everyHours', `Every ${c.intervalHours} hours`, {+ count: c.intervalHours,+ });case 'intervalMinutes':- return c.intervalMinutes === 1 ? 'Every minute' : `Every ${c.intervalMinutes} minutes`;+ return c.intervalMinutes === 1+ ? text('scheduler.chips.schedulePreview.everyMinute', 'Every minute')+ : text('scheduler.chips.schedulePreview.everyMinutes', `Every ${c.intervalMinutes} minutes`, {+ count: c.intervalMinutes,+ });case 'custom':- return c.customCron || 'Custom';+ return c.customCron || text('scheduler.presentation.summary.custom', 'Custom');}}diff --git a/apps/desktop/src/renderer/features/scheduler/lib/formatters.ts b/apps/desktop/src/renderer/features/scheduler/lib/formatters.tsindex b66a56fa5a..9318d5dcce 100644--- a/apps/desktop/src/renderer/features/scheduler/lib/formatters.ts+++ b/apps/desktop/src/renderer/features/scheduler/lib/formatters.ts@@ -10,6 +10,7 @@*/import type { AgentKind } from '@cindy/maker-scheduler';+import type { TFunction } from 'i18next';import { stripTrailingPathSeparators } from '../../../../shared/pathText';@@ -54,15 +55,25 @@ function startOfLocalDay(d: Date): Date {* - 跨天同年 → "Last 04-30 14:23"* - 跨年 → "Last 2025-04-12 14:23"*/-export function formatLastRun(lastFiredAt?: number, now: number = Date.now()): string | null {+export function formatLastRun(+ lastFiredAt?: number,+ now: number = Date.now(),+ translate?: TFunction,+): string | null {if (!lastFiredAt) return null;const fired = new Date(lastFiredAt);const today = startOfLocalDay(new Date(now));const firedDay = startOfLocalDay(fired);const time = hm(fired);- if (firedDay.getTime() === today.getTime()) return `Last ${time}`;- if (fired.getFullYear() === new Date(now).getFullYear()) return `Last ${md(fired)} ${time}`;- return `Last ${ymd(fired)} ${time}`;+ const value = firedDay.getTime() === today.getTime()+ ? time+ : fired.getFullYear() === new Date(now).getFullYear()+ ? `${md(fired)} ${time}`+ : `${ymd(fired)} ${time}`;+ return translate?.('scheduler.presentation.time.last', {+ defaultValue: `Last ${value}`,+ value,+ }) ?? `Last ${value}`;}/**@@ -72,7 +83,11 @@ export function formatLastRun(lastFiredAt?: number, now: number = Date.now()): s* - 7d 以内 → '3 days ago, 09:00:09'* - 7d 以外 → '2025-04-12 09:00:11'*/-export function formatRunTimestamp(firedAt: number, now: number = Date.now()): string {+export function formatRunTimestamp(+ firedAt: number,+ now: number = Date.now(),+ translate?: TFunction,+): string {const fired = new Date(firedAt);const today = startOfLocalDay(new Date(now));const firedDay = startOfLocalDay(fired);@@ -80,9 +95,25 @@ export function formatRunTimestamp(firedAt: number, now: number = Date.now()): sconst time = hms(fired);// 用中点分隔,避免 'Today,' 小写 x-height 和 '09:25:47' 数字 cap-height// 在同一行被视觉对比时显得 "数字偏高"。中点把两段隔成并列块,眼睛不再比顶边。- if (diffDays <= 0) return `Today · ${time}`;- if (diffDays === 1) return `Yesterday · ${time}`;- if (diffDays < 7) return `${diffDays} days ago · ${time}`;+ if (diffDays <= 0) {+ return translate?.('scheduler.presentation.time.today', {+ defaultValue: `Today · ${time}`,+ time,+ }) ?? `Today · ${time}`;+ }+ if (diffDays === 1) {+ return translate?.('scheduler.presentation.time.yesterday', {+ defaultValue: `Yesterday · ${time}`,+ time,+ }) ?? `Yesterday · ${time}`;+ }+ if (diffDays < 7) {+ return translate?.('scheduler.presentation.time.daysAgo', {+ defaultValue: `${diffDays} days ago · ${time}`,+ count: diffDays,+ time,+ }) ?? `${diffDays} days ago · ${time}`;+ }return `${ymd(fired)} ${time}`;}@@ -105,11 +136,31 @@ export function formatUsd(costUsd: number): string {}/** Running 中的 run 用:"Started 12s ago" / "Started 4m ago" / "Started 2h ago"。 */-export function formatStartedAgo(start: number, now: number = Date.now()): string {+export function formatStartedAgo(+ start: number,+ now: number = Date.now(),+ translate?: TFunction,+): string {const diff = Math.max(0, now - start);- if (diff < MS_MIN) return `Started ${Math.floor(diff / 1000)}s ago`;- if (diff < MS_HOUR) return `Started ${Math.floor(diff / MS_MIN)}m ago`;- return `Started ${Math.floor(diff / MS_HOUR)}h ago`;+ if (diff < MS_MIN) {+ const count = Math.floor(diff / 1000);+ return translate?.('scheduler.presentation.time.startedSeconds', {+ defaultValue: `Started ${count}s ago`,+ count,+ }) ?? `Started ${count}s ago`;+ }+ if (diff < MS_HOUR) {+ const count = Math.floor(diff / MS_MIN);+ return translate?.('scheduler.presentation.time.startedMinutes', {+ defaultValue: `Started ${count}m ago`,+ count,+ }) ?? `Started ${count}m ago`;+ }+ const count = Math.floor(diff / MS_HOUR);+ return translate?.('scheduler.presentation.time.startedHours', {+ defaultValue: `Started ${count}h ago`,+ count,+ }) ?? `Started ${count}h ago`;}/**@@ -122,11 +173,18 @@ export function formatStartedAgo(start: number, now: number = Date.now()): strin* - 跨天同年 → "Next 05-11 09:00 (in 2d)"* - 跨年 → "Next 2027-01-02 09:00 (in 1d)"*/-export function formatNextRun(nextFireAt?: number, now: number = Date.now()): string | null {+export function formatNextRun(+ nextFireAt?: number,+ now: number = Date.now(),+ translate?: TFunction,+): string | null {if (!nextFireAt) return null;const diff = nextFireAt - now;- if (diff <= 0) return 'Next less than 1 min';- if (diff < MS_MIN) return 'Next less than 1 min';+ if (diff <= 0 || diff < MS_MIN) {+ return translate?.('scheduler.presentation.time.nextLessThanMinute', {+ defaultValue: 'Next less than 1 min',+ }) ?? 'Next less than 1 min';+ }const next = new Date(nextFireAt);const today = startOfLocalDay(new Date(now));const nextDay = startOfLocalDay(next);@@ -139,7 +197,11 @@ export function formatNextRun(nextFireAt?: number, now: number = Date.now()): stif (nextDay.getTime() === today.getTime()) when = time;else if (next.getFullYear() === new Date(now).getFullYear()) when = `${md(next)} ${time}`;else when = `${ymd(next)} ${time}`;- return `Next ${when} (in ${interval})`;+ return translate?.('scheduler.presentation.time.next', {+ defaultValue: `Next ${when} (in ${interval})`,+ interval,+ when,+ }) ?? `Next ${when} (in ${interval})`;}/** Working dir 用 …/<parent>/<basename> 简显,避免一长串绝对路径撑爆 pane header。 */@@ -180,10 +242,36 @@ export function describeDestination(s: {workspaceKind?: 'project' | 'dialogue';workingDir?: string;useWorktree: boolean;-}): { prefix: string; workingDir?: string } {- if (s.targetSessionId) return { prefix: `Heartbeat to session ${s.targetSessionId.slice(0, 8)}` };- if (s.workspaceKind === 'dialogue') return { prefix: 'New dialogue' };- const base = s.useWorktree ? 'New worktree session' : 'New session';+}, translate?: TFunction): { prefix: string; workingDir?: string } {+ if (s.targetSessionId) {+ const id = s.targetSessionId.slice(0, 8);+ return {+ prefix: translate?.('scheduler.presentation.destination.boundSession', {+ defaultValue: `Heartbeat to session ${id}`,+ id,+ }) ?? `Heartbeat to session ${id}`,+ };+ }+ if (s.workspaceKind === 'dialogue') {+ return {+ prefix: translate?.('scheduler.presentation.destination.newDialogue', {+ defaultValue: 'New dialogue',+ }) ?? 'New dialogue',+ };+ }+ const base = s.useWorktree+ ? translate?.('scheduler.presentation.destination.newWorktreeSession', {+ defaultValue: 'New worktree session',+ }) ?? 'New worktree session'+ : translate?.('scheduler.presentation.destination.newSession', {+ defaultValue: 'New session',+ }) ?? 'New session';if (!s.workingDir) return { prefix: base };- return { prefix: `${base} in `, workingDir: s.workingDir };+ return {+ prefix: translate?.('scheduler.presentation.destination.inDirectory', {+ defaultValue: `${base} in `,+ base,+ }) ?? `${base} in `,+ workingDir: s.workingDir,+ };}diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.jsonindex ca0be705c5..85a9f6ef05 100644--- a/apps/desktop/src/renderer/i18n/locales/en/common.json+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json@@ -5502,6 +5502,7 @@},"browser": {"newTab": "New tab",+ "audible": "Playing audio","urlPlaceholder": "Enter URL or search","goBack": "Back","goForward": "Forward",@@ -6085,6 +6086,12 @@}},"sidebar": {+ "vendorReadiness": {+ "loading": "Checking availability",+ "ready": "Ready",+ "unauthenticated": "Sign-in required",+ "binary-missing": "Component unavailable"+ },"ariaLabel": "Sidebar navigation","horizontalTabbarAria": "Main view switcher","tabs": {@@ -6124,11 +6131,11 @@"enabled": "Enabled"},"close": "Close Download Dialog"- },- "vendorReadiness": {- "loading": "loading"}},+ "common": {+ "dismiss": "Dismiss"+ },"commonUi": {"crossAgentConvert": {"asking": {@@ -6579,6 +6586,7 @@"popoverTitle": "Bring in a Worker","startButton": "Start collab","startFailed": "Failed to start collaboration",+ "stopFailed": "Failed to stop collaboration","startFailedContinue": "Failed to start collaboration. Continuing as a single session.","createWorkerRefreshFailed": "Unable to refresh Worker status. Please try again.","assignmentFailed": "The Worker was created, but task assignment could not be confirmed. Check the Worker pane before trying again.",@@ -6859,6 +6867,8 @@"verificationFailed": "Cindy couldn’t confirm whether the ChatGPT sign-in has recovered. Check again."},"chat": {+ "jumpToBottom": "Jump to bottom",+ "prevMessageJump": "Jump to previous prompt: {{preview}}","sessionLoading": "Loading task","askUserQuestion": {"skippedAnswer": "Skipped",@@ -7096,6 +7106,10 @@"dismissTitle": "Not now"},"media": {+ "clickToZoom": "Click to zoom",+ "audioPlay": "Play audio",+ "audioPause": "Pause audio",+ "modelPreviewAlt": "3D model preview","imageCopied": "Image copied","copyFailed": "Copy failed","openFolderFailed": "Failed to open folder",@@ -7771,6 +7785,9 @@"cancel": "Cancel"},"chatPlaceholder": "Let's keep chatting…",+ "worktreeCreating": "Creating worktree",+ "worktreeFailed": "Worktree creation failed",+ "extraDirsSaveFailed": "Failed to save additional directories","chatDropAreaAria": "Chat file drop area","openWorkingDirAria": "Open working directory in the system file manager","projectContextLoaded": "Project Knowledge Base loaded",@@ -8311,6 +8328,8 @@"revealFolder": "Show in folder"},"fileBody": {+ "drawioLoading": "Loading draw.io preview…",+ "pdfLoading": "Loading PDF preview…","selectFile": "Select a file to preview","readFailed": "Read file failed: {{message}}","truncatedNotice": "File is large, only the first 2 MB are shown — open in system to view the full content",@@ -8440,6 +8459,45 @@"ultra": "Ultra"},"scheduler": {+ "presentation": {+ "status": {+ "active": "Active",+ "paused": "Paused",+ "expired": "Once",+ "running": "Running"+ },+ "summary": {+ "hourly": "Hourly",+ "daily": "Daily at {{time}}",+ "weekly": "{{weekday}} at {{time}}",+ "weekdays": "Weekdays at {{time}}",+ "weekends": "Weekends at {{time}}",+ "monthly": "Monthly on day {{day}} at {{time}}",+ "custom": "Custom"+ },+ "weekday": {+ "full": { "0": "Sunday", "1": "Monday", "2": "Tuesday", "3": "Wednesday", "4": "Thursday", "5": "Friday", "6": "Saturday" },+ "short": { "0": "Su", "1": "Mo", "2": "Tu", "3": "We", "4": "Th", "5": "Fr", "6": "Sa" }+ },+ "time": {+ "last": "Last {{value}}",+ "today": "Today · {{time}}",+ "yesterday": "Yesterday · {{time}}",+ "daysAgo": "{{count}} days ago · {{time}}",+ "startedSeconds": "Started {{count}}s ago",+ "startedMinutes": "Started {{count}}m ago",+ "startedHours": "Started {{count}}h ago",+ "nextLessThanMinute": "Next less than 1 min",+ "next": "Next {{when}} (in {{interval}})"+ },+ "destination": {+ "boundSession": "Bound to session {{id}}",+ "newDialogue": "New dialogue",+ "newWorktreeSession": "New worktree session",+ "newSession": "New session",+ "inDirectory": "{{base}} in "+ }+ },"page": {"title": "Automations","totalCount": "{{count}} total",@@ -9972,6 +10030,7 @@"enableCollabSubmit": "Start Collaboration"},"rolePill": {+ "unread": "Unread update","worker": "Worker","workersHeader": "Workers","workerCountSummary_one": "{{totalCount}} worker · {{activeCount}} active",diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.jsonindex 32ff15150d..8be0c06dae 100644--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json@@ -1161,10 +1161,10 @@"summary": {"total": "表示中","totalHint": "インポート対象として選択可能",- "projects": "Existing project sessions",- "projectsHint": "Sessions under current sidebar projects",- "dialogue": "New folder sessions",- "dialogueHint": "Sessions that will create project groups",+ "projects": "既存プロジェクトのセッション",+ "projectsHint": "現在のサイドバーのプロジェクトに属するセッション",+ "dialogue": "新規フォルダーのセッション",+ "dialogueHint": "プロジェクトグループを作成するセッション","filtered": "スキップ済み","filteredHint": "内部セッション、または既にアプリ内に存在"},@@ -1175,7 +1175,7 @@"codex": "Codex","claude": "Claude","project": "既存プロジェクト",- "dialogue": "New folders"+ "dialogue": "新規フォルダー"},"toast": {"scanFailed": "スキャンに失敗しました",@@ -1968,7 +1968,7 @@"note": "現在の QR コードスキャンユーザーにバインドされています。他の人からのプライベートメッセージは自動的に無視されます。","serviceLabel": "サービス","appIdLabel": "App ID",- "ownerLabel": "Owner",+ "ownerLabel": "オーナー","ownerWaiting": "初回プライベートメッセージのバインドを待機中","reconnect": "{{service}} ボットを再接続","clear": "連携解除"@@ -5295,18 +5295,18 @@"title": "パネルを開く","desc": "ファイル、レビュー、アクティビティモニタ、内蔵ブラウザ、ターミナルを開いて、左側のチャットと並行して作業できます。","openFile": "ファイルを開く",- "fileSub": "Files",+ "fileSub": "ファイル","openReview": "レビューを開く",- "reviewSub": "Review",+ "reviewSub": "レビュー","openSubagents": "サブエージェントを開く","subagentsSub": "後から確認できる子タスク","openBackgroundTasks": "バックグラウンドタスクを開く",- "backgroundTasksSub": "Background tasks",+ "backgroundTasksSub": "バックグラウンドタスク","openResourceUsage": "アクティビティモニタを開く","openBrowser": "ブラウザを開く",- "browserSub": "Browser",+ "browserSub": "ブラウザ","openTerminal": "ターミナルを開く",- "terminalSub": "Terminal",+ "terminalSub": "ターミナル","addMoreHint": "上部の + ボタンからほかのパネルタイプを選択できます"},"placeholderHint": "{{kind}} — コンテンツは後続フェーズで追加されます"@@ -5500,6 +5500,7 @@},"browser": {"newTab": "新しいタブ",+ "audible": "音声を再生中","urlPlaceholder": "URL を入力または検索","goBack": "戻る","goForward": "進む",@@ -5612,7 +5613,7 @@"sessionRunningWriteBlocked": "エージェントの実行中は、git の書き込み操作を一時的に利用できません。","renamePartialNotice": "v1 ではリネームされたファイルはファイル全体のステージ/ステージ解除/元に戻すのみ対応しています。","typechangePartialNotice": "この種類のファイルは、ファイル全体のステージ/ステージ解除/元に戻すのみ対応しています。",- "aheadBehindTooltip": "{{upstream}}: {{ahead}} 件 ahead、{{behind}} 件 behind",+ "aheadBehindTooltip": "{{upstream}}:{{ahead}} 件先行、{{behind}} 件遅れ","writeDisabledNotice": "読み取り専用状態: {{reasons}}。git の変更は引き続き表示されます。","writeDisabledReasons": {"detached": "detached HEAD",@@ -6083,6 +6084,12 @@}},"sidebar": {+ "vendorReadiness": {+ "loading": "利用可否を確認中",+ "ready": "準備完了",+ "unauthenticated": "サインインが必要です",+ "binary-missing": "コンポーネントを利用できません"+ },"ariaLabel": "サイドバーナビゲーション","horizontalTabbarAria": "メインビュー切り替え","tabs": {@@ -6122,11 +6129,11 @@"enabled": "有効"},"close": "ダウンロード画面を閉じる"- },- "vendorReadiness": {- "loading": "読み込み中"}},+ "common": {+ "dismiss": "閉じる"+ },"commonUi": {"crossAgentConvert": {"asking": {@@ -6577,6 +6584,7 @@"popoverTitle": "Worker を呼ぶ","startButton": "協同を開始","startFailed": "協同の開始に失敗しました",+ "stopFailed": "協同を停止できませんでした","startFailedContinue": "協同の開始に失敗しました。単一セッションとして続行します。","createWorkerRefreshFailed": "Worker の状態を更新できませんでした。もう一度お試しください。","assignmentFailed": "Worker は作成されましたが、タスクが割り当てられたか確認できません。再試行する前に Worker パネルを確認してください。",@@ -6857,6 +6865,8 @@"verificationFailed": "ChatGPT ログインが復旧したか確認できませんでした。再確認してください。"},"chat": {+ "jumpToBottom": "一番下へ移動",+ "prevMessageJump": "前の質問へ移動:{{preview}}","sessionLoading": "セッションを読み込み中","askUserQuestion": {"skippedAnswer": "スキップ済み",@@ -7093,6 +7103,10 @@"dismissTitle": "今は復元しない"},"media": {+ "clickToZoom": "クリックして拡大",+ "audioPlay": "音声を再生",+ "audioPause": "音声を一時停止",+ "modelPreviewAlt": "3D モデルのプレビュー","imageCopied": "画像をコピーしました","copyFailed": "コピーに失敗しました","openFolderFailed": "フォルダを開けませんでした",@@ -7759,6 +7773,9 @@"cancel": "キャンセル"},"chatPlaceholder": "続けてやり取りしましょう…",+ "worktreeCreating": "worktree を作成中",+ "worktreeFailed": "worktree の作成に失敗しました",+ "extraDirsSaveFailed": "追加ディレクトリを保存できませんでした","chatDropAreaAria": "チャットのファイルドロップ領域","openWorkingDirAria": "作業ディレクトリをシステムのファイルマネージャーで開く","projectContextLoaded": "プロジェクトナレッジベースを読み込みました",@@ -8299,6 +8316,8 @@"revealFolder": "フォルダで表示"},"fileBody": {+ "drawioLoading": "draw.io プレビューを読み込み中…",+ "pdfLoading": "PDF プレビューを読み込み中…","selectFile": "ファイルを選択してプレビュー","readFailed": "ファイルの読み取りに失敗:{{message}}","truncatedNotice": "ファイルが大きすぎるため、先頭 2 MB のみ表示しています。完全な内容はシステムで開いてください",@@ -8428,6 +8447,45 @@"ultra": "究極"},"scheduler": {+ "presentation": {+ "status": {+ "active": "有効",+ "paused": "一時停止",+ "expired": "1回",+ "running": "実行中"+ },+ "summary": {+ "hourly": "毎時",+ "daily": "毎日 {{time}}",+ "weekly": "毎週{{weekday}} {{time}}",+ "weekdays": "平日 {{time}}",+ "weekends": "週末 {{time}}",+ "monthly": "毎月 {{day}} 日 {{time}}",+ "custom": "カスタム"+ },+ "weekday": {+ "full": { "0": "日曜日", "1": "月曜日", "2": "火曜日", "3": "水曜日", "4": "木曜日", "5": "金曜日", "6": "土曜日" },+ "short": { "0": "日", "1": "月", "2": "火", "3": "水", "4": "木", "5": "金", "6": "土" }+ },+ "time": {+ "last": "前回 {{value}}",+ "today": "今日 · {{time}}",+ "yesterday": "昨日 · {{time}}",+ "daysAgo": "{{count}} 日前 · {{time}}",+ "startedSeconds": "{{count}} 秒前に開始",+ "startedMinutes": "{{count}} 分前に開始",+ "startedHours": "{{count}} 時間前に開始",+ "nextLessThanMinute": "次回は 1 分以内",+ "next": "次回 {{when}}({{interval}} 後)"+ },+ "destination": {+ "boundSession": "タスク {{id}} に紐付け",+ "newDialogue": "新しい対話",+ "newWorktreeSession": "新しい worktree タスク",+ "newSession": "新しいタスク",+ "inDirectory": "{{base}}:"+ }+ },"page": {"title": "自動化","totalCount": "合計 {{count}} 件",@@ -8900,17 +8958,17 @@"nightly-test-heal": {"name": "夜間セルフヒーリングテスト","description": "毎晩テストを実行し、失敗項目を分離ワークツリーで最小修正",- "prompt": "Run the project's test suite. If there are failures, attempt a minimal fix in an isolated worktree.\nConstraints:\n- Determine the standard test command from the repo docs or package scripts before running the full suite\n- Only fix issues backed by clear failing evidence; prefer the smallest possible change and avoid drive-by refactoring\n- Re-run the affected tests after fixing to confirm they pass, and review the full diff\n- Deliver fixes through the repo's workflow (e.g. create a branch and open a PR); never commit directly to the main branch\n- For failures that cannot be fixed safely, report the cause, suspicious files, and suggested next steps"+ "prompt": "プロジェクトのテストスイートを実行し、失敗があれば隔離された worktree で最小限の修正を試みてください。\n制約:\n- リポジトリのドキュメントまたは package スクリプトから標準のテストコマンドを特定してから、テストスイート全体を実行する\n- 明確な失敗の証拠がある問題だけを修正し、影響範囲が最小の変更を優先して、ついでのリファクタリングは避ける\n- 修正後は関連テストを再実行して成功を確認し、diff 全体をレビューする\n- リポジトリのワークフローに従って修正を提出する(例:ブランチを作成して PR を開く)。main ブランチを直接変更しない\n- 安全に修正できない失敗については、原因、疑わしいファイル、推奨する調査手順を報告する"},"pr-gatekeeper": {"name": "PR ゲートキーパー","description": "平日にオープン PR の新規変更を事前レビューし、重大度別にリスクを報告",- "prompt": "Review the repository's open PRs and pre-screen their new changes.\nConstraints:\n- Go through open PRs with new commits in the past 24 hours (on Monday, look back over the whole weekend), citing PR numbers, file paths, and concrete diffs\n- Focus on correctness, security, data-loss, and compatibility issues, graded by severity\n- Only report issues backed by evidence and describe the failure scenario; do not nitpick on style preferences\n- Unless explicitly authorized, only output review conclusions; do not comment on PRs or change code"+ "prompt": "リポジトリで現在オープンな PR を確認し、新しい変更を事前レビューしてください。\n制約:\n- 過去 24 時間以内に新しいコミットがあるオープン PR を 1 件ずつ確認する(月曜日は週末全体を対象)。PR 番号、ファイルパス、具体的な diff を引用する\n- 正確性、セキュリティ、データ損失、互換性の問題に重点を置き、深刻度別に分類する\n- 証拠で裏付けられる問題だけを報告し、失敗シナリオを説明する。スタイル上の好みだけで指摘しない\n- ユーザーが明示的に許可しない限り、レビュー結果のみを出力し、PR へのコメントやコード変更は行わない"},"domain-radar": {"name": "分野レーダー","description": "注目分野の最新動向を定期収集し、見解付きサマリーを出力",- "prompt": "Collect the latest developments about \"{{topic}}\" from the past 24 hours (on Monday, look back over the whole weekend) and produce an opinionated digest.\nConstraints:\n- Use web search, cross-check multiple sources before trusting a claim, and cite the source link for every item\n- Prefer substantive developments (releases, research, policy, notable discussions); filter out marketing fluff and reposts\n- For each item, add a one-line judgement on why it matters instead of dumping links\n- When information is scarce or sources are questionable, say so honestly; never fabricate",+ "prompt": "テーマ「{{topic}}」について過去 24 時間の最新動向(月曜日は週末全体)を収集し、見解を含むダイジェストを作成してください。\n制約:\n- Web 検索を使い、複数の情報源で照合してから採用し、各項目に出典リンクを付ける\n- リリース、研究、政策、重要な議論など実質的な進展を優先し、宣伝記事や転載を除外する\n- リンクを並べるだけでなく、各動向に「なぜ注目すべきか」を 1 文で示す\n- 情報が少ない場合や情報源に疑義がある場合は率直に明記し、推測で補わない","params": {"topic": {"label": "注目テーマ",@@ -8921,7 +8979,7 @@"competitor-watch": {"name": "競合ウォッチ","description": "競合の製品・市場動向を週次でまとめ、自社への影響を分析",- "prompt": "Track the past week's activity of these competitors: {{competitors}}.\nConstraints:\n- Use web search to cover product updates, releases, pricing changes, market moves, and user sentiment, citing sources\n- Distinguish official information from third-party accounts; clearly mark unverified rumors\n- For each significant update, analyze what it means for us and suggest a response\n- If nothing substantive happened, say so honestly instead of padding the report",+ "prompt": "次の競合の過去 1 週間の動向を追跡してください:{{competitors}}。\n制約:\n- Web 検索で製品更新、リリース、価格変更、市場動向、ユーザー評価を調べ、出典を示す\n- 公式情報と第三者による情報を区別し、未確認の噂は明示する\n- 重要な動向ごとに、それが自社に何を意味するかを分析し、対応案を示す\n- 実質的な動きがない場合は、水増しせず率直にその旨を伝える","params": {"competitors": {"label": "競合リスト",@@ -8932,12 +8990,12 @@"weekly-work-draft": {"name": "週報ドラフトアシスタント","description": "作業ディレクトリのドキュメントから今週の作業を整理し、週報ドラフトを生成",- "prompt": "Based on this week's changes to documents, notes, and deliverables in the working directory, compile a weekly report draft.\nConstraints:\n- Only use content with actual modification traces in the working directory as evidence, citing the files\n- Organize as \"Done this week / In progress / Next week / Needs coordination\", concise enough to submit directly\n- Separate substantive progress from routine chores and highlight valuable output\n- Leave placeholders with notes where the material is insufficient so the user can fill them in"+ "prompt": "作業ディレクトリ内で今週変更されたドキュメント、メモ、成果物を基に、週報の下書きを作成してください。\n制約:\n- 作業ディレクトリ内に実際の変更履歴がある内容だけを根拠とし、対応するファイルを示す\n- 「今週完了 / 進行中 / 来週の予定 / 調整が必要」の構成で、そのまま提出できる簡潔な文章にする\n- 実質的な進捗と定常作業を区別し、価値のある成果を強調する\n- 判断材料が足りない箇所には説明付きのプレースホルダーを残し、ユーザーが追記できるようにする"},"knowledge-freshness": {"name": "ナレッジベース鮮度チェック","description": "毎月ドキュメントを点検し、古い内容や矛盾を洗い出す",- "prompt": "Health-check the documents in the working directory and find content that needs updating.\nConstraints:\n- Look for outdated information (stale dates, dead links, deprecated processes or tools), contradictions, and duplication\n- Cite the file path and location for every issue and explain the reasoning\n- Categorize as \"update / merge / delete\" suggestions and produce a revision checklist\n- Only output the report; do not modify the documents"+ "prompt": "作業ディレクトリ内のドキュメントを点検し、更新が必要な内容を見つけてください。\n制約:\n- 古い情報(過去の日付、無効なリンク、廃止された手順やツール)、矛盾、重複を確認する\n- 各問題についてファイルパスと具体的な場所を示し、判断理由を説明する\n- 「更新を推奨 / 統合を推奨 / 削除を推奨」に分類し、修正チェックリストを作成する\n- 点検レポートだけを出力し、ドキュメント自体は変更しない"}}}@@ -9526,7 +9584,7 @@"skillNameRequired": "スキル名は必須です","skillNameFormat": "形式:[a-z0-9-]+","displayNameLabel": "表示名",- "displayNamePlaceholder": "My Skill",+ "displayNamePlaceholder": "マイスキル","displayNameLimit": "最大 64 文字","descriptionLabel": "説明","descriptionPlaceholder": "この skill の用途を簡潔に",@@ -9959,6 +10017,7 @@"enableCollabSubmit": "コラボレーションを開始"},"rolePill": {+ "unread": "未読の更新","worker": "Worker","workersHeader": "Workers","workerCountSummary_other": "Worker 合計 {{totalCount}} · 稼働中 {{activeCount}}",diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.jsonindex d2974c15f0..d7993385b3 100644--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json@@ -1161,10 +1161,10 @@"summary": {"total": "표시됨","totalHint": "가져오기로 선택 가능",- "projects": "Existing project sessions",- "projectsHint": "Sessions under current sidebar projects",- "dialogue": "New folder sessions",- "dialogueHint": "Sessions that will create project groups",+ "projects": "기존 프로젝트 세션",+ "projectsHint": "현재 사이드바 프로젝트에 속한 세션",+ "dialogue": "새 폴더 세션",+ "dialogueHint": "프로젝트 그룹을 생성할 세션","filtered": "건너뜀","filteredHint": "내부 세션이거나 이미 앱에 있음"},@@ -1175,7 +1175,7 @@"codex": "Codex","claude": "Claude","project": "기존 프로젝트",- "dialogue": "New folders"+ "dialogue": "새 폴더"},"toast": {"scanFailed": "스캔 실패",@@ -1968,7 +1968,7 @@"note": "현재 QR 스캔 사용자에 바인딩되어 있으며, 다른 사람의 개인 메시지는 자동으로 무시됩니다.","serviceLabel": "서비스","appIdLabel": "App ID",- "ownerLabel": "Owner",+ "ownerLabel": "소유자","ownerWaiting": "첫 개인 메시지 바인딩 대기 중","reconnect": "{{service}} 봇 다시 연결","clear": "연동 해제"@@ -5295,18 +5295,18 @@"title": "패널 시작하기","desc": "왼쪽 채팅과 나란히 작업할 수 있도록 파일, 리뷰, 활성 상태 보기, 내장 브라우저, 터미널을 여기에 여세요.","openFile": "파일 열기",- "fileSub": "Files",+ "fileSub": "파일","openReview": "리뷰 열기",- "reviewSub": "Review",+ "reviewSub": "리뷰","openSubagents": "하위 에이전트 열기","subagentsSub": "나중에도 볼 수 있는 하위 작업","openBackgroundTasks": "백그라운드 작업 열기",- "backgroundTasksSub": "Background tasks",+ "backgroundTasksSub": "백그라운드 작업","openResourceUsage": "활성 상태 보기 열기","openBrowser": "브라우저 열기",- "browserSub": "Browser",+ "browserSub": "브라우저","openTerminal": "터미널 열기",- "terminalSub": "Terminal",+ "terminalSub": "터미널","addMoreHint": "위쪽 + 버튼에서 다른 패널 유형을 선택할 수 있어요"},"placeholderHint": "{{kind}} — 콘텐츠는 이후 단계에서 추가됩니다"@@ -5500,6 +5500,7 @@},"browser": {"newTab": "새 탭",+ "audible": "오디오 재생 중","urlPlaceholder": "URL 입력 또는 검색","goBack": "뒤로","goForward": "앞으로",@@ -5612,7 +5613,7 @@"sessionRunningWriteBlocked": "에이전트가 실행 중이라 git 쓰기 작업을 일시적으로 사용할 수 없습니다.","renamePartialNotice": "v1에서는 이름이 변경된 파일은 파일 전체 스테이지/스테이지 해제/되돌리기만 지원합니다.","typechangePartialNotice": "이 유형의 파일은 파일 전체 스테이지/스테이지 해제/되돌리기만 지원합니다.",- "aheadBehindTooltip": "{{upstream}}: {{ahead}} ahead, {{behind}} behind",+ "aheadBehindTooltip": "{{upstream}}: {{ahead}}개 앞섬, {{behind}}개 뒤처짐","writeDisabledNotice": "읽기 전용 상태: {{reasons}}. git 변경 사항은 계속 표시됩니다.","writeDisabledReasons": {"detached": "detached HEAD",@@ -6083,6 +6084,12 @@}},"sidebar": {+ "vendorReadiness": {+ "loading": "사용 가능 여부 확인 중",+ "ready": "준비됨",+ "unauthenticated": "로그인 필요",+ "binary-missing": "구성 요소를 사용할 수 없음"+ },"ariaLabel": "사이드바 네비게이션","horizontalTabbarAria": "메인 뷰 전환","tabs": {@@ -6122,11 +6129,11 @@"enabled": "켜짐"},"close": "다운로드 화면 닫기"- },- "vendorReadiness": {- "loading": "로딩 중"}},+ "common": {+ "dismiss": "닫기"+ },"commonUi": {"crossAgentConvert": {"asking": {@@ -6577,6 +6584,7 @@"popoverTitle": "Worker 부르기","startButton": "협업 시작","startFailed": "협업을 시작하지 못했습니다",+ "stopFailed": "협업을 중지하지 못했습니다","startFailedContinue": "협업을 시작하지 못했습니다. 단일 세션으로 계속합니다.","createWorkerRefreshFailed": "Worker 상태를 새로 고칠 수 없습니다. 다시 시도해 주세요.","assignmentFailed": "Worker를 만들었지만 작업 할당 여부를 확인할 수 없습니다. 다시 시도하기 전에 Worker 패널을 확인하세요.",@@ -6857,6 +6865,8 @@"verificationFailed": "ChatGPT 로그인이 복구되었는지 확인할 수 없습니다. 다시 확인해 주세요."},"chat": {+ "jumpToBottom": "맨 아래로 이동",+ "prevMessageJump": "이전 질문으로 이동: {{preview}}","sessionLoading": "세션 불러오는 중","askUserQuestion": {"skippedAnswer": "건너뜀",@@ -7093,6 +7103,10 @@"dismissTitle": "나중에"},"media": {+ "clickToZoom": "클릭하여 확대",+ "audioPlay": "오디오 재생",+ "audioPause": "오디오 일시 정지",+ "modelPreviewAlt": "3D 모델 미리보기","imageCopied": "이미지를 복사했습니다","copyFailed": "복사에 실패했습니다","openFolderFailed": "폴더를 열지 못했습니다",@@ -7759,6 +7773,9 @@"cancel": "취소"},"chatPlaceholder": "계속 이야기해 봐요…",+ "worktreeCreating": "worktree 생성 중",+ "worktreeFailed": "worktree 생성 실패",+ "extraDirsSaveFailed": "추가 디렉터리를 저장하지 못했습니다","chatDropAreaAria": "채팅 파일 드롭 영역","openWorkingDirAria": "작업 디렉터리를 시스템 파일 관리자에서 열기","projectContextLoaded": "프로젝트 지식베이스 로드됨",@@ -8299,6 +8316,8 @@"revealFolder": "폴더에서 보기"},"fileBody": {+ "drawioLoading": "draw.io 미리보기를 불러오는 중…",+ "pdfLoading": "PDF 미리보기를 불러오는 중…","selectFile": "미리 볼 파일을 선택하세요","readFailed": "파일 읽기 실패: {{message}}","truncatedNotice": "파일이 너무 큽니다. 처음 2 MB만 표시 — 전체 내용은 시스템에서 여세요",@@ -8428,6 +8447,45 @@"ultra": "극한"},"scheduler": {+ "presentation": {+ "status": {+ "active": "활성",+ "paused": "일시 중지",+ "expired": "일회성",+ "running": "실행 중"+ },+ "summary": {+ "hourly": "매시간",+ "daily": "매일 {{time}}",+ "weekly": "매주 {{weekday}} {{time}}",+ "weekdays": "평일 {{time}}",+ "weekends": "주말 {{time}}",+ "monthly": "매월 {{day}}일 {{time}}",+ "custom": "사용자 지정"+ },+ "weekday": {+ "full": { "0": "일요일", "1": "월요일", "2": "화요일", "3": "수요일", "4": "목요일", "5": "금요일", "6": "토요일" },+ "short": { "0": "일", "1": "월", "2": "화", "3": "수", "4": "목", "5": "금", "6": "토" }+ },+ "time": {+ "last": "마지막 {{value}}",+ "today": "오늘 · {{time}}",+ "yesterday": "어제 · {{time}}",+ "daysAgo": "{{count}}일 전 · {{time}}",+ "startedSeconds": "{{count}}초 전에 시작",+ "startedMinutes": "{{count}}분 전에 시작",+ "startedHours": "{{count}}시간 전에 시작",+ "nextLessThanMinute": "다음 실행까지 1분 미만",+ "next": "다음 {{when}}({{interval}} 후)"+ },+ "destination": {+ "boundSession": "작업 {{id}}에 연결",+ "newDialogue": "새 대화",+ "newWorktreeSession": "새 worktree 작업",+ "newSession": "새 작업",+ "inDirectory": "{{base}} · "+ }+ },"page": {"title": "자동화","totalCount": "총 {{count}}개",@@ -8900,17 +8958,17 @@"nightly-test-heal": {"name": "야간 자가 복구 테스트","description": "매일 밤 테스트를 실행하고 실패 항목을 격리 워크트리에서 최소 수정",- "prompt": "Run the project's test suite. If there are failures, attempt a minimal fix in an isolated worktree.\nConstraints:\n- Determine the standard test command from the repo docs or package scripts before running the full suite\n- Only fix issues backed by clear failing evidence; prefer the smallest possible change and avoid drive-by refactoring\n- Re-run the affected tests after fixing to confirm they pass, and review the full diff\n- Deliver fixes through the repo's workflow (e.g. create a branch and open a PR); never commit directly to the main branch\n- For failures that cannot be fixed safely, report the cause, suspicious files, and suggested next steps"+ "prompt": "프로젝트의 테스트 스위트를 실행하고, 실패 항목이 있으면 격리된 worktree에서 최소한의 수정을 시도하세요.\n제약 사항:\n- 전체 테스트를 실행하기 전에 저장소 문서나 package 스크립트에서 표준 테스트 명령을 확인합니다\n- 명확한 실패 증거가 있는 문제만 수정하고, 영향 범위가 가장 작은 변경을 우선하며 관련 없는 리팩터링은 피합니다\n- 수정 후 관련 테스트를 다시 실행해 통과 여부를 확인하고 전체 diff를 검토합니다\n- 저장소의 작업 흐름에 따라 수정 사항을 전달합니다(예: 브랜치를 만들고 PR 열기). main 브랜치를 직접 변경하지 않습니다\n- 안전하게 수정할 수 없는 실패 항목은 원인, 의심되는 파일, 권장 조사 단계를 보고합니다"},"pr-gatekeeper": {"name": "PR 게이트키퍼","description": "평일마다 오픈 PR의 새 변경을 사전 리뷰하고 심각도별로 위험 보고",- "prompt": "Review the repository's open PRs and pre-screen their new changes.\nConstraints:\n- Go through open PRs with new commits in the past 24 hours (on Monday, look back over the whole weekend), citing PR numbers, file paths, and concrete diffs\n- Focus on correctness, security, data-loss, and compatibility issues, graded by severity\n- Only report issues backed by evidence and describe the failure scenario; do not nitpick on style preferences\n- Unless explicitly authorized, only output review conclusions; do not comment on PRs or change code"+ "prompt": "저장소에서 현재 열려 있는 PR을 확인하고 새 변경 사항을 사전 검토하세요.\n제약 사항:\n- 지난 24시간 동안 새 커밋이 추가된 열린 PR을 하나씩 확인합니다(월요일에는 주말 전체를 확인). PR 번호, 파일 경로, 구체적인 diff를 인용합니다\n- 정확성, 보안, 데이터 손실, 호환성 문제를 중점적으로 찾고 심각도별로 분류합니다\n- 증거로 뒷받침되는 문제만 보고하고 실패 시나리오를 설명합니다. 스타일 취향만으로 지적하지 않습니다\n- 사용자가 명시적으로 허용하지 않는 한 검토 결과만 출력하고 PR에 댓글을 달거나 코드를 변경하지 않습니다"},"domain-radar": {"name": "관심 분야 레이더","description": "관심 분야의 최신 동향을 정기 수집해 관점 있는 요약 제공",- "prompt": "Collect the latest developments about \"{{topic}}\" from the past 24 hours (on Monday, look back over the whole weekend) and produce an opinionated digest.\nConstraints:\n- Use web search, cross-check multiple sources before trusting a claim, and cite the source link for every item\n- Prefer substantive developments (releases, research, policy, notable discussions); filter out marketing fluff and reposts\n- For each item, add a one-line judgement on why it matters instead of dumping links\n- When information is scarce or sources are questionable, say so honestly; never fabricate",+ "prompt": "주제 \"{{topic}}\"에 관한 지난 24시간의 최신 동향을 수집하고(월요일에는 주말 전체를 확인) 관점이 담긴 요약을 작성하세요.\n제약 사항:\n- Web 검색을 사용하고 여러 출처를 교차 확인한 뒤 정보를 채택하며, 각 항목에 출처 링크를 표시합니다\n- 출시, 연구, 정책, 주요 논의처럼 실질적인 진전을 우선하고 홍보성 글과 중복 게시물은 제외합니다\n- 링크만 나열하지 말고 각 동향이 왜 중요한지 한 문장으로 판단을 덧붙입니다\n- 정보가 부족하거나 출처가 의심스러우면 솔직히 밝히고 지어내지 않습니다","params": {"topic": {"label": "관심 주제",@@ -8921,7 +8979,7 @@"competitor-watch": {"name": "경쟁사 동향 추적","description": "경쟁사의 제품·시장 동향을 매주 정리하고 영향 분석",- "prompt": "Track the past week's activity of these competitors: {{competitors}}.\nConstraints:\n- Use web search to cover product updates, releases, pricing changes, market moves, and user sentiment, citing sources\n- Distinguish official information from third-party accounts; clearly mark unverified rumors\n- For each significant update, analyze what it means for us and suggest a response\n- If nothing substantive happened, say so honestly instead of padding the report",+ "prompt": "다음 경쟁사의 지난 일주일간 동향을 추적하세요: {{competitors}}.\n제약 사항:\n- Web 검색으로 제품 업데이트, 출시, 가격 변경, 시장 움직임, 사용자 반응을 조사하고 출처를 표시합니다\n- 공식 정보와 제3자 전언을 구분하고 확인되지 않은 소문은 명확히 표시합니다\n- 중요한 동향마다 우리에게 어떤 의미가 있는지 분석하고 대응 방안을 제안합니다\n- 실질적인 동향이 없다면 내용을 부풀리지 말고 솔직히 밝힙니다","params": {"competitors": {"label": "경쟁사 목록",@@ -8932,12 +8990,12 @@"weekly-work-draft": {"name": "주간 보고서 초안 도우미","description": "작업 디렉터리의 문서와 산출물로 주간 보고서 초안 생성",- "prompt": "Based on this week's changes to documents, notes, and deliverables in the working directory, compile a weekly report draft.\nConstraints:\n- Only use content with actual modification traces in the working directory as evidence, citing the files\n- Organize as \"Done this week / In progress / Next week / Needs coordination\", concise enough to submit directly\n- Separate substantive progress from routine chores and highlight valuable output\n- Leave placeholders with notes where the material is insufficient so the user can fill them in"+ "prompt": "작업 디렉터리에서 이번 주에 변경된 문서, 메모, 결과물을 바탕으로 주간 보고서 초안을 작성하세요.\n제약 사항:\n- 작업 디렉터리에 실제 변경 흔적이 있는 내용만 근거로 사용하고 해당 파일을 표시합니다\n- \"이번 주 완료 / 진행 중 / 다음 주 계획 / 협의 필요\" 구조로, 바로 제출할 수 있을 만큼 간결하게 작성합니다\n- 실질적인 진전과 반복 업무를 구분하고 가치 있는 결과물을 강조합니다\n- 판단할 자료가 부족한 부분에는 설명과 함께 자리 표시자를 남겨 사용자가 보완할 수 있게 합니다"},"knowledge-freshness": {"name": "지식 베이스 신선도 점검","description": "매월 문서를 점검해 오래된 내용과 모순 찾기",- "prompt": "Health-check the documents in the working directory and find content that needs updating.\nConstraints:\n- Look for outdated information (stale dates, dead links, deprecated processes or tools), contradictions, and duplication\n- Cite the file path and location for every issue and explain the reasoning\n- Categorize as \"update / merge / delete\" suggestions and produce a revision checklist\n- Only output the report; do not modify the documents"+ "prompt": "작업 디렉터리의 문서를 점검하고 업데이트가 필요한 내용을 찾으세요.\n제약 사항:\n- 오래된 정보(지난 날짜, 끊어진 링크, 폐기된 절차나 도구), 모순, 중복 내용을 확인합니다\n- 각 문제의 파일 경로와 구체적인 위치를 표시하고 판단 근거를 설명합니다\n- \"업데이트 권장 / 병합 권장 / 삭제 권장\"으로 분류하고 수정 체크리스트를 작성합니다\n- 점검 보고서만 출력하고 문서 자체는 수정하지 않습니다"}}}@@ -9526,7 +9584,7 @@"skillNameRequired": "스킬 이름은 필수입니다","skillNameFormat": "형식: [a-z0-9-]+","displayNameLabel": "표시 이름",- "displayNamePlaceholder": "My Skill",+ "displayNamePlaceholder": "내 스킬","displayNameLimit": "최대 64자","descriptionLabel": "설명","descriptionPlaceholder": "이 skill 의 용도를 간단히 설명",@@ -9959,6 +10017,7 @@"enableCollabSubmit": "협업 시작"},"rolePill": {+ "unread": "읽지 않은 업데이트","worker": "Worker","workersHeader": "Workers","workerCountSummary_other": "전체 Worker {{totalCount}} · 활성 {{activeCount}}",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.jsonindex 0a3074794e..5f96721fd2 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json@@ -1968,7 +1968,7 @@"note": "已绑定当前扫码用户,其他人私聊会被自动忽略。","serviceLabel": "服务","appIdLabel": "App ID",- "ownerLabel": "Owner",+ "ownerLabel": "主人","ownerWaiting": "等待首次私聊绑定","reconnect": "重新连接 {{service}} 机器人","clear": "解绑"@@ -5295,18 +5295,18 @@"title": "开始一个面板","desc": "在右侧打开文件、审查、资源监视器、内置浏览器或终端,与左侧对话并行工作。","openFile": "打开文件",- "fileSub": "Files",+ "fileSub": "文件","openReview": "打开审查",- "reviewSub": "Review",+ "reviewSub": "审查","openSubagents": "打开 Subagent","subagentsSub": "可持续回看的子任务","openBackgroundTasks": "打开后台任务",- "backgroundTasksSub": "Background tasks",+ "backgroundTasksSub": "后台任务","openResourceUsage": "打开资源监视器","openBrowser": "打开浏览器",- "browserSub": "Browser",+ "browserSub": "浏览器","openTerminal": "打开终端",- "terminalSub": "Terminal",+ "terminalSub": "终端","addMoreHint": "可通过顶部 + 按钮选择更多面板类型"},"placeholderHint": "{{kind}} — 内容将在后续阶段加入"@@ -5500,6 +5500,7 @@},"browser": {"newTab": "新标签",+ "audible": "正在播放音频","urlPlaceholder": "输入网址或搜索关键词","goBack": "后退","goForward": "前进",@@ -6083,6 +6084,12 @@}},"sidebar": {+ "vendorReadiness": {+ "loading": "正在检查可用状态",+ "ready": "已就绪",+ "unauthenticated": "需要登录",+ "binary-missing": "组件不可用"+ },"ariaLabel": "侧边栏导航","horizontalTabbarAria": "主区域视图切换","tabs": {@@ -6122,11 +6129,11 @@"enabled": "已开启"},"close": "关闭"- },- "vendorReadiness": {- "loading": "加载中"}},+ "common": {+ "dismiss": "关闭"+ },"commonUi": {"crossAgentConvert": {"asking": {@@ -6577,6 +6584,7 @@"popoverTitle": "召集 Worker 协作","startButton": "开启协同","startFailed": "开启协同失败",+ "stopFailed": "关闭协同失败","startFailedContinue": "开启协同失败,已改为单任务继续","createWorkerRefreshFailed": "Worker 状态刷新失败,请稍后重试","assignmentFailed": "Worker 已创建,但无法确认任务是否派发成功。请先查看 Worker 面板,再决定是否重试",@@ -6857,6 +6865,8 @@"verificationFailed": "暂时无法确认 ChatGPT 登录是否已恢复,请重新检测。"},"chat": {+ "jumpToBottom": "跳到底部",+ "prevMessageJump": "跳到上一条提问:{{preview}}","sessionLoading": "正在加载任务","askUserQuestion": {"skippedAnswer": "已跳过",@@ -7093,6 +7103,10 @@"dismissTitle": "暂不恢复"},"media": {+ "clickToZoom": "点击放大",+ "audioPlay": "播放音频",+ "audioPause": "暂停音频",+ "modelPreviewAlt": "3D 模型预览","imageCopied": "图片已复制","copyFailed": "复制失败","openFolderFailed": "打开目录失败",@@ -7759,6 +7773,9 @@"cancel": "取消"},"chatPlaceholder": "继续聊一聊…",+ "worktreeCreating": "正在创建 worktree",+ "worktreeFailed": "Worktree 创建失败",+ "extraDirsSaveFailed": "附加目录保存失败","chatDropAreaAria": "对话区文件拖放区域","openWorkingDirAria": "在系统文件管理器中打开工作目录","projectContextLoaded": "项目知识库已加载",@@ -8299,6 +8316,8 @@"revealFolder": "显示所在文件夹"},"fileBody": {+ "drawioLoading": "正在加载 draw.io 预览…",+ "pdfLoading": "正在加载 PDF 预览…","selectFile": "选择一个文件进行预览","readFailed": "读取文件失败:{{message}}","truncatedNotice": "文件较大,已截断显示前 2 MB —— 在系统中打开查看完整内容",@@ -8428,6 +8447,45 @@"ultra": "极致"},"scheduler": {+ "presentation": {+ "status": {+ "active": "启用",+ "paused": "已暂停",+ "expired": "单次",+ "running": "运行中"+ },+ "summary": {+ "hourly": "每小时",+ "daily": "每天 {{time}}",+ "weekly": "每周{{weekday}} {{time}}",+ "weekdays": "工作日 {{time}}",+ "weekends": "周末 {{time}}",+ "monthly": "每月 {{day}} 日 {{time}}",+ "custom": "自定义"+ },+ "weekday": {+ "full": { "0": "星期日", "1": "星期一", "2": "星期二", "3": "星期三", "4": "星期四", "5": "星期五", "6": "星期六" },+ "short": { "0": "日", "1": "一", "2": "二", "3": "三", "4": "四", "5": "五", "6": "六" }+ },+ "time": {+ "last": "上次 {{value}}",+ "today": "今天 · {{time}}",+ "yesterday": "昨天 · {{time}}",+ "daysAgo": "{{count}} 天前 · {{time}}",+ "startedSeconds": "{{count}} 秒前开始",+ "startedMinutes": "{{count}} 分钟前开始",+ "startedHours": "{{count}} 小时前开始",+ "nextLessThanMinute": "下次不到 1 分钟",+ "next": "下次 {{when}}({{interval}} 后)"+ },+ "destination": {+ "boundSession": "绑定到任务 {{id}}",+ "newDialogue": "新对话",+ "newWorktreeSession": "新建 worktree 任务",+ "newSession": "新任务",+ "inDirectory": "{{base}},位于 "+ }+ },"page": {"title": "自动化","totalCount": "共 {{count}} 条",@@ -9526,7 +9584,7 @@"skillNameRequired": "技能名必填","skillNameFormat": "格式:[a-z0-9-]+","displayNameLabel": "显示名",- "displayNamePlaceholder": "My Skill",+ "displayNamePlaceholder": "我的技能","displayNameLimit": "最多 64 字符","descriptionLabel": "描述","descriptionPlaceholder": "简要描述该 Skill 的用途",@@ -9951,7 +10009,7 @@"modelLabel": "模型","permissionLabel": "权限模式","noAvailableModels": "没有可用的 {{agent}} 模型,请在设置中检查供应商连接和凭证。",- "effortLabel": "Effort",+ "effortLabel": "推理强度","initialTaskLabel": "初始任务","optional": "(可选)","initialTaskPlaceholder": "给这个 Worker 的可选第一条任务",@@ -9959,6 +10017,7 @@"enableCollabSubmit": "开启协同"},"rolePill": {+ "unread": "未读更新","worker": "Worker","workersHeader": "Workers","workerCountSummary_other": "{{totalCount}} 个 Worker · {{activeCount}} 运行中",diff --git a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.jsonindex cce69d9984..948914b490 100644--- a/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json+++ b/apps/desktop/src/renderer/i18n/locales/zh-TW/common.json@@ -1968,7 +1968,7 @@"note": "已繫結當前掃碼使用者,其他人私聊會被自動忽略。","serviceLabel": "服務","appIdLabel": "App ID",- "ownerLabel": "Owner",+ "ownerLabel": "主人","ownerWaiting": "等待首次私聊繫結","reconnect": "重新連線 {{service}} 機器人","clear": "解綁"@@ -5295,18 +5295,18 @@"title": "開始一個面板","desc": "在右側開啟檔案、審查、資源監視器、內建瀏覽器或終端,與左側對話並行工作。","openFile": "開啟檔案",- "fileSub": "Files",+ "fileSub": "檔案","openReview": "開啟審查",- "reviewSub": "Review",+ "reviewSub": "審查","openSubagents": "開啟 Subagent","subagentsSub": "可持續回看的子任務","openBackgroundTasks": "開啟後臺任務",- "backgroundTasksSub": "Background tasks",+ "backgroundTasksSub": "後臺任務","openResourceUsage": "開啟資源監視器","openBrowser": "開啟瀏覽器",- "browserSub": "Browser",+ "browserSub": "瀏覽器","openTerminal": "開啟終端",- "terminalSub": "Terminal",+ "terminalSub": "終端","addMoreHint": "可透過頂部 + 按鈕選擇更多面板型別"},"placeholderHint": "{{kind}} — 內容將在後續階段加入"@@ -5327,16 +5327,16 @@},"iosSimulator": {"title": "iOS 模擬器",- "startPrompt": "帮我開啟 iOS 模擬器。",+ "startPrompt": "幫我開啟 iOS 模擬器。","description": "檢視當前本地任務可用的 Xcode 環境和模擬器裝置。","buildApproval": {"title": "允許 Xcode 建置此專案?",- "description": "Xcode 会以你的 macOS 用户權限运行此專案的建置腳本。这些腳本可能讀取或修改專案外的文件,建置輸出也会返回给 Agent。請僅在信任此專案时繼續。"+ "description": "Xcode 會以你的 macOS 使用者權限執行此專案的建置指令碼。這些指令碼可能讀取或修改專案外的檔案,建置輸出也會傳回給 Agent。請只在信任此專案時繼續。"},"agentControlApproval": {- "attachTitle": "允許 Agent 連線并控制此模擬器?",- "createTitle": "允許 Agent 建立并控制模擬器?",- "description": "操作成功后,Agent 可在當前 Cindy 任務中使用此模擬器:啟動或停止模擬器、安裝或啟動 App,以及执行点击、滑动、輸入、截图和更改模擬器设置等操作,無需再次確認裝置控制。中斷連線裝置、結束任務、重新啟動 Cindy 或在模擬器面板中撤銷 Agent 控制后,此存取權限即失效。其他敏感操作仍可能需要单独批准。"+ "attachTitle": "允許 Agent 連線並控制此模擬器?",+ "createTitle": "允許 Agent 建立並控制模擬器?",+ "description": "操作成功後,Agent 可在目前的 Cindy 任務中使用此模擬器:啟動或停止模擬器、安裝或啟動 App,以及執行點按、滑動、輸入、截圖和變更模擬器設定等操作,無需再次確認裝置控制。中斷裝置連線、結束任務、重新啟動 Cindy,或在模擬器面板中撤銷 Agent 控制後,此存取權限即失效。其他敏感操作仍可能需要個別核准。"},"refresh": "重新整理","checking": "正在檢查",@@ -5345,7 +5345,7 @@"allowTaskAccess": "允許任務控制","requestingAccess": "正在請求存取…","accessDialogTitle": "允許控制 iOS 模擬器?",- "accessDialogMessage": "允許當前 Cindy 視窗为任務“{{task}}”檢視和控制 iOS 模擬器吗?",+ "accessDialogMessage": "允許目前的 Cindy 視窗為任務「{{task}}」檢視和控制 iOS 模擬器嗎?","accessDialogDetail": "此權限僅對該任務生效。切換到其他任務後會保留檢視授權,但控制會暫停;返回後請再次允許控制。","accessDialogAllow": "允許模擬器控制","accessDialogCancel": "取消",@@ -5364,18 +5364,18 @@"setupTitle": "設定清單","devicesTitle": "可用裝置","instancesTitle": "當前任務的模擬器",- "instancesOverview": "多实例概览",+ "instancesOverview": "多執行個體概覽","instancesCount": "{{count}} 台就緒","openDevice": "開啟裝置","noDevices": "未找到 iPhone 或 iPad 模擬器。",- "noAvailableDevices": "没有可連線的 iPhone 或 iPad 模擬器。",+ "noAvailableDevices": "沒有可連線的 iPhone 或 iPad 模擬器。","unavailableDevicesTitle": "不可用裝置",- "unavailableDevicesCount": "{{count}} 台",- "unavailableDevicesDescription": "这些裝置當前不能連線。檢視原因并按提示修正后,再重新整理狀態。",+ "unavailableDevicesCount": "{{count}} 臺",+ "unavailableDevicesDescription": "這些裝置目前無法連線。檢視原因並按提示修正後,再重新整理狀態。","missingRuntime": "缺少 {{runtime}} Runtime","missingRuntimeHelp": "請在 Xcode 中安裝對應 Runtime,然後重新整理狀態。",- "deviceUnavailable": "Xcode 已将此裝置標記为不可用",- "deviceUnavailableHelp": "請在 Xcode 中檢查或重新建立该模擬器,然後重新整理狀態。",+ "deviceUnavailable": "Xcode 已將此裝置標記為不可用",+ "deviceUnavailableHelp": "請在 Xcode 中檢查或重新建立該模擬器,然後重新整理狀態。","booted": "已啟動","shutdown": "已關機","runtime": "執行環境",@@ -5387,52 +5387,52 @@"stopDevice": "停止裝置","attachedDescription": "此裝置已繫結到當前 Cindy 任務。","agentControlTitle": "Agent 控制",- "agentControlDescription": "允許后,Agent 才能啟動、停止或操作这台裝置。",+ "agentControlDescription": "允許後,Agent 才能啟動、停止或操作這臺裝置。","allowAgentControl": "允許 Agent 控制","disableAgentControl": "停用 Agent 控制","agentControlDialogTitle": "允許 Agent 控制?",- "agentControlDialogMessage": "允許 Agent 控制 {{simulator}} 吗?",- "agentControlDialogDetail": "此請求来自“{{task}}”。Agent 可以在这台模擬器上啟動、停止、点击、輸入、安裝和啟動 App。Cindy 会为當前設定保留此權限,重新啟動后仍然有效,直到你主动停用。",+ "agentControlDialogMessage": "允許 Agent 控制 {{simulator}} 嗎?",+ "agentControlDialogDetail": "此請求來自「{{task}}」。Agent 可以在這臺模擬器上啟動、停止、點按、輸入、安裝和啟動 App。Cindy 會為目前的設定保留此權限,重新啟動後仍然有效,直到你主動停用。","agentControlDialogAllow": "允許","agentControlDialogCancel": "取消","operationError": "Cindy 無法完成模擬器操作。",- "retryHint": "請重新整理狀態后重试。",- "operationErrorWithRecovery": "Cindy 無法完成模擬器操作。請重新整理狀態后重试。",+ "retryHint": "請重新整理狀態後重試。",+ "operationErrorWithRecovery": "Cindy 無法完成模擬器操作。請重新整理狀態後重試。","deviceInUseByOtherTask": "另一個 Cindy 任務正在使用此裝置。請選取其他裝置,或先在原任務中中斷連線它。","taskDeviceLimitReached": "當前任務已連線 {{limit}} 台裝置。請先中斷連線一台,再連線其他裝置。",- "runningDeviceLimitReached": "Cindy 已同時运行 {{limit}} 台模擬器。請先停止一台,再連線此已啟動裝置。",+ "runningDeviceLimitReached": "Cindy 已同時執行 {{limit}} 臺模擬器。請先停止一臺,再連線此已啟動裝置。","resourceSoftLimitTitle": "當前正在執行 {{count}} 台模擬器",- "resourceSoftLimitDescription": "繼續啟動更多裝置时,Cindy 会先檢查系統記憶體;不足时会保留现有裝置并阻止新啟動。",+ "resourceSoftLimitDescription": "繼續啟動更多裝置時,Cindy 會先檢查系統記憶體;不足時會保留現有裝置並阻止新裝置啟動。","resourceHardLimitTitle": "已達到同時執行上限({{limit}} 台)","resourceHardLimitDescription": "請先停止一台正在執行的模擬器,再啟動新裝置。","errors": {"attachedElsewhere": "另一個 Cindy 任務正在使用此裝置。請選取其他裝置,或先在原任務中中斷連線它。",- "taskLimitReached": "當前任務最多連線 {{taskLimit}} 台裝置。請先中斷連線一台再重试。",- "resourceLimitReached": "Cindy 已達到同時執行上限({{hardLimit}} 台)。請先停止一台模擬器再重试。",- "memoryPressure": "系統記憶體压力较高,暂时無法啟動更多模擬器。請先停止一台模擬器,或稍后重试。",- "deviceNotFound": "所选裝置已不存在。請重新整理狀態并選取其他裝置。",- "deviceStateChanged": "裝置狀態已变化。請重新整理狀態后重试。"+ "taskLimitReached": "目前的任務最多連線 {{taskLimit}} 臺裝置。請先中斷連線一臺再重試。",+ "resourceLimitReached": "Cindy 已達到同時執行上限({{hardLimit}} 臺)。請先停止一臺模擬器再重試。",+ "memoryPressure": "系統記憶體壓力較高,暫時無法啟動更多模擬器。請先停止一臺模擬器,或稍後重試。",+ "deviceNotFound": "所選裝置已不存在。請重新整理狀態並選取其他裝置。",+ "deviceStateChanged": "裝置狀態已變更。請重新整理狀態後重試。"},"streamAlt": "{{device}} 的即時模擬器畫面",- "waitingForFrame": "畫面連線后会显示在这里。",+ "waitingForFrame": "畫面連線後會顯示在這裡。","viewerStoppedTitle": "模擬器已停止",- "viewerStoppedDescription": "啟動此裝置后可恢復即時畫面和控制。",- "gestureHint": "点击即時畫面可輕點,拖曳畫面可滑动。",+ "viewerStoppedDescription": "啟動此裝置後可恢復即時畫面和控制。",+ "gestureHint": "點按即時畫面可輕點,拖曳畫面可滑動。","textInputLabel": "輸入到模擬器的文字","textInputPlaceholder": "輸入要傳送到模擬器的文字","sendText": "傳送文字",- "pressHome": "按下主螢幕键",- "rotateDevice": "旋转裝置",+ "pressHome": "按下主畫面鍵",+ "rotateDevice": "旋轉裝置","lockScreen": "鎖定螢幕","unlockScreen": "解鎖螢幕","controlsUnavailable": "模擬器控制暫時不可用","enterTextBeforeSending": "請先輸入要傳送的文字","agentBusyTitle": "Agent 正在使用此裝置",- "agentBusyDescription": "當前 Agent 操作結束前,手动輸入已暫停。",+ "agentBusyDescription": "目前的 Agent 操作結束前,手動輸入已暫停。","takeControl": "接管裝置",- "takeoverPendingDescription": "正在等待當前原子操作結束,排队中的 Agent 操作已取消。",- "manualControlTitle": "手动控制已啟用",- "manualControlDescription": "新的 Agent 輸入已暫停,檢視、建置和诊断仍可繼續。",+ "takeoverPendingDescription": "正在等待目前的原子操作結束,佇列中的 Agent 操作已取消。",+ "manualControlTitle": "手動控制已啟用",+ "manualControlDescription": "新的 Agent 輸入已暫停,檢視、建置和診斷仍可繼續。","resumeAgentInput": "恢復 Agent 輸入","streamProfile": "畫面品質","streamProfiles": {@@ -5491,15 +5491,16 @@},"setup": {"localMac": "請在 Mac 上的本地 Cindy 任務中開啟此專案。",- "installXcode": "从 Mac App Store 或 Apple Developer 下載并安裝 Xcode。",- "selectXcode": "開啟一次 Xcode,并選取它的命令列開發者工具。",- "installRuntime": "在 Xcode 设置中安裝一個 iOS 模擬器執行環境。",- "createDevice": "在 Xcode 的“裝置与模擬器”視窗中建立 iPhone 或 iPad 模擬器。",+ "installXcode": "從 Mac App Store 或 Apple Developer 下載並安裝 Xcode。",+ "selectXcode": "開啟一次 Xcode,並選取它的命令列開發者工具。",+ "installRuntime": "在 Xcode 設定中安裝一個 iOS 模擬器執行環境。",+ "createDevice": "在 Xcode 的「裝置與模擬器」視窗中建立 iPhone 或 iPad 模擬器。","retryXcode": "開啟或重新啟動 Xcode,然後重新整理此面板。"}},"browser": {"newTab": "新標籤",+ "audible": "正在播放音訊","urlPlaceholder": "輸入網址或搜尋關鍵詞","goBack": "後退","goForward": "前進",@@ -6083,6 +6084,12 @@}},"sidebar": {+ "vendorReadiness": {+ "loading": "正在檢查可用狀態",+ "ready": "已就緒",+ "unauthenticated": "需要登入",+ "binary-missing": "元件不可用"+ },"ariaLabel": "側邊欄導航","horizontalTabbarAria": "主區域檢視切換","tabs": {@@ -6122,11 +6129,11 @@"enabled": "已開啟"},"close": "關閉"- },- "vendorReadiness": {- "loading": "載入中"}},+ "common": {+ "dismiss": "關閉"+ },"commonUi": {"crossAgentConvert": {"asking": {@@ -6577,6 +6584,7 @@"popoverTitle": "召集 Worker 協作","startButton": "開啟協同","startFailed": "開啟協同失敗",+ "stopFailed": "停止協同失敗","startFailedContinue": "開啟協同失敗,已改為單任務繼續","createWorkerRefreshFailed": "Worker 狀態重新整理失敗,請稍後重試","assignmentFailed": "Worker 已建立,但無法確認任務是否派發成功。請先查看 Worker 面板,再決定是否重試",@@ -6857,6 +6865,8 @@"verificationFailed": "暫時無法確認 ChatGPT 登入是否已恢復,請重新檢測。"},"chat": {+ "jumpToBottom": "跳到底部",+ "prevMessageJump": "跳到上一則提問:{{preview}}","askUserQuestion": {"skippedAnswer": "已跳過","pendingTitle": "等待回答",@@ -7092,6 +7102,10 @@"dismissTitle": "暫不恢復"},"media": {+ "clickToZoom": "點擊放大",+ "audioPlay": "播放音訊",+ "audioPause": "暫停音訊",+ "modelPreviewAlt": "3D 模型預覽","imageCopied": "圖片已複製","copyFailed": "複製失敗","openFolderFailed": "開啟目錄失敗",@@ -7759,6 +7773,9 @@"cancel": "取消"},"chatPlaceholder": "繼續聊一聊…",+ "worktreeCreating": "正在建立 worktree",+ "worktreeFailed": "worktree 建立失敗",+ "extraDirsSaveFailed": "附加目錄儲存失敗","chatDropAreaAria": "對話區檔案拖放區域","openWorkingDirAria": "在系統檔案管理器中開啟工作目錄","projectContextLoaded": "專案知識庫已載入",@@ -8299,6 +8316,8 @@"revealFolder": "顯示所在資料夾"},"fileBody": {+ "drawioLoading": "正在載入 draw.io 預覽…",+ "pdfLoading": "正在載入 PDF 預覽…","selectFile": "選擇一個檔案進行預覽","readFailed": "讀取檔案失敗:{{message}}","truncatedNotice": "檔案較大,已截斷顯示前 2 MB —— 在系統中開啟檢視完整內容",@@ -8428,6 +8447,45 @@"ultra": "極致"},"scheduler": {+ "presentation": {+ "status": {+ "active": "啟用",+ "paused": "已暫停",+ "expired": "單次",+ "running": "執行中"+ },+ "summary": {+ "hourly": "每小時",+ "daily": "每天 {{time}}",+ "weekly": "每週{{weekday}} {{time}}",+ "weekdays": "工作日 {{time}}",+ "weekends": "週末 {{time}}",+ "monthly": "每月 {{day}} 日 {{time}}",+ "custom": "自訂"+ },+ "weekday": {+ "full": { "0": "星期日", "1": "星期一", "2": "星期二", "3": "星期三", "4": "星期四", "5": "星期五", "6": "星期六" },+ "short": { "0": "日", "1": "一", "2": "二", "3": "三", "4": "四", "5": "五", "6": "六" }+ },+ "time": {+ "last": "上次 {{value}}",+ "today": "今天 · {{time}}",+ "yesterday": "昨天 · {{time}}",+ "daysAgo": "{{count}} 天前 · {{time}}",+ "startedSeconds": "{{count}} 秒前開始",+ "startedMinutes": "{{count}} 分鐘前開始",+ "startedHours": "{{count}} 小時前開始",+ "nextLessThanMinute": "下次不到 1 分鐘",+ "next": "下次 {{when}}({{interval}} 後)"+ },+ "destination": {+ "boundSession": "繫結到任務 {{id}}",+ "newDialogue": "新對話",+ "newWorktreeSession": "新建 worktree 任務",+ "newSession": "新任務",+ "inDirectory": "{{base}},位於 "+ }+ },"page": {"title": "自動化","totalCount": "共 {{count}} 條",@@ -9526,7 +9584,7 @@"skillNameRequired": "技能名必填","skillNameFormat": "格式:[a-z0-9-]+","displayNameLabel": "顯示名",- "displayNamePlaceholder": "My Skill",+ "displayNamePlaceholder": "我的技能","displayNameLimit": "最多 64 字元","descriptionLabel": "描述","descriptionPlaceholder": "簡要描述該 Skill 的用途",@@ -9951,7 +10009,7 @@"modelLabel": "模型","permissionLabel": "權限模式","noAvailableModels": "沒有可用的 {{agent}} 模型,請在設定中檢查供應商連線和憑證。",- "effortLabel": "Effort",+ "effortLabel": "推理強度","initialTaskLabel": "初始任務","optional": "(可選)","initialTaskPlaceholder": "給這個 Worker 的可選第一條任務",@@ -9959,6 +10017,7 @@"enableCollabSubmit": "開啟協同"},"rolePill": {+ "unread": "未讀更新","worker": "Worker","workersHeader": "Workers","workerCountSummary_other": "{{totalCount}} 個 Worker · {{activeCount}} 執行中",diff --git a/apps/mobile/app/automations/[deviceId].tsx b/apps/mobile/app/automations/[deviceId].tsxindex 6966bd6157..f817a56b50 100644--- a/apps/mobile/app/automations/[deviceId].tsx+++ b/apps/mobile/app/automations/[deviceId].tsx@@ -12,6 +12,8 @@ import {import { Text, TextInput } from '@/components/AppText';import { SafeAreaView } from 'react-native-safe-area-context';import { useTranslation } from 'react-i18next';+import type { TFunction } from 'i18next';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';import { ConnectionBanner } from '@/components/ConnectionBanner';import { useUnresponsiveDevices } from '@/device-link/unresponsiveDevicesStore';import { goBackGuarded } from '@/utils/backGuard';@@ -381,13 +383,17 @@ export default function AutomationsScreen() {const submitScheduleForm = useCallback(async () => {if (!formDraft || busyAction) return;- const validation = validateMobileScheduleDraft(formDraft);+ const validation = validateMobileScheduleDraft(formDraft, mobilePresentationLocalizer);if (validation) {setFormError(validation.message);return;}if (formMode === 'create' && selectedTemplate && !templatePromptDirty) {- const paramError = validateTemplateParamValues(selectedTemplate, templateParamValues);+ const paramError = validateTemplateParamValues(+ selectedTemplate,+ templateParamValues,+ mobilePresentationLocalizer,+ );if (paramError) {setFormError(paramError);return;@@ -1061,7 +1067,11 @@ function ScheduleFormCard({<View style={styles.formCard} testID="automations.form"><View style={styles.formHeader}><View>- <Text style={styles.sectionTitle}>{mode === 'edit' ? 'Edit Automation' : 'New Automation'}</Text>+ <Text style={styles.sectionTitle}>+ {mode === 'edit'+ ? t('devices.automations.form.title.edit')+ : t('devices.automations.form.title.create')}+ </Text><Text style={styles.formTitle}>{mode === 'edit' ? t('devices.automations.form.title.edit') : t('devices.automations.form.title.create')}</Text></View>{busy ? <ActivityIndicator color={colors.textSecondary} /> : null}@@ -1196,7 +1206,10 @@ function ScheduleFormCard({|| session.workingDir || session.id}</Text><Text style={styles.boundSessionMeta} numberOfLines={1}>- {formatSessionOptionMeta(session)}+ {formatSessionOptionMeta(+ session,+ t('devices.automations.form.workspace.dialogue'),+ )}</Text></View></MainWindowRowButton>@@ -1441,7 +1454,7 @@ function ScheduleDeleteCard({sessionIds: state.sessionIds ?? [],sessionCount: state.sessionIds?.length ?? 0,inflightCount: state.inflightCount ?? 0,- });+ }, mobilePresentationLocalizer);const confirmText = state.disposition === 'delete'? t('devices.automations.delete.confirmDeleteBoth'): state.disposition === 'archive'@@ -1452,7 +1465,7 @@ function ScheduleDeleteCard({<View style={styles.deleteCard} testID="automations.deleteDialog"><View style={styles.deleteHeader}><View style={styles.deleteHeaderText}>- <Text style={styles.sectionTitle}>Delete Automation</Text>+ <Text style={styles.sectionTitle}>{t('devices.automations.heading.delete')}</Text><Text style={styles.deleteTitle} numberOfLines={2}>{t('devices.automations.delete.title', { name: state.schedule.name })}</Text></View>{state.loading || busy ? <ActivityIndicator color={colors.textSecondary} /> : null}@@ -1533,12 +1546,16 @@ function SchedulePauseCard({const styles = useThemedStyles(makeStyles);const { colors } = useTheme();const { t } = useTranslation();- const confirmation = buildSchedulePauseConfirmation(state.schedule, state.inflightCount);+ const confirmation = buildSchedulePauseConfirmation(+ state.schedule,+ state.inflightCount,+ mobilePresentationLocalizer,+ );return (<View style={styles.pauseCard} testID="automations.pauseDialog"><View style={styles.deleteHeader}><View style={styles.deleteHeaderText}>- <Text style={styles.sectionTitle}>Pause Automation</Text>+ <Text style={styles.sectionTitle}>{t('devices.automations.heading.pause')}</Text><Text style={styles.deleteTitle} numberOfLines={2}>{confirmation?.title ?? t('devices.automations.pause.title', { name: state.schedule.name || state.schedule.id })}</Text>@@ -1590,12 +1607,12 @@ function RunDeleteCard({const styles = useThemedStyles(makeStyles);const { colors } = useTheme();const { t } = useTranslation();- const summary = summarizeRun(state.run);+ const summary = summarizeRun(state.run, Date.now(), mobilePresentationLocalizer);return (<View style={styles.pauseCard} testID="automations.runDeleteDialog"><View style={styles.deleteHeader}><View style={styles.deleteHeaderText}>- <Text style={styles.sectionTitle}>Delete Run</Text>+ <Text style={styles.sectionTitle}>{t('devices.automations.heading.deleteRun')}</Text><Text style={styles.deleteTitle} numberOfLines={2}>{t('devices.automations.runDelete.title')}</Text>@@ -1694,7 +1711,11 @@ function TemplatePicker({}) {const styles = useThemedStyles(makeStyles);const { t } = useTranslation();- const selected = templates.find((template) => template.id === selectedTemplateId) ?? null;+ const localizedTemplates = useMemo(+ () => templates.map((template) => localizeBuiltinTemplate(template, t)),+ [t, templates],+ );+ const selected = localizedTemplates.find((template) => template.id === selectedTemplateId) ?? null;return (<View style={styles.templateSection} testID="automations.templateSection"><View style={styles.templateHeader}>@@ -1718,7 +1739,7 @@ function TemplatePicker({contentContainerStyle={styles.templateList}testID="automations.templateList">- {templates.map((template) => (+ {localizedTemplates.map((template) => (<TemplateCardkey={template.id}disabled={busy}@@ -1913,7 +1934,7 @@ function ScheduleRow({const styles = useThemedStyles(makeStyles);const { colors } = useTheme();const { t } = useTranslation();- const summary = summarizeSchedule(schedule, runs);+ const summary = summarizeSchedule(schedule, runs, Date.now(), mobilePresentationLocalizer);return (<MainWindowRowButtonaccessibilityLabel={t('devices.automations.scheduleRowA11y', { title: summary.title })}@@ -1959,7 +1980,7 @@ function ScheduleDetail({}) {const styles = useThemedStyles(makeStyles);const { t } = useTranslation();- const summary = summarizeSchedule(schedule, runs);+ const summary = summarizeSchedule(schedule, runs, Date.now(), mobilePresentationLocalizer);const paused = schedule.status === 'paused';const actionBusy = !!busyAction || runsLoading;const pauseDisabled = actionBusy || schedule.status === 'expired';@@ -1987,7 +2008,9 @@ function ScheduleDetail({primaryActions={[{accessibilityLabel: t('devices.automations.detail.runNowA11y'),disabled: actionBusy,- label: busyAction === `run:${schedule.id}` ? t('devices.automations.detail.running') : 'Run now',+ label: busyAction === `run:${schedule.id}`+ ? t('devices.automations.detail.running')+ : t('devices.automations.runNow'),onPress: onRunNow,testID: 'automations.runNowButton',tone: 'primary',@@ -2032,7 +2055,7 @@ function RunRow({}) {const styles = useThemedStyles(makeStyles);const { t } = useTranslation();- const summary = summarizeRun(run);+ const summary = summarizeRun(run, Date.now(), mobilePresentationLocalizer);const actionBusy = !!busyAction || opening;const hasActions = summary.canOpenSession || summary.canRestart || summary.canMarkRead || summary.canDelete;return (@@ -2135,6 +2158,41 @@ const TEMPLATE_CATEGORY_RANK: Record<string, number> = {'office-docs': 3,};+const BUILTIN_TEMPLATE_IDS = new Set([+ 'nightly-test-heal',+ 'pr-gatekeeper',+ 'domain-radar',+ 'competitor-watch',+ 'weekly-work-draft',+ 'knowledge-freshness',+]);++function localizeBuiltinTemplate(+ template: RemoteScheduleTemplate,+ t: TFunction,+): RemoteScheduleTemplate {+ if (template.source !== 'builtin' || !BUILTIN_TEMPLATE_IDS.has(template.id)) return template;+ const prefix = `devices.automations.template.builtin.${template.id}`;+ const templateVariables = Object.fromEntries(+ (template.parameters ?? []).map((parameter) => [parameter.key, `{{${parameter.key}}}`]),+ );+ return {+ ...template,+ name: t(`${prefix}.name`, { defaultValue: template.name }),+ description: t(`${prefix}.description`, { defaultValue: template.description }),+ prompt: template.prompt+ ? t(`${prefix}.prompt`, { defaultValue: template.prompt, ...templateVariables })+ : template.prompt,+ parameters: template.parameters?.map((parameter) => ({+ ...parameter,+ label: t(`${prefix}.params.${parameter.key}.label`, { defaultValue: parameter.label }),+ placeholder: parameter.placeholder+ ? t(`${prefix}.params.${parameter.key}.placeholder`, { defaultValue: parameter.placeholder })+ : parameter.placeholder,+ })),+ };+}+function sortTemplatesForMobile(list: readonly RemoteScheduleTemplate[],): RemoteScheduleTemplate[] {@@ -2168,9 +2226,9 @@ function buildBoundSessionOptions(return [selected, ...options.slice(0, 5)];}-function formatSessionOptionMeta(session: RemoteSession): string {+function formatSessionOptionMeta(session: RemoteSession, dialogueLabel: string): string {const agent = mobileAgentLabelFromUnknown(session.agentKind);- const workspace = session.workingDir ? lastPathSegment(session.workingDir) : 'Dialogue';+ const workspace = session.workingDir ? lastPathSegment(session.workingDir) : dialogueLabel;return `${agent} · ${workspace} · ${session.id.slice(0, 8)}`;}diff --git a/apps/mobile/app/devices/[deviceId].tsx b/apps/mobile/app/devices/[deviceId].tsxindex 467b59cd51..b14ef1f4c1 100644--- a/apps/mobile/app/devices/[deviceId].tsx+++ b/apps/mobile/app/devices/[deviceId].tsx@@ -395,7 +395,7 @@ export default function DeviceDetailScreen() {const runningAutomationCount = filterCounts.runningAutomation;const controlsSummary = useMemo(() => remoteSessionControlsSummary(statusFilter, filterCounts),- [filterCounts, statusFilter],+ [filterCounts, statusFilter, t],);const windowLayout = buildMainWindowLayout({actionCount: 3,@@ -405,7 +405,7 @@ export default function DeviceDetailScreen() {});const emptyState = useMemo(() => deviceSessionEmptyState(statusFilter, searchQuery),- [searchQuery, statusFilter],+ [searchQuery, statusFilter, t],);// 首同步完成前(lastSyncedAt === null)抑制"还没有对话"空状态,避免冷进(deep link)先闪空态// 再跳成真列表(规则 7:不闪空白/不跳变)。同步失败时 ConnectionBanner 已有错误 + 重试入口。diff --git a/apps/mobile/app/devices/index.tsx b/apps/mobile/app/devices/index.tsxindex fe415c3e7d..a2aa9a3a97 100644--- a/apps/mobile/app/devices/index.tsx+++ b/apps/mobile/app/devices/index.tsx@@ -226,7 +226,7 @@ type HydrateDeviceSessionsResult = {export default function HomeScreen() {const styles = useThemedStyles(makeStyles);const { colors } = useTheme();- const { t } = useTranslation();+ const { t, i18n: i18nInstance } = useTranslation();// 所有前进导航(进会话 / 新建 / 设置 / 组页面)统一走守卫 push:列表卡顿时的// 连点会各自触发一次裸 push,把同一页压进栈 N 层(返回也要 N 次)。const guardedPush = useGuardedPush();@@ -943,7 +943,7 @@ export default function HomeScreen() {const deviceRows = useMemo(() => toDeviceListItems(devices, Date.now(), revokedDevices),- [devices, revokedDevices],+ [devices, i18nInstance.resolvedLanguage, revokedDevices],);useEffect(() => {diff --git a/apps/mobile/app/sessions/[sessionId].tsx b/apps/mobile/app/sessions/[sessionId].tsxindex 87eb187140..bd745d6553 100644--- a/apps/mobile/app/sessions/[sessionId].tsx+++ b/apps/mobile/app/sessions/[sessionId].tsx@@ -9614,7 +9614,7 @@ export default function SessionScreen() {<ComposerRichInputref={composerInputRef}accessibilityHint={composerLayout.input.disabledReason ?? undefined}- accessibilityLabel="输入远程消息"+ accessibilityLabel={t('session.screen.composerPlaceholder')}document={composerDocument}editable={!composerLayout.input.disabled}height={composerInputVisibleHeight}diff --git a/apps/mobile/src/__tests__/collaboration.test.ts b/apps/mobile/src/__tests__/collaboration.test.tsindex 10fced9297..723a3bbbae 100644--- a/apps/mobile/src/__tests__/collaboration.test.ts+++ b/apps/mobile/src/__tests__/collaboration.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import {isCollaborationSession,sessionCollaborationComposerReadOnlyReason,@@ -8,6 +9,10 @@ import {} from '@/session/collaboration';import type { RemoteSession } from '@/session/types';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function session(patch: Partial<RemoteSession> = {}): RemoteSession {return {id: 's1',@@ -34,16 +39,16 @@ describe('mobile collaboration session fallback', () => {const lead = session({ orcaRole: 'lead' });const worker = session({ orcaRole: 'worker' });- expect(sessionCollaborationLabel(lead)).toBe('协作 Lead');- expect(sessionCollaborationLabel(worker)).toBe('协作 Worker');+ expect(sessionCollaborationLabel(lead)).toBe('协同 Lead');+ expect(sessionCollaborationLabel(worker)).toBe('协同 Worker');// Lead 文案:可以发消息聊天,只有编排操作留在电脑端(不再说"暂不提供发送消息")。- expect(sessionCollaborationNotice(lead)).toContain('发消息聊天');- expect(sessionCollaborationNotice(lead)).toContain('创建 worker');+ expect(sessionCollaborationNotice(lead)).toContain('继续发消息');+ expect(sessionCollaborationNotice(lead)).toContain('创建 Worker');expect(sessionCollaborationNotice(lead)).not.toContain('暂不提供');expect(sessionCollaborationNotice(worker)).toContain('发送消息');- expect(sessionCollaborationNotice(worker)).toContain('worker focus');+ expect(sessionCollaborationNotice(worker)).toContain('切换 Worker 焦点');expect(isCollaborationSession(lead)).toBe(true);- expect(sessionCollaborationReadOnlyReason(worker)).toContain('只读安全降级');+ expect(sessionCollaborationReadOnlyReason(worker)).toContain('只读');});it('lets Lead compose messages while keeping worker composer read-only', () => {@@ -64,9 +69,9 @@ describe('mobile collaboration session fallback', () => {it('keeps unknown collaboration roles readable but generic', () => {const custom = session({ orcaRole: 'reviewer' });- expect(sessionCollaborationLabel(custom)).toBe('协作 reviewer');- expect(sessionCollaborationNotice(custom)).toContain('协作编排操作请先在电脑端完成');- expect(sessionCollaborationReadOnlyReason(custom)).toContain('任务写操作请先在电脑端完成');+ expect(sessionCollaborationLabel(custom)).toBe('协同 reviewer');+ expect(sessionCollaborationNotice(custom)).toContain('协同编排操作请在电脑端完成');+ expect(sessionCollaborationReadOnlyReason(custom)).toContain('任务修改请在电脑端完成');expect(sessionCollaborationLabel(session({ orcaRole: null }))).toBeNull();expect(isCollaborationSession(session({ orcaRole: null }))).toBe(false);expect(sessionCollaborationReadOnlyReason(session({ orcaRole: null }))).toBeNull();diff --git a/apps/mobile/src/__tests__/devices.test.ts b/apps/mobile/src/__tests__/devices.test.tsindex 749e419e7b..b98b7ec122 100644--- a/apps/mobile/src/__tests__/devices.test.ts+++ b/apps/mobile/src/__tests__/devices.test.ts@@ -1,5 +1,6 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';import type { DeviceView } from '@cindy/device-link';+import { i18n } from '@/i18n';import {deviceAccessState,isControllableDevice,@@ -8,6 +9,10 @@ import {visibleDeviceListItems,} from '@/device-link/devices';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function device(patch: Partial<DeviceView> = {}): DeviceView {return {deviceId: 'dev-1',diff --git a/apps/mobile/src/__tests__/filePreview.test.ts b/apps/mobile/src/__tests__/filePreview.test.tsindex 19a01e9b4d..195a70b1c8 100644--- a/apps/mobile/src/__tests__/filePreview.test.ts+++ b/apps/mobile/src/__tests__/filePreview.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import {describeTextPreviewFailure,isTextFilePreviewCandidate,@@ -8,6 +9,10 @@ import {type TextFilePreviewState,} from '@/session/filePreview';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+describe('filePreview', () => {it('formats preview status without implying eager file reads', () => {expect(textPreviewStatusText({ status: 'idle' }, true)).toContain('按需读取远程文本预览');@@ -35,13 +40,13 @@ describe('filePreview', () => {});it('keeps non-text file fallbacks explicit instead of exposing the text-read action', () => {- expect(nonTextFilePreviewStatusText('pdf')).toContain('PDF 文件暂不在手机版内嵌预览');- expect(nonTextFilePreviewStatusText('drawio')).toContain('Draw.io 文件暂不在手机版内嵌预览');- expect(nonTextFilePreviewStatusText('office')).toContain('Office 文件暂不在手机版内嵌预览');+ expect(nonTextFilePreviewStatusText('pdf')).toContain('PDF 文件暂不支持在手机版内嵌预览');+ expect(nonTextFilePreviewStatusText('drawio')).toContain('Draw.io 文件暂不支持在手机版内嵌预览');+ expect(nonTextFilePreviewStatusText('office')).toContain('Office 文件暂不支持在手机版内嵌预览');expect(nonTextFilePreviewStatusText('binary')).toContain('当前文件不是文本格式');expect(nonTextFilePreviewStatusText('unknown')).toContain('当前文件类型无法确认');- expect(textPreviewStatusText({ status: 'idle' }, false, 'pdf')).toContain('PDF 文件暂不在手机版内嵌预览');- expect(textPreviewStatusText({ status: 'idle' }, false, 'drawio')).toContain('Draw.io 文件暂不在手机版内嵌预览');+ expect(textPreviewStatusText({ status: 'idle' }, false, 'pdf')).toContain('PDF 文件暂不支持在手机版内嵌预览');+ expect(textPreviewStatusText({ status: 'idle' }, false, 'drawio')).toContain('Draw.io 文件暂不支持在手机版内嵌预览');});it('keeps remote preview failure reasons actionable', () => {@@ -53,7 +58,7 @@ describe('filePreview', () => {})).toContain('文件超过远程预览上限');expect(describeTextPreviewFailure({ success: false, reason: 'forbidden', size: 0 })).toBe('被控电脑拒绝读取这个路径。');expect(describeTextPreviewFailure({ success: false, reason: 'not_found', size: 0 })).toBe('被控电脑上没有找到这个文件。');- expect(describeTextPreviewFailure({ success: false, reason: 'read_failed', size: 0, error: 'EACCES' })).toBe('读取失败: EACCES');+ expect(describeTextPreviewFailure({ success: false, reason: 'read_failed', size: 0, error: 'EACCES' })).toBe('读取失败:EACCES');expect(describeTextPreviewFailure({ success: false, size: 128, error: 'binary file' })).toBe('binary file');});diff --git a/apps/mobile/src/__tests__/inputProjection.test.ts b/apps/mobile/src/__tests__/inputProjection.test.tsindex 19f861cba8..42ddc3f299 100644--- a/apps/mobile/src/__tests__/inputProjection.test.ts+++ b/apps/mobile/src/__tests__/inputProjection.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it, vi } from 'vitest';+import { beforeAll, describe, expect, it, vi } from 'vitest';+import { i18n } from '@/i18n';import {buildQueuePanelSummary,buildQueueRowPresentation,@@ -39,6 +40,10 @@ function session(patch: Partial<RemoteSession> = {}): RemoteSession {}describe('inputProjection', () => {+ beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+ });+it('builds a text-only queued message that matches the desktop coordinator payload shape', () => {vi.setSystemTime(new Date('2026-01-01T00:00:03.000Z'));const queued = buildQueuedTextMessage(session(), ' hello mobile ', new Date(), 'q-1');@@ -527,7 +532,7 @@ describe('inputProjection', () => {},queueLength: projection.pendingQueue.length,});- expect(locked.hint).toBe('这条消息正在编辑中,桌面端会暂停自动发送。');+ expect(locked.hint).toBe('这条消息正在编辑中,桌面端会暂停自动发送。');expect(locked.actions.edit.disabledReason).toBe('这条队列消息正在编辑中,完成后再操作。');});diff --git a/apps/mobile/src/__tests__/messageNormalize.test.ts b/apps/mobile/src/__tests__/messageNormalize.test.tsindex c9c9aa23a1..6c8c0f5c50 100644--- a/apps/mobile/src/__tests__/messageNormalize.test.ts+++ b/apps/mobile/src/__tests__/messageNormalize.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import {CONTINUE_AFTER_ERROR_PROMPT,UI_ACTION_TRIGGER_PREFIX,@@ -19,6 +20,10 @@ function message(patch: Partial<RemoteMessage> & Pick<RemoteMessage, 'id' | 'rol}describe('normalizeRemoteMessages', () => {+ beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+ });+it('projects a persisted agent task terminal state from tool_use metadata', () => {const [item] = normalizeRemoteMessages([message({diff --git a/apps/mobile/src/__tests__/messagePayload.test.ts b/apps/mobile/src/__tests__/messagePayload.test.tsindex 89f915aaa5..a9d6eca814 100644--- a/apps/mobile/src/__tests__/messagePayload.test.ts+++ b/apps/mobile/src/__tests__/messagePayload.test.ts@@ -219,10 +219,10 @@ describe('messagePayload', () => {expect(formatMediaActionNotice(media)).toBe(['桌面端为这个媒体提供了后续操作。',- '可用操作: U1 / V2',- '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',+ '可用操作:U1 / V2',+ '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',].join('\n'));- expect(buildMediaPayload(media, 'a.png').body).toContain('可用操作: U1 / V2');+ expect(buildMediaPayload(media, 'a.png').body).toContain('可用操作:U1 / V2');});it('builds full Mermaid source payloads', () => {diff --git a/apps/mobile/src/__tests__/mobileRemoteFlowSmoke.test.ts b/apps/mobile/src/__tests__/mobileRemoteFlowSmoke.test.tsindex f1a083f6e0..a9362c4b3e 100644--- a/apps/mobile/src/__tests__/mobileRemoteFlowSmoke.test.ts+++ b/apps/mobile/src/__tests__/mobileRemoteFlowSmoke.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it, vi } from 'vitest';+import { beforeAll, describe, expect, it, vi } from 'vitest';+import { i18n } from '@/i18n';import { DeviceLinkError, type DeviceView } from '@cindy/device-link';import { createMobileMakerTransport, type RemoteInvoke } from '@/device-link/mobileMakerTransport';import { toDeviceListItems } from '@/device-link/devices';@@ -48,6 +49,10 @@ import type { InputProjection, PendingInteraction, QueuedRemoteMessage, RemoteMeconst DEVICE_ID = 'host-mac';const SESSION_ID = 'smoke-session-1';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function device(patch: Partial<DeviceView> = {}): DeviceView {return {deviceId: DEVICE_ID,diff --git a/apps/mobile/src/__tests__/remoteStatus.test.ts b/apps/mobile/src/__tests__/remoteStatus.test.tsindex b60998cb91..5b6e8445a4 100644--- a/apps/mobile/src/__tests__/remoteStatus.test.ts+++ b/apps/mobile/src/__tests__/remoteStatus.test.ts@@ -1,4 +1,4 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';import { DeviceLinkError } from '@cindy/device-link';import {connectionRecoverySyncRetryDelayMs,@@ -14,6 +14,10 @@ import {} from '@/device-link/remoteStatus';import { i18n } from '@/i18n';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+describe('remoteStatus', () => {it('backs repeated connection recovery syncs off and caps the delay', () => {expect([0, 1, 2, 3, 4, 5, 6].map(connectionRecoverySyncRetryDelayMs))diff --git a/apps/mobile/src/__tests__/sessionComposerLayout.test.ts b/apps/mobile/src/__tests__/sessionComposerLayout.test.tsindex 5682932ce6..181fea219f 100644--- a/apps/mobile/src/__tests__/sessionComposerLayout.test.ts+++ b/apps/mobile/src/__tests__/sessionComposerLayout.test.ts@@ -1,6 +1,7 @@import { readFileSync } from 'node:fs';import { resolve } from 'node:path';-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import { buildSessionComposerLayout } from '@/session/sessionComposerLayout';const desktopZhLocale = JSON.parse(readFileSync(@@ -15,6 +16,10 @@ const desktopZhLocale = JSON.parse(readFileSync(};describe('sessionComposerLayout', () => {+ beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+ });+it('keeps send disabled until text or attachments exist', () => {const empty = buildSessionComposerLayout({attachmentBusy: false,diff --git a/apps/mobile/src/__tests__/sessionList.test.ts b/apps/mobile/src/__tests__/sessionList.test.tsindex cf635b8bae..754c851f19 100644--- a/apps/mobile/src/__tests__/sessionList.test.ts+++ b/apps/mobile/src/__tests__/sessionList.test.ts@@ -1,5 +1,6 @@import { performance } from 'node:perf_hooks';-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import {buildSessionMessagePreviewIndex,buildRemoteSessionListContext,@@ -18,6 +19,10 @@ import {import type { RemoteSchedule, RemoteScheduleRun } from '@/scheduler/types';import type { RemoteMessage, RemoteSession } from '@/session/types';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function session(id: string, patch: Partial<RemoteSession> = {}): RemoteSession {return {id,@@ -145,7 +150,7 @@ describe('sessionList', () => {expect(buildRemoteSessionCardPreview({...base,scheduleInfo: { scheduleId: 's', scheduleName: '巡检', unreadRunIds: [], unreadCount: 0, running: true, latestRunAt: 0 },- }, { running: true })).toBe('自动化执行中');+ }, { running: true })).toBe('自动化运行中');});it('shows the device-link preview on idle rows, null when the session has no message', () => {@@ -246,7 +251,7 @@ describe('sessionList', () => {expect(group).toMatchObject({title: '移动端巡检',subtitle: '自动化 · 2 个任务 · Claude Code · claude-sonnet-4-6',- detail: '2 个任务 · 4 分钟前 · 自动化执行中 · 1 个自动化未读',+ detail: '2 个任务 · 4 分钟前 · 自动化运行中 · 未读 1',automationGroup: {key: 'schedule:sched-1',sessionIds: ['running', 'old'],@@ -372,8 +377,8 @@ describe('sessionList', () => {['scheduled-waiting', 1],['waiting', 2],]);- expect(waitingRows.find((item) => item.session.id === 'waiting')?.detail).toContain('等待处理 2 个');- expect(waitingRows.find((item) => item.session.id === 'scheduled-waiting')?.detail).toContain('等待处理 1 个');+ expect(waitingRows.find((item) => item.session.id === 'waiting')?.detail).toContain('待处理 2');+ expect(waitingRows.find((item) => item.session.id === 'scheduled-waiting')?.detail).toContain('待处理 1');const automationRows = buildRemoteSessionSections(sessions, Date.now(), {pendingInteractionIndex,@@ -419,7 +424,7 @@ describe('sessionList', () => {});expect(remoteSessionFilterLabel('waiting', overview)).toBe('待处理 1');expect(remoteSessionFilterLabel('all', overview)).toBe('全部 5');- expect(remoteSessionControlsSummary('automation', overview)).toBe('自动化 2 · 项目分组');+ expect(remoteSessionControlsSummary('automation', overview)).toBe('自动化 2 · 按项目分组');expect(remoteSessionOverviewCopy(overview)).toBe('1 个置顶 · 3 个项目 · 1 个自动化执行中');});@@ -442,7 +447,7 @@ describe('sessionList', () => {statusFilter: 'active',})).toMatchObject({title: '搜索结果',- detail: '1 个匹配任务 · 活跃 2 · 项目分组',+ detail: '1 个匹配任务 · 活跃 2 · 按项目分组',hint: '搜索范围包含标题、项目路径、模型、自动化名称和消息预览。',resultCount: 1,rowCount: 1,@@ -473,7 +478,7 @@ describe('sessionList', () => {statusFilter: 'automation',})).toMatchObject({title: '自动化生成的任务',- detail: '2 个任务 · 1 行 · 自动化 2 · 项目分组',+ detail: '2 个任务 · 1 行 · 自动化 2 · 按项目分组',hint: '自动化生成的任务会按计划聚合,展开后可以进入单次运行。',resultCount: 2,rowCount: 1,@@ -494,7 +499,7 @@ describe('sessionList', () => {title: '没有归档任务',});expect(deviceSessionEmptyState('active', '')).toMatchObject({- title: '这台电脑暂无活动任务',+ title: '这台电脑暂无活跃任务',});});diff --git a/apps/mobile/src/__tests__/sessionMenu.test.ts b/apps/mobile/src/__tests__/sessionMenu.test.tsindex 9710f32c4c..178f2ded72 100644--- a/apps/mobile/src/__tests__/sessionMenu.test.ts+++ b/apps/mobile/src/__tests__/sessionMenu.test.ts@@ -83,7 +83,7 @@ describe('sessionMenu header', () => {orcaRole: 'lead',}), { readOnlyReason: '协作只读' });expect(header.chips.map((chip) => chip.id)).toEqual(['pinned', 'archived', 'readonly', 'collab']);- expect(header.chips[3]?.label).toBe('协作 Lead');+ expect(header.chips[3]?.label).toBe('协同 Lead');});it('hides the usage summary when no cost and no context data exist', () => {diff --git a/apps/mobile/src/__tests__/sessionOperationLayout.test.ts b/apps/mobile/src/__tests__/sessionOperationLayout.test.tsindex c2a0bd087f..4ee9830afa 100644--- a/apps/mobile/src/__tests__/sessionOperationLayout.test.ts+++ b/apps/mobile/src/__tests__/sessionOperationLayout.test.ts@@ -1,11 +1,16 @@import { readFileSync } from "node:fs";import { resolve } from "node:path";-import { describe, expect, it } from "vitest";+import { beforeAll, describe, expect, it } from "vitest";+import { i18n } from "@/i18n";import {buildSessionOperationLayout,composerDisabledReasonI18nKey,} from "@/session/sessionOperationLayout";+beforeAll(async () => {+ await i18n.changeLanguage("zh-CN");+});+describe("session operation layout", () => {it("keeps the footer empty except the resync hint when the session is not synchronized", () => {expect(diff --git a/apps/mobile/src/__tests__/sessionOverview.test.ts b/apps/mobile/src/__tests__/sessionOverview.test.tsindex f2ceab68be..20140b5ea5 100644--- a/apps/mobile/src/__tests__/sessionOverview.test.ts+++ b/apps/mobile/src/__tests__/sessionOverview.test.ts@@ -1,7 +1,12 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import { summarizeSessionOverview } from '@/session/sessionOverview';import type { RemoteSession } from '@/session/types';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function session(patch: Partial<RemoteSession> = {}): RemoteSession {return {id: 's1',@@ -84,7 +89,7 @@ describe('sessionOverview', () => {expect(overview.stateChips).toEqual([{ id: 'read-only', label: '只读', strong: true },]);- expect(overview.runtimeSubtitle).toBe('协作 Worker · Worktree app-worker · Codex · claude-sonnet-4-6 · plan · Fast');+ expect(overview.runtimeSubtitle).toBe('协同 Worker · Worktree app-worker · Codex · claude-sonnet-4-6 · plan · Fast');});it('marks archived sessions without surfacing usage in the main overview', () => {diff --git a/apps/mobile/src/__tests__/sessionSelection.test.ts b/apps/mobile/src/__tests__/sessionSelection.test.tsindex 1a089bb8ab..b4743a8183 100644--- a/apps/mobile/src/__tests__/sessionSelection.test.ts+++ b/apps/mobile/src/__tests__/sessionSelection.test.ts@@ -1,4 +1,5 @@-import { describe, expect, it } from 'vitest';+import { beforeAll, describe, expect, it } from 'vitest';+import { i18n } from '@/i18n';import {isMobileSessionBulkActionAvailable,mobileSessionBulkActionButtonLabel,@@ -12,6 +13,10 @@ import {import type { RemoteSession } from '@/session/types';import type { RemoteSessionSection } from '@/session/sessionList';+beforeAll(async () => {+ await i18n.changeLanguage('zh-CN');+});+function session(id: string, patch: Partial<RemoteSession> = {}): RemoteSession {return {id,@@ -92,7 +97,7 @@ describe('mobile session selection', () => {expect(summary.candidates.map((item) => item.id)).toEqual(['active']);expect(summary.skippedCount).toBe(2);- expect(summary.description).toContain('将跳过 2 个不适用的任务');+ expect(summary.description).toContain('跳过 2 个不适用的任务');expect(isMobileSessionBulkActionAvailable(summary)).toBe(true);expect(mobileSessionBulkActionButtonLabel(summary)).toBe('归档 1');expect(mobileSessionBulkPatch('archive')).toEqual({ status: 'archived', pinnedAt: null });@@ -119,7 +124,7 @@ describe('mobile session selection', () => {expect(summary.candidates.map((item) => item.id)).toEqual(['archived']);expect(summary.skippedCount).toBe(2);- expect(summary.description).toContain('将跳过 2 个不适用的任务');+ expect(summary.description).toContain('跳过 2 个不适用的任务');expect(mobileSessionBulkPatch('restore')).toEqual({ status: 'active' });});diff --git a/apps/mobile/src/device-link/devices.ts b/apps/mobile/src/device-link/devices.tsindex 62150ffa42..e3452d8e9c 100644--- a/apps/mobile/src/device-link/devices.ts+++ b/apps/mobile/src/device-link/devices.ts@@ -1 +1,33 @@+import {+ buildDeviceListPresentation as buildDeviceListPresentationShared,+ toDeviceListItem as toDeviceListItemShared,+ toDeviceListItems as toDeviceListItemsShared,+ type DeviceListDeviceLike,+ type DeviceListVisibility,+} from '@cindy/maker-shared/device-list';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';+export * from '@cindy/maker-shared/device-list';++export function toDeviceListItems<TDevice extends DeviceListDeviceLike>(+ devices: readonly TDevice[],+ now = Date.now(),+ revokedDevices: ReadonlySet<string> = new Set(),+) {+ return toDeviceListItemsShared(devices, now, revokedDevices, mobilePresentationLocalizer);+}++export function toDeviceListItem<TDevice extends DeviceListDeviceLike>(+ device: TDevice,+ now = Date.now(),+ revokedDevices: ReadonlySet<string> = new Set(),+) {+ return toDeviceListItemShared(device, now, revokedDevices, mobilePresentationLocalizer);+}++export function buildDeviceListPresentation(+ visibility: Pick<DeviceListVisibility, 'availableCount' | 'hiddenUnavailableCount' | 'unavailableCount'>,+ showUnavailable: boolean,+) {+ return buildDeviceListPresentationShared(visibility, showUnavailable, mobilePresentationLocalizer);+}diff --git a/apps/mobile/src/device-link/remoteStatus.ts b/apps/mobile/src/device-link/remoteStatus.tsindex de98d060fc..154d79ce09 100644--- a/apps/mobile/src/device-link/remoteStatus.ts+++ b/apps/mobile/src/device-link/remoteStatus.ts@@ -5,17 +5,16 @@ import {isDeviceUnresponsiveRemoteError,isTransientRemoteError,} from '@cindy/maker-shared/device-link-contract';-import type { DeviceLinkConnectionIssueKind } from '@cindy/device-link';+import type { DeviceLinkConnectionIssueKind, DeviceLinkStatus } from '@cindy/device-link';import { i18n } from '@/i18n';export {- describeAgentAuthError,formatRemoteError,isPreconditionFailedRemoteError,- relayStatusHint,- relayStatusLabel,} from '@cindy/maker-shared/device-link-contract';+const AGENT_NOT_AUTHENTICATED_RE = /^(?:\[[A-Z_]+\] )?(claude-code|codex|pi) not authenticated: ?(.*)$/;+const CONNECTION_ISSUE_COPY_KEYS: Record<DeviceLinkConnectionIssueKind,{ title: string; hint: string }@@ -42,6 +41,42 @@ export function connectionIssueHint(kind: DeviceLinkConnectionIssueKind): stringreturn i18n.t(CONNECTION_ISSUE_COPY_KEYS[kind].hint);}+export function relayStatusLabel(status: DeviceLinkStatus): string {+ return i18n.t(`deviceLink.relay.label.${status}`);+}++export function relayStatusHint(status: DeviceLinkStatus, lastSyncedAt: number | null): string {+ if (status === 'online') {+ if (!lastSyncedAt) return i18n.t('deviceLink.relay.hint.online');+ const time = new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language, {+ hour: '2-digit',+ minute: '2-digit',+ second: '2-digit',+ }).format(new Date(lastSyncedAt));+ return i18n.t('deviceLink.relay.hint.lastSynced', { time });+ }+ return i18n.t(`deviceLink.relay.hint.${status}`);+}++export function describeAgentAuthError(error: string | null | undefined): string | null {+ if (!error) return null;+ const matched = AGENT_NOT_AUTHENTICATED_RE.exec(error.trim());+ if (!matched) return null;+ const agent = matched[1] === 'claude-code' ? 'Claude' : matched[1] === 'pi' ? 'Pi' : 'Codex';+ const reason = matched[2] || 'unknown';+ const reasonKey: Record<string, string> = {+ no_key: 'noKey',+ no_oauth: 'noOauth',+ no_credentials: 'noCredentials',+ no_encryption: 'noEncryption',+ proxy_not_ready: 'proxyNotReady',+ };+ return i18n.t(`deviceLink.agentAuth.${reasonKey[reason] ?? 'default'}`, {+ agent,+ reason,+ });+}+/** 自动恢复类连接错误保留结构化 marker 做状态分类,展示文案则复用 Mobile i18n。 */function localizedConnectionRecoveryCopy(error: unknown): string | null {const formatted = typeof error === 'string' ? error : formatRemoteErrorShared(error);@@ -62,6 +97,9 @@ export function humanizeRemoteError(error: unknown): string {}const recoveryCopy = localizedConnectionRecoveryCopy(error);if (recoveryCopy) return recoveryCopy;+ const formatted = typeof error === 'string' ? error : formatRemoteErrorShared(error);+ const localized = localizedStableRemoteError(formatted);+ if (localized) return localized;return humanizeRemoteErrorShared(error);}@@ -93,14 +131,46 @@ export function connectionRecoverySyncRetryDelayMs(attempt: number): number {}export function describeRemoteError(error: string | null): string | null {- if (error?.includes('DEVICE_UNRESPONSIVE')) {+ if (!error) return null;+ if (error.includes('DEVICE_UNRESPONSIVE')) {return i18n.t('deviceLink.deviceUnresponsiveHint');}const recoveryCopy = localizedConnectionRecoveryCopy(error);if (recoveryCopy) return recoveryCopy;+ const agentAuth = describeAgentAuthError(error);+ if (agentAuth) return agentAuth;+ const localized = localizedStableRemoteError(error);+ if (localized) return localized;return describeRemoteErrorShared(error);}+function localizedStableRemoteError(error: string): string | null {+ const simpleMarkers: Array<[string, string]> = [+ ['REMOTE_DISABLED', 'remoteDisabled'],+ ['CHANNEL_NOT_ALLOWED', 'channelNotAllowed'],+ ['ACCESS_REVOKED', 'accessRevoked'],+ ['DEVICE_UNRESPONSIVE', 'deviceUnresponsive'],+ ['VERSION_MISMATCH', 'versionMismatch'],+ ['PAYLOAD_TOO_LARGE', 'payloadTooLarge'],+ ['MEDIA_FETCH_FAILED', 'mediaFetchFailed'],+ ['VOICE_TRANSCRIBE_FAILED', 'voiceTranscribeFailed'],+ ['LINK_NOT_OPEN', 'linkNotOpen'],+ ];+ for (const [marker, key] of simpleMarkers) {+ if (error.includes(marker)) return i18n.t(`deviceLink.remoteError.${key}`);+ }+ if (error.includes('PRECONDITION_FAILED')) {+ if (error.includes('ACCOUNT_CHANGED')) return i18n.t('deviceLink.remoteError.accountChanged');+ if (error.includes('OFFER_EXPIRED')) return i18n.t('deviceLink.remoteError.offerExpired');+ return i18n.t('deviceLink.remoteError.preconditionFailed');+ }+ if (isTransientRemoteError(error)) return i18n.t('deviceLink.remoteError.transient');+ if (error.includes('BAD_REQUEST') || error.includes('INTERNAL')) {+ return i18n.t('deviceLink.remoteError.callFailed', { error });+ }+ return null;+}+/*** 只有确定性远端错误才锁 composer;断线、弱网、超时与熔断由本地 outbox 接住,* 恢复后自动派发。返回 null 表示 composer 可以继续收消息。diff --git a/apps/mobile/src/i18n/locales/en/deviceLink.json b/apps/mobile/src/i18n/locales/en/deviceLink.jsonindex b7ca856b3a..33a335712f 100644--- a/apps/mobile/src/i18n/locales/en/deviceLink.json+++ b/apps/mobile/src/i18n/locales/en/deviceLink.json@@ -26,5 +26,42 @@"versionMismatchTitle": "Version mismatch","versionMismatchHint": "This app version is incompatible with the service. Update to the latest version and try again.","unstableTitle": "Connection keeps dropping",- "unstableHint": "Connection keeps dropping and reconnecting — check the network, or restart the app if it persists."+ "unstableHint": "Connection keeps dropping and reconnecting — check the network, or restart the app if it persists.",+ "relay": {+ "label": {+ "online": "Relay connected",+ "connecting": "Connecting to Relay",+ "stopped": "Relay disconnected"+ },+ "hint": {+ "online": "Remote tasks can be synced.",+ "lastSynced": "Last synced {{time}}",+ "connecting": "Remote tasks will resubscribe automatically when the network recovers.",+ "stopped": "The connection will resume when you return to the app or sign in again."+ }+ },+ "agentAuth": {+ "noKey": "{{agent}} can't be used because no API key is configured on the computer. Configure one in {{appName}} on the computer under Settings → Model Providers, then try again.",+ "noOauth": "{{agent}} can't be used because account authorization isn't complete on the computer. Reconnect the account in {{appName}} on the computer under Settings → Model Providers, then try again.",+ "noCredentials": "{{agent}} can't be used because it isn't signed in on the computer. Sign in through {{appName}} on the computer under Settings → Model Providers, then try again.",+ "noEncryption": "{{agent}} can't be used because secure system storage on the computer is unavailable. Check Keychain on macOS or account encryption on Windows, then restart {{appName}} on the computer.",+ "proxyNotReady": "{{agent}} isn't ready on the computer yet. Try again shortly; if this continues, restart {{appName}} on the computer.",+ "default": "{{agent}} can't be used because its computer sign-in is unavailable. Sign in again through {{appName}} on the computer under Settings → Model Providers. ({{reason}})"+ },+ "remoteError": {+ "remoteDisabled": "The controlled computer has disabled remote control.",+ "channelNotAllowed": "The current desktop version doesn't support this remote capability.",+ "accessRevoked": "This computer has revoked mobile access.",+ "deviceUnresponsive": "The computer isn't responding. Automatic retry is in progress; try again shortly.",+ "versionMismatch": "The service protocol version doesn't match. Update the app and try again.",+ "payloadTooLarge": "This transfer is too large. Split it into smaller parts and try again.",+ "mediaFetchFailed": "The file couldn't be fetched from the computer. Try again later.",+ "voiceTranscribeFailed": "Voice transcription failed. Try again or use the keyboard.",+ "linkNotOpen": "The control link to the computer was disconnected and is reconnecting.",+ "accountChanged": "The Codex account or workspace changed. Refresh the quota and confirm again.",+ "offerExpired": "The Codex reset offer expired. Refresh the quota and confirm again.",+ "preconditionFailed": "The operation conditions changed. Refresh and confirm again.",+ "transient": "The network or controlled computer is temporarily unavailable. Sync again later.",+ "callFailed": "The remote call failed. Try again later. ({{error}})"+ }}diff --git a/apps/mobile/src/i18n/locales/en/devices.json b/apps/mobile/src/i18n/locales/en/devices.jsonindex ab33e57451..44a1fa781e 100644--- a/apps/mobile/src/i18n/locales/en/devices.json+++ b/apps/mobile/src/i18n/locales/en/devices.json@@ -7,6 +7,136 @@"deleting": "Deleting","create": "New"},+ "presentation": {+ "deviceList": {+ "headerAvailable": "{{count}} controllable computers",+ "headerUnavailable": "{{count}} computers currently unavailable",+ "waitingForDesktop": "Waiting for a computer to come online",+ "filterAvailable": "Controllable devices",+ "filterEmpty": "No controllable devices",+ "filterMeta": "{{available}} available",+ "filterMetaWithUnavailable": "{{available}} available · {{unavailable}} need attention",+ "showUnavailableReason": "Expand a device to see why it is unavailable",+ "emptyCopy": "Sign in to the same account on your computer, then enable “Allow same-account devices to control this computer” under Remote Control in Settings.",+ "emptyTitle": "No computers to show yet",+ "hideUnavailableA11y": "Hide unavailable computers",+ "showUnavailableA11y": "Show unavailable computers",+ "availableOnly": "Available only",+ "unavailableCount": "Unavailable {{count}}",+ "status": {+ "ready": "Controllable",+ "busy": "Running",+ "offline": "Offline",+ "remoteDisabled": "Remote control off",+ "accessRevoked": "Access revoked",+ "self": "This device"+ },+ "detail": {+ "accessRevoked": "Restore this phone’s access on the computer",+ "remoteDisabled": "Enable remote control in the computer’s settings",+ "self": "Current phone",+ "busy": "The computer is working on a task",+ "ready": "Remote control is allowed"+ },+ "lastSeen": {+ "never": "Never online",+ "unknown": "Last online time unknown",+ "justNow": "Online just now",+ "minutesAgo": "Online {{count}} minutes ago",+ "hoursAgo": "Online {{count}} hours ago",+ "daysAgo": "Online {{count}} days ago",+ "onDate": "Last online {{date}}"+ }+ },+ "sessionList": {+ "section": { "pinned": "Pinned" },+ "filterWithCount": "{{label}} {{count}}",+ "controlsSummary": "{{filter}} · Grouped by {{group}}",+ "automation": "Automation",+ "sessionCount": "{{count}} sessions",+ "messageCount": "{{count}} messages",+ "status": { "archived": "Archived", "deleted": "Deleted" },+ "preview": {+ "permission": "Waiting for permission",+ "planReview": "Waiting for plan review",+ "answer": "Waiting for your answer",+ "attention": "Waiting for you",+ "automationRunning": "Automation running",+ "running": "Running"+ },+ "context": {+ "matchingTasks": "{{count}} matching sessions",+ "tasks": "{{count}} sessions",+ "noMatchingTasks": "No matching sessions",+ "noResults": "No results for this filter",+ "rows": " · {{count}} rows",+ "detail": "{{result}}{{rows}} · {{filter}} · Grouped by {{group}}",+ "searchResults": "Search Results",+ "title": {+ "active": "Active Sessions",+ "waiting": "Pending Sessions",+ "automation": "Automation Sessions",+ "archived": "Archived Sessions",+ "all": "All Sessions"+ },+ "hint": {+ "search": "Search includes titles, project paths, models, automation names, and message previews.",+ "active": "Open a session to continue controlling it, or touch and hold to select multiple sessions.",+ "waiting": "Permissions, plan reviews, and questions that need confirmation on your phone appear here.",+ "automation": "Automation sessions are grouped by task; expand a group to open an individual run.",+ "archived": "Touch and hold an archived session to restore or delete it in bulk.",+ "all": "Active, archived, and automation sessions are shown together for quick lookup."+ }+ },+ "empty": {+ "search": { "title": "No matching sessions", "copy": "Try another title, project path, model, or message keyword." },+ "waiting": { "title": "No pending requests", "copy": "Permission prompts, plan reviews, and questions will appear here." },+ "automation": { "title": "No automation sessions", "copy": "Sessions created by automations will be grouped here after a run." },+ "archived": { "title": "No archived sessions", "copy": "Touch and hold a session to archive or delete it in bulk." },+ "active": { "title": "No active sessions on this computer", "copy": "Create or continue a session on your computer and it will appear here." }+ },+ "time": {+ "unknown": "Recent activity time unknown",+ "justNow": "Just now",+ "minutesAgo": "{{count}} minutes ago",+ "hoursAgo": "{{count}} hours ago",+ "daysAgo": "{{count}} days ago",+ "minutes": "{{count}} min",+ "hours": "{{count}} hr",+ "days": "{{count}} d",+ "weeks": "{{count}} wk",+ "months": "{{count}} mo",+ "years": "{{count}} yr"+ }+ },+ "home": {+ "allDevices": "All",+ "allComputers": "All computers",+ "waitingCount": "{{count}} pending",+ "synced": "Synced",+ "unknownComputer": "Unknown computer",+ "uncategorizedProject": "Uncategorized project",+ "empty": {+ "search": { "title": "No matches", "copy": "Try another project name, session title, computer name, or message keyword." },+ "waiting": { "title": "No pending requests", "copy": "Permission prompts, plan reviews, and questions will appear here." },+ "automation": { "title": "No automation sessions", "copy": "Sessions created by automations will be grouped here by project." },+ "archived": { "title": "No archived sessions", "copy": "Switch to All or Active to keep browsing your current projects and sessions." },+ "noSession": { "title": "No sessions yet", "copy": "Create or continue a session on your computer and its project will appear here." }+ },+ "noDevice": {+ "accessRevoked": { "title": "Access revoked", "copy": "{{names}} revoked this phone’s remote access. Retry access, or allow it again on the computer to reconnect automatically." },+ "remoteDisabled": { "title": "Allow remote control on your computer", "copy": "{{names}} is online. One step remains: enable phone control on the computer." },+ "offline": { "title": "Open Cindy on your computer", "copy": "Your connected computers are offline. Open Cindy and stay signed in; your phone will reconnect automatically." },+ "firstRun": { "title": "Connect Cindy on your computer", "copy": "Cindy currently runs on your computer. The mobile app uses remote access so you can work with the Agents on that computer." }+ }+ },+ "bulk": {+ "action": { "archive": "Archive", "delete": "Delete", "pin": "Pin", "restore": "Restore", "unpin": "Unpin" },+ "title": "{{action}} {{count}} sessions",+ "description": "Apply {{action}} to the {{count}} selected sessions.",+ "descriptionWithSkipped": "Apply {{action}} to {{count}} selected sessions; {{skippedCount}} inapplicable sessions will be skipped."+ }+ },"list": {"thisComputer": "This device","allConversations": "All Sessions",@@ -244,6 +374,12 @@"viewAllRuns": "View all {{count}} runs"},"automations": {+ "heading": {+ "delete": "Delete Automation",+ "pause": "Pause Automation",+ "deleteRun": "Delete Run"+ },+ "runNow": "Run now","error": {"projectMissingConfig": "This project automation is missing projectConfigId. Delete it on the desktop.","deletePartial": "Automation deleted, but {{count}} generated sessions couldn't be updated. Check them on the desktop."@@ -359,7 +495,51 @@"loading": "Loading","refresh": "Refresh","cardA11y": "Automation template {{name}}",- "manualConfig": "Manual config"+ "manualConfig": "Manual config",+ "builtin": {+ "nightly-test-heal": {+ "name": "Nightly test self-healing",+ "description": "Run tests every night and attempt minimal fixes for failures in an isolated worktree",+ "prompt": "Run the project's test suite. If there are failures, attempt a minimal fix in an isolated worktree.\nConstraints:\n- Determine the standard test command from the repo docs or package scripts before running the full suite\n- Only fix issues backed by clear failing evidence; prefer the smallest possible change and avoid drive-by refactoring\n- Re-run the affected tests after fixing to confirm they pass, and review the full diff\n- Deliver fixes through the repo's workflow (e.g. create a branch and open a PR); never commit directly to the main branch\n- For failures that cannot be fixed safely, report the cause, suspicious files, and suggested next steps"+ },+ "pr-gatekeeper": {+ "name": "PR gatekeeper",+ "description": "Pre-review new changes on open PRs each weekday and report risks by severity",+ "prompt": "Review the repository's open PRs and pre-screen their new changes.\nConstraints:\n- Go through open PRs with new commits in the past 24 hours (on Monday, look back over the whole weekend), citing PR numbers, file paths, and concrete diffs\n- Focus on correctness, security, data-loss, and compatibility issues, graded by severity\n- Only report issues backed by evidence and describe the failure scenario; do not nitpick on style preferences\n- Unless explicitly authorized, only output review conclusions; do not comment on PRs or change code"+ },+ "domain-radar": {+ "name": "Domain radar",+ "description": "Periodically collect the latest updates in a topic you follow and deliver an opinionated digest",+ "prompt": "Collect the latest developments about \"{{topic}}\" from the past 24 hours (on Monday, look back over the whole weekend) and produce an opinionated digest.\nConstraints:\n- Use web search, cross-check multiple sources before trusting a claim, and cite the source link for every item\n- Prefer substantive developments (releases, research, policy, notable discussions); filter out marketing fluff and reposts\n- For each item, add a one-line judgement on why it matters instead of dumping links\n- When information is scarce or sources are questionable, say so honestly; never fabricate",+ "params": {+ "topic": {+ "label": "Topic to follow",+ "placeholder": "e.g. AI agents, EV market, frontend frameworks"+ }+ }+ },+ "competitor-watch": {+ "name": "Competitor watch",+ "description": "Weekly roundup of competitors' product and market moves, with impact analysis",+ "prompt": "Track the past week's activity of these competitors: {{competitors}}.\nConstraints:\n- Use web search to cover product updates, releases, pricing changes, market moves, and user sentiment, citing sources\n- Distinguish official information from third-party accounts; clearly mark unverified rumors\n- For each significant update, analyze what it means for us and suggest a response\n- If nothing substantive happened, say so honestly instead of padding the report",+ "params": {+ "competitors": {+ "label": "Competitors",+ "placeholder": "e.g. Notion, Linear, Figma"+ }+ }+ },+ "weekly-work-draft": {+ "name": "Weekly report drafter",+ "description": "Compile this week's work from documents in the working directory into a report draft",+ "prompt": "Based on this week's changes to documents, notes, and deliverables in the working directory, compile a weekly report draft.\nConstraints:\n- Only use content with actual modification traces in the working directory as evidence, citing the files\n- Organize as \"Done this week / In progress / Next week / Needs coordination\", concise enough to submit directly\n- Separate substantive progress from routine chores and highlight valuable output\n- Leave placeholders with notes where the material is insufficient so the user can fill them in"+ },+ "knowledge-freshness": {+ "name": "Knowledge base freshness check",+ "description": "Monthly health check of working-directory docs for outdated or conflicting content",+ "prompt": "Health-check the documents in the working directory and find content that needs updating.\nConstraints:\n- Look for outdated information (stale dates, dead links, deprecated processes or tools), contradictions, and duplication\n- Cite the file path and location for every issue and explain the reasoning\n- Categorize as \"update / merge / delete\" suggestions and produce a revision checklist\n- Only output the report; do not modify the documents"+ }+ }},"scheduleRowA11y": "Automation task {{title}}","detail": {@@ -386,6 +566,90 @@"marking": "Marking","markRead": "Read","deleteA11y": "Delete run record"+ },+ "presentation": {+ "validation": {+ "templateParameter": "Enter the template parameter: {{label}}",+ "name": "Enter a task name",+ "prompt": "Enter a task prompt",+ "timezone": "Enter a time zone",+ "boundSession": "Choose a task to bind",+ "cron": "Enter a cron expression",+ "workingDir": "Enter a project directory",+ "effort": "Reasoning effort must be one of: {{values}}",+ "intervalPositiveInteger": "The interval in minutes must be a positive integer",+ "intervalUnsupported": "Minute intervals support 1–59 minutes, or whole-hour intervals from 1–23 hours"+ },+ "schedule": {+ "paused": "Paused",+ "manual": "Manual trigger",+ "once": "One-time task",+ "waitingFirstRun": "Waiting for the first run",+ "every": "Every {{duration}}",+ "recurring": "Recurring task",+ "dialogueWorkspace": "Chat workspace",+ "noDirectory": "No directory set",+ "lastRun": "Last run {{relative}}",+ "imminent": "Running soon",+ "nextRun": "In {{duration}}",+ "status": {+ "active": "Running",+ "paused": "Paused",+ "expired": "Completed"+ },+ "session": {+ "persistent": "Persistent task",+ "bound": "Bound task",+ "fresh": "New task",+ "persistentWithId": "Persistent task {{id}}",+ "persistentDetail": "Reuse the same task after the first trigger",+ "boundWithId": "Bound to {{id}}"+ }+ },+ "run": {+ "session": "Task {{id}}",+ "delete": "Delete",+ "markRead": "Read",+ "canRestart": "Can run again",+ "noSession": "No task created",+ "open": "Open",+ "restart": "Re-run",+ "durationUnknown": "Duration unknown",+ "runningFor": "Running for {{duration}}",+ "duration": "Duration {{duration}}",+ "unknownTime": "Unknown time",+ "status": {+ "running": "Running",+ "success": "Succeeded",+ "failed": "Failed",+ "aborted": "Aborted",+ "interrupted": "Interrupted",+ "skipped": "Skipped"+ }+ },+ "pause": {+ "title": "Pause {{name}}",+ "detail": "This automation currently has {{count}} runs in progress. Pausing stops future triggers immediately and stops these active runs.",+ "preview": "Runs in progress: {{count}}"+ },+ "delete": {+ "noSessions": "No tasks generated by this automation were found",+ "sessions": "Found {{count}} tasks generated by this automation",+ "withInflight": "{{sessions}}, with {{count}} runs still in progress"+ },+ "duration": {+ "seconds": "{{count}} sec",+ "minutesSeconds": "{{minutes}} min {{seconds}} sec",+ "minutes": "{{count}} min",+ "hours": "{{count}} hr",+ "days": "{{count}} days"+ },+ "relative": {+ "justNow": "just now",+ "minutesAgo": "{{count}} min ago",+ "hoursAgo": "{{count}} hr ago",+ "daysAgo": "{{count}} days ago"+ }}}}diff --git a/apps/mobile/src/i18n/locales/en/files.json b/apps/mobile/src/i18n/locales/en/files.jsonindex b00d4d2a9b..326006cb35 100644--- a/apps/mobile/src/i18n/locales/en/files.json+++ b/apps/mobile/src/i18n/locales/en/files.json@@ -46,6 +46,34 @@"a11yPreviewName": "Preview {{name}}","a11yPreviewNameLine": "Preview {{name}} line {{line}}"},+ "presentation": {+ "grid": {+ "today": "Today {{time}}", "yesterday": "Yesterday {{time}}", "empty": "Folder is empty",+ "summaryMixed": "{{dirs}} folders, {{files}} files", "summaryDirs": "{{count}} folders", "summaryFiles": "{{count}} files", "workdir": "Working directory"+ },+ "preview": {+ "nonText": {+ "pdf": "PDF files can't be previewed inline on mobile yet. Copy the path and open it on desktop or in a system PDF reader.",+ "drawio": "Draw.io files can't be previewed inline on mobile yet. Copy the path and continue viewing or editing on desktop.",+ "office": "Office files can't be previewed inline on mobile yet. Copy the path and open it on desktop or in a system app.",+ "binary": "This isn't a text file, so mobile won't read its contents. Copy the path to open it on desktop.",+ "unknown": "The file type can't be determined, so mobile won't read its contents. Copy the path to open it on desktop.",+ "text": "Text preview is available on demand."+ },+ "pathOnly": "Only the file path is available; the preview can't be read from the remote computer.",+ "loading": "Reading the text preview from the remote computer",+ "ready": "Text preview loaded · {{size}}",+ "idle": "The remote text preview is loaded on demand; file contents aren't fetched in bulk in the message list.",+ "failure": {+ "oversize": "File exceeds the remote preview limit · {{limit}} · Current size {{size}}",+ "forbidden": "The controlled computer denied access to this path.",+ "notFound": "The file wasn't found on the controlled computer.",+ "readFailed": "Read failed.",+ "readFailedWithError": "Read failed: {{error}}",+ "default": "This file can't be previewed."+ }+ }+ },"preview": {"done": "Done","a11yShare": "Export and share",diff --git a/apps/mobile/src/i18n/locales/en/interaction.json b/apps/mobile/src/i18n/locales/en/interaction.jsonindex 8a49d61eaa..198dec3b62 100644--- a/apps/mobile/src/i18n/locales/en/interaction.json+++ b/apps/mobile/src/i18n/locales/en/interaction.json@@ -222,5 +222,46 @@},"inlineFormAction": "Enter {{label}} on your computer","inlineFormActionGeneric": "Enter one setting on your computer"+ },+ "presentation": {+ "action": { "submitting": "Submitting" },+ "permission": {+ "highRiskTitle": "High-risk permission needs confirmation",+ "highRiskDetail": "Review the command, then confirm again to allow it. Deny it if you're unsure.",+ "sessionAllowTitle": "Allow once or always allow for this task",+ "allowTitle": "The computer will continue after you allow this",+ "tool": "Tool: {{tool}}",+ "title": "Allow {{tool}}?",+ "risk": "This command may change the system, repository, or an external service. Before allowing it, confirm that you trust the current task and command."+ },+ "ask": {+ "progress": "Question {{current}} of {{total}}",+ "multiSelect": "You can select multiple answers or enter another answer.",+ "singleSelect": "Select an answer or enter another answer.",+ "emptyTitle": "No specific question",+ "emptyDetail": "You can submit an empty answer so the computer can continue.",+ "waiting": "Agent is waiting for confirmation"+ },+ "plan": {+ "outlineCount": "{{count}} sections",+ "noOutline": "No outline",+ "hasFile": "Plan file available",+ "noFile": "No plan file path",+ "editedTitle": "Plan edited; approval runs the current version",+ "approveTitle": "After approval, the computer continues with this plan"+ },+ "queue": {+ "count": "{{count}} requests",+ "readOnlyHint": "Collaboration is read-only; requests from the computer are shown here.",+ "empty": "No pending requests",+ "hint": {+ "plan_review": "Review the plan and request changes if needed. The computer continues only after approval.",+ "permission": "Only this decision is sent back to the current task on the computer.",+ "ask_user_question": "Answers are saved as a draft; the computer continues after submission.",+ "issue_confirm": "Confirm the title and body before submitting.",+ "plugin_setup": "Setup must be completed on the computer; you can cancel this request here.",+ "fallback": "Mobile handles remote requests in the order sent by the desktop."+ }+ }}}diff --git a/apps/mobile/src/i18n/locales/en/message.json b/apps/mobile/src/i18n/locales/en/message.jsonindex 74fc3e89d0..74c3c6e883 100644--- a/apps/mobile/src/i18n/locales/en/message.json+++ b/apps/mobile/src/i18n/locales/en/message.json@@ -1,5 +1,6 @@{"renderer": {+ "moreActions": "More message actions","previousQuestionJump": "Jump to previous question: {{preview}}","noPreview": "No preview","newMessagesToBottom": "New messages, jump to bottom",@@ -201,7 +202,88 @@"learnFailedBody": "Failed to start: {{detail}}","unknownError": "Unknown error"},+ "queuePresentation": {+ "panel": {+ "sendFailedRetryable": "Send failed · Retry available",+ "sendFailed": "Send failed",+ "errorHint": "Resolve the queue error before sending another message.",+ "errorTitle": "Queue needs attention",+ "abortQueued": "{{count}} messages remain in the queue",+ "abortWaiting": "Waiting for the desktop to confirm the stop",+ "abortHint": "Don't send again until stopping completes. Queued messages will remain visible here.",+ "abortTitle": "Stopping",+ "pausedDetail": "{{count}} messages waiting to resume",+ "pausedHint": "Tap Resume to send them to the desktop in the current order.",+ "pausedTitle": "Queue paused",+ "defaultDetail": "{{count}} messages · Sent in desktop order",+ "defaultHint": "You can reorder, interject, edit, or delete regular queued messages.",+ "defaultTitle": "Pending queue"+ },+ "row": {+ "syntheticEditDisabled": "System instruction messages can't be edited or sent as interjections.",+ "first": "This is already the first item in the queue.",+ "last": "This is already the last item in the queue.",+ "steering": "Sending interjection",+ "orcaTitle": "Collaboration queue {{index}}",+ "title": "Queue {{index}}",+ "orcaReadOnly": "Collaboration messages are orchestrated on the desktop and are read-only on mobile.",+ "busy": "Queue changes are syncing. Try again when syncing finishes.",+ "steeringDisabled": "The interjection is being sent to the current turn. Wait for the desktop response before changing it.",+ "editLocked": "This queued message is being edited. Try again when editing finishes.",+ "interactionLocked": "Another operation has locked the queue. Try again when it finishes.",+ "syntheticHint": "This instruction was generated by the system. You can cancel it, but not edit it or send it as an interjection.",+ "steeringHint": "The interjection is being sent to the current turn, so it can't be edited or moved yet.",+ "editHint": "This message is being edited, and automatic desktop sending is paused.",+ "interactionHint": "The queue is being reordered or used by another operation, so this message can't be edited yet."+ }+ },+ "payloadPresentation": {+ "remoteFetchBody": "The mobile app will try to fetch this media from the remote desktop.",+ "missingRemotePath": "No remote path to display",+ "missingRemotePathSentence": "No remote path to display.",+ "mermaidSourceTitle": "Mermaid diagram source",+ "diffStats": "+{{insertions}} / -{{deletions}} lines",+ "directPreview": "Ready to preview",+ "remoteFetchRequired": "Remote fetch required",+ "chartSource": "Diagram source",+ "noDiffContent": "No diff content.",+ "noMediaAddress": "No media address.",+ "remoteMediaPreparing": "Preparing remote media fetch",+ "mediaAddressOnlySentence": "This media type is currently shown as an address.",+ "mediaCannotPreviewSentence": "This media can't be previewed directly right now.",+ "emptyMermaid": "Empty Mermaid diagram.",+ "noTextContent": "No text content to display.",+ "viewDiff": "View diff",+ "editCount": "{{count}} edits",+ "previewFile": "Preview file",+ "viewDetails": "View details",+ "noRemotePath": "No remote path",+ "remotePathMissing": "Remote path missing",+ "fetchMedia": "Fetch media",+ "fetchMediaFromDesktop": "Fetch this media from the desktop",+ "pendingFetch": "Pending fetch",+ "previewMedia": "Preview media",+ "previewable": "Preview available",+ "openMedia": "Open media",+ "mediaAddressOnly": "This media is shown as an address",+ "mediaCannotPreview": "This media can't be previewed directly right now",+ "addressDisplay": "Address only",+ "notPreviewable": "Not previewable",+ "viewChart": "View diagram",+ "viewContent": "View content",+ "textOutput": "Text output",+ "text": "Text",+ "image": "Image",+ "video": "Video",+ "audio": "Audio",+ "inlineMediaData": "Inline {{kind}} data",+ "mediaActionsAvailable": "The desktop app offers follow-up actions for this media.",+ "availableActions": "Available actions: {{actions}}",+ "mediaActionsDesktopOnly": "Mobile V1 only displays these actions and does not trigger them remotely yet. Return to the desktop app to select one.",+ "moreEdits": "…{{count}} more edits"+ },"quote": {+ "previewTitle": "Quote","count": "{{n}} quotes","countPreviewHint": "{{n}} quotes, tap to preview","remove": "Remove quote",diff --git a/apps/mobile/src/i18n/locales/en/session.json b/apps/mobile/src/i18n/locales/en/session.jsonindex cdfada06d2..63c115ae67 100644--- a/apps/mobile/src/i18n/locales/en/session.json+++ b/apps/mobile/src/i18n/locales/en/session.json@@ -24,6 +24,144 @@"voiceStopRecording": "Stop Recording","capabilitiesUnsupported": "Unsupported remote capability format"},+ "presentation": {+ "collaboration": {+ "labelLead": "Collaboration Lead",+ "labelWorker": "Collaboration Worker",+ "labelRole": "Collaboration {{role}}",+ "noticeLead": "This is an Orca Lead session from your computer. You can keep chatting on your phone; create workers, change focus, fork or rewind, edit the queue, and change session settings on your computer.",+ "noticeWorker": "This is an Orca Worker session from your computer. The first mobile version is read-only and does not support sending messages, changing worker focus, archiving a worker, or stopping collaboration.",+ "noticeOther": "This is a collaboration session from your computer. The first mobile version is read-only; manage collaboration on your computer.",+ "readOnlyReason": "Collaboration is read-only on the first mobile version. Handle confirmations, queue edits, and session changes on your computer.",+ "composerReadOnlyReason": "This collaboration subtask is read-only on mobile. Send messages from your computer."+ },+ "composer": {+ "voice": {+ "listening": "Listening",+ "submitting": "Transcribing",+ "refining": "Refining",+ "error": "Voice error",+ "idle": "Voice",+ "sendingReason": "The message is being sent to your computer. Wait before recording.",+ "processingReason": "Voice input is being processed. Wait before recording again."+ },+ "attachment": {+ "count": "{{count}} attachments",+ "collapse": "Hide attachments",+ "label": "Attachments",+ "busyReason": "Attachments are being processed. Wait before adding more.",+ "sendingReason": "The message is being sent to your computer. Wait before changing attachments."+ },+ "input": {+ "sendingReason": "The message is being sent to your computer."+ },+ "send": {+ "sendingReason": "The message is being sent to your computer.",+ "attachmentBusyReason": "Attachments are uploading. Wait for them to finish before sending.",+ "voiceBusyReason": "Voice input is being processed. Wait for it to finish before sending.",+ "emptyReason": "Enter text, add an attachment, or add a quote before sending.",+ "sending": "Sending",+ "label": "Send"+ },+ "stop": {+ "queueBusyReason": "Queue changes are syncing, so the run can't be stopped yet.",+ "unavailableReason": "There is no active run to stop on your computer.",+ "processing": "Processing",+ "label": "Stop"+ },+ "placeholder": {+ "listening": "Listening…",+ "submitting": "Transcribing voice input",+ "refining": "Refining voice input",+ "default": "Continue chatting…"+ },+ "guidance": {+ "sending": "The message is being added to the desktop queue. Don't send it again until this finishes.",+ "queueBusy": "Queue changes are syncing. The queue will refresh when this finishes.",+ "listeningWithDraft": "Tap Send to stop voice input and send the current text, or tap the input box to stop voice input and open the keyboard.",+ "listening": "Listening. Tap Send to stop voice input and send the recognized text, or tap the input box to stop voice input and open the keyboard.",+ "submitting": "Voice input is being transcribed. The input box is temporarily locked.",+ "refining": "Voice input is being refined. The input box will update when it finishes.",+ "attachmentBusy": "Attachments are being checked or uploaded. They will appear in the attachment list when ready.",+ "attachmentsWithText": "This will send {{count}} attachments and the text in the input box.",+ "attachmentsOnly": "This will send only {{count}} attachments. You can also add a note before sending.",+ "attachmentPickerOpen": "You can add photos, screenshots, or files from your phone.",+ "draft": "Tap Send to add this message to the desktop queue using the current session settings.",+ "quotesOnly": "This will send {{count}} quotes. You can also add a note before sending.",+ "canStop": "Your computer is running the session. You can queue another message or tap Stop and keep the current queue.",+ "empty": "Enter text to begin. Use / for commands and @ to reference project resources."+ },+ "status": {+ "sending": "Sending to your computer",+ "queueBusy": "Processing queue changes",+ "attachmentBusy": "Processing attachments",+ "ready": "Ready"+ },+ "operation": {+ "sessionSyncing": "This session has not finished syncing yet.",+ "pendingInteraction": "Handle the pending request from your computer before typing again."+ }+ },+ "overview": {+ "unavailable": "Unavailable",+ "pendingCount": "{{count}} pending",+ "readOnly": "Read-only",+ "queuePaused": "Queue paused",+ "status": { "active": "Active", "archived": "Archived", "deleted": "Deleted" },+ "actions": {+ "settings": { "label": "Settings", "a11y": "Open session settings" },+ "usage": { "label": "Usage", "a11y": "View session usage" },+ "files": { "label": "Files", "a11y": "Browse remote files" },+ "queue": { "label": "Queue", "a11y": "Open queue panel" },+ "search": { "label": "Search", "openA11y": "Search messages", "closeA11y": "Close message search" }+ },+ "disabled": {+ "files": "This session has no remote working directory, so files can't be browsed.",+ "search": "There are no messages to search yet.",+ "queueUnavailable": "The controlled computer is temporarily unavailable. Sync again before viewing the queue.",+ "queuePending": "Handle the pending request first; the queue panel will be restored afterward.",+ "queuePausedEmpty": "The queue is paused, but there are no queued messages to resume.",+ "queueEmpty": "There are no queued messages.",+ "queueDefault": "The queue panel can't be opened in the current state."+ },+ "actionCopy": {+ "pending": "Handle the pending request first; the input area will be restored afterward.",+ "archived": "This session is archived. Restore it before sending more messages.",+ "deleted": "This session is deleted and can't be changed.",+ "queuePaused": "The queue is paused. Resume it from the queue panel."+ }+ },+ "controls": {+ "spend": {+ "title": "Session usage",+ "unavailable": "No session usage yet",+ "taskCost": "This session {{cost}}",+ "contextWithLimit": "Context {{used}} / {{total}} · {{percentage}}",+ "context": "Context {{used}} tokens"+ },+ "context": {+ "title": "Context usage",+ "unavailable": "No context data"+ },+ "rateLimit": {+ "plan": "Plan",+ "remaining": "{{percent}} remaining",+ "used": "{{percent}} used",+ "resetsAt": "Resets at {{time}}",+ "status": "Status",+ "reached": "Account limit reached",+ "account": "Account",+ "availableResets": "Available resets",+ "resetCount": "{{count}} resets",+ "earliestExpiry": "Earliest expiry",+ "window": {+ "default": "Limit",+ "days": "{{count}} days",+ "week": "Week"+ }+ }+ }+ },"screen": {"thinking": "Thinking…","tokenCount": "{{tokens}} tok",diff --git a/apps/mobile/src/i18n/locales/ja/deviceLink.json b/apps/mobile/src/i18n/locales/ja/deviceLink.jsonindex 3a4ab65bb4..d2a5078278 100644--- a/apps/mobile/src/i18n/locales/ja/deviceLink.json+++ b/apps/mobile/src/i18n/locales/ja/deviceLink.json@@ -26,5 +26,38 @@"versionMismatchTitle": "バージョンが一致しません","versionMismatchHint": "このアプリのバージョンはサービスと互換性がありません。最新版に更新して再試行してください。","unstableTitle": "接続が繰り返し切断されています",- "unstableHint": "接続が切断と再接続を繰り返しています。ネットワークを確認し、続く場合はアプリを再起動してください。"+ "unstableHint": "接続が切断と再接続を繰り返しています。ネットワークを確認し、続く場合はアプリを再起動してください。",+ "relay": {+ "label": { "online": "Relay 接続済み", "connecting": "Relay に接続中", "stopped": "Relay 未接続" },+ "hint": {+ "online": "リモートタスクを同期できます。",+ "lastSynced": "最終同期 {{time}}",+ "connecting": "ネットワーク復旧後にリモートタスクを自動で再購読します。",+ "stopped": "アプリに戻るか再ログインすると接続を再開します。"+ }+ },+ "agentAuth": {+ "noKey": "{{agent}} を使用できません。コンピューターに API キーが設定されていません。コンピューターの {{appName}} で「設定 → モデルプロバイダー」を開き、設定後に再試行してください。",+ "noOauth": "{{agent}} を使用できません。コンピューターでアカウント認証が完了していません。コンピューターの {{appName}} で「設定 → モデルプロバイダー」を開き、アカウントを再接続してください。",+ "noCredentials": "{{agent}} を使用できません。コンピューターでログインしていません。コンピューターの {{appName}} で「設定 → モデルプロバイダー」を開き、ログインしてください。",+ "noEncryption": "{{agent}} を使用できません。コンピューターの安全なシステムストレージを利用できません。macOS のキーチェーンまたは Windows のアカウント暗号化を確認し、コンピューターの {{appName}} を再起動してください。",+ "proxyNotReady": "{{agent}} はコンピューターでまだ準備できていません。しばらくしてから再試行し、続く場合はコンピューターの {{appName}} を再起動してください。",+ "default": "{{agent}} を使用できません。コンピューターのログイン情報が無効です。コンピューターの {{appName}} で「設定 → モデルプロバイダー」を開き、再ログインしてください。({{reason}})"+ },+ "remoteError": {+ "remoteDisabled": "操作対象のコンピューターでリモート操作が無効になっています。",+ "channelNotAllowed": "現在のデスクトップ版はこのリモート機能に対応していません。",+ "accessRevoked": "このコンピューターはモバイルからのアクセスを取り消しました。",+ "deviceUnresponsive": "コンピューターが応答していません。自動再試行中です。しばらくしてから再試行してください。",+ "versionMismatch": "サービスのプロトコルバージョンが一致しません。アプリを更新して再試行してください。",+ "payloadTooLarge": "転送内容が大きすぎます。分割して再試行してください。",+ "mediaFetchFailed": "コンピューターからファイルを取得できませんでした。後でもう一度お試しください。",+ "voiceTranscribeFailed": "音声の文字起こしに失敗しました。再試行するかキーボード入力を使用してください。",+ "linkNotOpen": "コンピューターへの操作リンクが切断され、再接続中です。",+ "accountChanged": "Codex のアカウントまたはワークスペースが変わりました。使用枠を更新して再確認してください。",+ "offerExpired": "Codex のリセット資格が失効しました。使用枠を更新して再確認してください。",+ "preconditionFailed": "操作条件が変わりました。更新して再確認してください。",+ "transient": "ネットワークまたは操作対象のコンピューターを一時的に利用できません。後で再同期してください。",+ "callFailed": "リモート呼び出しに失敗しました。後でもう一度お試しください。({{error}})"+ }}diff --git a/apps/mobile/src/i18n/locales/ja/devices.json b/apps/mobile/src/i18n/locales/ja/devices.jsonindex 8a82442581..06a77ba70b 100644--- a/apps/mobile/src/i18n/locales/ja/devices.json+++ b/apps/mobile/src/i18n/locales/ja/devices.json@@ -7,6 +7,136 @@"deleting": "削除中","create": "新規"},+ "presentation": {+ "deviceList": {+ "headerAvailable": "操作可能なコンピューター {{count}} 台",+ "headerUnavailable": "現在利用できないコンピューター {{count}} 台",+ "waitingForDesktop": "コンピューターがオンラインになるのを待っています",+ "filterAvailable": "操作可能なデバイス",+ "filterEmpty": "操作可能なデバイスはありません",+ "filterMeta": "{{available}} 台を開けます",+ "filterMetaWithUnavailable": "{{available}} 台を開けます · {{unavailable}} 台は対応が必要です",+ "showUnavailableReason": "デバイスを展開すると利用できない理由を確認できます",+ "emptyCopy": "コンピューターで同じアカウントにログインし、設定のリモートコントロールで「同じアカウントのデバイスによるこのコンピューターの操作を許可」をオンにしてください。",+ "emptyTitle": "表示できるコンピューターはまだありません",+ "hideUnavailableA11y": "利用できないコンピューターを非表示",+ "showUnavailableA11y": "利用できないコンピューターを表示",+ "availableOnly": "利用可能のみ",+ "unavailableCount": "利用不可 {{count}}",+ "status": {+ "ready": "操作可能",+ "busy": "実行中",+ "offline": "オフライン",+ "remoteDisabled": "リモートコントロールがオフ",+ "accessRevoked": "アクセス権が取り消されました",+ "self": "このデバイス"+ },+ "detail": {+ "accessRevoked": "コンピューター側でこのスマートフォンのアクセス権を復元してください",+ "remoteDisabled": "コンピューターの設定でリモートコントロールを有効にしてください",+ "self": "現在のスマートフォン",+ "busy": "コンピューターでタスクを処理しています",+ "ready": "リモートコントロールが許可されています"+ },+ "lastSeen": {+ "never": "オンラインになったことがありません",+ "unknown": "最終オンライン時刻は不明です",+ "justNow": "たった今オンライン",+ "minutesAgo": "{{count}} 分前にオンライン",+ "hoursAgo": "{{count}} 時間前にオンライン",+ "daysAgo": "{{count}} 日前にオンライン",+ "onDate": "最終オンライン {{date}}"+ }+ },+ "sessionList": {+ "section": { "pinned": "ピン留め" },+ "filterWithCount": "{{label}} {{count}}",+ "controlsSummary": "{{filter}} · {{group}}別にグループ化",+ "automation": "自動化",+ "sessionCount": "{{count}} 件のセッション",+ "messageCount": "{{count}} 件のメッセージ",+ "status": { "archived": "アーカイブ済み", "deleted": "削除済み" },+ "preview": {+ "permission": "権限の確認待ち",+ "planReview": "計画レビュー待ち",+ "answer": "回答待ち",+ "attention": "対応待ち",+ "automationRunning": "自動化を実行中",+ "running": "実行中"+ },+ "context": {+ "matchingTasks": "一致するセッション {{count}} 件",+ "tasks": "セッション {{count}} 件",+ "noMatchingTasks": "一致するセッションはありません",+ "noResults": "現在のフィルターに結果はありません",+ "rows": " · {{count}} 行",+ "detail": "{{result}}{{rows}} · {{filter}} · {{group}}別にグループ化",+ "searchResults": "検索結果",+ "title": {+ "active": "アクティブなセッション",+ "waiting": "保留中のセッション",+ "automation": "自動化セッション",+ "archived": "アーカイブ済みセッション",+ "all": "すべてのセッション"+ },+ "hint": {+ "search": "タイトル、プロジェクトパス、モデル、自動化名、メッセージプレビューを検索します。",+ "active": "セッションを開いて操作を続けるか、長押しして複数選択します。",+ "waiting": "スマートフォンで確認が必要な権限、計画、質問がここに表示されます。",+ "automation": "自動化セッションはタスクごとにまとめられ、展開すると各実行を開けます。",+ "archived": "アーカイブ済みセッションを長押しすると、一括で復元または削除できます。",+ "all": "アクティブ、アーカイブ済み、自動化セッションをまとめて表示します。"+ }+ },+ "empty": {+ "search": { "title": "一致するセッションはありません", "copy": "別のタイトル、プロジェクトパス、モデル、またはメッセージのキーワードを試してください。" },+ "waiting": { "title": "保留中のリクエストはありません", "copy": "権限の確認、計画レビュー、質問がここに表示されます。" },+ "automation": { "title": "自動化セッションはありません", "copy": "自動化の実行後に作成されたセッションがここにまとめられます。" },+ "archived": { "title": "アーカイブ済みセッションはありません", "copy": "セッションを長押しすると、一括でアーカイブまたは削除できます。" },+ "active": { "title": "このコンピューターにアクティブなセッションはありません", "copy": "コンピューターでセッションを作成または再開すると、ここに表示されます。" }+ },+ "time": {+ "unknown": "最近のアクティビティ時刻は不明です",+ "justNow": "たった今",+ "minutesAgo": "{{count}} 分前",+ "hoursAgo": "{{count}} 時間前",+ "daysAgo": "{{count}} 日前",+ "minutes": "{{count}} 分",+ "hours": "{{count}} 時間",+ "days": "{{count}} 日",+ "weeks": "{{count}} 週間",+ "months": "{{count}} か月",+ "years": "{{count}} 年"+ }+ },+ "home": {+ "allDevices": "すべて",+ "allComputers": "すべてのコンピューター",+ "waitingCount": "保留中 {{count}} 件",+ "synced": "同期済み",+ "unknownComputer": "不明なコンピューター",+ "uncategorizedProject": "未分類のプロジェクト",+ "empty": {+ "search": { "title": "一致する結果はありません", "copy": "別のプロジェクト名、セッション名、コンピューター名、またはメッセージのキーワードを試してください。" },+ "waiting": { "title": "保留中のリクエストはありません", "copy": "権限の確認、計画レビュー、質問がここに表示されます。" },+ "automation": { "title": "自動化セッションはありません", "copy": "自動化の実行後に作成されたセッションがプロジェクト別にまとめられます。" },+ "archived": { "title": "アーカイブ済みセッションはありません", "copy": "[すべて]または[アクティブ]に切り替えて、現在のプロジェクトとセッションを確認してください。" },+ "noSession": { "title": "セッションはまだありません", "copy": "コンピューターでセッションを作成または再開すると、対応するプロジェクトとセッションがここに表示されます。" }+ },+ "noDevice": {+ "accessRevoked": { "title": "アクセス権が取り消されました", "copy": "{{names}} がこのスマートフォンのリモートアクセスを取り消しました。アクセスを再試行するか、コンピューター側で再度許可してください。" },+ "remoteDisabled": { "title": "コンピューターでリモートコントロールを許可", "copy": "{{names}} はオンラインです。コンピューター側でスマートフォンからの操作を有効にしてください。" },+ "offline": { "title": "コンピューターで Cindy を開く", "copy": "接続済みのコンピューターは現在オフラインです。コンピューターで Cindy を開いてログインしたままにすると、自動的に再接続します。" },+ "firstRun": { "title": "コンピューターの Cindy に接続", "copy": "現在 Cindy はコンピューター上で動作します。モバイルアプリはリモートアクセスを使って、そのコンピューターの Agent を利用します。" }+ }+ },+ "bulk": {+ "action": { "archive": "アーカイブ", "delete": "削除", "pin": "固定", "restore": "復元", "unpin": "固定解除" },+ "title": "{{count}} 件のタスクを{{action}}",+ "description": "選択した {{count}} 件のタスクを{{action}}します。",+ "descriptionWithSkipped": "選択した {{count}} 件のタスクを{{action}}します。対象外の {{skippedCount}} 件はスキップされます。"+ }+ },"list": {"thisComputer": "このデバイス","allConversations": "すべてのセッション",@@ -244,6 +374,12 @@"viewAllRuns": "すべての実行 {{count}} 回を表示"},"automations": {+ "heading": {+ "delete": "自動化を削除",+ "pause": "自動化を一時停止",+ "deleteRun": "実行記録を削除"+ },+ "runNow": "今すぐ実行","error": {"projectMissingConfig": "プロジェクト自動化に projectConfigId がありません。デスクトップで削除してください。","deletePartial": "自動化を削除しましたが、{{count}} 件の生成されたセッションの状態を更新できませんでした。デスクトップでこれらのセッションを確認してください。"@@ -359,7 +495,51 @@"loading": "読み込み中","refresh": "更新","cardA11y": "自動化テンプレート {{name}}",- "manualConfig": "手動設定"+ "manualConfig": "手動設定",+ "builtin": {+ "nightly-test-heal": {+ "name": "夜間セルフヒーリングテスト",+ "description": "毎晩テストを実行し、失敗項目を分離ワークツリーで最小修正",+ "prompt": "プロジェクトのテストスイートを実行し、失敗があれば隔離された worktree で最小限の修正を試みてください。\n制約:\n- リポジトリのドキュメントまたは package スクリプトから標準のテストコマンドを特定してから、テストスイート全体を実行する\n- 明確な失敗の証拠がある問題だけを修正し、影響範囲が最小の変更を優先して、ついでのリファクタリングは避ける\n- 修正後は関連テストを再実行して成功を確認し、diff 全体をレビューする\n- リポジトリのワークフローに従って修正を提出する(例:ブランチを作成して PR を開く)。main ブランチを直接変更しない\n- 安全に修正できない失敗については、原因、疑わしいファイル、推奨する調査手順を報告する"+ },+ "pr-gatekeeper": {+ "name": "PR ゲートキーパー",+ "description": "平日にオープン PR の新規変更を事前レビューし、重大度別にリスクを報告",+ "prompt": "リポジトリで現在オープンな PR を確認し、新しい変更を事前レビューしてください。\n制約:\n- 過去 24 時間以内に新しいコミットがあるオープン PR を 1 件ずつ確認する(月曜日は週末全体を対象)。PR 番号、ファイルパス、具体的な diff を引用する\n- 正確性、セキュリティ、データ損失、互換性の問題に重点を置き、深刻度別に分類する\n- 証拠で裏付けられる問題だけを報告し、失敗シナリオを説明する。スタイル上の好みだけで指摘しない\n- ユーザーが明示的に許可しない限り、レビュー結果のみを出力し、PR へのコメントやコード変更は行わない"+ },+ "domain-radar": {+ "name": "分野レーダー",+ "description": "注目分野の最新動向を定期収集し、見解付きサマリーを出力",+ "prompt": "テーマ「{{topic}}」について過去 24 時間の最新動向(月曜日は週末全体)を収集し、見解を含むダイジェストを作成してください。\n制約:\n- Web 検索を使い、複数の情報源で照合してから採用し、各項目に出典リンクを付ける\n- リリース、研究、政策、重要な議論など実質的な進展を優先し、宣伝記事や転載を除外する\n- リンクを並べるだけでなく、各動向に「なぜ注目すべきか」を 1 文で示す\n- 情報が少ない場合や情報源に疑義がある場合は率直に明記し、推測で補わない",+ "params": {+ "topic": {+ "label": "注目テーマ",+ "placeholder": "例:AI エージェント、新エネルギー、フロントエンド"+ }+ }+ },+ "competitor-watch": {+ "name": "競合ウォッチ",+ "description": "競合の製品・市場動向を週次でまとめ、自社への影響を分析",+ "prompt": "次の競合の過去 1 週間の動向を追跡してください:{{competitors}}。\n制約:\n- Web 検索で製品更新、リリース、価格変更、市場動向、ユーザー評価を調べ、出典を示す\n- 公式情報と第三者による情報を区別し、未確認の噂は明示する\n- 重要な動向ごとに、それが自社に何を意味するかを分析し、対応案を示す\n- 実質的な動きがない場合は、水増しせず率直にその旨を伝える",+ "params": {+ "competitors": {+ "label": "競合リスト",+ "placeholder": "例:Notion、Linear、Figma"+ }+ }+ },+ "weekly-work-draft": {+ "name": "週報ドラフトアシスタント",+ "description": "作業ディレクトリのドキュメントから今週の作業を整理し、週報ドラフトを生成",+ "prompt": "作業ディレクトリ内で今週変更されたドキュメント、メモ、成果物を基に、週報の下書きを作成してください。\n制約:\n- 作業ディレクトリ内に実際の変更履歴がある内容だけを根拠とし、対応するファイルを示す\n- 「今週完了 / 進行中 / 来週の予定 / 調整が必要」の構成で、そのまま提出できる簡潔な文章にする\n- 実質的な進捗と定常作業を区別し、価値のある成果を強調する\n- 判断材料が足りない箇所には説明付きのプレースホルダーを残し、ユーザーが追記できるようにする"+ },+ "knowledge-freshness": {+ "name": "ナレッジベース鮮度チェック",+ "description": "毎月ドキュメントを点検し、古い内容や矛盾を洗い出す",+ "prompt": "作業ディレクトリ内のドキュメントを点検し、更新が必要な内容を見つけてください。\n制約:\n- 古い情報(過去の日付、無効なリンク、廃止された手順やツール)、矛盾、重複を確認する\n- 各問題についてファイルパスと具体的な場所を示し、判断理由を説明する\n- 「更新を推奨 / 統合を推奨 / 削除を推奨」に分類し、修正チェックリストを作成する\n- 点検レポートだけを出力し、ドキュメント自体は変更しない"+ }+ }},"scheduleRowA11y": "自動化タスク {{title}}","detail": {@@ -386,6 +566,90 @@"marking": "マーク中","markRead": "既読","deleteA11y": "実行記録を削除"+ },+ "presentation": {+ "validation": {+ "templateParameter": "テンプレートパラメーターを入力してください:{{label}}",+ "name": "タスク名を入力してください",+ "prompt": "タスクのプロンプトを入力してください",+ "timezone": "タイムゾーンを入力してください",+ "boundSession": "ひも付けるタスクを選択してください",+ "cron": "cron 式を入力してください",+ "workingDir": "プロジェクトディレクトリを入力してください",+ "effort": "推論強度は次のいずれかを指定してください:{{values}}",+ "intervalPositiveInteger": "間隔(分)は正の整数で入力してください",+ "intervalUnsupported": "分間隔は 1~59 分、または 1~23 時間の正時の間隔に対応しています"+ },+ "schedule": {+ "paused": "一時停止中",+ "manual": "手動トリガー",+ "once": "単発タスク",+ "waitingFirstRun": "初回実行待ち",+ "every": "{{duration}}ごと",+ "recurring": "定期タスク",+ "dialogueWorkspace": "会話ワークスペース",+ "noDirectory": "ディレクトリ未設定",+ "lastRun": "前回 {{relative}}",+ "imminent": "まもなく実行",+ "nextRun": "{{duration}}後",+ "status": {+ "active": "実行中",+ "paused": "一時停止中",+ "expired": "完了"+ },+ "session": {+ "persistent": "継続タスク",+ "bound": "ひも付けタスク",+ "fresh": "新規タスク",+ "persistentWithId": "継続タスク {{id}}",+ "persistentDetail": "初回トリガー後も同じタスクを再利用します",+ "boundWithId": "{{id}} にひも付け"+ }+ },+ "run": {+ "session": "タスク {{id}}",+ "delete": "削除",+ "markRead": "既読",+ "canRestart": "再実行できます",+ "noSession": "タスク未作成",+ "open": "開く",+ "restart": "再実行",+ "durationUnknown": "所要時間不明",+ "runningFor": "実行時間 {{duration}}",+ "duration": "所要時間 {{duration}}",+ "unknownTime": "時刻不明",+ "status": {+ "running": "実行中",+ "success": "成功",+ "failed": "失敗",+ "aborted": "中止済み",+ "interrupted": "中断",+ "skipped": "スキップ"+ }+ },+ "pause": {+ "title": "{{name}} を一時停止",+ "detail": "この自動化では現在 {{count}} 件の実行が進行中です。一時停止すると今後のトリガーを直ちに止め、進行中の実行も停止します。",+ "preview": "実行中:{{count}} 件"+ },+ "delete": {+ "noSessions": "この自動化が生成したタスクは見つかりませんでした",+ "sessions": "この自動化が生成したタスクが {{count}} 件見つかりました",+ "withInflight": "{{sessions}}。さらに {{count}} 件の実行が進行中です"+ },+ "duration": {+ "seconds": "{{count}} 秒",+ "minutesSeconds": "{{minutes}} 分 {{seconds}} 秒",+ "minutes": "{{count}} 分",+ "hours": "{{count}} 時間",+ "days": "{{count}} 日"+ },+ "relative": {+ "justNow": "たった今",+ "minutesAgo": "{{count}} 分前",+ "hoursAgo": "{{count}} 時間前",+ "daysAgo": "{{count}} 日前"+ }}}}diff --git a/apps/mobile/src/i18n/locales/ja/files.json b/apps/mobile/src/i18n/locales/ja/files.jsonindex 2354c9b8e0..50f64b23b4 100644--- a/apps/mobile/src/i18n/locales/ja/files.json+++ b/apps/mobile/src/i18n/locales/ja/files.json@@ -46,6 +46,34 @@"a11yPreviewName": "{{name}} をプレビュー","a11yPreviewNameLine": "{{name}} の {{line}} 行目をプレビュー"},+ "presentation": {+ "grid": {+ "today": "今日 {{time}}", "yesterday": "昨日 {{time}}", "empty": "フォルダーは空です",+ "summaryMixed": "フォルダー {{dirs}} 件、ファイル {{files}} 件", "summaryDirs": "フォルダー {{count}} 件", "summaryFiles": "ファイル {{count}} 件", "workdir": "作業ディレクトリ"+ },+ "preview": {+ "nonText": {+ "pdf": "PDF ファイルはまだモバイルでインラインプレビューできません。パスをコピーして、デスクトップまたはシステムの PDF リーダーで開いてください。",+ "drawio": "Draw.io ファイルはまだモバイルでインラインプレビューできません。パスをコピーして、デスクトップで表示または編集してください。",+ "office": "Office ファイルはまだモバイルでインラインプレビューできません。パスをコピーして、デスクトップまたはシステムアプリで開いてください。",+ "binary": "テキストファイルではないため、モバイルでは内容を読み込みません。パスをコピーしてデスクトップで開いてください。",+ "unknown": "ファイルの種類を特定できないため、モバイルでは内容を読み込みません。パスをコピーしてデスクトップで開いてください。",+ "text": "テキストプレビューを必要に応じて読み込めます。"+ },+ "pathOnly": "ファイルのパス情報しかないため、リモートコンピューターからプレビューを読み込めません。",+ "loading": "リモートコンピューターからテキストプレビューを読み込み中",+ "ready": "テキストプレビューを読み込みました · {{size}}",+ "idle": "リモートのテキストプレビューは必要に応じて読み込みます。メッセージ一覧でファイル内容を一括取得しません。",+ "failure": {+ "oversize": "ファイルがリモートプレビューの上限を超えています · {{limit}} · 現在 {{size}}",+ "forbidden": "操作対象のコンピューターがこのパスの読み取りを拒否しました。",+ "notFound": "操作対象のコンピューターにこのファイルがありません。",+ "readFailed": "読み込みに失敗しました。",+ "readFailedWithError": "読み込みに失敗しました:{{error}}",+ "default": "このファイルはプレビューできません。"+ }+ }+ },"preview": {"done": "完了","a11yShare": "書き出して共有",diff --git a/apps/mobile/src/i18n/locales/ja/interaction.json b/apps/mobile/src/i18n/locales/ja/interaction.jsonindex 4466fdb60f..491fa549d7 100644--- a/apps/mobile/src/i18n/locales/ja/interaction.json+++ b/apps/mobile/src/i18n/locales/ja/interaction.json@@ -222,5 +222,46 @@},"inlineFormAction": "パソコンで{{label}}を入力","inlineFormActionGeneric": "パソコンで設定を入力"+ },+ "presentation": {+ "action": { "submitting": "送信中" },+ "permission": {+ "highRiskTitle": "高リスクの権限は再確認が必要です",+ "highRiskDetail": "コマンドを確認し、もう一度許可を確定してください。不明な場合は拒否してください。",+ "sessionAllowTitle": "今回だけ許可するか、このタスクで常に許可できます",+ "allowTitle": "許可するとコンピューターで実行を続けます",+ "tool": "ツール:{{tool}}",+ "title": "{{tool}} の使用を許可しますか?",+ "risk": "このコマンドはシステム、リポジトリ、または外部サービスの状態を変更する可能性があります。許可する前に、現在のタスクとコマンドを信頼できることを確認してください。"+ },+ "ask": {+ "progress": "質問 {{current}}/{{total}}",+ "multiSelect": "複数選択または別の回答を入力できます。",+ "singleSelect": "回答を 1 つ選ぶか、別の回答を入力してください。",+ "emptyTitle": "具体的な質問はありません",+ "emptyDetail": "空の回答を送信して、コンピューターの処理を続けられます。",+ "waiting": "Agent が確認を待っています"+ },+ "plan": {+ "outlineCount": "{{count}} セクション",+ "noOutline": "目次なし",+ "hasFile": "計画ファイルあり",+ "noFile": "計画ファイルのパスなし",+ "editedTitle": "計画を編集済みです。承認すると現在の版で実行します",+ "approveTitle": "承認するとコンピューターで計画の実行を続けます"+ },+ "queue": {+ "count": "{{count}} 件",+ "readOnlyHint": "コラボレーションは読み取り専用です。コンピューターからのリクエストだけを表示します。",+ "empty": "保留中のリクエストはありません",+ "hint": {+ "plan_review": "計画を確認し、必要なら修正を依頼してください。承認後にコンピューターで実行を続けます。",+ "permission": "今回の決定だけをコンピューター上の現在のタスクへ返します。",+ "ask_user_question": "回答は下書きとして保存され、送信後にコンピューターで処理を続けます。",+ "issue_confirm": "タイトルと本文を確認してから送信してください。",+ "plugin_setup": "設定はコンピューターで完了する必要があります。ここではリクエストをキャンセルできます。",+ "fallback": "モバイルではデスクトップから届いた順にリモートリクエストを処理します。"+ }+ }}}diff --git a/apps/mobile/src/i18n/locales/ja/message.json b/apps/mobile/src/i18n/locales/ja/message.jsonindex 5abd9b1846..35a142d186 100644--- a/apps/mobile/src/i18n/locales/ja/message.json+++ b/apps/mobile/src/i18n/locales/ja/message.json@@ -1,5 +1,6 @@{"renderer": {+ "moreActions": "その他のメッセージ操作","previousQuestionJump": "前の質問へ移動:{{preview}}","noPreview": "プレビューなし","newMessagesToBottom": "新着メッセージあり、最下部へ移動",@@ -201,7 +202,88 @@"learnFailedBody": "開始に失敗:{{detail}}","unknownError": "不明なエラー"},+ "queuePresentation": {+ "panel": {+ "sendFailedRetryable": "送信失敗 · 再試行できます",+ "sendFailed": "送信失敗",+ "errorHint": "新しいメッセージを送る前にキューのエラーを解決してください。",+ "errorTitle": "キューの対応が必要です",+ "abortQueued": "{{count}} 件のメッセージがキューに残っています",+ "abortWaiting": "デスクトップの停止確認を待っています",+ "abortHint": "停止が完了するまで再送信しないでください。残したメッセージはここに表示されます。",+ "abortTitle": "停止処理中",+ "pausedDetail": "{{count}} 件のメッセージが再開待ちです",+ "pausedHint": "「続行」をタップすると、現在の順序でデスクトップへ送信します。",+ "pausedTitle": "キューは一時停止中です",+ "defaultDetail": "{{count}} 件のメッセージ · デスクトップの順序で送信",+ "defaultHint": "通常のキューメッセージは並べ替え、割り込み、編集、削除ができます。",+ "defaultTitle": "送信待ちキュー"+ },+ "row": {+ "syntheticEditDisabled": "システム指令メッセージは編集や割り込み送信ができません。",+ "first": "すでにキューの先頭です。",+ "last": "すでにキューの末尾です。",+ "steering": "割り込み送信中",+ "orcaTitle": "コラボレーションキュー {{index}}",+ "title": "キュー {{index}}",+ "orcaReadOnly": "コラボレーションメッセージはデスクトップで編成され、モバイルでは読み取り専用です。",+ "busy": "キュー操作を同期中です。完了後にもう一度操作してください。",+ "steeringDisabled": "現在の turn に割り込みを送信中です。デスクトップから戻るまでお待ちください。",+ "editLocked": "このキューメッセージは編集中です。完了後に操作してください。",+ "interactionLocked": "別の操作がキューをロックしています。完了後に操作してください。",+ "syntheticHint": "システムが自動生成した指令です。キャンセルはできますが、編集や割り込み送信はできません。",+ "steeringHint": "現在の turn に割り込みを送信中のため、まだ編集や移動はできません。",+ "editHint": "このメッセージは編集中で、デスクトップの自動送信は一時停止しています。",+ "interactionHint": "キューの並べ替えまたは別の操作中のため、まだ編集できません。"+ }+ },+ "payloadPresentation": {+ "remoteFetchBody": "モバイルアプリがリモートのデスクトップからメディアを取得します。",+ "missingRemotePath": "表示できるリモートパスがありません",+ "missingRemotePathSentence": "表示できるリモートパスがありません。",+ "mermaidSourceTitle": "Mermaid 図のソース",+ "diffStats": "+{{insertions}} / -{{deletions}} 行",+ "directPreview": "直接プレビューできます",+ "remoteFetchRequired": "リモート取得が必要です",+ "chartSource": "図のソース",+ "noDiffContent": "diff の内容がありません。",+ "noMediaAddress": "メディアのアドレスがありません。",+ "remoteMediaPreparing": "リモートメディアを取得する準備をしています",+ "mediaAddressOnlySentence": "このメディア形式は現在アドレスで表示されます。",+ "mediaCannotPreviewSentence": "このメディアは現在直接プレビューできません。",+ "emptyMermaid": "空の Mermaid 図です。",+ "noTextContent": "表示できるテキストがありません。",+ "viewDiff": "diff を表示",+ "editCount": "{{count}} 件の編集",+ "previewFile": "ファイルをプレビュー",+ "viewDetails": "詳細を表示",+ "noRemotePath": "リモートパスがありません",+ "remotePathMissing": "リモートパスが未指定です",+ "fetchMedia": "メディアを取得",+ "fetchMediaFromDesktop": "デスクトップからメディアを取得します",+ "pendingFetch": "取得待ち",+ "previewMedia": "メディアをプレビュー",+ "previewable": "プレビュー可能",+ "openMedia": "メディアを開く",+ "mediaAddressOnly": "このメディアはアドレスで表示されます",+ "mediaCannotPreview": "このメディアは現在直接プレビューできません",+ "addressDisplay": "アドレス表示",+ "notPreviewable": "プレビュー不可",+ "viewChart": "図を表示",+ "viewContent": "内容を表示",+ "textOutput": "テキスト出力",+ "text": "テキスト",+ "image": "画像",+ "video": "動画",+ "audio": "音声",+ "inlineMediaData": "インライン{{kind}}データ",+ "mediaActionsAvailable": "デスクトップアプリでは、このメディアの追加操作を利用できます。",+ "availableActions": "利用可能な操作:{{actions}}",+ "mediaActionsDesktopOnly": "モバイル版 V1 ではこれらの操作を表示するだけで、リモート実行はまだできません。デスクトップアプリに戻って選択してください。",+ "moreEdits": "…ほか {{count}} 件の編集"+ },"quote": {+ "previewTitle": "引用","count": "{{n}} 件の引用","countPreviewHint": "{{n}} 件の引用、タップしてプレビュー","remove": "引用を削除",diff --git a/apps/mobile/src/i18n/locales/ja/session.json b/apps/mobile/src/i18n/locales/ja/session.jsonindex a469bb16bd..0a7ba8c081 100644--- a/apps/mobile/src/i18n/locales/ja/session.json+++ b/apps/mobile/src/i18n/locales/ja/session.json@@ -24,6 +24,144 @@"voiceStopRecording": "録音を停止","capabilitiesUnsupported": "リモート機能の形式に対応していません"},+ "presentation": {+ "collaboration": {+ "labelLead": "コラボレーション Lead",+ "labelWorker": "コラボレーション Worker",+ "labelRole": "コラボレーション {{role}}",+ "noticeLead": "これはコンピューター側の Orca Lead セッションです。スマートフォンからメッセージを続けて送れます。Worker の作成、フォーカスの変更、Fork/Rewind、キューの編集、セッション設定の変更はコンピューターで行ってください。",+ "noticeWorker": "これはコンピューター側の Orca Worker セッションです。モバイル版の初期バージョンは読み取り専用で、メッセージ送信、Worker フォーカスの変更、Worker のアーカイブ、コラボレーションの停止には対応していません。",+ "noticeOther": "これはコンピューター側のコラボレーションセッションです。モバイル版の初期バージョンは読み取り専用です。コラボレーションの管理はコンピューターで行ってください。",+ "readOnlyReason": "モバイル版の初期バージョンではコラボレーションは読み取り専用です。確認、キュー編集、セッション変更はコンピューターで行ってください。",+ "composerReadOnlyReason": "このコラボレーションのサブタスクはモバイルでは読み取り専用です。メッセージはコンピューターから送信してください。"+ },+ "composer": {+ "voice": {+ "listening": "聞き取り中",+ "submitting": "文字起こし中",+ "refining": "文章を整えています",+ "error": "音声入力エラー",+ "idle": "音声入力",+ "sendingReason": "メッセージをコンピューターに送信中です。完了してから録音してください。",+ "processingReason": "音声入力を処理中です。完了してからもう一度録音してください。"+ },+ "attachment": {+ "count": "添付ファイル {{count}} 件",+ "collapse": "添付ファイルを閉じる",+ "label": "添付ファイル",+ "busyReason": "添付ファイルを処理中です。完了してから追加してください。",+ "sendingReason": "メッセージをコンピューターに送信中です。完了してから添付ファイルを変更してください。"+ },+ "input": {+ "sendingReason": "メッセージをコンピューターに送信中です。"+ },+ "send": {+ "sendingReason": "メッセージをコンピューターに送信中です。",+ "attachmentBusyReason": "添付ファイルをアップロード中です。完了してから送信してください。",+ "voiceBusyReason": "音声入力を処理中です。完了してから送信してください。",+ "emptyReason": "テキストを入力するか、添付ファイルまたは引用を追加してから送信してください。",+ "sending": "送信中",+ "label": "送信"+ },+ "stop": {+ "queueBusyReason": "キューの変更を同期中のため、まだ実行を停止できません。",+ "unavailableReason": "コンピューター側に停止できる実行はありません。",+ "processing": "処理中",+ "label": "停止"+ },+ "placeholder": {+ "listening": "聞き取り中…",+ "submitting": "音声を文字起こし中",+ "refining": "音声入力の文章を整えています",+ "default": "続きを入力…"+ },+ "guidance": {+ "sending": "メッセージをコンピューター側のキューに追加しています。完了するまで重複して送信しないでください。",+ "queueBusy": "キューの変更を同期中です。完了するとキューの状態が更新されます。",+ "listeningWithDraft": "送信をタップすると音声入力を終了して現在のテキストを送信します。入力欄をタップすると音声入力を終了してキーボードを開きます。",+ "listening": "聞き取り中です。送信をタップすると音声入力を終了して認識したテキストを送信します。入力欄をタップすると音声入力を終了してキーボードを開きます。",+ "submitting": "音声を文字起こし中です。入力欄は一時的にロックされます。",+ "refining": "音声入力の文章を整えています。完了すると入力欄が更新されます。",+ "attachmentBusy": "添付ファイルを確認またはアップロード中です。準備ができると一覧に表示されます。",+ "attachmentsWithText": "添付ファイル {{count}} 件と入力欄のテキストを送信します。",+ "attachmentsOnly": "添付ファイル {{count}} 件だけを送信します。送信前に説明を追加することもできます。",+ "attachmentPickerOpen": "スマートフォンの写真、スクリーンショット、ファイルを追加できます。",+ "draft": "送信をタップすると、現在のタスク設定でメッセージがコンピューター側のキューに追加されます。",+ "quotesOnly": "引用 {{count}} 件を送信します。送信前に説明を追加することもできます。",+ "canStop": "コンピューター側で実行中です。別のメッセージをキューに追加するか、停止をタップして現在のキューを保持できます。",+ "empty": "テキストを入力して開始します。/ でコマンド、@ でプロジェクトのリソースを参照できます。"+ },+ "status": {+ "sending": "コンピューターに送信中",+ "queueBusy": "キューの変更を処理中",+ "attachmentBusy": "添付ファイルを処理中",+ "ready": "準備完了"+ },+ "operation": {+ "sessionSyncing": "このタスクはまだ同期が完了していません。",+ "pendingInteraction": "入力を続ける前に、コンピューターからの保留中のリクエストを処理してください。"+ }+ },+ "overview": {+ "unavailable": "利用不可",+ "pendingCount": "保留中 {{count}} 件",+ "readOnly": "読み取り専用",+ "queuePaused": "キューは一時停止中",+ "status": { "active": "アクティブ", "archived": "アーカイブ済み", "deleted": "削除済み" },+ "actions": {+ "settings": { "label": "設定", "a11y": "タスク設定を開く" },+ "usage": { "label": "使用量", "a11y": "タスクの使用量を表示" },+ "files": { "label": "ファイル", "a11y": "リモートファイルを参照" },+ "queue": { "label": "キュー", "a11y": "キューパネルを開く" },+ "search": { "label": "検索", "openA11y": "メッセージを検索", "closeA11y": "メッセージ検索を閉じる" }+ },+ "disabled": {+ "files": "このタスクにはリモート作業ディレクトリがないため、ファイルを参照できません。",+ "search": "検索できるメッセージはまだありません。",+ "queueUnavailable": "操作対象のコンピューターは一時的に利用できません。再同期してからキューを確認してください。",+ "queuePending": "先に保留中のリクエストを処理してください。完了するとキューパネルが使えるようになります。",+ "queuePausedEmpty": "キューは一時停止中ですが、再開できるメッセージはありません。",+ "queueEmpty": "キューにメッセージはありません。",+ "queueDefault": "現在の状態ではキューパネルを開けません。"+ },+ "actionCopy": {+ "pending": "先に保留中のリクエストを処理してください。完了すると入力欄が使えるようになります。",+ "archived": "このタスクはアーカイブされています。復元してからメッセージを送信してください。",+ "deleted": "このタスクは削除されているため、操作できません。",+ "queuePaused": "キューは一時停止中です。キューパネルから再開できます。"+ }+ },+ "controls": {+ "spend": {+ "title": "タスク使用量",+ "unavailable": "タスクの使用量はまだありません",+ "taskCost": "このタスク {{cost}}",+ "contextWithLimit": "コンテキスト {{used}} / {{total}} · {{percentage}}",+ "context": "コンテキスト {{used}} tokens"+ },+ "context": {+ "title": "コンテキスト使用量",+ "unavailable": "コンテキストデータがありません"+ },+ "rateLimit": {+ "plan": "プラン",+ "remaining": "残り {{percent}}",+ "used": "使用済み {{percent}}",+ "resetsAt": "{{time}} にリセット",+ "status": "状態",+ "reached": "アカウント上限に達しました",+ "account": "アカウント",+ "availableResets": "利用可能なリセット",+ "resetCount": "{{count}} 回",+ "earliestExpiry": "最も早い有効期限",+ "window": {+ "default": "上限",+ "days": "{{count}} 日",+ "week": "週"+ }+ }+ }+ },"screen": {"thinking": "考えています…","tokenCount": "{{tokens}} tok",diff --git a/apps/mobile/src/i18n/locales/ko/deviceLink.json b/apps/mobile/src/i18n/locales/ko/deviceLink.jsonindex 1fbb08a88f..cf88ddcbe6 100644--- a/apps/mobile/src/i18n/locales/ko/deviceLink.json+++ b/apps/mobile/src/i18n/locales/ko/deviceLink.json@@ -26,5 +26,38 @@"versionMismatchTitle": "버전이 일치하지 않습니다","versionMismatchHint": "이 앱 버전은 서비스와 호환되지 않습니다. 최신 버전으로 업데이트한 후 다시 시도해 주세요.","unstableTitle": "연결이 반복적으로 끊깁니다",- "unstableHint": "연결이 끊김과 재연결을 반복하고 있습니다. 네트워크를 확인하고, 계속되면 앱을 다시 시작해 주세요."+ "unstableHint": "연결이 끊김과 재연결을 반복하고 있습니다. 네트워크를 확인하고, 계속되면 앱을 다시 시작해 주세요.",+ "relay": {+ "label": { "online": "Relay 연결됨", "connecting": "Relay 연결 중", "stopped": "Relay 연결 안 됨" },+ "hint": {+ "online": "원격 작업을 동기화할 수 있습니다.",+ "lastSynced": "마지막 동기화 {{time}}",+ "connecting": "네트워크가 복구되면 원격 작업을 자동으로 다시 구독합니다.",+ "stopped": "앱으로 돌아오거나 다시 로그인하면 연결이 복구됩니다."+ }+ },+ "agentAuth": {+ "noKey": "{{agent}}을(를) 사용할 수 없습니다. 컴퓨터에 API 키가 설정되지 않았습니다. 컴퓨터의 {{appName}}에서 ‘설정 → 모델 제공자’를 열어 설정한 뒤 다시 시도하세요.",+ "noOauth": "{{agent}}을(를) 사용할 수 없습니다. 컴퓨터에서 계정 인증이 완료되지 않았습니다. 컴퓨터의 {{appName}}에서 ‘설정 → 모델 제공자’를 열어 계정을 다시 연결하세요.",+ "noCredentials": "{{agent}}을(를) 사용할 수 없습니다. 컴퓨터에서 로그인되지 않았습니다. 컴퓨터의 {{appName}}에서 ‘설정 → 모델 제공자’를 열어 로그인하세요.",+ "noEncryption": "{{agent}}을(를) 사용할 수 없습니다. 컴퓨터의 보안 시스템 저장소를 사용할 수 없습니다. macOS 키체인 또는 Windows 계정 암호화를 확인한 후 컴퓨터의 {{appName}}을(를) 다시 시작하세요.",+ "proxyNotReady": "{{agent}}이(가) 컴퓨터에서 아직 준비되지 않았습니다. 잠시 후 다시 시도하고, 계속되면 컴퓨터의 {{appName}}을(를) 다시 시작하세요.",+ "default": "{{agent}}을(를) 사용할 수 없습니다. 컴퓨터의 로그인 정보가 유효하지 않습니다. 컴퓨터의 {{appName}}에서 ‘설정 → 모델 제공자’를 열어 다시 로그인하세요. ({{reason}})"+ },+ "remoteError": {+ "remoteDisabled": "제어 중인 컴퓨터에서 원격 제어를 껐습니다.",+ "channelNotAllowed": "현재 데스크톱 버전은 이 원격 기능을 지원하지 않습니다.",+ "accessRevoked": "이 컴퓨터가 모바일 접근 권한을 취소했습니다.",+ "deviceUnresponsive": "컴퓨터가 응답하지 않습니다. 자동 재시도 중이니 잠시 후 다시 시도하세요.",+ "versionMismatch": "서비스 프로토콜 버전이 일치하지 않습니다. 앱을 업데이트한 후 다시 시도하세요.",+ "payloadTooLarge": "전송 내용이 너무 큽니다. 나누어 다시 시도하세요.",+ "mediaFetchFailed": "컴퓨터에서 파일을 가져오지 못했습니다. 나중에 다시 시도하세요.",+ "voiceTranscribeFailed": "음성 받아쓰기에 실패했습니다. 다시 시도하거나 키보드로 입력하세요.",+ "linkNotOpen": "컴퓨터 제어 연결이 끊겨 다시 연결하는 중입니다.",+ "accountChanged": "Codex 계정 또는 작업 공간이 변경되었습니다. 할당량을 새로 고친 후 다시 확인하세요.",+ "offerExpired": "Codex 재설정 권한이 만료되었습니다. 할당량을 새로 고친 후 다시 확인하세요.",+ "preconditionFailed": "작업 조건이 변경되었습니다. 새로 고친 후 다시 확인하세요.",+ "transient": "네트워크 또는 제어 중인 컴퓨터를 일시적으로 사용할 수 없습니다. 나중에 다시 동기화하세요.",+ "callFailed": "원격 호출에 실패했습니다. 나중에 다시 시도하세요. ({{error}})"+ }}diff --git a/apps/mobile/src/i18n/locales/ko/devices.json b/apps/mobile/src/i18n/locales/ko/devices.jsonindex ba1a6e0f85..c72e5d8537 100644--- a/apps/mobile/src/i18n/locales/ko/devices.json+++ b/apps/mobile/src/i18n/locales/ko/devices.json@@ -7,6 +7,136 @@"deleting": "삭제 중","create": "새로 만들기"},+ "presentation": {+ "deviceList": {+ "headerAvailable": "제어 가능한 컴퓨터 {{count}}대",+ "headerUnavailable": "현재 사용할 수 없는 컴퓨터 {{count}}대",+ "waitingForDesktop": "컴퓨터가 온라인이 되기를 기다리는 중",+ "filterAvailable": "제어 가능한 기기",+ "filterEmpty": "제어 가능한 기기 없음",+ "filterMeta": "{{available}}대 접속 가능",+ "filterMetaWithUnavailable": "{{available}}대 접속 가능 · {{unavailable}}대 확인 필요",+ "showUnavailableReason": "기기를 펼치면 사용할 수 없는 이유가 표시됩니다",+ "emptyCopy": "컴퓨터에서 같은 계정으로 로그인한 뒤 설정의 원격 제어에서 ‘같은 계정의 기기가 이 컴퓨터를 제어하도록 허용’을 켜세요.",+ "emptyTitle": "표시할 컴퓨터가 아직 없습니다",+ "hideUnavailableA11y": "사용할 수 없는 컴퓨터 숨기기",+ "showUnavailableA11y": "사용할 수 없는 컴퓨터 표시",+ "availableOnly": "사용 가능만",+ "unavailableCount": "사용 불가 {{count}}",+ "status": {+ "ready": "제어 가능",+ "busy": "실행 중",+ "offline": "오프라인",+ "remoteDisabled": "원격 제어 꺼짐",+ "accessRevoked": "접근 권한 철회됨",+ "self": "이 기기"+ },+ "detail": {+ "accessRevoked": "컴퓨터에서 이 휴대폰의 접근 권한을 복원하세요",+ "remoteDisabled": "컴퓨터 설정에서 원격 제어를 허용하세요",+ "self": "현재 휴대폰",+ "busy": "컴퓨터에서 작업을 처리 중입니다",+ "ready": "원격 제어가 허용되었습니다"+ },+ "lastSeen": {+ "never": "온라인 기록 없음",+ "unknown": "마지막 온라인 시간 알 수 없음",+ "justNow": "방금 온라인",+ "minutesAgo": "{{count}}분 전 온라인",+ "hoursAgo": "{{count}}시간 전 온라인",+ "daysAgo": "{{count}}일 전 온라인",+ "onDate": "마지막 온라인 {{date}}"+ }+ },+ "sessionList": {+ "section": { "pinned": "고정됨" },+ "filterWithCount": "{{label}} {{count}}",+ "controlsSummary": "{{filter}} · {{group}}별 그룹",+ "automation": "자동화",+ "sessionCount": "세션 {{count}}개",+ "messageCount": "메시지 {{count}}개",+ "status": { "archived": "보관됨", "deleted": "삭제됨" },+ "preview": {+ "permission": "권한 승인 대기 중",+ "planReview": "계획 검토 대기 중",+ "answer": "답변 대기 중",+ "attention": "처리 대기 중",+ "automationRunning": "자동화 실행 중",+ "running": "실행 중"+ },+ "context": {+ "matchingTasks": "일치하는 세션 {{count}}개",+ "tasks": "세션 {{count}}개",+ "noMatchingTasks": "일치하는 세션 없음",+ "noResults": "현재 필터에 결과 없음",+ "rows": " · {{count}}행",+ "detail": "{{result}}{{rows}} · {{filter}} · {{group}}별 그룹",+ "searchResults": "검색 결과",+ "title": {+ "active": "활성 세션",+ "waiting": "대기 중인 세션",+ "automation": "자동화 세션",+ "archived": "보관된 세션",+ "all": "모든 세션"+ },+ "hint": {+ "search": "제목, 프로젝트 경로, 모델, 자동화 이름 및 메시지 미리보기를 검색합니다.",+ "active": "세션을 열어 계속 제어하거나 길게 눌러 여러 세션을 선택하세요.",+ "waiting": "휴대폰에서 확인해야 하는 권한, 계획 및 질문이 여기에 표시됩니다.",+ "automation": "자동화 세션은 작업별로 그룹화되며 펼치면 개별 실행을 열 수 있습니다.",+ "archived": "보관된 세션을 길게 눌러 일괄 복원하거나 삭제할 수 있습니다.",+ "all": "활성, 보관 및 자동화 세션을 함께 표시해 빠르게 찾을 수 있습니다."+ }+ },+ "empty": {+ "search": { "title": "일치하는 세션 없음", "copy": "다른 제목, 프로젝트 경로, 모델 또는 메시지 키워드를 사용해 보세요." },+ "waiting": { "title": "대기 중인 요청 없음", "copy": "권한 확인, 계획 검토 및 질문이 여기에 표시됩니다." },+ "automation": { "title": "자동화 세션 없음", "copy": "자동화 실행 후 생성된 세션이 여기에 그룹화됩니다." },+ "archived": { "title": "보관된 세션 없음", "copy": "세션을 길게 눌러 일괄 보관하거나 삭제할 수 있습니다." },+ "active": { "title": "이 컴퓨터에 활성 세션이 없습니다", "copy": "컴퓨터에서 세션을 만들거나 계속하면 여기에 표시됩니다." }+ },+ "time": {+ "unknown": "최근 활동 시간 알 수 없음",+ "justNow": "방금",+ "minutesAgo": "{{count}}분 전",+ "hoursAgo": "{{count}}시간 전",+ "daysAgo": "{{count}}일 전",+ "minutes": "{{count}}분",+ "hours": "{{count}}시간",+ "days": "{{count}}일",+ "weeks": "{{count}}주",+ "months": "{{count}}개월",+ "years": "{{count}}년"+ }+ },+ "home": {+ "allDevices": "전체",+ "allComputers": "모든 컴퓨터",+ "waitingCount": "대기 {{count}}개",+ "synced": "동기화됨",+ "unknownComputer": "알 수 없는 컴퓨터",+ "uncategorizedProject": "분류되지 않은 프로젝트",+ "empty": {+ "search": { "title": "일치하는 결과 없음", "copy": "다른 프로젝트 이름, 세션 제목, 컴퓨터 이름 또는 메시지 키워드를 사용해 보세요." },+ "waiting": { "title": "대기 중인 요청 없음", "copy": "권한 확인, 계획 검토 및 질문이 여기에 표시됩니다." },+ "automation": { "title": "자동화 세션 없음", "copy": "자동화 실행 후 생성된 세션이 프로젝트별로 여기에 그룹화됩니다." },+ "archived": { "title": "보관된 세션 없음", "copy": "전체 또는 활성 필터로 전환해 현재 프로젝트와 세션을 계속 확인하세요." },+ "noSession": { "title": "아직 세션이 없습니다", "copy": "컴퓨터에서 세션을 만들거나 계속하면 해당 프로젝트와 세션이 여기에 표시됩니다." }+ },+ "noDevice": {+ "accessRevoked": { "title": "접근 권한이 철회되었습니다", "copy": "{{names}}에서 이 휴대폰의 원격 접근 권한을 철회했습니다. 접근을 다시 요청하거나 컴퓨터에서 다시 허용하세요." },+ "remoteDisabled": { "title": "컴퓨터에서 원격 제어 허용", "copy": "{{names}}이 온라인입니다. 컴퓨터에서 휴대폰 제어를 허용하면 됩니다." },+ "offline": { "title": "컴퓨터에서 Cindy 열기", "copy": "연결한 컴퓨터가 현재 오프라인입니다. 컴퓨터에서 Cindy를 열고 로그인 상태를 유지하면 휴대폰이 자동으로 다시 연결됩니다." },+ "firstRun": { "title": "컴퓨터의 Cindy 연결", "copy": "현재 Cindy는 컴퓨터에서 실행됩니다. 모바일 앱은 원격 접근을 통해 해당 컴퓨터의 Agent를 사용할 수 있게 합니다." }+ }+ },+ "bulk": {+ "action": { "archive": "보관", "delete": "삭제", "pin": "고정", "restore": "복원", "unpin": "고정 해제" },+ "title": "작업 {{count}}개 {{action}}",+ "description": "선택한 작업 {{count}}개에 {{action}} 작업을 적용합니다.",+ "descriptionWithSkipped": "선택한 작업 {{count}}개에 {{action}} 작업을 적용하며, 해당하지 않는 {{skippedCount}}개는 건너뜁니다."+ }+ },"list": {"thisComputer": "이 기기","allConversations": "모든 세션",@@ -244,6 +374,12 @@"viewAllRuns": "실행 {{count}}회 모두 보기"},"automations": {+ "heading": {+ "delete": "자동화 삭제",+ "pause": "자동화 일시 중지",+ "deleteRun": "실행 기록 삭제"+ },+ "runNow": "지금 실행","error": {"projectMissingConfig": "프로젝트 자동화에 projectConfigId가 없습니다. 데스크톱에서 삭제하세요.","deletePartial": "자동화를 삭제했지만 생성된 세션 {{count}}개의 상태를 업데이트하지 못했습니다. 데스크톱에서 이 세션들을 확인하세요."@@ -359,7 +495,51 @@"loading": "불러오는 중","refresh": "새로 고침","cardA11y": "자동화 템플릿 {{name}}",- "manualConfig": "수동 설정"+ "manualConfig": "수동 설정",+ "builtin": {+ "nightly-test-heal": {+ "name": "야간 자가 복구 테스트",+ "description": "매일 밤 테스트를 실행하고 실패 항목을 격리 워크트리에서 최소 수정",+ "prompt": "프로젝트의 테스트 스위트를 실행하고, 실패 항목이 있으면 격리된 worktree에서 최소한의 수정을 시도하세요.\n제약 사항:\n- 전체 테스트를 실행하기 전에 저장소 문서나 package 스크립트에서 표준 테스트 명령을 확인합니다\n- 명확한 실패 증거가 있는 문제만 수정하고, 영향 범위가 가장 작은 변경을 우선하며 관련 없는 리팩터링은 피합니다\n- 수정 후 관련 테스트를 다시 실행해 통과 여부를 확인하고 전체 diff를 검토합니다\n- 저장소의 작업 흐름에 따라 수정 사항을 전달합니다(예: 브랜치를 만들고 PR 열기). main 브랜치를 직접 변경하지 않습니다\n- 안전하게 수정할 수 없는 실패 항목은 원인, 의심되는 파일, 권장 조사 단계를 보고합니다"+ },+ "pr-gatekeeper": {+ "name": "PR 게이트키퍼",+ "description": "평일마다 오픈 PR의 새 변경을 사전 리뷰하고 심각도별로 위험 보고",+ "prompt": "저장소에서 현재 열려 있는 PR을 확인하고 새 변경 사항을 사전 검토하세요.\n제약 사항:\n- 지난 24시간 동안 새 커밋이 추가된 열린 PR을 하나씩 확인합니다(월요일에는 주말 전체를 확인). PR 번호, 파일 경로, 구체적인 diff를 인용합니다\n- 정확성, 보안, 데이터 손실, 호환성 문제를 중점적으로 찾고 심각도별로 분류합니다\n- 증거로 뒷받침되는 문제만 보고하고 실패 시나리오를 설명합니다. 스타일 취향만으로 지적하지 않습니다\n- 사용자가 명시적으로 허용하지 않는 한 검토 결과만 출력하고 PR에 댓글을 달거나 코드를 변경하지 않습니다"+ },+ "domain-radar": {+ "name": "관심 분야 레이더",+ "description": "관심 분야의 최신 동향을 정기 수집해 관점 있는 요약 제공",+ "prompt": "주제 \"{{topic}}\"에 관한 지난 24시간의 최신 동향을 수집하고(월요일에는 주말 전체를 확인) 관점이 담긴 요약을 작성하세요.\n제약 사항:\n- Web 검색을 사용하고 여러 출처를 교차 확인한 뒤 정보를 채택하며, 각 항목에 출처 링크를 표시합니다\n- 출시, 연구, 정책, 주요 논의처럼 실질적인 진전을 우선하고 홍보성 글과 중복 게시물은 제외합니다\n- 링크만 나열하지 말고 각 동향이 왜 중요한지 한 문장으로 판단을 덧붙입니다\n- 정보가 부족하거나 출처가 의심스러우면 솔직히 밝히고 지어내지 않습니다",+ "params": {+ "topic": {+ "label": "관심 주제",+ "placeholder": "예: AI 에이전트, 신에너지, 프런트엔드"+ }+ }+ },+ "competitor-watch": {+ "name": "경쟁사 동향 추적",+ "description": "경쟁사의 제품·시장 동향을 매주 정리하고 영향 분석",+ "prompt": "다음 경쟁사의 지난 일주일간 동향을 추적하세요: {{competitors}}.\n제약 사항:\n- Web 검색으로 제품 업데이트, 출시, 가격 변경, 시장 움직임, 사용자 반응을 조사하고 출처를 표시합니다\n- 공식 정보와 제3자 전언을 구분하고 확인되지 않은 소문은 명확히 표시합니다\n- 중요한 동향마다 우리에게 어떤 의미가 있는지 분석하고 대응 방안을 제안합니다\n- 실질적인 동향이 없다면 내용을 부풀리지 말고 솔직히 밝힙니다",+ "params": {+ "competitors": {+ "label": "경쟁사 목록",+ "placeholder": "예: Notion, Linear, Figma"+ }+ }+ },+ "weekly-work-draft": {+ "name": "주간 보고서 초안 도우미",+ "description": "작업 디렉터리의 문서와 산출물로 주간 보고서 초안 생성",+ "prompt": "작업 디렉터리에서 이번 주에 변경된 문서, 메모, 결과물을 바탕으로 주간 보고서 초안을 작성하세요.\n제약 사항:\n- 작업 디렉터리에 실제 변경 흔적이 있는 내용만 근거로 사용하고 해당 파일을 표시합니다\n- \"이번 주 완료 / 진행 중 / 다음 주 계획 / 협의 필요\" 구조로, 바로 제출할 수 있을 만큼 간결하게 작성합니다\n- 실질적인 진전과 반복 업무를 구분하고 가치 있는 결과물을 강조합니다\n- 판단할 자료가 부족한 부분에는 설명과 함께 자리 표시자를 남겨 사용자가 보완할 수 있게 합니다"+ },+ "knowledge-freshness": {+ "name": "지식 베이스 신선도 점검",+ "description": "매월 문서를 점검해 오래된 내용과 모순 찾기",+ "prompt": "작업 디렉터리의 문서를 점검하고 업데이트가 필요한 내용을 찾으세요.\n제약 사항:\n- 오래된 정보(지난 날짜, 끊어진 링크, 폐기된 절차나 도구), 모순, 중복 내용을 확인합니다\n- 각 문제의 파일 경로와 구체적인 위치를 표시하고 판단 근거를 설명합니다\n- \"업데이트 권장 / 병합 권장 / 삭제 권장\"으로 분류하고 수정 체크리스트를 작성합니다\n- 점검 보고서만 출력하고 문서 자체는 수정하지 않습니다"+ }+ }},"scheduleRowA11y": "자동화 작업 {{title}}","detail": {@@ -386,6 +566,90 @@"marking": "표시 중","markRead": "읽음","deleteA11y": "실행 기록 삭제"+ },+ "presentation": {+ "validation": {+ "templateParameter": "템플릿 매개변수를 입력하세요: {{label}}",+ "name": "작업 이름을 입력하세요",+ "prompt": "작업 프롬프트를 입력하세요",+ "timezone": "시간대를 입력하세요",+ "boundSession": "연결할 작업을 선택하세요",+ "cron": "cron 표현식을 입력하세요",+ "workingDir": "프로젝트 디렉터리를 입력하세요",+ "effort": "추론 강도는 다음 중 하나여야 합니다: {{values}}",+ "intervalPositiveInteger": "분 간격은 양의 정수여야 합니다",+ "intervalUnsupported": "분 간격은 1~59분 또는 1~23시간의 정시 간격만 지원합니다"+ },+ "schedule": {+ "paused": "일시 중지됨",+ "manual": "수동 트리거",+ "once": "일회성 작업",+ "waitingFirstRun": "첫 실행 대기 중",+ "every": "{{duration}}마다",+ "recurring": "주기 작업",+ "dialogueWorkspace": "대화 작업 공간",+ "noDirectory": "디렉터리 미설정",+ "lastRun": "지난 실행 {{relative}}",+ "imminent": "곧 실행",+ "nextRun": "{{duration}} 후",+ "status": {+ "active": "실행 중",+ "paused": "일시 중지됨",+ "expired": "완료됨"+ },+ "session": {+ "persistent": "지속 작업",+ "bound": "연결된 작업",+ "fresh": "새 작업",+ "persistentWithId": "지속 작업 {{id}}",+ "persistentDetail": "첫 트리거 후 같은 작업을 계속 재사용합니다",+ "boundWithId": "{{id}}에 연결"+ }+ },+ "run": {+ "session": "작업 {{id}}",+ "delete": "삭제",+ "markRead": "읽음",+ "canRestart": "다시 실행 가능",+ "noSession": "생성된 작업 없음",+ "open": "열기",+ "restart": "다시 실행",+ "durationUnknown": "소요 시간 알 수 없음",+ "runningFor": "{{duration}} 동안 실행 중",+ "duration": "소요 시간 {{duration}}",+ "unknownTime": "시간 알 수 없음",+ "status": {+ "running": "실행 중",+ "success": "성공",+ "failed": "실패",+ "aborted": "중단됨",+ "interrupted": "중단됨",+ "skipped": "건너뜀"+ }+ },+ "pause": {+ "title": "{{name}} 일시 중지",+ "detail": "현재 이 자동화에서 {{count}}개의 실행이 진행 중입니다. 일시 중지하면 이후 트리거를 즉시 막고 진행 중인 실행도 중지합니다.",+ "preview": "진행 중인 실행: {{count}}개"+ },+ "delete": {+ "noSessions": "이 자동화가 생성한 작업을 찾지 못했습니다",+ "sessions": "이 자동화가 생성한 작업 {{count}}개를 찾았습니다",+ "withInflight": "{{sessions}}. 실행 {{count}}개가 아직 진행 중입니다"+ },+ "duration": {+ "seconds": "{{count}}초",+ "minutesSeconds": "{{minutes}}분 {{seconds}}초",+ "minutes": "{{count}}분",+ "hours": "{{count}}시간",+ "days": "{{count}}일"+ },+ "relative": {+ "justNow": "방금",+ "minutesAgo": "{{count}}분 전",+ "hoursAgo": "{{count}}시간 전",+ "daysAgo": "{{count}}일 전"+ }}}}diff --git a/apps/mobile/src/i18n/locales/ko/files.json b/apps/mobile/src/i18n/locales/ko/files.jsonindex 3067fd15a1..48728db61c 100644--- a/apps/mobile/src/i18n/locales/ko/files.json+++ b/apps/mobile/src/i18n/locales/ko/files.json@@ -46,6 +46,34 @@"a11yPreviewName": "{{name}} 미리보기","a11yPreviewNameLine": "{{name}} {{line}}번째 줄 미리보기"},+ "presentation": {+ "grid": {+ "today": "오늘 {{time}}", "yesterday": "어제 {{time}}", "empty": "폴더가 비어 있습니다",+ "summaryMixed": "폴더 {{dirs}}개, 파일 {{files}}개", "summaryDirs": "폴더 {{count}}개", "summaryFiles": "파일 {{count}}개", "workdir": "작업 디렉터리"+ },+ "preview": {+ "nonText": {+ "pdf": "PDF 파일은 아직 모바일에서 인라인 미리 보기를 지원하지 않습니다. 경로를 복사하여 데스크톱이나 시스템 PDF 리더에서 여세요.",+ "drawio": "Draw.io 파일은 아직 모바일에서 인라인 미리 보기를 지원하지 않습니다. 경로를 복사하여 데스크톱에서 계속 보거나 편집하세요.",+ "office": "Office 파일은 아직 모바일에서 인라인 미리 보기를 지원하지 않습니다. 경로를 복사하여 데스크톱이나 시스템 앱에서 여세요.",+ "binary": "텍스트 파일이 아니므로 모바일에서 내용을 읽지 않습니다. 경로를 복사하여 데스크톱에서 여세요.",+ "unknown": "파일 형식을 확인할 수 없어 모바일에서 내용을 읽지 않습니다. 경로를 복사하여 데스크톱에서 여세요.",+ "text": "필요할 때 텍스트 미리 보기를 불러올 수 있습니다."+ },+ "pathOnly": "파일 경로 정보만 있어 원격 컴퓨터에서 미리 보기를 읽을 수 없습니다.",+ "loading": "원격 컴퓨터에서 텍스트 미리 보기 읽는 중",+ "ready": "텍스트 미리 보기 불러옴 · {{size}}",+ "idle": "원격 텍스트 미리 보기는 필요할 때 불러오며 메시지 목록에서 파일 내용을 일괄로 가져오지 않습니다.",+ "failure": {+ "oversize": "파일이 원격 미리 보기 한도를 초과했습니다 · {{limit}} · 현재 {{size}}",+ "forbidden": "제어 중인 컴퓨터가 이 경로 읽기를 거부했습니다.",+ "notFound": "제어 중인 컴퓨터에서 이 파일을 찾을 수 없습니다.",+ "readFailed": "읽기에 실패했습니다.",+ "readFailedWithError": "읽기 실패: {{error}}",+ "default": "이 파일은 미리 볼 수 없습니다."+ }+ }+ },"preview": {"done": "완료","a11yShare": "내보내 공유",diff --git a/apps/mobile/src/i18n/locales/ko/interaction.json b/apps/mobile/src/i18n/locales/ko/interaction.jsonindex ae44b4a17b..6ef7c1695d 100644--- a/apps/mobile/src/i18n/locales/ko/interaction.json+++ b/apps/mobile/src/i18n/locales/ko/interaction.json@@ -222,5 +222,46 @@},"inlineFormAction": "컴퓨터에서 {{label}} 입력","inlineFormActionGeneric": "컴퓨터에서 설정 입력"+ },+ "presentation": {+ "action": { "submitting": "제출 중" },+ "permission": {+ "highRiskTitle": "고위험 권한은 한 번 더 확인해야 합니다",+ "highRiskDetail": "명령 내용을 확인한 뒤 허용을 다시 누르세요. 확실하지 않으면 거부하세요.",+ "sessionAllowTitle": "한 번만 허용하거나 이 작업에서 항상 허용할 수 있습니다",+ "allowTitle": "허용하면 컴퓨터에서 실행을 계속합니다",+ "tool": "도구: {{tool}}",+ "title": "{{tool}} 사용을 허용할까요?",+ "risk": "이 명령은 시스템, 저장소 또는 외부 서비스 상태를 변경할 수 있습니다. 허용하기 전에 현재 작업과 명령을 신뢰할 수 있는지 확인하세요."+ },+ "ask": {+ "progress": "질문 {{current}}/{{total}}",+ "multiSelect": "여러 답을 선택하거나 다른 답을 입력할 수 있습니다.",+ "singleSelect": "답 하나를 선택하거나 다른 답을 입력하세요.",+ "emptyTitle": "구체적인 질문 없음",+ "emptyDetail": "빈 답을 제출해 컴퓨터가 계속 진행하도록 할 수 있습니다.",+ "waiting": "Agent가 확인을 기다리는 중"+ },+ "plan": {+ "outlineCount": "섹션 {{count}}개",+ "noOutline": "목차 없음",+ "hasFile": "계획 파일 있음",+ "noFile": "계획 파일 경로 없음",+ "editedTitle": "계획이 편집되었습니다. 승인하면 현재 버전으로 실행합니다",+ "approveTitle": "승인하면 컴퓨터에서 이 계획대로 계속 실행합니다"+ },+ "queue": {+ "count": "{{count}}개",+ "readOnlyHint": "협업은 읽기 전용이며 컴퓨터의 요청만 표시합니다.",+ "empty": "대기 중인 요청 없음",+ "hint": {+ "plan_review": "계획을 확인하고 필요하면 수정을 요청하세요. 승인한 뒤 컴퓨터에서 계속 실행합니다.",+ "permission": "이번 결정만 컴퓨터의 현재 작업으로 보냅니다.",+ "ask_user_question": "답은 초안으로 저장되며 제출한 뒤 컴퓨터에서 계속 진행합니다.",+ "issue_confirm": "제출하기 전에 제목과 본문을 확인하세요.",+ "plugin_setup": "설정은 컴퓨터에서 완료해야 합니다. 여기에서는 이 요청을 취소할 수 있습니다.",+ "fallback": "모바일은 데스크톱에서 보낸 순서대로 원격 요청을 처리합니다."+ }+ }}}diff --git a/apps/mobile/src/i18n/locales/ko/message.json b/apps/mobile/src/i18n/locales/ko/message.jsonindex be8a47862c..d4e9bc8050 100644--- a/apps/mobile/src/i18n/locales/ko/message.json+++ b/apps/mobile/src/i18n/locales/ko/message.json@@ -1,5 +1,6 @@{"renderer": {+ "moreActions": "추가 메시지 작업","previousQuestionJump": "이전 질문으로 이동: {{preview}}","noPreview": "미리보기 없음","newMessagesToBottom": "새 메시지, 맨 아래로 이동",@@ -201,7 +202,88 @@"learnFailedBody": "시작 실패:{{detail}}","unknownError": "알 수 없는 오류"},+ "queuePresentation": {+ "panel": {+ "sendFailedRetryable": "전송 실패 · 다시 시도 가능",+ "sendFailed": "전송 실패",+ "errorHint": "새 메시지를 보내기 전에 큐 오류를 해결하세요.",+ "errorTitle": "큐 확인 필요",+ "abortQueued": "메시지 {{count}}개가 큐에 남아 있습니다",+ "abortWaiting": "데스크톱의 중지 확인을 기다리는 중",+ "abortHint": "중지가 완료될 때까지 다시 보내지 마세요. 남은 메시지는 여기에 계속 표시됩니다.",+ "abortTitle": "중지 처리 중",+ "pausedDetail": "메시지 {{count}}개가 재개를 기다리는 중",+ "pausedHint": "‘계속’을 누르면 현재 순서대로 데스크톱에 전송합니다.",+ "pausedTitle": "큐 일시 중지됨",+ "defaultDetail": "메시지 {{count}}개 · 데스크톱 순서대로 전송",+ "defaultHint": "일반 대기 메시지의 순서를 바꾸거나 끼어들기, 편집, 삭제할 수 있습니다.",+ "defaultTitle": "전송 대기 큐"+ },+ "row": {+ "syntheticEditDisabled": "시스템 지시 메시지는 편집하거나 끼어들기로 보낼 수 없습니다.",+ "first": "이미 큐의 첫 항목입니다.",+ "last": "이미 큐의 마지막 항목입니다.",+ "steering": "끼어들기 전송 중",+ "orcaTitle": "협업 큐 {{index}}",+ "title": "큐 {{index}}",+ "orcaReadOnly": "협업 메시지는 데스크톱에서 구성되며 모바일에서는 읽기 전용입니다.",+ "busy": "큐 작업을 동기화하는 중입니다. 완료 후 다시 조작하세요.",+ "steeringDisabled": "현재 turn에 끼어들기를 보내는 중입니다. 데스크톱 응답을 기다리세요.",+ "editLocked": "이 대기 메시지를 편집하는 중입니다. 완료 후 다시 조작하세요.",+ "interactionLocked": "다른 작업이 큐를 잠갔습니다. 완료 후 다시 조작하세요.",+ "syntheticHint": "시스템이 자동 생성한 지시입니다. 취소할 수 있지만 편집하거나 끼어들기로 보낼 수는 없습니다.",+ "steeringHint": "현재 turn에 끼어들기를 보내는 중이어서 아직 편집하거나 이동할 수 없습니다.",+ "editHint": "이 메시지를 편집하는 동안 데스크톱 자동 전송이 일시 중지됩니다.",+ "interactionHint": "큐 순서를 변경하거나 다른 작업이 진행 중이어서 아직 편집할 수 없습니다."+ }+ },+ "payloadPresentation": {+ "remoteFetchBody": "모바일 앱에서 원격 데스크톱의 미디어를 가져옵니다.",+ "missingRemotePath": "표시할 원격 경로가 없습니다",+ "missingRemotePathSentence": "표시할 원격 경로가 없습니다.",+ "mermaidSourceTitle": "Mermaid 다이어그램 소스",+ "diffStats": "+{{insertions}} / -{{deletions}}줄",+ "directPreview": "바로 미리 볼 수 있음",+ "remoteFetchRequired": "원격 가져오기 필요",+ "chartSource": "다이어그램 소스",+ "noDiffContent": "diff 내용이 없습니다.",+ "noMediaAddress": "미디어 주소가 없습니다.",+ "remoteMediaPreparing": "원격 미디어를 가져올 준비 중",+ "mediaAddressOnlySentence": "현재 이 미디어 형식은 주소로 표시됩니다.",+ "mediaCannotPreviewSentence": "현재 이 미디어를 바로 미리 볼 수 없습니다.",+ "emptyMermaid": "빈 Mermaid 다이어그램입니다.",+ "noTextContent": "표시할 텍스트 내용이 없습니다.",+ "viewDiff": "diff 보기",+ "editCount": "편집 {{count}}개",+ "previewFile": "파일 미리 보기",+ "viewDetails": "세부 정보 보기",+ "noRemotePath": "원격 경로 없음",+ "remotePathMissing": "원격 경로 누락",+ "fetchMedia": "미디어 가져오기",+ "fetchMediaFromDesktop": "데스크톱에서 미디어를 가져옵니다",+ "pendingFetch": "가져오기 대기 중",+ "previewMedia": "미디어 미리 보기",+ "previewable": "미리 보기 가능",+ "openMedia": "미디어 열기",+ "mediaAddressOnly": "현재 이 미디어는 주소로 표시됩니다",+ "mediaCannotPreview": "현재 이 미디어를 바로 미리 볼 수 없습니다",+ "addressDisplay": "주소로 표시",+ "notPreviewable": "미리 보기 불가",+ "viewChart": "다이어그램 보기",+ "viewContent": "내용 보기",+ "textOutput": "텍스트 출력",+ "text": "텍스트",+ "image": "이미지",+ "video": "동영상",+ "audio": "오디오",+ "inlineMediaData": "인라인 {{kind}} 데이터",+ "mediaActionsAvailable": "데스크톱 앱에서 이 미디어의 후속 작업을 제공합니다.",+ "availableActions": "사용 가능한 작업: {{actions}}",+ "mediaActionsDesktopOnly": "모바일 V1에서는 이 작업을 표시만 하며 아직 원격으로 실행하지 않습니다. 데스크톱 앱으로 돌아가 선택하세요.",+ "moreEdits": "…편집 {{count}}개 더 있음"+ },"quote": {+ "previewTitle": "인용","count": "인용 {{n}}건","countPreviewHint": "인용 {{n}}건, 탭하여 미리보기","remove": "인용 제거",diff --git a/apps/mobile/src/i18n/locales/ko/session.json b/apps/mobile/src/i18n/locales/ko/session.jsonindex b168688164..734232365e 100644--- a/apps/mobile/src/i18n/locales/ko/session.json+++ b/apps/mobile/src/i18n/locales/ko/session.json@@ -24,6 +24,144 @@"voiceStopRecording": "녹음 중지","capabilitiesUnsupported": "지원되지 않는 원격 기능 형식입니다"},+ "presentation": {+ "collaboration": {+ "labelLead": "협업 Lead",+ "labelWorker": "협업 Worker",+ "labelRole": "협업 {{role}}",+ "noticeLead": "컴퓨터의 Orca Lead 세션입니다. 휴대폰에서 메시지를 계속 보낼 수 있습니다. Worker 생성, 포커스 변경, Fork/Rewind, 대기열 편집 및 세션 설정 변경은 컴퓨터에서 진행하세요.",+ "noticeWorker": "컴퓨터의 Orca Worker 세션입니다. 모바일 첫 버전은 읽기 전용이며 메시지 전송, Worker 포커스 변경, Worker 보관 또는 협업 중지를 지원하지 않습니다.",+ "noticeOther": "컴퓨터의 협업 세션입니다. 모바일 첫 버전은 읽기 전용이므로 협업 관리는 컴퓨터에서 진행하세요.",+ "readOnlyReason": "모바일 첫 버전에서 협업 모드는 읽기 전용입니다. 확인 처리, 대기열 편집 및 세션 변경은 컴퓨터에서 진행하세요.",+ "composerReadOnlyReason": "이 협업 하위 작업은 모바일에서 읽기 전용입니다. 컴퓨터에서 메시지를 보내세요."+ },+ "composer": {+ "voice": {+ "listening": "듣는 중",+ "submitting": "받아쓰는 중",+ "refining": "다듬는 중",+ "error": "음성 입력 오류",+ "idle": "음성 입력",+ "sendingReason": "메시지를 컴퓨터로 보내는 중입니다. 완료된 후 녹음하세요.",+ "processingReason": "음성 입력을 처리 중입니다. 완료된 후 다시 녹음하세요."+ },+ "attachment": {+ "count": "첨부 파일 {{count}}개",+ "collapse": "첨부 파일 접기",+ "label": "첨부 파일",+ "busyReason": "첨부 파일을 처리 중입니다. 완료된 후 더 추가하세요.",+ "sendingReason": "메시지를 컴퓨터로 보내는 중입니다. 완료된 후 첨부 파일을 변경하세요."+ },+ "input": {+ "sendingReason": "메시지를 컴퓨터로 보내는 중입니다."+ },+ "send": {+ "sendingReason": "메시지를 컴퓨터로 보내는 중입니다.",+ "attachmentBusyReason": "첨부 파일을 업로드 중입니다. 완료된 후 보내세요.",+ "voiceBusyReason": "음성 입력을 처리 중입니다. 완료된 후 보내세요.",+ "emptyReason": "텍스트를 입력하거나 첨부 파일 또는 인용을 추가한 후 보내세요.",+ "sending": "보내는 중",+ "label": "보내기"+ },+ "stop": {+ "queueBusyReason": "대기열 변경 사항을 동기화 중이므로 아직 실행을 중지할 수 없습니다.",+ "unavailableReason": "컴퓨터에서 중지할 수 있는 실행이 없습니다.",+ "processing": "처리 중",+ "label": "중지"+ },+ "placeholder": {+ "listening": "듣는 중…",+ "submitting": "음성을 받아쓰는 중",+ "refining": "음성 입력을 다듬는 중",+ "default": "계속 입력하세요…"+ },+ "guidance": {+ "sending": "메시지를 컴퓨터의 대기열에 추가하는 중입니다. 완료될 때까지 중복으로 보내지 마세요.",+ "queueBusy": "대기열 변경 사항을 동기화 중입니다. 완료되면 대기열 상태가 새로 고쳐집니다.",+ "listeningWithDraft": "보내기를 누르면 음성 입력을 끝내고 현재 텍스트를 보냅니다. 입력란을 누르면 음성 입력을 끝내고 키보드를 엽니다.",+ "listening": "듣는 중입니다. 보내기를 누르면 음성 입력을 끝내고 인식된 텍스트를 보냅니다. 입력란을 누르면 음성 입력을 끝내고 키보드를 엽니다.",+ "submitting": "음성을 받아쓰는 중입니다. 입력란이 잠시 잠깁니다.",+ "refining": "음성 입력을 다듬는 중입니다. 완료되면 입력란이 업데이트됩니다.",+ "attachmentBusy": "첨부 파일을 확인하거나 업로드 중입니다. 준비되면 첨부 파일 목록에 표시됩니다.",+ "attachmentsWithText": "첨부 파일 {{count}}개와 입력란의 텍스트를 보냅니다.",+ "attachmentsOnly": "첨부 파일 {{count}}개만 보냅니다. 보내기 전에 설명을 추가할 수도 있습니다.",+ "attachmentPickerOpen": "휴대폰의 사진, 스크린샷 또는 파일을 추가할 수 있습니다.",+ "draft": "보내기를 누르면 현재 작업 설정에 따라 메시지가 컴퓨터의 대기열에 추가됩니다.",+ "quotesOnly": "인용 {{count}}개를 보냅니다. 보내기 전에 설명을 추가할 수도 있습니다.",+ "canStop": "컴퓨터에서 실행 중입니다. 다른 메시지를 대기열에 추가하거나 중지를 눌러 현재 대기열을 유지할 수 있습니다.",+ "empty": "텍스트를 입력하여 시작하세요. /로 명령을 사용하고 @로 프로젝트 리소스를 참조할 수 있습니다."+ },+ "status": {+ "sending": "컴퓨터로 보내는 중",+ "queueBusy": "대기열 변경 사항 처리 중",+ "attachmentBusy": "첨부 파일 처리 중",+ "ready": "준비됨"+ },+ "operation": {+ "sessionSyncing": "이 작업은 아직 동기화가 완료되지 않았습니다.",+ "pendingInteraction": "계속 입력하기 전에 컴퓨터의 보류 중인 요청을 처리하세요."+ }+ },+ "overview": {+ "unavailable": "사용할 수 없음",+ "pendingCount": "보류 중 {{count}}개",+ "readOnly": "읽기 전용",+ "queuePaused": "대기열 일시 중지됨",+ "status": { "active": "활성", "archived": "보관됨", "deleted": "삭제됨" },+ "actions": {+ "settings": { "label": "설정", "a11y": "작업 설정 열기" },+ "usage": { "label": "사용량", "a11y": "작업 사용량 보기" },+ "files": { "label": "파일", "a11y": "원격 파일 탐색" },+ "queue": { "label": "대기열", "a11y": "대기열 패널 열기" },+ "search": { "label": "검색", "openA11y": "메시지 검색", "closeA11y": "메시지 검색 닫기" }+ },+ "disabled": {+ "files": "이 작업에는 원격 작업 디렉터리가 없어 파일을 탐색할 수 없습니다.",+ "search": "검색할 메시지가 아직 없습니다.",+ "queueUnavailable": "제어 중인 컴퓨터를 일시적으로 사용할 수 없습니다. 다시 동기화한 후 대기열을 확인하세요.",+ "queuePending": "먼저 보류 중인 요청을 처리하세요. 완료되면 대기열 패널을 사용할 수 있습니다.",+ "queuePausedEmpty": "대기열이 일시 중지되었지만 다시 시작할 메시지가 없습니다.",+ "queueEmpty": "대기열에 메시지가 없습니다.",+ "queueDefault": "현재 상태에서는 대기열 패널을 열 수 없습니다."+ },+ "actionCopy": {+ "pending": "먼저 보류 중인 요청을 처리하세요. 완료되면 입력 영역을 사용할 수 있습니다.",+ "archived": "이 작업은 보관되었습니다. 복원한 후 메시지를 보내세요.",+ "deleted": "이 작업은 삭제되어 더 이상 변경할 수 없습니다.",+ "queuePaused": "대기열이 일시 중지되었습니다. 대기열 패널에서 다시 시작할 수 있습니다."+ }+ },+ "controls": {+ "spend": {+ "title": "작업 사용량",+ "unavailable": "아직 작업 사용량이 없습니다",+ "taskCost": "이 작업 {{cost}}",+ "contextWithLimit": "컨텍스트 {{used}} / {{total}} · {{percentage}}",+ "context": "컨텍스트 {{used}} tokens"+ },+ "context": {+ "title": "컨텍스트 사용량",+ "unavailable": "컨텍스트 데이터 없음"+ },+ "rateLimit": {+ "plan": "요금제",+ "remaining": "{{percent}} 남음",+ "used": "{{percent}} 사용",+ "resetsAt": "{{time}}에 재설정",+ "status": "상태",+ "reached": "계정 한도에 도달했습니다",+ "account": "계정",+ "availableResets": "사용 가능한 재설정",+ "resetCount": "{{count}}회",+ "earliestExpiry": "가장 이른 만료",+ "window": {+ "default": "한도",+ "days": "{{count}}일",+ "week": "주"+ }+ }+ }+ },"screen": {"thinking": "생각 중…","tokenCount": "{{tokens}} tok",diff --git a/apps/mobile/src/i18n/locales/zh-CN/deviceLink.json b/apps/mobile/src/i18n/locales/zh-CN/deviceLink.jsonindex 8f2c6840eb..41f4db7dc6 100644--- a/apps/mobile/src/i18n/locales/zh-CN/deviceLink.json+++ b/apps/mobile/src/i18n/locales/zh-CN/deviceLink.json@@ -26,5 +26,42 @@"versionMismatchTitle": "版本不匹配","versionMismatchHint": "当前 App 版本与服务端协议不一致,请升级到最新版本。","unstableTitle": "连接反复断开",- "unstableHint": "本机连接反复断开又重连,远程操作可能一直超时。请检查网络;若持续如此,重启 App 后重试。"+ "unstableHint": "本机连接反复断开又重连,远程操作可能一直超时。请检查网络;若持续如此,重启 App 后重试。",+ "relay": {+ "label": {+ "online": "Relay 已连接",+ "connecting": "正在连接 Relay",+ "stopped": "Relay 未连接"+ },+ "hint": {+ "online": "可以同步远程任务。",+ "lastSynced": "上次同步 {{time}}",+ "connecting": "网络恢复后会自动重新订阅远程任务。",+ "stopped": "回到前台或重新登录后会恢复连接。"+ }+ },+ "agentAuth": {+ "noKey": "{{agent}} 无法使用:电脑端还没有配置可用的 API Key。请在电脑端 {{appName}} 的“设置 → 模型供应商”完成配置后再试。",+ "noOauth": "{{agent}} 无法使用:电脑端尚未完成账号授权。请在电脑端 {{appName}} 的“设置 → 模型供应商”重新连接账号后再试。",+ "noCredentials": "{{agent}} 无法使用:电脑端尚未登录。请在电脑端 {{appName}} 的“设置 → 模型供应商”完成登录后再试。",+ "noEncryption": "{{agent}} 无法使用:电脑端系统安全存储不可用,读取不到已保存的密钥。请检查系统钥匙串(macOS)或系统账户加密(Windows),然后重启电脑端 {{appName}}。",+ "proxyNotReady": "{{agent}} 暂时无法使用:电脑端组件尚未就绪。请稍候重试;若持续出现,请重启电脑端 {{appName}}。",+ "default": "{{agent}} 无法使用:电脑端登录凭证不可用。请在电脑端 {{appName}} 的“设置 → 模型供应商”重新登录后再试。({{reason}})"+ },+ "remoteError": {+ "remoteDisabled": "被控电脑已关闭允许远程控制。",+ "channelNotAllowed": "当前电脑端版本不支持这个远程能力。",+ "accessRevoked": "这台电脑已撤销手机访问权限。",+ "deviceUnresponsive": "电脑端未响应,正在自动重试,请稍后再试。",+ "versionMismatch": "与服务端协议版本不一致,请升级 App 后重试。",+ "payloadTooLarge": "这次传输的内容过大,请拆分后重试。",+ "mediaFetchFailed": "获取电脑端文件失败,可以稍后重试。",+ "voiceTranscribeFailed": "语音转写失败,可以重试或改用键盘输入。",+ "linkNotOpen": "与被控电脑的控制链路已断开,正在重新建立。",+ "accountChanged": "Codex 账号或工作区已变化,请刷新配额后重新确认。",+ "offerExpired": "Codex 重置凭证已失效,请刷新配额后重新确认。",+ "preconditionFailed": "操作条件已变化,请刷新后重新确认。",+ "transient": "网络或被控端暂时不可用,可以稍后重新同步。",+ "callFailed": "远程调用失败,可以稍后重试。({{error}})"+ }}diff --git a/apps/mobile/src/i18n/locales/zh-CN/devices.json b/apps/mobile/src/i18n/locales/zh-CN/devices.jsonindex 50c3f7767f..17a39a5e21 100644--- a/apps/mobile/src/i18n/locales/zh-CN/devices.json+++ b/apps/mobile/src/i18n/locales/zh-CN/devices.json@@ -7,6 +7,136 @@"deleting": "删除中","create": "新建"},+ "presentation": {+ "deviceList": {+ "headerAvailable": "{{count}} 台电脑可控制",+ "headerUnavailable": "{{count}} 台电脑暂不可用",+ "waitingForDesktop": "等待电脑端上线",+ "filterAvailable": "可控制设备",+ "filterEmpty": "没有可控制设备",+ "filterMeta": "{{available}} 台可进入",+ "filterMetaWithUnavailable": "{{available}} 台可进入 · {{unavailable}} 台需处理",+ "showUnavailableReason": "展开的设备会显示不可用原因",+ "emptyCopy": "在电脑端登录同一账号,并在设置里的远程控制打开“允许同账号设备控制本机”。",+ "emptyTitle": "还没有可显示的电脑",+ "hideUnavailableA11y": "隐藏不可用电脑",+ "showUnavailableA11y": "显示不可用电脑",+ "availableOnly": "只看可用",+ "unavailableCount": "不可用 {{count}}",+ "status": {+ "ready": "可控制",+ "busy": "运行中",+ "offline": "离线",+ "remoteDisabled": "未开启远程控制",+ "accessRevoked": "已撤销访问权限",+ "self": "本机"+ },+ "detail": {+ "accessRevoked": "需要在电脑端恢复这台手机的访问权限",+ "remoteDisabled": "在电脑端设置里打开允许远程控制",+ "self": "当前手机",+ "busy": "电脑端正在处理任务",+ "ready": "已允许远程控制"+ },+ "lastSeen": {+ "never": "从未上线",+ "unknown": "上次在线时间未知",+ "justNow": "刚刚在线",+ "minutesAgo": "{{count}} 分钟前在线",+ "hoursAgo": "{{count}} 小时前在线",+ "daysAgo": "{{count}} 天前在线",+ "onDate": "上次在线 {{date}}"+ }+ },+ "sessionList": {+ "section": { "pinned": "置顶" },+ "filterWithCount": "{{label}} {{count}}",+ "controlsSummary": "{{filter}} · 按{{group}}分组",+ "automation": "自动化",+ "sessionCount": "{{count}} 个任务",+ "messageCount": "{{count}} 条消息",+ "status": { "archived": "已归档", "deleted": "已删除" },+ "preview": {+ "permission": "等待授权",+ "planReview": "等待计划审阅",+ "answer": "等待你的回复",+ "attention": "等待你处理",+ "automationRunning": "自动化运行中",+ "running": "运行中"+ },+ "context": {+ "matchingTasks": "{{count}} 个匹配任务",+ "tasks": "{{count}} 个任务",+ "noMatchingTasks": "没有匹配任务",+ "noResults": "当前筛选无结果",+ "rows": " · {{count}} 行",+ "detail": "{{result}}{{rows}} · {{filter}} · 按{{group}}分组",+ "searchResults": "搜索结果",+ "title": {+ "active": "活跃任务",+ "waiting": "待处理任务",+ "automation": "自动化生成的任务",+ "archived": "归档任务",+ "all": "全部任务"+ },+ "hint": {+ "search": "搜索范围包含标题、项目路径、模型、自动化名称和消息预览。",+ "active": "点开任务继续控制,长按任务进入批量选择。",+ "waiting": "这里集中显示需要在手机端确认的权限、计划和问题。",+ "automation": "自动化生成的任务会按计划聚合,展开后可以进入单次运行。",+ "archived": "长按归档任务可进入批量选择,然后恢复或删除。",+ "all": "活跃、归档和自动化生成的任务会一起显示,适合快速查找。"+ }+ },+ "empty": {+ "search": { "title": "没有匹配的任务", "copy": "换一个标题、项目路径、模型或消息关键词再试。" },+ "waiting": { "title": "没有待处理请求", "copy": "权限确认、计划审阅和问题选择会在这里集中出现。" },+ "automation": { "title": "没有自动化生成的任务", "copy": "自动化运行后,对应任务会聚合到这里。" },+ "archived": { "title": "没有归档任务", "copy": "长按任务可以批量归档或删除。" },+ "active": { "title": "这台电脑暂无活跃任务", "copy": "先在桌面端创建或继续一个任务,手机端会把它显示在这里。" }+ },+ "time": {+ "unknown": "最近活动时间未知",+ "justNow": "刚刚",+ "minutesAgo": "{{count}} 分钟前",+ "hoursAgo": "{{count}} 小时前",+ "daysAgo": "{{count}} 天前",+ "minutes": "{{count}} 分钟",+ "hours": "{{count}} 小时",+ "days": "{{count}} 天",+ "weeks": "{{count}} 周",+ "months": "{{count}} 月",+ "years": "{{count}} 年"+ }+ },+ "home": {+ "allDevices": "全部",+ "allComputers": "全部电脑",+ "waitingCount": "{{count}} 待处理",+ "synced": "已同步",+ "unknownComputer": "未知电脑",+ "uncategorizedProject": "未分类项目",+ "empty": {+ "search": { "title": "没有匹配结果", "copy": "换一个项目名、任务标题、电脑名或消息关键词再试。" },+ "waiting": { "title": "没有待处理请求", "copy": "权限确认、计划审阅和问题选择会在这里集中出现。" },+ "automation": { "title": "没有自动化生成的任务", "copy": "自动化运行后,对应任务会按项目聚合到这里。" },+ "archived": { "title": "没有归档任务", "copy": "切到全部或活跃筛选,继续查看当前项目和任务。" },+ "noSession": { "title": "还没有任务", "copy": "先在桌面端创建或继续一个任务,手机端会直接显示对应项目和任务。" }+ },+ "noDevice": {+ "accessRevoked": { "title": "访问权限已被撤销", "copy": "{{names}} 撤销了这台手机的远程访问。可以重试申请,或在电脑上重新允许后自动恢复。" },+ "remoteDisabled": { "title": "在电脑上允许远程控制", "copy": "{{names}} 已经在线,还差最后一步:在电脑上打开允许手机控制的开关。" },+ "offline": { "title": "打开电脑上的 Cindy", "copy": "连接过的电脑现在都不在线。在电脑上打开 Cindy 并保持登录,手机会自动连上。" },+ "firstRun": { "title": "连接你电脑上的 Cindy", "copy": "目前 Cindy 都运行在你的电脑上,手机版通过远程访问来让你使用电脑上的 Agent。" }+ }+ },+ "bulk": {+ "action": { "archive": "归档", "delete": "删除", "pin": "置顶", "restore": "恢复", "unpin": "取消置顶" },+ "title": "{{action}} {{count}} 个任务",+ "description": "将对当前选中的 {{count}} 个任务执行{{action}}。",+ "descriptionWithSkipped": "将对当前选中的 {{count}} 个任务执行{{action}},并跳过 {{skippedCount}} 个不适用的任务。"+ }+ },"list": {"thisComputer": "这台设备","allConversations": "所有任务",@@ -244,6 +374,12 @@"viewAllRuns": "查看全部 {{count}} 次运行"},"automations": {+ "heading": {+ "delete": "删除自动化",+ "pause": "暂停自动化",+ "deleteRun": "删除运行记录"+ },+ "runNow": "立即运行","error": {"projectMissingConfig": "项目自动化缺少 projectConfigId,请在桌面端删除","deletePartial": "自动化已删除,但 {{count}} 个生成任务未能更新状态。请在桌面端检查这些任务。"@@ -359,7 +495,51 @@"loading": "加载中","refresh": "刷新","cardA11y": "自动化模板 {{name}}",- "manualConfig": "手动配置"+ "manualConfig": "手动配置",+ "builtin": {+ "nightly-test-heal": {+ "name": "夜间自愈测试",+ "description": "每晚跑测试,失败项在隔离 worktree 尝试最小修复",+ "prompt": "运行项目的测试套件,如果有失败项,在隔离 worktree 尝试给出最小修复。\n约束:\n- 先按仓库文档或 package 脚本确定标准测试命令,再完整运行\n- 只修复有明确失败证据的问题,采用影响面最小的改法,避免顺手重构\n- 修复后重跑相关测试确认通过,并复核完整 diff\n- 按仓库工作流交付修复(如创建分支并开 PR),不要直接改动主分支\n- 无法安全修复的失败项,输出失败原因、疑点文件和建议的排查步骤"+ },+ "pr-gatekeeper": {+ "name": "PR 守门人",+ "description": "工作日预审开放 PR 的新增改动,按严重程度报告风险",+ "prompt": "检查仓库当前开放的 PR,对新增改动做一轮预审。\n约束:\n- 逐个查看过去 24 小时内有新提交的开放 PR(周一回看整个周末),引用 PR 编号、文件路径和具体 diff\n- 重点找正确性、安全、数据丢失和兼容性问题,按严重程度分级\n- 只报告有证据支撑的问题,说明失败场景,不要凭风格偏好挑刺\n- 除非用户明确授权,只输出审查结论,不要直接在 PR 上留言或改动代码"+ },+ "domain-radar": {+ "name": "领域雷达",+ "description": "定期搜集你关注领域的最新动态,输出有观点的摘要",+ "prompt": "围绕主题「{{topic}}」搜集过去 24 小时的最新动态(周一回看整个周末),输出一份有观点的摘要。\n约束:\n- 用 Web 搜索获取信息,交叉核对多个来源后再采信,标注每条信息的来源链接\n- 优先收录有实质内容的进展(发布、研究、政策、重要讨论),过滤营销软文和重复转载\n- 对每条动态给出一句\"为什么值得关注\"的判断,而不是罗列链接\n- 信息不足或来源存疑时如实说明,不要臆造",+ "params": {+ "topic": {+ "label": "关注主题",+ "placeholder": "如:AI Agent、新能源、前端框架"+ }+ }+ },+ "competitor-watch": {+ "name": "竞品动态追踪",+ "description": "每周汇总竞品的产品与市场动态,分析对我们的影响",+ "prompt": "追踪以下竞品最近一周的动态:{{competitors}}。\n约束:\n- 用 Web 搜索覆盖产品更新、版本发布、定价变化、市场动作和用户口碑,标注来源\n- 区分官方信息和第三方转述,未经证实的传闻要明确标注\n- 对每条重要动态给出\"对我们意味着什么\"的分析和建议\n- 没有实质动态时如实说明,不要凑数",+ "params": {+ "competitors": {+ "label": "竞品名单",+ "placeholder": "如:Notion、Linear、Figma"+ }+ }+ },+ "weekly-work-draft": {+ "name": "周报草稿助手",+ "description": "从工作目录的文档和产出物整理本周工作,生成周报草稿",+ "prompt": "根据工作目录中本周的文档、笔记和产出物变化,整理一份周报草稿。\n约束:\n- 只使用工作目录内有实际修改痕迹的内容作为证据,注明对应文件\n- 按\"本周完成 / 进行中 / 下周计划 / 需要协调\"组织,语言简洁可直接提交\n- 区分实质进展和例行事务,突出有价值的产出\n- 材料不足以判断的部分留出占位并说明,方便用户补充"+ },+ "knowledge-freshness": {+ "name": "知识库保鲜",+ "description": "每月体检工作目录文档,找出过期与矛盾内容",+ "prompt": "体检工作目录中的文档,找出需要更新的内容。\n约束:\n- 检查过期信息(旧日期、失效链接、已废弃的流程或工具)、前后矛盾和重复内容\n- 每个问题都注明文件路径和具体位置,说明判断依据\n- 按\"建议更新 / 建议合并 / 建议删除\"分类,给出修订建议清单\n- 只输出体检报告,不要直接修改文档"+ }+ }},"scheduleRowA11y": "自动化 {{title}}","detail": {@@ -386,6 +566,90 @@"marking": "标记中","markRead": "已读","deleteA11y": "删除执行记录"+ },+ "presentation": {+ "validation": {+ "templateParameter": "请输入模板参数:{{label}}",+ "name": "请输入任务名称",+ "prompt": "请输入任务提示词",+ "timezone": "请输入时区",+ "boundSession": "请选择要绑定的任务",+ "cron": "请输入 cron 表达式",+ "workingDir": "请输入项目目录",+ "effort": "推理强度只能是 {{values}}",+ "intervalPositiveInteger": "间隔分钟必须是正整数",+ "intervalUnsupported": "分钟间隔只支持 1–59 分钟,或 1–23 小时的整点间隔"+ },+ "schedule": {+ "paused": "已暂停",+ "manual": "手动触发",+ "once": "单次任务",+ "waitingFirstRun": "等待首次执行",+ "every": "每 {{duration}}",+ "recurring": "周期任务",+ "dialogueWorkspace": "对话工作区",+ "noDirectory": "未设置目录",+ "lastRun": "上次 {{relative}}",+ "imminent": "即将执行",+ "nextRun": "{{duration}}后",+ "status": {+ "active": "运行中",+ "paused": "已暂停",+ "expired": "已完成"+ },+ "session": {+ "persistent": "持续任务",+ "bound": "绑定任务",+ "fresh": "新任务",+ "persistentWithId": "持续任务 {{id}}",+ "persistentDetail": "首次触发后持续复用同一任务",+ "boundWithId": "绑定到 {{id}}"+ }+ },+ "run": {+ "session": "任务 {{id}}",+ "delete": "删除",+ "markRead": "已读",+ "canRestart": "可重新执行",+ "noSession": "未创建任务",+ "open": "打开",+ "restart": "重跑",+ "durationUnknown": "耗时未知",+ "runningFor": "已运行 {{duration}}",+ "duration": "耗时 {{duration}}",+ "unknownTime": "未知时间",+ "status": {+ "running": "运行中",+ "success": "成功",+ "failed": "失败",+ "aborted": "已中止",+ "interrupted": "被中断",+ "skipped": "已跳过"+ }+ },+ "pause": {+ "title": "暂停 {{name}}",+ "detail": "这条自动化当前有 {{count}} 次执行正在进行。暂停会立即阻止后续触发,并停止这些正在进行的执行。",+ "preview": "正在执行:{{count}} 次"+ },+ "delete": {+ "noSessions": "没有找到由它生成的任务",+ "sessions": "找到 {{count}} 个由它生成的任务",+ "withInflight": "{{sessions}},还有 {{count}} 次执行正在进行"+ },+ "duration": {+ "seconds": "{{count}} 秒",+ "minutesSeconds": "{{minutes}} 分 {{seconds}} 秒",+ "minutes": "{{count}} 分钟",+ "hours": "{{count}} 小时",+ "days": "{{count}} 天"+ },+ "relative": {+ "justNow": "刚刚",+ "minutesAgo": "{{count}} 分钟前",+ "hoursAgo": "{{count}} 小时前",+ "daysAgo": "{{count}} 天前"+ }}}}diff --git a/apps/mobile/src/i18n/locales/zh-CN/files.json b/apps/mobile/src/i18n/locales/zh-CN/files.jsonindex 3a1c5a7daa..2533cb7bbb 100644--- a/apps/mobile/src/i18n/locales/zh-CN/files.json+++ b/apps/mobile/src/i18n/locales/zh-CN/files.json@@ -46,6 +46,34 @@"a11yPreviewName": "预览 {{name}}","a11yPreviewNameLine": "预览 {{name}} 第 {{line}} 行"},+ "presentation": {+ "grid": {+ "today": "今天 {{time}}", "yesterday": "昨天 {{time}}", "empty": "文件夹为空",+ "summaryMixed": "{{dirs}} 个文件夹、{{files}} 个文件", "summaryDirs": "{{count}} 个文件夹", "summaryFiles": "{{count}} 个文件", "workdir": "工作目录"+ },+ "preview": {+ "nonText": {+ "pdf": "PDF 文件暂不支持在手机版内嵌预览;请复制路径,在桌面端或系统 PDF 阅读器中打开。",+ "drawio": "Draw.io 文件暂不支持在手机版内嵌预览;请复制路径,在桌面端继续查看或编辑。",+ "office": "Office 文件暂不支持在手机版内嵌预览;请复制路径,在桌面端或系统应用中打开。",+ "binary": "当前文件不是文本格式,手机版暂不读取内容;可复制路径到桌面端打开。",+ "unknown": "当前文件类型无法确认,手机版暂不读取内容;可复制路径到桌面端打开。",+ "text": "可以按需加载文本预览。"+ },+ "pathOnly": "当前文件只有路径信息,无法从远程电脑读取预览。",+ "loading": "正在从远程电脑读取文本预览",+ "ready": "已加载文本预览 · {{size}}",+ "idle": "按需读取远程文本预览,不会在消息列表里批量拉取文件内容。",+ "failure": {+ "oversize": "文件超过远程预览上限 · {{limit}} · 当前 {{size}}",+ "forbidden": "被控电脑拒绝读取这个路径。",+ "notFound": "被控电脑上没有找到这个文件。",+ "readFailed": "读取失败。",+ "readFailedWithError": "读取失败:{{error}}",+ "default": "当前文件无法预览。"+ }+ }+ },"preview": {"done": "完成","a11yShare": "导出分享",diff --git a/apps/mobile/src/i18n/locales/zh-CN/interaction.json b/apps/mobile/src/i18n/locales/zh-CN/interaction.jsonindex 4519103ffc..bbc68b7e33 100644--- a/apps/mobile/src/i18n/locales/zh-CN/interaction.json+++ b/apps/mobile/src/i18n/locales/zh-CN/interaction.json@@ -222,5 +222,46 @@},"inlineFormAction": "在电脑端填写{{label}}","inlineFormActionGeneric": "在电脑端填写一项配置"+ },+ "presentation": {+ "action": { "submitting": "提交中" },+ "permission": {+ "highRiskTitle": "高风险授权需要二次确认",+ "highRiskDetail": "先核对命令内容,再点一次确认允许;不确定就拒绝。",+ "sessionAllowTitle": "可以只允许一次,也可以本任务总是允许",+ "allowTitle": "允许后电脑端会继续执行",+ "tool": "工具:{{tool}}",+ "title": "允许使用 {{tool}}?",+ "risk": "这个命令可能修改系统、仓库或外部服务状态。允许前请确认你信任当前任务和命令内容。"+ },+ "ask": {+ "progress": "第 {{current}}/{{total}} 个问题",+ "multiSelect": "可多选,也可以输入其他回答。",+ "singleSelect": "选择一个回答,或输入其他回答。",+ "emptyTitle": "没有具体问题",+ "emptyDetail": "可以提交空回答让电脑端继续。",+ "waiting": "Agent 正在等待确认"+ },+ "plan": {+ "outlineCount": "{{count}} 个章节",+ "noOutline": "无章节目录",+ "hasFile": "有计划文件",+ "noFile": "无计划文件路径",+ "editedTitle": "已编辑计划,批准后按当前版本执行",+ "approveTitle": "批准后电脑端会按计划继续执行"+ },+ "queue": {+ "count": "{{count}} 个",+ "readOnlyHint": "协同只读模式,仅展示电脑端请求。",+ "empty": "没有待处理请求",+ "hint": {+ "plan_review": "先看计划,必要时反馈修改,确认后电脑端才继续执行。",+ "permission": "只把本次决定回传给当前电脑端任务。",+ "ask_user_question": "回答会保存草稿,提交后电脑端继续。",+ "issue_confirm": "确认标题和正文后再提交。",+ "plugin_setup": "配置要在电脑端完成,这里可以取消这次请求。",+ "fallback": "手机版会按桌面端的请求顺序处理。"+ }+ }}}diff --git a/apps/mobile/src/i18n/locales/zh-CN/message.json b/apps/mobile/src/i18n/locales/zh-CN/message.jsonindex 1d1101d8d2..df9c759f19 100644--- a/apps/mobile/src/i18n/locales/zh-CN/message.json+++ b/apps/mobile/src/i18n/locales/zh-CN/message.json@@ -1,5 +1,6 @@{"renderer": {+ "moreActions": "更多消息操作","previousQuestionJump": "跳到上一条提问:{{preview}}","noPreview": "无预览","newMessagesToBottom": "有新消息,跳到底部",@@ -201,7 +202,88 @@"learnFailedBody": "启动失败:{{detail}}","unknownError": "未知错误"},+ "queuePresentation": {+ "panel": {+ "sendFailedRetryable": "发送失败 · 可重试",+ "sendFailed": "发送失败",+ "errorHint": "先处理队列错误,再继续发送新的消息。",+ "errorTitle": "队列需要处理",+ "abortQueued": "{{count}} 条消息保留在队列里",+ "abortWaiting": "等待桌面端确认停止",+ "abortHint": "停止完成前先不要重复发送,保留的消息会继续显示在这里。",+ "abortTitle": "停止处理中",+ "pausedDetail": "{{count}} 条消息等待恢复",+ "pausedHint": "点“继续”后会按当前顺序继续发送到桌面端。",+ "pausedTitle": "队列已暂停",+ "defaultDetail": "{{count}} 条消息 · 按桌面端顺序发送",+ "defaultHint": "可调整顺序、插话、编辑或删除普通队列消息。",+ "defaultTitle": "待发送队列"+ },+ "row": {+ "syntheticEditDisabled": "系统指令消息不支持编辑或插话发送。",+ "first": "已经是队列第一条。",+ "last": "已经是队列最后一条。",+ "steering": "插话发送中",+ "orcaTitle": "协同队列 {{index}}",+ "title": "队列 {{index}}",+ "orcaReadOnly": "协同消息由桌面端编排,手机端只读显示。",+ "busy": "队列操作同步中,完成后再继续操作。",+ "steeringDisabled": "插话正在发送到当前 turn,等待桌面端回流后再操作。",+ "editLocked": "这条队列消息正在编辑中,完成后再操作。",+ "interactionLocked": "队列正在被其它操作锁定,完成后再操作。",+ "syntheticHint": "这是系统自动生成的指令,可以取消,但不能编辑或插话发送。",+ "steeringHint": "插话正在发送到当前 turn,暂时不能编辑或移动。",+ "editHint": "这条消息正在编辑中,桌面端会暂停自动发送。",+ "interactionHint": "队列正在被排序或其它交互锁定,暂时不能编辑。"+ }+ },+ "payloadPresentation": {+ "remoteFetchBody": "移动端会尝试从远程电脑取回媒体。",+ "missingRemotePath": "没有可展示的远程路径",+ "missingRemotePathSentence": "没有可展示的远程路径。",+ "mermaidSourceTitle": "Mermaid 图表源码",+ "diffStats": "+{{insertions}} / -{{deletions}} 行",+ "directPreview": "可直接预览",+ "remoteFetchRequired": "需要远程取件",+ "chartSource": "图表源码",+ "noDiffContent": "没有 diff 内容。",+ "noMediaAddress": "没有媒体地址。",+ "remoteMediaPreparing": "正在准备远程媒体取件",+ "mediaAddressOnlySentence": "当前媒体类型暂以地址形式展示。",+ "mediaCannotPreviewSentence": "当前媒体暂不能直接预览。",+ "emptyMermaid": "空 Mermaid 图表。",+ "noTextContent": "没有可展示的文本内容。",+ "viewDiff": "查看 diff",+ "editCount": "{{count}} 处编辑",+ "previewFile": "预览文件",+ "viewDetails": "查看详情",+ "noRemotePath": "没有远程路径",+ "remotePathMissing": "缺少远程路径",+ "fetchMedia": "取回媒体",+ "fetchMediaFromDesktop": "需要从电脑端取回媒体",+ "pendingFetch": "待取件",+ "previewMedia": "预览媒体",+ "previewable": "可预览",+ "openMedia": "打开媒体",+ "mediaAddressOnly": "当前媒体以地址形式展示",+ "mediaCannotPreview": "当前媒体暂不能直接预览",+ "addressDisplay": "地址展示",+ "notPreviewable": "不可预览",+ "viewChart": "查看图表",+ "viewContent": "查看内容",+ "textOutput": "文本输出",+ "text": "文本",+ "image": "图片",+ "video": "视频",+ "audio": "音频",+ "inlineMediaData": "内联{{kind}}数据",+ "mediaActionsAvailable": "桌面端为这个媒体提供了后续操作。",+ "availableActions": "可用操作:{{actions}}",+ "mediaActionsDesktopOnly": "手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。",+ "moreEdits": "…还有 {{count}} 处编辑"+ },"quote": {+ "previewTitle": "引用","count": "{{n}} 处引用","countPreviewHint": "{{n}} 处引用,点击预览","remove": "移除引用",diff --git a/apps/mobile/src/i18n/locales/zh-CN/session.json b/apps/mobile/src/i18n/locales/zh-CN/session.jsonindex d46a3d3f1f..275314c2f3 100644--- a/apps/mobile/src/i18n/locales/zh-CN/session.json+++ b/apps/mobile/src/i18n/locales/zh-CN/session.json@@ -24,6 +24,144 @@"voiceStopRecording": "停止录音","capabilitiesUnsupported": "远程能力返回格式不支持"},+ "presentation": {+ "collaboration": {+ "labelLead": "协同 Lead",+ "labelWorker": "协同 Worker",+ "labelRole": "协同 {{role}}",+ "noticeLead": "这是桌面端 Orca Lead 任务。可以在手机上继续发消息;创建 Worker、切换焦点、Fork/Rewind、编辑队列和修改任务设置等编排操作请在电脑端完成。",+ "noticeWorker": "这是桌面端 Orca Worker 任务。手机版第一版只读,不提供发送消息、切换 Worker 焦点、归档 Worker 或停止协同。",+ "noticeOther": "这是桌面端协同任务。手机版第一版只读,协同编排操作请在电脑端完成。",+ "readOnlyReason": "协同模式在手机版第一版中为只读。确认处理、队列编辑和任务修改请在电脑端完成。",+ "composerReadOnlyReason": "这个协同子任务在手机版中只读,请在电脑端发送消息。"+ },+ "composer": {+ "voice": {+ "listening": "正在听",+ "submitting": "转写中",+ "refining": "正在润色",+ "error": "语音出错",+ "idle": "语音",+ "sendingReason": "消息正在发送到电脑端,完成后再录音。",+ "processingReason": "语音正在处理,完成后再录音。"+ },+ "attachment": {+ "count": "附件 {{count}}",+ "collapse": "收起附件",+ "label": "附件",+ "busyReason": "附件处理中,完成后再继续添加。",+ "sendingReason": "消息正在发送到电脑端,完成后再调整附件。"+ },+ "input": {+ "sendingReason": "消息正在发送到电脑端。"+ },+ "send": {+ "sendingReason": "消息正在发送到电脑端。",+ "attachmentBusyReason": "附件上传中,完成后再发送。",+ "voiceBusyReason": "语音正在处理,完成后再发送。",+ "emptyReason": "输入文字、添加附件或引用后才能发送。",+ "sending": "发送中",+ "label": "发送"+ },+ "stop": {+ "queueBusyReason": "队列操作同步中,暂时不能停止。",+ "unavailableReason": "电脑端当前没有可停止的执行。",+ "processing": "处理中",+ "label": "停止"+ },+ "placeholder": {+ "listening": "正在听……",+ "submitting": "正在转写语音",+ "refining": "正在润色语音",+ "default": "继续聊一聊…"+ },+ "guidance": {+ "sending": "消息正在写入桌面端队列,完成前请不要重复发送。",+ "queueBusy": "正在同步队列操作,完成后会刷新队列状态。",+ "listeningWithDraft": "点发送会结束语音并发送当前文字;点输入框会结束语音并弹出键盘。",+ "listening": "正在听;点发送会结束语音并发送识别的文字,点输入框可结束语音并弹出键盘。",+ "submitting": "正在转写语音,输入框会暂时锁定。",+ "refining": "正在润色语音,完成后会更新输入框。",+ "attachmentBusy": "正在检查或上传附件,完成后会出现在附件列表。",+ "attachmentsWithText": "将发送 {{count}} 个附件和输入框里的文字。",+ "attachmentsOnly": "将只发送 {{count}} 个附件,也可以补充说明后再发送。",+ "attachmentPickerOpen": "可以添加手机上的照片、截图或文件。",+ "draft": "点发送后会进入桌面端队列,按当前任务设置执行。",+ "quotesOnly": "将发送 {{count}} 处引用,也可以补充说明后再发送。",+ "canStop": "电脑端正在执行;可继续排队输入,或点停止保留当前队列。",+ "empty": "输入文字开始,使用 / 调命令,使用 @ 引用项目资源。"+ },+ "status": {+ "sending": "正在发送到电脑端",+ "queueBusy": "正在处理队列操作",+ "attachmentBusy": "正在处理附件",+ "ready": "就绪"+ },+ "operation": {+ "sessionSyncing": "当前任务还没有同步完成。",+ "pendingInteraction": "先处理电脑端的待处理请求后才能继续输入。"+ }+ },+ "overview": {+ "unavailable": "不可用",+ "pendingCount": "待处理 {{count}}",+ "readOnly": "只读",+ "queuePaused": "队列暂停",+ "status": { "active": "活跃", "archived": "已归档", "deleted": "已删除" },+ "actions": {+ "settings": { "label": "设置", "a11y": "打开任务设置" },+ "usage": { "label": "用量", "a11y": "查看任务用量" },+ "files": { "label": "文件", "a11y": "浏览远程文件" },+ "queue": { "label": "队列", "a11y": "打开队列面板" },+ "search": { "label": "搜索", "openA11y": "搜索消息", "closeA11y": "关闭消息搜索" }+ },+ "disabled": {+ "files": "这个任务没有远程工作目录,不能浏览文件。",+ "search": "当前没有可搜索的消息。",+ "queueUnavailable": "被控电脑暂不可用,重新同步后再查看队列。",+ "queuePending": "先处理待处理请求,处理后队列面板会恢复。",+ "queuePausedEmpty": "队列已暂停,但当前没有可继续的队列消息。",+ "queueEmpty": "当前没有队列消息。",+ "queueDefault": "当前状态暂不能打开队列面板。"+ },+ "actionCopy": {+ "pending": "先处理待处理请求,处理后输入区会恢复。",+ "archived": "任务已归档,恢复后才能继续发送。",+ "deleted": "任务已删除,不能继续操作。",+ "queuePaused": "队列已暂停,可在队列面板继续执行。"+ }+ },+ "controls": {+ "spend": {+ "title": "任务用量",+ "unavailable": "暂无任务用量",+ "taskCost": "本任务 {{cost}}",+ "contextWithLimit": "上下文 {{used}} / {{total}} · {{percentage}}",+ "context": "上下文 {{used}} tokens"+ },+ "context": {+ "title": "上下文用量",+ "unavailable": "暂无上下文数据"+ },+ "rateLimit": {+ "plan": "套餐",+ "remaining": "剩余 {{percent}}",+ "used": "已用 {{percent}}",+ "resetsAt": "{{time}} 重置",+ "status": "状态",+ "reached": "已触发账号限额",+ "account": "账号",+ "availableResets": "可用重置",+ "resetCount": "{{count}} 次",+ "earliestExpiry": "最早过期",+ "window": {+ "default": "限额",+ "days": "{{count}}天",+ "week": "周"+ }+ }+ }+ },"screen": {"thinking": "思考中…","tokenCount": "{{tokens}} tok",diff --git a/apps/mobile/src/i18n/locales/zh-TW/deviceLink.json b/apps/mobile/src/i18n/locales/zh-TW/deviceLink.jsonindex 68d37e376d..2f159d70fe 100644--- a/apps/mobile/src/i18n/locales/zh-TW/deviceLink.json+++ b/apps/mobile/src/i18n/locales/zh-TW/deviceLink.json@@ -26,5 +26,38 @@"versionMismatchTitle": "版本不匹配","versionMismatchHint": "當前 App 版本與服務端協議不一致,請升級到最新版本。","unstableTitle": "連線反覆斷開",- "unstableHint": "本機連線反覆斷開又重連,遠端操作可能一直超時。請檢查網路;若持續如此,重啟 App 後重試。"+ "unstableHint": "本機連線反覆斷開又重連,遠端操作可能一直超時。請檢查網路;若持續如此,重啟 App 後重試。",+ "relay": {+ "label": { "online": "Relay 已連線", "connecting": "正在連線 Relay", "stopped": "Relay 未連線" },+ "hint": {+ "online": "可以同步遠端任務。",+ "lastSynced": "上次同步 {{time}}",+ "connecting": "網路恢復後會自動重新訂閱遠端任務。",+ "stopped": "回到前景或重新登入後會恢復連線。"+ }+ },+ "agentAuth": {+ "noKey": "{{agent}} 無法使用:電腦端還沒有設定可用的 API Key。請在電腦端 {{appName}} 的「設定 → 模型供應商」完成設定後再試。",+ "noOauth": "{{agent}} 無法使用:電腦端尚未完成帳號授權。請在電腦端 {{appName}} 的「設定 → 模型供應商」重新連線帳號後再試。",+ "noCredentials": "{{agent}} 無法使用:電腦端尚未登入。請在電腦端 {{appName}} 的「設定 → 模型供應商」完成登入後再試。",+ "noEncryption": "{{agent}} 無法使用:電腦端系統安全儲存空間不可用,讀不到已儲存的金鑰。請檢查系統鑰匙圈(macOS)或系統帳號加密(Windows),然後重新啟動電腦端 {{appName}}。",+ "proxyNotReady": "{{agent}} 暫時無法使用:電腦端元件尚未就緒。請稍候重試;若持續出現,請重新啟動電腦端 {{appName}}。",+ "default": "{{agent}} 無法使用:電腦端登入憑證不可用。請在電腦端 {{appName}} 的「設定 → 模型供應商」重新登入後再試。({{reason}})"+ },+ "remoteError": {+ "remoteDisabled": "受控電腦已關閉允許遠端控制。",+ "channelNotAllowed": "目前電腦端版本不支援這個遠端能力。",+ "accessRevoked": "這臺電腦已撤銷手機存取權限。",+ "deviceUnresponsive": "電腦端未回應,正在自動重試,請稍後再試。",+ "versionMismatch": "與服務端協定版本不一致,請升級 App 後重試。",+ "payloadTooLarge": "這次傳輸的內容過大,請拆分後重試。",+ "mediaFetchFailed": "取得電腦端檔案失敗,可以稍後重試。",+ "voiceTranscribeFailed": "語音轉寫失敗,可以重試或改用鍵盤輸入。",+ "linkNotOpen": "與受控電腦的控制連線已中斷,正在重新建立。",+ "accountChanged": "Codex 帳號或工作區已變更,請重新整理配額後再次確認。",+ "offerExpired": "Codex 重設憑證已失效,請重新整理配額後再次確認。",+ "preconditionFailed": "操作條件已變更,請重新整理後再次確認。",+ "transient": "網路或受控端暫時不可用,可以稍後重新同步。",+ "callFailed": "遠端呼叫失敗,可以稍後重試。({{error}})"+ }}diff --git a/apps/mobile/src/i18n/locales/zh-TW/devices.json b/apps/mobile/src/i18n/locales/zh-TW/devices.jsonindex af5fa77c2d..0521bfc852 100644--- a/apps/mobile/src/i18n/locales/zh-TW/devices.json+++ b/apps/mobile/src/i18n/locales/zh-TW/devices.json@@ -7,6 +7,136 @@"deleting": "刪除中","create": "新建"},+ "presentation": {+ "deviceList": {+ "headerAvailable": "{{count}} 臺電腦可控制",+ "headerUnavailable": "{{count}} 臺電腦暫時無法使用",+ "waitingForDesktop": "等待電腦端上線",+ "filterAvailable": "可控制裝置",+ "filterEmpty": "沒有可控制裝置",+ "filterMeta": "{{available}} 臺可進入",+ "filterMetaWithUnavailable": "{{available}} 臺可進入 · {{unavailable}} 臺需處理",+ "showUnavailableReason": "展開裝置可查看無法使用的原因",+ "emptyCopy": "在電腦端登入同一帳號,並在設定的遠端控制中開啟「允許同帳號裝置控制本機」。",+ "emptyTitle": "還沒有可顯示的電腦",+ "hideUnavailableA11y": "隱藏無法使用的電腦",+ "showUnavailableA11y": "顯示無法使用的電腦",+ "availableOnly": "只看可用",+ "unavailableCount": "無法使用 {{count}}",+ "status": {+ "ready": "可控制",+ "busy": "執行中",+ "offline": "離線",+ "remoteDisabled": "未開啟遠端控制",+ "accessRevoked": "存取權限已撤銷",+ "self": "本機"+ },+ "detail": {+ "accessRevoked": "需要在電腦端恢復這支手機的存取權限",+ "remoteDisabled": "在電腦端設定中開啟允許遠端控制",+ "self": "目前手機",+ "busy": "電腦端正在處理任務",+ "ready": "已允許遠端控制"+ },+ "lastSeen": {+ "never": "從未上線",+ "unknown": "上次上線時間不明",+ "justNow": "剛剛上線",+ "minutesAgo": "{{count}} 分鐘前上線",+ "hoursAgo": "{{count}} 小時前上線",+ "daysAgo": "{{count}} 天前上線",+ "onDate": "上次上線 {{date}}"+ }+ },+ "sessionList": {+ "section": { "pinned": "置頂" },+ "filterWithCount": "{{label}} {{count}}",+ "controlsSummary": "{{filter}} · 依{{group}}分組",+ "automation": "自動化",+ "sessionCount": "{{count}} 個任務",+ "messageCount": "{{count}} 則訊息",+ "status": { "archived": "已封存", "deleted": "已刪除" },+ "preview": {+ "permission": "等待授權",+ "planReview": "等待計畫審閱",+ "answer": "等待你的回覆",+ "attention": "等待你處理",+ "automationRunning": "自動化執行中",+ "running": "執行中"+ },+ "context": {+ "matchingTasks": "{{count}} 個符合的任務",+ "tasks": "{{count}} 個任務",+ "noMatchingTasks": "沒有符合的任務",+ "noResults": "目前篩選沒有結果",+ "rows": " · {{count}} 列",+ "detail": "{{result}}{{rows}} · {{filter}} · 依{{group}}分組",+ "searchResults": "搜尋結果",+ "title": {+ "active": "活躍任務",+ "waiting": "待處理任務",+ "automation": "自動化產生的任務",+ "archived": "封存任務",+ "all": "全部任務"+ },+ "hint": {+ "search": "搜尋範圍包含標題、專案路徑、模型、自動化名稱和訊息預覽。",+ "active": "開啟任務可繼續控制,長按任務可進入批次選取。",+ "waiting": "需要在手機端確認的權限、計畫和問題會集中顯示在這裡。",+ "automation": "自動化產生的任務會依計畫彙整,展開後可進入單次執行。",+ "archived": "長按封存任務可進入批次選取,然後恢復或刪除。",+ "all": "活躍、封存和自動化產生的任務會一起顯示,方便快速尋找。"+ }+ },+ "empty": {+ "search": { "title": "沒有符合的任務", "copy": "請改用其他標題、專案路徑、模型或訊息關鍵字。" },+ "waiting": { "title": "沒有待處理請求", "copy": "權限確認、計畫審閱和問題選擇會集中顯示在這裡。" },+ "automation": { "title": "沒有自動化產生的任務", "copy": "自動化執行後,對應任務會彙整在這裡。" },+ "archived": { "title": "沒有封存任務", "copy": "長按任務可批次封存或刪除。" },+ "active": { "title": "這臺電腦目前沒有活躍任務", "copy": "先在電腦端建立或繼續任務,手機端就會顯示在這裡。" }+ },+ "time": {+ "unknown": "最近活動時間不明",+ "justNow": "剛剛",+ "minutesAgo": "{{count}} 分鐘前",+ "hoursAgo": "{{count}} 小時前",+ "daysAgo": "{{count}} 天前",+ "minutes": "{{count}} 分鐘",+ "hours": "{{count}} 小時",+ "days": "{{count}} 天",+ "weeks": "{{count}} 週",+ "months": "{{count}} 個月",+ "years": "{{count}} 年"+ }+ },+ "home": {+ "allDevices": "全部",+ "allComputers": "全部電腦",+ "waitingCount": "{{count}} 待處理",+ "synced": "已同步",+ "unknownComputer": "未知電腦",+ "uncategorizedProject": "未分類專案",+ "empty": {+ "search": { "title": "沒有符合結果", "copy": "請改用其他專案名稱、任務標題、電腦名稱或訊息關鍵字。" },+ "waiting": { "title": "沒有待處理請求", "copy": "權限確認、計畫審閱和問題選擇會集中顯示在這裡。" },+ "automation": { "title": "沒有自動化產生的任務", "copy": "自動化執行後,對應任務會依專案彙整在這裡。" },+ "archived": { "title": "沒有封存任務", "copy": "切換到全部或活躍篩選,繼續查看目前的專案和任務。" },+ "noSession": { "title": "還沒有任務", "copy": "先在電腦端建立或繼續任務,手機端會直接顯示對應的專案和任務。" }+ },+ "noDevice": {+ "accessRevoked": { "title": "存取權限已被撤銷", "copy": "{{names}} 撤銷了這支手機的遠端存取權。你可以重試申請,或在電腦上重新允許後自動恢復。" },+ "remoteDisabled": { "title": "在電腦上允許遠端控制", "copy": "{{names}} 已經上線,還差最後一步:在電腦上開啟允許手機控制的開關。" },+ "offline": { "title": "開啟電腦上的 Cindy", "copy": "已連接的電腦目前都不在線上。在電腦上開啟 Cindy 並保持登入,手機會自動重新連線。" },+ "firstRun": { "title": "連接你電腦上的 Cindy", "copy": "目前 Cindy 都在你的電腦上執行,手機版透過遠端存取讓你使用該電腦上的 Agent。" }+ }+ },+ "bulk": {+ "action": { "archive": "封存", "delete": "刪除", "pin": "置頂", "restore": "還原", "unpin": "取消置頂" },+ "title": "{{action}} {{count}} 個任務",+ "description": "將對目前選取的 {{count}} 個任務執行{{action}}。",+ "descriptionWithSkipped": "將對目前選取的 {{count}} 個任務執行{{action}},並略過 {{skippedCount}} 個不適用的任務。"+ }+ },"list": {"thisComputer": "這臺裝置","allConversations": "所有任務",@@ -244,6 +374,12 @@"viewAllRuns": "檢視全部 {{count}} 次執行"},"automations": {+ "heading": {+ "delete": "刪除自動化",+ "pause": "暫停自動化",+ "deleteRun": "刪除執行記錄"+ },+ "runNow": "立即執行","error": {"projectMissingConfig": "專案自動化缺少 projectConfigId,請在桌面端刪除","deletePartial": "自動化已刪除,但 {{count}} 個生成任務未能更新狀態。請在桌面端檢查這些任務。"@@ -359,7 +495,51 @@"loading": "載入中","refresh": "重新整理","cardA11y": "自動化模板 {{name}}",- "manualConfig": "手動配置"+ "manualConfig": "手動配置",+ "builtin": {+ "nightly-test-heal": {+ "name": "夜間自愈測試",+ "description": "每晚跑測試,失敗項在隔離 worktree 嘗試最小修復",+ "prompt": "執行專案的測試套件,如果有失敗項,在隔離 worktree 嘗試給出最小修復。\n約束:\n- 先按倉庫文件或 package 指令碼確定標準測試命令,再完整執行\n- 只修復有明確失敗證據的問題,採用影響面最小的改法,避免順手重構\n- 修復後重跑相關測試確認通過,並複核完整 diff\n- 按倉庫工作流交付修復(如建立分支並開 PR),不要直接改動主分支\n- 無法安全修復的失敗項,輸出失敗原因、疑點檔案和建議的排查步驟"+ },+ "pr-gatekeeper": {+ "name": "PR 守門人",+ "description": "工作日預審開放 PR 的新增改動,按嚴重程度報告風險",+ "prompt": "檢查倉庫當前開放的 PR,對新增改動做一輪預審。\n約束:\n- 逐個檢視過去 24 小時內有新提交的開放 PR(週一回看整個週末),引用 PR 編號、檔案路徑和具體 diff\n- 重點找正確性、安全、資料丟失和相容性問題,按嚴重程度分級\n- 只報告有證據支撐的問題,說明失敗場景,不要憑風格偏好挑刺\n- 除非使用者明確授權,只輸出審查結論,不要直接在 PR 上留言或改動程式碼"+ },+ "domain-radar": {+ "name": "領域雷達",+ "description": "定期蒐集你關注領域的最新動態,輸出有觀點的摘要",+ "prompt": "圍繞主題「{{topic}}」蒐集過去 24 小時的最新動態(週一回看整個週末),輸出一份有觀點的摘要。\n約束:\n- 用 Web 搜尋獲取資訊,交叉核對多個來源後再採信,標註每條資訊的來源連結\n- 優先收錄有實質內容的進展(釋出、研究、政策、重要討論),過濾營銷軟文和重複轉載\n- 對每條動態給出一句\"為什麼值得關注\"的判斷,而不是羅列連結\n- 資訊不足或來源存疑時如實說明,不要臆造",+ "params": {+ "topic": {+ "label": "關注主題",+ "placeholder": "如:AI Agent、新能源、前端框架"+ }+ }+ },+ "competitor-watch": {+ "name": "競品動態追蹤",+ "description": "每週彙總競品的產品與市場動態,分析對我們的影響",+ "prompt": "追蹤以下競品最近一週的動態:{{competitors}}。\n約束:\n- 用 Web 搜尋覆蓋產品更新、版本釋出、定價變化、市場動作和使用者口碑,標註來源\n- 區分官方資訊和第三方轉述,未經證實的傳聞要明確標註\n- 對每條重要動態給出\"對我們意味著什麼\"的分析和建議\n- 沒有實質動態時如實說明,不要湊數",+ "params": {+ "competitors": {+ "label": "競品名單",+ "placeholder": "如:Notion、Linear、Figma"+ }+ }+ },+ "weekly-work-draft": {+ "name": "週報草稿助手",+ "description": "從工作目錄的文件和產出物整理本週工作,生成週報草稿",+ "prompt": "根據工作目錄中本週的文件、筆記和產出物變化,整理一份週報草稿。\n約束:\n- 只使用工作目錄內有實際修改痕跡的內容作為證據,註明對應檔案\n- 按\"本週完成 / 進行中 / 下週計劃 / 需要協調\"組織,語言簡潔可直接提交\n- 區分實質進展和例行事務,突出有價值的產出\n- 材料不足以判斷的部分留出佔位並說明,方便使用者補充"+ },+ "knowledge-freshness": {+ "name": "知識庫保鮮",+ "description": "每月體檢工作目錄文件,找出過期與矛盾內容",+ "prompt": "體檢工作目錄中的文件,找出需要更新的內容。\n約束:\n- 檢查過期資訊(舊日期、失效連結、已廢棄的流程或工具)、前後矛盾和重複內容\n- 每個問題都註明檔案路徑和具體位置,說明判斷依據\n- 按\"建議更新 / 建議合併 / 建議刪除\"分類,給出修訂建議清單\n- 只輸出體檢報告,不要直接修改文件"+ }+ }},"scheduleRowA11y": "自動化 {{title}}","detail": {@@ -386,6 +566,90 @@"marking": "標記中","markRead": "已讀","deleteA11y": "刪除執行記錄"+ },+ "presentation": {+ "validation": {+ "templateParameter": "請輸入模板參數:{{label}}",+ "name": "請輸入任務名稱",+ "prompt": "請輸入任務提示詞",+ "timezone": "請輸入時區",+ "boundSession": "請選擇要繫結的任務",+ "cron": "請輸入 cron 運算式",+ "workingDir": "請輸入專案目錄",+ "effort": "推理強度只能是 {{values}}",+ "intervalPositiveInteger": "間隔分鐘必須是正整數",+ "intervalUnsupported": "分鐘間隔只支援 1–59 分鐘,或 1–23 小時的整點間隔"+ },+ "schedule": {+ "paused": "已暫停",+ "manual": "手動觸發",+ "once": "單次任務",+ "waitingFirstRun": "等待首次執行",+ "every": "每 {{duration}}",+ "recurring": "週期任務",+ "dialogueWorkspace": "對話工作區",+ "noDirectory": "未設定目錄",+ "lastRun": "上次 {{relative}}",+ "imminent": "即將執行",+ "nextRun": "{{duration}}後",+ "status": {+ "active": "執行中",+ "paused": "已暫停",+ "expired": "已完成"+ },+ "session": {+ "persistent": "持續任務",+ "bound": "繫結任務",+ "fresh": "新任務",+ "persistentWithId": "持續任務 {{id}}",+ "persistentDetail": "首次觸發後持續複用同一任務",+ "boundWithId": "繫結到 {{id}}"+ }+ },+ "run": {+ "session": "任務 {{id}}",+ "delete": "刪除",+ "markRead": "已讀",+ "canRestart": "可重新執行",+ "noSession": "未建立任務",+ "open": "開啟",+ "restart": "重跑",+ "durationUnknown": "耗時未知",+ "runningFor": "已執行 {{duration}}",+ "duration": "耗時 {{duration}}",+ "unknownTime": "未知時間",+ "status": {+ "running": "執行中",+ "success": "成功",+ "failed": "失敗",+ "aborted": "已中止",+ "interrupted": "被中斷",+ "skipped": "已略過"+ }+ },+ "pause": {+ "title": "暫停 {{name}}",+ "detail": "這條自動化目前有 {{count}} 次執行正在進行。暫停會立即阻止後續觸發,並停止這些正在進行的執行。",+ "preview": "正在執行:{{count}} 次"+ },+ "delete": {+ "noSessions": "沒有找到由它生成的任務",+ "sessions": "找到 {{count}} 個由它生成的任務",+ "withInflight": "{{sessions}},還有 {{count}} 次執行正在進行"+ },+ "duration": {+ "seconds": "{{count}} 秒",+ "minutesSeconds": "{{minutes}} 分 {{seconds}} 秒",+ "minutes": "{{count}} 分鐘",+ "hours": "{{count}} 小時",+ "days": "{{count}} 天"+ },+ "relative": {+ "justNow": "剛剛",+ "minutesAgo": "{{count}} 分鐘前",+ "hoursAgo": "{{count}} 小時前",+ "daysAgo": "{{count}} 天前"+ }}}}diff --git a/apps/mobile/src/i18n/locales/zh-TW/files.json b/apps/mobile/src/i18n/locales/zh-TW/files.jsonindex 114073bd4e..de285bfb1c 100644--- a/apps/mobile/src/i18n/locales/zh-TW/files.json+++ b/apps/mobile/src/i18n/locales/zh-TW/files.json@@ -46,6 +46,34 @@"a11yPreviewName": "預覽 {{name}}","a11yPreviewNameLine": "預覽 {{name}} 第 {{line}} 行"},+ "presentation": {+ "grid": {+ "today": "今天 {{time}}", "yesterday": "昨天 {{time}}", "empty": "資料夾是空的",+ "summaryMixed": "{{dirs}} 個資料夾、{{files}} 個檔案", "summaryDirs": "{{count}} 個資料夾", "summaryFiles": "{{count}} 個檔案", "workdir": "工作目錄"+ },+ "preview": {+ "nonText": {+ "pdf": "PDF 檔案暫不支援在手機版內嵌預覽;請複製路徑,在電腦端或系統 PDF 閱讀器中開啟。",+ "drawio": "Draw.io 檔案暫不支援在手機版內嵌預覽;請複製路徑,在電腦端繼續查看或編輯。",+ "office": "Office 檔案暫不支援在手機版內嵌預覽;請複製路徑,在電腦端或系統應用程式中開啟。",+ "binary": "目前檔案不是文字格式,手機版暫不讀取內容;可複製路徑到電腦端開啟。",+ "unknown": "目前無法確認檔案類型,手機版暫不讀取內容;可複製路徑到電腦端開啟。",+ "text": "可以視需要載入文字預覽。"+ },+ "pathOnly": "目前檔案只有路徑資訊,無法從遠端電腦讀取預覽。",+ "loading": "正在從遠端電腦讀取文字預覽",+ "ready": "已載入文字預覽 · {{size}}",+ "idle": "視需要讀取遠端文字預覽,不會在訊息清單中批次擷取檔案內容。",+ "failure": {+ "oversize": "檔案超過遠端預覽上限 · {{limit}} · 目前 {{size}}",+ "forbidden": "受控電腦拒絕讀取這個路徑。",+ "notFound": "受控電腦上找不到這個檔案。",+ "readFailed": "讀取失敗。",+ "readFailedWithError": "讀取失敗:{{error}}",+ "default": "目前無法預覽這個檔案。"+ }+ }+ },"preview": {"done": "完成","a11yShare": "匯出分享",diff --git a/apps/mobile/src/i18n/locales/zh-TW/interaction.json b/apps/mobile/src/i18n/locales/zh-TW/interaction.jsonindex bed5df3c62..60c62f3a24 100644--- a/apps/mobile/src/i18n/locales/zh-TW/interaction.json+++ b/apps/mobile/src/i18n/locales/zh-TW/interaction.json@@ -222,5 +222,46 @@},"inlineFormAction": "在電腦端填寫{{label}}","inlineFormActionGeneric": "在電腦端填寫一項配置"+ },+ "presentation": {+ "action": { "submitting": "提交中" },+ "permission": {+ "highRiskTitle": "高風險授權需要二次確認",+ "highRiskDetail": "先核對指令內容,再點一次確認允許;不確定就拒絕。",+ "sessionAllowTitle": "可以只允許一次,也可以本任務總是允許",+ "allowTitle": "允許後電腦端會繼續執行",+ "tool": "工具:{{tool}}",+ "title": "允許使用 {{tool}}?",+ "risk": "這個指令可能修改系統、倉庫或外部服務狀態。允許前請確認你信任目前任務和指令內容。"+ },+ "ask": {+ "progress": "第 {{current}}/{{total}} 個問題",+ "multiSelect": "可多選,也可以輸入其它回答。",+ "singleSelect": "選擇一個回答,或輸入其它回答。",+ "emptyTitle": "沒有具體問題",+ "emptyDetail": "可以提交空回答讓電腦端繼續。",+ "waiting": "Agent 正在等待確認"+ },+ "plan": {+ "outlineCount": "{{count}} 個章節",+ "noOutline": "無章節目錄",+ "hasFile": "有計畫檔案",+ "noFile": "無計畫檔案路徑",+ "editedTitle": "已編輯計畫,批准後按目前版本執行",+ "approveTitle": "批准後電腦端會按計畫繼續執行"+ },+ "queue": {+ "count": "{{count}} 個",+ "readOnlyHint": "協同唯讀模式,僅顯示電腦端請求。",+ "empty": "沒有待處理請求",+ "hint": {+ "plan_review": "先看計畫,必要時回饋修改,確認後電腦端才繼續執行。",+ "permission": "只把本次決定回傳給目前電腦端任務。",+ "ask_user_question": "回答會儲存草稿,提交後電腦端繼續。",+ "issue_confirm": "確認標題和正文後再提交。",+ "plugin_setup": "設定要在電腦端完成,這裡可以取消這次請求。",+ "fallback": "手機版會按桌面端的請求順序處理。"+ }+ }}}diff --git a/apps/mobile/src/i18n/locales/zh-TW/message.json b/apps/mobile/src/i18n/locales/zh-TW/message.jsonindex a8331670cb..51c3708961 100644--- a/apps/mobile/src/i18n/locales/zh-TW/message.json+++ b/apps/mobile/src/i18n/locales/zh-TW/message.json@@ -1,5 +1,6 @@{"renderer": {+ "moreActions": "更多訊息操作","previousQuestionJump": "跳到上一條提問:{{preview}}","noPreview": "無預覽","newMessagesToBottom": "有新訊息,跳到底部",@@ -201,7 +202,88 @@"learnFailedBody": "啟動失敗:{{detail}}","unknownError": "未知錯誤"},+ "queuePresentation": {+ "panel": {+ "sendFailedRetryable": "傳送失敗 · 可重試",+ "sendFailed": "傳送失敗",+ "errorHint": "先處理佇列錯誤,再繼續傳送新的訊息。",+ "errorTitle": "佇列需要處理",+ "abortQueued": "{{count}} 條訊息保留在佇列裡",+ "abortWaiting": "等待桌面端確認停止",+ "abortHint": "停止完成前先不要重複傳送,保留的訊息會繼續顯示在這裡。",+ "abortTitle": "停止處理中",+ "pausedDetail": "{{count}} 條訊息等待恢復",+ "pausedHint": "點選「繼續」後會按目前順序繼續傳送到桌面端。",+ "pausedTitle": "佇列已暫停",+ "defaultDetail": "{{count}} 條訊息 · 按桌面端順序傳送",+ "defaultHint": "可調整順序、插話、編輯或刪除一般佇列訊息。",+ "defaultTitle": "待傳送佇列"+ },+ "row": {+ "syntheticEditDisabled": "系統指令訊息不支援編輯或插話傳送。",+ "first": "已經是佇列第一條。",+ "last": "已經是佇列最後一條。",+ "steering": "插話傳送中",+ "orcaTitle": "協同佇列 {{index}}",+ "title": "佇列 {{index}}",+ "orcaReadOnly": "協同訊息由桌面端編排,手機端唯讀顯示。",+ "busy": "佇列操作同步中,完成後再繼續操作。",+ "steeringDisabled": "插話正在傳送到目前 turn,等待桌面端回流後再操作。",+ "editLocked": "這條佇列訊息正在編輯中,完成後再操作。",+ "interactionLocked": "佇列正在被其它操作鎖定,完成後再操作。",+ "syntheticHint": "這是系統自動生成的指令,可以取消,但不能編輯或插話傳送。",+ "steeringHint": "插話正在傳送到目前 turn,暫時不能編輯或移動。",+ "editHint": "這條訊息正在編輯中,桌面端會暫停自動傳送。",+ "interactionHint": "佇列正在被排序或其它互動鎖定,暫時不能編輯。"+ }+ },+ "payloadPresentation": {+ "remoteFetchBody": "行動端會嘗試從遠端電腦取回媒體。",+ "missingRemotePath": "沒有可顯示的遠端路徑",+ "missingRemotePathSentence": "沒有可顯示的遠端路徑。",+ "mermaidSourceTitle": "Mermaid 圖表原始碼",+ "diffStats": "+{{insertions}} / -{{deletions}} 行",+ "directPreview": "可直接預覽",+ "remoteFetchRequired": "需要遠端取件",+ "chartSource": "圖表原始碼",+ "noDiffContent": "沒有 diff 內容。",+ "noMediaAddress": "沒有媒體位址。",+ "remoteMediaPreparing": "正在準備遠端媒體取件",+ "mediaAddressOnlySentence": "目前媒體類型暫以位址形式顯示。",+ "mediaCannotPreviewSentence": "目前無法直接預覽此媒體。",+ "emptyMermaid": "空白 Mermaid 圖表。",+ "noTextContent": "沒有可顯示的文字內容。",+ "viewDiff": "查看 diff",+ "editCount": "{{count}} 處編輯",+ "previewFile": "預覽檔案",+ "viewDetails": "查看詳情",+ "noRemotePath": "沒有遠端路徑",+ "remotePathMissing": "缺少遠端路徑",+ "fetchMedia": "取回媒體",+ "fetchMediaFromDesktop": "需要從電腦端取回媒體",+ "pendingFetch": "等待取件",+ "previewMedia": "預覽媒體",+ "previewable": "可預覽",+ "openMedia": "開啟媒體",+ "mediaAddressOnly": "目前媒體以位址形式顯示",+ "mediaCannotPreview": "目前無法直接預覽此媒體",+ "addressDisplay": "位址顯示",+ "notPreviewable": "無法預覽",+ "viewChart": "查看圖表",+ "viewContent": "查看內容",+ "textOutput": "文字輸出",+ "text": "文字",+ "image": "圖片",+ "video": "影片",+ "audio": "音訊",+ "inlineMediaData": "內嵌{{kind}}資料",+ "mediaActionsAvailable": "桌面端為此媒體提供了後續操作。",+ "availableActions": "可用操作:{{actions}}",+ "mediaActionsDesktopOnly": "手機版 V1 僅顯示這些操作,暫不從遠端觸發。請回到電腦端點選。",+ "moreEdits": "…還有 {{count}} 處編輯"+ },"quote": {+ "previewTitle": "引用","count": "{{n}} 處引用","countPreviewHint": "{{n}} 處引用,點選預覽","remove": "移除引用",diff --git a/apps/mobile/src/i18n/locales/zh-TW/session.json b/apps/mobile/src/i18n/locales/zh-TW/session.jsonindex 8dcc613e77..98de0b0195 100644--- a/apps/mobile/src/i18n/locales/zh-TW/session.json+++ b/apps/mobile/src/i18n/locales/zh-TW/session.json@@ -24,6 +24,144 @@"voiceStopRecording": "停止錄音","capabilitiesUnsupported": "遠端能力返回格式不支援"},+ "presentation": {+ "collaboration": {+ "labelLead": "協同 Lead",+ "labelWorker": "協同 Worker",+ "labelRole": "協同 {{role}}",+ "noticeLead": "這是電腦端的 Orca Lead 任務。你可以在手機上繼續傳送訊息;建立 Worker、切換焦點、Fork/Rewind、編輯佇列和修改任務設定等編排操作請在電腦端完成。",+ "noticeWorker": "這是電腦端的 Orca Worker 任務。手機版第一版為唯讀,不提供傳送訊息、切換 Worker 焦點、封存 Worker 或停止協同。",+ "noticeOther": "這是電腦端的協同任務。手機版第一版為唯讀,協同編排操作請在電腦端完成。",+ "readOnlyReason": "協同模式在手機版第一版中為唯讀。確認處理、佇列編輯和任務修改請在電腦端完成。",+ "composerReadOnlyReason": "這個協同子任務在手機版中為唯讀,請在電腦端傳送訊息。"+ },+ "composer": {+ "voice": {+ "listening": "正在聆聽",+ "submitting": "轉寫中",+ "refining": "正在潤飾",+ "error": "語音發生錯誤",+ "idle": "語音",+ "sendingReason": "訊息正在傳送到電腦端,完成後再錄音。",+ "processingReason": "語音正在處理,完成後再錄音。"+ },+ "attachment": {+ "count": "附件 {{count}}",+ "collapse": "收起附件",+ "label": "附件",+ "busyReason": "附件處理中,完成後再繼續新增。",+ "sendingReason": "訊息正在傳送到電腦端,完成後再調整附件。"+ },+ "input": {+ "sendingReason": "訊息正在傳送到電腦端。"+ },+ "send": {+ "sendingReason": "訊息正在傳送到電腦端。",+ "attachmentBusyReason": "附件上傳中,完成後再傳送。",+ "voiceBusyReason": "語音正在處理,完成後再傳送。",+ "emptyReason": "輸入文字、新增附件或引用後才能傳送。",+ "sending": "傳送中",+ "label": "傳送"+ },+ "stop": {+ "queueBusyReason": "佇列操作同步中,暫時無法停止。",+ "unavailableReason": "電腦端目前沒有可停止的執行。",+ "processing": "處理中",+ "label": "停止"+ },+ "placeholder": {+ "listening": "正在聆聽……",+ "submitting": "正在轉寫語音",+ "refining": "正在潤飾語音",+ "default": "繼續聊一聊…"+ },+ "guidance": {+ "sending": "訊息正在寫入電腦端佇列,完成前請勿重複傳送。",+ "queueBusy": "正在同步佇列操作,完成後會重新整理佇列狀態。",+ "listeningWithDraft": "點擊傳送會結束語音並傳送目前文字;點擊輸入框會結束語音並開啟鍵盤。",+ "listening": "正在聆聽;點擊傳送會結束語音並傳送辨識出的文字,點擊輸入框可結束語音並開啟鍵盤。",+ "submitting": "正在轉寫語音,輸入框會暫時鎖定。",+ "refining": "正在潤飾語音,完成後會更新輸入框。",+ "attachmentBusy": "正在檢查或上傳附件,完成後會出現在附件清單。",+ "attachmentsWithText": "將傳送 {{count}} 個附件和輸入框中的文字。",+ "attachmentsOnly": "將只傳送 {{count}} 個附件,也可以補充說明後再傳送。",+ "attachmentPickerOpen": "可以新增手機上的照片、截圖或檔案。",+ "draft": "點擊傳送後會進入電腦端佇列,並依目前任務設定執行。",+ "quotesOnly": "將傳送 {{count}} 處引用,也可以補充說明後再傳送。",+ "canStop": "電腦端正在執行;可繼續排入輸入內容,或點擊停止並保留目前佇列。",+ "empty": "輸入文字開始,使用 / 呼叫命令,使用 @ 引用專案資源。"+ },+ "status": {+ "sending": "正在傳送到電腦端",+ "queueBusy": "正在處理佇列操作",+ "attachmentBusy": "正在處理附件",+ "ready": "就緒"+ },+ "operation": {+ "sessionSyncing": "目前任務尚未完成同步。",+ "pendingInteraction": "請先處理電腦端的待處理請求,才能繼續輸入。"+ }+ },+ "overview": {+ "unavailable": "無法使用",+ "pendingCount": "待處理 {{count}}",+ "readOnly": "唯讀",+ "queuePaused": "佇列已暫停",+ "status": { "active": "作用中", "archived": "已封存", "deleted": "已刪除" },+ "actions": {+ "settings": { "label": "設定", "a11y": "開啟任務設定" },+ "usage": { "label": "用量", "a11y": "查看任務用量" },+ "files": { "label": "檔案", "a11y": "瀏覽遠端檔案" },+ "queue": { "label": "佇列", "a11y": "開啟佇列面板" },+ "search": { "label": "搜尋", "openA11y": "搜尋訊息", "closeA11y": "關閉訊息搜尋" }+ },+ "disabled": {+ "files": "這個任務沒有遠端工作目錄,無法瀏覽檔案。",+ "search": "目前沒有可搜尋的訊息。",+ "queueUnavailable": "受控電腦暫時無法使用,重新同步後再查看佇列。",+ "queuePending": "請先處理待處理請求,完成後佇列面板會恢復。",+ "queuePausedEmpty": "佇列已暫停,但目前沒有可繼續的佇列訊息。",+ "queueEmpty": "目前沒有佇列訊息。",+ "queueDefault": "目前狀態無法開啟佇列面板。"+ },+ "actionCopy": {+ "pending": "請先處理待處理請求,完成後輸入區會恢復。",+ "archived": "任務已封存,還原後才能繼續傳送。",+ "deleted": "任務已刪除,無法繼續操作。",+ "queuePaused": "佇列已暫停,可在佇列面板繼續執行。"+ }+ },+ "controls": {+ "spend": {+ "title": "任務用量",+ "unavailable": "暫無任務用量",+ "taskCost": "本任務 {{cost}}",+ "contextWithLimit": "上下文 {{used}} / {{total}} · {{percentage}}",+ "context": "上下文 {{used}} tokens"+ },+ "context": {+ "title": "上下文用量",+ "unavailable": "暫無上下文資料"+ },+ "rateLimit": {+ "plan": "方案",+ "remaining": "剩餘 {{percent}}",+ "used": "已用 {{percent}}",+ "resetsAt": "{{time}} 重設",+ "status": "狀態",+ "reached": "已觸發帳號限額",+ "account": "帳號",+ "availableResets": "可用重設",+ "resetCount": "{{count}} 次",+ "earliestExpiry": "最早過期",+ "window": {+ "default": "限額",+ "days": "{{count}}天",+ "week": "週"+ }+ }+ }+ },"screen": {"thinking": "思考中…","tokenCount": "{{tokens}} tok",diff --git a/apps/mobile/src/i18n/presentationLocalizer.ts b/apps/mobile/src/i18n/presentationLocalizer.tsnew file mode 100644index 0000000000..06d6649c5b--- /dev/null+++ b/apps/mobile/src/i18n/presentationLocalizer.ts@@ -0,0 +1,17 @@+import { i18n } from '@/i18n';+import type {+ PresentationLocalizer,+ PresentationTranslator,+} from '@cindy/maker-shared/presentation-localization';++export const mobilePresentationTranslate: PresentationTranslator = (key, fallback, values) =>+ i18n.t(key, { defaultValue: fallback, ...values });++export const mobilePresentationLocalizer: PresentationLocalizer = {+ translate: mobilePresentationTranslate,+ formatDate: (date) => new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language).format(date),+ formatTime: (date) => new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language, {+ hour: '2-digit',+ minute: '2-digit',+ }).format(date),+};diff --git a/apps/mobile/src/session/InlineQuoteChip.tsx b/apps/mobile/src/session/InlineQuoteChip.tsxindex 7b51c232b8..21eff9977c 100644--- a/apps/mobile/src/session/InlineQuoteChip.tsx+++ b/apps/mobile/src/session/InlineQuoteChip.tsx@@ -1,4 +1,5 @@import { Alert } from 'react-native';+import { useTranslation } from 'react-i18next';import { MessageSquareQuote } from 'lucide-react-native';import { quoteSourceDisplayLabel, type ChatQuote } from '@cindy/maker-shared/chat-quotes';import { InlineReferenceChip } from '@/session/InlineReferenceChip';@@ -13,6 +14,7 @@ export function InlineQuoteChip({interactive?: boolean;quote: ChatQuote;}) {+ const { t } = useTranslation();const { colors } = useTheme();const source = quoteSourceDisplayLabel(quote);const label = compactQuoteLabel(quote.text);@@ -22,7 +24,10 @@ export function InlineQuoteChip({icon={<MessageSquareQuote color={colors.textSecondary} size={iconSize.sm} strokeWidth={iconStroke.regular} />}label={label}onPress={interactive- ? () => Alert.alert('引用', [`“${quote.text}”`, source].filter(Boolean).join('\n\n'))+ ? () => Alert.alert(+ t('message.quote.previewTitle'),+ [`“${quote.text}”`, source].filter(Boolean).join('\n\n'),+ ): undefined}testID="message.quoteChip"/>diff --git a/apps/mobile/src/session/InteractionPanel.tsx b/apps/mobile/src/session/InteractionPanel.tsxindex 126932f040..54d4a9d5b3 100644--- a/apps/mobile/src/session/InteractionPanel.tsx+++ b/apps/mobile/src/session/InteractionPanel.tsx@@ -1,5 +1,6 @@import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react';import { useTranslation } from 'react-i18next';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';import {Check,CornerDownLeft,@@ -172,7 +173,7 @@ export function InteractionPanel({const queuePresentation = buildPendingInteractionQueuePresentation(sortedInteractions, {maxVisible: sortedInteractions.length || 1,readOnly: !!readOnlyReason,- });+ }, mobilePresentationLocalizer);const activeRequestIdForPresentation = readRequestId(activeInteraction);const selectedQueueItem = queuePresentation.items.find((item) => item.requestId === activeRequestIdForPresentation)?? queuePresentation.active;@@ -597,7 +598,10 @@ function PermissionCard({}) {const styles = useThemedStyles(makeStyles);const { t } = useTranslation();- const presentation = useMemo(() => buildPermissionReviewPresentation(item.request), [item.request]);+ const presentation = useMemo(+ () => buildPermissionReviewPresentation(item.request, mobilePresentationLocalizer),+ [item.request],+ );const suggestions = sessionScopedPermissionSuggestions(item.request.suggestions);const requestId = readRequestId(item);const [armedDecision, setArmedDecision] = useState<'allow-once' | 'always-allow' | null>(null);@@ -752,7 +756,7 @@ function AskUserQuestionCard({const presentation = useMemo(() => buildAskQuestionReviewPresentation({currentIndex,questions,- }), [currentIndex, questions]);+ }, mobilePresentationLocalizer), [currentIndex, questions]);const current = presentation.current;useEffect(() => {@@ -1099,7 +1103,7 @@ function PlanReviewCard({filePath,maxOutlineItems: 8,plan: planText,- }), [filePath, originalPlan, planText]);+ }, mobilePresentationLocalizer), [filePath, originalPlan, planText]);const isEdit = viewerState === 'edit';const isMinimized = viewerState === 'minimized';const expandedPlan = viewerState === 'expanded' || viewerState === 'edit';@@ -1608,7 +1612,7 @@ function ResolveButton({invalidReason,label,requestId,- });+ }, mobilePresentationLocalizer);const buttonStyle = variant === 'primary'? styles.primaryButton: variant === 'secondary'diff --git a/apps/mobile/src/session/MessageActionSheet.tsx b/apps/mobile/src/session/MessageActionSheet.tsxindex 0007c11a13..e9e189bd78 100644--- a/apps/mobile/src/session/MessageActionSheet.tsx+++ b/apps/mobile/src/session/MessageActionSheet.tsx@@ -1,5 +1,6 @@import { useCallback, useEffect, useRef } from 'react';import { Pressable, StyleSheet, View } from 'react-native';+import { useTranslation } from 'react-i18next';import {Link2,MessageSquarePlus,@@ -35,6 +36,7 @@ export function MessageActionSheet({onClose(): void;visible: boolean;}) {+ const { t } = useTranslation();const styles = useThemedStyles(makeStyles);const { colors } = useTheme();const insets = useSafeAreaInsets();@@ -101,14 +103,14 @@ export function MessageActionSheet({})}</View><Pressable- accessibilityLabel="取消"+ accessibilityLabel={t('session.common.cancel')}accessibilityRole="button"onPress={closeWithoutAction}style={({ pressed }) => [styles.cancelCard, pressed && styles.pressed]}testID="message.actions.cancel"><BlurBackdrop intensity={32} overlayColor={colors.sheetActionSurface} />- <Text style={styles.cancelText}>取消</Text>+ <Text style={styles.cancelText}>{t('session.common.cancel')}</Text></Pressable></View></SheetModal>diff --git a/apps/mobile/src/session/MessageRenderer.tsx b/apps/mobile/src/session/MessageRenderer.tsxindex 500d88e205..4e0acbbe09 100644--- a/apps/mobile/src/session/MessageRenderer.tsx+++ b/apps/mobile/src/session/MessageRenderer.tsx@@ -6173,11 +6173,12 @@ function MessageMoreButton({iconSize: number;onPress(): void;}) {+ const { t } = useTranslation();const { colors } = useTheme();const styles = useThemedStyles(makeStyles);return (<Pressable- accessibilityLabel="更多消息操作"+ accessibilityLabel={t('message.renderer.moreActions')}accessibilityRole="button"accessibilityState={{ disabled: disabled === true }}disabled={disabled}diff --git a/apps/mobile/src/session/SessionMenuSheet.tsx b/apps/mobile/src/session/SessionMenuSheet.tsxindex 6ad90b8019..f55e81d386 100644--- a/apps/mobile/src/session/SessionMenuSheet.tsx+++ b/apps/mobile/src/session/SessionMenuSheet.tsx@@ -41,6 +41,7 @@ import {} from 'react-native';import { useSafeAreaInsets } from 'react-native-safe-area-context';import { useTranslation } from 'react-i18next';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';import { Text, TextInput } from '@/components/AppText';import { MainWindowActionGroup } from '@/components/MobilePrimitives';import type { RemoteDirectoryEntry } from '@/device-link/mobileMakerTransport';@@ -426,8 +427,8 @@ export function SessionMenuSheet({onSetExtraDirs(removeSessionExtraDir(session.extraDirs, path));}, [onSetExtraDirs, session.extraDirs]);- const spend = summarizeSessionSpend(session);- const usage = summarizeContextUsage(contextUsage);+ const spend = summarizeSessionSpend(session, mobilePresentationLocalizer);+ const usage = summarizeContextUsage(contextUsage, mobilePresentationLocalizer);// 账号限额行:窗口构成完全跟随被控端上游接口返回(不假设 5h/周),解析不出内容 → null 不渲染。// 陈旧判定依赖当前时间: 重开面板要重算, 面板长开跨过失效时刻也要重算// (与 desktop 的定时重选同口径; review 反馈)。@@ -461,11 +462,11 @@ export function SessionMenuSheet({modelId: session.model,nowMs: now,});- return summarizeAccountRateLimits(scoped, now);+ return summarizeAccountRateLimits(scoped, now, mobilePresentationLocalizer);// visible / quotaStaleTick 进依赖: 重开与到点失效都要按当前时间重选。}, [accountUsage, quotaBucketTables, session.model, visible, quotaStaleTick]);const resetSummary = useMemo(- () => summarizeCodexRateLimitReset(codexRateLimits, Date.now()),+ () => summarizeCodexRateLimitReset(codexRateLimits, Date.now(), mobilePresentationLocalizer),[codexRateLimits],);const workspace = buildSessionInfoWorkspace(session);diff --git a/apps/mobile/src/session/collaboration.ts b/apps/mobile/src/session/collaboration.tsindex c2f34476d8..a8a32dbe55 100644--- a/apps/mobile/src/session/collaboration.ts+++ b/apps/mobile/src/session/collaboration.ts@@ -1,7 +1,39 @@-export {+import { i18n } from '@/i18n';+import {isCollaborationSession,- sessionCollaborationComposerReadOnlyReason,- sessionCollaborationLabel,- sessionCollaborationNotice,- sessionCollaborationReadOnlyReason,+ type SessionCollaborationLike,} from '@cindy/maker-shared/session-identity';++export { isCollaborationSession };++export function sessionCollaborationLabel(session: SessionCollaborationLike): string | null {+ if (session.orcaRole === 'lead') return i18n.t('session.presentation.collaboration.labelLead');+ if (session.orcaRole === 'worker') return i18n.t('session.presentation.collaboration.labelWorker');+ return typeof session.orcaRole === 'string' && session.orcaRole.trim()+ ? i18n.t('session.presentation.collaboration.labelRole', { role: session.orcaRole.trim() })+ : null;+}++export function sessionCollaborationNotice(session: SessionCollaborationLike | null): string | null {+ if (!session) return null;+ if (session.orcaRole === 'lead') return i18n.t('session.presentation.collaboration.noticeLead');+ if (session.orcaRole === 'worker') return i18n.t('session.presentation.collaboration.noticeWorker');+ return isCollaborationSession(session)+ ? i18n.t('session.presentation.collaboration.noticeOther')+ : null;+}++export function sessionCollaborationReadOnlyReason(+ session: SessionCollaborationLike | null,+): string | null {+ return isCollaborationSession(session)+ ? i18n.t('session.presentation.collaboration.readOnlyReason')+ : null;+}++export function sessionCollaborationComposerReadOnlyReason(+ session: SessionCollaborationLike | null,+): string | null {+ if (!isCollaborationSession(session) || session?.orcaRole === 'lead') return null;+ return i18n.t('session.presentation.collaboration.composerReadOnlyReason');+}diff --git a/apps/mobile/src/session/fileBrowserGrid.ts b/apps/mobile/src/session/fileBrowserGrid.tsindex e70ebd8fc2..9ce0073d4e 100644--- a/apps/mobile/src/session/fileBrowserGrid.ts+++ b/apps/mobile/src/session/fileBrowserGrid.ts@@ -1 +1,82 @@-export * from '@cindy/maker-shared/file-browser-grid';+import { i18n } from '@/i18n';+import {+ buildFileBrowserGridItems as buildFileBrowserGridItemsShared,+ buildWorkdirPathLevels as buildWorkdirPathLevelsShared,+ type FileBrowserRemoteOpEntry,+ type FileBrowserSortMode,+} from '@cindy/maker-shared/file-browser-grid';++export {+ fileThumbKind,+ filterFileNameMatches,+ joinRelPath,+ normalizeRemoteOpDirEntries,+ parentRelPath,+ type FileBrowserGridItem,+ type FileBrowserNameMatch,+ type FileBrowserPathLevel,+ type FileBrowserRemoteOpEntry,+ type FileBrowserSortMode,+ type FileBrowserViewMode,+} from '@cindy/maker-shared/file-browser-grid';++export function formatFileBrowserDate(mtimeMs: number, nowMs: number): string {+ if (!mtimeMs) return '';+ const date = new Date(mtimeMs);+ const now = new Date(nowMs);+ const dayStart = (value: Date) => new Date(value.getFullYear(), value.getMonth(), value.getDate()).getTime();+ const diffDays = Math.round((dayStart(now) - dayStart(date)) / 86_400_000);+ const time = new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language, {+ hour: '2-digit',+ minute: '2-digit',+ }).format(date);+ if (diffDays === 0) return i18n.t('files.presentation.grid.today', { time });+ if (diffDays === 1) return i18n.t('files.presentation.grid.yesterday', { time });+ return new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language, {+ day: 'numeric',+ month: 'short',+ ...(date.getFullYear() === now.getFullYear() ? {} : { year: 'numeric' as const }),+ }).format(date);+}++export function buildFileBrowserGridItems(+ entries: readonly FileBrowserRemoteOpEntry[],+ sort: FileBrowserSortMode,+ nowMs: number,+) {+ return buildFileBrowserGridItemsShared(entries, sort, nowMs).map((item) => ({+ ...item,+ metaLabel: item.kind === 'dir'+ ? formatFileBrowserDate(item.mtimeMs, nowMs)+ : [formatByteSize(item.sizeBytes), formatFileBrowserDate(item.mtimeMs, nowMs)].filter(Boolean).join(' · '),+ }));+}++export function summarizeFileBrowserGrid(items: readonly { kind: 'dir' | 'file' }[]): string {+ const dirs = items.filter((item) => item.kind === 'dir').length;+ const files = items.length - dirs;+ if (items.length === 0) return i18n.t('files.presentation.grid.empty');+ if (dirs > 0 && files > 0) return i18n.t('files.presentation.grid.summaryMixed', { dirs, files });+ return dirs > 0+ ? i18n.t('files.presentation.grid.summaryDirs', { count: dirs })+ : i18n.t('files.presentation.grid.summaryFiles', { count: files });+}++export function buildWorkdirPathLevels(workdirPath: string, relPath: string) {+ const levels = buildWorkdirPathLevelsShared(workdirPath, relPath);+ if (!workdirPath && levels.length > 0) {+ levels[levels.length - 1] = {+ ...levels[levels.length - 1],+ label: i18n.t('files.presentation.grid.workdir'),+ };+ }+ return levels;+}++function formatByteSize(bytes: number): string {+ if (!Number.isFinite(bytes) || bytes <= 0) return '';+ if (bytes < 1024) return `${bytes} B`;+ if (bytes < 1024 * 1024) return `${(bytes / 1024).toFixed(1)} KB`;+ if (bytes < 1024 * 1024 * 1024) return `${(bytes / 1024 / 1024).toFixed(1)} MB`;+ return `${(bytes / 1024 / 1024 / 1024).toFixed(1)} GB`;+}diff --git a/apps/mobile/src/session/filePreview.ts b/apps/mobile/src/session/filePreview.tsindex 2505fd45ca..fb9ad61ff0 100644--- a/apps/mobile/src/session/filePreview.ts+++ b/apps/mobile/src/session/filePreview.ts@@ -1 +1,56 @@-export * from '@cindy/maker-shared/file-preview';+import { i18n } from '@/i18n';+import {+ formatByteSize,+ type RemoteFilePreviewKind,+ type RemoteTextFilePreviewResultLike,+ type TextFilePreviewState,+} from '@cindy/maker-shared/file-preview';++export {+ basenameRemotePath,+ extractRemoteFileExt,+ formatByteSize,+ isHtmlFilePreviewCandidate,+ isTextFilePreviewCandidate,+ remoteFilePreviewKind,+ type RemoteFilePreviewKind,+ type RemoteTextFilePreviewResultLike,+ type TextFilePreviewState,+} from '@cindy/maker-shared/file-preview';++export function nonTextFilePreviewStatusText(kind: RemoteFilePreviewKind): string {+ return i18n.t(`files.presentation.preview.nonText.${kind}`);+}++export function textPreviewStatusText(+ state: TextFilePreviewState,+ canPreview: boolean,+ kind: RemoteFilePreviewKind = 'text',+): string {+ if (kind !== 'text') return nonTextFilePreviewStatusText(kind);+ if (!canPreview) return i18n.t('files.presentation.preview.pathOnly');+ if (state.status === 'loading') return i18n.t('files.presentation.preview.loading');+ if (state.status === 'ready') {+ return i18n.t('files.presentation.preview.ready', { size: formatByteSize(state.size) });+ }+ if (state.status === 'unavailable') return state.message;+ return i18n.t('files.presentation.preview.idle');+}++export function describeTextPreviewFailure(result: RemoteTextFilePreviewResultLike): string {+ const size = formatByteSize(result.size);+ if (result.reason === 'oversize') {+ return i18n.t('files.presentation.preview.failure.oversize', {+ limit: result.limitMb ? `${result.limitMb} MB` : '',+ size,+ });+ }+ if (result.reason === 'forbidden') return i18n.t('files.presentation.preview.failure.forbidden');+ if (result.reason === 'not_found') return i18n.t('files.presentation.preview.failure.notFound');+ if (result.reason === 'read_failed') {+ return result.error+ ? i18n.t('files.presentation.preview.failure.readFailedWithError', { error: result.error })+ : i18n.t('files.presentation.preview.failure.readFailed');+ }+ return result.error || i18n.t('files.presentation.preview.failure.default');+}diff --git a/apps/mobile/src/session/inputProjection.ts b/apps/mobile/src/session/inputProjection.tsindex f7c0802f98..5d2cd70228 100644--- a/apps/mobile/src/session/inputProjection.ts+++ b/apps/mobile/src/session/inputProjection.ts@@ -21,18 +21,42 @@ import {readSentPastedTextRanges,readSentSlashCommandRanges,} from '@/session/sentMessageAtoms';+import {+ buildQueuePanelSummary as buildQueuePanelSummaryShared,+ buildQueueRowPresentation as buildQueueRowPresentationShared,+ type QueuePanelSummary,+ type QueueRowPresentation,+} from '@cindy/maker-shared/queue';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';export {- buildQueuePanelSummary,- buildQueueRowPresentation,isOrcaQueueItem,queueMoveTargetIndex,stopOptionsForProjection,- type QueuePanelSummary,type QueueRowActionId,type QueueRowActionPresentation,- type QueueRowPresentation,} from '@cindy/maker-shared/queue';+export type { QueuePanelSummary, QueueRowPresentation };++export function buildQueuePanelSummary(+ projection: Parameters<typeof buildQueuePanelSummaryShared>[0],+ readOnlyReason?: Parameters<typeof buildQueuePanelSummaryShared>[1],+ collapsedVisibleRows?: Parameters<typeof buildQueuePanelSummaryShared>[2],+): QueuePanelSummary {+ return buildQueuePanelSummaryShared(+ projection,+ readOnlyReason,+ collapsedVisibleRows,+ mobilePresentationLocalizer,+ );+}++export function buildQueueRowPresentation(+ input: Parameters<typeof buildQueueRowPresentationShared>[0],+): QueueRowPresentation {+ return buildQueueRowPresentationShared(input, mobilePresentationLocalizer);+}+export const EMPTY_INPUT_PROJECTION: InputProjection = Object.freeze({sessionId: '',pendingQueue: [],diff --git a/apps/mobile/src/session/messagePayload.ts b/apps/mobile/src/session/messagePayload.tsindex 4e61cfbfcc..262e879870 100644--- a/apps/mobile/src/session/messagePayload.ts+++ b/apps/mobile/src/session/messagePayload.ts@@ -7,23 +7,23 @@ import type {import {buildAttachmentPayload as buildSharedAttachmentPayload,buildDiffPayload as buildSharedDiffPayload,- buildFilePayload,+ buildFilePayload as buildSharedFilePayload,buildMediaPayload as buildSharedMediaPayload,- buildMermaidPayload,+ buildMermaidPayload as buildSharedMermaidPayload,buildPayloadToolDiff,buildTextPayload,extractPayloadToolResultMedia,formatPayloadToolUseSummary,- formatDiffPayload,- formatDiffPayloadRows,- formatDiffPayloadView,- formatMediaActionNotice,+ formatDiffPayload as formatSharedDiffPayload,+ formatDiffPayloadRows as formatSharedDiffPayloadRows,+ formatDiffPayloadView as formatSharedDiffPayloadView,+ formatMediaActionNotice as formatSharedMediaActionNotice,isPayloadDesktopLocalMediaUrl,isPayloadDirectPreviewableUrl,- payloadMediaKindLabel,- summarizeMessagePayloadBody,- summarizeMessagePayloadPreview,- summarizeMessagePayload,+ payloadMediaKindLabel as sharedPayloadMediaKindLabel,+ summarizeMessagePayloadBody as summarizeSharedMessagePayloadBody,+ summarizeMessagePayloadPreview as summarizeSharedMessagePayloadPreview,+ summarizeMessagePayload as summarizeSharedMessagePayload,type FormattedDiffPayloadLine,type FormattedDiffPayloadRow,type FormattedDiffPayloadRowKind,@@ -39,26 +39,17 @@ import {type SharedMessagePayload,} from '@cindy/maker-shared/payload-summary';import { i18n } from '@/i18n';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';export type MessagePayload = SharedMessagePayload<NormalizedToolDiff, NormalizedToolMedia>;export {- buildFilePayload,- buildMermaidPayload,buildPayloadToolDiff,buildTextPayload,extractPayloadToolResultMedia,- formatDiffPayload,- formatDiffPayloadRows,- formatDiffPayloadView,- formatMediaActionNotice,formatPayloadToolUseSummary,isPayloadDesktopLocalMediaUrl,isPayloadDirectPreviewableUrl,- payloadMediaKindLabel,- summarizeMessagePayloadBody,- summarizeMessagePayloadPreview,- summarizeMessagePayload,type FormattedDiffPayloadLine,type FormattedDiffPayloadRow,type FormattedDiffPayloadRowKind,@@ -79,16 +70,59 @@ export function buildToolResultPayload(tool: NormalizedRemoteMessage): MessagePa}export function buildDiffPayload(diff: NormalizedToolDiff): MessagePayload {- return buildSharedDiffPayload(diff);+ return buildSharedDiffPayload(diff, mobilePresentationLocalizer);}export function buildMediaPayload(media: NormalizedToolMedia,label: string,): Extract<MessagePayload, { kind: 'media' }> {- return buildSharedMediaPayload(media, label);+ return buildSharedMediaPayload(media, label, mobilePresentationLocalizer);}export function buildAttachmentPayload(attachment: NormalizedAttachment): MessagePayload {- return buildSharedAttachmentPayload(attachment);+ return buildSharedAttachmentPayload(attachment, mobilePresentationLocalizer);+}++export function buildFilePayload(title: string, sourcePath: string): Extract<MessagePayload, { kind: 'file' }> {+ return buildSharedFilePayload(title, sourcePath, mobilePresentationLocalizer);+}++export function buildMermaidPayload(source: string): Extract<MessagePayload, { kind: 'mermaid' }> {+ return buildSharedMermaidPayload(source, mobilePresentationLocalizer);+}++export function summarizeMessagePayload(payload: MessagePayload): MessagePayloadSummary {+ return summarizeSharedMessagePayload(payload, mobilePresentationLocalizer);+}++export function summarizeMessagePayloadBody(payload: MessagePayload): MessagePayloadBodyPresentation {+ return summarizeSharedMessagePayloadBody(payload, mobilePresentationLocalizer);+}++export function summarizeMessagePayloadPreview(+ payload: MessagePayload,+ options: MessagePayloadPreviewOptions = {},+): MessagePayloadPreview {+ return summarizeSharedMessagePayloadPreview(payload, options, mobilePresentationLocalizer);+}++export function payloadMediaKindLabel(kind: NormalizedToolMedia['kind']): string {+ return sharedPayloadMediaKindLabel(kind, mobilePresentationLocalizer);+}++export function formatDiffPayload(diff: NormalizedToolDiff): string {+ return formatSharedDiffPayload(diff, mobilePresentationLocalizer);+}++export function formatDiffPayloadRows(diff: NormalizedToolDiff): FormattedDiffPayloadRow[] {+ return formatSharedDiffPayloadRows(diff, mobilePresentationLocalizer);+}++export function formatDiffPayloadView(diff: NormalizedToolDiff): FormattedDiffPayloadView {+ return formatSharedDiffPayloadView(diff, mobilePresentationLocalizer);+}++export function formatMediaActionNotice(media: NormalizedToolMedia): string {+ return formatSharedMediaActionNotice(media, mobilePresentationLocalizer);}diff --git a/apps/mobile/src/session/mobileHome.ts b/apps/mobile/src/session/mobileHome.tsindex c9f1164b0d..3d4bed0be4 100644--- a/apps/mobile/src/session/mobileHome.ts+++ b/apps/mobile/src/session/mobileHome.ts@@ -1,7 +1,89 @@import type { RemoteSession } from '@/session/types';+import { i18n } from '@/i18n';+import { localizeRemoteSessionListItem } from '@/session/sessionList';+import {+ buildMobileHomePresentation as buildMobileHomePresentationShared,+ type MobileHomeNoDeviceContext,+ type MobileHomeOptions,+ type MobileHomePresentation,+} from '@cindy/maker-shared/mobile-home';export * from '@cindy/maker-shared/mobile-home';+export function buildMobileHomePresentation(options: MobileHomeOptions): MobileHomePresentation {+ const now = options.now ?? Date.now();+ const base = buildMobileHomePresentationShared(options);+ const deviceFilters = base.deviceFilters.map((filter) => ({+ ...filter,+ label: filter.deviceId === null ? i18n.t('devices.presentation.home.allDevices') : filter.label,+ statusLabel: filter.waitingCount > 0+ ? i18n.t('devices.presentation.home.waitingCount', { count: filter.waitingCount })+ : filter.deviceId === null+ ? i18n.t('devices.presentation.home.allComputers')+ : filter.statusLabel === '已同步'+ ? i18n.t('devices.presentation.home.synced')+ : filter.statusLabel,+ }));+ const primaryDevice = base.primaryDevice+ ? deviceFilters.find((item) => item.id === base.primaryDevice?.id) ?? null+ : null;+ const empty = localizedHomeEmpty(base.emptyKind, base.emptyNoDevice);+ return {+ ...base,+ chats: base.chats.map((item) => localizeRemoteSessionListItem(item, now)),+ deviceFilters,+ emptyCopy: empty.copy,+ emptyTitle: empty.title,+ pinned: base.pinned.map((item) => localizeRemoteSessionListItem(item, now)),+ primaryDevice,+ projects: base.projects.map((project) => {+ const deviceName = project.deviceName === '未知电脑'+ ? i18n.t('devices.presentation.home.unknownComputer')+ : project.deviceName;+ const workingDir = project.workingDir;+ return {+ ...project,+ deviceName,+ sessions: project.sessions.map((item) => localizeRemoteSessionListItem(item, now)),+ subtitle: [deviceName, workingDir].filter(Boolean).join(' · '),+ title: project.title === '未分类项目'+ ? i18n.t('devices.presentation.home.uncategorizedProject')+ : project.title,+ };+ }),+ };+}++function localizedHomeEmpty(+ kind: MobileHomePresentation['emptyKind'],+ noDevice: MobileHomeNoDeviceContext | null,+): { title: string; copy: string } {+ if (kind !== 'noDevice' || !noDevice) {+ return {+ title: i18n.t(`devices.presentation.home.empty.${kind}.title`),+ copy: i18n.t(`devices.presentation.home.empty.${kind}.copy`),+ };+ }+ const names = formatDeviceNames(noDevice.devices.map((device) => device.name));+ return {+ title: i18n.t(`devices.presentation.home.noDevice.${noDevice.reason}.title`),+ copy: i18n.t(`devices.presentation.home.noDevice.${noDevice.reason}.copy`, { names }),+ };+}++function formatDeviceNames(names: readonly string[]): string {+ if (names.length === 0) return '';+ const quoted = names.map((name) => `“${name}”`);+ try {+ return new Intl.ListFormat(i18n.resolvedLanguage || i18n.language, {+ style: 'long',+ type: 'conjunction',+ }).format(quoted);+ } catch {+ return quoted.join(', ');+ }+}+/*** 手机端隐藏 Orca worker 子会话(本期不支持进 worker 子会话聊天),Lead 会话与普通会话保留。* **只在 mobile 侧过滤**——桌面仍需显示/管理 worker,绝不动共享的 sessionList 过滤逻辑。diff --git a/apps/mobile/src/session/mobileVoiceInput.ts b/apps/mobile/src/session/mobileVoiceInput.tsindex 481ed5b9fb..308d853b6e 100644--- a/apps/mobile/src/session/mobileVoiceInput.ts+++ b/apps/mobile/src/session/mobileVoiceInput.ts@@ -16,9 +16,10 @@ import type { StoredMobileVoiceCredential } from '@/session/mobileVoiceCredentiaimport type { MobileVoiceCredentialSyncDictionaryEntry as MobileVoiceDictionaryEntry } from '@cindy/maker-shared/device-link-contract';import { redactMobileVoiceCredentialText } from '@/session/mobileVoiceCredentialRedaction';import {- composerVoiceStateLabel,+ composerVoiceStateLabel as composerVoiceStateLabelShared,type ComposerVoiceState,} from '@cindy/maker-shared/session-operation';+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';export const MOBILE_MAX_VOICE_AUDIO_BYTES = 64 * 1024 * 1024;@@ -138,7 +139,7 @@ export function replaceVoiceTranscriptDraftRange(}export function mobileVoiceStateLabel(state: MobileVoiceState): string {- return composerVoiceStateLabel(state);+ return composerVoiceStateLabelShared(state, mobilePresentationLocalizer);}export function canCancelMobileVoiceRecording(state: MobileVoiceState): boolean {diff --git a/apps/mobile/src/session/newSessionCreation.ts b/apps/mobile/src/session/newSessionCreation.tsindex b3dc595f5c..b223ff11a7 100644--- a/apps/mobile/src/session/newSessionCreation.ts+++ b/apps/mobile/src/session/newSessionCreation.ts@@ -390,7 +390,7 @@ async function reconcileClaimedSessionForEdit(task: InternalTask): Promise<boolefailTask(task,'enqueue-failed',- i18n.t('session.new.firstMessageNotSent'),+ i18n.t('session.screen.firstMessageNotSent'),);return true;}diff --git a/apps/mobile/src/session/sessionComposerLayout.ts b/apps/mobile/src/session/sessionComposerLayout.tsindex c34a5285ed..8bdd597bdb 100644--- a/apps/mobile/src/session/sessionComposerLayout.ts+++ b/apps/mobile/src/session/sessionComposerLayout.ts@@ -1,6 +1,15 @@+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';+import {+ buildSessionComposerLayout as buildSessionComposerLayoutShared,+} from '@cindy/maker-shared/session-operation';+import type { SessionComposerLayoutInput } from '@cindy/maker-shared/session-operation';+export {- buildSessionComposerLayout,type SessionComposerLayout,type SessionComposerLayoutInput,type SessionComposerPrimaryAction,} from '@cindy/maker-shared/session-operation';++export function buildSessionComposerLayout(input: SessionComposerLayoutInput) {+ return buildSessionComposerLayoutShared(input, mobilePresentationLocalizer);+}diff --git a/apps/mobile/src/session/sessionList.ts b/apps/mobile/src/session/sessionList.tsindex 8fec8ce5bf..1fb76c3250 100644--- a/apps/mobile/src/session/sessionList.ts+++ b/apps/mobile/src/session/sessionList.ts@@ -1 +1,258 @@+import { i18n } from '@/i18n';+import {+ buildRemoteSessionCardPreview as buildRemoteSessionCardPreviewShared,+ buildRemoteSessionListContext as buildRemoteSessionListContextShared,+ buildRemoteSessionSections as buildRemoteSessionSectionsShared,+ type RemoteSessionListContext,+ type RemoteSessionListItem,+ type RemoteSessionListOptions,+ type RemoteSessionOverview,+ type RemoteSessionSection,+ type RemoteSessionStatusFilter,+} from '@cindy/maker-shared/session-list';+export * from '@cindy/maker-shared/session-list';++export function buildRemoteSessionSections(+ sessions: Parameters<typeof buildRemoteSessionSectionsShared>[0],+ now = Date.now(),+ options: RemoteSessionListOptions = {},+): RemoteSessionSection[] {+ return buildRemoteSessionSectionsShared(sessions, now, options).map((section) => ({+ ...section,+ title: section.key === 'pinned' ? i18n.t('devices.presentation.sessionList.section.pinned') : section.title,+ data: section.data.map((item) => localizeRemoteSessionListItem(item, now)),+ }));+}++export function remoteSessionFilterLabel(+ value: RemoteSessionStatusFilter,+ overview: RemoteSessionOverview,+ label = remoteSessionFilterBaseLabel(value),+): string {+ const count = value === 'active'+ ? overview.active+ : value === 'waiting'+ ? overview.waiting+ : value === 'automation'+ ? overview.automation+ : value === 'archived'+ ? overview.archived+ : overview.all;+ return i18n.t('devices.presentation.sessionList.filterWithCount', { label, count });+}++export function remoteSessionFilterBaseLabel(value: RemoteSessionStatusFilter): string {+ return i18n.t(`devices.detail.filter.${value}`);+}++export function remoteSessionControlsSummary(+ statusFilter: RemoteSessionStatusFilter,+ overview: RemoteSessionOverview,+): string {+ return i18n.t('devices.presentation.sessionList.controlsSummary', {+ filter: remoteSessionFilterLabel(statusFilter, overview),+ group: i18n.t('devices.detail.group.project'),+ });+}++export function buildRemoteSessionListContext(input: {+ overview: RemoteSessionOverview;+ searchQuery: string;+ sections: readonly RemoteSessionSection[];+ statusFilter: RemoteSessionStatusFilter;+}): RemoteSessionListContext {+ const base = buildRemoteSessionListContextShared(input);+ const searching = input.searchQuery.trim().length > 0;+ const result = base.resultCount > 0+ ? i18n.t(+ searching+ ? 'devices.presentation.sessionList.context.matchingTasks'+ : 'devices.presentation.sessionList.context.tasks',+ { count: base.resultCount },+ )+ : i18n.t(+ searching+ ? 'devices.presentation.sessionList.context.noMatchingTasks'+ : 'devices.presentation.sessionList.context.noResults',+ );+ const rows = base.rowCount > 0 && base.rowCount !== base.resultCount+ ? i18n.t('devices.presentation.sessionList.context.rows', { count: base.rowCount })+ : '';+ return {+ ...base,+ detail: i18n.t('devices.presentation.sessionList.context.detail', {+ result,+ rows,+ filter: remoteSessionFilterLabel(input.statusFilter, input.overview),+ group: i18n.t('devices.detail.group.project'),+ }),+ hint: sessionListHint(input.statusFilter, searching),+ title: searching+ ? i18n.t('devices.presentation.sessionList.context.searchResults')+ : i18n.t(`devices.presentation.sessionList.context.title.${input.statusFilter}`),+ };+}++export function deviceSessionEmptyState(+ statusFilter: RemoteSessionStatusFilter,+ searchQuery: string,+): { title: string; copy: string } {+ const kind = searchQuery.trim()+ ? 'search'+ : statusFilter === 'waiting'+ ? 'waiting'+ : statusFilter === 'automation'+ ? 'automation'+ : statusFilter === 'archived'+ ? 'archived'+ : 'active';+ return {+ title: i18n.t(`devices.presentation.sessionList.empty.${kind}.title`),+ copy: i18n.t(`devices.presentation.sessionList.empty.${kind}.copy`),+ };+}++export function buildRemoteSessionCardPreview(+ item: RemoteSessionListItem,+ options: { running?: boolean } = {},+): string | null {+ const preview = buildRemoteSessionCardPreviewShared(item, options);+ const key = preview === '等待授权'+ ? 'permission'+ : preview === '等待计划审阅'+ ? 'planReview'+ : preview === '等待你的回复'+ ? 'answer'+ : preview === '等待你处理'+ ? 'attention'+ : preview === '自动化执行中'+ ? 'automationRunning'+ : preview === '运行中'+ ? 'running'+ : null;+ return key ? i18n.t(`devices.presentation.sessionList.preview.${key}`) : preview;+}++export function formatRemoteSessionSidebarTime(iso: string | undefined, now = Date.now()): string {+ if (!iso) return '';+ const ts = Date.parse(iso);+ if (!Number.isFinite(ts)) return '';+ const diffMs = Math.max(0, now - ts);+ const minute = 60_000;+ const hour = 60 * minute;+ const day = 24 * hour;+ const week = 7 * day;+ const month = 30 * day;+ const year = 365 * day;+ if (diffMs < minute) return i18n.t('devices.presentation.sessionList.time.justNow');+ if (diffMs < hour) return i18n.t('devices.presentation.sessionList.time.minutes', { count: Math.max(1, Math.floor(diffMs / minute)) });+ if (diffMs < day) return i18n.t('devices.presentation.sessionList.time.hours', { count: Math.max(1, Math.floor(diffMs / hour)) });+ if (diffMs < week) return i18n.t('devices.presentation.sessionList.time.days', { count: Math.max(1, Math.floor(diffMs / day)) });+ if (diffMs < month) return i18n.t('devices.presentation.sessionList.time.weeks', { count: Math.max(1, Math.floor(diffMs / week)) });+ if (diffMs < year) return i18n.t('devices.presentation.sessionList.time.months', { count: Math.max(1, Math.floor(diffMs / month)) });+ return i18n.t('devices.presentation.sessionList.time.years', { count: Math.max(1, Math.floor(diffMs / year)) });+}++export function localizeRemoteSessionListItem(+ item: RemoteSessionListItem,+ now = Date.now(),+): RemoteSessionListItem {+ const collaboration = collaborationLabel(item.session.orcaRole);+ const agent = item.session.agentKind === 'codex'+ ? 'Codex'+ : item.session.agentKind === 'pi'+ ? 'Pi'+ : 'Claude Code';+ const localizedItems = item.automationGroup?.items.map((member) => localizeRemoteSessionListItem(member, now));+ const localizedChildren = localizedItems?.map((member) => ({+ sessionId: member.session.id,+ title: member.title,+ subtitle: member.subtitle,+ detail: member.detail,+ pendingInteractionCount: member.pendingInteractionCount,+ running: !!member.scheduleInfo?.running,+ unreadCount: member.scheduleInfo?.unreadCount ?? 0,+ }));+ const isGroup = !!item.automationGroup;+ const sessionCount = item.automationGroup?.sessionCount ?? 1;+ const subtitle = isGroup+ ? [+ i18n.t('devices.presentation.sessionList.automation'),+ i18n.t('devices.presentation.sessionList.sessionCount', { count: sessionCount }),+ item.worktreeLabel,+ agent,+ item.session.model,+ ]+ : [+ collaboration,+ item.worktreeLabel,+ agent,+ item.session.model,+ isDialogue(item.session) ? i18n.t('devices.list.a11y.dialogue') : null,+ ];+ const detail = [+ ...(isGroup+ ? [i18n.t('devices.presentation.sessionList.sessionCount', { count: sessionCount })]+ : [sessionStatusLabel(item.session.status)]),+ relativeActivity(item.lastActivityAt, now),+ item.scheduleInfo?.running ? i18n.t('devices.presentation.sessionList.preview.automationRunning') : null,+ item.scheduleInfo && item.scheduleInfo.unreadCount > 0+ ? i18n.t('devices.detail.badge.unread', { count: item.scheduleInfo.unreadCount })+ : null,+ item.pendingInteractionCount > 0+ ? i18n.t('devices.detail.badge.waiting', { count: item.pendingInteractionCount })+ : null,+ !isGroup && typeof item.session._count?.messages === 'number'+ ? i18n.t('devices.presentation.sessionList.messageCount', { count: item.session._count.messages })+ : null,+ ].filter(Boolean).join(' · ');+ return {+ ...item,+ subtitle: subtitle.filter(Boolean).join(' · '),+ detail,+ automationGroup: item.automationGroup+ ? {+ ...item.automationGroup,+ items: localizedItems ?? [],+ children: localizedChildren ?? [],+ }+ : undefined,+ };+}++function sessionStatusLabel(status: string): string {+ if (status === 'active') return i18n.t('devices.detail.filter.active');+ if (status === 'archived') return i18n.t('devices.presentation.sessionList.status.archived');+ return i18n.t('devices.presentation.sessionList.status.deleted');+}++function collaborationLabel(role: string | null | undefined): string | null {+ if (role === 'lead') return i18n.t('session.presentation.collaboration.labelLead');+ if (role === 'worker') return i18n.t('session.presentation.collaboration.labelWorker');+ return role?.trim()+ ? i18n.t('session.presentation.collaboration.labelRole', { role: role.trim() })+ : null;+}++function isDialogue(session: RemoteSessionListItem['session']): boolean {+ return session.workspaceKind === 'dialogue' || !session.workingDir;+}++function relativeActivity(iso: string, now: number): string {+ const ts = Date.parse(iso);+ if (!Number.isFinite(ts)) return i18n.t('devices.presentation.sessionList.time.unknown');+ const diffMinutes = Math.max(0, Math.floor((now - ts) / 60_000));+ if (diffMinutes < 1) return i18n.t('devices.presentation.sessionList.time.justNow');+ if (diffMinutes < 60) return i18n.t('devices.presentation.sessionList.time.minutesAgo', { count: diffMinutes });+ const diffHours = Math.floor(diffMinutes / 60);+ if (diffHours < 24) return i18n.t('devices.presentation.sessionList.time.hoursAgo', { count: diffHours });+ const diffDays = Math.floor(diffHours / 24);+ if (diffDays < 7) return i18n.t('devices.presentation.sessionList.time.daysAgo', { count: diffDays });+ return new Intl.DateTimeFormat(i18n.resolvedLanguage || i18n.language).format(new Date(ts));+}++function sessionListHint(statusFilter: RemoteSessionStatusFilter, searching: boolean): string {+ if (searching) return i18n.t('devices.presentation.sessionList.context.hint.search');+ return i18n.t(`devices.presentation.sessionList.context.hint.${statusFilter}`);+}diff --git a/apps/mobile/src/session/sessionOperationLayout.ts b/apps/mobile/src/session/sessionOperationLayout.tsindex 69a3c49418..b5191aca93 100644--- a/apps/mobile/src/session/sessionOperationLayout.ts+++ b/apps/mobile/src/session/sessionOperationLayout.ts@@ -1,7 +1,11 @@+import { mobilePresentationLocalizer } from '@/i18n/presentationLocalizer';+import {+ buildSessionOperationLayout as buildSessionOperationLayoutShared,+} from '@cindy/maker-shared/session-operation';import type { SessionComposerDisabledReasonSource } from '@cindy/maker-shared/session-operation';+import type { SessionOperationLayoutInput } from '@cindy/maker-shared/session-operation';export {- buildSessionOperationLayout,type SessionComposerDisabledReasonSource,type SessionComposerSlot,type SessionMessageHistoryMode,@@ -9,6 +13,10 @@ export {type SessionOperationLayoutInput,} from '@cindy/maker-shared/session-operation';+export function buildSessionOperationLayout(input: SessionOperationLayoutInput) {+ return buildSessionOperationLayoutShared(input, mobilePresentationLocalizer);+}+/*** 共享模型自造的禁发理由 → 手机端文案 key。*diff --git a/apps/mobile/src/session/sessionOverview.ts b/apps/mobile/src/session/sessionOverview.tsindex 88ef7c725a..3040d04a6d 100644--- a/apps/mobile/src/session/sessionOverview.ts+++ b/apps/mobile/src/session/sessionOverview.ts@@ -1,9 +1,110 @@+import { i18n } from '@/i18n';+import {+ summarizeSessionOverview as summarizeSessionOverviewShared,+ type SessionActionStripInput,+ type SessionOverviewModel,+} from '@cindy/maker-shared/session-action-strip';+import { sessionWorktreeLabel } from '@cindy/maker-shared/session-identity';+import { sessionCollaborationLabel } from '@/session/collaboration';+export {- buildSessionActionStrip,- summarizeSessionOverview,type SessionActionStripAction,type SessionActionStripActionId,type SessionActionStripInput,type SessionOverviewChip,type SessionOverviewModel,} from '@cindy/maker-shared/session-action-strip';++export function buildSessionActionStrip(input: SessionActionStripInput): SessionOverviewModel {+ return summarizeSessionOverview(input);+}++export function summarizeSessionOverview(input: SessionActionStripInput): SessionOverviewModel {+ const base = summarizeSessionOverviewShared(input);+ const actionCopy = input.remoteUnavailableReason+ || (input.pendingCount > 0+ ? i18n.t('session.presentation.overview.actionCopy.pending')+ : input.readOnlyReason+ || (input.session.status === 'archived'+ ? i18n.t('session.presentation.overview.actionCopy.archived')+ : input.session.status === 'deleted'+ ? i18n.t('session.presentation.overview.actionCopy.deleted')+ : input.queuePaused+ ? i18n.t('session.presentation.overview.actionCopy.queuePaused')+ : null));+ return {+ ...base,+ actionCopy,+ actions: base.actions.map((action) => ({+ ...action,+ accessibilityLabel: action.id === 'search'+ ? i18n.t(`session.presentation.overview.actions.search.${input.searchOpen ? 'closeA11y' : 'openA11y'}`)+ : i18n.t(`session.presentation.overview.actions.${action.id}.a11y`),+ disabledReason: localizeActionDisabledReason(action.id, input),+ label: action.id === 'queue' && input.queuePaused+ ? i18n.t('session.presentation.overview.queuePaused')+ : i18n.t(`session.presentation.overview.actions.${action.id}.label`),+ })),+ attentionLabel: input.pendingCount > 0+ ? i18n.t('session.presentation.overview.pendingCount', { count: input.pendingCount })+ : input.readOnlyReason+ ? i18n.t('session.presentation.overview.readOnly')+ : input.session.status === 'archived'+ ? i18n.t('session.presentation.overview.status.archived')+ : input.queuePaused+ ? i18n.t('session.presentation.overview.queuePaused')+ : null,+ runtimeSubtitle: [+ sessionCollaborationLabel(input.session),+ sessionWorktreeLabel(input.session),+ input.session.agentKind === 'codex'+ ? 'Codex'+ : input.session.agentKind === 'pi'+ ? 'Pi'+ : 'Claude Code',+ input.session.model,+ input.session.permissionMode,+ input.session.fastMode ? 'Fast' : null,+ ].filter(Boolean).join(' · '),+ stateChips: base.stateChips.map((chip) => ({+ ...chip,+ label: chip.id === 'pending'+ ? i18n.t('session.presentation.overview.pendingCount', { count: input.pendingCount })+ : chip.id === 'remote-unavailable'+ ? i18n.t('session.presentation.overview.unavailable')+ : chip.id === 'read-only'+ ? i18n.t('session.presentation.overview.readOnly')+ : chip.id === 'queue-paused'+ ? i18n.t('session.presentation.overview.queuePaused')+ : chip.id === 'status'+ ? i18n.t(`session.presentation.overview.status.${input.session.status}`, {+ defaultValue: i18n.t('session.presentation.overview.status.active'),+ })+ : chip.label,+ })),+ };+}++function localizeActionDisabledReason(+ id: SessionOverviewModel['actions'][number]['id'],+ input: SessionActionStripInput,+): string | null {+ if (id === 'files') {+ return input.session.workingDir+ ? null+ : i18n.t('session.presentation.overview.disabled.files');+ }+ if (id === 'search') {+ return input.messageCount > 0+ ? null+ : i18n.t('session.presentation.overview.disabled.search');+ }+ if (id !== 'queue') return null;+ const queueAvailable = input.queueAvailable ?? input.queueCount > 0;+ if (queueAvailable) return null;+ if (input.remoteUnavailableReason) return i18n.t('session.presentation.overview.disabled.queueUnavailable');+ if (input.pendingCount > 0) return i18n.t('session.presentation.overview.disabled.queuePending');+ if (input.queuePaused) return i18n.t('session.presentation.overview.disabled.queuePausedEmpty');+ if (input.queueCount <= 0) return i18n.t('session.presentation.overview.disabled.queueEmpty');+ return i18n.t('session.presentation.overview.disabled.queueDefault');+}diff --git a/apps/mobile/src/session/sessionSelection.ts b/apps/mobile/src/session/sessionSelection.tsindex 8fcd57c5cd..e925ff8e36 100644--- a/apps/mobile/src/session/sessionSelection.ts+++ b/apps/mobile/src/session/sessionSelection.ts@@ -1 +1,45 @@-export * from '@cindy/maker-shared/session-selection';+import { i18n } from '@/i18n';+import type { RemoteSession } from '@/session/types';+import {+ summarizeMobileSessionBulkAction as summarizeMobileSessionBulkActionShared,+ type MobileSessionBulkAction,+} from '@cindy/maker-shared/session-selection';++export {+ isMobileSessionBulkActionAvailable,+ mobileSessionBulkActionButtonLabel,+ mobileSessionBulkPatch,+ pruneSessionSelection,+ sessionIdsForListItem,+ toggleSessionSelection,+ visibleMobileSessionBulkActions,+ visibleSessionIdsFromSections,+ type MobileSessionBulkAction,+ type MobileSessionBulkActionLayout,+ type MobileSessionBulkPatch,+ type MobileSessionBulkSummary,+ type MobileSessionWritableStatus,+} from '@cindy/maker-shared/session-selection';++export function summarizeMobileSessionBulkAction<TSession extends RemoteSession>(+ sessions: readonly TSession[],+ action: MobileSessionBulkAction,+) {+ const base = summarizeMobileSessionBulkActionShared(sessions, action);+ const actionLabel = i18n.t(`devices.presentation.bulk.action.${action}`);+ return {+ ...base,+ title: i18n.t('devices.presentation.bulk.title', {+ action: actionLabel,+ count: base.candidates.length,+ }),+ description: i18n.t(base.skippedCount > 0+ ? 'devices.presentation.bulk.descriptionWithSkipped'+ : 'devices.presentation.bulk.description', {+ action: actionLabel,+ count: base.candidates.length,+ skippedCount: base.skippedCount,+ }),+ confirmText: actionLabel,+ };+}diff --git a/apps/mobile/src/session/sessionTailBannerModel.ts b/apps/mobile/src/session/sessionTailBannerModel.tsindex ab1773eeda..7e730845ad 100644--- a/apps/mobile/src/session/sessionTailBannerModel.ts+++ b/apps/mobile/src/session/sessionTailBannerModel.ts@@ -26,7 +26,7 @@ import {messageContentToPreview,sortMessagesByCreatedAt,} from '@cindy/maker-shared/message-normalize';-import { describeAgentAuthError } from '@cindy/maker-shared/device-link-contract';+import { describeAgentAuthError } from '@/device-link/remoteStatus';import { i18n } from '@/i18n';import type { InputProjection, QueuedRemoteMessage, RemoteMessage, RemoteSession } from '@/session/types';diff --git a/packages/maker-shared/package.json b/packages/maker-shared/package.jsonindex c72050974d..e42ac72e9c 100644--- a/packages/maker-shared/package.json+++ b/packages/maker-shared/package.json@@ -44,6 +44,7 @@"./project-order-sync": "./src/projectOrderSync.ts","./path-text": "./src/pathText.ts","./permission-mode": "./src/permissionMode.ts",+ "./presentation-localization": "./src/presentationLocalization.ts","./queue": "./src/queue.ts","./schedule-delete": "./src/scheduleDelete.ts","./schedule-events": "./src/scheduleEvents.ts",diff --git a/packages/maker-shared/src/__tests__/interaction.test.ts b/packages/maker-shared/src/__tests__/interaction.test.tsindex 8c68d27f82..1d4d5ce038 100644--- a/packages/maker-shared/src/__tests__/interaction.test.ts+++ b/packages/maker-shared/src/__tests__/interaction.test.ts@@ -460,7 +460,7 @@ describe('interaction shared model', () => {});expect(buildPendingInteractionQueuePresentation(interactions, { readOnly: true }).hint)- .toBe('协作只读模式,仅展示电脑端请求。');+ .toBe('协同只读模式,仅展示电脑端请求。');expect(buildPendingInteractionQueuePresentation([])).toMatchObject({active: null,countLabel: '当前',diff --git a/packages/maker-shared/src/__tests__/payloadSummary.test.ts b/packages/maker-shared/src/__tests__/payloadSummary.test.tsindex ea44355f1f..2da665b853 100644--- a/packages/maker-shared/src/__tests__/payloadSummary.test.ts+++ b/packages/maker-shared/src/__tests__/payloadSummary.test.ts@@ -312,12 +312,12 @@ describe('payloadSummary', () => {expect(formatMediaActionNotice(media)).toBe(['桌面端为这个媒体提供了后续操作。',- '可用操作: U1 / V2',- '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',+ '可用操作:U1 / V2',+ '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',].join('\n'));const payload = buildMediaPayload(media, 'a.png');- expect(payload.body).toContain('可用操作: U1 / V2');+ expect(payload.body).toContain('可用操作:U1 / V2');expect(summarizeMessagePayload(payload)).toEqual({kind: 'media',kindLabel: 'IMAGE',diff --git a/packages/maker-shared/src/__tests__/queue.test.ts b/packages/maker-shared/src/__tests__/queue.test.tsindex f7c9ce77df..6f84a47d9e 100644--- a/packages/maker-shared/src/__tests__/queue.test.ts+++ b/packages/maker-shared/src/__tests__/queue.test.ts@@ -185,7 +185,7 @@ describe('shared queue presentation model', () => {},queueLength: 3,});- expect(busyOrca.actions.edit.disabledReason).toBe('协作消息由桌面端编排,手机端只读显示。');+ expect(busyOrca.actions.edit.disabledReason).toBe('协同消息由桌面端编排,手机端只读显示。');});it('explains steering, edit-lock, interaction-lock, and Orca row states', () => {@@ -200,7 +200,7 @@ describe('shared queue presentation model', () => {queueLength: 2,});expect(steering.title).toBe('插话发送中');- expect(steering.hint).toBe('插话正在发送到当前 turn,暂时不能编辑或移动。');+ expect(steering.hint).toBe('插话正在发送到当前 turn,暂时不能编辑或移动。');expect(steering.actions.edit.disabledReason).toBe('插话正在发送到当前 turn,等待桌面端回流后再操作。');const editLocked = buildQueueRowPresentation({@@ -213,7 +213,7 @@ describe('shared queue presentation model', () => {},queueLength: 2,});- expect(editLocked.hint).toBe('这条消息正在编辑中,桌面端会暂停自动发送。');+ expect(editLocked.hint).toBe('这条消息正在编辑中,桌面端会暂停自动发送。');expect(editLocked.actions.remove.disabledReason).toBe('这条队列消息正在编辑中,完成后再操作。');const interactionLocked = buildQueueRowPresentation({@@ -226,7 +226,7 @@ describe('shared queue presentation model', () => {},queueLength: 2,});- expect(interactionLocked.hint).toBe('队列正在被排序或其它交互锁定,暂时不能编辑。');+ expect(interactionLocked.hint).toBe('队列正在被排序或其它交互锁定,暂时不能编辑。');expect(interactionLocked.actions.steer.disabledReason).toBe('队列正在被其它操作锁定,完成后再操作。');const orca = buildQueueRowPresentation({@@ -239,9 +239,9 @@ describe('shared queue presentation model', () => {},queueLength: 2,});- expect(orca.title).toBe('协作队列 2');- expect(orca.hint).toBe('协作消息由桌面端编排,手机端只读显示。');- expect(orca.actions.steer.disabledReason).toBe('协作消息由桌面端编排,手机端只读显示。');+ expect(orca.title).toBe('协同队列 2');+ expect(orca.hint).toBe('协同消息由桌面端编排,手机端只读显示。');+ expect(orca.actions.steer.disabledReason).toBe('协同消息由桌面端编排,手机端只读显示。');});it('locks edit and steer (but keeps remove and reorder) for synthetic trigger rows', () => {diff --git a/packages/maker-shared/src/deviceList.ts b/packages/maker-shared/src/deviceList.tsindex 3fe2babf7f..a6387e528d 100644--- a/packages/maker-shared/src/deviceList.ts+++ b/packages/maker-shared/src/deviceList.ts@@ -1,3 +1,9 @@+import {+ presentationDate,+ presentationText,+ type PresentationLocalizer,+} from './presentationLocalization.js';+export type DeviceAccessState = 'ready' | 'busy' | 'offline' | 'remote_disabled' | 'access_revoked' | 'self';export interface DeviceListDeviceLike {@@ -61,9 +67,10 @@ export function toDeviceListItems<TDevice extends DeviceListDeviceLike>(devices: readonly TDevice[],now = Date.now(),revokedDevices: ReadonlySet<string> = new Set(),+ localizer?: PresentationLocalizer,): DeviceListItem<TDevice>[] {return devices- .map((device) => toDeviceListItem(device, now, revokedDevices))+ .map((device) => toDeviceListItem(device, now, revokedDevices, localizer)).filter((item) => item.state !== 'self' && !isMobilePlatform(item.device.platform)).map((item, index) => ({ index, item })).sort((a, b) => compareDeviceListItems(a.item, b.item) || a.index - b.index)@@ -103,14 +110,15 @@ export function toDeviceListItem<TDevice extends DeviceListDeviceLike>(device: TDevice,now = Date.now(),revokedDevices: ReadonlySet<string> = new Set(),+ localizer?: PresentationLocalizer,): DeviceListItem<TDevice> {const state = deviceAccessState(device, revokedDevices);return {device,state,canOpen: state === 'ready' || state === 'busy',- statusLabel: deviceStatusLabel(state),- statusDetail: deviceStatusDetail(device, state, now),+ statusLabel: deviceStatusLabel(state, localizer),+ statusDetail: deviceStatusDetail(device, state, now, localizer),};}@@ -128,35 +136,45 @@ export function deviceAccessState(export function buildDeviceListPresentation(visibility: Pick<DeviceListVisibility, 'availableCount' | 'hiddenUnavailableCount' | 'unavailableCount'>,showUnavailable: boolean,+ localizer?: PresentationLocalizer,): DeviceListPresentation {const { availableCount, hiddenUnavailableCount, unavailableCount } = visibility;const headerSubtitle = availableCount > 0- ? `${availableCount} 台电脑可控制`+ ? presentationText(localizer, 'devices.presentation.deviceList.headerAvailable', `${availableCount} 台电脑可控制`, { count: availableCount }): unavailableCount > 0- ? `${unavailableCount} 台电脑暂不可用`- : '等待电脑端上线';- const filterTitle = availableCount > 0 ? '可控制设备' : '没有可控制设备';+ ? presentationText(localizer, 'devices.presentation.deviceList.headerUnavailable', `${unavailableCount} 台电脑暂不可用`, { count: unavailableCount })+ : presentationText(localizer, 'devices.presentation.deviceList.waitingForDesktop', '等待电脑端上线');+ const filterTitle = availableCount > 0+ ? presentationText(localizer, 'devices.presentation.deviceList.filterAvailable', '可控制设备')+ : presentationText(localizer, 'devices.presentation.deviceList.filterEmpty', '没有可控制设备');const filterMeta = availableCount > 0- ? `${availableCount} 台可进入${unavailableCount > 0 ? ` · ${unavailableCount} 台需处理` : ''}`+ ? presentationText(+ localizer,+ unavailableCount > 0+ ? 'devices.presentation.deviceList.filterMetaWithUnavailable'+ : 'devices.presentation.deviceList.filterMeta',+ `${availableCount} 台可进入${unavailableCount > 0 ? ` · ${unavailableCount} 台需处理` : ''}`,+ { available: availableCount, unavailable: unavailableCount },+ ): unavailableCount > 0- ? '展开的设备会显示不可用原因'- : '等待电脑端上线';+ ? presentationText(localizer, 'devices.presentation.deviceList.showUnavailableReason', '展开的设备会显示不可用原因')+ : presentationText(localizer, 'devices.presentation.deviceList.waitingForDesktop', '等待电脑端上线');const showToggle = unavailableCount > 0 && availableCount > 0;return {- emptyCopy: '在电脑端登录同一账号,并在设置里的远程控制打开“允许同账号设备控制本机”。',- emptyTitle: '还没有可显示的电脑',+ emptyCopy: presentationText(localizer, 'devices.presentation.deviceList.emptyCopy', '在电脑端登录同一账号,并在设置里的远程控制打开“允许同账号设备控制本机”。'),+ emptyTitle: presentationText(localizer, 'devices.presentation.deviceList.emptyTitle', '还没有可显示的电脑'),filterMeta,filterTitle,headerSubtitle,toggleAccessibilityLabel: showToggle? showUnavailable- ? '隐藏不可用电脑'- : '显示不可用电脑'+ ? presentationText(localizer, 'devices.presentation.deviceList.hideUnavailableA11y', '隐藏不可用电脑')+ : presentationText(localizer, 'devices.presentation.deviceList.showUnavailableA11y', '显示不可用电脑'): null,toggleLabel: showToggle? showUnavailable- ? '只看可用'- : `不可用 ${hiddenUnavailableCount}`+ ? presentationText(localizer, 'devices.presentation.deviceList.availableOnly', '只看可用')+ : presentationText(localizer, 'devices.presentation.deviceList.unavailableCount', `不可用 ${hiddenUnavailableCount}`, { count: hiddenUnavailableCount }): null,};}@@ -170,30 +188,35 @@ export function platformLabel(platform: string | null): string {return platform || 'Unknown';}-function deviceStatusLabel(state: DeviceAccessState): string {+function deviceStatusLabel(state: DeviceAccessState, localizer?: PresentationLocalizer): string {switch (state) {case 'ready':- return '可控制';+ return presentationText(localizer, 'devices.presentation.deviceList.status.ready', '可控制');case 'busy':- return '运行中';+ return presentationText(localizer, 'devices.presentation.deviceList.status.busy', '运行中');case 'offline':- return '离线';+ return presentationText(localizer, 'devices.presentation.deviceList.status.offline', '离线');case 'remote_disabled':- return '未开启远程控制';+ return presentationText(localizer, 'devices.presentation.deviceList.status.remoteDisabled', '未开启远程控制');case 'access_revoked':- return '已撤销访问权限';+ return presentationText(localizer, 'devices.presentation.deviceList.status.accessRevoked', '已撤销访问权限');case 'self':- return '本机';+ return presentationText(localizer, 'devices.presentation.deviceList.status.self', '本机');}}-function deviceStatusDetail(device: DeviceListDeviceLike, state: DeviceAccessState, now: number): string {- if (state === 'access_revoked') return '需要在电脑端恢复这台手机的访问权限';- if (state === 'offline') return formatLastSeen(device.lastSeenAt, now);- if (state === 'remote_disabled') return '在电脑端设置里打开允许远程控制';- if (state === 'self') return '当前手机';- if (state === 'busy') return '电脑端正在处理任务';- return '已允许远程控制';+function deviceStatusDetail(+ device: DeviceListDeviceLike,+ state: DeviceAccessState,+ now: number,+ localizer?: PresentationLocalizer,+): string {+ if (state === 'access_revoked') return presentationText(localizer, 'devices.presentation.deviceList.detail.accessRevoked', '需要在电脑端恢复这台手机的访问权限');+ if (state === 'offline') return formatLastSeen(device.lastSeenAt, now, localizer);+ if (state === 'remote_disabled') return presentationText(localizer, 'devices.presentation.deviceList.detail.remoteDisabled', '在电脑端设置里打开允许远程控制');+ if (state === 'self') return presentationText(localizer, 'devices.presentation.deviceList.detail.self', '当前手机');+ if (state === 'busy') return presentationText(localizer, 'devices.presentation.deviceList.detail.busy', '电脑端正在处理任务');+ return presentationText(localizer, 'devices.presentation.deviceList.detail.ready', '已允许远程控制');}function compareDeviceListItems(@@ -204,16 +227,17 @@ function compareDeviceListItems(return compareDevicesByName(a.device, b.device);}-function formatLastSeen(iso: string | null, now: number): string {- if (!iso) return '从未上线';+function formatLastSeen(iso: string | null, now: number, localizer?: PresentationLocalizer): string {+ if (!iso) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.never', '从未上线');const ts = Date.parse(iso);- if (!Number.isFinite(ts)) return '上次在线时间未知';+ if (!Number.isFinite(ts)) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.unknown', '上次在线时间未知');const diffMinutes = Math.max(0, Math.floor((now - ts) / 60_000));- if (diffMinutes < 1) return '刚刚在线';- if (diffMinutes < 60) return `${diffMinutes} 分钟前在线`;+ if (diffMinutes < 1) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.justNow', '刚刚在线');+ if (diffMinutes < 60) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.minutesAgo', `${diffMinutes} 分钟前在线`, { count: diffMinutes });const diffHours = Math.floor(diffMinutes / 60);- if (diffHours < 24) return `${diffHours} 小时前在线`;+ if (diffHours < 24) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.hoursAgo', `${diffHours} 小时前在线`, { count: diffHours });const diffDays = Math.floor(diffHours / 24);- if (diffDays < 7) return `${diffDays} 天前在线`;- return `上次在线 ${new Date(ts).toLocaleDateString()}`;+ if (diffDays < 7) return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.daysAgo', `${diffDays} 天前在线`, { count: diffDays });+ const date = presentationDate(localizer, new Date(ts));+ return presentationText(localizer, 'devices.presentation.deviceList.lastSeen.onDate', `上次在线 ${date}`, { date });}diff --git a/packages/maker-shared/src/index.ts b/packages/maker-shared/src/index.tsindex ec12e68f8d..f4909cc63c 100644--- a/packages/maker-shared/src/index.ts+++ b/packages/maker-shared/src/index.ts@@ -29,6 +29,7 @@ export * from './payloadSummary.js';export * from './projectOrderSync.js';export * from './pathText.js';export * from './permissionMode.js';+export * from './presentationLocalization.js';export * from './queue.js';export * from './scheduleDelete.js';export * from './scheduleEvents.js';diff --git a/packages/maker-shared/src/interaction.ts b/packages/maker-shared/src/interaction.tsindex 0d3a6b2f0d..be273959a9 100644--- a/packages/maker-shared/src/interaction.ts+++ b/packages/maker-shared/src/interaction.ts@@ -1,3 +1,5 @@+import { presentationText, type PresentationLocalizer } from './presentationLocalization.js';+export interface InteractionRequestLike {kind?: string;requestId?: string;@@ -127,7 +129,7 @@ export function buildInteractionResolveActionPresentation(input: {label: string;readOnlyReason?: string | null;requestId?: string | null;-}): InteractionResolveActionPresentation {+}, localizer?: PresentationLocalizer): InteractionResolveActionPresentation {if (input.readOnlyReason) {return {disabled: true,@@ -138,15 +140,16 @@ export function buildInteractionResolveActionPresentation(input: {if (!input.requestId) {return {disabled: true,- disabledReason: '这个远程交互缺少 requestId,无法回传决定。',+ disabledReason: presentationText(localizer, 'interaction.panel.missingRequestId', '这个远程交互缺少 requestId,无法回传决定。'),label: input.label,};}if (input.busy) {return {disabled: true,- disabledReason: '正在把决定回传到电脑端,请不要重复提交。',- label: input.busyLabel ?? '提交中',+ disabledReason: presentationText(localizer, 'interaction.panel.submittingHint', '正在把决定回传到电脑端,请不要重复提交。'),+ label: input.busyLabel+ ?? presentationText(localizer, 'interaction.presentation.action.submitting', '提交中'),};}if (input.invalidReason) {@@ -174,31 +177,32 @@ export function buildPermissionDecisionSummary(input: {toolName: string;riskSummary: string | null;canAlwaysAllow: boolean;-}): InteractionDecisionSummary {+}, localizer?: PresentationLocalizer): InteractionDecisionSummary {if (input.riskSummary) {return {- title: '高风险授权需要二次确认',- detail: '先核对命令内容,再点一次确认允许;不确定就拒绝。',+ title: presentationText(localizer, 'interaction.presentation.permission.highRiskTitle', '高风险授权需要二次确认'),+ detail: presentationText(localizer, 'interaction.presentation.permission.highRiskDetail', '先核对命令内容,再点一次确认允许;不确定就拒绝。'),};}if (input.canAlwaysAllow) {return {- title: '可以只允许一次,也可以本任务总是允许',- detail: `工具: ${input.toolName}`,+ title: presentationText(localizer, 'interaction.presentation.permission.sessionAllowTitle', '可以只允许一次,也可以本任务总是允许'),+ detail: presentationText(localizer, 'interaction.presentation.permission.tool', `工具: ${input.toolName}`, { tool: input.toolName }),};}return {- title: '允许后电脑端会继续执行',- detail: `工具: ${input.toolName}`,+ title: presentationText(localizer, 'interaction.presentation.permission.allowTitle', '允许后电脑端会继续执行'),+ detail: presentationText(localizer, 'interaction.presentation.permission.tool', `工具: ${input.toolName}`, { tool: input.toolName }),};}export function buildPermissionReviewPresentation(request: InteractionRequestLike,+ localizer?: PresentationLocalizer,): PermissionReviewPresentation {const toolName = permissionToolName(request);const input = permissionInput(request);- const riskSummary = permissionRiskSummary(request);+ const riskSummary = permissionRiskSummary(request, localizer);const canAlwaysAllow = sessionScopedPermissionSuggestions(request.suggestions).length > 0;return {@@ -207,8 +211,8 @@ export function buildPermissionReviewPresentation(code: formatPermissionInput(toolName, input),description: permissionDescription(request),riskSummary,- summary: buildPermissionDecisionSummary({ toolName, riskSummary, canAlwaysAllow }),- title: permissionTitle(request),+ summary: buildPermissionDecisionSummary({ toolName, riskSummary, canAlwaysAllow }, localizer),+ title: permissionTitle(request, localizer),toolName,};}@@ -217,19 +221,24 @@ export function buildAskQuestionProgressSummary(input: {currentIndex: number;total: number;multiSelect: boolean;-}): InteractionDecisionSummary {+}, localizer?: PresentationLocalizer): InteractionDecisionSummary {const total = Math.max(1, input.total);const current = Math.min(Math.max(0, input.currentIndex), total - 1) + 1;return {- title: `第 ${current}/${total} 个问题`,- detail: input.multiSelect ? '可多选,也可以输入其他回答。' : '选择一个回答,或输入其他回答。',+ title: presentationText(localizer, 'interaction.presentation.ask.progress', `第 ${current}/${total} 个问题`, {+ current,+ total,+ }),+ detail: input.multiSelect+ ? presentationText(localizer, 'interaction.presentation.ask.multiSelect', '可多选,也可以输入其他回答。')+ : presentationText(localizer, 'interaction.presentation.ask.singleSelect', '选择一个回答,或输入其他回答。'),};}export function buildAskQuestionReviewPresentation(input: {currentIndex: number;questions: readonly AskQuestion[];-}): AskQuestionReviewPresentation {+}, localizer?: PresentationLocalizer): AskQuestionReviewPresentation {const totalCount = input.questions.length;if (totalCount === 0) {return {@@ -242,10 +251,10 @@ export function buildAskQuestionReviewPresentation(input: {optionCount: 0,pageLabel: '0/0',summary: {- title: '没有具体问题',- detail: '可以提交空回答让电脑端继续。',+ title: presentationText(localizer, 'interaction.presentation.ask.emptyTitle', '没有具体问题'),+ detail: presentationText(localizer, 'interaction.presentation.ask.emptyDetail', '可以提交空回答让电脑端继续。'),},- title: 'Agent 正在等待确认',+ title: presentationText(localizer, 'interaction.presentation.ask.waiting', 'Agent 正在等待确认'),totalCount: 0,};}@@ -269,8 +278,9 @@ export function buildAskQuestionReviewPresentation(input: {currentIndex,total: totalCount,multiSelect,- }),- title: current?.question || 'Agent 正在等待确认',+ }, localizer),+ title: current?.question+ || presentationText(localizer, 'interaction.presentation.ask.waiting', 'Agent 正在等待确认'),totalCount,};}@@ -279,11 +289,17 @@ export function buildPlanReviewDecisionSummary(input: {outlineCount: number;hasFilePath: boolean;edited: boolean;-}): InteractionDecisionSummary {- const outline = input.outlineCount > 0 ? `${input.outlineCount} 个章节` : '无章节目录';- const file = input.hasFilePath ? '有计划文件' : '无计划文件路径';+}, localizer?: PresentationLocalizer): InteractionDecisionSummary {+ const outline = input.outlineCount > 0+ ? presentationText(localizer, 'interaction.presentation.plan.outlineCount', `${input.outlineCount} 个章节`, { count: input.outlineCount })+ : presentationText(localizer, 'interaction.presentation.plan.noOutline', '无章节目录');+ const file = input.hasFilePath+ ? presentationText(localizer, 'interaction.presentation.plan.hasFile', '有计划文件')+ : presentationText(localizer, 'interaction.presentation.plan.noFile', '无计划文件路径');return {- title: input.edited ? '已编辑计划,批准后按当前版本执行' : '批准后电脑端会按计划继续执行',+ title: input.edited+ ? presentationText(localizer, 'interaction.presentation.plan.editedTitle', '已编辑计划,批准后按当前版本执行')+ : presentationText(localizer, 'interaction.presentation.plan.approveTitle', '批准后电脑端会按计划继续执行'),detail: `${outline} · ${file}`,};}@@ -293,7 +309,7 @@ export function buildPlanReviewEvidencePresentation(input: {filePath?: string | null;maxOutlineItems?: number;plan: string;-}): PlanReviewEvidencePresentation {+}, localizer?: PresentationLocalizer): PlanReviewEvidencePresentation {const outline = extractPlanOutline(input.plan);const maxOutlineItems = Math.max(0, Math.floor(input.maxOutlineItems ?? 3));const filePath = input.filePath?.trim() || null;@@ -311,7 +327,7 @@ export function buildPlanReviewEvidencePresentation(input: {edited: input.edited,hasFilePath: !!filePath,outlineCount: outline.length,- }),+ }, localizer),};}@@ -358,32 +374,52 @@ export function interactionKind(item: PendingInteractionLike): string {return typeof item.request.kind === 'string' ? item.request.kind : 'interaction';}-export function interactionDisplayTitle(kind: string): string {- if (kind === 'plan_review') return '需要确认执行计划';- if (kind === 'permission') return '需要授权电脑端操作';- if (kind === 'ask_user_question') return '需要回答 Agent 问题';- if (kind === 'issue_confirm') return '需要确认 Issue 内容';- if (kind === 'plugin_setup') return '需要在电脑端配置插件';- return '需要处理远程请求';-}--export function interactionDisplayHint(kind: string, readOnly = false): string {- if (readOnly) return '协作只读模式,仅展示电脑端请求。';- if (kind === 'plan_review') return '先看计划,必要时反馈修改,确认后电脑端才继续执行。';- if (kind === 'permission') return '只把本次决定回传给当前电脑端任务。';- if (kind === 'ask_user_question') return '回答会保存草稿,提交后电脑端继续。';- if (kind === 'issue_confirm') return '确认标题和正文后再提交。';- if (kind === 'plugin_setup') return '配置要在电脑端完成,这里可以取消这次请求。';- return '手机版会按桌面端的请求顺序处理。';+export function interactionDisplayTitle(kind: string, localizer?: PresentationLocalizer): string {+ const known = ['plan_review', 'permission', 'ask_user_question', 'issue_confirm', 'plugin_setup'];+ const key = known.includes(kind) ? kind : 'fallback';+ const fallback: Record<string, string> = {+ plan_review: '需要确认执行计划',+ permission: '需要授权电脑端操作',+ ask_user_question: '需要回答 Agent 问题',+ issue_confirm: '需要确认 Issue 内容',+ plugin_setup: '需要在电脑端配置插件',+ fallback: '需要处理远程请求',+ };+ return presentationText(localizer, `interaction.kinds.${key}.title`, fallback[key]);}-export function interactionKindLabel(kind: string): string {- if (kind === 'plan_review') return '计划';- if (kind === 'permission') return '授权';- if (kind === 'ask_user_question') return '问题';- if (kind === 'issue_confirm') return 'Issue';- if (kind === 'plugin_setup') return '插件';- return '请求';+export function interactionDisplayHint(+ kind: string,+ readOnly = false,+ localizer?: PresentationLocalizer,+): string {+ if (readOnly) {+ return presentationText(localizer, 'interaction.presentation.queue.readOnlyHint', '协同只读模式,仅展示电脑端请求。');+ }+ const fallback: Record<string, string> = {+ plan_review: '先看计划,必要时反馈修改,确认后电脑端才继续执行。',+ permission: '只把本次决定回传给当前电脑端任务。',+ ask_user_question: '回答会保存草稿,提交后电脑端继续。',+ issue_confirm: '确认标题和正文后再提交。',+ plugin_setup: '配置要在电脑端完成,这里可以取消这次请求。',+ fallback: '手机版会按桌面端的请求顺序处理。',+ };+ const key = Object.prototype.hasOwnProperty.call(fallback, kind) ? kind : 'fallback';+ return presentationText(localizer, `interaction.presentation.queue.hint.${key}`, fallback[key]);+}++export function interactionKindLabel(kind: string, localizer?: PresentationLocalizer): string {+ const known = ['plan_review', 'permission', 'ask_user_question', 'issue_confirm', 'plugin_setup'];+ const key = known.includes(kind) ? kind : 'fallback';+ const fallback: Record<string, string> = {+ plan_review: '计划',+ permission: '授权',+ ask_user_question: '问题',+ issue_confirm: 'Issue',+ plugin_setup: '插件',+ fallback: '请求',+ };+ return presentationText(localizer, `interaction.kinds.${key}.label`, fallback[key]);}/**@@ -689,6 +725,7 @@ export function buildPendingInteractionQueuePresentation(maxVisible?: number;readOnly?: boolean;} = {},+ localizer?: PresentationLocalizer,): PendingInteractionQueuePresentation {const sorted = sortPendingInteractions(interactions);const totalCount = sorted.length;@@ -699,10 +736,10 @@ export function buildPendingInteractionQueuePresentation(return {active: index === 0,kind,- label: interactionKindLabel(kind),- positionLabel: interactionPositionLabel(index),+ label: interactionKindLabel(kind, localizer),+ positionLabel: interactionPositionLabel(index, localizer),requestId: readRequestId(item),- title: interactionDisplayTitle(kind),+ title: interactionDisplayTitle(kind, localizer),};});const active = items[0] ?? null;@@ -710,12 +747,16 @@ export function buildPendingInteractionQueuePresentation(return {active,- countLabel: totalCount > 1 ? `${totalCount} 个` : '当前',- hint: interactionDisplayHint(activeKind, readOnly),+ countLabel: totalCount > 1+ ? presentationText(localizer, 'interaction.presentation.queue.count', `${totalCount} 个`, { count: totalCount })+ : presentationText(localizer, 'interaction.panel.queuePositionCurrent', '当前'),+ hint: interactionDisplayHint(activeKind, readOnly, localizer),items,overflowCount: Math.max(0, totalCount - items.length),readOnly,- title: active ? active.title : '没有待处理请求',+ title: active+ ? active.title+ : presentationText(localizer, 'interaction.presentation.queue.empty', '没有待处理请求'),totalCount,};}@@ -755,10 +796,12 @@ export function readRequestId(item: PendingInteractionLike): string | null {return typeof requestId === 'string' && requestId.length > 0 ? requestId : null;}-function interactionPositionLabel(index: number): string {- if (index === 0) return '当前';- if (index === 1) return '接着';- return `第 ${index + 1}`;+function interactionPositionLabel(index: number, localizer?: PresentationLocalizer): string {+ if (index === 0) return presentationText(localizer, 'interaction.panel.queuePositionCurrent', '当前');+ if (index === 1) return presentationText(localizer, 'interaction.panel.queuePositionNext', '接着');+ return presentationText(localizer, 'interaction.panel.queuePositionNth', `第 ${index + 1}`, {+ index: index + 1,+ });}export function formatPermissionInput(toolName: string, input: Record<string, unknown>): string {@@ -779,12 +822,16 @@ export function formatPermissionInput(toolName: string, input: Record<string, un}}-export function permissionTitle(request: InteractionRequestLike): string {+export function permissionTitle(+ request: InteractionRequestLike,+ localizer?: PresentationLocalizer,+): string {const explicit = readString(request.title);if (explicit) return explicit;const displayName = readString(request.displayName);const toolName = readString(request.toolName) || 'tool';- return `允许使用 ${displayName || toolName}?`;+ const tool = displayName || toolName;+ return presentationText(localizer, 'interaction.presentation.permission.title', `允许使用 ${tool}?`, { tool });}export function permissionDescription(request: InteractionRequestLike): string | null {@@ -803,14 +850,17 @@ export function permissionInput(request: InteractionRequestLike): Record<string,return isRecord(request.input) ? request.input : {};}-export function permissionRiskSummary(request: InteractionRequestLike): string | null {+export function permissionRiskSummary(+ request: InteractionRequestLike,+ localizer?: PresentationLocalizer,+): string | null {const toolName = permissionToolName(request);const input = permissionInput(request);if (toolName !== 'Bash') return null;const command = typeof input.command === 'string' ? input.command.trim() : '';if (!command) return null;if (!isHighRiskShellCommand(command)) return null;- return '这个命令可能修改系统、仓库或外部服务状态。允许前请确认你信任当前任务和命令内容。';+ return presentationText(localizer, 'interaction.presentation.permission.risk', '这个命令可能修改系统、仓库或外部服务状态。允许前请确认你信任当前任务和命令内容。');}export function sessionScopedPermissionSuggestions(suggestions: unknown): unknown[] {diff --git a/packages/maker-shared/src/payloadSummary.ts b/packages/maker-shared/src/payloadSummary.tsindex fd7fab0bb5..7f49f23902 100644--- a/packages/maker-shared/src/payloadSummary.ts+++ b/packages/maker-shared/src/payloadSummary.ts@@ -1,4 +1,5 @@import { piEditReplacements } from './toolUseDescriptor.js';+import { presentationText, type PresentationLocalizer } from './presentationLocalization.js';export type PayloadKind = 'text' | 'diff' | 'media' | 'mermaid' | 'file';@@ -199,12 +200,13 @@ export function buildTextPayload(title: string, body: string): Extract<SharedMesexport function buildDiffPayload<Diff extends PayloadToolDiffLike>(diff: Diff,+ localizer?: PresentationLocalizer,): Extract<SharedMessagePayload<Diff>, { kind: 'diff' }> {return {kind: 'diff',title: diff.filePath,diff,- body: formatDiffPayload(diff),+ body: formatDiffPayload(diff, localizer),};}@@ -283,8 +285,9 @@ export function buildPayloadToolDiff(toolName: string, input: unknown): PayloadTexport function buildMediaPayload<Media extends PayloadMediaLike>(media: Media,label: string,+ localizer?: PresentationLocalizer,): Extract<SharedMessagePayload<PayloadToolDiffLike, Media>, { kind: 'media' }> {- const actionNotice = formatMediaActionNotice(media);+ const actionNotice = formatMediaActionNotice(media, localizer);return {kind: 'media',title: label,@@ -292,7 +295,7 @@ export function buildMediaPayload<Media extends PayloadMediaLike>(body: [media.previewable? media.url- : `移动端会尝试从远程电脑取回媒体。\n\n${media.url}`,+ : `${payloadPresentationText(localizer, 'remoteFetchBody', '移动端会尝试从远程电脑取回媒体。')}\n\n${media.url}`,actionNotice,].filter(Boolean).join('\n\n'),};@@ -301,17 +304,19 @@ export function buildMediaPayload<Media extends PayloadMediaLike>(export function buildFilePayload(title: string,sourcePath: string,+ localizer?: PresentationLocalizer,): Extract<SharedMessagePayload, { kind: 'file' }> {return {kind: 'file',title,- body: sourcePath || '没有可展示的远程路径',+ body: sourcePath || payloadPresentationText(localizer, 'missingRemotePath', '没有可展示的远程路径'),sourcePath: sourcePath || undefined,};}export function buildAttachmentPayload(attachment: PayloadAttachmentLike,+ localizer?: PresentationLocalizer,): AttachmentMessagePayload {if (attachment.kind === 'image' && attachment.uri) {return buildMediaPayload({@@ -319,7 +324,7 @@ export function buildAttachmentPayload(previewable: attachment.previewable,title: attachment.name,url: attachment.uri,- }, attachment.name);+ }, attachment.name, localizer);}const sourcePath = attachment.path || attachment.uri || '';@@ -338,9 +343,10 @@ export function buildAttachmentPayload(url: sourcePath,},attachment.name,+ localizer,);}- return buildFilePayload(attachment.name, sourcePath);+ return buildFilePayload(attachment.name, sourcePath, localizer);}export function extractPayloadToolResultMedia(toolResult: string): ExtractedPayloadToolMediaLike[] {@@ -426,23 +432,29 @@ export function extractPayloadToolResultMedia(toolResult: string): ExtractedPayl});}-export function buildMermaidPayload(source: string): Extract<SharedMessagePayload, { kind: 'mermaid' }> {+export function buildMermaidPayload(+ source: string,+ localizer?: PresentationLocalizer,+): Extract<SharedMessagePayload, { kind: 'mermaid' }> {return {kind: 'mermaid',- title: 'Mermaid 图表源码',+ title: payloadPresentationText(localizer, 'mermaidSourceTitle', 'Mermaid 图表源码'),body: source,};}-export function summarizeMessagePayload(payload: SharedMessagePayload): MessagePayloadSummary {+export function summarizeMessagePayload(+ payload: SharedMessagePayload,+ localizer?: PresentationLocalizer,+): MessagePayloadSummary {switch (payload.kind) {case 'diff':return {kind: 'diff',kindLabel: 'DIFF',title: payload.title,- subtitle: `+${payload.diff.insertions} / -${payload.diff.deletions} 行`,- copyableText: formatDiffPayload(payload.diff),+ subtitle: formatDiffStats(payload.diff, localizer),+ copyableText: formatDiffPayload(payload.diff, localizer),sourcePath: payload.diff.filePath,openTarget: { kind: 'file', value: payload.diff.filePath },};@@ -463,7 +475,9 @@ export function summarizeMessagePayload(payload: SharedMessagePayload): MessagePkind: 'media',kindLabel: payload.media.kind.toUpperCase(),title: payload.title,- subtitle: payload.media.previewable ? '可直接预览' : '需要远程取件',+ subtitle: payload.media.previewable+ ? payloadPresentationText(localizer, 'directPreview', '可直接预览')+ : payloadPresentationText(localizer, 'remoteFetchRequired', '需要远程取件'),copyableText: payload.media.url,openTarget: payload.media.previewable ? { kind: 'url', value: payload.media.url } : undefined,};@@ -472,7 +486,7 @@ export function summarizeMessagePayload(payload: SharedMessagePayload): MessagePkind: 'mermaid',kindLabel: 'MERMAID',title: payload.title,- subtitle: '图表源码',+ subtitle: payloadPresentationText(localizer, 'chartSource', '图表源码'),copyableText: payload.body,};case 'text':@@ -485,10 +499,13 @@ export function summarizeMessagePayload(payload: SharedMessagePayload): MessageP}}-export function summarizeMessagePayloadBody(payload: SharedMessagePayload): MessagePayloadBodyPresentation {+export function summarizeMessagePayloadBody(+ payload: SharedMessagePayload,+ localizer?: PresentationLocalizer,+): MessagePayloadBodyPresentation {switch (payload.kind) {case 'diff': {- const view = formatDiffPayloadView(payload.diff);+ const view = formatDiffPayloadView(payload.diff, localizer);return {bodyText: payload.body,diff: {@@ -496,7 +513,7 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): MesssectionCount: view.sections.length,stats: view.stats,},- emptyText: '没有 diff 内容。',+ emptyText: payloadPresentationText(localizer, 'noDiffContent', '没有 diff 内容。'),kind: 'diff',textMonospace: true,};@@ -505,9 +522,9 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): Messconst sourcePath = payload.sourcePath ?? '';return {bodyText: payload.body || sourcePath,- emptyText: '没有可展示的远程路径。',+ emptyText: payloadPresentationText(localizer, 'missingRemotePathSentence', '没有可展示的远程路径。'),file: {- displayPath: sourcePath || payload.body || '没有可展示的远程路径',+ displayPath: sourcePath || payload.body || payloadPresentationText(localizer, 'missingRemotePath', '没有可展示的远程路径'),sourcePath,},kind: 'file',@@ -519,27 +536,27 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): Messconst needsRemoteFetch = !payload.media.previewable && isPayloadDesktopLocalMediaUrl(payload.media.url);const canInlineDirectImage = payload.media.kind === 'image' && directPreviewable;const canInlineDirectPlayer = (payload.media.kind === 'video' || payload.media.kind === 'audio') && directPreviewable;- const bodyText = formatMediaPayloadDisplayText(payload);+ const bodyText = formatMediaPayloadDisplayText(payload, localizer);return {bodyText,- emptyText: '没有媒体地址。',+ emptyText: payloadPresentationText(localizer, 'noMediaAddress', '没有媒体地址。'),kind: 'media',media: {canDirectOpen: isPayloadDirectPreviewableUrl(payload.media.url),canInlineDirectImage,canInlineDirectPlayer,directPreviewable,- kindLabel: payloadMediaKindLabel(payload.media.kind),+ kindLabel: payloadMediaKindLabel(payload.media.kind, localizer),needsRemoteFetch,placeholderText: needsRemoteFetch- ? '正在准备远程媒体取件'+ ? payloadPresentationText(localizer, 'remoteMediaPreparing', '正在准备远程媒体取件'): payload.media.previewable- ? '当前媒体类型暂以地址形式展示。'- : '当前媒体暂不能直接预览。',- remoteIdleText: '正在准备远程媒体取件',+ ? payloadPresentationText(localizer, 'mediaAddressOnlySentence', '当前媒体类型暂以地址形式展示。')+ : payloadPresentationText(localizer, 'mediaCannotPreviewSentence', '当前媒体暂不能直接预览。'),+ remoteIdleText: payloadPresentationText(localizer, 'remoteMediaPreparing', '正在准备远程媒体取件'),unsupportedText: payload.media.previewable- ? '当前媒体类型暂以地址形式展示。'- : '当前媒体暂不能直接预览。',+ ? payloadPresentationText(localizer, 'mediaAddressOnlySentence', '当前媒体类型暂以地址形式展示。')+ : payloadPresentationText(localizer, 'mediaCannotPreviewSentence', '当前媒体暂不能直接预览。'),},textMonospace: false,};@@ -547,7 +564,7 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): Messcase 'mermaid':return {bodyText: payload.body,- emptyText: '空 Mermaid 图表。',+ emptyText: payloadPresentationText(localizer, 'emptyMermaid', '空 Mermaid 图表。'),kind: 'mermaid',mermaid: { source: payload.body },textMonospace: true,@@ -555,7 +572,7 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): Messcase 'text':return {bodyText: payload.body,- emptyText: '没有可展示的文本内容。',+ emptyText: payloadPresentationText(localizer, 'noTextContent', '没有可展示的文本内容。'),kind: 'text',textMonospace: false,};@@ -565,22 +582,24 @@ export function summarizeMessagePayloadBody(payload: SharedMessagePayload): Messexport function summarizeMessagePayloadPreview(payload: SharedMessagePayload,options: MessagePayloadPreviewOptions = {},+ localizer?: PresentationLocalizer,): MessagePayloadPreview {const maxPreviewChars = Math.max(24, options.maxPreviewChars ?? 220);switch (payload.kind) {case 'diff': {- const stats = `+${payload.diff.insertions} / -${payload.diff.deletions} 行`;+ const stats = formatDiffStats(payload.diff, localizer);const editCount = payload.diff.segments.length;return {actionKind: 'view',- actionLabel: '查看 diff',+ actionLabel: payloadPresentationText(localizer, 'viewDiff', '查看 diff'),canInlinePreview: false,detail: `${payload.diff.filePath} · ${stats}`,kind: 'diff',- meta: [stats, `${editCount} 处编辑`],+ meta: [stats, payloadPresentationText(localizer, 'editCount', `${editCount} 处编辑`, { count: editCount })],needsRemoteFetch: false,- previewText: trimPayloadPreviewText(formatDiffPreviewText(payload.diff), maxPreviewChars) || '没有 diff 内容。',+ previewText: trimPayloadPreviewText(formatDiffPreviewText(payload.diff, localizer), maxPreviewChars)+ || payloadPresentationText(localizer, 'noDiffContent', '没有 diff 内容。'),severity: payload.diff.insertions > 0 || payload.diff.deletions > 0 ? 'info' : 'neutral',shouldUseMonospacePreview: true,title: payload.title,@@ -591,13 +610,18 @@ export function summarizeMessagePayloadPreview(const hasSourcePath = !!sourcePath.trim();return {actionKind: hasSourcePath ? 'preview-file' : 'view',- actionLabel: hasSourcePath ? '预览文件' : '查看详情',+ actionLabel: hasSourcePath+ ? payloadPresentationText(localizer, 'previewFile', '预览文件')+ : payloadPresentationText(localizer, 'viewDetails', '查看详情'),canInlinePreview: false,- detail: hasSourcePath ? sourcePath : '没有远程路径',+ detail: hasSourcePath ? sourcePath : payloadPresentationText(localizer, 'noRemotePath', '没有远程路径'),kind: 'file',- meta: [hasSourcePath ? sourcePath : '缺少远程路径'],+ meta: [hasSourcePath ? sourcePath : payloadPresentationText(localizer, 'remotePathMissing', '缺少远程路径')],needsRemoteFetch: false,- previewText: trimPayloadPreviewText(payload.body || sourcePath || '没有可展示的远程路径。', maxPreviewChars),+ previewText: trimPayloadPreviewText(+ payload.body || sourcePath || payloadPresentationText(localizer, 'missingRemotePathSentence', '没有可展示的远程路径。'),+ maxPreviewChars,+ ),severity: hasSourcePath ? 'neutral' : 'warning',shouldUseMonospacePreview: true,title: payload.title,@@ -608,16 +632,16 @@ export function summarizeMessagePayloadPreview(const needsRemoteFetch = !payload.media.previewable && isPayloadDesktopLocalMediaUrl(payload.media.url);const canInlinePreview = directPreviewable&& (payload.media.kind === 'image' || payload.media.kind === 'video' || payload.media.kind === 'audio');- const kindLabel = payloadMediaKindLabel(payload.media.kind);- const actionNotice = formatMediaActionNotice(payload.media);+ const kindLabel = payloadMediaKindLabel(payload.media.kind, localizer);+ const actionNotice = formatMediaActionNotice(payload.media, localizer);if (needsRemoteFetch) {return {actionKind: 'fetch-remote-media',- actionLabel: '取回媒体',+ actionLabel: payloadPresentationText(localizer, 'fetchMedia', '取回媒体'),canInlinePreview: false,- detail: '需要从电脑端取回媒体',+ detail: payloadPresentationText(localizer, 'fetchMediaFromDesktop', '需要从电脑端取回媒体'),kind: 'media',- meta: [kindLabel, '待取件'],+ meta: [kindLabel, payloadPresentationText(localizer, 'pendingFetch', '待取件')],needsRemoteFetch: true,previewText: trimPayloadPreviewText([payload.media.url, actionNotice].filter(Boolean).join('\n'), maxPreviewChars),severity: 'info',@@ -626,14 +650,14 @@ export function summarizeMessagePayloadPreview(};}if (directPreviewable) {- const displayText = formatMediaPayloadDisplayText(payload);+ const displayText = formatMediaPayloadDisplayText(payload, localizer);return {actionKind: 'open-url',- actionLabel: '预览媒体',+ actionLabel: payloadPresentationText(localizer, 'previewMedia', '预览媒体'),canInlinePreview,- detail: '可直接预览',+ detail: payloadPresentationText(localizer, 'directPreview', '可直接预览'),kind: 'media',- meta: [kindLabel, '可预览'],+ meta: [kindLabel, payloadPresentationText(localizer, 'previewable', '可预览')],needsRemoteFetch: false,previewText: trimPayloadPreviewText(displayText, maxPreviewChars),severity: 'neutral',@@ -643,11 +667,20 @@ export function summarizeMessagePayloadPreview(}return {actionKind: payload.media.previewable ? 'open-url' : 'view',- actionLabel: payload.media.previewable ? '打开媒体' : '查看详情',+ actionLabel: payload.media.previewable+ ? payloadPresentationText(localizer, 'openMedia', '打开媒体')+ : payloadPresentationText(localizer, 'viewDetails', '查看详情'),canInlinePreview: false,- detail: payload.media.previewable ? '当前媒体以地址形式展示' : '当前媒体暂不能直接预览',+ detail: payload.media.previewable+ ? payloadPresentationText(localizer, 'mediaAddressOnly', '当前媒体以地址形式展示')+ : payloadPresentationText(localizer, 'mediaCannotPreview', '当前媒体暂不能直接预览'),kind: 'media',- meta: [kindLabel, payload.media.previewable ? '地址展示' : '不可预览'],+ meta: [+ kindLabel,+ payload.media.previewable+ ? payloadPresentationText(localizer, 'addressDisplay', '地址展示')+ : payloadPresentationText(localizer, 'notPreviewable', '不可预览'),+ ],needsRemoteFetch: false,previewText: trimPayloadPreviewText([payload.media.url, actionNotice].filter(Boolean).join('\n'), maxPreviewChars),severity: payload.media.previewable ? 'info' : 'warning',@@ -658,13 +691,16 @@ export function summarizeMessagePayloadPreview(case 'mermaid':return {actionKind: 'view',- actionLabel: '查看图表',+ actionLabel: payloadPresentationText(localizer, 'viewChart', '查看图表'),canInlinePreview: true,- detail: 'Mermaid 图表源码',+ detail: payloadPresentationText(localizer, 'mermaidSourceTitle', 'Mermaid 图表源码'),kind: 'mermaid',- meta: ['图表源码'],+ meta: [payloadPresentationText(localizer, 'chartSource', '图表源码')],needsRemoteFetch: false,- previewText: trimPayloadPreviewText(payload.body || '空 Mermaid 图表。', maxPreviewChars),+ previewText: trimPayloadPreviewText(+ payload.body || payloadPresentationText(localizer, 'emptyMermaid', '空 Mermaid 图表。'),+ maxPreviewChars,+ ),severity: 'neutral',shouldUseMonospacePreview: true,title: payload.title,@@ -672,13 +708,16 @@ export function summarizeMessagePayloadPreview(case 'text':return {actionKind: 'view',- actionLabel: '查看内容',+ actionLabel: payloadPresentationText(localizer, 'viewContent', '查看内容'),canInlinePreview: false,- detail: '文本输出',+ detail: payloadPresentationText(localizer, 'textOutput', '文本输出'),kind: 'text',- meta: ['文本'],+ meta: [payloadPresentationText(localizer, 'text', '文本')],needsRemoteFetch: false,- previewText: trimPayloadPreviewText(payload.body || '没有可展示的文本内容。', maxPreviewChars),+ previewText: trimPayloadPreviewText(+ payload.body || payloadPresentationText(localizer, 'noTextContent', '没有可展示的文本内容。'),+ maxPreviewChars,+ ),severity: 'neutral',shouldUseMonospacePreview: false,title: payload.title,@@ -686,20 +725,28 @@ export function summarizeMessagePayloadPreview(}}-export function payloadMediaKindLabel(kind: PayloadMediaLike['kind']): string {- if (kind === 'image') return '图片';- if (kind === 'video') return '视频';- return '音频';+export function payloadMediaKindLabel(+ kind: PayloadMediaLike['kind'],+ localizer?: PresentationLocalizer,+): string {+ if (kind === 'image') return payloadPresentationText(localizer, 'image', '图片');+ if (kind === 'video') return payloadPresentationText(localizer, 'video', '视频');+ return payloadPresentationText(localizer, 'audio', '音频');}-function formatMediaPayloadDisplayText(payload: Extract<SharedMessagePayload, { kind: 'media' }>): string {+function formatMediaPayloadDisplayText(+ payload: Extract<SharedMessagePayload, { kind: 'media' }>,+ localizer?: PresentationLocalizer,+): string {const dataImage = describeDataImageUrl(payload.media.url);if (!dataImage) return payload.body || payload.media.url;return [- `内联${payloadMediaKindLabel(payload.media.kind)}数据`,+ payloadPresentationText(localizer, 'inlineMediaData', `内联${payloadMediaKindLabel(payload.media.kind, localizer)}数据`, {+ kind: payloadMediaKindLabel(payload.media.kind, localizer),+ }),dataImage.mimeLabel,dataImage.sizeLabel,- formatMediaActionNotice(payload.media),+ formatMediaActionNotice(payload.media, localizer),].filter(Boolean).join(' · ');}@@ -746,10 +793,13 @@ export function isPayloadDirectPreviewableUrl(url: unknown): url is string {);}-export function formatDiffPayload(diff: PayloadToolDiffLike): string {+export function formatDiffPayload(+ diff: PayloadToolDiffLike,+ localizer?: PresentationLocalizer,+): string {const head = [diff.filePath,- `+${diff.insertions} / -${diff.deletions} 行`,+ formatDiffStats(diff, localizer),];const segments = diff.segments.map((segment, index) => {const label = segment.label ?? `Edit ${index + 1}/${diff.segments.length}`;@@ -760,10 +810,13 @@ export function formatDiffPayload(diff: PayloadToolDiffLike): string {return [...head, ...segments].join('\n\n');}-export function formatDiffPayloadRows(diff: PayloadToolDiffLike): FormattedDiffPayloadRow[] {+export function formatDiffPayloadRows(+ diff: PayloadToolDiffLike,+ localizer?: PresentationLocalizer,+): FormattedDiffPayloadRow[] {const rows: FormattedDiffPayloadRow[] = [{ key: 'header', kind: 'header', text: diff.filePath },- { key: 'stats', kind: 'stats', text: `+${diff.insertions} / -${diff.deletions} 行` },+ { key: 'stats', kind: 'stats', text: formatDiffStats(diff, localizer) },];diff.segments.forEach((segment, index) => {const label = segment.label ?? `Edit ${index + 1}/${diff.segments.length}`;@@ -786,10 +839,13 @@ export function formatDiffPayloadRows(diff: PayloadToolDiffLike): FormattedDiffPreturn rows;}-export function formatDiffPayloadView(diff: PayloadToolDiffLike): FormattedDiffPayloadView {+export function formatDiffPayloadView(+ diff: PayloadToolDiffLike,+ localizer?: PresentationLocalizer,+): FormattedDiffPayloadView {return {filePath: diff.filePath,- stats: `+${diff.insertions} / -${diff.deletions} 行`,+ stats: formatDiffStats(diff, localizer),sections: diff.segments.map((segment, index) => ({key: segment.key,label: segment.label ?? `Edit ${index + 1}/${diff.segments.length}`,@@ -807,14 +863,21 @@ export function formatDiffPayloadView(diff: PayloadToolDiffLike): FormattedDiffP};}-export function formatMediaActionNotice(media: PayloadMediaLike): string {+export function formatMediaActionNotice(+ media: PayloadMediaLike,+ localizer?: PresentationLocalizer,+): string {const actions = media.actions;if (!actions?.buttons.length) return '';const labels = actions.buttons.map(formatMediaActionButtonLabel).join(' / ');return [- '桌面端为这个媒体提供了后续操作。',- `可用操作: ${labels}`,- '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',+ payloadPresentationText(localizer, 'mediaActionsAvailable', '桌面端为这个媒体提供了后续操作。'),+ payloadPresentationText(localizer, 'availableActions', `可用操作:${labels}`, { actions: labels }),+ payloadPresentationText(+ localizer,+ 'mediaActionsDesktopOnly',+ '手机版 V1 只安全展示这些操作,暂不远程触发。请回到电脑端点击。',+ ),].join('\n');}@@ -828,16 +891,44 @@ function splitChangedLines(value: string): string[] {return value.split('\n');}-function formatDiffPreviewText(diff: PayloadToolDiffLike): string {+function formatDiffPreviewText(+ diff: PayloadToolDiffLike,+ localizer?: PresentationLocalizer,+): string {const firstSegment = diff.segments[0];if (!firstSegment) return '';const label = firstSegment.label ?? `Edit 1/${diff.segments.length}`;const oldLines = splitChangedLines(firstSegment.oldString).slice(0, 2).map((line) => `- ${line}`);const newLines = splitChangedLines(firstSegment.newString).slice(0, 2).map((line) => `+ ${line}`);- const more = diff.segments.length > 1 ? [`...还有 ${diff.segments.length - 1} 处编辑`] : [];+ const more = diff.segments.length > 1+ ? [payloadPresentationText(localizer, 'moreEdits', `…还有 ${diff.segments.length - 1} 处编辑`, {+ count: diff.segments.length - 1,+ })]+ : [];return [label, ...oldLines, ...newLines, ...more].filter(Boolean).join('\n');}+function formatDiffStats(+ diff: Pick<PayloadToolDiffLike, 'insertions' | 'deletions'>,+ localizer?: PresentationLocalizer,+): string {+ return payloadPresentationText(+ localizer,+ 'diffStats',+ `+${diff.insertions} / -${diff.deletions} 行`,+ { insertions: diff.insertions, deletions: diff.deletions },+ );+}++function payloadPresentationText(+ localizer: PresentationLocalizer | undefined,+ key: string,+ fallback: string,+ values?: Readonly<Record<string, string | number | boolean | null | undefined>>,+): string {+ return presentationText(localizer, `message.payloadPresentation.${key}`, fallback, values);+}+function trimPayloadPreviewText(value: string, maxChars: number): string {const normalized = value.trim();if (normalized.length <= maxChars) return normalized;diff --git a/packages/maker-shared/src/presentationLocalization.ts b/packages/maker-shared/src/presentationLocalization.tsnew file mode 100644index 0000000000..f31a7dec25--- /dev/null+++ b/packages/maker-shared/src/presentationLocalization.ts@@ -0,0 +1,39 @@+export type PresentationInterpolationValue = string | number | boolean | null | undefined;++export type PresentationTranslator = (+ key: string,+ fallback: string,+ values?: Readonly<Record<string, PresentationInterpolationValue>>,+) => string;++export interface PresentationLocalizer {+ translate: PresentationTranslator;+ formatDate?: (date: Date) => string;+ formatTime?: (date: Date) => string;+}++export function presentationText(+ localizer: PresentationLocalizer | undefined,+ key: string,+ fallback: string,+ values?: Readonly<Record<string, PresentationInterpolationValue>>,+): string {+ return localizer?.translate(key, fallback, values) ?? fallback;+}++export function presentationDate(+ localizer: PresentationLocalizer | undefined,+ date: Date,+): string {+ return localizer?.formatDate?.(date) ?? date.toLocaleDateString();+}++export function presentationTime(+ localizer: PresentationLocalizer | undefined,+ date: Date,+): string {+ return localizer?.formatTime?.(date) ?? date.toLocaleTimeString([], {+ hour: '2-digit',+ minute: '2-digit',+ });+}diff --git a/packages/maker-shared/src/queue.ts b/packages/maker-shared/src/queue.tsindex dc6b0c93ab..146511e816 100644--- a/packages/maker-shared/src/queue.ts+++ b/packages/maker-shared/src/queue.ts@@ -1,4 +1,5 @@import { syntheticTriggerKind } from './syntheticTrigger.js';+import { presentationText, type PresentationLocalizer } from './presentationLocalization.js';export interface QueueProjectionLike {error: string | null;@@ -60,6 +61,7 @@ export function buildQueuePanelSummary(projection: QueueProjectionLike,readOnlyReason?: string | null,collapsedVisibleRows = 3,+ localizer?: PresentationLocalizer,): QueuePanelSummary {const queueCount = projection.pendingQueue.length;const expanded = projection.queueExpanded || queueCount <= collapsedVisibleRows;@@ -68,36 +70,44 @@ export function buildQueuePanelSummary(if (projection.error) {return {- detail: projection.errorRetryText ? '发送失败 · 可重试' : '发送失败',+ detail: projection.errorRetryText+ ? presentationText(localizer, 'message.queuePresentation.panel.sendFailedRetryable', '发送失败 · 可重试')+ : presentationText(localizer, 'message.queuePresentation.panel.sendFailed', '发送失败'),hiddenCount,- hint: readOnlyReason ?? '先处理队列错误,再继续发送新的消息。',- title: '队列需要处理',+ hint: readOnlyReason+ ?? presentationText(localizer, 'message.queuePresentation.panel.errorHint', '先处理队列错误,再继续发送新的消息。'),+ title: presentationText(localizer, 'message.queuePresentation.panel.errorTitle', '队列需要处理'),visibleCount,};}if (projection.queueAbortPending) {return {- detail: queueCount > 0 ? `${queueCount} 条消息保留在队列里` : '等待桌面端确认停止',+ detail: queueCount > 0+ ? presentationText(localizer, 'message.queuePresentation.panel.abortQueued', `${queueCount} 条消息保留在队列里`, { count: queueCount })+ : presentationText(localizer, 'message.queuePresentation.panel.abortWaiting', '等待桌面端确认停止'),hiddenCount,- hint: readOnlyReason ?? '停止完成前先不要重复发送,保留的消息会继续显示在这里。',- title: '停止处理中',+ hint: readOnlyReason+ ?? presentationText(localizer, 'message.queuePresentation.panel.abortHint', '停止完成前先不要重复发送,保留的消息会继续显示在这里。'),+ title: presentationText(localizer, 'message.queuePresentation.panel.abortTitle', '停止处理中'),visibleCount,};}if (projection.queuePaused) {return {- detail: `${queueCount} 条消息等待恢复`,+ detail: presentationText(localizer, 'message.queuePresentation.panel.pausedDetail', `${queueCount} 条消息等待恢复`, { count: queueCount }),hiddenCount,- hint: readOnlyReason ?? '点“继续”后会按当前顺序继续发送到桌面端。',- title: '队列已暂停',+ hint: readOnlyReason+ ?? presentationText(localizer, 'message.queuePresentation.panel.pausedHint', '点“继续”后会按当前顺序继续发送到桌面端。'),+ title: presentationText(localizer, 'message.queuePresentation.panel.pausedTitle', '队列已暂停'),visibleCount,};}return {- detail: `${queueCount} 条消息 · 按桌面端顺序发送`,+ detail: presentationText(localizer, 'message.queuePresentation.panel.defaultDetail', `${queueCount} 条消息 · 按桌面端顺序发送`, { count: queueCount }),hiddenCount,- hint: readOnlyReason ?? '可调整顺序、插话、编辑或删除普通队列消息。',- title: '待发送队列',+ hint: readOnlyReason+ ?? presentationText(localizer, 'message.queuePresentation.panel.defaultHint', '可调整顺序、插话、编辑或删除普通队列消息。'),+ title: presentationText(localizer, 'message.queuePresentation.panel.defaultTitle', '待发送队列'),visibleCount,};}@@ -109,7 +119,7 @@ export function buildQueueRowPresentation(input: {projection: QueueRowProjectionLike;queueLength: number;readOnlyReason?: string | null;-}): QueueRowPresentation {+}, localizer?: PresentationLocalizer): QueueRowPresentation {const steering = input.projection.steeringQueueClientIds.includes(input.item.clientId);const editLocked = input.projection.queueEditLocks.includes(input.item.clientId);const interactionLocked = input.projection.queueInteractionLocks.length > 0;@@ -124,15 +134,17 @@ export function buildQueueRowPresentation(input: {orcaOrigin,readOnlyReason: input.readOnlyReason,steering,- });+ }, localizer);// 合成指令行只封 edit / steer(对齐桌面 canEdit / canSteer=false),删除与排序// 照常——用户可以取消一条排队中的续跑,但不能改写或抢发它的内容。- const syntheticEditReason = syntheticKind ? '系统指令消息不支持编辑或插话发送。' : null;+ const syntheticEditReason = syntheticKind+ ? presentationText(localizer, 'message.queuePresentation.row.syntheticEditDisabled', '系统指令消息不支持编辑或插话发送。')+ : null;return {actions: {- moveUp: queueRowAction(baseDisabledReason, moveUpTarget, '已经是队列第一条。'),- moveDown: queueRowAction(baseDisabledReason, moveDownTarget, '已经是队列最后一条。'),+ moveUp: queueRowAction(baseDisabledReason, moveUpTarget, presentationText(localizer, 'message.queuePresentation.row.first', '已经是队列第一条。')),+ moveDown: queueRowAction(baseDisabledReason, moveDownTarget, presentationText(localizer, 'message.queuePresentation.row.last', '已经是队列最后一条。')),steer: queueRowAction(baseDisabledReason ?? syntheticEditReason),edit: queueRowAction(baseDisabledReason ?? syntheticEditReason),remove: queueRowAction(baseDisabledReason),@@ -145,16 +157,16 @@ export function buildQueueRowPresentation(input: {readOnlyReason: input.readOnlyReason,steering,syntheticKind,- }),+ }, localizer),interactionLocked,orcaOrigin,steering,syntheticKind,title: steering- ? '插话发送中'+ ? presentationText(localizer, 'message.queuePresentation.row.steering', '插话发送中'): orcaOrigin- ? `协作队列 ${input.originalIndex + 1}`- : `队列 ${input.originalIndex + 1}`,+ ? presentationText(localizer, 'message.queuePresentation.row.orcaTitle', `协同队列 ${input.originalIndex + 1}`, { index: input.originalIndex + 1 })+ : presentationText(localizer, 'message.queuePresentation.row.title', `队列 ${input.originalIndex + 1}`, { index: input.originalIndex + 1 }),};}@@ -215,13 +227,13 @@ function queueRowBaseDisabledReason(input: {orcaOrigin: boolean;readOnlyReason?: string | null;steering: boolean;-}): string | null {+}, localizer?: PresentationLocalizer): string | null {if (input.readOnlyReason) return input.readOnlyReason;- if (input.orcaOrigin) return '协作消息由桌面端编排,手机端只读显示。';- if (input.busy) return '队列操作同步中,完成后再继续操作。';- if (input.steering) return '插话正在发送到当前 turn,等待桌面端回流后再操作。';- if (input.editLocked) return '这条队列消息正在编辑中,完成后再操作。';- if (input.interactionLocked) return '队列正在被其它操作锁定,完成后再操作。';+ if (input.orcaOrigin) return presentationText(localizer, 'message.queuePresentation.row.orcaReadOnly', '协同消息由桌面端编排,手机端只读显示。');+ if (input.busy) return presentationText(localizer, 'message.queuePresentation.row.busy', '队列操作同步中,完成后再继续操作。');+ if (input.steering) return presentationText(localizer, 'message.queuePresentation.row.steeringDisabled', '插话正在发送到当前 turn,等待桌面端回流后再操作。');+ if (input.editLocked) return presentationText(localizer, 'message.queuePresentation.row.editLocked', '这条队列消息正在编辑中,完成后再操作。');+ if (input.interactionLocked) return presentationText(localizer, 'message.queuePresentation.row.interactionLocked', '队列正在被其它操作锁定,完成后再操作。');return null;}@@ -232,12 +244,12 @@ function queueRowHint(input: {readOnlyReason?: string | null;steering: boolean;syntheticKind?: 'continue' | 'generic' | null;-}): string | null {+}, localizer?: PresentationLocalizer): string | null {if (input.readOnlyReason) return input.readOnlyReason;- if (input.orcaOrigin) return '协作消息由桌面端编排,手机端只读显示。';- if (input.syntheticKind) return '这是系统自动生成的指令,可以取消,但不能编辑或插话发送。';- if (input.steering) return '插话正在发送到当前 turn,暂时不能编辑或移动。';- if (input.editLocked) return '这条消息正在编辑中,桌面端会暂停自动发送。';- if (input.interactionLocked) return '队列正在被排序或其它交互锁定,暂时不能编辑。';+ if (input.orcaOrigin) return presentationText(localizer, 'message.queuePresentation.row.orcaReadOnly', '协同消息由桌面端编排,手机端只读显示。');+ if (input.syntheticKind) return presentationText(localizer, 'message.queuePresentation.row.syntheticHint', '这是系统自动生成的指令,可以取消,但不能编辑或插话发送。');+ if (input.steering) return presentationText(localizer, 'message.queuePresentation.row.steeringHint', '插话正在发送到当前 turn,暂时不能编辑或移动。');+ if (input.editLocked) return presentationText(localizer, 'message.queuePresentation.row.editHint', '这条消息正在编辑中,桌面端会暂停自动发送。');+ if (input.interactionLocked) return presentationText(localizer, 'message.queuePresentation.row.interactionHint', '队列正在被排序或其它交互锁定,暂时不能编辑。');return null;}diff --git a/packages/maker-shared/src/scheduleDelete.ts b/packages/maker-shared/src/scheduleDelete.tsindex 4ea9e8fb70..65c643888c 100644--- a/packages/maker-shared/src/scheduleDelete.ts+++ b/packages/maker-shared/src/scheduleDelete.ts@@ -1,4 +1,5 @@import type { RemoteSchedule, RemoteScheduleRun } from './scheduleTypes';+import { presentationText, type PresentationLocalizer } from './presentationLocalization.js';export const DELETE_PREVIEW_RUN_LIMIT = 10_000;@@ -91,12 +92,20 @@ export function isProjectAutomationSchedule(target: ScheduleDeleteTarget): boolereturn target.source === 'project' && !!target.workingDir && !!target.projectConfigId;}-export function describeScheduleDeletePreview(preview: ScheduleDeletePreview): string {+export function describeScheduleDeletePreview(+ preview: ScheduleDeletePreview,+ localizer?: PresentationLocalizer,+): string {const sessionPart = preview.sessionCount === 0- ? '没有找到由它生成的任务'- : `找到 ${preview.sessionCount} 个由它生成的任务`;+ ? presentationText(localizer, 'devices.automations.presentation.delete.noSessions', '没有找到由它生成的任务')+ : presentationText(localizer, 'devices.automations.presentation.delete.sessions', `找到 ${preview.sessionCount} 个由它生成的任务`, {+ count: preview.sessionCount,+ });if (preview.inflightCount > 0) {- return `${sessionPart},还有 ${preview.inflightCount} 次执行正在进行`;+ return presentationText(localizer, 'devices.automations.presentation.delete.withInflight', `${sessionPart},还有 ${preview.inflightCount} 次执行正在进行`, {+ count: preview.inflightCount,+ sessions: sessionPart,+ });}return sessionPart;}diff --git a/packages/maker-shared/src/scheduleForm.ts b/packages/maker-shared/src/scheduleForm.tsindex cc8e6cf87b..60ddca075f 100644--- a/packages/maker-shared/src/scheduleForm.ts+++ b/packages/maker-shared/src/scheduleForm.ts@@ -7,6 +7,7 @@ import type {RemoteScheduleWriteInput,RemoteTemplateParameter,} from './scheduleTypes';+import { presentationText, type PresentationLocalizer } from './presentationLocalization.js';export const MOBILE_SCHEDULE_EFFORT_VALUES = ['minimal',@@ -182,11 +183,15 @@ export function applyTemplateToMobileScheduleDraft(export function validateTemplateParamValues(template: Pick<RemoteScheduleTemplate, 'parameters'>,values: Record<string, string>,+ localizer?: PresentationLocalizer,): string | null {for (const parameter of template.parameters ?? []) {if (!parameter.required) continue;if ((values[parameter.key] ?? parameter.default ?? '').trim()) continue;- return `请输入模板参数:${parameter.label || parameter.key}`;+ const label = parameter.label || parameter.key;+ return presentationText(localizer, 'devices.automations.presentation.validation.templateParameter', `请输入模板参数:${label}`, {+ label,+ });}return null;}@@ -218,22 +223,44 @@ export function applyMobileTemplateParams(export function validateMobileScheduleDraft(draft: MobileScheduleDraft,+ localizer?: PresentationLocalizer,): ScheduleDraftValidation | null {- if (!draft.name.trim()) return { field: 'name', message: '请输入任务名称' };+ if (!draft.name.trim()) {+ return {+ field: 'name',+ message: presentationText(localizer, 'devices.automations.presentation.validation.name', '请输入任务名称'),+ };+ }// "仅运行脚本"任务(桌面端高级功能)prompt 合法为空——mobile 没有编辑// scriptConfig 的 UI,不该拿桌面端才有意义的字段挡住这类任务在移动端的其它// 可编辑操作(改名、通知开关等),否则打开/保存一个桌面端创建的脚本任务在// 移动端会先于任何改动就校验失败(codex review 发现)。if (draft.executionMode !== 'script' && !draft.prompt.trim()) {- return { field: 'prompt', message: '请输入任务提示词' };+ return {+ field: 'prompt',+ message: presentationText(localizer, 'devices.automations.presentation.validation.prompt', '请输入任务提示词'),+ };+ }+ if (!draft.timezone.trim()) {+ return {+ field: 'timezone',+ message: presentationText(localizer, 'devices.automations.presentation.validation.timezone', '请输入时区'),+ };}- if (!draft.timezone.trim()) return { field: 'timezone', message: '请输入时区' };if (draft.targetSessionId.trim() === MOBILE_SCHEDULE_PENDING_SESSION_ID) {- return { field: 'targetSessionId', message: '请选择要绑定的任务' };+ return {+ field: 'targetSessionId',+ message: presentationText(localizer, 'devices.automations.presentation.validation.boundSession', '请选择要绑定的任务'),+ };}if (draft.runMode === 'recurring') {- if (!draft.cronExpr.trim()) return { field: 'cronExpr', message: '请输入 cron 表达式' };- const intervalError = validateIntervalMinutes(draft.intervalMinutes);+ if (!draft.cronExpr.trim()) {+ return {+ field: 'cronExpr',+ message: presentationText(localizer, 'devices.automations.presentation.validation.cron', '请输入 cron 表达式'),+ };+ }+ const intervalError = validateIntervalMinutes(draft.intervalMinutes, localizer);if (intervalError) return { field: 'intervalMinutes', message: intervalError };}if (@@ -241,12 +268,17 @@ export function validateMobileScheduleDraft(!draft.targetSessionId.trim() &&!draft.workingDir.trim()) {- return { field: 'workingDir', message: '请输入项目目录' };+ return {+ field: 'workingDir',+ message: presentationText(localizer, 'devices.automations.presentation.validation.workingDir', '请输入项目目录'),+ };}if (draft.effort.trim() && !isMobileScheduleEffort(draft.effort.trim())) {return {field: 'effort',- message: `推理强度只能是 ${MOBILE_SCHEDULE_EFFORT_VALUES.join(' / ')}`,+ message: presentationText(localizer, 'devices.automations.presentation.validation.effort', `推理强度只能是 ${MOBILE_SCHEDULE_EFFORT_VALUES.join(' / ')}`, {+ values: MOBILE_SCHEDULE_EFFORT_VALUES.join(' / '),+ }),};}return null;@@ -513,14 +545,17 @@ function defaultModelFor(agentKind: RemoteScheduleAgentKind): string {return DEFAULT_CLAUDE_MODEL;}-function validateIntervalMinutes(value: string): string | null {+function validateIntervalMinutes(+ value: string,+ localizer?: PresentationLocalizer,+): string | null {if (!value.trim()) return null;const minutes = Number(value);if (!Number.isInteger(minutes) || minutes <= 0) {- return '间隔分钟必须是正整数';+ return presentationText(localizer, 'devices.automations.presentation.validation.intervalPositiveInteger', '间隔分钟必须是正整数');}if (intervalMinutesToCronExpr(minutes) === null) {- return '分钟间隔只支持 1-59 分钟,或 1-23 小时的整点间隔';+ return presentationText(localizer, 'devices.automations.presentation.validation.intervalUnsupported', '分钟间隔只支持 1-59 分钟,或 1-23 小时的整点间隔');}return null;}diff --git a/packages/maker-shared/src/scheduleModel.ts b/packages/maker-shared/src/scheduleModel.tsindex 711a395844..ecd6f152e0 100644--- a/packages/maker-shared/src/scheduleModel.ts+++ b/packages/maker-shared/src/scheduleModel.ts@@ -5,6 +5,12 @@ import type {RemoteScheduleStatus,RemoteTimestamp,} from './scheduleTypes';+import {+ presentationDate,+ presentationText,+ presentationTime,+ type PresentationLocalizer,+} from './presentationLocalization.js';export interface ScheduleSummary {title: string;@@ -150,46 +156,61 @@ export function summarizeSchedule(schedule: RemoteSchedule,runs: readonly RemoteScheduleRun[] = [],now = Date.now(),+ localizer?: PresentationLocalizer,): ScheduleSummary {- const lastText = formatLastRun(schedule.lastFiredAt, now);- const nextText = schedule.status === 'active' ? formatNextRun(schedule.nextFireAt, now) : null;+ const lastText = formatLastRun(schedule.lastFiredAt, now, localizer);+ const nextText = schedule.status === 'active'+ ? formatNextRun(schedule.nextFireAt, now, localizer)+ : null;let subtitle: string;if (schedule.status === 'paused') {- subtitle = '已暂停';+ subtitle = presentationText(localizer, 'devices.automations.presentation.schedule.paused', '已暂停');} else if (schedule.manual) {- subtitle = lastText ?? '手动触发';+ subtitle = lastText+ ?? presentationText(localizer, 'devices.automations.presentation.schedule.manual', '手动触发');} else if (schedule.recurring === false) {- subtitle = lastText ?? '单次任务';+ subtitle = lastText+ ?? presentationText(localizer, 'devices.automations.presentation.schedule.once', '单次任务');} else if (lastText && nextText) {subtitle = `${lastText} · ${nextText}`;} else {- subtitle = lastText ?? nextText ?? '等待首次执行';+ subtitle = lastText+ ?? nextText+ ?? presentationText(localizer, 'devices.automations.presentation.schedule.waitingFirstRun', '等待首次执行');}return {title: schedule.name || schedule.id,subtitle,detail: [- describeScheduleTiming(schedule),- describeRunSessionLabel(schedule),+ describeScheduleTiming(schedule, localizer),+ describeRunSessionLabel(schedule, localizer),humanizeAgentKind(schedule.agentKind),- describeDestination(schedule),+ describeDestination(schedule, localizer),].filter(Boolean).join(' · '),- runSessionDetail: describeRunSessionDetail(schedule),- runSessionLabel: describeRunSessionLabel(schedule),+ runSessionDetail: describeRunSessionDetail(schedule, localizer),+ runSessionLabel: describeRunSessionLabel(schedule, localizer),status: schedule.status,- statusLabel: scheduleStatusLabel(schedule.status),+ statusLabel: scheduleStatusLabel(schedule.status, localizer),unreadCount: countUnreadRuns(runs, now),};}-export function summarizeRun(run: RemoteScheduleRun, now = Date.now()): RunSummary {- const fired = formatTimestamp(run.firedAt);- const finished = run.finishedAt ? formatTimestamp(run.finishedAt) : null;+export function summarizeRun(+ run: RemoteScheduleRun,+ now = Date.now(),+ localizer?: PresentationLocalizer,+): RunSummary {+ const fired = formatTimestamp(run.firedAt, localizer);+ const finished = run.finishedAt ? formatTimestamp(run.finishedAt, localizer) : null;const subtitle = finished ? `${fired} - ${finished}` : fired;const error = run.errorMsg?.trim();const result = run.resultText?.trim();- const sessionDetail = run.sessionId?.trim() ? `任务 ${shortSessionId(run.sessionId)}` : null;+ const sessionDetail = run.sessionId?.trim()+ ? presentationText(localizer, 'devices.automations.presentation.run.session', `任务 ${shortSessionId(run.sessionId)}`, {+ id: shortSessionId(run.sessionId),+ })+ : null;const isLegacySessionRun = run.id.startsWith(LEGACY_SESSION_RUN_ID_PREFIX);const unread = isUnreadRun(run, now);const canDelete = !isLegacySessionRun && run.status !== 'running';@@ -203,17 +224,27 @@ export function summarizeRun(run: RemoteScheduleRun, now = Date.now()): RunSummacanMarkRead,canOpenSession,canRestart,- deleteLabel: canDelete ? '删除' : null,- title: runStatusLabel(run.status),+ deleteLabel: canDelete+ ? presentationText(localizer, 'devices.automations.presentation.run.delete', '删除')+ : null,+ title: runStatusLabel(run.status, localizer),subtitle,detail: error || previewText(result) || null,- markReadLabel: canMarkRead ? '已读' : null,+ markReadLabel: canMarkRead+ ? presentationText(localizer, 'devices.automations.presentation.run.markRead', '已读')+ : null,meta: [- describeRunTiming(run, now),- sessionDetail ?? (canRestart ? '可重新执行' : '未创建任务'),+ describeRunTiming(run, now, localizer),+ sessionDetail ?? (canRestart+ ? presentationText(localizer, 'devices.automations.presentation.run.canRestart', '可重新执行')+ : presentationText(localizer, 'devices.automations.presentation.run.noSession', '未创建任务')),].filter(Boolean).join(' · '),- openSessionLabel: sessionDetail ? '打开' : null,- restartLabel: canRestart ? '重跑' : null,+ openSessionLabel: sessionDetail+ ? presentationText(localizer, 'devices.automations.presentation.run.open', '打开')+ : null,+ restartLabel: canRestart+ ? presentationText(localizer, 'devices.automations.presentation.run.restart', '重跑')+ : null,sessionDetail,status: run.status,unread,@@ -229,41 +260,56 @@ export function normalizeScheduleInflightCount(value: unknown): number {export function buildSchedulePauseConfirmation(schedule: Pick<RemoteSchedule, 'id' | 'name'>,inflightCount: unknown,+ localizer?: PresentationLocalizer,): SchedulePauseConfirmation | null {const count = normalizeScheduleInflightCount(inflightCount);if (count <= 0) return null;return {- title: `暂停 ${schedule.name || schedule.id}`,- detail: `这条自动化当前有 ${count} 次执行正在进行。暂停会立即阻止后续触发,并停止这些正在进行的执行。`,- preview: `正在执行: ${count} 次`,+ title: presentationText(localizer, 'devices.automations.presentation.pause.title', `暂停 ${schedule.name || schedule.id}`, {+ name: schedule.name || schedule.id,+ }),+ detail: presentationText(localizer, 'devices.automations.presentation.pause.detail', `这条自动化当前有 ${count} 次执行正在进行。暂停会立即阻止后续触发,并停止这些正在进行的执行。`, {+ count,+ }),+ preview: presentationText(localizer, 'devices.automations.presentation.pause.preview', `正在执行: ${count} 次`, {+ count,+ }),};}-export function scheduleStatusLabel(status: RemoteScheduleStatus): string {+export function scheduleStatusLabel(+ status: RemoteScheduleStatus,+ localizer?: PresentationLocalizer,+): string {+ const key = `devices.automations.presentation.schedule.status.${status}`;switch (status) {case 'active':- return '运行中';+ return presentationText(localizer, key, '运行中');case 'paused':- return '已暂停';+ return presentationText(localizer, key, '已暂停');case 'expired':- return '已完成';+ return presentationText(localizer, key, '已完成');}}-export function runStatusLabel(status: RemoteScheduleRunStatus): string {+export function runStatusLabel(+ status: RemoteScheduleRunStatus,+ localizer?: PresentationLocalizer,+): string {+ const key = `devices.automations.presentation.run.status.${status}`;switch (status) {case 'running':- return '执行中';+ return presentationText(localizer, key, '执行中');case 'success':- return '成功';+ return presentationText(localizer, key, '成功');case 'failed':- return '失败';+ return presentationText(localizer, key, '失败');case 'aborted':- return '已中止';+ return presentationText(localizer, key, '已中止');case 'interrupted':- return '被中断';+ return presentationText(localizer, key, '被中断');case 'skipped':- return '已跳过';+ return presentationText(localizer, key, '已跳过');}}@@ -295,38 +341,73 @@ function normalizeRunStatus(value: unknown): RemoteScheduleRunStatus {return 'failed';}-function describeScheduleTiming(schedule: RemoteSchedule): string {- if (schedule.manual) return '手动触发';+function describeScheduleTiming(+ schedule: RemoteSchedule,+ localizer?: PresentationLocalizer,+): string {+ if (schedule.manual) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.manual', '手动触发');+ }if (typeof schedule.intervalMs === 'number' && schedule.intervalMs > 0) {- return `每 ${formatDuration(schedule.intervalMs)}`;+ const duration = formatDuration(schedule.intervalMs, localizer);+ return presentationText(localizer, 'devices.automations.presentation.schedule.every', `每 ${duration}`, {+ duration,+ });+ }+ if (schedule.recurring === false) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.once', '单次任务');}- if (schedule.recurring === false) return '单次任务';- return schedule.cronExpr ? `cron ${schedule.cronExpr}` : '周期任务';+ return schedule.cronExpr+ ? `cron ${schedule.cronExpr}`+ : presentationText(localizer, 'devices.automations.presentation.schedule.recurring', '周期任务');}-function describeDestination(schedule: RemoteSchedule): string {- if (schedule.workspaceKind === 'dialogue') return '对话工作区';- if (!schedule.workingDir) return '未设置目录';+function describeDestination(+ schedule: RemoteSchedule,+ localizer?: PresentationLocalizer,+): string {+ if (schedule.workspaceKind === 'dialogue') {+ return presentationText(localizer, 'devices.automations.presentation.schedule.dialogueWorkspace', '对话工作区');+ }+ if (!schedule.workingDir) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.noDirectory', '未设置目录');+ }const parts = schedule.workingDir.split(/[\\/]/).filter(Boolean);return parts[parts.length - 1] ?? schedule.workingDir;}function describeRunSessionLabel(schedule: Pick<RemoteSchedule, 'persistentSession' | 'targetSessionId'>,+ localizer?: PresentationLocalizer,): string {- if (schedule.persistentSession) return '持续任务';- if (schedule.targetSessionId?.trim()) return '绑定任务';- return '新任务';+ if (schedule.persistentSession) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.persistent', '持续任务');+ }+ if (schedule.targetSessionId?.trim()) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.bound', '绑定任务');+ }+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.fresh', '新任务');}function describeRunSessionDetail(schedule: Pick<RemoteSchedule, 'persistentSession' | 'targetSessionId'>,+ localizer?: PresentationLocalizer,): string | null {if (schedule.persistentSession && schedule.targetSessionId?.trim()) {- return `持续任务 ${shortSessionId(schedule.targetSessionId)}`;+ const id = shortSessionId(schedule.targetSessionId);+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.persistentWithId', `持续任务 ${id}`, {+ id,+ });+ }+ if (schedule.persistentSession) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.persistentDetail', '首次触发后持续复用同一任务');+ }+ if (schedule.targetSessionId?.trim()) {+ const id = shortSessionId(schedule.targetSessionId);+ return presentationText(localizer, 'devices.automations.presentation.schedule.session.boundWithId', `绑定到 ${id}`, {+ id,+ });}- if (schedule.persistentSession) return '首次触发后持续复用同一任务';- if (schedule.targetSessionId?.trim()) return `绑定到 ${shortSessionId(schedule.targetSessionId)}`;return null;}@@ -334,22 +415,52 @@ function shortSessionId(sessionId: string): string {return sessionId.trim().slice(0, 8);}-function describeRunTiming(run: Pick<RemoteScheduleRun, 'firedAt' | 'finishedAt' | 'status'>, now: number): string {+function describeRunTiming(+ run: Pick<RemoteScheduleRun, 'firedAt' | 'finishedAt' | 'status'>,+ now: number,+ localizer?: PresentationLocalizer,+): string {const firedAt = toMillis(run.firedAt);- if (!firedAt) return run.status === 'running' ? '执行中' : '耗时未知';- if (run.status === 'running') return `已运行 ${formatRunDuration(now - firedAt)}`;+ if (!firedAt) {+ return run.status === 'running'+ ? presentationText(localizer, 'devices.automations.presentation.run.status.running', '执行中')+ : presentationText(localizer, 'devices.automations.presentation.run.durationUnknown', '耗时未知');+ }+ if (run.status === 'running') {+ const duration = formatRunDuration(now - firedAt, localizer);+ return presentationText(localizer, 'devices.automations.presentation.run.runningFor', `已运行 ${duration}`, {+ duration,+ });+ }const finishedAt = toMillis(run.finishedAt);- if (!finishedAt) return '耗时未知';- return `耗时 ${formatRunDuration(finishedAt - firedAt)}`;+ if (!finishedAt) {+ return presentationText(localizer, 'devices.automations.presentation.run.durationUnknown', '耗时未知');+ }+ const duration = formatRunDuration(finishedAt - firedAt, localizer);+ return presentationText(localizer, 'devices.automations.presentation.run.duration', `耗时 ${duration}`, {+ duration,+ });}-function formatRunDuration(ms: number): string {+function formatRunDuration(ms: number, localizer?: PresentationLocalizer): string {const diff = Math.max(0, ms);if (diff < 1000) return `${Math.round(diff)} ms`;- if (diff < 60_000) return `${(diff / 1000).toFixed(1)} 秒`;+ if (diff < 60_000) {+ const count = (diff / 1000).toFixed(1);+ return presentationText(localizer, 'devices.automations.presentation.duration.seconds', `${count} 秒`, {+ count,+ });+ }const minutes = Math.floor(diff / 60_000);const seconds = Math.floor((diff % 60_000) / 1000);- return seconds > 0 ? `${minutes} 分 ${seconds} 秒` : `${minutes} 分钟`;+ return seconds > 0+ ? presentationText(localizer, 'devices.automations.presentation.duration.minutesSeconds', `${minutes} 分 ${seconds} 秒`, {+ minutes,+ seconds,+ })+ : presentationText(localizer, 'devices.automations.presentation.duration.minutes', `${minutes} 分钟`, {+ count: minutes,+ });}function humanizeAgentKind(agentKind: RemoteSchedule['agentKind']): string {@@ -358,39 +469,92 @@ function humanizeAgentKind(agentKind: RemoteSchedule['agentKind']): string {return 'Claude';}-function formatLastRun(value: RemoteTimestamp, now: number): string | null {+function formatLastRun(+ value: RemoteTimestamp,+ now: number,+ localizer?: PresentationLocalizer,+): string | null {const ts = toMillis(value);if (!ts) return null;- return `上次 ${formatRelativePast(ts, now)}`;+ const relative = formatRelativePast(ts, now, localizer);+ return presentationText(localizer, 'devices.automations.presentation.schedule.lastRun', `上次 ${relative}`, {+ relative,+ });}-function formatNextRun(value: RemoteTimestamp, now: number): string | null {+function formatNextRun(+ value: RemoteTimestamp,+ now: number,+ localizer?: PresentationLocalizer,+): string | null {const ts = toMillis(value);if (!ts) return null;const diff = ts - now;- if (diff <= 0) return '即将执行';- return `${formatDuration(diff)}后`;+ if (diff <= 0) {+ return presentationText(localizer, 'devices.automations.presentation.schedule.imminent', '即将执行');+ }+ const duration = formatDuration(diff, localizer);+ return presentationText(localizer, 'devices.automations.presentation.schedule.nextRun', `${duration}后`, {+ duration,+ });}-function formatRelativePast(timestamp: number, now: number): string {+function formatRelativePast(+ timestamp: number,+ now: number,+ localizer?: PresentationLocalizer,+): string {const diff = Math.max(0, now - timestamp);- if (diff < 60_000) return '刚刚';- if (diff < 3_600_000) return `${Math.floor(diff / 60_000)} 分钟前`;- if (diff < 86_400_000) return `${Math.floor(diff / 3_600_000)} 小时前`;- if (diff < 7 * 86_400_000) return `${Math.floor(diff / 86_400_000)} 天前`;- return formatTimestamp(timestamp);+ if (diff < 60_000) {+ return presentationText(localizer, 'devices.automations.presentation.relative.justNow', '刚刚');+ }+ if (diff < 3_600_000) {+ const count = Math.floor(diff / 60_000);+ return presentationText(localizer, 'devices.automations.presentation.relative.minutesAgo', `${count} 分钟前`, {+ count,+ });+ }+ if (diff < 86_400_000) {+ const count = Math.floor(diff / 3_600_000);+ return presentationText(localizer, 'devices.automations.presentation.relative.hoursAgo', `${count} 小时前`, {+ count,+ });+ }+ if (diff < 7 * 86_400_000) {+ const count = Math.floor(diff / 86_400_000);+ return presentationText(localizer, 'devices.automations.presentation.relative.daysAgo', `${count} 天前`, {+ count,+ });+ }+ return formatTimestamp(timestamp, localizer);}-function formatDuration(ms: number): string {- if (ms < 3_600_000) return `${Math.max(1, Math.round(ms / 60_000))} 分钟`;- if (ms < 86_400_000) return `${Math.round(ms / 3_600_000)} 小时`;- return `${Math.round(ms / 86_400_000)} 天`;+function formatDuration(ms: number, localizer?: PresentationLocalizer): string {+ if (ms < 3_600_000) {+ const count = Math.max(1, Math.round(ms / 60_000));+ return presentationText(localizer, 'devices.automations.presentation.duration.minutes', `${count} 分钟`, {+ count,+ });+ }+ if (ms < 86_400_000) {+ const count = Math.round(ms / 3_600_000);+ return presentationText(localizer, 'devices.automations.presentation.duration.hours', `${count} 小时`, {+ count,+ });+ }+ const count = Math.round(ms / 86_400_000);+ return presentationText(localizer, 'devices.automations.presentation.duration.days', `${count} 天`, {+ count,+ });}-function formatTimestamp(value: RemoteTimestamp): string {+function formatTimestamp(value: RemoteTimestamp, localizer?: PresentationLocalizer): string {const ts = toMillis(value);- if (!ts) return '未知时间';+ if (!ts) {+ return presentationText(localizer, 'devices.automations.presentation.run.unknownTime', '未知时间');+ }const date = new Date(ts);+ if (localizer) return `${presentationDate(localizer, date)} ${presentationTime(localizer, date)}`;const month = String(date.getMonth() + 1).padStart(2, '0');const day = String(date.getDate()).padStart(2, '0');const hour = String(date.getHours()).padStart(2, '0');diff --git a/packages/maker-shared/src/sessionControls.ts b/packages/maker-shared/src/sessionControls.tsindex 8cc00a2167..082f7e2755 100644--- a/packages/maker-shared/src/sessionControls.ts+++ b/packages/maker-shared/src/sessionControls.ts@@ -3,6 +3,12 @@ import type {MobileCodexRateLimitResetCredit,MobileCodexRateLimitsResult,} from './deviceLinkContract.js';+import {+ presentationDate,+ presentationText,+ presentationTime,+ type PresentationLocalizer,+} from './presentationLocalization.js';export interface SessionControlsSessionLike {contextTokens?: number;@@ -21,13 +27,15 @@ export interface SessionControlsSessionLike {export function summarizeSessionSpend(session: Pick<SessionControlsSessionLike,'contextTokens' | 'contextWindow' | 'totalCostUsd' | 'totalTokenUsage'-> | null): {+> | null, localizer?: PresentationLocalizer): {title: string;detail: string;available: boolean;} {+ const title = presentationText(localizer, 'session.presentation.controls.spend.title', 'Session spend');+ const unavailable = presentationText(localizer, 'session.presentation.controls.spend.unavailable', '暂无任务用量');if (!session) {- return { title: 'Session spend', detail: '暂无任务用量', available: false };+ return { title, detail: unavailable, available: false };}const totalCostUsd = readNumber(session.totalCostUsd);@@ -37,7 +45,8 @@ export function summarizeSessionSpend(session: Pick<const parts: string[] = [];if (totalCostUsd !== null && totalCostUsd > 0) {- parts.push(`本任务 ${formatUsd(totalCostUsd)}`);+ const cost = formatUsd(totalCostUsd);+ parts.push(presentationText(localizer, 'session.presentation.controls.spend.taskCost', `本任务 ${cost}`, { cost }));}if (totalTokenUsage !== null && totalTokenUsage > 0) {parts.push(`${formatCompactNumber(totalTokenUsage)} tokens`);@@ -45,25 +54,38 @@ export function summarizeSessionSpend(session: Pick<if (contextTokens !== null && contextTokens > 0) {if (contextWindow !== null && contextWindow > 0) {const percent = Math.min(100, Math.max(0, (contextTokens / contextWindow) * 100));- parts.push(`上下文 ${formatCompactNumber(contextTokens)} / ${formatCompactNumber(contextWindow)} · ${formatPercent(percent)}`);+ const used = formatCompactNumber(contextTokens);+ const total = formatCompactNumber(contextWindow);+ const percentage = formatPercent(percent);+ parts.push(presentationText(localizer, 'session.presentation.controls.spend.contextWithLimit', `上下文 ${used} / ${total} · ${percentage}`, {+ percentage,+ total,+ used,+ }));} else {- parts.push(`上下文 ${formatCompactNumber(contextTokens)} tokens`);+ const used = formatCompactNumber(contextTokens);+ parts.push(presentationText(localizer, 'session.presentation.controls.spend.context', `上下文 ${used} tokens`, { used }));}}if (parts.length === 0) {- return { title: 'Session spend', detail: '暂无任务用量', available: false };+ return { title, detail: unavailable, available: false };}- return { title: 'Session spend', detail: parts.join(' · '), available: true };+ return { title, detail: parts.join(' · '), available: true };}-export function summarizeContextUsage(value: unknown): {+export function summarizeContextUsage(value: unknown, localizer?: PresentationLocalizer): {title: string;detail: string;rows: Array<{ label: string; value: string }>;} {+ const title = presentationText(localizer, 'session.presentation.controls.context.title', 'Context usage');if (!value || typeof value !== 'object' || Array.isArray(value)) {- return { title: 'Context usage', detail: '暂无上下文数据', rows: [] };+ return {+ title,+ detail: presentationText(localizer, 'session.presentation.controls.context.unavailable', '暂无上下文数据'),+ rows: [],+ };}const record = value as Record<string, unknown>;const contextTokens = readNumber(record.totalTokens ?? record.contextTokens);@@ -91,9 +113,9 @@ export function summarizeContextUsage(value: unknown): {}const rows = buildContextUsageRows(record, maxContextTokens);if (parts.length > 0) {- return { title: 'Context usage', detail: parts.join(' · '), rows };+ return { title, detail: parts.join(' · '), rows };}- return { title: 'Context usage', detail: messageContentToPreview(value), rows };+ return { title, detail: messageContentToPreview(value), rows };}/**@@ -105,7 +127,11 @@ export function summarizeContextUsage(value: unknown): {* TodaySpendChip 的 formatWindowLabel 同规则。解析不到任何可展示内容 → null* (调用方不渲染整个区块,不显示 loading / 空态)。*/-export function summarizeAccountRateLimits(value: unknown, nowMs: number): {+export function summarizeAccountRateLimits(+ value: unknown,+ nowMs: number,+ localizer?: PresentationLocalizer,+): {rows: Array<{ label: string; value: string }>;} | null {const record = readRecord(value);@@ -113,7 +139,12 @@ export function summarizeAccountRateLimits(value: unknown, nowMs: number): {const rows: Array<{ label: string; value: string }> = [];const planType = readString(record.planType);- if (planType) rows.push({ label: '套餐', value: formatPlanTypeLabel(planType) });+ if (planType) {+ rows.push({+ label: presentationText(localizer, 'session.presentation.controls.rateLimit.plan', '套餐'),+ value: formatPlanTypeLabel(planType),+ });+ }for (const window of [readRecord(record.primary), readRecord(record.secondary)]) {if (!window) continue;@@ -121,13 +152,21 @@ export function summarizeAccountRateLimits(value: unknown, nowMs: number): {if (usedPercent === null) continue;const used = Math.min(100, Math.max(0, usedPercent));const parts = [- `剩余 ${formatRateLimitPercent(100 - used)}`,- `已用 ${formatRateLimitPercent(used)}`,+ presentationText(localizer, 'session.presentation.controls.rateLimit.remaining', `剩余 ${formatRateLimitPercent(100 - used)}`, {+ percent: formatRateLimitPercent(100 - used),+ }),+ presentationText(localizer, 'session.presentation.controls.rateLimit.used', `已用 ${formatRateLimitPercent(used)}`, {+ percent: formatRateLimitPercent(used),+ }),];- const resetText = formatRateLimitResetAt(readNumber(window.resetsAt), nowMs);- if (resetText) parts.push(`${resetText} 重置`);+ const resetText = formatRateLimitResetAt(readNumber(window.resetsAt), nowMs, localizer);+ if (resetText) {+ parts.push(presentationText(localizer, 'session.presentation.controls.rateLimit.resetsAt', `${resetText} 重置`, {+ time: resetText,+ }));+ }rows.push({- label: rateLimitWindowLabel(readNumber(window.windowMinutes)),+ label: rateLimitWindowLabel(readNumber(window.windowMinutes), localizer),value: parts.join(' · '),});}@@ -135,7 +174,10 @@ export function summarizeAccountRateLimits(value: unknown, nowMs: number): {// credits_depleted 是「去充值」语义,不属于窗口限流,不在限额区提示。const reached = readString(record.rateLimitReachedType);if (reached && !reached.includes('credits_depleted')) {- rows.push({ label: '状态', value: '已触发账号限额' });+ rows.push({+ label: presentationText(localizer, 'session.presentation.controls.rateLimit.status', '状态'),+ value: presentationText(localizer, 'session.presentation.controls.rateLimit.reached', '已触发账号限额'),+ });}return rows.length > 0 ? { rows } : null;@@ -160,23 +202,39 @@ export interface CodexRateLimitResetSummary {export function summarizeCodexRateLimitReset(value: MobileCodexRateLimitsResult | null,nowMs: number,+ localizer?: PresentationLocalizer,): CodexRateLimitResetSummary | null {if (!value) return null;const rows: Array<{ label: string; value: string }> = [];- if (value.account.email) rows.push({ label: '账号', value: value.account.email });+ if (value.account.email) {+ rows.push({+ label: presentationText(localizer, 'session.presentation.controls.rateLimit.account', '账号'),+ value: value.account.email,+ });+ }if (value.account.accountId) rows.push({ label: 'Workspace', value: value.account.accountId });const hasResetCreditCount = Boolean(value.rateLimitResetCredits);const availableCount = Math.max(0, Math.floor(value.rateLimitResetCredits?.availableCount ?? 0));if (hasResetCreditCount) {- rows.push({ label: '可用重置', value: `${availableCount} 次` });+ rows.push({+ label: presentationText(localizer, 'session.presentation.controls.rateLimit.availableResets', '可用重置'),+ value: presentationText(localizer, 'session.presentation.controls.rateLimit.resetCount', `${availableCount} 次`, {+ count: availableCount,+ }),+ });}const earliestExpiryAt = value.resetOffer?.expiresAt ?? earliestCreditExpiry(value.rateLimitResetCredits?.credits ?? null,);- const expiryText = formatRateLimitResetAt(earliestExpiryAt, nowMs);- if (expiryText) rows.push({ label: '最早过期', value: expiryText });+ const expiryText = formatRateLimitResetAt(earliestExpiryAt, nowMs, localizer);+ if (expiryText) {+ rows.push({+ label: presentationText(localizer, 'session.presentation.controls.rateLimit.earliestExpiry', '最早过期'),+ value: expiryText,+ });+ }const snapshots = [value.rateLimits,@@ -219,10 +277,20 @@ function earliestCreditExpiry(}/** 窗口名由服务端下发的时长动态派生(与桌面 formatWindowLabel 同规则);缺数据 → 中性「限额」,不猜具体窗口名。 */-function rateLimitWindowLabel(minutes: number | null): string {- if (minutes === null || minutes <= 0) return '限额';- if (minutes % (24 * 60) === 0 && minutes < 7 * 24 * 60) return `${minutes / (24 * 60)}天`;- if (minutes >= 7 * 24 * 60) return '周';+function rateLimitWindowLabel(+ minutes: number | null,+ localizer?: PresentationLocalizer,+): string {+ if (minutes === null || minutes <= 0) {+ return presentationText(localizer, 'session.presentation.controls.rateLimit.window.default', '限额');+ }+ if (minutes % (24 * 60) === 0 && minutes < 7 * 24 * 60) {+ const count = minutes / (24 * 60);+ return presentationText(localizer, 'session.presentation.controls.rateLimit.window.days', `${count}天`, { count });+ }+ if (minutes >= 7 * 24 * 60) {+ return presentationText(localizer, 'session.presentation.controls.rateLimit.window.week', '周');+ }if (minutes % 60 === 0) return `${minutes / 60}h`;return `${Math.round(minutes)}m`;}@@ -234,15 +302,25 @@ function formatRateLimitPercent(value: number): string {}/** reset 时间点文案:当天只显时分,跨天带月日;缺失 / 非法 → null。 */-function formatRateLimitResetAt(epochSeconds: number | null, nowMs: number): string | null {+function formatRateLimitResetAt(+ epochSeconds: number | null,+ nowMs: number,+ localizer?: PresentationLocalizer,+): string | null {if (epochSeconds === null || epochSeconds <= 0) return null;const date = new Date(epochSeconds * 1000);const now = new Date(nowMs);- const hhmm = `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`;+ const hhmm = localizer+ ? presentationTime(localizer, date)+ : `${String(date.getHours()).padStart(2, '0')}:${String(date.getMinutes()).padStart(2, '0')}`;const sameDay = date.getFullYear() === now.getFullYear()&& date.getMonth() === now.getMonth()&& date.getDate() === now.getDate();- return sameDay ? hhmm : `${date.getMonth() + 1}月${date.getDate()}日 ${hhmm}`;+ return sameDay+ ? hhmm+ : localizer+ ? `${presentationDate(localizer, date)} ${hhmm}`+ : `${date.getMonth() + 1}月${date.getDate()}日 ${hhmm}`;}/** planType 透传字符串('plus' / 'enterprise_cbp_usage_based' 等)→ 展示名(title-case)。 */diff --git a/packages/maker-shared/src/sessionOperation.ts b/packages/maker-shared/src/sessionOperation.tsindex 13fee67d73..3b134fa711 100644--- a/packages/maker-shared/src/sessionOperation.ts+++ b/packages/maker-shared/src/sessionOperation.ts@@ -1,3 +1,8 @@+import {+ presentationText,+ type PresentationLocalizer,+} from './presentationLocalization.js';+export type ComposerVoiceState =| 'idle'| 'listening'@@ -116,18 +121,21 @@ export interface SessionOperationLayout {showQueue: boolean;}-export function composerVoiceStateLabel(state: ComposerVoiceState): string {+export function composerVoiceStateLabel(+ state: ComposerVoiceState,+ localizer?: PresentationLocalizer,+): string {switch (state) {case 'listening':- return '正在听';+ return presentationText(localizer, 'session.presentation.composer.voice.listening', '正在听');case 'submitting':- return '转写中';+ return presentationText(localizer, 'session.presentation.composer.voice.submitting', '转写中');case 'refining':- return '正在润色';+ return presentationText(localizer, 'session.presentation.composer.voice.refining', '正在润色');case 'error':- return '语音出错';+ return presentationText(localizer, 'session.presentation.composer.voice.error', '语音出错');default:- return '语音';+ return presentationText(localizer, 'session.presentation.composer.voice.idle', '语音');}}@@ -139,7 +147,10 @@ function isVoiceInputProcessing(state: ComposerVoiceState): boolean {return state === 'submitting' || state === 'refining';}-export function buildSessionComposerLayout(input: SessionComposerLayoutInput): SessionComposerLayout {+export function buildSessionComposerLayout(+ input: SessionComposerLayoutInput,+ localizer?: PresentationLocalizer,+): SessionComposerLayout {const hasDraft = input.draftText.trim().length > 0;const hasAttachments = input.attachmentCount > 0;const hasQuotes = (input.quoteCount ?? 0) > 0;@@ -152,15 +163,24 @@ export function buildSessionComposerLayout(input: SessionComposerLayoutInput): Sconst sendVisible = canSend || input.sending || voiceBusy;const stopVisible = input.canStop || input.queueBusy;const sendUnavailableReason = normalizeOptionalReason(input.sendUnavailableReason);- const voiceLabel = composerVoiceStateLabel(input.voiceState);- const attachmentDisabledReason = buildAttachmentDisabledReason(input);- const inputDisabledReason = buildComposerInputDisabledReason(input);+ const voiceLabel = composerVoiceStateLabel(input.voiceState, localizer);+ const attachmentDisabledReason = buildAttachmentDisabledReason(input, localizer);+ const inputDisabledReason = buildComposerInputDisabledReason(input, localizer);return {attachment: {active: input.attachmentPickerOpen || hasAttachments,disabled: attachmentDisabledReason !== null,disabledReason: attachmentDisabledReason,- label: hasAttachments ? `附件 ${input.attachmentCount}` : input.attachmentPickerOpen ? '收起附件' : '附件',+ label: hasAttachments+ ? presentationText(+ localizer,+ 'session.presentation.composer.attachment.count',+ `附件 ${input.attachmentCount}`,+ { count: input.attachmentCount },+ )+ : input.attachmentPickerOpen+ ? presentationText(localizer, 'session.presentation.composer.attachment.collapse', '收起附件')+ : presentationText(localizer, 'session.presentation.composer.attachment.label', '附件'),remove: {disabled: attachmentDisabledReason !== null,disabledReason: attachmentDisabledReason,@@ -170,9 +190,7 @@ export function buildSessionComposerLayout(input: SessionComposerLayoutInput): Sinput: {disabled: inputDisabledReason !== null,disabledReason: inputDisabledReason,- placeholder: buildComposerPlaceholder({- voiceState: input.voiceState,- }),+ placeholder: buildComposerPlaceholder(input.voiceState, localizer),},primaryAction: resolveComposerPrimaryAction({canSend,@@ -191,37 +209,43 @@ export function buildSessionComposerLayout(input: SessionComposerLayoutInput): S|| isVoiceInputProcessing(input.voiceState)|| (!canSend && input.voiceState !== 'listening'),disabledReason: input.sending- ? '消息正在发送到电脑端。'+ ? presentationText(localizer, 'session.presentation.composer.send.sendingReason', '消息正在发送到电脑端。'): input.attachmentBusy- ? '附件上传中,完成后再发送。'+ ? presentationText(localizer, 'session.presentation.composer.send.attachmentBusyReason', '附件上传中,完成后再发送。'): sendUnavailableReason?? (isVoiceInputProcessing(input.voiceState)- ? '语音正在处理,完成后再发送。'+ ? presentationText(localizer, 'session.presentation.composer.send.voiceBusyReason', '语音正在处理,完成后再发送。'): canSend || input.voiceState === 'listening'? null- : '输入文字、添加附件或引用后才能发送。'),- label: input.sending ? '发送中' : '发送',+ : presentationText(localizer, 'session.presentation.composer.send.emptyReason', '输入文字、添加附件或引用后才能发送。')),+ label: input.sending+ ? presentationText(localizer, 'session.presentation.composer.send.sending', '发送中')+ : presentationText(localizer, 'session.presentation.composer.send.label', '发送'),visible: sendVisible,},stop: {disabled: input.queueBusy || !input.canStop,disabledReason: input.queueBusy- ? '队列操作同步中,暂时不能停止。'+ ? presentationText(localizer, 'session.presentation.composer.stop.queueBusyReason', '队列操作同步中,暂时不能停止。'): input.canStop? null- : '电脑端当前没有可停止的执行。',- label: input.queueBusy ? '处理中' : '停止',+ : presentationText(localizer, 'session.presentation.composer.stop.unavailableReason', '电脑端当前没有可停止的执行。'),+ label: input.queueBusy+ ? presentationText(localizer, 'session.presentation.composer.stop.processing', '处理中')+ : presentationText(localizer, 'session.presentation.composer.stop.label', '停止'),visible: stopVisible,},voice: {active: input.voiceState === 'listening',disabled: input.sending || isVoiceInputProcessing(input.voiceState),disabledReason: input.sending- ? '消息正在发送到电脑端,完成后再录音。'- : isVoiceInputProcessing(input.voiceState) ? '语音正在处理,完成后再录音。' : null,+ ? presentationText(localizer, 'session.presentation.composer.voice.sendingReason', '消息正在发送到电脑端,完成后再录音。')+ : isVoiceInputProcessing(input.voiceState)+ ? presentationText(localizer, 'session.presentation.composer.voice.processingReason', '语音正在处理,完成后再录音。')+ : null,label: voiceLabel,},- guidanceText: buildComposerGuidanceText(input),+ guidanceText: buildComposerGuidanceText(input, localizer),statusText: buildComposerStatusText({attachmentBusy: input.attachmentBusy,attachmentCount: input.attachmentCount,@@ -231,7 +255,7 @@ export function buildSessionComposerLayout(input: SessionComposerLayoutInput): Ssending: input.sending,voiceLabel,voiceState: input.voiceState,- }),+ }, localizer),};}@@ -247,14 +271,26 @@ function shouldUseCompactComposer(input: SessionComposerLayoutInput): boolean {&& !input.sending;}-function buildAttachmentDisabledReason(input: SessionComposerLayoutInput): string | null {- if (input.attachmentBusy) return '附件处理中,完成后再继续添加。';- if (input.sending) return '消息正在发送到电脑端,完成后再调整附件。';+function buildAttachmentDisabledReason(+ input: SessionComposerLayoutInput,+ localizer?: PresentationLocalizer,+): string | null {+ if (input.attachmentBusy) {+ return presentationText(localizer, 'session.presentation.composer.attachment.busyReason', '附件处理中,完成后再继续添加。');+ }+ if (input.sending) {+ return presentationText(localizer, 'session.presentation.composer.attachment.sendingReason', '消息正在发送到电脑端,完成后再调整附件。');+ }return null;}-function buildComposerInputDisabledReason(input: SessionComposerLayoutInput): string | null {- if (input.sending) return '消息正在发送到电脑端。';+function buildComposerInputDisabledReason(+ input: SessionComposerLayoutInput,+ localizer?: PresentationLocalizer,+): string | null {+ if (input.sending) {+ return presentationText(localizer, 'session.presentation.composer.input.sendingReason', '消息正在发送到电脑端。');+ }return null;}@@ -263,11 +299,18 @@ function normalizeOptionalReason(reason: string | null | undefined): string | nureturn normalized ? normalized : null;}-export function buildSessionOperationLayout(input: SessionOperationLayoutInput): SessionOperationLayout {+export function buildSessionOperationLayout(+ input: SessionOperationLayoutInput,+ localizer?: PresentationLocalizer,+): SessionOperationLayout {if (!input.hasCurrentSession) {return {canUseComposer: false,- composerDisabledReason: '当前任务还没有同步完成。',+ composerDisabledReason: presentationText(+ localizer,+ 'session.presentation.composer.operation.sessionSyncing',+ '当前任务还没有同步完成。',+ ),composerDisabledReasonSource: 'session-syncing',composerSlot: 'missing-session',messageHistoryMode: 'hidden',@@ -294,7 +337,11 @@ export function buildSessionOperationLayout(input: SessionOperationLayoutInput):if (input.hasActivePendingInteraction && blocksComposer) {return {canUseComposer: false,- composerDisabledReason: '先处理电脑端的待处理请求后才能继续输入。',+ composerDisabledReason: presentationText(+ localizer,+ 'session.presentation.composer.operation.pendingInteraction',+ '先处理电脑端的待处理请求后才能继续输入。',+ ),composerDisabledReasonSource: 'pending-interaction',composerSlot: 'pending-interaction',messageHistoryMode: 'visible',@@ -346,43 +393,59 @@ function resolveComposerPrimaryAction(input: {return 'none';}-function buildComposerPlaceholder(input: Pick<SessionComposerLayoutInput, 'voiceState'>): string {- if (input.voiceState === 'listening') return '正在听……';- if (input.voiceState === 'submitting') return '正在转写语音';- if (input.voiceState === 'refining') return '正在润色语音';- return DESKTOP_SESSION_CHAT_PLACEHOLDER_ZH_CN;+function buildComposerPlaceholder(+ voiceState: ComposerVoiceState,+ localizer?: PresentationLocalizer,+): string {+ if (voiceState === 'listening') {+ return presentationText(localizer, 'session.presentation.composer.placeholder.listening', '正在听……');+ }+ if (voiceState === 'submitting') {+ return presentationText(localizer, 'session.presentation.composer.placeholder.submitting', '正在转写语音');+ }+ if (voiceState === 'refining') {+ return presentationText(localizer, 'session.presentation.composer.placeholder.refining', '正在润色语音');+ }+ return presentationText(+ localizer,+ 'session.presentation.composer.placeholder.default',+ DESKTOP_SESSION_CHAT_PLACEHOLDER_ZH_CN,+ );}-function buildComposerGuidanceText(input: SessionComposerLayoutInput): string {+function buildComposerGuidanceText(+ input: SessionComposerLayoutInput,+ localizer?: PresentationLocalizer,+): string {const hasDraft = input.draftText.trim().length > 0;const hasAttachments = input.attachmentCount > 0;const hasQuotes = (input.quoteCount ?? 0) > 0;- if (input.sending) return '消息正在写入桌面端队列,完成前请不要重复发送。';- if (input.queueBusy) return '正在同步队列操作,完成后会刷新队列状态。';+ if (input.sending) return presentationText(localizer, 'session.presentation.composer.guidance.sending', '消息正在写入桌面端队列,完成前请不要重复发送。');+ if (input.queueBusy) return presentationText(localizer, 'session.presentation.composer.guidance.queueBusy', '正在同步队列操作,完成后会刷新队列状态。');if (input.voiceState === 'listening' && hasDraft) {- return '点发送会结束语音并发送当前文字;点输入框会结束语音并弹出键盘。';+ return presentationText(localizer, 'session.presentation.composer.guidance.listeningWithDraft', '点发送会结束语音并发送当前文字;点输入框会结束语音并弹出键盘。');}- if (input.voiceState === 'listening') return '正在听;点发送会结束语音并发送识别的文字,点输入框可结束语音并弹出键盘。';- if (input.voiceState === 'submitting') return '正在转写语音,输入框会暂时锁定。';- if (input.voiceState === 'refining') return '正在润色语音,完成后会更新输入框。';- if (input.attachmentBusy) return '正在检查或上传附件,完成后会出现在附件列表。';+ if (input.voiceState === 'listening') return presentationText(localizer, 'session.presentation.composer.guidance.listening', '正在听;点发送会结束语音并发送识别的文字,点输入框可结束语音并弹出键盘。');+ if (input.voiceState === 'submitting') return presentationText(localizer, 'session.presentation.composer.guidance.submitting', '正在转写语音,输入框会暂时锁定。');+ if (input.voiceState === 'refining') return presentationText(localizer, 'session.presentation.composer.guidance.refining', '正在润色语音,完成后会更新输入框。');+ if (input.attachmentBusy) return presentationText(localizer, 'session.presentation.composer.guidance.attachmentBusy', '正在检查或上传附件,完成后会出现在附件列表。');if (input.sendUnavailableReason && (hasDraft || hasAttachments || hasQuotes)) return input.sendUnavailableReason;- if (hasAttachments && hasDraft) return `将发送 ${input.attachmentCount} 个附件和输入框里的文字。`;- if (hasAttachments) return `将只发送 ${input.attachmentCount} 个附件,也可以补充说明后再发送。`;- if (input.attachmentPickerOpen) return '可以添加手机上的照片、截图或文件。';- if (hasDraft) return '点发送后会进入桌面端队列,按当前任务设置执行。';- if (hasQuotes) return `将发送 ${input.quoteCount} 处引用,也可以补充说明后再发送。`;- if (input.canStop) return '电脑端正在执行;可继续排队输入,或点停止保留当前队列。';- return '输入文字开始,使用 / 调命令,使用 @ 引用项目资源。';+ if (hasAttachments && hasDraft) return presentationText(localizer, 'session.presentation.composer.guidance.attachmentsWithText', `将发送 ${input.attachmentCount} 个附件和输入框里的文字。`, { count: input.attachmentCount });+ if (hasAttachments) return presentationText(localizer, 'session.presentation.composer.guidance.attachmentsOnly', `将只发送 ${input.attachmentCount} 个附件,也可以补充说明后再发送。`, { count: input.attachmentCount });+ if (input.attachmentPickerOpen) return presentationText(localizer, 'session.presentation.composer.guidance.attachmentPickerOpen', '可以添加手机上的照片、截图或文件。');+ if (hasDraft) return presentationText(localizer, 'session.presentation.composer.guidance.draft', '点发送后会进入桌面端队列,按当前任务设置执行。');+ if (hasQuotes) return presentationText(localizer, 'session.presentation.composer.guidance.quotesOnly', `将发送 ${input.quoteCount} 处引用,也可以补充说明后再发送。`, { count: input.quoteCount });+ if (input.canStop) return presentationText(localizer, 'session.presentation.composer.guidance.canStop', '电脑端正在执行;可继续排队输入,或点停止保留当前队列。');+ return presentationText(localizer, 'session.presentation.composer.guidance.empty', '输入文字开始,使用 / 调命令,使用 @ 引用项目资源。');}function buildComposerStatusText(input: Pick<SessionComposerLayoutInput,'attachmentBusy' | 'attachmentCount' | 'canStop' | 'draftText' | 'queueBusy' | 'sending' | 'voiceState'-> & { voiceLabel: string }): string {- if (input.sending) return '正在发送到电脑端';- if (input.queueBusy) return '正在处理队列操作';+> & { voiceLabel: string }, localizer?: PresentationLocalizer): string {+ if (input.sending) return presentationText(localizer, 'session.presentation.composer.status.sending', '正在发送到电脑端');+ if (input.queueBusy) return presentationText(localizer, 'session.presentation.composer.status.queueBusy', '正在处理队列操作');if (isVoiceInputBusy(input.voiceState)) return input.voiceLabel;- if (input.attachmentBusy) return '正在处理附件';- return '就绪';+ if (input.attachmentBusy) return presentationText(localizer, 'session.presentation.composer.status.attachmentBusy', '正在处理附件');+ return presentationText(localizer, 'session.presentation.composer.status.ready', '就绪');}