an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
feat(i18n): add react-i18next multilingual UI (en + zh-CN)
taooo1fdfb34df285
diff --git a/package-lock.json b/package-lock.jsonindex a7665091..d7d248d2 100644--- a/package-lock.json+++ b/package-lock.json@@ -30,6 +30,7 @@"better-sqlite3": "^11.10.0","commit-graph": "^2.4.0","electron-updater": "^6.8.9",+ "i18next": "^26.3.6","localtunnel": "^2.0.2","monaco-editor": "^0.52.2","node-pty": "^1.0.0",@@ -37,6 +38,7 @@"posthog-node": "^5.48.2","react": "^18.3.1","react-dom": "^18.3.1",+ "react-i18next": "^17.0.11","react-markdown": "^10.1.0","remark-gfm": "^4.0.1","tunnelmole": "^2.4.0",@@ -1959,29 +1961,6 @@}}},- "node_modules/@openai/agents-core/node_modules/ws": {- "version": "8.21.0",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",- "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",- "license": "MIT",- "optional": true,- "peer": true,- "engines": {- "node": ">=10.0.0"- },- "peerDependencies": {- "bufferutil": "^4.0.1",- "utf-8-validate": ">=5.0.2"- },- "peerDependenciesMeta": {- "bufferutil": {- "optional": true- },- "utf-8-validate": {- "optional": true- }- }- },"node_modules/@openai/agents-realtime": {"version": "0.11.8","resolved": "https://registry.npmjs.org/@openai/agents-realtime/-/agents-realtime-0.11.8.tgz",@@ -6481,9 +6460,9 @@}},"node_modules/hono": {- "version": "4.12.26",- "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.26.tgz",- "integrity": "sha512-uyZtpnYxM9CmQ7QsQknM4zN8EftNqhON1qYeIKM0Se67CCEe2c44xyGURwB0axX2fBDu1dqHrHAc1hmNT8ITkw==",+ "version": "4.13.3",+ "resolved": "https://registry.npmjs.org/hono/-/hono-4.13.3.tgz",+ "integrity": "sha512-r8AO2mYHoLxSHkgafNeC/BXyb2vWRxD3jem4Ts+ptav8oTG5FIRifAjuJEmZI4bSvvc2ns0GxmIYiZnHqN3mMw==","license": "MIT","optional": true,"engines": {@@ -6523,6 +6502,15 @@"dev": true,"license": "ISC"},+ "node_modules/html-parse-stringify": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/html-parse-stringify/-/html-parse-stringify-4.0.1.tgz",+ "integrity": "sha512-0zHsZJrK7S3K2aucXWL6ycoYJ/iNtIcFHC/nYQgFklPtrv5LpJctIiSCroWZWeuoXvuyFdzp6KzjJQ+OT5MfFw==",+ "license": "MIT",+ "funding": {+ "url": "https://locize.com"+ }+ },"node_modules/html-url-attributes": {"version": "3.0.1","resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",@@ -6613,6 +6601,34 @@"ms": "^2.0.0"}},+ "node_modules/i18next": {+ "version": "26.3.6",+ "resolved": "https://registry.npmjs.org/i18next/-/i18next-26.3.6.tgz",+ "integrity": "sha512-Bu5Z2nAXgfVyM8xvW3jk9EKRIuX37PudsrBViThNFx7CR7aaYTpP01cxNB/E4c4UUzTDiAZRstEhsRfPOL/8xA==",+ "funding": [+ {+ "type": "individual",+ "url": "https://www.locize.com/i18next"+ },+ {+ "type": "individual",+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"+ },+ {+ "type": "individual",+ "url": "https://www.locize.com"+ }+ ],+ "license": "MIT",+ "peerDependencies": {+ "typescript": "^5 || ^6 || ^7"+ },+ "peerDependenciesMeta": {+ "typescript": {+ "optional": true+ }+ }+ },"node_modules/iconv-corefoundation": {"version": "1.1.7","resolved": "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz",@@ -9736,6 +9752,33 @@"react": "^18.3.1"}},+ "node_modules/react-i18next": {+ "version": "17.0.11",+ "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-17.0.11.tgz",+ "integrity": "sha512-cDtkXgxjuFTWUH6V+aQn1Ve5vDiUztCNPWW5GtSHDccsgRXO1nE6QFWCEmc1KAutrb3OUv87wFShJL5RhUwPXg==",+ "license": "MIT",+ "dependencies": {+ "@babel/runtime": "^7.29.2",+ "html-parse-stringify": "^4.0.1",+ "use-sync-external-store": "^1.6.0"+ },+ "peerDependencies": {+ "i18next": ">= 26.2.0",+ "react": ">= 16.8.0",+ "typescript": "^5 || ^6 || ^7"+ },+ "peerDependenciesMeta": {+ "react-dom": {+ "optional": true+ },+ "react-native": {+ "optional": true+ },+ "typescript": {+ "optional": true+ }+ }+ },"node_modules/react-icons": {"version": "5.6.0","resolved": "https://registry.npmjs.org/react-icons/-/react-icons-5.6.0.tgz",@@ -11226,7 +11269,7 @@"version": "5.9.3","resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz","integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,+ "devOptional": true,"license": "Apache-2.0","bin": {"tsc": "bin/tsc",diff --git a/package.json b/package.jsonindex 33c43f2a..32f7e6fc 100644--- a/package.json+++ b/package.json@@ -48,6 +48,7 @@"better-sqlite3": "^11.10.0","commit-graph": "^2.4.0","electron-updater": "^6.8.9",+ "i18next": "^26.3.6","localtunnel": "^2.0.2","monaco-editor": "^0.52.2","node-pty": "^1.0.0",@@ -55,6 +56,7 @@"posthog-node": "^5.48.2","react": "^18.3.1","react-dom": "^18.3.1",+ "react-i18next": "^17.0.11","react-markdown": "^10.1.0","remark-gfm": "^4.0.1","tunnelmole": "^2.4.0",diff --git a/src/renderer/src/components/AddAgentModal.tsx b/src/renderer/src/components/AddAgentModal.tsxindex 88ead4df..d200f6c1 100644--- a/src/renderer/src/components/AddAgentModal.tsx+++ b/src/renderer/src/components/AddAgentModal.tsx@@ -1,4 +1,5 @@import { useEffect, useLayoutEffect, useState, type CSSProperties } from 'react';+import { useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelButton } from './PixelButton';import { SpritePortrait } from './SpritePortrait';@@ -46,30 +47,32 @@ const ossGroupHead: CSSProperties = {const ossLink: CSSProperties = { color: 'var(--cth-ink-900)', textDecoration: 'underline', cursor: 'pointer' };// One-click briefing templates — fill Description + Goal with a sharp, ready-to-run-// role so a user isn't staring at a blank field (item 7).-const DESCRIPTION_TEMPLATES: { label: string; description: string; goal: string }[] = [+// role so a user isn't staring at a blank field (item 7). The template BRIEFINGS+// stay English (they become agent prompts — see the i18n report); only the+// picker labels are translated.+const DESCRIPTION_TEMPLATES: { labelKey: string; description: string; goal: string }[] = [{- label: 'Repo janitor',+ labelKey: 'addAgent.templatesHint.repoJanitor.label',description: 'keeps the codebase tidy and healthy',goal: 'Continuously hunt for dead code, lint errors, flaky tests, and small safe refactors. Fix the safe ones and leave a note for anything risky. Never change behavior without flagging it.'},{- label: 'Docs writer',+ labelKey: 'addAgent.templatesHint.docsWriter.label',description: 'keeps docs in sync with the code',goal: 'Watch for code changes that outdate the README and docs, then update them. Write for newcomers and prefer concrete examples over prose.'},{- label: 'Bug triager',+ labelKey: 'addAgent.templatesHint.bugTriager.label',description: 'investigates and root-causes bugs',goal: 'For each reported issue: reproduce it, find the root cause, then propose a minimal fix with evidence. No fixes without a confirmed root cause.'},{- label: 'Research assistant',+ labelKey: 'addAgent.templatesHint.researchAssistant.label',description: 'gathers and summarizes information',goal: 'Research the questions you are given across multiple sources, verify the key claims, and return a concise, cited summary.'},{- label: 'Release manager',+ labelKey: 'addAgent.templatesHint.releaseManager.label',description: 'prepares and ships releases',goal: 'Track what has shipped since the last release, update the changelog and version, and draft clear release notes.'}@@ -115,11 +118,12 @@ Repos, tools, style, or constraints to respect:// clusters Folder + Git isolation + Resume (all "where/how it runs"). Capabilities// isn't a field here — it rides an imported hire manifest (the pinned banner).type SectionKey = 'identity' | 'workspace' | 'engine' | 'briefing';-const SECTIONS: { key: SectionKey; label: string; hint: string }[] = [- { key: 'identity', label: 'Identity', hint: 'name · character · color' },- { key: 'workspace', label: 'Workspace', hint: 'folder · isolation · resume' },- { key: 'engine', label: 'Engine', hint: 'provider · model · command' },- { key: 'briefing', label: 'Briefing', hint: 'role · goal' }+const SECTIONS: { key: SectionKey; labelKey: string; hintKey: string }[] = [+ { key: 'identity', labelKey: 'addAgent.sections.identity.label', hintKey: 'addAgent.sections.identity.hint' },+ { key: 'workspace', labelKey: 'addAgent.sections.workspace.label', hintKey: 'addAgent.sections.workspace.hint' },+ { key: 'engine', labelKey: 'addAgent.sections.engine.label', hintKey: 'addAgent.sections.engine.hint' },+ { key: 'briefing', labelKey: 'addAgent.sections.briefing.label', hintKey: 'addAgent.sections.briefing.hint' }+];];function basename(path: string): string {@@ -139,6 +143,7 @@ export interface AddAgentModalProps {}export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalProps) {+ const { t: tr } = useTranslation();const addAgent = useStore(s => s.addAgent);// Deep links and file batches share one FIFO. The head alone seeds the form;// every item still requires an explicit spawn or skip.@@ -272,7 +277,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalconst sid = resumeSessionId.trim();if (!sid) { setFolderNote(undefined); return; }const resolved = await window.cth.resolveSessionCwd(sid);- if (resolved) { setCwd(resolved); setFolderNote(`folder set from session: ${resolved}`); }+ if (resolved) { setCwd(resolved); setFolderNote(tr('addAgent.folderFromSession', { path: resolved })); }else setFolderNote(undefined);};@@ -386,9 +391,9 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalsetError(undefined);// A required field can live in a section the user hasn't opened, so jump to// the offending section as we surface the error — the field is never hidden.- if (!name.trim()) { setError('Name is required'); setSection('identity'); return; }- if (!cwd) { setError('Pick a folder first'); setSection('workspace'); return; }- if (!command.trim()) { setError('Command is required'); setSection('engine'); return; }+ if (!name.trim()) { setError(tr('addAgent.errName')); setSection('identity'); return; }+ if (!cwd) { setError(tr('addAgent.errFolder')); setSection('workspace'); return; }+ if (!command.trim()) { setError(tr('addAgent.errCommand')); setSection('engine'); return; }setBusy(true);const id = uniqueId(name);@@ -513,7 +518,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<div onClick={(e) => e.stopPropagation()} style={{ width: 940, maxWidth: '95vw' }}><PixelPanelvariant="dialog"- title="ADD AGENT"+ title={tr('addAgent.title')}style={{ padding: 16 }}noPadding>@@ -534,14 +539,15 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModaldisplay: 'flex', flexDirection: 'column', gap: 2}}><span>- 📋 hire imported: <strong>{hireMeta.name}</strong>- {hireMeta.author ? <> · by {hireMeta.author}</> : null}- {reviewProgress ? <> · hire {reviewProgress.current} of {reviewProgress.total}</> : null}+ 📋 {tr('addAgent.hireImported')} <strong>{hireMeta.name}</strong>+ {hireMeta.author ? <> · {tr('addAgent.byAuthor', { author: hireMeta.author })}</> : null}+ {reviewProgress ? <> · {tr('addAgent.hireProgress', { current: reviewProgress.current, total: reviewProgress.total })}</> : null}+ </span></span>- <span>review every field — especially the command — before spawning.</span>+ <span>{tr('addAgent.reviewFields')}</span>{hireMeta.commandFlags && hireMeta.commandFlags.length > 0 && (<span style={{ display: 'flex', gap: 4, alignItems: 'baseline', flexWrap: 'wrap', marginTop: 2 }}>- <span style={{ fontSize: 12 }}>⚠️ flags this hire appends to the command:</span>+ <span style={{ fontSize: 12 }}>{tr('addAgent.hireFlags')}</span>{hireMeta.commandFlags.map((f, i) => (<codekey={`${f}-${i}`}@@ -561,7 +567,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal)}{hireMeta.skills && hireMeta.skills.length > 0 && (<span style={{ display: 'flex', gap: 4, alignItems: 'baseline', flexWrap: 'wrap', marginTop: 2 }}>- <span style={{ fontSize: 12 }}>skills this hire activates:</span>+ <span style={{ fontSize: 12 }}>{tr('addAgent.hireSkills')}</span>{hireMeta.skills.map((s) => (<codekey={s}@@ -590,7 +596,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<div style={{ display: 'flex', flexDirection: 'column', gap: 3, marginTop: 2 }}>{safe.length > 0 && (<span style={{ display: 'flex', gap: 4, alignItems: 'baseline', flexWrap: 'wrap' }}>- <span style={{ fontSize: 12 }}>MCP servers (safe, pre-enabled):</span>+ <span style={{ fontSize: 12 }}>{tr('addAgent.mcpSafe')}:</span>{safe.map((id) => (<code key={id} style={{fontFamily: 'var(--cth-font-mono)', fontSize: 12, padding: '0 4px',@@ -603,7 +609,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal)}{consent.length > 0 && (<span style={{ display: 'flex', gap: 4, alignItems: 'baseline', flexWrap: 'wrap' }}>- <span style={{ fontSize: 12 }}>⚠️ MCP (needs your consent — NOT auto-enabled):</span>+ <span style={{ fontSize: 12 }}>{tr('addAgent.mcpConsent')}:</span>{consent.map((id) => (<code key={id} style={{fontFamily: 'var(--cth-font-mono)', fontSize: 12, padding: '0 4px',@@ -613,7 +619,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal}}>{id}</code>))}<span style={{ fontSize: 11, color: 'var(--cth-ink-700)' }}>- — enable in Settings → MCP after reviewing+ {tr('addAgent.mcpEnableInSettings')}</span></span>)}@@ -649,10 +655,10 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModaldisplay: 'flex', alignItems: 'baseline', gap: 6}}><span style={{ color: active ? 'var(--cth-ink-900)' : 'var(--cth-ink-500)' }}>{i + 1}</span>- {s.label}+ {tr(s.labelKey)}</span><span style={{ fontFamily: 'var(--cth-font-ui)', fontSize: 11, color: 'var(--cth-ink-500)' }}>- {s.hint}+ {tr(s.hintKey)}</span></button>);@@ -663,7 +669,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<div style={{ flex: 1, minWidth: 0, minHeight: 260, display: 'flex', flexDirection: 'column', gap: 12 }}>{section === 'identity' && (<>- <Row label="Name">+ <Row label={tr('addAgent.name')}><inputvalue={name}onChange={(e) => {@@ -672,12 +678,12 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalconst match = characterForName(next);if (match) setCharacter(match);}}- placeholder="Ada"+ placeholder={tr('addAgent.namePlaceholder')}style={inputStyle}/></Row>- <Row label="Character">+ <Row label={tr('addAgent.character')}><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{OFFICE_CAST.map(c => (<button@@ -704,7 +710,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal</div></Row>- <Row label="Color">+ <Row label={tr('addAgent.color')}><div style={{ display: 'flex', gap: 6 }}>{ACCENTS.map(a => (<button@@ -729,14 +735,14 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal{section === 'workspace' && (<>- <Row label="Project">+ <Row label={tr('addAgent.project')}><div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8, marginBottom: 6 }}><span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- {repos.length > 0 ? 'Pick a project, or add a new one:' : 'No projects yet — add one to get started:'}+ {repos.length > 0 ? tr('addAgent.pickProject') : tr('addAgent.noProjects')}</span><buttononClick={addProject}- title="Pick a folder and register it as a project"+ title={tr('addAgent.addProjectTitle')}style={{flexShrink: 0, padding: '2px 8px 1px', border: 'none', cursor: 'pointer',background: 'var(--cth-cream-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-100)',@@ -744,7 +750,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModaldisplay: 'inline-flex', alignItems: 'center', gap: 4}}>- <Icon name="plus" /> add project+ <Icon name="plus" /> {tr('addAgent.addProject')}</button></div>{repos.length > 0 && (@@ -804,19 +810,19 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<inputvalue={cwd}onChange={(e) => setCwd(e.target.value)}- placeholder="/path/to/your/project"+ placeholder={tr('addAgent.projectPlaceholder')}style={{ ...inputStyle, flex: 1, fontFamily: 'var(--cth-font-mono)', fontSize: 13 }}/><PixelButton variant="secondary" size="md" onClick={pickFolder}><span style={{ display: 'inline-flex', gap: 4, alignItems: 'center' }}>- <Icon name="folder" /> pick+ <Icon name="folder" /> {tr('addAgent.pick')}</span></PixelButton></div>{cwd.trim() && !repos.includes(cwd.trim()) && (<buttononClick={() => registerProject(cwd)}- title="Save this folder to your projects so it's a one-click pick next time"+ title={tr('addAgent.saveAsProjectTitle')}style={{alignSelf: 'flex-start', marginTop: 2,padding: '2px 8px 1px', border: 'none', cursor: 'pointer',@@ -825,7 +831,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModaldisplay: 'inline-flex', alignItems: 'center', gap: 4}}>- <Icon name="plus" /> save as project+ <Icon name="plus" /> {tr('addAgent.saveAsProject')}</button>)}</Row>@@ -839,16 +845,16 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalstyle={{ width: 16, height: 16, cursor: resuming ? 'not-allowed' : 'pointer' }}/><span style={{ fontFamily: 'var(--cth-font-ui)', fontSize: 13, color: 'var(--cth-ink-900)' }}>- Git isolation (own worktree)+ {tr('addAgent.gitIsolation')}</span></label>- <Row label="Resume session ID (optional)">+ <Row label={tr('addAgent.resumeSession')}><inputvalue={resumeSessionId}onChange={(e) => { setResumeSessionId(e.target.value); setFolderNote(undefined); }}onBlur={resolveFolderFromSession}- placeholder="paste a Claude session id to continue its conversation"+ placeholder={tr('addAgent.resumePlaceholder')}style={{ ...inputStyle, fontFamily: 'var(--cth-font-mono)', fontSize: 13 }}/>{folderNote && (@@ -858,7 +864,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal)}{resuming && (<span style={{ fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-700)' }}>- Will resume this session in the chosen folder (git isolation disabled).+ {tr('addAgent.resumeNote')}</span>)}</Row>@@ -867,7 +873,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal{section === 'engine' && (<>- <Row label="Provider">+ <Row label={tr('addAgent.provider')}><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{AGENT_PROVIDER_PRESETS.map((p) => {const active = provider === p.id;@@ -877,11 +883,11 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalonClick={() => pickProvider(p.id)}title={p.id === 'antigravity'- ? 'Spawn the Antigravity CLI (agy) with a Gemini model'+ ? tr('addAgent.providerAntigravity'): p.id === 'codex'- ? 'Spawn the Codex CLI (codex) without Claude-only flags'+ ? tr('addAgent.providerCodex'): p.id === 'custom'- ? 'Run any command — no Claude-only flags'+ ? tr('addAgent.providerCustom'): p.label}style={{@@ -903,7 +909,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal</div></Row>- {preset.supportsModel && <Row label="Model">+ {preset.supportsModel && <Row label={tr('addAgent.model')}><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{(() => {// An imported hire may name a model newer than this picker's@@ -912,7 +918,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal// the command field already carries it either way.const known = modelsForProvider(provider);return model && !known.some((m) => m.id === model)- ? [...known, { id: model, label: `${model} (from hire)` }]+ ? [...known, { id: model, label: tr('addAgent.fromHire', { model }) }]: known;})().map((m) => {const active = (model ?? '') === (m.id ?? '');@@ -920,7 +926,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<buttonkey={m.label}onClick={() => pickModel(m.id)}- title={m.id ?? 'CLI default model'}+ title={m.id ?? tr('addAgent.cliDefaultModel')}style={{padding: '3px 8px 1px',background: active ? `var(--cth-${accent}-light)` : 'var(--cth-cream-100)',@@ -944,10 +950,10 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal`ollama/<tag>`; provider slugs are identical across engines)and rebuilds the command. */}{hasOssQuickPicks(provider) && (- <Row label="OSS models">+ <Row label={tr('addAgent.ossModels')}><div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}><div>- <div style={ossGroupHead}>Local · no key (Ollama / LM Studio)</div>+ <div style={ossGroupHead}>{tr('addAgent.ossLocal')}</div><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{OSS_LOCAL_PICKS.map((p) => {const slug = localSlugFor(provider, p.tag);@@ -956,7 +962,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<buttonkey={p.tag}onClick={() => pickModel(slug)}- title={`${slug} · needs ~${p.minRam} RAM — pull with: ollama pull ${p.tag}`}+ title={tr('addAgent.ossLocalTitle', { slug, ram: p.minRam, tag: p.tag })}style={ossChip(active, accent)}>{p.label}@@ -966,7 +972,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal</div></div><div>- <div style={ossGroupHead}>Via OSS provider · BYOK</div>+ <div style={ossGroupHead}>{tr('addAgent.ossByok')}</div><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{OSS_PROVIDER_PICKS.map((p) => {const active = (model ?? '') === p.slug;@@ -974,7 +980,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal<buttonkey={p.slug}onClick={() => pickModel(p.slug)}- title={`${p.slug} · set ${p.keyEnv} in Settings → AI Engines`}+ title={tr('addAgent.ossByokTitle', { slug: p.slug, keyEnv: p.keyEnv })}style={ossChip(active, accent)}>{p.label}@@ -989,24 +995,23 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal{(provider === 'opencode' || provider === 'crush' || provider === 'pi' || provider === 'qwen') && (<div style={{ fontSize: 12, color: 'var(--cth-ink-500)', lineHeight: '16px', margin: '2px 0 6px' }}>- BYOK keys & local endpoints for this engine live in <strong>Settings → AI Engines</strong>.- {' '}New to local models? Read{' '}+ {tr('addAgent.byokNote')}+ {' '}<ahref={OSS_BLOG_LINKS.openModels}onClick={(e) => { e.preventDefault(); void window.cth.openExternal(OSS_BLOG_LINKS.openModels); }}style={ossLink}- >run on open models</a>- {' '}or{' '}+ >{tr('addAgent.runOnOpenModels')}</a>+ {' '}<ahref={OSS_BLOG_LINKS.macMini}onClick={(e) => { e.preventDefault(); void window.cth.openExternal(OSS_BLOG_LINKS.macMini); }}style={ossLink}- >set up on a Mac Mini</a>.- {' '}Live end-to-end is pending real model calls (verify on-device).+ >{tr('addAgent.setUpMacMini')}</a>.</div>)}- <Row label={config.autoMode && preset.autoFlag ? 'Command (auto mode on)' : 'Command'}>+ <Row label={config.autoMode && preset.autoFlag ? tr('addAgent.commandAuto') : tr('addAgent.command')}><inputvalue={command}onChange={(e) => setCommand(e.target.value)}@@ -1027,11 +1032,11 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal{section === 'briefing' && (<>- <Row label="Templates">+ <Row label={tr('addAgent.templates')}><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{DESCRIPTION_TEMPLATES.map((t) => (<button- key={t.label}+ key={t.labelKey}onClick={() => { setDescription(t.description); setGoal(t.goal); }}title={t.goal}style={{@@ -1042,26 +1047,26 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalcolor: 'var(--cth-ink-900)', cursor: 'pointer', border: 'none'}}>- {t.label}+ {tr(t.labelKey)}</button>))}</div></Row>- <Row label="Role">+ <Row label={tr('addAgent.description')}><inputvalue={description}onChange={(e) => setDescription(e.target.value)}- placeholder="job — what this agent is for, not live status"+ placeholder={tr('addAgent.descriptionPlaceholder')}style={inputStyle}/></Row>- <Row label="Goal (optional)">+ <Row label={tr('addAgent.goal')}><textareavalue={goal}onChange={(e) => setGoal(e.target.value)}- placeholder="long-running directive injected on every prompt"+ placeholder={tr('addAgent.goalPlaceholder')}rows={2}style={{ ...inputStyle, fontFamily: 'var(--cth-font-ui)', resize: 'none' }}/>@@ -1092,8 +1097,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal}}><div style={{ display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8, flexWrap: 'wrap' }}><span style={{ fontSize: 12, color: 'var(--cth-ink-700)', lineHeight: '17px' }}>- <strong>Import hire</strong> loads a ready-made agent from a <code style={{ fontFamily: 'var(--cth-font-mono)' }}>.json</code> manifest —- it fills in every field below for you to review. Nothing spawns until you hit <em>spawn</em>.+ {tr('addAgent.importHireDesc')}</span><buttononClick={() => setShowHirePrompt((v) => !v)}@@ -1105,14 +1109,13 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalfontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)'}}>- {showHirePrompt ? 'hide AI prompt' : 'generate one with AI…'}+ {showHirePrompt ? tr('addAgent.hideAIPrompt') : tr('addAgent.generateWithAI')}</button></div>{showHirePrompt && (<div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}><span style={{ fontSize: 12, color: 'var(--cth-ink-500)', lineHeight: '16px' }}>- Copy this into Claude/ChatGPT/Gemini, fill in the details at the bottom, then save- its JSON reply as a <code style={{ fontFamily: 'var(--cth-font-mono)' }}>.json</code> file and import it here.+ {tr('addAgent.aiPromptHint')}</span><textareareadOnly@@ -1128,7 +1131,7 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModal/><div><PixelButton variant="secondary" size="sm" onClick={copyHirePrompt}>- {copiedPrompt ? 'copied ✓' : 'copy prompt'}+ {copiedPrompt ? tr('addAgent.copied') : tr('addAgent.copyPrompt')}</PixelButton></div></div>@@ -1141,17 +1144,17 @@ export function AddAgentModal({ onClose, config, onConfigChange }: AddAgentModalsize="md"onClick={importHire}disabled={busy}- title="Import one or more hire manifests (.json)"+ title={tr('addAgent.importHireBtnTitle')}>- import hires…+ {tr('addAgent.importHireBtn')}</PixelButton><div style={{ flex: 1 }} />{pendingHire && (- <PixelButton variant="secondary" size="md" onClick={skipHire} disabled={busy}>skip hire</PixelButton>+ <PixelButton variant="secondary" size="md" onClick={skipHire} disabled={busy}>{tr('addAgent.skipHire')}</PixelButton>)}- <PixelButton variant="ghost" size="md" onClick={onClose} disabled={busy}>cancel</PixelButton>+ <PixelButton variant="ghost" size="md" onClick={onClose} disabled={busy}>{tr('common.cancel')}</PixelButton><PixelButton variant="primary" size="md" onClick={submit} disabled={busy}>- {busy ? 'spawning...' : 'spawn'}+ {busy ? tr('addAgent.spawning') : tr('addAgent.spawn')}</PixelButton></div></div>diff --git a/src/renderer/src/components/AgentCard.tsx b/src/renderer/src/components/AgentCard.tsxindex 2f2a3038..cd5158c4 100644--- a/src/renderer/src/components/AgentCard.tsx+++ b/src/renderer/src/components/AgentCard.tsx@@ -1,4 +1,5 @@import { useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelBadge, StatusKind } from './PixelBadge';import { useHasTerminalDraft } from './terminalPool';@@ -58,6 +59,7 @@ export function AgentCard({contextTokens, contextLimit, selected, isGod, onClick, onRename,doingCount = 0, onTaskNoteClick, draggable, note, onEditNote}: AgentCardProps) {+ const { t } = useTranslation();const [hover, setHover] = useState(false);const typing = useHasTerminalDraft(ptyId);// IDENTITY and SELECTION are two different things, and conflating them is why@@ -87,8 +89,8 @@ export function AgentCard({: progress >= 6 ? 'var(--cth-lemon)': `var(--cth-${accent})`;const gaugeTitle = contextTokens !== undefined && contextLimit- ? `Context: ${fmtK(contextTokens)} / ${fmtK(contextLimit)} tokens (${Math.round((contextTokens / contextLimit) * 100)}%)`- : 'Context gauge — fills once the agent reports activity';+ ? t('agentCard.contextTitle', { used: fmtK(contextTokens), limit: fmtK(contextLimit), pct: Math.round((contextTokens / contextLimit) * 100) })+ : t('agentCard.contextGaugeTitle');// ONE card size for every agent. God used to be 216x86 against everyone// else's 196x76, so the dock never lined up — and once the selection ring was@@ -158,7 +160,9 @@ export function AgentCard({actively DOING a ledger task. Click → the task's detail overlay. */}{doingCount > 0 && (<span- title={`actively working ${doingCount} task${doingCount === 1 ? '' : 's'} — click to open`}+ title={doingCount === 1+ ? t('agentCard.doingTasks', { count: doingCount })+ : t('agentCard.doingTasksPlural', { count: doingCount })}onClick={(e) => { e.stopPropagation(); onTaskNoteClick?.(); }}style={{position: 'absolute', right: -4, bottom: -5, zIndex: 2,@@ -217,8 +221,7 @@ export function AgentCard({fontFamily: 'var(--cth-font-display)', fontSize: 7, lineHeight: '11px',background: `var(--cth-${accent})`, color: 'var(--cth-ink-900)',padding: '1px 4px 0', flexShrink: 0- }}>BOSS</span>- )}+ }}>{t('agentCard.boss')}</span> )}</span>{/* flexShrink:0 — the badge is a fixed 2-to-5 character chip; whenit was allowed to shrink, the browser resolved the overflow by@@ -278,8 +281,8 @@ export function AgentCard({onKeyDown={(e) => {if (e.key === 'Enter' || e.key === ' ') { e.stopPropagation(); e.preventDefault(); onEditNote(); }}}- title={note ? 'Edit private note' : 'Add private note'}- aria-label={`Edit note for ${name}`}+ title={note ? t('agentCard.editNote') : t('agentCard.addNote')}+ aria-label={t('agentCard.editNoteAria', { name })}style={{flexShrink: 0, width: 15, height: 14,display: 'inline-flex', alignItems: 'center', justifyContent: 'center',diff --git a/src/renderer/src/components/AgentControlStrip.tsx b/src/renderer/src/components/AgentControlStrip.tsxindex d1e88362..29795d29 100644--- a/src/renderer/src/components/AgentControlStrip.tsx+++ b/src/renderer/src/components/AgentControlStrip.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelButton } from './PixelButton';import { AgentHoldButton } from './AgentHoldButton';@@ -32,6 +33,7 @@ interface Snapshot {}export function AgentControlStrip({ agentId }: { agentId: string }) {+ const { t } = useTranslation();const [snap, setSnap] = useState<Snapshot | null>(null);const [steer, setSteer] = useState('');const [note, setNote] = useState('');@@ -52,20 +54,20 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {const togglePause = async () => {const s = snap?.paused ? await window.cth.controlResume(agentId) : await window.cth.controlPause(agentId, true);if (s) setSnap(s);- flash(snap?.paused ? 'tools allowed again' : 'tools blocked from the next call on');+ flash(snap?.paused ? t('agentControl.flashResumed') : t('agentControl.flashPaused'));};const halt = async () => {const s = await window.cth.controlHalt(agentId);if (s) setSnap(s);- flash('will stop after the current step');+ flash(t('agentControl.flashHalt'));};const sendSteer = async () => {- const t = steer.trim();- if (!t) return;- const s = await window.cth.controlSteer(agentId, t);+ const t_ = steer.trim();+ if (!t_) return;+ const s = await window.cth.controlSteer(agentId, t_);if (s) setSnap(s);setSteer('');- flash('note queued, arrives on its next turn');+ flash(t('agentControl.flashSteer'));};return (@@ -82,20 +84,22 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {<spanclassName="cth-tip cth-tip-left cth-tip-wrap"data-tip={snap?.paused- ? 'Give its tools back. The agent keeps its session and picks up where it stopped.'- : 'The agent keeps thinking and talking to you, but cannot read, write or run anything until you allow it again. Immediate, and reversible.'}- aria-label={snap?.paused ? 'Allow tools again' : 'Block this agent from using tools'}+ ? t('agentControl.allowToolsTip')+ : t('agentControl.blockToolsTip')}+ aria-label={snap?.paused ? t('agentControl.allowToolsAria') : t('agentControl.blockToolsAria')}>- {snap?.paused ? 'allow tools' : 'block tools'}+ {snap?.paused ? t('agentControl.allowTools') : t('agentControl.blockTools')}</span></PixelButton><PixelButton variant="destructive" size="sm" onClick={halt}><spanclassName="cth-tip cth-tip-left cth-tip-wrap"- data-tip="Let it finish the step it is on, then stop. The process and its session survive, so Restart and Continue can pick it back up. To end the process outright, use the X."- aria-label="Stop this agent after the current step"+ data-tip={t('agentControl.stopAfterStepTip')}+ aria-label={t('agentControl.stopAfterStepAria')}>- stop after this step+ {t('agentControl.stopAfterStep')}+ </span>+ </PixelButton></span></PixelButton>{/* Sits with them at the founder's call. It is a different KIND of@@ -106,10 +110,10 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {{/* v0.3.4: the auto-delivery switch moved to the god's Command Centerheader — ONE floor-wide control instead of a per-agent toggle. */}{snap?.autoDeliveryPaused && (- <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>queued messages held (whole floor)</span>+ <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{t('agentControl.deliveryPaused')}</span>)}- {snap?.halted && <span style={{ fontSize: 11, color: 'var(--cth-coral)' }}>stopping after this step…</span>}- {!!snap?.pendingSteers && <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{snap.pendingSteers} note{snap.pendingSteers === 1 ? '' : 's'} waiting</span>}+ {snap?.halted && <span style={{ fontSize: 11, color: 'var(--cth-coral)' }}>{t('agentControl.halting')}</span>}+ {!!snap?.pendingSteers && <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{t('agentControl.steersQueued', { count: snap.pendingSteers })}</span>}</div><div style={{ display: 'flex', gap: 6 }}><input@@ -117,7 +121,7 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {value={steer}onChange={(e) => setSteer(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') sendSteer(); }}- placeholder="send this agent a note… (arrives as context on its next turn, nothing is typed into its terminal)"+ placeholder={t('agentControl.steerPlaceholder')}style={{flex: 1, padding: '4px 6px', background: 'var(--cth-paper-100)', border: 'none',fontFamily: 'var(--cth-font-ui)',@@ -127,9 +131,9 @@ export function AgentControlStrip({ agentId }: { agentId: string }) {<PixelButton variant="secondary" size="sm" onClick={sendSteer} disabled={!steer.trim()}><spanclassName="cth-tip cth-tip-wrap"- data-tip="Hands the agent a note at its next turn boundary. It does not interrupt what it is doing now, and nothing is typed into its terminal."- aria-label="Send this agent a note"- >send</span>+ data-tip={t('agentControl.steerTip')}+ aria-label={t('agentControl.steerAria')}+ >{t('agentControl.steer')}</span></PixelButton></div>{note && <span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{note}</span>}diff --git a/src/renderer/src/components/AgentDetailPanel.tsx b/src/renderer/src/components/AgentDetailPanel.tsxindex 8628e312..bee94af1 100644--- a/src/renderer/src/components/AgentDetailPanel.tsx+++ b/src/renderer/src/components/AgentDetailPanel.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelBadge } from './PixelBadge';import { PixelButton } from './PixelButton';@@ -24,6 +25,7 @@ export interface AgentDetailPanelProps {}export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {+ const { t } = useTranslation();const [openTerminalState, setOpenTerminalState] = useState<'idle' | 'opening' | 'ok' | 'error'>('idle');const [openTerminalError, setOpenTerminalError] = useState<string | undefined>();const [editOpen, setEditOpen] = useState(false);@@ -115,7 +117,7 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {const onKill = async () => {if (!agent.ptyId) return;- if (!confirm(`Close ${agent.name}? The PTY process will terminate and the agent is archived (kept in history, off the floor).`)) return;+ if (!confirm(t('agentDetail.killConfirm', { name: agent.name }))) return;await window.cth.killPty(agent.ptyId);disposeTerminal(agent.ptyId);archiveAgent(agent.id);@@ -185,11 +187,11 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {<PixelButton variant="secondary" size="sm" onClick={() => useStore.getState().setIdeOpen(true, agent.id)}><spanclassName="cth-tip cth-tip-wrap"- data-tip={`Open the IDE: browse and edit files in ${agent.project}, and see uncommitted changes as a diff.`}- aria-label="Open the IDE"+ data-tip={t('agentDetail.ideTip', { project: agent.project })}+ aria-label={t('agentDetail.openIde')}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- <Icon name="code" />{!compactHeader && ' IDE'}+ <Icon name="code" />{!compactHeader && t('agentDetail.ide')}</span></PixelButton><PixelButton variant="secondary" size="sm" onClick={openTerminal} disabled={openTerminalState === 'opening'}>@@ -198,18 +200,20 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {get; the tip names the folder you get it in. */}<spanclassName="cth-tip cth-tip-wrap"- data-tip={`Open your system terminal app in ${agent.cwd} — a normal shell in this agent's folder, separate from the agent's own terminal.`}- aria-label="Open a system terminal in this agent's folder"+ data-tip={t('agentDetail.terminalTip', { cwd: agent.cwd })}+ aria-label={t('agentDetail.openTerminalAria')}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}><Icon name="terminal" />{/* The transient states survive compact mode: they are feedback ona click you just made, and they are two characters wide. Onlythe resting word "terminal" is worth its space. */}- {openTerminalState === 'opening' ? '...'- : openTerminalState === 'ok' ? 'ok'- : openTerminalState === 'error' ? 'err'- : compactHeader ? '' : 'terminal'}+ {openTerminalState === 'opening' ? t('agentDetail.opening')+ : openTerminalState === 'ok' ? t('agentDetail.ok')+ : openTerminalState === 'error' ? t('agentDetail.err')+ : compactHeader ? '' : t('agentDetail.open')}+ </span>+ </PixelButton></span></PixelButton>{isReal && (@@ -239,8 +243,9 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {{sidebarTab === 'terminal' && (isReal && agent.ptyId ? (isFullscreenedHere ? (- <EmptyTab title="In focus mode">- This terminal is open in focus mode. Press Esc or exit focus mode to bring it back here.+ <EmptyTab title={t('agentDetail.inFullscreen')}>+ {t('agentDetail.fullscreenDesc')}+ </EmptyTab></EmptyTab>) : (<div style={{ flex: 1, minWidth: 0, minHeight: 0, display: 'flex', flexDirection: 'column' }}>@@ -265,8 +270,8 @@ export function AgentDetailPanel({ agent }: AgentDetailPanelProps) {</div>)) : (- <EmptyTab title="No PTY">- This agent has no live terminal. Spawn an agent through "add agent" to use the terminal tab.+ <EmptyTab title={t('agentDetail.noPty')}>+ {t('agentDetail.noPtyDesc')}</EmptyTab>))}diff --git a/src/renderer/src/components/AgentStrip.tsx b/src/renderer/src/components/AgentStrip.tsxindex acb6aa01..7a7fcc48 100644--- a/src/renderer/src/components/AgentStrip.tsx+++ b/src/renderer/src/components/AgentStrip.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { AgentCard } from './AgentCard';import { PixelButton } from './PixelButton';import { Icon } from './Icon';@@ -13,6 +14,7 @@ export interface AgentStripProps {}export function AgentStrip({ config }: AgentStripProps) {+ const { t } = useTranslation();const agents = useStore(s => s.agents);const restorableAgents = useStore(s => s.restorableAgents);const selectedId = useStore(s => s.selectedId);@@ -183,11 +185,11 @@ export function AgentStrip({ config }: AgentStripProps) {<span style={{fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)'- }}>PRIVATE NOTE · {a.name.toUpperCase()}</span>+ }}>{t('agentStrip.privateNote', { name: a.name.toUpperCase() })}</span><buttononClick={() => setNoteEditId(null)}- title="Done"- aria-label="Close note editor"+ title={t('agentStrip.done')}+ aria-label={t('agentStrip.closeNoteEditor')}style={{flexShrink: 0, width: 18, height: 18, padding: 0, lineHeight: 1,display: 'inline-flex', alignItems: 'center', justifyContent: 'center',@@ -206,8 +208,8 @@ export function AgentStrip({ config }: AgentStripProps) {value={a.note ?? ''}onChange={(e) => setAgentNote(a.id, e.target.value)}onKeyDown={(e) => { if (e.key === 'Escape') setNoteEditId(null); }}- placeholder="one line per bullet…"- aria-label={`Note for ${a.name}`}+ placeholder={t('agentStrip.notePlaceholder')}+ aria-label={t('agentCard.noteAria', { name: a.name })}style={{width: '100%', padding: '6px 8px',border: 'none', outline: 'none', resize: 'none', boxSizing: 'border-box',@@ -218,7 +220,7 @@ export function AgentStrip({ config }: AgentStripProps) {}}/><span style={{ fontSize: 10, color: 'var(--cth-ink-500)' }}>- one line = one bullet · esc to close+ {t('agentStrip.oneLineOneBullet')}</span></div></>@@ -233,7 +235,7 @@ export function AgentStrip({ config }: AgentStripProps) {onClick={() => setAddAgentOpen(true)}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center', whiteSpace: 'nowrap' }}>- <Icon name="plus" /> add agent+ <Icon name="plus" /> {t('agentStrip.addAgent')}</span></PixelButton>{/* ONE restore control, pinned to the strip's right edge. Busy (manual OR@@ -246,8 +248,8 @@ export function AgentStrip({ config }: AgentStripProps) {ref={restoreBtnRef}style={{ alignSelf: 'center', flexShrink: 0, marginLeft: 'auto' }}title={restoreBusy- ? "Your previous session's agents are being respawned with their original ids, so memory and inboxes reattach."- : `Previous session: ${restorableAgents.map((a: Agent) => a.name).join(', ')}`}+ ? t('agentStrip.restoringTitle')+ : t('agentStrip.restoreTitle', { names: restorableAgents.map((a: Agent) => a.name).join(', ') })}><PixelButtonvariant="primary"@@ -257,7 +259,7 @@ export function AgentStrip({ config }: AgentStripProps) {><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center', whiteSpace: 'nowrap' }}><Icon name="play" />- {restoreBusy ? 'restoring your team…' : `restore team (${restorableAgents.length}) ▴`}+ {restoreBusy ? t('agentStrip.restoringTeam') : t('agentStrip.restoreTeam', { count: restorableAgents.length })}</span></PixelButton></span>@@ -281,7 +283,7 @@ export function AgentStrip({ config }: AgentStripProps) {fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase'}}>- previous session+ {t('agentStrip.previousSession')}</span>{/* Per-agent dismiss wires straight to removeRestorableAgent(filters + persistRestorable), so a dismissed agent never@@ -289,7 +291,7 @@ export function AgentStrip({ config }: AgentStripProps) {{restorableAgents.map((a: Agent) => (<spankey={a.id}- title={`${a.name} — restorable from last session`}+ title={t('agentStrip.restorable', { name: a.name })}style={{display: 'flex', alignItems: 'center', gap: 6,height: 26, padding: '0 4px 0 8px',@@ -306,8 +308,8 @@ export function AgentStrip({ config }: AgentStripProps) {</span><buttononClick={() => useStore.getState().removeRestorableAgent(a.id)}- title={`Dismiss ${a.name} — remove permanently from the restore list`}- aria-label={`Dismiss ${a.name}`}+ title={t('agentStrip.dismiss', { name: a.name })}+ aria-label={t('agentStrip.dismissAria', { name: a.name })}style={{display: 'inline-flex', alignItems: 'center', justifyContent: 'center',width: 18, height: 18, padding: 0, lineHeight: 1,@@ -323,7 +325,7 @@ export function AgentStrip({ config }: AgentStripProps) {onClick={() => { setRestoreMenuOpen(false); void restoreTeam(); }}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center', whiteSpace: 'nowrap' }}>- <Icon name="play" /> restore all ({restorableAgents.length})+ <Icon name="play" /> {t('agentStrip.restoreAll', { count: restorableAgents.length })}</span></PixelButton></div>diff --git a/src/renderer/src/components/AskMeTab.tsx b/src/renderer/src/components/AskMeTab.tsxindex db1dd86f..f8571745 100644--- a/src/renderer/src/components/AskMeTab.tsx+++ b/src/renderer/src/components/AskMeTab.tsx@@ -1,4 +1,5 @@import { useCallback, useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelButton } from './PixelButton';import { PixelBadge } from './PixelBadge';import { useStore } from '@/store/store';@@ -40,6 +41,7 @@ function dependentsTree(id: string, all: HiveTask[], seen = new Set<string>()):}export function AskMeTab() {+ const { t: translate } = useTranslation();const agents = useStore((s) => s.agents);const restorable = useStore((s) => s.restorableAgents);const [tasks, setTasks] = useState<HiveTask[]>([]);@@ -153,10 +155,9 @@ export function AskMeTab() {<div style={{ flex: 1, minHeight: 0, overflowY: 'auto', background: 'var(--cth-paper-200)', padding: 10, display: 'flex', flexDirection: 'column', gap: 10, fontFamily: 'var(--cth-font-mono)' }}>{waiting.length === 0 && (<div style={{ textAlign: 'center', padding: '24px 12px', color: 'var(--cth-ink-500)', fontSize: 12 }}>- Nothing needs you right now. 🌿<br />+ {translate('askMe.emptyTitle')}<br /><span style={{ fontSize: 11, color: 'var(--cth-ink-300)' }}>- When the team blocks a task on your input — a question to answer or a to-do only- you can perform — it shows up here (and on the ASK ME board on the floor).+ {translate('askMe.emptySub')}</span></div>)}@@ -175,7 +176,7 @@ export function AskMeTab() {}}><buttononClick={() => openTaskDetail(t.id)}- title="open the full task detail"+ title={translate('askMe.openDetail')}style={{border: 'none', background: 'transparent', cursor: 'pointer', padding: 0, textAlign: 'left',fontFamily: 'var(--cth-font-mono)', fontSize: 15, color: 'var(--cth-ink-900)',@@ -191,8 +192,8 @@ export function AskMeTab() {<buttononClick={() => void dismiss(t)}disabled={sending === t.id}- title="dismiss — clear this off the ASK ME board without answering (history kept)"- aria-label="dismiss this ask"+ title={translate('askMe.dismissTitle')}+ aria-label={translate('askMe.dismissAria')}style={{flexShrink: 0, width: 18, height: 18, padding: 0, marginLeft: 2,display: 'flex', alignItems: 'center', justifyContent: 'center', lineHeight: 1,@@ -217,7 +218,7 @@ export function AskMeTab() {onChange={(e) => setAnswerDraft(t.id, e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter' && (e.metaKey || e.ctrlKey)) void sendAnswer(t); }}rows={3}- placeholder="Your answer — or 'done', with the result… (Ctrl+Enter to send)"+ placeholder={translate('askMe.answerPlaceholder')}style={{width: '100%', boxSizing: 'border-box', padding: '6px 8px', resize: 'vertical',background: 'var(--cth-paper-100)', border: 'none',@@ -232,19 +233,24 @@ export function AskMeTab() {disabled={!(drafts[t.id] ?? '').trim() || sending === t.id}onClick={() => void sendAnswer(t)}>- {sending === t.id ? 'sending…' : 'respond & unblock'}+ {sending === t.id ? translate('askMe.sending') : translate('askMe.respond')}</PixelButton>{(t.humanQA?.filter((e) => e.a).length ?? 0) > 0 && (<buttononClick={() => openTaskDetail(t.id)}- title="open the task detail with the full Q&A history"+ title={translate('askMe.viewAnswersHistory')}style={{border: 'none', background: 'transparent', cursor: 'pointer', padding: 0,fontSize: 10, color: 'var(--cth-ink-700)', fontFamily: 'var(--cth-font-display)',textDecoration: 'underline'}}>- VIEW {t.humanQA!.filter((e) => e.a).length} EARLIER ANSWER{t.humanQA!.filter((e) => e.a).length === 1 ? '' : 'S'}+ {(() => {+ const n = t.humanQA!.filter((e) => e.a).length;+ return n === 1+ ? translate('askMe.viewAnswers', { count: n })+ : translate('askMe.viewAnswersPlural', { count: n });+ })()}</button>)}</div>@@ -253,7 +259,9 @@ export function AskMeTab() {{stuck.length > 0 && (<div style={{ display: 'flex', flexDirection: 'column', gap: 3 }}><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 8, color: 'var(--cth-coral)' }}>- BLOCKING {stuck.length} DOWNSTREAM TASK{stuck.length === 1 ? '' : 'S'}+ {stuck.length === 1+ ? translate('askMe.blockingDownstream', { count: stuck.length })+ : translate('askMe.blockingDownstreamPlural', { count: stuck.length })}</div>{stuck.slice(0, 6).map((d, i) => (<div key={d.id} style={{@@ -268,7 +276,7 @@ export function AskMeTab() {</div>))}{stuck.length > 6 && (- <div style={{ paddingLeft: 14, fontSize: 11, color: 'var(--cth-ink-300)' }}>… +{stuck.length - 6} more</div>+ <div style={{ paddingLeft: 14, fontSize: 11, color: 'var(--cth-ink-300)' }}>{translate('askMe.more', { count: stuck.length - 6 })}</div>)}</div>)}diff --git a/src/renderer/src/components/BlockedBanner.tsx b/src/renderer/src/components/BlockedBanner.tsxindex f2a6227f..4645d1c2 100644--- a/src/renderer/src/components/BlockedBanner.tsx+++ b/src/renderer/src/components/BlockedBanner.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next';import { PixelButton } from './PixelButton';import { Icon } from './Icon';import type { BlockReason } from '@/store/store';@@ -8,6 +9,7 @@ export interface BlockedBannerProps {}export function BlockedBanner({ reason, onAction }: BlockedBannerProps) {+ const { t } = useTranslation();return (<div style={{background: 'var(--cth-coral-light)',@@ -24,7 +26,7 @@ export function BlockedBanner({ reason, onAction }: BlockedBannerProps) {color: 'var(--cth-ink-900)',textTransform: 'uppercase'}}>- <Icon name="bell" /> needs you+ <Icon name="bell" /> {t('blockedBanner.needsYou')}</div><div style={{fontFamily: 'var(--cth-font-ui)',diff --git a/src/renderer/src/components/CommandBar.tsx b/src/renderer/src/components/CommandBar.tsxindex 5497a4d6..7ee34b89 100644--- a/src/renderer/src/components/CommandBar.tsx+++ b/src/renderer/src/components/CommandBar.tsx@@ -1,4 +1,5 @@import { useState, KeyboardEvent } from 'react';+import { useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelButton } from './PixelButton';import { Icon } from './Icon';@@ -14,6 +15,7 @@ export interface CommandBarProps {}export function CommandBar({ accent, busy, blocked, onSend }: CommandBarProps) {+ const { t } = useTranslation();const [mode, setMode] = useState<Mode>('free');const [text, setText] = useState('');@@ -56,7 +58,7 @@ export function CommandBar({ accent, busy, blocked, onSend }: CommandBarProps) {cursor: 'pointer'}}>- {m === 'free' ? 'free' : m === 'slash' ? '/skill' : 'quick'}+ {m === 'free' ? t('commandBar.free') : m === 'slash' ? t('commandBar.skill') : t('commandBar.quick')}</button>))}</div>@@ -73,7 +75,7 @@ export function CommandBar({ accent, busy, blocked, onSend }: CommandBarProps) {value={text}onChange={e => setText(e.target.value)}onKeyDown={onKey}- placeholder={blocked ? "Ada needs you..." : busy ? "Ada is working..." : "Type a command"}+ placeholder={blocked ? t('commandBar.placeholderBlocked') : busy ? t('commandBar.placeholderBusy') : t('commandBar.placeholder')}style={{flex: 1,padding: '4px 6px 2px',@@ -89,13 +91,13 @@ export function CommandBar({ accent, busy, blocked, onSend }: CommandBarProps) {/><PixelButton variant="primary" size="md" onClick={send}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>- send <Icon name="arrow-right" />+ {t('commandBar.send')} <Icon name="arrow-right" /></span></PixelButton></div></PixelPanel>- {busy && <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>Ada is mid-tool. Queue or hit pause.</span>}- {blocked && <span style={{ fontSize: 12, color: 'var(--cth-coral)' }}>Approval needed.</span>}+ {busy && <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{t('commandBar.busyNote')}</span>}+ {blocked && <span style={{ fontSize: 12, color: 'var(--cth-coral)' }}>{t('commandBar.blockedNote')}</span>}</div>);}diff --git a/src/renderer/src/components/CommandCenterPanel.tsx b/src/renderer/src/components/CommandCenterPanel.tsxindex ad4815cb..d35fc433 100644--- a/src/renderer/src/components/CommandCenterPanel.tsx+++ b/src/renderer/src/components/CommandCenterPanel.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelBadge } from './PixelBadge';import { PixelButton } from './PixelButton';@@ -62,18 +63,18 @@ interface GHIssue {}/** Canonical tab order. Not every entry is always shown — see `visibleTabs`. */-const TABS: { key: CCTab; label: string; icon: Parameters<typeof Icon>[0]['name'] }[] = [- { key: 'terminal', label: 'terminal', icon: 'terminal' },- { key: 'floor', label: 'monitor', icon: 'mcp' },- { key: 'tasks', label: 'tasks', icon: 'check' },- { key: 'human', label: 'ask me', icon: 'bell' },- { key: 'triggers', label: 'triggers', icon: 'clock' },- { key: 'trigger-history', label: 'history', icon: 'ledger' },- { key: 'memory', label: 'memory', icon: 'sparkle' },- { key: 'graph', label: 'graph', icon: 'web' },- { key: 'activity', label: 'activity', icon: 'bell' },- { key: 'skills', label: 'skills', icon: 'sparkle' },- { key: 'workers', label: 'workers', icon: 'gear' }+const TABS: { key: CCTab; labelKey: string; icon: Parameters<typeof Icon>[0]['name'] }[] = [+ { key: 'terminal', labelKey: 'commandCenter.tabs.terminal', icon: 'terminal' },+ { key: 'floor', labelKey: 'commandCenter.tabs.floor', icon: 'mcp' },+ { key: 'tasks', labelKey: 'commandCenter.tabs.tasks', icon: 'check' },+ { key: 'human', labelKey: 'commandCenter.tabs.human', icon: 'bell' },+ { key: 'triggers', labelKey: 'commandCenter.tabs.triggers', icon: 'clock' },+ { key: 'trigger-history', labelKey: 'commandCenter.tabs.history', icon: 'ledger' },+ { key: 'memory', labelKey: 'commandCenter.tabs.memory', icon: 'sparkle' },+ { key: 'graph', labelKey: 'commandCenter.tabs.graph', icon: 'web' },+ { key: 'activity', labelKey: 'commandCenter.tabs.activity', icon: 'bell' },+ { key: 'skills', labelKey: 'commandCenter.tabs.skills', icon: 'sparkle' },+ { key: 'workers', labelKey: 'commandCenter.tabs.workers', icon: 'gear' }];/** @param fullscreen this instance IS the fullscreen overlay, so it owns the pty@@ -81,6 +82,7 @@ const TABS: { key: CCTab; label: string; icon: Parameters<typeof Icon>[0]['name'* fullscreen" placeholder instead — two live xterms on one pty fight over its* cols/rows and corrupt the display. */export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent; fullscreen?: boolean }) {+ const { t } = useTranslation();const [tab, setTab] = useState<CCTab>('terminal');// The trigger-history ledger has nothing to say until an outside party can// reach us, so its tab appears only once an org key or a webhook exists. This@@ -171,13 +173,13 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent<div style={{fontFamily: 'var(--cth-font-display)', fontSize: 10, lineHeight: '14px', color: 'var(--cth-ink-900)',whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'- }}>COMMAND CENTER</div>+ }}>{t('commandCenter.title')}</div><div style={{ display: 'flex', gap: 6, alignItems: 'center', marginTop: 1, minWidth: 0 }}><PixelBadge status={agent.status} /><span style={{fontSize: 12, color: 'var(--cth-ink-500)',whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis'- }}>Michael runs the floor</span>+ }}>{t('commandCenter.runsTheFloor')}</span></div></div>{/* v0.3.4: floor-wide auto-delivery lives HERE (one switch for every@@ -192,13 +194,15 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent<spanclassName="cth-tip cth-tip-wrap"data-tip={floorDeliveryPaused- ? 'Queued messages are being held for EVERY agent on the floor. Nothing is lost; it is delivered when you switch this back on.'- : 'Queued messages are delivered to every agent automatically. Click to hold the whole floor.'}- aria-label={floorDeliveryPaused ? 'Resume automatic delivery for the whole floor' : 'Hold automatic delivery for the whole floor'}+ ? t('commandCenter.deliveryPausedTitle')+ : t('commandCenter.deliveryOnTitle')}+ aria-label={floorDeliveryPaused+ ? t('commandCenter.deliveryResumeAria')+ : t('commandCenter.deliveryHoldAria')}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}><Icon name={floorDeliveryPaused ? 'pause' : 'play'} />- {floorDeliveryPaused ? 'paused' : 'auto'}+ {floorDeliveryPaused ? t('commandCenter.deliveryPaused') : t('commandCenter.deliveryAuto')}</span></PixelButton>{/* Floor-level surface with no agent of its own: the honest target is@@ -210,11 +214,12 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent}}><spanclassName="cth-tip cth-tip-wrap"- data-tip="Open the IDE: browse and edit files in the selected agent's workspace, and see uncommitted changes as a diff."- aria-label="Open the IDE"+ data-tip={t('commandCenter.ideTitle')}+ aria-label={t('commandCenter.openIdeAria')}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- <Icon name="code" /> IDE+ <Icon name="code" /> {t('commandCenter.ide')}+ </span></span></PixelButton></div>@@ -254,10 +259,10 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agentpadding: '6px 8px', background: 'var(--cth-cream-100)',borderBottom: '1px solid var(--cth-ink-700)', flexShrink: 0}}>- {visibleTabs.map((t) => (+ {visibleTabs.map((tabDef) => (<button- key={t.key}- onClick={() => setTab(t.key)}+ key={tabDef.key}+ onClick={() => setTab(tabDef.key)}style={{whiteSpace: 'nowrap',// grow to share any spare width (so the strip still spans the panel@@ -266,19 +271,19 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agentflex: '1 0 auto',display: 'flex', alignItems: 'center', justifyContent: 'center', gap: 4,padding: '4px 8px 3px', border: 'none', cursor: 'pointer',- background: tab === t.key ? `var(--cth-${agent.accent})` : 'var(--cth-cream-200)',+ background: tab === tabDef.key ? `var(--cth-${agent.accent})` : 'var(--cth-cream-200)',// The selected tab is filled with the agent's accent, which is a// LIGHT colour in both themes. ink-900 flips to near-white in dark// mode, so the active tab's label was pale-on-pale — the one tab// you most need to read. On-accent text is dark in both themes.- color: tab === t.key ? 'var(--cth-on-accent)' : 'var(--cth-ink-900)',- boxShadow: tab === t.key+ color: tab === tabDef.key ? 'var(--cth-on-accent)' : 'var(--cth-ink-900)',+ boxShadow: tab === tabDef.key? 'inset 0 0 0 1px var(--cth-ink-300)': 'inset 0 0 0 1px var(--cth-ink-100)',fontFamily: 'var(--cth-font-ui)', fontSize: 13}}>- <Icon name={t.icon} /> {t.label}+ <Icon name={tabDef.icon} /> {t(tabDef.labelKey)}</button>))}</div>@@ -287,7 +292,7 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent<div style={{ flex: 1, minHeight: 0, display: 'flex', flexDirection: 'column' }}>{tab === 'terminal' && (isFullscreenedHere ? (- <Centered>Terminal is open in fullscreen. Press Esc to bring it back.</Centered>+ <Centered>{t('commandCenter.terminalFullscreen')}</Centered>) : agent.ptyId ? (<><div style={{ flex: 1, minHeight: 0, display: 'flex' }}>@@ -310,7 +315,7 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent<MessageQueueComposer agent={agent} /></>) : (- <Centered>Michael has no live terminal.</Centered>+ <Centered>{t('commandCenter.noTerminal')}</Centered>))}{tab === 'floor' && <FloorTab seed={dispatchSeed} />}@@ -338,6 +343,7 @@ export function CommandCenterPanel({ agent, fullscreen = false }: { agent: Agent// ─── Floor tab — roster, model, dispatch, dirs, assistant ────────────────────function FloorTab({ seed }: { seed: { text: string; seq: number } }) {+ const { t } = useTranslation();const agents = useStore((s) => s.agents);const select = useStore((s) => s.select);const updateAgent = useStore((s) => s.updateAgent);@@ -548,16 +554,18 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {if (!body) return;const suggested = dispatchTo ? agents.find((a) => a.id === dispatchTo) : undefined;const full = suggested- ? `${body}\n\n(The human suggests ${suggested.name} (${suggested.id}) for this — your call as orchestrator.)`+ ? `${body}\n\n${t('commandCenter.dispatchSuggestion', { name: suggested.name, id: suggested.id })}`: body;const res = await window.cth.hiveSend(- { to: 'god', act: 'request', subject: 'Task from the human', body: full },+ { to: 'god', act: 'request', subject: t('commandCenter.taskFromHuman'), body: full },'human');setDispatchText('');setDispatchMsg(res.ok- ? `sent to Michael${suggested ? ` (suggesting ${suggested.name})` : ''}`- : `failed: ${res.error ?? '?'}`);+ ? suggested+ ? t('commandCenter.sentToWithSuggestion', { name: suggested.name })+ : t('commandCenter.sentToMichael')+ : t('commandCenter.dispatchFailed', { error: res.error ?? '?' }));setTimeout(() => setDispatchMsg(null), 4000);};@@ -627,13 +635,13 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {return (<Scroll>- <Section title="DISPATCH — VIA MICHAEL">+ <Section title={t('commandCenter.dispatchViaMichael')}><div style={{ display: 'flex', alignItems: 'center', gap: 6, marginBottom: 6 }}><span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 8, color: 'var(--cth-ink-500)', flexShrink: 0 }}>- SUGGESTED OWNER+ {t('commandCenter.suggestedOwner')}</span><Select value={dispatchTo} onChange={setDispatchTo}>- <option value="">Michael decides</option>+ <option value="">{t('commandCenter.michaelDecides')}</option>{agents.filter((a) => !a.isGod).map((a) => (<option key={a.id} value={a.id}>{a.name}</option>))}@@ -643,18 +651,18 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {value={dispatchText}onChange={(e) => setDispatchText(e.target.value)}rows={2}- placeholder="Describe the task… (Michael decomposes, writes the card, and assigns)"+ placeholder={t('commandCenter.dispatchPlaceholder')}style={textareaStyle}/><div style={{ display: 'flex', alignItems: 'center', gap: 8, marginTop: 6 }}><PixelButton variant="primary" size="sm" onClick={dispatch} disabled={!dispatchText.trim()}>- dispatch+ {t('commandCenter.dispatch')}</PixelButton>{dispatchMsg && <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{dispatchMsg}</span>}</div></Section>- <Section title="AGENTS">+ <Section title={t('commandCenter.agents')}>{agents.map((a) => {const agentProvider = inferAgentProvider(a.command, a.provider);const agentPreset = providerPreset(agentProvider);@@ -694,11 +702,11 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {border: 'none', background: 'transparent', cursor: 'pointer', padding: 0,fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)'}}- >{a.name}{a.isGod ? ' (god)' : ''}</button>+ >{a.name}{a.isGod ? t('commandCenter.godTag') : ''}</button><PixelBadge status={armed ? 'looping' : a.status} />{armed && <span title={breaker?.reason} style={{ color: 'var(--cth-coral)', fontSize: 12 }}>⚠</span>}<span style={{ marginLeft: 'auto', fontSize: 11, color: 'var(--cth-ink-500)' }}>- {(toolCounts[a.id] ?? 0)} tool calls+ {t('commandCenter.toolCalls', { count: toolCounts[a.id] ?? 0 })}</span><TokenLimitEditor value={agentCap} onSet={(t) => setAgentCap(a.id, t)} /></div>@@ -719,10 +727,14 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {background: 'var(--cth-paper-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)', color: 'var(--cth-ink-700)'}}>{lastTool[a.id]}</span>)}- <span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 10, color: 'var(--cth-ink-300)', flexShrink: 0 }}>budget</span>+ <span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 10, color: 'var(--cth-ink-300)', flexShrink: 0 }}>{t('commandCenter.budget')}</span><span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 11, color: 'var(--cth-ink-900)', width: 56, textAlign: 'right' }}>{fmtTokens(tokens)}</span><div- title={`CUMULATIVE session usage: ${tokens.toLocaleString()} of ${denom.toLocaleString()} tokens${agentCap ? ' (agent limit)' : ' (floor budget)'} — not the context window`}+ title={t('commandCenter.meterTitle', {+ used: tokens.toLocaleString(),+ limit: denom.toLocaleString(),+ note: agentCap ? t('commandCenter.agentLimit') : t('commandCenter.floorBudget')+ })}style={{ width: 96, height: 8, background: 'var(--cth-cream-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)', flexShrink: 0 }}><div style={{ width: `${pct}%`, height: '100%', background: meterColor }} />@@ -736,7 +748,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {spend, this one is headroom before compaction. */}<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}><span style={{ flex: 1 }} />- <span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 10, color: 'var(--cth-ink-300)', flexShrink: 0 }}>ctx</span>+ <span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 10, color: 'var(--cth-ink-300)', flexShrink: 0 }}>{t('commandCenter.ctx')}</span>{a.contextTokens !== undefined && a.contextLimit ? (() => {const cpct = Math.min(100, Math.round((a.contextTokens! / a.contextLimit!) * 100));const ccolor = cpct >= 88 ? 'var(--cth-coral)' : cpct >= 75 ? 'var(--cth-lemon)' : `var(--cth-${a.accent})`;@@ -746,7 +758,11 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {{fmtTokens(a.contextTokens!)}</span><div- title={`Context window: ${a.contextTokens!.toLocaleString()} of ${a.contextLimit!.toLocaleString()} tokens (${cpct}%)`}+ title={t('commandCenter.contextTitle', {+ used: a.contextTokens!.toLocaleString(),+ limit: a.contextLimit!.toLocaleString(),+ pct: cpct+ })}style={{ width: 96, height: 8, background: 'var(--cth-cream-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)', flexShrink: 0 }}><div style={{ width: `${cpct}%`, height: '100%', background: ccolor }} />@@ -756,7 +772,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {);})() : (<span style={{ fontFamily: 'var(--cth-font-mono)', fontSize: 11, color: 'var(--cth-ink-300)' }}>- no status tick yet+ {t('commandCenter.noStatusTick')}</span>)}</div>@@ -812,8 +828,8 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {</Select><span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>{restarting === a.id- ? 'restarting…'- : `${agentPreset.label} model (restarts agent)`}+ ? t('common.restarting')+ : t('commandCenter.modelRestarts', { provider: agentPreset.label })}</span>{/* Restart & Continue — kill + respawn keeping the SAME model andresuming the prior conversation (--resume). Use this to redraw a@@ -827,8 +843,8 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {disabled={restarting === a.id}onClick={() => restartWithModel(a, a.model, { resume: true })}>- <span title="Kill and respawn this agent, resuming its current conversation — fixes a corrupted/garbled terminal without losing context">- restart & continue+ <span title={t('commandCenter.restartContinueTitle')}>+ {t('commandCenter.restartContinue')}</span></PixelButton></>}@@ -841,7 +857,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {)}{a.isGod && (<div style={{ display: 'flex', alignItems: 'center', gap: 6, flexWrap: 'wrap' }}>- <span style={{ fontSize: 11, color: 'var(--cth-ink-500)', flexShrink: 0 }}>engine:</span>+ <span style={{ fontSize: 11, color: 'var(--cth-ink-500)', flexShrink: 0 }}>{t('commandCenter.engine')}</span><Selectvalue={engineProvider}disabled={restarting === a.id}@@ -874,13 +890,13 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {onClick={async () => {const currentProvider = inferAgentProvider(a.command, a.provider);if (engineProvider !== currentProvider) {- if (!window.confirm("This restarts Michael; a conversation on a different engine can't be resumed.")) return;+ if (!window.confirm(t('commandCenter.confirmRestartEngine'))) return;}await window.cth.updateConfig({ godProvider: engineProvider, godModel: engineModel });await restartWithModel(a, engineModel, { provider: engineProvider, resume: false });}}>- {restarting === a.id ? 'restarting…' : 'apply'}+ {restarting === a.id ? t('common.restarting') : t('commandCenter.apply')}</PixelButton>{/* Redraw a garbled terminal without losing the thread (resume theSAME engine+model). Kept here since the god has no per-agent row above. */}@@ -890,8 +906,8 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {disabled={restarting === a.id}onClick={() => restartWithModel(a, a.model, { resume: true })}>- <span title="Kill and respawn Michael, resuming the current conversation — fixes a corrupted/garbled terminal without losing context">- restart & continue+ <span title={t('commandCenter.restartContinueTitle')}>+ {t('commandCenter.restartContinue')}</span></PixelButton></div>@@ -905,14 +921,14 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {background: 'var(--cth-cream-200)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-100)',fontFamily: 'var(--cth-font-mono)', fontSize: 11, color: 'var(--cth-ink-900)', flexWrap: 'wrap'}}>- <span>Σ <strong>{fmtTokens(sumTokens)}</strong> tok</span>- <span style={{ color: 'var(--cth-ink-700)' }}>inputs {fmtTokens(sumInput)} (cache {fleetCachePct}%)</span>- <span style={{ color: 'var(--cth-ink-700)' }}>{Math.round(sumRate).toLocaleString()} tok/min</span>+ <span>Σ <strong>{fmtTokens(sumTokens)}</strong> {t('costHud.tok')}</span>+ <span style={{ color: 'var(--cth-ink-700)' }}>{t('commandCenter.fleetInputs', { value: fmtTokens(sumInput), pct: fleetCachePct })}</span>+ <span style={{ color: 'var(--cth-ink-700)' }}>{t('commandCenter.fleetRate', { value: Math.round(sumRate).toLocaleString() })}</span></div><div style={{ marginTop: 6 }}><Muted>- live from each agent's OpenTelemetry · bars show tokens used vs each agent's limit, else the {fmtTokens(floorCap)} floor budget- {tokenCap && tokenCap > 0 ? '' : ' (default — set a floor token budget in Settings)'}+ {t('commandCenter.telemetryNote', { cap: fmtTokens(floorCap) })}+ {tokenCap && tokenCap > 0 ? '' : t('commandCenter.defaultBudgetNote')}</Muted></div></Section>@@ -920,22 +936,22 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {<ArchivedSection />- <Section title="DIRECTORIES">- {repos.length === 0 && <Muted>No registered repos.</Muted>}+ <Section title={t('commandCenter.directories')}>+ {repos.length === 0 && <Muted>{t('commandCenter.noRepos')}</Muted>}{repos.map((r) => (<div key={r} style={{ display: 'flex', alignItems: 'center', gap: 6, marginBottom: 3 }}><span style={{ flex: 1, fontSize: 12, color: 'var(--cth-ink-700)', wordBreak: 'break-all' }}>{r}</span><buttononClick={() => window.cth.openTerminalAt(r)}- title="Open in Terminal.app"+ title={t('commandCenter.openInTerminal')}style={{ border: 'none', background: 'transparent', cursor: 'pointer', color: 'var(--cth-ink-500)' }}><Icon name="terminal" /></button></div>))}</Section>- <Section title="ISSUES">- {repos.length === 0 && <Muted>No registered repos.</Muted>}+ <Section title={t('commandCenter.issues')}>+ {repos.length === 0 && <Muted>{t('commandCenter.noRepos')}</Muted>}{repos.length > 0 && (<><div style={{ display: 'flex', gap: 6, marginBottom: 6 }}>@@ -945,7 +961,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {))}</Select><PixelButton variant="primary" size="sm" onClick={fetchIssues} disabled={issuesLoading}>- {issuesLoading ? 'fetching…' : 'Fetch issues'}+ {issuesLoading ? t('commandCenter.fetching') : t('commandCenter.fetchIssues')}</PixelButton></div>{issuesError && (@@ -955,7 +971,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {wordBreak: 'break-word'}}>{issuesError}</div>)}- {!issuesError && !issuesLoading && issues.length === 0 && <Muted>No issues fetched yet.</Muted>}+ {!issuesError && !issuesLoading && issues.length === 0 && <Muted>{t('commandCenter.noIssues')}</Muted>}{issues.map((issue) => (<div key={issue.number} style={{display: 'flex', flexDirection: 'column', gap: 4,@@ -967,7 +983,7 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {<strong>#{issue.number}</strong> {issue.title}</span><PixelButton variant="secondary" size="sm" onClick={() => assignIssue(issue)}>- Assign+ {t('commandCenter.assign')}</PixelButton></div>{issue.labels.length > 0 && (@@ -993,12 +1009,13 @@ function FloorTab({ seed }: { seed: { text: string; seq: number } }) {// ─── Archived agents — retained + flagged, kept off the floor ────────────────function ArchivedSection() {+ const { t } = useTranslation();const archivedAgents = useStore((s) => s.archivedAgents);const removeArchivedAgent = useStore((s) => s.removeArchivedAgent);const [open, setOpen] = useState(false);if (archivedAgents.length === 0) return null;return (- <Section title={`ARCHIVED (${archivedAgents.length})`}>+ <Section title={t('commandCenter.archived', { count: archivedAgents.length })}><buttononClick={() => setOpen((v) => !v)}style={{@@ -1008,7 +1025,7 @@ function ArchivedSection() {fontFamily: 'var(--cth-font-ui)', fontSize: 12, color: 'var(--cth-ink-900)',marginBottom: open ? 6 : 0}}- >{open ? '▾' : '▸'} {open ? 'hide' : 'show'} closed agents</button>+ >{open ? '▾' : '▸'} {open ? t('commandCenter.hideClosed') : t('commandCenter.showClosed')}</button>{open && archivedAgents.map((a) => (<div key={a.id} style={{display: 'flex', alignItems: 'center', gap: 8,@@ -1039,6 +1056,7 @@ function ArchivedSection() {// ─── Memory tab ──────────────────────────────────────────────────────────────function MemoryTab({ godId, who: controlledWho, onWho }: { godId: string; who?: string; onWho?: (id: string) => void }) {+ const { t } = useTranslation();const agents = useStore((s) => s.agents);// Selection is controllable from the graph tab; falls back to local state.const [internalWho, setInternalWho] = useState<string>(godId);@@ -1063,7 +1081,7 @@ function MemoryTab({ godId, who: controlledWho, onWho }: { godId: string; who?:setBusy(true);try {const res = await window.cth.searchMemory(query.trim());- setSearchOut(res.ok ? (res.output || 'Nothing matched yet.') : `Couldn't search: ${res.error}`);+ setSearchOut(res.ok ? (res.output || t('commandCenter.searchNoMatch')) : `${t('commandCenter.dispatchFailed', { error: res.error })}`);} finally { setBusy(false); }};@@ -1079,17 +1097,17 @@ function MemoryTab({ godId, who: controlledWho, onWho }: { godId: string; who?:return (<Scroll>- <Section title="TEXT SEARCH (board, tasks, memory)">+ <Section title={t('commandCenter.textSearch')}><div style={{ display: 'flex', gap: 6 }}><inputvalue={textQuery}onChange={(e) => setTextQuery(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') textSearch(); }}- placeholder="Find exact text across hive files…"+ placeholder={t('commandCenter.textSearchPlaceholder')}style={{ ...textareaStyle, height: 30 }}/><PixelButton variant="primary" size="sm" onClick={textSearch} disabled={textBusy || !textQuery.trim()}>- {textBusy ? '…' : 'search'}+ {textBusy ? '…' : t('common.search')}</PixelButton></div>{textResults.length > 0 && (@@ -1102,30 +1120,30 @@ function MemoryTab({ godId, who: controlledWho, onWho }: { godId: string; who?:))}</div>)}- {textSearched && textResults.length === 0 && <Muted>Nothing matched.</Muted>}+ {textSearched && textResults.length === 0 && <Muted>{t('commandCenter.nothingMatched')}</Muted>}</Section>- <Section title="SEMANTIC SEARCH (MemPalace)">+ <Section title={t('commandCenter.semanticSearch')}><div style={{ display: 'flex', gap: 6 }}><inputvalue={query}onChange={(e) => setQuery(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') search(); }}- placeholder="What does the hive know about…"+ placeholder={t('commandCenter.semanticPlaceholder')}style={{ ...textareaStyle, height: 30 }}/><PixelButton variant="primary" size="sm" onClick={search} disabled={busy || !query.trim()}>- {busy ? '…' : 'search'}+ {busy ? '…' : t('common.search')}</PixelButton></div>{searchOut && <Pre>{searchOut}</Pre>}</Section>- <Section title="MEMORY FILE">+ <Section title={t('commandCenter.memoryFile')}><Select value={who} onChange={setWho}>{agents.map((a) => (<option key={a.id} value={a.id}>{a.name}</option>))}</Select>- <Pre>{mem || 'No memory recorded yet.'}</Pre>+ <Pre>{mem || t('commandCenter.noMemory')}</Pre></Section></Scroll>);@@ -1159,6 +1177,7 @@ function fmtTokens(n: number): string {* current limit as a lemon chip, or "set limit"; click to edit a token number.* Enter / ✓ / blur commit; Escape cancels. */function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: number | undefined) => void }) {+ const { t } = useTranslation();const [editing, setEditing] = useState(false);const [text, setText] = useState(value != null ? String(value) : '');const skipBlur = useRef(false);@@ -1172,7 +1191,7 @@ function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: nureturn (<buttononClick={() => { setText(value != null ? String(value) : ''); setEditing(true); }}- title="Set this agent's total token limit"+ title={t('commandCenter.tokenLimitTitle')}style={{flexShrink: 0, padding: '1px 6px', border: 'none', cursor: 'pointer',background: value && value > 0 ? 'var(--cth-lemon)' : 'var(--cth-cream-200)',@@ -1180,8 +1199,8 @@ function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: nufontFamily: 'var(--cth-font-ui)', fontSize: 11, color: 'var(--cth-ink-900)'}}>{value && value > 0- ? <>limit <span style={{ fontFamily: 'var(--cth-font-mono)' }}>{fmtTokens(value)}</span></>- : 'set limit'}</button>+ ? <>{t('commandCenter.tokenLimit', { value: fmtTokens(value) })}</>+ : t('commandCenter.setLimit')}</button>);}return (@@ -1194,7 +1213,7 @@ function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: nuelse if (e.key === 'Escape') { skipBlur.current = true; setEditing(false); }}}onBlur={() => { if (skipBlur.current) { skipBlur.current = false; return; } commit(); }}- placeholder="tokens"+ placeholder={t('common.tokens')}style={{width: 84, padding: '2px 4px', background: 'var(--cth-paper-100)', border: 'none',boxShadow: 'inset 0 0 0 1px var(--cth-ink-100)', fontFamily: 'var(--cth-font-mono)',@@ -1202,7 +1221,7 @@ function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: nu}}/><button- onMouseDown={(e) => e.preventDefault()} onClick={commit} title="Save limit"+ onMouseDown={(e) => e.preventDefault()} onClick={commit} title={t('commandCenter.saveLimit')}style={{ flexShrink: 0, padding: '1px 5px', border: 'none', cursor: 'pointer', background: 'var(--cth-mint)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)', fontSize: 11, color: 'var(--cth-ink-900)' }}>✓</button></span>@@ -1214,6 +1233,7 @@ function TokenLimitEditor({ value, onSet }: { value?: number; onSet: (tokens: nuinterface LogEntry { ts?: number; kind?: string; [k: string]: unknown }function ActivityTab() {+ const { t } = useTranslation();const [log, setLog] = useState<LogEntry[]>([]);const [board, setBoard] = useState('');const timer = useRef<ReturnType<typeof setInterval> | null>(null);@@ -1230,19 +1250,19 @@ function ActivityTab() {const fmt = (e: LogEntry): string => {switch (e.kind) {- case 'spawn': return `spawned ${e.name ?? e.agentId}`;- case 'message': return `${e.from} → ${e.to}: ${e.subject || e.act}`;- case 'drain': return `${e.agentId} drained ${e.count} msg(s)`;- case 'escalate': return `escalated to human: ${e.subject ?? ''}`;- case 'approval': return `approval ${e.approve ? 'granted' : 'denied'}`;+ case 'spawn': return t('commandCenter.logSpawn', { name: e.name ?? e.agentId });+ case 'message': return t('commandCenter.logMessage', { from: e.from, to: e.to, subject: e.subject || e.act });+ case 'drain': return t('commandCenter.logDrain', { agent: e.agentId, count: e.count });+ case 'escalate': return t('commandCenter.logEscalate', { subject: e.subject ?? '' });+ case 'approval': return e.approve ? t('commandCenter.logApprovalGranted') : t('commandCenter.logApprovalDenied');default: return JSON.stringify(e);}};return (<Scroll>- <Section title="ACTIVITY">- {log.length === 0 && <Muted>Nothing yet.</Muted>}+ <Section title={t('commandCenter.activity')}>+ {log.length === 0 && <Muted>{t('commandCenter.nothingYet')}</Muted>}{[...log].reverse().map((e, i) => (<div key={i} style={{ fontSize: 12, color: 'var(--cth-ink-700)', padding: '2px 0', display: 'flex', gap: 6 }}><span style={{ color: 'var(--cth-ink-300)', flexShrink: 0 }}>{e.kind ?? '·'}</span>@@ -1251,8 +1271,8 @@ function ActivityTab() {))}</Section>- <Section title="BOARD">- <Pre>{board || 'The board is empty.'}</Pre>+ <Section title={t('commandCenter.board')}>+ <Pre>{board || t('commandCenter.boardEmpty')}</Pre></Section></Scroll>);diff --git a/src/renderer/src/components/OfficeThemePicker.tsx b/src/renderer/src/components/OfficeThemePicker.tsxindex 6f9cfeb6..643f7c6b 100644--- a/src/renderer/src/components/OfficeThemePicker.tsx+++ b/src/renderer/src/components/OfficeThemePicker.tsx@@ -1,4 +1,5 @@import { useState } from 'react';+import { useTranslation } from 'react-i18next';import type { HarnessConfig } from '@/store/config';import { useStore } from '@/store/store';import { disposeTerminal } from './terminalPool';@@ -26,6 +27,7 @@ const THEME_META: ThemeMeta[] = [* theme picker with the destructive switch flow (report §E). Self-contained so* it stays out of SettingsModal's bulk. */export function OfficeThemePicker({ config }: { config: HarnessConfig }) {+ const { t } = useTranslation();const [enabled, setEnabled] = useState(!!config.tvShowOffices);const [current, setCurrent] = useState<ThemeId>((config.officeTheme as ThemeId) ?? 'office');const [pending, setPending] = useState<ThemeId | null>(null);@@ -78,9 +80,9 @@ export function OfficeThemePicker({ config }: { config: HarnessConfig }) {setCurrent(id);setOfficeTheme(id); // → OfficeFloor rebuilds the scene on the new map/castconst meta = THEME_META.find((t) => t.id === id);- if (meta && !meta.built) setNote(`${meta.label} isn't built yet — showing the office for now.`);+ if (meta && !meta.built) setNote(t('officeTheme.notBuiltYet', { label: meta.label }));} catch (e) {- setNote(`Switch aborted — a terminal wouldn't close: ${e instanceof Error ? e.message : String(e)}`);+ setNote(t('officeTheme.switchAborted', { error: e instanceof Error ? e.message : String(e) }));} finally {setBusy(false);setPending(null);@@ -95,33 +97,33 @@ export function OfficeThemePicker({ config }: { config: HarnessConfig }) {fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Office Theme+ {t('officeTheme.title')}</div>{/* Experimental feature flag */}<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- TV-show office themes <span style={{ color: 'var(--cth-ink-500)' }}>(experimental)</span>+ {t('officeTheme.tvShow')} <span style={{ color: 'var(--cth-ink-500)' }}>({t('officeTheme.experimental')})</span></span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Re-skin the pixel office as a TV show. Switching starts a fresh cast.+ {t('officeTheme.desc')}</span></div><PixelButton variant={enabled ? 'primary' : 'secondary'} size="sm" onClick={toggleFlag}>- {enabled ? 'on' : 'off'}+ {enabled ? t('common.on') : t('common.off')}</PixelButton></div>{/* Theme picker grid (only when the flag is on) */}{enabled && (<div style={{ marginTop: 12, display: 'grid', gridTemplateColumns: 'repeat(2, 1fr)', gap: 8 }}>- {THEME_META.map((t) => {- const isCurrent = t.id === current;+ {THEME_META.map((theme) => {+ const isCurrent = theme.id === current;return (<button- key={t.id}- onClick={() => onSelect(t.id)}+ key={theme.id}+ onClick={() => onSelect(theme.id)}disabled={busy}style={{display: 'flex', alignItems: 'center', gap: 8, textAlign: 'left',@@ -134,27 +136,27 @@ export function OfficeThemePicker({ config }: { config: HarnessConfig }) {}}><span style={{- width: 28, height: 28, flexShrink: 0, background: t.swatch,+ width: 28, height: 28, flexShrink: 0, background: theme.swatch,boxShadow: 'inset 0 0 0 1.5px var(--cth-ink-500)',}} /><span style={{ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0 }}><span style={{ display: 'flex', alignItems: 'center', gap: 6 }}><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-900)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>- {t.label}+ {theme.label}</span>{isCurrent && (<span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 7, color: 'var(--cth-mint)', textTransform: 'uppercase' }}>- current+ {t('officeTheme.current')}</span>)}- {!t.built && !isCurrent && (+ {!theme.built && !isCurrent && (<span style={{ fontFamily: 'var(--cth-font-display)', fontSize: 7, color: 'var(--cth-ink-500)', textTransform: 'uppercase' }}>- soon+ {t('officeTheme.soon')}</span>)}</span><span style={{ fontSize: 11, lineHeight: '14px', color: 'var(--cth-ink-500)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>- {t.blurb}+ {theme.blurb}</span></span></button>@@ -192,6 +194,7 @@ function ThemeSwitchConfirmModal({onCancel: () => void;onConfirm: () => void;}) {+ const { t } = useTranslation();const n = agents.length;const working = agents.filter((a) => a.status && !['idle', 'success', 'error'].includes(a.status)).length;const godName = useStore.getState().agents.find((a) => a.isGod)?.name ?? 'the orchestrator';@@ -205,7 +208,7 @@ function ThemeSwitchConfirmModal({}}><div onClick={(e) => e.stopPropagation()} style={{ width: 480, maxWidth: '92vw' }}>- <PixelPanel variant="dialog" title={`SWITCH OFFICE TO "${label.toUpperCase()}"?`} noPadding>+ <PixelPanel variant="dialog" title={t('officeTheme.confirmTitle', { label: label.toUpperCase() })} noPadding><div style={{ padding: 20, display: 'flex', flexDirection: 'column', gap: 16 }}><div style={{ display: 'flex', gap: 12, alignItems: 'flex-start' }}><div style={{@@ -221,28 +224,33 @@ function ThemeSwitchConfirmModal({fontFamily: 'var(--cth-font-display)', fontSize: 12, lineHeight: '20px',color: 'var(--cth-ink-900)', marginBottom: 4,}}>- STARTS A FRESH CAST+ {t('officeTheme.startsFreshCast')}</div><div style={{ fontSize: 15, lineHeight: '22px', color: 'var(--cth-ink-700)' }}>- Your <strong>{n} current agent{n === 1 ? '' : 's'}</strong> will be deleted — their terminals close and any in-progress work stops. Only <strong>{godName}</strong> carries over.+ {n === 1+ ? t('officeTheme.deleteCount', { count: n })+ : t('officeTheme.deleteCountPlural', { count: n })}{' '}+ {t('officeTheme.onlyCarries', { god: godName })}{working > 0 && (<span style={{ display: 'block', marginTop: 6, color: 'var(--cth-coral)' }}>- ⚠ {working} agent{working === 1 ? ' is' : 's are'} still working.+ ⚠ {working === 1+ ? t('officeTheme.stillWorking', { count: working })+ : t('officeTheme.stillWorkingPlural', { count: working })}</span>)}</div><div style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)', marginTop: 8 }}>- This can't be undone.+ {t('officeTheme.cantUndo')}</div></div></div><div style={{ display: 'flex', justifyContent: 'flex-end', gap: 8 }}><PixelButton variant="secondary" size="md" onClick={onCancel} disabled={busy}>- cancel+ {t('common.cancel')}</PixelButton><PixelButton variant="destructive" size="md" onClick={onConfirm} disabled={busy}>- {busy ? 'switching…' : `delete ${n} & switch`}+ {busy ? t('officeTheme.switching') : t('officeTheme.deleteSwitch', { count: n })}</PixelButton></div></div>diff --git a/src/renderer/src/components/OnboardingWizard.tsx b/src/renderer/src/components/OnboardingWizard.tsxindex f528721a..a602f8b6 100644--- a/src/renderer/src/components/OnboardingWizard.tsx+++ b/src/renderer/src/components/OnboardingWizard.tsx@@ -1,4 +1,5 @@import { useEffect, useState } from 'react';+import { Trans, useTranslation } from 'react-i18next';import { PixelPanel } from './PixelPanel';import { PixelButton } from './PixelButton';import { Icon, type IconName } from './Icon';@@ -18,74 +19,76 @@ export interface OnboardingWizardProps {type Audience = 'technical' | 'non-technical';type Step = 'persona' | 'welcome' | 'home' | 'orchestrator' | 'repos' | 'permissions' | 'done';-// First-run showcase — the highest-value features a brand-new user should grasp-// before any setup. Each carries a developer-register `desc` and a plain-language-// `descPlain` so the same grid speaks to both audiences (item 1).+// First-run showcase "— the highest-value features a brand-new user should grasp+// before any setup. Labels and copy live in i18n (two registers: `desc` for the+// technical audience, `descPlain` for the plain-language one "— item 1).interface Feature {icon: IconName;- label: string;- desc: string; // technical register- descPlain: string; // non-technical register- tint: string; // tile background token- edge: string; // tile border token+ labelKey: string;+ descKey: string; // technical register+ descPlainKey: string; // non-technical register+ tint: string; // tile background token+ edge: string; // tile border token}const FEATURES: Feature[] = [{icon: 'mcp',- label: 'ELEVEN ENGINES, ONE OFFICE',- desc: 'Claude Code, Codex, Grok, Kimi, Antigravity, Qwen, OpenCode, Crush, pi, Copilot & Cursor — live agents on one floor.',- descPlain: 'Eleven AI assistants — Claude, Codex, Cursor, Gemini, Grok and more — working side by side in one shared office.',+ labelKey: 'onboarding.welcome.features.engines.label',+ descKey: 'onboarding.welcome.features.engines.desc',+ descPlainKey: 'onboarding.welcome.features.engines.descPlain',tint: 'var(--cth-lilac-light)', edge: 'var(--cth-lilac)'},{icon: 'gear',- label: 'MICHAEL IS YOUR CLONE',- desc: 'Your clone runs the floor — triages requests, routes tasks, and escalates only what needs you.',- descPlain: 'Your clone, Michael, takes your requests, hands work to the right agent, and only interrupts you when it matters.',+ labelKey: 'onboarding.welcome.features.clone.label',+ descKey: 'onboarding.welcome.features.clone.desc',+ descPlainKey: 'onboarding.welcome.features.clone.descPlain',tint: 'var(--cth-sky-light)', edge: 'var(--cth-sky)'},{icon: 'web',- label: 'LONG-TERM MEMORY',- desc: 'Each agent keeps notes, mined into a shared, searchable MemPalace.',- descPlain: "Agents remember what they've done, so they don't start from scratch every time.",+ labelKey: 'onboarding.welcome.features.memory.label',+ descKey: 'onboarding.welcome.features.memory.desc',+ descPlainKey: 'onboarding.welcome.features.memory.descPlain',tint: 'var(--cth-mint-light)', edge: 'var(--cth-mint)'},{icon: 'terminal',- label: 'COMMAND CENTER',- desc: 'Terminal · Floor · Memory · Activity · Tasks · Triggers in one control surface.',- descPlain: "One dashboard to watch the work, the agents' memory, tasks, and triggers.",+ labelKey: 'onboarding.welcome.features.commandCenter.label',+ descKey: 'onboarding.welcome.features.commandCenter.desc',+ descPlainKey: 'onboarding.welcome.features.commandCenter.descPlain',tint: 'var(--cth-lemon-light)', edge: 'var(--cth-lemon)'},{icon: 'pause',- label: 'GUARDRAILS',- desc: 'Per-agent token budgets, a steer→constrain→stop circuit breaker, and human approvals.',- descPlain: 'Spending limits and safety stops keep agents in check — and they can ask you before big actions.',+ labelKey: 'onboarding.welcome.features.guardrails.label',+ descKey: 'onboarding.welcome.features.guardrails.desc',+ descPlainKey: 'onboarding.welcome.features.guardrails.descPlain',tint: 'var(--cth-coral-light)', edge: 'var(--cth-coral)'},{icon: 'sparkle',- label: 'READY-MADE HIRES',- desc: 'Grab a pre-configured agent from the Agent Gallery and spawn it in one click.',- descPlain: 'Hire a ready-made agent from the gallery in one click — no setup needed.',+ labelKey: 'onboarding.welcome.features.hires.label',+ descKey: 'onboarding.welcome.features.hires.desc',+ descPlainKey: 'onboarding.welcome.features.hires.descPlain',tint: 'var(--cth-peach-light)', edge: 'var(--cth-peach)'}];// One-liner of what each engine is, shown under its row on the orchestrator step// so a non-technical user knows what they're picking (item 3).-const PROVIDER_BLURB: Partial<Record<AgentProvider, string>> = {- gemini: 'Gemini CLI - Google Gemini',- claude: 'Claude Code — Anthropic',- codex: 'Codex — OpenAI',- antigravity: 'Antigravity — Google Gemini',- qwen: 'Qwen — runs a local Qwen model on your machine',- cursor: 'Cursor Agent CLI — uses your Cursor credits (Luna, Composer, …)'+const PROVIDER_BLURB_KEYS: Partial<Record<AgentProvider, string>> = {+ gemini: 'onboarding.providerBlurb.gemini',+ claude: 'onboarding.providerBlurb.claude',+ codex: 'onboarding.providerBlurb.codex',+ antigravity: 'onboarding.providerBlurb.antigravity',+ qwen: 'onboarding.providerBlurb.qwen',+ cursor: 'onboarding.providerBlurb.cursor'+};};export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {+ const { t } = useTranslation();const [step, setStep] = useState<Step>('persona');// Self-identified audience (item 1). Undefined until chosen on the first screen;// the rest of the wizard reads `plain` to swap copy registers.@@ -123,7 +126,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {const engineBlocked = engineBlocksOnboarding(selectedEngine);// Permissions & reliability toggles. These apply IMMEDIATELY on change (their- // own IPC / OS state) — they are NOT part of finish()'s config write. First-run+ // own IPC / OS state) "— they are NOT part of finish()'s config write. First-run// defaults: notifications off (config default), login-item off (fresh install);// each reconciles to the real state the IPC returns.const [strongKeepalive, setStrongKeepalive] = useState(false);@@ -153,7 +156,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {// the window runs with `contextIsolation: true` / `nodeIntegration: false` and// the preload bridges exactly one object (`cth`), so the renderer's main world// has no `process`. The suggestion therefore always collapsed to '' and the- // field rendered empty — leaving the copy above promising a default the user+ // field rendered empty "— leaving the copy above promising a default the user// could not accept, and Finish failing with "Pick a harness home folder first."//// Suggest the literal `~/HarnessAgents` instead. That is exactly the string@@ -185,17 +188,17 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {setBusy(true);setError(undefined);const harnessHome = home.trim(); // whitespace-only is not a folder- if (!harnessHome) { setError('Pick a harness home folder first.'); setBusy(false); setStep('home'); return; }+ if (!harnessHome) { setError(t('onboarding.errPickHome')); setBusy(false); setStep('home'); return; }// The orchestrator step already refuses to advance on this, but a late probe// result can change the answer after the user has moved on. Never write a// godProvider that is known to be unable to boot.if (engineBlocked) {- setError(`${providerPreset(godProvider).label} is not installed. Install it and press "check again", or pick another engine.`);+ setError(t('onboarding.errEngineNotInstalled', { label: providerPreset(godProvider).label }));setBusy(false); setStep('orchestrator'); return;}const ensure = await window.cth.ensureHarnessHome(harnessHome);if (!ensure.ok) {- setError(ensure.error ?? 'could not create harness home');+ setError(ensure.error ?? t('onboarding.errCreateHome'));setBusy(false);return;}@@ -221,7 +224,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {`repeating-linear-gradient(45deg, rgba(232, 217, 160, 0.4) 0 1px, transparent 1px 8px)`,// Scroll the overlay rather than clip the wizard. Step 2 lists every// installed CLI engine (8 rows + a model select), which is taller than a- // 1080p-class window once the OS chrome is subtracted — the panel was+ // 1080p-class window once the OS chrome is subtracted "— the panel was// being cut off at BOTH edges with no way to reach the buttons.display: 'flex',overflowY: 'auto',@@ -236,13 +239,13 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<PixelPanelvariant="dialog"title={- step === 'persona' ? 'WELCOME TO MUNDER DIFFLIN'- : step === 'welcome' ? 'MEET YOUR OFFICE'- : step === 'home' ? (plain ? 'STEP 1 OF 4 · A HOME FOR THE APP' : 'STEP 1 OF 4 · HARNESS HOME')- : step === 'orchestrator' ? (plain ? "STEP 2 OF 4 · YOUR CLONE" : "STEP 2 OF 4 · YOUR CLONE'S ENGINE")- : step === 'repos' ? (plain ? 'STEP 3 OF 4 · YOUR PROJECTS' : 'STEP 3 OF 4 · YOUR REPOS')- : step === 'permissions' ? 'STEP 4 OF 4 · PERMISSIONS & RELIABILITY'- : 'ALL SET'+ step === 'persona' ? t('onboarding.titles.persona')+ : step === 'welcome' ? t('onboarding.titles.welcome')+ : step === 'home' ? (plain ? t('onboarding.titles.homePlain') : t('onboarding.titles.home'))+ : step === 'orchestrator' ? (plain ? t('onboarding.titles.orchestratorPlain') : t('onboarding.titles.orchestrator'))+ : step === 'repos' ? (plain ? t('onboarding.titles.reposPlain') : t('onboarding.titles.repos'))+ : step === 'permissions' ? t('onboarding.titles.permissions')+ : t('onboarding.titles.done')}noPadding>@@ -261,33 +264,30 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {</div><div><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 12, lineHeight: '18px' }}>- A CLONE OF YOU, WORKING 24/7+ {t('onboarding.persona.headline')}</div><div style={{ fontSize: 12, color: 'var(--cth-ink-700)', lineHeight: '19px' }}>- Munder Difflin turns the CLI agent you already use into a clone of you —- one that runs an office of long-running agents and keeps working while- you're away. It manages everything around them: context, memory, tasks,- triggers, environment, files, and integrations.- <span style={{ color: 'var(--cth-ink-500)' }}> Everything runs on this machine.</span>+ {t('onboarding.persona.body')}+ <span style={{ color: 'var(--cth-ink-500)' }}>{t('onboarding.persona.bodyLocal')}</span></div></div></div><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>- FIRST — WHO ARE YOU? (we'll tailor the setup)+ {t('onboarding.persona.ask')}</div><div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 10 }}><PersonaCardicon="code"- title="I'M TECHNICAL"- desc="I write code or work in a terminal. Show me CLI commands, flags, and model ids."+ title={t('onboarding.persona.technicalTitle')}+ desc={t('onboarding.persona.technicalDesc')}selected={audience === 'technical'}onClick={() => { setAudience('technical'); setError(undefined); }}/><PersonaCardicon="sparkle"- title="I'M NON-TECHNICAL"- desc="I'm in marketing, sales, ops, or just starting out. Explain things in plain language."+ title={t('onboarding.persona.nonTechnicalTitle')}+ desc={t('onboarding.persona.nonTechnicalDesc')}selected={audience === 'non-technical'}onClick={() => { setAudience('non-technical'); setError(undefined); }}/>@@ -310,18 +310,16 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<div style={{fontFamily: 'var(--cth-font-display)',fontSize: 12, lineHeight: '18px'- }}>YOUR CLONE AND THE FLOOR IT RUNS</div>+ }}>{t('onboarding.welcome.headline')}</div><div style={{ fontSize: 12, color: 'var(--cth-ink-700)', lineHeight: '18px' }}>- {plain- ? "Your clone runs a small office of AI workers, and you watch it all from one screen. Here's what's inside:"- : "Your clone coordinates a hive of AI coding agents — persistent, watchable, all local. Here's what's inside:"}+ {plain ? t('onboarding.welcome.descPlain') : t('onboarding.welcome.desc')}</div></div></div><div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 8 }}>{FEATURES.map((f) => (- <div key={f.label} style={{+ <div key={f.labelKey} style={{display: 'flex', gap: 10, alignItems: 'flex-start',padding: 10,background: f.tint,@@ -339,9 +337,9 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<div style={{fontFamily: 'var(--cth-font-display)',fontSize: 10, lineHeight: '14px', marginBottom: 3- }}>{f.label}</div>+ }}>{t(f.labelKey)}</div><div style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>- {plain ? f.descPlain : f.desc}+ {plain ? t(f.descPlainKey) : t(f.descKey)}</div></div></div>@@ -352,43 +350,24 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'home' && (<>- {plain ? (- <p style={{ margin: 0, lineHeight: '22px' }}>- Create a new, empty folder for the app to call home. Everything the app- remembers — its own settings and your agents' memory — is stored here.- Something like{' '}- <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>- ~/HarnessAgents- </code>{' '}- works well. We'll create it for you if it doesn't exist.- </p>- ) : (- <p style={{ margin: 0, lineHeight: '22px' }}>- Pick a folder where the harness will keep its own files — agent metadata,- logs, and any new repos you create from here. Something like{' '}- <code style={{ fontFamily: 'var(--cth-font-mono)', background: 'var(--cth-paper-100)', padding: '0 4px' }}>- ~/HarnessAgents- </code>{' '}- is a fine default. We'll create it if it doesn't exist.- </p>- )}+ <p style={{ margin: 0, lineHeight: '22px' }}>+ {plain ? t('onboarding.home.descPlain') : t('onboarding.home.desc')}+ </p><div style={{ display: 'flex', gap: 8 }}><inputvalue={home}onChange={(e) => setHome(e.target.value)}- placeholder="/path/to/HarnessAgents"+ placeholder={t('onboarding.home.placeholder')}style={inputStyle}/><PixelButton variant="secondary" size="md" onClick={pickHome}><span style={{ display: 'inline-flex', gap: 4, alignItems: 'center' }}>- <Icon name="folder" /> {plain ? 'create / pick' : 'pick'}+ <Icon name="folder" /> {plain ? t('onboarding.home.createPick') : t('onboarding.home.pick')}</span></PixelButton></div><div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- {plain- ? "You won't need to open this folder day-to-day — it's just where the app keeps its notes so nothing is lost when you restart."- : 'Think of this as the "town hall." The harness pins agent state there so sessions can be picked back up after a restart.'}+ {plain ? t('onboarding.home.notePlain') : t('onboarding.home.note')}</div></>)}@@ -396,19 +375,10 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'orchestrator' && (<><p style={{ margin: 0, lineHeight: '22px' }}>- {plain ? (- <><strong>Michael is your clone</strong> — he reads your requests, breaks- them into tasks, and hands them to the right agent. He's the boss of the- floor; you're still the boss of him. Choose which AI engine powers him.</>- ) : (- <><strong>Michael is your clone</strong> — the boss of the floor you just- met. He triages your requests, assigns tasks, and manages the team, while- escalating anything that genuinely needs you. Pick the engine and model that- power him; give him a longer-context, higher-capability model.</>- )}+ {plain ? t('onboarding.orchestrator.descPlain') : t('onboarding.orchestrator.desc')}</p>- {/* What is a CLI agent / your clone — item 3 */}+ {/* What is a CLI agent / your clone "— item 3 */}<div style={{display: 'flex', gap: 8, alignItems: 'flex-start', padding: 10,background: 'var(--cth-lemon-light)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',@@ -417,19 +387,23 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<span style={{ flexShrink: 0, marginTop: 1 }}><Icon name="sparkle" /></span><span>{plain ? (- <>A <strong>CLI agent</strong> is an AI coding assistant that runs on your- computer — popular ones are Claude Code (Anthropic), Codex (OpenAI) and- Antigravity (Google Gemini). <strong>Your clone</strong> is the always-on- one that runs your whole office. We recommend Claude Code on Opus 4.8 (1M).- You can add or switch the others later.</>+ <Trans i18nKey="onboarding.orchestrator.cliAgentPlain" components={{ strong: <strong /> }}>+ A <strong>CLI agent</strong> is an AI coding assistant that runs on your+ computer — popular ones are Claude Code (Anthropic), Codex (OpenAI) and+ Antigravity (Google Gemini). <strong>Your clone</strong> is the always-on+ one that runs your whole office. We recommend Claude Code on Opus 4.8 (1M).+ You can add or switch the others later.+ </Trans>) : (- <>Each option is a <strong>CLI engine</strong> (Claude Code, Codex,- Antigravity/Gemini, or a local proxy like Qwen). Engines marked- INSTALLED are already on this machine; INSTALLS ON FIRST RUN means the app- sets it up when Michael first starts.- <strong> Your clone</strong> (Michael) is the engine that orchestrates the whole- hive. Recommended: Claude Code · Opus 4.8 · 1M. Other providers can be wired- per agent later.</>+ <Trans i18nKey="onboarding.orchestrator.cliAgent" components={{ strong: <strong /> }}>+ Each option is a <strong>CLI engine</strong> (Claude Code, Codex,+ Antigravity/Gemini, or a local proxy like Qwen). Engines marked+ INSTALLED are already on this machine; INSTALLS ON FIRST RUN means the app+ sets it up when Michael first starts.+ <strong> Your clone</strong> (Michael) is the engine that orchestrates the whole+ hive. Recommended: Claude Code · Opus 4.8 · 1M. Other providers can be wired+ per agent later.+ </Trans>)}</span></div>@@ -468,9 +442,9 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<span style={{ display: 'block', fontFamily: 'var(--cth-font-display)', fontSize: 11 }}>{p.label.toUpperCase()}</span>- {PROVIDER_BLURB[p.id] && (+ {PROVIDER_BLURB_KEYS[p.id] && (<span style={{ display: 'block', fontSize: 11, color: 'var(--cth-ink-500)' }}>- {PROVIDER_BLURB[p.id]}+ {t(PROVIDER_BLURB_KEYS[p.id]!)}</span>)}</span>@@ -495,7 +469,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {background: 'var(--cth-lemon)',boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)',fontFamily: 'var(--cth-font-display)', flexShrink: 0- }}>RECOMMENDED</span>+ }}>{t('onboarding.orchestrator.recommended')}</span>)}</label>);@@ -521,7 +495,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {</div>)}<div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>- <div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>Model</div>+ <div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{t('onboarding.orchestrator.model')}</div><selectvalue={godModel ?? ''}onChange={(e) => setGodModel(e.target.value || undefined)}@@ -532,7 +506,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {))}</select><div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- This only sets Michael's engine. You can run other providers per agent later.+ {t('onboarding.orchestrator.modelNote')}</div></div></>@@ -541,15 +515,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'repos' && (<><p style={{ margin: 0, lineHeight: '22px' }}>- {plain ? (- <>Add your <strong>projects</strong>. A project is simply a folder — it can hold- code, documents, notes, or any files you want your agents to work with. You can- create a brand-new folder or pick an existing one, and add more anytime.</>- ) : (- <>Add the repos you want your agents to work in. Each folder becomes a- <strong> project</strong> (a room on the floor) — multiple agents can share one.- You can add more later.</>- )}+ {plain ? t('onboarding.repos.descPlain') : t('onboarding.repos.desc')}</p><div style={{display: 'flex', flexDirection: 'column', gap: 6,@@ -563,9 +529,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {background: 'var(--cth-paper-200)',textAlign: 'center'}}>- {plain- ? 'No projects added yet. Optional — you can add one later.'- : 'No repos added yet. Optional, but recommended.'}+ {plain ? t('onboarding.repos.emptyPlain') : t('onboarding.repos.empty')}</div>)}{repos.map((r) => (@@ -589,7 +553,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {</div><PixelButton variant="secondary" size="md" onClick={pickRepo}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>- <Icon name="plus" /> {plain ? 'add a project' : 'add a repo'}+ <Icon name="plus" /> {plain ? t('onboarding.repos.addProject') : t('onboarding.repos.addRepo')}</span></PixelButton></>@@ -597,12 +561,12 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {{step === 'permissions' && (<>- {/* AUTONOMY — merged from the old "auto mode" step (item 5). One choice- that maps to each engine's flag (item 6): autoMode → claude+ {/* AUTONOMY "— merged from the old "auto mode" step (item 5). One choice+ that maps to each engine's flag (item 6): autoMode "→ claudebypassPermissions / codex --dangerously-bypass-approvals-and-sandbox,- etc.; off → each engine's ask-first default. */}+ etc.; off "→ each engine's ask-first default. */}<div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>- HOW MUCH CAN AGENTS DO ON THEIR OWN?+ {t('onboarding.permissions.autonomyHead')}</div><label style={{display: 'flex', alignItems: 'center', gap: 10,@@ -619,41 +583,33 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {/><div><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, lineHeight: '14px' }}>- {plain ? 'LET AGENTS WORK ON THEIR OWN' : 'WORK AUTONOMOUSLY (AUTO MODE)'}+ {plain ? t('onboarding.permissions.autoLabelPlain') : t('onboarding.permissions.autoLabel')}</div><div style={{ fontSize: 13, color: 'var(--cth-ink-700)' }}>{plain- ? (autoMode- ? 'On. Agents carry out tasks without stopping to ask — the smoothest experience.'- : 'Off. Agents pause and ask you before changing files or running commands.')- : (autoMode- ? 'On. Agents never pause — Claude runs bypassPermissions, Codex bypasses approvals + sandbox, etc.'- : 'Off. Each agent asks before edits / shell commands (Claude default, codex -a untrusted, …).')}+ ? (autoMode ? t('onboarding.permissions.autoOnPlain') : t('onboarding.permissions.autoOffPlain'))+ : (autoMode ? t('onboarding.permissions.autoOn') : t('onboarding.permissions.autoOff'))}</div></div></label><div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- {plain- ? 'Best when agents work in their own projects. You can change this later, including for individual agents.'- : 'The right default for the "control room" experience; a foot-gun on production repos. Override per agent in the Add Agent dialog.'}+ {plain ? t('onboarding.permissions.autoNotePlain') : t('onboarding.permissions.autoNote')}</div><div style={{ height: 1, background: 'var(--cth-ink-300)', margin: '2px 0' }} />- {/* RELIABILITY — keeping work firing while you're away. */}+ {/* RELIABILITY "— keeping work firing while you're away. */}<div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, color: 'var(--cth-ink-700)' }}>- KEEP THINGS RUNNING WHILE YOU'RE AWAY+ {t('onboarding.permissions.reliabilityHead')}</div><p style={{ margin: 0, lineHeight: '20px', fontSize: 12, color: 'var(--cth-ink-700)' }}>- {plain- ? 'Your agents keep working on a schedule and in live terminals, even when you step away. These settings keep you in the loop and keep things running.'- : 'Your agents keep working on a schedule and in live terminals. If your Mac fully sleeps those timers pause and catch up the moment you\'re back — nothing is lost, it may just run late.'}+ {plain ? t('onboarding.permissions.reliabilityDescPlain') : t('onboarding.permissions.reliabilityDesc')}</p><ToggleRowicon="clock"- label="KEEP WORKING WHILE AWAY"- desc="Strong keep-alive: stops your Mac from sleeping while an agent is live, so schedules and terminals fire on time even when you step away. Uses more battery — best on power. Off by default."+ label={t('onboarding.permissions.keepAwake')}+ desc={t('onboarding.permissions.keepAwakeDesc')}on={strongKeepalive}tint="var(--cth-mint-light)"edge="var(--cth-mint)"@@ -662,8 +618,8 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<ToggleRowicon="bell"- label="DESKTOP NOTIFICATIONS"- desc="Get pinged when an agent needs you or a terminal needs reviving — even while you're away. macOS asks permission the first time one fires."+ label={t('onboarding.permissions.notifications')}+ desc={t('onboarding.permissions.notificationsDesc')}on={notifications}tint="var(--cth-peach-light)"edge="var(--cth-peach)"@@ -672,8 +628,8 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<ToggleRowicon="play"- label="OPEN AT LOGIN"- desc="Relaunch the harness after a reboot so scheduled missions resume on their own. No prompt — applies immediately."+ label={t('onboarding.permissions.openAtLogin')}+ desc={t('onboarding.permissions.openAtLoginDesc')}on={openAtLogin}tint="var(--cth-sky-light)"edge="var(--cth-sky)"@@ -682,15 +638,15 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<ToggleRowicon="info"- label="SHARE ANONYMOUS USAGE STATS"- desc="A handful of anonymous events (app opened, agent spawned, feature used) that help improve Munder Difflin — never prompts, code, file paths, or agent output. Full list in TELEMETRY.md; change anytime in Settings."+ label={t('onboarding.permissions.shareStats')}+ desc={t('onboarding.permissions.shareStatsDesc')}on={shareStats}tint="var(--cth-lemon-light)"edge="var(--cth-lemon)"onChange={() => setShareStats(!shareStats)}/>- {/* LEVER 4 — instruction-only: macOS won't let the app flip Energy, so we deep-link the pane. */}+ {/* LEVER 4 "— instruction-only: macOS won't let the app flip Energy, so we deep-link the pane. */}<div style={{display: 'flex', gap: 10, alignItems: 'flex-start', padding: 10,background: 'var(--cth-lemon-light)',@@ -706,20 +662,16 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<div style={{ minWidth: 0, display: 'flex', flexDirection: 'column', gap: 8 }}><div><div style={{ fontFamily: 'var(--cth-font-display)', fontSize: 10, lineHeight: '14px', marginBottom: 3 }}>- STAY AWAKE ON POWER (MANUAL)+ {t('onboarding.permissions.stayAwake')}</div><div style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-700)' }}>- macOS only lets you set this one yourself. In Battery → Options,- turn on “Prevent automatic sleeping when the display is off” (on- power adapter) so timers keep firing with the display asleep.- Without a sleep-preventing setting the Mac still truly sleeps —- work survives and catches up on wake.+ {t('onboarding.permissions.stayAwakeDesc')}</div></div><PixelButton variant="secondary" size="sm"onClick={() => openSettings('x-apple.systempreferences:com.apple.preference.battery')}><span style={{ display: 'inline-flex', gap: 6, alignItems: 'center' }}>- <Icon name="arrow-right" /> open Battery settings+ <Icon name="arrow-right" /> {t('onboarding.permissions.openBattery')}</span></PixelButton></div>@@ -744,12 +696,12 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {<div style={{ display: 'flex', gap: 8 }}>{step !== 'persona' && step !== 'welcome' && (<PixelButton variant="ghost" size="md" onClick={() => setStep(prevStep(step))} disabled={busy}>- back+ {t('common.back')}</PixelButton>)}{step === 'welcome' && (<PixelButton variant="ghost" size="md" onClick={() => setStep('persona')} disabled={busy}>- back+ {t('common.back')}</PixelButton>)}{step !== 'permissions' && (@@ -761,7 +713,7 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {// lives in finish(), so an empty field walks you through all// four steps and then bounces you back to step 1 to be told.if (step === 'home' && !home.trim()) {- setError('Pick a harness home folder first.');+ setError(t('onboarding.errPickHome'));return;}// Same idea for the engine: refuse here, with the reason on@@ -776,12 +728,12 @@ export function OnboardingWizard({ onComplete }: OnboardingWizardProps) {}}disabled={(step === 'persona' && !audience) || (step === 'orchestrator' && engineBlocked)}>- {step === 'welcome' ? 'set it up' : 'next'}+ {step === 'welcome' ? t('onboarding.permissions.setItUp') : t('common.next')}</PixelButton>)}{step === 'permissions' && (<PixelButton variant="primary" size="md" onClick={finish} disabled={busy}>- {busy ? 'saving...' : 'finish'}+ {busy ? t('common.saving') : t('common.finish')}</PixelButton>)}</div>diff --git a/src/renderer/src/components/PixelBadge.tsx b/src/renderer/src/components/PixelBadge.tsxindex 6bd88af4..73d0190a 100644--- a/src/renderer/src/components/PixelBadge.tsx+++ b/src/renderer/src/components/PixelBadge.tsx@@ -1,4 +1,5 @@import { CSSProperties } from 'react';+import { useTranslation } from 'react-i18next';export type StatusKind =| 'idle' | 'thinking' | 'working' | 'waiting' | 'blocked' | 'success' | 'ghost'@@ -30,26 +31,28 @@ const colorByStatus: Record<StatusKind, string> = {typing: 'var(--cth-status-typing)'};-// Human-readable labels. "blocked" is reserved for the god agent waiting on YOU,+// i18n key per status. "blocked" is reserved for the god agent waiting on YOU,// so it reads as "needs you"; sub-agents waiting on god/another agent are// "waiting", which is honest about who they're actually stalled on.-const labelByStatus: Record<StatusKind, string> = {- idle: 'idle',- thinking: 'working',- working: 'working',- waiting: 'waiting',- blocked: 'needs you',- success: 'done',- ghost: 'gone',- compacting: 'compacting',- looping: 'looping',+const labelKeyByStatus: Record<StatusKind, string> = {+ idle: 'badge.idle',+ thinking: 'badge.thinking',+ working: 'badge.working',+ waiting: 'badge.waiting',+ blocked: 'badge.blocked',+ success: 'badge.success',+ ghost: 'badge.ghost',+ compacting: 'badge.compacting',+ looping: 'badge.looping',// Reads as "you are typing", not "the agent is typing" — it is your text// sitting on the prompt, and it is why nothing is being delivered.- typing: 'your draft'+ typing: 'badge.typing'};export function PixelBadge({ status, label, style }: PixelBadgeProps) {- const text = label ?? labelByStatus[status] ?? status;+ const { t } = useTranslation();+ const key = labelKeyByStatus[status];+ const text = label ?? (key ? t(key) : status);return (<spanstyle={{diff --git a/src/renderer/src/components/SettingsHeroCard.tsx b/src/renderer/src/components/SettingsHeroCard.tsxindex 08e92a1c..1aad2f9f 100644--- a/src/renderer/src/components/SettingsHeroCard.tsx+++ b/src/renderer/src/components/SettingsHeroCard.tsx@@ -23,6 +23,7 @@* thing the release modal does. Plan label and blurb still come from hero.json.*/import { useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';import { PixelButton } from './PixelButton';import { Icon } from './Icon';import { DEFAULT_HERO, type HeroPayload } from '@shared/heroPayload';@@ -33,6 +34,7 @@ const FOUNDERS_WALL_URL = 'https://munderdiffl.in/wall.html';const DISCORD_URL = 'https://discord.gg/SEDzP5ZPk5';export function SettingsHeroCard() {+ const { t } = useTranslation();const [version, setVersion] = useState<string | null>(null);// Starts on the compiled-in defaults, so there is no empty frame or spinner// while the fetch is in flight — it just fills in if anything changed.@@ -137,15 +139,13 @@ export function SettingsHeroCard() {display: 'inline-block', fontFamily: MONO, fontSize: 9, letterSpacing: '.18em',textTransform: 'uppercase', padding: '2px 7px',background: INK, color: 'var(--cth-paper-100)'- }}>Announcement</span>+ }}>{t('settingsHero.announcement')}</span><div style={{marginTop: 8, fontFamily: MONO, fontSize: 14, fontWeight: 700, color: INK- }}>v0.5.0 launches with Munder Difflin Pro.</div>+ }}>{t('settingsHero.proLaunch')}</div><div style={{ marginTop: 6, fontSize: 12.5, lineHeight: 1.5, color: 'var(--cth-ink-700)', maxWidth: '64ch' }}>- <b style={{ color: INK }}>Community stays free, stays open, and keeps getting updates.</b>{' '}- Pro ships with new features and integrations, with more posted throughout the year,- and it stays ahead of Community, for power users who want the full potential of- coding agents and agent harnesses. The Pro roadmap also includes a mobile app.+ <b style={{ color: INK }}>{t('settingsHero.proCommunityFree')}</b>{' '}+ {t('settingsHero.proParagraph')}</div></div>@@ -166,14 +166,13 @@ export function SettingsHeroCard() {}}>% OFF</span></div><div style={{ flex: 1, minWidth: 200 }}>- <div style={{ fontFamily: MONO, fontSize: 12.5, fontWeight: 600 }}>On the Founders’ Wall?</div>+ <div style={{ fontFamily: MONO, fontSize: 12.5, fontWeight: 600 }}>{t('settingsHero.foundersWallTitle')}</div><div style={{ fontSize: 12, lineHeight: 1.45, opacity: 0.85, marginTop: 2 }}>- A month of Munder Difflin Pro free, then 50% off the annual plan. For the first- 100 people on the wall.+ {t('settingsHero.foundersWallBody')}</div></div><PixelButton variant="primary" size="sm" onClick={() => void window.cth.openExternal(FOUNDERS_WALL_URL)}>- see the wall+ {t('settingsHero.seeTheWall')}</PixelButton>{PLAN.upgrade && (<PixelButton variant="secondary" size="sm" onClick={() => void window.cth.openExternal(PLAN.upgrade!.url)}>@@ -193,11 +192,11 @@ export function SettingsHeroCard() {<span style={{fontFamily: MONO, fontSize: 9, letterSpacing: '.18em',textTransform: 'uppercase', color: 'var(--cth-ink-500)', flexShrink: 0- }}>Sponsored by</span>+ }}>{t('settingsHero.sponsoredBy')}</span><span style={{ fontSize: 13, color: INK, flexShrink: 0 }}>{SPONSOR.name}</span><span style={{ flex: 1, minWidth: 120, fontSize: 12, color: 'var(--cth-ink-700)' }}>{SPONSOR.blurb}</span><PixelButton variant="ghost" size="sm" onClick={() => void window.cth.openExternal(SPONSOR.url)}>- visit+ {t('settingsHero.visit')}</PixelButton></div>)}@@ -208,32 +207,32 @@ export function SettingsHeroCard() {paddingTop: 12, borderTop: `2px solid ${INK}`}}><PixelButton variant="secondary" size="sm" onClick={showReleaseNotes}>- <span title="Show the release notes for the update you were last told about"+ <span title={t('settingsHero.whatsNewTitle')}style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- <Icon name="sparkle" /> what’s new+ <Icon name="sparkle" /> {t('settingsHero.whatsNew')}</span></PixelButton><PixelButton variant="secondary" size="sm" onClick={() => void window.cth.openExternal(GITHUB_REPO_URL)}><span style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- ⭐ star on GitHub+ ⭐ {t('settingsHero.starOnGitHub')}</span></PixelButton><PixelButton variant="secondary" size="sm" onClick={() => void window.cth.openExternal(DISCORD_URL)}><span style={{ display: 'inline-flex', alignItems: 'center', gap: 4 }}>- 💬 join Discord+ 💬 {t('settingsHero.joinDiscord')}</span></PixelButton><PixelButtonvariant="ghost"size="sm"onClick={() => void window.cth.openExternal(`${GITHUB_REPO_URL}/issues/new`)}- >report a problem</PixelButton>+ >{t('settingsHero.reportProblem')}</PixelButton><span style={{ flex: 1 }} /><ahref={`${GITHUB_REPO_URL}/blob/main/CHANGELOG.md`}onClick={(e) => { e.preventDefault(); void window.cth.openExternal(`${GITHUB_REPO_URL}/blob/main/CHANGELOG.md`); }}style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}- >full changelog →</a>+ >{t('settingsHero.fullChangelog')}</a></div></div></div>diff --git a/src/renderer/src/components/SettingsModal.tsx b/src/renderer/src/components/SettingsModal.tsxindex 264a744c..85833a8d 100644--- a/src/renderer/src/components/SettingsModal.tsx+++ b/src/renderer/src/components/SettingsModal.tsx@@ -1,4 +1,5 @@import { useState, useEffect, type CSSProperties } from 'react';+import { useTranslation } from 'react-i18next';import { AGENT_MODELS, type HarnessConfig } from '@/store/config';import { useStore } from '@/store/store';import {@@ -23,6 +24,7 @@ import { AiEnginesSettings } from './AiEnginesSettings';import { REALTIME_MODEL } from '@shared/realtimePricing';import { RealtimeDevicePicker } from '@/realtime/DevicePicker';import { CostHud } from '@/realtime/CostHud';+import { LANGUAGES, setLanguage } from '@/i18n';export interface SettingsModalProps {config: HarnessConfig;@@ -158,8 +160,20 @@ function clearLocalState(): void {// voice gets its own tab; Danger Zone became a red row at the bottom of General.export type Section = 'General' | 'Prerequisites' | 'Agents & Models' | 'Autonomy & Budgets' | 'Connections' | 'Voice' | 'Memory & Knowledge';const NAV_SECTIONS: Section[] = ['General', 'Prerequisites', 'Agents & Models', 'Autonomy & Budgets', 'Connections', 'Voice', 'Memory & Knowledge'];+/** i18n key for each nav section's label — the Section values themselves stay+ * as stable identifiers (tab state, deep links). */+const NAV_SECTION_KEYS: Record<Section, string> = {+ 'General': 'settings.nav.general',+ 'Prerequisites': 'settings.nav.prerequisites',+ 'Agents & Models': 'settings.nav.agentsModels',+ 'Autonomy & Budgets': 'settings.nav.autonomyBudgets',+ 'Connections': 'settings.nav.connections',+ 'Voice': 'settings.nav.voice',+ 'Memory & Knowledge': 'settings.nav.memoryKnowledge'+};export function SettingsModal({ config, onClose, initialSection }: SettingsModalProps) {+ const { t, i18n } = useTranslation();const [confirming, setConfirming] = useState(false);const [busy, setBusy] = useState(false);const [activeSection, setActiveSection] = useState<Section>(initialSection ?? 'General');@@ -226,9 +240,9 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsetDefaultModelSel(id);try {await window.cth.updateConfig({ defaultModel: id } as Partial<HarnessConfig>);- setDefaultModelNote('saved — applies to newly spawned agents');+ setDefaultModelNote(t('settings.agentsModels.savedNote'));setTimeout(() => setDefaultModelNote(''), 2200);- } catch { setDefaultModelNote('save failed'); }+ } catch { setDefaultModelNote(t('settings.agentsModels.saveFailed')); }};const [maxTurnsVal, setMaxTurnsVal] = useState<string>(cfgX.maxTurns != null ? String(cfgX.maxTurns) : '');const saveMaxTurns = async () => {@@ -276,7 +290,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalerrorStormLimit: Number.isFinite(storm as number) ? Math.round(storm as number) : undefined}} as Partial<HarnessConfig>);- setBudgetNote('saved');+ setBudgetNote(t('settings.autonomy.saved'));setTimeout(() => setBudgetNote(''), 1500);};const fmtBudgetTokens = (raw: string): string => {@@ -421,8 +435,8 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalif (r.ok) {setOpenAiVoiceKey('');setHasOpenAiKey(true);- setOpenAiVoiceNote('Key saved — Talk is ready.');- } else setOpenAiVoiceNote(r.error ?? 'Could not save the key.');+ setOpenAiVoiceNote(t('settings.voice.keySavedNote'));+ } else setOpenAiVoiceNote(r.error ?? t('settings.voice.couldNotSave'));} catch (e) {setOpenAiVoiceNote(e instanceof Error ? e.message : String(e));}@@ -711,10 +725,10 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal};const modalTitle = changeHome- ? 'CHANGE HOME FOLDER'+ ? t('settings.changeHomeTitle'): confirming- ? 'RESET EVERYTHING?'- : 'SETTINGS';+ ? t('settings.resetTitle')+ : t('settings.title');return (<div@@ -744,7 +758,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal{changeHome ? (<div style={{ padding: 20, display: 'flex', flexDirection: 'column', gap: 16, overflowY: 'auto' }}><div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}>- <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>New home folder</span>+ <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{t('settings.changeHome.newHome')}</span><code style={{fontFamily: 'var(--cth-font-mono, monospace)', fontSize: 12,color: 'var(--cth-ink-900)', wordBreak: 'break-all'@@ -754,8 +768,8 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal{/* Move vs. fresh - two selectable option rows; move is preselected. */}<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>{([- ['move', 'Move existing data (recommended)', "Copy this harness's hive (every agent, memory, task) and the semantic-memory palace into the new folder. The old folder is left untouched as a backup you can delete later."],- ['fresh', 'Start fresh', 'Point the harness at the new (empty) folder. Your existing data stays in the old folder, simply unused.']+ ['move', t('settings.changeHome.moveTitle'), t('settings.changeHome.moveDesc')],+ ['fresh', t('settings.changeHome.freshTitle'), t('settings.changeHome.freshDesc')]] as const).map(([value, title, desc]) => {const selected = changeMode === value;return (@@ -789,10 +803,10 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ display: 'flex', justifyContent: 'flex-end', gap: 8 }}><PixelButton variant="secondary" size="md" onClick={() => { setChangeHome(null); setChangeErr(''); }} disabled={changeBusy}>- cancel+ {t('common.cancel')}</PixelButton><PixelButton variant="primary" size="md" onClick={applyChangeHome} disabled={changeBusy}>- {changeBusy ? 'applying...' : (changeMode === 'move' ? 'move & restart' : 'switch & restart')}+ {changeBusy ? t('settings.apply') : (changeMode === 'move' ? t('settings.moveAndRestart') : t('settings.switchAndRestart'))}</PixelButton></div></div>@@ -811,18 +825,16 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<Icon name="bell" /></div><div style={{ flex: 1, fontSize: 15, lineHeight: '22px', color: 'var(--cth-ink-700)' }}>- This permanently erases all of Michael's memories and the entire hive,- and cannot be undone. Any running sessions will be terminated and the app- will relaunch into onboarding. Are you sure?+ {t('settings.resetConfirm.body')}</div></div><div style={{ display: 'flex', justifyContent: 'flex-end', gap: 8 }}><PixelButton variant="secondary" size="md" onClick={() => setConfirming(false)} disabled={busy}>- cancel+ {t('common.cancel')}</PixelButton><PixelButton variant="destructive" size="md" onClick={reset} disabled={busy}>- {busy ? 'resetting...' : 'erase everything & restart'}+ {busy ? t('settings.resetting') : t('settings.eraseEverything')}</PixelButton></div></div>@@ -861,7 +873,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalletterSpacing: 0}}>- {section}+ {t(NAV_SECTION_KEYS[section])}</button>);})}@@ -901,14 +913,14 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Home folder+ {t('settings.general.homeFolder')}</div><div style={{ display: 'flex', gap: 12, fontSize: 13, lineHeight: '20px', alignItems: 'center' }}><span style={{flex: 1, color: 'var(--cth-ink-900)', wordBreak: 'break-all',fontFamily: 'var(--cth-font-mono, monospace)'}}>{config.harnessHome ?? '—'}</span>- <PixelButton variant="secondary" size="sm" onClick={pickNewHome}>change...</PixelButton>+ <PixelButton variant="secondary" size="sm" onClick={pickNewHome}>{t('settings.change')}</PixelButton></div></div>@@ -920,29 +932,29 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Environment+ {t('settings.general.environment')}</div><div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>- <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>Keep Mac awake while agents run</span>+ <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>{t('settings.general.keepAwake')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Blocks display sleep so schedules and terminals keep firing on time. Costs battery — best on AC.+ {t('settings.general.keepAwakeDesc')}</span></div><PixelButton variant={keepAwake ? 'primary' : 'secondary'} size="sm" onClick={toggleKeepAwake}>- {keepAwake ? 'on' : 'off'}+ {keepAwake ? t('common.on') : t('common.off')}</PixelButton></div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>- <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>Explain things simply</span>+ <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>{t('settings.general.simpleMode')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Agents brief you in plain language instead of engineering shorthand.+ {t('settings.general.simpleModeDesc')}</span></div><PixelButton variant={simpleMode ? 'primary' : 'secondary'} size="sm" onClick={toggleSimpleMode}>- {simpleMode ? 'on' : 'off'}+ {simpleMode ? t('common.on') : t('common.off')}</PixelButton></div></div>@@ -950,21 +962,51 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ height: 1, background: 'var(--cth-ink-300)' }} />+ {/* Language — app UI language (i18n) */}+ <div>+ <div style={{+ fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',+ color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10+ }}>+ {t('settings.general.language')}+ </div>+ <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}>+ <div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>+ <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>{t('settings.general.language')}</span>+ <span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>+ {t('settings.general.languageDesc')}+ </span>+ </div>+ <select+ value={i18n.language}+ onChange={(e) => setLanguage(e.target.value)}+ style={slackInputStyle}+ aria-label={t('settings.general.language')}+ >+ {LANGUAGES.map((l) => (+ <option key={l.code} value={l.code}>{l.label}</option>+ ))}+ </select>+ </div>+ </div>++ <div style={{ height: 1, background: 'var(--cth-ink-300)' }} />+{/* Desktop notifications toggle */}<div><div style={{fontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Notifications+ {t('settings.general.notifications')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Desktop notifications+ {t('settings.general.desktopNotifications')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Native toasts when an agent finishes or needs your input.+ {t('settings.general.desktopNotificationsDesc')}</span></div><PixelButton@@ -972,7 +1014,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={toggleNotifications}>- {notifications ? 'on' : 'off'}+ {notifications ? t('common.on') : t('common.off')}</PixelButton></div></div>@@ -985,17 +1027,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Maintenance+ {t('settings.general.maintenance')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Scheduled auto-compact+ {t('settings.general.autoCompact')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Queue /compact for every agent on a schedule (hourly by default; interval- in the Triggers tab). Off by default — long-running agents may overflow- their context without it.+ {t('settings.general.autoCompactDesc')}</span></div><PixelButton@@ -1003,18 +1043,17 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={toggleAutoCompact}>- {autoCompactOn ? 'on' : 'off'}+ {autoCompactOn ? t('common.on') : t('common.off')}</PixelButton></div><div style={{ height: 10 }} /><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Auto-update+ {t('settings.general.autoUpdate')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Check GitHub releases and download updates in the background;- you choose when to restart. Never restarts on its own.+ {t('settings.general.autoUpdateDesc')}</span></div><PixelButton@@ -1022,18 +1061,17 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={toggleAutoUpdate}>- {autoUpdateOn ? 'on' : 'off'}+ {autoUpdateOn ? t('common.on') : t('common.off')}</PixelButton></div><div style={{ height: 10 }} /><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Anonymous usage stats+ {t('settings.general.telemetry')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- A handful of anonymous events (app opened, agent spawned, feature used) —- never prompts, code, paths, or agent output. Full list in TELEMETRY.md.+ {t('settings.general.telemetryDesc')}</span></div><PixelButton@@ -1041,7 +1079,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={toggleTelemetry}>- {telemetryOn ? 'on' : 'off'}+ {telemetryOn ? t('common.on') : t('common.off')}</PixelButton></div></div>@@ -1065,12 +1103,11 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Default agent model+ {t('settings.agentsModels.defaultModel')}</div><div style={{ display: 'flex', flexDirection: 'column', gap: 6 }}><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Every newly spawned Claude agent (Michael included) starts on this model unless picked per-agent.- Marked “· default” in the model pickers.+ {t('settings.agentsModels.defaultModelDesc')}</span><div style={{ display: 'flex', gap: 6, flexWrap: 'wrap' }}>{AGENT_MODELS.map((m) => (@@ -1102,18 +1139,18 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Advanced+ {t('settings.agentsModels.advanced')}</div><div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>- <span style={{ fontSize: 13, color: 'var(--cth-ink-900)' }}>Max turns per run</span>+ <span style={{ fontSize: 13, color: 'var(--cth-ink-900)' }}>{t('settings.agentsModels.maxTurns')}</span><inputtype="number" min="1" step="10" value={maxTurnsVal}onChange={(e) => setMaxTurnsVal(e.target.value)}onBlur={() => void saveMaxTurns()}- placeholder="unlimited"+ placeholder={t('settings.agentsModels.unlimited')}style={{ ...slackInputStyle, width: 120 }}/>- <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>blank = unlimited</span>+ <span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{t('settings.agentsModels.blankUnlimited')}</span></div></div></>@@ -1127,19 +1164,19 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Autonomy+ {t('settings.autonomy.autonomy')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- {autoModeOn ? 'Autonomous — agents act without asking' : 'Ask-first — agents pause for tool approval'}+ {autoModeOn ? t('settings.autonomy.autoOn') : t('settings.autonomy.autoOff')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Applies to newly spawned agents (each agent's command can still override).+ {t('settings.autonomy.autoDesc')}</span></div><PixelButton variant={autoModeOn ? 'primary' : 'secondary'} size="sm" onClick={toggleAutoMode}>- {autoModeOn ? 'autonomous' : 'ask-first'}+ {autoModeOn ? t('settings.autonomy.autonomous') : t('settings.autonomy.askFirst')}</PixelButton></div></div>@@ -1172,73 +1209,73 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Circuit breaker+ {t('settings.autonomy.breaker')}</div><div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Guard against runaway agents and spend. The breaker steers, then constrains, then stops an agent that crosses these.+ {t('settings.autonomy.breakerDesc')}</span><PixelButton variant={brkEnabled ? 'primary' : 'secondary'} size="sm"onClick={() => { setBrkEnabled(!brkEnabled); }}>- {brkEnabled ? 'on' : 'off'}+ {brkEnabled ? t('common.on') : t('common.off')}</PixelButton></div><div style={{ display: 'flex', gap: 20, flexWrap: 'wrap' }}><label style={{ display: 'flex', flexDirection: 'column', gap: 4, ...slackLabelStyle }}>- floor token budget+ {t('settings.autonomy.floorBudget')}<inputtype="number" min="0" step="100000" value={agentBudget}onChange={(e) => setAgentBudget(e.target.value)}- placeholder="e.g. 1000000"+ placeholder={t('settings.autonomy.budgetPlaceholder')}style={{ ...slackInputStyle, width: 180 }}/><span style={{ fontSize: 11, color: 'var(--cth-ink-500)' }}>- {fmtBudgetTokens(agentBudget) ? `= ${fmtBudgetTokens(agentBudget)} tokens` : 'total tokens across the floor'}+ {fmtBudgetTokens(agentBudget) ? t('settings.autonomy.budgetEquals', { value: fmtBudgetTokens(agentBudget) }) : t('settings.autonomy.budgetTotal')}</span></label><label style={{ display: 'flex', flexDirection: 'column', gap: 4, ...slackLabelStyle }}>- token velocity (tok/min)+ {t('settings.autonomy.velocity')}<inputtype="number" min="0" step="1000" value={velocityCeiling}onChange={(e) => setVelocityCeiling(e.target.value)}- placeholder="e.g. 200000"+ placeholder={t('settings.autonomy.velocityPlaceholder')}style={{ ...slackInputStyle, width: 180 }}/></label><label style={{ display: 'flex', flexDirection: 'column', gap: 4, ...slackLabelStyle }}>- repeated-tool limit+ {t('settings.autonomy.repeatedLimit')}<inputtype="number" min="0" step="5" value={brkRepeated}onChange={(e) => setBrkRepeated(e.target.value)}- placeholder="default"+ placeholder={t('settings.autonomy.defaultPlaceholder')}style={{ ...slackInputStyle, width: 140 }}/></label><label style={{ display: 'flex', flexDirection: 'column', gap: 4, ...slackLabelStyle }}>- error-storm limit+ {t('settings.autonomy.errorStormLimit')}<inputtype="number" min="0" step="5" value={brkErrStorm}onChange={(e) => setBrkErrStorm(e.target.value)}- placeholder="default"+ placeholder={t('settings.autonomy.defaultPlaceholder')}style={{ ...slackInputStyle, width: 140 }}/></label></div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>- <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>Hard stop</span>+ <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>{t('settings.autonomy.hardStop')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- When tripped, KILL the agent instead of just constraining it. Off = steer-first (recommended).+ {t('settings.autonomy.hardStopDesc')}</span></div><PixelButton variant={brkHardStop ? 'destructive' : 'secondary'} size="sm"onClick={() => { setBrkHardStop(!brkHardStop); }}>- {brkHardStop ? 'kill on trip' : 'steer first'}+ {brkHardStop ? t('settings.autonomy.killOnTrip') : t('settings.autonomy.steerFirst')}</PixelButton></div><div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>- <PixelButton variant="secondary" size="sm" onClick={saveBudget}>save</PixelButton>+ <PixelButton variant="secondary" size="sm" onClick={saveBudget}>{t('common.save')}</PixelButton>{budgetNote && <span style={{ fontSize: 12, color: 'var(--cth-mint)' }}>{budgetNote}</span>}</div></div>@@ -1254,17 +1291,17 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Semantic memory+ {t('settings.memory.semanticMemory')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>- <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>Cross-session recall</span>+ <span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>{t('settings.memory.crossSession')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Agents' markdown memory is indexed for instant search. The embedding model lives in the Memory panel.+ {t('settings.memory.crossSessionDesc')}</span></div><PixelButton variant={semMemOn ? 'primary' : 'secondary'} size="sm" onClick={toggleSemMem}>- {semMemOn ? 'on' : 'off'}+ {semMemOn ? t('common.on') : t('common.off')}</PixelButton></div></div>@@ -1277,15 +1314,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 10}}>- Knowledge Graph+ {t('settings.memory.kg')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Enterprise knowledge base+ {t('settings.memory.kgTitle')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Add your docs, images & PDFs; agents query them on demand via the <code>kg</code> tool.+ {t('settings.memory.kgDesc')}</span></div><PixelButton@@ -1293,16 +1330,18 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={toggleKg}>- {kgEnabled ? 'on' : 'off'}+ {kgEnabled ? t('common.on') : t('common.off')}</PixelButton></div>{kgEnabled && (<div style={{ display: 'flex', alignItems: 'center', gap: 10, marginTop: 10 }}><PixelButton variant="secondary" size="sm" onClick={addKgFiles} disabled={kgBusy}>- {kgBusy ? 'adding…' : 'add files…'}+ {kgBusy ? t('settings.memory.adding') : t('settings.memory.addFiles')}</PixelButton><span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- {kgDocCount} document{kgDocCount === 1 ? '' : 's'} indexed+ {kgDocCount === 1+ ? t('settings.memory.docCount', { count: kgDocCount })+ : t('settings.memory.docCountPlural', { count: kgDocCount })}</span>{kgNote && <span style={{ fontSize: 12, color: 'var(--cth-mint)' }}>{kgNote}</span>}</div>@@ -1334,16 +1373,16 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 2}}>- Slack+ {t('settings.connections.slack')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ display: 'flex', alignItems: 'center', gap: 6, fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Slack integration+ {t('settings.connections.slackIntegration')}{/* i - toggles the step-by-step connect guide. */}<buttontype="button"- aria-label="Show Slack connect steps"+ aria-label={t('settings.connections.showSlackHelp')}aria-expanded={showSlackHelp}onClick={() => setShowSlackHelp((v) => !v)}style={{@@ -1357,7 +1396,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal>i</button></span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Pipe a Slack channel's messages straight into Michael's queue.+ {t('settings.connections.slackDesc')}</span></div><div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>@@ -1366,14 +1405,14 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontSize: 12, lineHeight: '16px',color: running ? 'var(--cth-mint-700, #1f7a4d)' : 'var(--cth-ink-500)'}}>- {running ? '● Connected' : '○ Not connected'}+ {running ? t('settings.connections.connected') : t('settings.connections.notConnected')}</span><PixelButtonvariant={slackEnabled ? 'primary' : 'secondary'}size="sm"onClick={() => setSlackEnabled((v) => !v)}>- {slackEnabled ? 'on' : 'off'}+ {slackEnabled ? t('common.on') : t('common.off')}</PixelButton></div></div>@@ -1395,18 +1434,18 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal{/* Signing secret + bot token side-by-side in the wider layout */}<div style={{ display: 'flex', gap: 16 }}><label style={{ display: 'flex', flexDirection: 'column', gap: 4, flex: 1 }}>- <span style={slackLabelStyle}>Signing secret</span>+ <span style={slackLabelStyle}>{t('settings.connections.signingSecret')}</span><inputtype="password"value={slackSecret}onChange={(e) => setSlackSecret(e.target.value)}- placeholder="Slack app -> Basic Information -> Signing Secret"+ placeholder={t('settings.connections.signingSecretPlaceholder')}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}/></label>{/* Bot token: stays in main; never leaves the main process. */}<label style={{ display: 'flex', flexDirection: 'column', gap: 4, flex: 1 }}>- <span style={slackLabelStyle}>Bot token</span>+ <span style={slackLabelStyle}>{t('settings.connections.botToken')}</span><inputtype="password"value={slackBotToken}@@ -1419,16 +1458,16 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ display: 'flex', gap: 16 }}><label style={{ display: 'flex', flexDirection: 'column', gap: 4, flex: 1 }}>- <span style={slackLabelStyle}>Channel id (optional)</span>+ <span style={slackLabelStyle}>{t('settings.connections.channelId')}</span><inputvalue={slackChannel}onChange={(e) => setSlackChannel(e.target.value)}- placeholder="C0123... or blank for any"+ placeholder={t('settings.connections.channelPlaceholder')}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}/></label><label style={{ display: 'flex', flexDirection: 'column', gap: 4, width: 100 }}>- <span style={slackLabelStyle}>Port</span>+ <span style={slackLabelStyle}>{t('settings.connections.port')}</span><inputtype="number"value={slackPort}@@ -1445,27 +1484,27 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalSlack-ORIGIN done-reply round-trip is never gated. */}<div style={{ display: 'flex', alignItems: 'center', gap: 8, justifyContent: 'space-between' }}><span style={slackLabelStyle}>- Proactive posting (app-initiated) — off by default+ {t('settings.connections.proactivePosting')}</span><PixelButtonvariant={slackProactivePosting ? 'primary' : 'secondary'}size="sm"onClick={() => setSlackProactivePosting((v) => !v)}>- {slackProactivePosting ? 'on' : 'off'}+ {slackProactivePosting ? t('common.on') : t('common.off')}</PixelButton></div><div style={{ display: 'flex', gap: 8, alignItems: 'center' }}>{/* Start disabled once connected; Stop only when running. */}<PixelButton variant="primary" size="sm" onClick={startSlack} disabled={slackBusy || !slackSecret.trim() || running}>- {slackBusy ? '...' : running ? 'connected' : 'start'}+ {slackBusy ? '...' : running ? t('settings.connections.connectedBtn') : t('settings.connections.start')}</PixelButton><PixelButton variant="secondary" size="sm" onClick={stopSlack} disabled={slackBusy || !running}>- stop+ {t('settings.connections.stop')}</PixelButton><PixelButton variant="ghost" size="sm" onClick={saveSlack} disabled={slackBusy}>- save+ {t('common.save')}</PixelButton>{slackNote && (<span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{slackNote}</span>@@ -1479,8 +1518,8 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ display: 'flex', flexDirection: 'column', gap: 4, opacity: running ? 1 : 0.55 }}><span style={slackLabelStyle}>{running- ? 'Request URL - paste into Slack Event Subscriptions'- : 'last Request URL - Slack reuses it until you Stop'}+ ? t('settings.connections.requestUrl')+ : t('settings.connections.lastRequestUrl')}</span><div style={{ display: 'flex', gap: 6 }}><input@@ -1489,16 +1528,13 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonFocus={(e) => e.currentTarget.select()}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)', fontSize: 12 }}/>- <PixelButton variant="secondary" size="sm" onClick={copyTunnel} disabled={!tunnelUrl}>copy</PixelButton>+ <PixelButton variant="secondary" size="sm" onClick={copyTunnel} disabled={!tunnelUrl}>{t('common.copy')}</PixelButton></div></div>)}<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- In your Slack app: enable Event Subscriptions, add the{' '}- <code>message.channels</code> / <code>message.groups</code> bot event, set the- Request URL above, and reinstall to your workspace. The tunnel URL changes on every- restart, so re-paste it after pressing Start again.+ {t('settings.connections.slackHint')}</span></div>)}@@ -1515,15 +1551,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 2}}>- Webhook triggers+ {t('settings.connections.webhooks')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ display: 'flex', alignItems: 'center', gap: 6, fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Webhook triggers+ {t('settings.connections.webhooks')}<buttontype="button"- aria-label="Show webhook API format"+ aria-label={t('settings.connections.showWebhookHelp')}aria-expanded={showWebhookHelp}onClick={() => setShowWebhookHelp((v) => !v)}style={{@@ -1537,8 +1573,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal>i</button></span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- One endpoint per caller, each with its own secret and mode. They all share- one server, so another webhook costs nothing.+ {t('settings.connections.webhooksDesc')}</span></div><div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>@@ -1546,10 +1581,10 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontSize: 12, lineHeight: '16px',color: webhookRunning ? 'var(--cth-mint-700, #1f7a4d)' : 'var(--cth-ink-500)'}}>- {webhookRunning ? '● Listening' : '○ Not listening'}+ {webhookRunning ? t('settings.connections.listeningOn') : t('settings.connections.notListening')}</span><PixelButton variant="primary" size="sm" onClick={addWebhook} disabled={webhookBusy}>- add webhook+ {t('settings.connections.addWebhook')}</PixelButton></div></div>@@ -1566,13 +1601,12 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal{/* Public surface warning. Loud, not buried. */}<span style={{ fontSize: 12, lineHeight: '16px', color: '#6E1423' }}>- Every webhook you switch on is a PUBLIC endpoint anyone holding its secret can post to.- New ones arrive off.+ {t('settings.connections.webhookWarning')}</span>{webhookTriggers.length === 0 ? (<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- No webhooks yet. Add one to give a tool a URL it can hand work to.+ {t('settings.connections.noWebhooks')}</span>) : (<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>@@ -1597,7 +1631,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalvalue={w.name}onChange={(e) => { void patchWebhook(w.id, { name: e.target.value }, false); }}onBlur={() => { void applyWebhooks(webhookTriggers); }}- placeholder="what calls this?"+ placeholder={t('settings.connections.namePlaceholder')}style={{ ...slackInputStyle, flex: 1 }}/><PixelButton@@ -1606,7 +1640,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => { void patchWebhook(w.id, { enabled: !w.enabled }); }}disabled={webhookBusy}>- {w.enabled ? 'on' : 'off'}+ {w.enabled ? t('common.on') : t('common.off')}</PixelButton>{/* Two clicks: deleting revokes a caller's access for good. */}<PixelButton@@ -1618,15 +1652,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal}}disabled={webhookBusy}>- {pendingDelete === w.id ? 'sure?' : 'delete'}+ {pendingDelete === w.id ? t('settings.connections.sure') : t('common.delete')}</PixelButton></div><div style={{ display: 'flex', gap: 6, alignItems: 'center' }}>- <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>URL</span>+ <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>{t('settings.connections.url')}</span><inputreadOnly- value={endpoint || 'starts once the webhook server is listening'}+ value={endpoint || t('settings.connections.endpointPlaceholder')}onFocus={(e) => e.currentTarget.select()}style={{...slackInputStyle, fontFamily: 'var(--cth-font-mono)', fontSize: 12,@@ -1639,13 +1673,13 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => { void window.cth.copyToClipboard(endpoint); }}disabled={!endpoint}>- copy+ {t('common.copy')}</PixelButton></div>{/* Masked by default; never in a title attribute. */}<div style={{ display: 'flex', gap: 6, alignItems: 'center' }}>- <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>Secret</span>+ <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>{t('settings.connections.secret')}</span><inputtype={shown ? 'text' : 'password'}readOnly@@ -1658,14 +1692,14 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalsize="sm"onClick={() => setShownSecrets((s) => ({ ...s, [w.id]: !shown }))}>- {shown ? 'hide' : 'show'}+ {shown ? t('common.hide') : t('common.show')}</PixelButton><PixelButtonvariant="secondary"size="sm"onClick={() => { void window.cth.copyToClipboard(w.secret); }}>- copy+ {t('common.copy')}</PixelButton><PixelButtonvariant="ghost"@@ -1673,12 +1707,12 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => { void rotateWebhookSecret(w.id); }}disabled={webhookBusy}>- rotate+ {t('settings.connections.rotate')}</PixelButton></div><div style={{ display: 'flex', gap: 6, alignItems: 'center' }}>- <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>Mode</span>+ <span style={{ ...slackLabelStyle, width: 56, flexShrink: 0 }}>{t('settings.connections.mode')}</span><selectvalue={w.mode}onChange={(e) => { void patchWebhook(w.id, { mode: e.target.value as TriggerMode }); }}@@ -1699,10 +1733,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal)}<span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Callers POST to a webhook's URL with its secret in the{' '}- <code>x-md-webhook-secret</code> header. Each one checks bodies against its own JSON- schema — edit that in the Triggers tab of Michael's Command Center, where the history- of everything that arrived lives too.+ {t('settings.connections.webhooksHint')}</span>{webhookNote && (@@ -1719,15 +1750,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 2}}>- Organisation+ {t('settings.connections.organisation')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Organisation key+ {t('settings.connections.orgKey')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- How a teammate's install addresses yours.+ {t('settings.connections.orgKeyDesc')}</span></div><PixelButton@@ -1736,19 +1767,19 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => { void applyOrg({ ...orgTrigger, enabled: !orgTrigger.enabled }); }}disabled={orgBusy}>- {orgTrigger.enabled ? 'on' : 'off'}+ {orgTrigger.enabled ? t('common.on') : t('common.off')}</PixelButton></div><label style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>- <span style={slackLabelStyle}>API key</span>+ <span style={slackLabelStyle}>{t('settings.connections.apiKey')}</span><div style={{ display: 'flex', gap: 6 }}><inputtype={showOrgKey ? 'text' : 'password'}value={orgTrigger.apiKey}onChange={(e) => { void applyOrg({ ...orgTrigger, apiKey: e.target.value }, false); }}onBlur={() => { void applyOrg(orgTrigger); }}- placeholder="paste your organisation key"+ placeholder={t('settings.connections.orgKeyPlaceholder')}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}/><PixelButton@@ -1757,7 +1788,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => setShowOrgKey((v) => !v)}disabled={!orgTrigger.apiKey}>- {showOrgKey ? 'hide' : 'show'}+ {showOrgKey ? t('common.hide') : t('common.show')}</PixelButton></div></label>@@ -1767,7 +1798,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal</span><label style={{ display: 'flex', flexDirection: 'column', gap: 4, width: 200 }}>- <span style={slackLabelStyle}>Mode</span>+ <span style={slackLabelStyle}>{t('settings.connections.mode')}</span><selectvalue={orgTrigger.mode}onChange={(e) => { void applyOrg({ ...orgTrigger, mode: e.target.value as TriggerMode }); }}@@ -1784,7 +1815,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ display: 'flex', gap: 8, alignItems: 'center' }}><PixelButton variant="ghost" size="sm" onClick={() => { void applyOrg(orgTrigger); }} disabled={orgBusy}>- save+ {t('common.save')}</PixelButton>{orgNote && (<span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{orgNote}</span>@@ -1792,8 +1823,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal</div><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Configuration only for now. The organisation messaging service does not exist yet, so a- key here starts no transport — it is saved, shown in the Triggers tab, and waits.+ {t('settings.connections.orgConfigOnly')}</span></div>@@ -1809,15 +1839,15 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 2}}>- Free Flow+ {t('settings.voice.freeFlow')}</div><div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 12 }}><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Free Flow (voice dictation)+ {t('settings.voice.freeFlowTitle')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Push-to-talk dictation: speak, and Groq Whisper drops the text into the queue composer.+ {t('settings.voice.freeFlowDesc')}</span></div><PixelButton@@ -1826,7 +1856,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={toggleFreeflow}disabled={freeflowBusy}>- {freeflowEnabled ? 'on' : 'off'}+ {freeflowEnabled ? t('common.on') : t('common.off')}</PixelButton></div>@@ -1834,37 +1864,37 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{ display: 'flex', flexDirection: 'column', gap: 10 }}>{/* Groq API key — stored in main config, used only there. */}<label style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>- <span style={slackLabelStyle}>Groq API key</span>+ <span style={slackLabelStyle}>{t('settings.voice.groqKey')}</span><div style={{ display: 'flex', gap: 6 }}><inputtype={showGroqKey ? 'text' : 'password'}value={groqKey}onChange={(e) => setGroqKey(e.target.value)}- placeholder="gsk_... (get a free key at console.groq.com)"+ placeholder={t('settings.voice.groqPlaceholder')}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}/><PixelButton variant="secondary" size="sm" onClick={() => setShowGroqKey((v) => !v)} disabled={!groqKey}>- {showGroqKey ? 'hide' : 'show'}+ {showGroqKey ? t('common.hide') : t('common.show')}</PixelButton></div></label>{/* Model picker */}<label style={{ display: 'flex', flexDirection: 'column', gap: 4, width: 280 }}>- <span style={slackLabelStyle}>Model</span>+ <span style={slackLabelStyle}>{t('settings.voice.model')}</span><selectvalue={freeflowModel}onChange={(e) => setFreeflowModel(e.target.value)}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}>- <option value="whisper-large-v3-turbo">whisper-large-v3-turbo (fast)</option>- <option value="whisper-large-v3">whisper-large-v3 (accurate)</option>+ <option value="whisper-large-v3-turbo">{t('settings.voice.fast')}</option>+ <option value="whisper-large-v3">{t('settings.voice.accurate')}</option></select></label><div style={{ display: 'flex', gap: 8, alignItems: 'center' }}><PixelButton variant="ghost" size="sm" onClick={() => saveFreeflow()} disabled={freeflowBusy}>- save+ {t('common.save')}</PixelButton>{freeflowNote && (<span style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>{freeflowNote}</span>@@ -1872,11 +1902,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal</div><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Two ways to dictate: click the mic button above Send in the queue composer (click to record,- click again to transcribe), or — while viewing any agent's terminal — <strong>hold Option- (⌥)</strong> to talk and release to transcribe. Either way the text lands in the composer- draft for you to review before sending. macOS will ask for microphone permission the first- time you record.+ {t('settings.voice.freeFlowHint')}</span></div>)}@@ -1890,15 +1916,14 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase', marginBottom: 2}}>- Realtime Michael+ {t('settings.voice.realtime')}</div><div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-900)' }}>- Voice chat with Michael+ {t('settings.voice.voiceChat')}</span><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- Talk to the orchestrator in real time. Toggle it on from Michael's tab; choose which- microphone and speaker the voice loop uses here.+ {t('settings.voice.voiceChatDesc')}</span></div>@@ -1919,19 +1944,13 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalfontFamily: 'var(--cth-font-display)', fontSize: 8, lineHeight: '12px',color: 'var(--cth-ink-500)', textTransform: 'uppercase'}}>- OpenAI API key · voice+ {t('settings.voice.openaiKey')}</span><span style={{ fontSize: 12, lineHeight: '17px', color: 'var(--cth-ink-700)' }}>- Talking to Michael runs on OpenAI’s Realtime API — speech in, speech out, over a- live connection to <strong style={{ fontFamily: 'var(--cth-font-mono)' }}>{REALTIME_MODEL}</strong>.- That is a different service from the Claude subscription your agents run on, so it needs- its own <strong>OpenAI API key</strong>.+ {t('settings.voice.openaiKeyDesc1', { model: REALTIME_MODEL })}</span><span style={{ fontSize: 12, lineHeight: '17px', color: 'var(--cth-ink-700)' }}>- Paste it once below. It is encrypted on this machine and never shown again — each voice- session mints its own short-lived token from it, and the key itself never leaves your- computer. It is the same OpenAI key listed under <strong>Agents & Models</strong>;- setting it in either place is enough.+ {t('settings.voice.openaiKeyDesc2')}</span><div style={{ display: 'flex', gap: 6, alignItems: 'center' }}><input@@ -1939,7 +1958,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalvalue={openAiVoiceKey}onChange={(e) => setOpenAiVoiceKey(e.target.value)}onKeyDown={(e) => { if (e.key === 'Enter') void saveOpenAiVoiceKey(); }}- placeholder={hasOpenAiKey ? 'key saved — paste a new one to replace it' : 'sk-…'}+ placeholder={hasOpenAiKey ? t('settings.voice.keyPlaceholderSaved') : 'sk-…'}style={{ ...slackInputStyle, flex: 1, fontFamily: 'var(--cth-font-mono)' }}/><PixelButton@@ -1948,7 +1967,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalonClick={() => void saveOpenAiVoiceKey()}disabled={!openAiVoiceKey.trim()}>- Save+ {t('settings.voice.save')}</PixelButton></div><span style={{@@ -1962,8 +1981,8 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModalboxShadow: 'inset 0 0 0 1px var(--cth-ink-300)'}} />{openAiVoiceNote || (hasOpenAiKey- ? 'Key saved — Talk is ready. Start it from Michael’s card.'- : 'No key yet — Talk stays disabled until one is saved.')}+ ? t('settings.voice.keySaved')+ : t('settings.voice.noKey'))}</span></div>@@ -1972,7 +1991,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal{/* rt-9 idle-tunable: how long an idle voice session stays open beforeit auto-closes. The spend cap remains the real runaway guard. */}<label style={{ display: 'flex', flexDirection: 'column', gap: 4, width: 280 }}>- <span style={slackLabelStyle}>Idle auto-disconnect</span>+ <span style={slackLabelStyle}>{t('settings.voice.idleDisconnect')}</span><selectvalue={String(idleDisconnectMs)}onChange={(e) => {@@ -1982,17 +2001,16 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal}}style={{ ...slackInputStyle, fontFamily: 'var(--cth-font-mono)' }}>- <option value="30000">30 seconds</option>- <option value="60000">1 minute</option>- <option value="120000">2 minutes</option>- <option value="180000">3 minutes</option>- <option value="300000">5 minutes</option>- <option value="600000">10 minutes</option>- <option value="0">Off (never)</option>+ <option value="30000">{t('settings.voice.30s')}</option>+ <option value="60000">{t('settings.voice.1m')}</option>+ <option value="120000">{t('settings.voice.2m')}</option>+ <option value="180000">{t('settings.voice.3m')}</option>+ <option value="300000">{t('settings.voice.5m')}</option>+ <option value="600000">{t('settings.voice.10m')}</option>+ <option value="0">{t('settings.voice.never')}</option></select><span style={{ fontSize: 12, lineHeight: '16px', color: 'var(--cth-ink-500)' }}>- How long the voice session stays open with no talking before it auto-closes.- The spend cap still stops a runaway session even when this is off.+ {t('settings.voice.idleDisconnectDesc')}</span></label></div>@@ -2005,15 +2023,13 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModal<div style={{fontFamily: 'var(--cth-font-display)', fontSize: 10, lineHeight: '14px',color: '#6E1423'- }}>DANGER ZONE</div>+ }}>{t('settings.general.dangerZone')}</div><p style={{ margin: 0, fontSize: 13, lineHeight: '20px', color: 'var(--cth-ink-700)' }}>- Reset wipes Michael's memories, the entire hive (every agent, message,- task, and the board), the semantic-memory palace, and all settings -- then takes you back to onboarding.+ {t('settings.general.dangerDesc')}</p><div><PixelButton variant="destructive" size="md" onClick={() => setConfirming(true)}>- reset & start over+ {t('settings.general.resetStartOver')}</PixelButton></div></div>@@ -2029,7 +2045,7 @@ export function SettingsModal({ config, onClose, initialSection }: SettingsModaldisplay: 'flex', justifyContent: 'flex-end',background: 'var(--cth-cream-50)'}}>- <PixelButton variant="secondary" size="md" onClick={onClose}>close</PixelButton>+ <PixelButton variant="secondary" size="md" onClick={onClose}>{t('settings.close')}</PixelButton></div></>)}diff --git a/src/renderer/src/components/SidebarTabs.tsx b/src/renderer/src/components/SidebarTabs.tsxindex ad867bcf..db017d01 100644--- a/src/renderer/src/components/SidebarTabs.tsx+++ b/src/renderer/src/components/SidebarTabs.tsx@@ -1,14 +1,15 @@+import { useTranslation } from 'react-i18next';import { type SidebarTab } from '@/store/store';import { type AccentColorName } from '@/design/tokens';import { Icon, type IconName } from './Icon';// v0.3.4: the files tab is gone — the per-agent IDE button (header) opens the// full Monaco editor + file tree, which superseded the read-only browser.-const TABS: { key: SidebarTab; label: string; icon: IconName }[] = [- { key: 'terminal', label: 'terminal', icon: 'terminal' },- { key: 'git', label: 'git', icon: 'code' },- { key: 'messages', label: 'messages', icon: 'bell' },- { key: 'traces', label: 'traces', icon: 'web' }+const TABS: { key: SidebarTab; labelKey: string; icon: IconName }[] = [+ { key: 'terminal', labelKey: 'sidebar.terminal', icon: 'terminal' },+ { key: 'git', labelKey: 'sidebar.git', icon: 'code' },+ { key: 'messages', labelKey: 'sidebar.messages', icon: 'bell' },+ { key: 'traces', labelKey: 'sidebar.traces', icon: 'web' }];export interface SidebarTabsProps {@@ -18,6 +19,7 @@ export interface SidebarTabsProps {}export function SidebarTabs({ current, accent, onChange }: SidebarTabsProps) {+ const { t } = useTranslation();return (<div style={{display: 'flex',@@ -26,12 +28,12 @@ export function SidebarTabs({ current, accent, onChange }: SidebarTabsProps) {boxShadow: 'inset 0 -2px 0 var(--cth-ink-900)',flexShrink: 0}}>- {TABS.map(t => {- const active = current === t.key;+ {TABS.map(tab => {+ const active = current === tab.key;return (<button- key={t.key}- onClick={() => onChange(t.key)}+ key={tab.key}+ onClick={() => onChange(tab.key)}style={{flex: 1,height: 36,@@ -52,7 +54,7 @@ export function SidebarTabs({ current, accent, onChange }: SidebarTabsProps) {gap: 6}}>- <Icon name={t.icon} /> {t.label.toUpperCase()}+ <Icon name={tab.icon} /> {t(tab.labelKey).toUpperCase()}</button>);})}diff --git a/src/renderer/src/components/ToolWaterfall.tsx b/src/renderer/src/components/ToolWaterfall.tsxindex 6c586008..16a79178 100644--- a/src/renderer/src/components/ToolWaterfall.tsx+++ b/src/renderer/src/components/ToolWaterfall.tsx@@ -1,3 +1,4 @@+import { useTranslation } from 'react-i18next';import { useAgentSpans, useFleetTelemetry, totalTokens, cacheFraction } from '@/hooks/useTelemetry';/**@@ -8,6 +9,7 @@ import { useAgentSpans, useFleetTelemetry, totalTokens, cacheFraction } from '@/* the headline upgrade over the old bare tool-count proxy.*/export function ToolWaterfall({ agentId }: { agentId: string }) {+ const { t } = useTranslation();const spans = useAgentSpans(agentId);const { samples } = useFleetTelemetry();const sample = samples[agentId];@@ -28,16 +30,16 @@ export function ToolWaterfall({ agentId }: { agentId: string }) {<><span><strong>${sample.usd.toFixed(2)}</strong></span><span style={{ color: 'var(--cth-ink-700)' }}>- fresh {fmtTokens(sample.input + sample.cacheCreation)}t+ {t('toolWaterfall.fresh', { tokens: fmtTokens(sample.input + sample.cacheCreation) })}</span><span style={{ color: 'var(--cth-sky)' }}>- cache {fmtTokens(sample.cacheRead)}t ({Math.round(cacheFraction(sample) * 100)}%)+ {t('toolWaterfall.cache', { tokens: fmtTokens(sample.cacheRead), pct: Math.round(cacheFraction(sample) * 100) })}</span>{sample.model && <span style={{ color: 'var(--cth-ink-500)' }}>{sample.model}</span>}- <span style={{ color: 'var(--cth-ink-500)' }}>{fmtTokens(totalTokens(sample))}t total</span>+ <span style={{ color: 'var(--cth-ink-500)' }}>{t('toolWaterfall.total', { tokens: fmtTokens(totalTokens(sample)) })}</span></>) : (- <span style={{ color: 'var(--cth-ink-500)' }}>no live telemetry yet — spawn / respawn this agent to instrument it</span>+ <span style={{ color: 'var(--cth-ink-500)' }}>{t('toolWaterfall.noTelemetry')}</span>)}</div>@@ -45,7 +47,7 @@ export function ToolWaterfall({ agentId }: { agentId: string }) {<div style={{ flex: 1, minHeight: 0, overflowY: 'auto', padding: 10 }}>{recent.length === 0 && (<div style={{ fontSize: 12, color: 'var(--cth-ink-500)' }}>- No tool calls captured yet. Each tool the agent runs appears here with its real duration.+ {t('toolWaterfall.empty')}</div>)}{recent.map((s, i) => {@@ -58,7 +60,11 @@ export function ToolWaterfall({ agentId }: { agentId: string }) {</span><div style={{ flex: 1, height: 12, background: 'var(--cth-paper-100)', boxShadow: 'inset 0 0 0 1px var(--cth-ink-300)' }}><div- title={s.error ? `${s.tool}: ${s.error}` : `${s.tool} · ${s.durationMs}ms · ${ok ? 'ok' : 'failed'}`}+ title={s.error+ ? `${s.tool}: ${s.error}`+ : ok+ ? t('toolWaterfall.barOk', { tool: s.tool, ms: s.durationMs })+ : t('toolWaterfall.barFailed', { tool: s.tool, ms: s.durationMs })}style={{ width: `${pct}%`, height: '100%', background: ok ? 'var(--cth-mint)' : 'var(--cth-coral)' }}/></div>diff --git a/src/renderer/src/i18n/index.ts b/src/renderer/src/i18n/index.tsnew file mode 100644index 00000000..dc971b45--- /dev/null+++ b/src/renderer/src/i18n/index.ts@@ -0,0 +1,64 @@+/**+ * i18n bootstrap — react-i18next with inline JSON resources.+ *+ * English is the default language (and the fallback for any missing key).+ * The user's choice is persisted in localStorage (`cth.language`) and, when+ * nothing has been chosen yet, the app follows the OS/browser language+ * (navigator.language) — so a Chinese-locale machine lands on 简体中文 out of+ * the box.+ *+ * Adding a language: drop a `locales/<code>.json` with the exact same key+ * tree as `en.json`, register it in `resources` and `supportedLngs`, and add+ * an entry to `LANGUAGES` (Settings → General exposes the picker from that+ * list). No other code needs to change.+ */+import i18n from 'i18next';+import { initReactI18next } from 'react-i18next';+import en from './locales/en.json';+import zhCN from './locales/zh-CN.json';++/** The languages the Settings picker offers, in display order. */+export const LANGUAGES = [+ { code: 'en', label: 'English' },+ { code: 'zh-CN', label: '简体中文' }+] as const;++export type LanguageCode = (typeof LANGUAGES)[number]['code'];++const STORAGE_KEY = 'cth.language';++/** Resolve the initial language: saved choice, else the OS/browser locale. */+function detectLanguage(): string {+ try {+ const saved = window.localStorage.getItem(STORAGE_KEY);+ if (saved) return saved;+ } catch { /* localStorage unavailable — fall through to the locale */ }+ const nav = (window.navigator.language ?? 'en').toLowerCase();+ return nav.startsWith('zh') ? 'zh-CN' : 'en';+}++/** Switch language now and persist the choice for next launch. */+export function setLanguage(lng: string): void {+ void i18n.changeLanguage(lng);+ try { window.localStorage.setItem(STORAGE_KEY, lng); } catch { /* best-effort */ }+}++void i18n+ .use(initReactI18next)+ .init({+ resources: {+ en: { translation: en },+ 'zh-CN': { translation: zhCN }+ },+ lng: detectLanguage(),+ fallbackLng: 'en',+ supportedLngs: ['en', 'zh-CN'],+ // Resources are bundled inline, so nothing ever suspends — the string is+ // there at init time. Keeping this false lets every component call+ // useTranslation() without wrapping the tree in <Suspense>.+ react: { useSuspense: false },+ interpolation: { escapeValue: false },+ returnNull: false+ });++export default i18n;diff --git a/src/renderer/src/i18n/locales/en.json b/src/renderer/src/i18n/locales/en.jsonnew file mode 100644index 00000000..afed3500--- /dev/null+++ b/src/renderer/src/i18n/locales/en.json@@ -0,0 +1,778 @@+{+ "common": {+ "on": "on",+ "off": "off",+ "cancel": "cancel",+ "save": "save",+ "close": "close",+ "back": "back",+ "next": "next",+ "finish": "finish",+ "saving": "saving...",+ "copy": "copy",+ "delete": "delete",+ "hide": "hide",+ "show": "show",+ "search": "search",+ "tokens": "tokens",+ "restarting": "restarting…",+ "add": "add"+ },+ "commandBar": {+ "free": "free",+ "skill": "/skill",+ "quick": "quick",+ "placeholder": "Type a command",+ "placeholderBusy": "Ada is working...",+ "placeholderBlocked": "Ada needs you...",+ "send": "send",+ "busyNote": "Ada is mid-tool. Queue or hit pause.",+ "blockedNote": "Approval needed."+ },+ "blockedBanner": {+ "needsYou": "needs you"+ },+ "costHud": {+ "spendCap": "Spend cap",+ "none": "none",+ "usd": "USD",+ "off": "(off)",+ "thisSession": "{{usd}} this session",+ "thisSessionWithCap": "{{usd}} this session / {{cap}}",+ "audioTokens": "{{input}} in · {{output}} out audio tokens",+ "overCap": "Over the spend cap — time to wrap up.",+ "nearCap": "Approaching the spend cap.",+ "lastSession": "Last session: {{usd}}",+ "noSession": "No active voice session.",+ "compactTitle": "{{count}} voice audio tokens this session",+ "tok": "tok"+ },+ "badge": {+ "idle": "idle",+ "thinking": "working",+ "working": "working",+ "waiting": "waiting",+ "blocked": "needs you",+ "success": "done",+ "ghost": "gone",+ "compacting": "compacting",+ "looping": "looping",+ "typing": "your draft"+ },+ "agentControl": {+ "deliveryPaused": "queued messages held (whole floor)",+ "halting": "stopping after this step…",+ "steersQueued": "{{count}} notes waiting",+ "steerPlaceholder": "send this agent a note… (arrives as context on its next turn, nothing is typed into its terminal)",+ "steer": "steer",+ "flashResumed": "tools allowed again",+ "flashPaused": "tools blocked from the next call on",+ "flashHalt": "will stop after the current step",+ "flashSteer": "note queued, arrives on its next turn",+ "allowTools": "allow tools",+ "allowToolsTip": "Give its tools back. The agent keeps its session and picks up where it stopped.",+ "allowToolsAria": "Allow tools again",+ "blockTools": "block tools",+ "blockToolsTip": "The agent keeps thinking and talking to you, but cannot read, write or run anything until you allow it again. Immediate, and reversible.",+ "blockToolsAria": "Block this agent from using tools",+ "stopAfterStep": "stop after this step",+ "stopAfterStepTip": "Let it finish the step it is on, then stop. The process and its session survive, so Restart and Continue can pick it back up. To end the process outright, use the X.",+ "stopAfterStepAria": "Stop this agent after the current step",+ "steerTip": "Hands the agent a note at its next turn boundary. It does not interrupt what it is doing now, and nothing is typed into its terminal.",+ "steerAria": "Send this agent a note"+ },+ "agentCard": {+ "boss": "BOSS",+ "contextTitle": "Context: {{used}} / {{limit}} tokens ({{pct}}%)",+ "contextGaugeTitle": "Context gauge — fills once the agent reports activity",+ "doingTasks": "actively working {{count}} task — click to open",+ "doingTasksPlural": "actively working {{count}} tasks — click to open",+ "editNote": "Edit private note",+ "addNote": "Add private note",+ "editNoteAria": "Edit note for {{name}}",+ "noteAria": "Note for {{name}}"+ },+ "askMe": {+ "emptyTitle": "Nothing needs you right now. 🌿",+ "emptySub": "When the team blocks a task on your input — a question to answer or a to-do only you can perform — it shows up here (and on the ASK ME board on the floor).",+ "openDetail": "open the full task detail",+ "dismissTitle": "dismiss — clear this off the ASK ME board without answering (history kept)",+ "dismissAria": "dismiss this ask",+ "answerPlaceholder": "Your answer — or 'done', with the result… (Ctrl+Enter to send)",+ "sending": "sending…",+ "respond": "respond & unblock",+ "viewAnswers": "VIEW {{count}} EARLIER ANSWER",+ "viewAnswersPlural": "VIEW {{count}} EARLIER ANSWERS",+ "viewAnswersHistory": "open the task detail with the full Q&A history",+ "blockingDownstream": "BLOCKING {{count}} DOWNSTREAM TASK",+ "blockingDownstreamPlural": "BLOCKING {{count}} DOWNSTREAM TASKS",+ "more": "… +{{count}} more"+ },+ "agentStrip": {+ "privateNote": "PRIVATE NOTE · {{name}}",+ "done": "Done",+ "closeNoteEditor": "Close note editor",+ "notePlaceholder": "one line per bullet…",+ "oneLineOneBullet": "one line = one bullet · esc to close",+ "addAgent": "add agent",+ "restoringTitle": "Your previous session's agents are being respawned with their original ids, so memory and inboxes reattach.",+ "restoreTitle": "Previous session: {{names}}",+ "restoringTeam": "restoring your team…",+ "restoreTeam": "restore team ({{count}}) ▴",+ "previousSession": "previous session",+ "restorable": "{{name}} — restorable from last session",+ "dismiss": "Dismiss {{name}} — remove permanently from the restore list",+ "dismissAria": "Dismiss {{name}}",+ "restoreAll": "restore all ({{count}})"+ },+ "sidebar": {+ "terminal": "terminal",+ "git": "git",+ "messages": "messages",+ "traces": "traces"+ },+ "toolWaterfall": {+ "fresh": "fresh {{tokens}}t",+ "cache": "cache {{tokens}}t ({{pct}}%)",+ "total": "{{tokens}}t total",+ "noTelemetry": "no live telemetry yet — spawn / respawn this agent to instrument it",+ "empty": "No tool calls captured yet. Each tool the agent runs appears here with its real duration.",+ "barOk": "{{tool}} · {{ms}}ms · ok",+ "barFailed": "{{tool}} · {{ms}}ms · failed"+ },+ "agentDetail": {+ "open": "open",+ "opening": "...",+ "ok": "ok",+ "err": "err",+ "inFullscreen": "In focus mode",+ "fullscreenDesc": "This terminal is open in focus mode. Press Esc or exit focus mode to bring it back here.",+ "noPty": "No PTY",+ "noPtyDesc": "This agent has no live terminal. Spawn an agent through \"add agent\" to use the terminal tab.",+ "killConfirm": "Close {{name}}? The PTY process will terminate and the agent is archived (kept in history, off the floor).",+ "ideTip": "Open the IDE: browse and edit files in {{project}}, and see uncommitted changes as a diff.",+ "terminalTip": "Open your system terminal app in {{cwd}} — a normal shell in this agent's folder, separate from the agent's own terminal.",+ "openIde": "Open the IDE",+ "ide": "IDE",+ "openTerminalAria": "Open a system terminal in this agent's folder"+ },+ "settingsHero": {+ "sponsoredBy": "Sponsored by",+ "visit": "visit",+ "whatsNew": "what's new",+ "whatsNewTitle": "Show the release notes for the update you were last told about",+ "starOnGitHub": "star on GitHub",+ "reportProblem": "report a problem",+ "fullChangelog": "full changelog →",+ "announcement": "Announcement",+ "proLaunch": "v0.5.0 launches with Munder Difflin Pro.",+ "proCommunityFree": "Community stays free, stays open, and keeps getting updates.",+ "proParagraph": "Pro ships with new features and integrations, with more posted throughout the year, and it stays ahead of Community, for power users who want the full potential of coding agents and agent harnesses. The Pro roadmap also includes a mobile app.",+ "foundersWallTitle": "On the Founders' Wall?",+ "foundersWallBody": "A month of Munder Difflin Pro free, then 50% off the annual plan. For the first 100 people on the wall.",+ "seeTheWall": "see the wall",+ "joinDiscord": "join Discord"+ },+ "officeTheme": {+ "title": "Office Theme",+ "tvShow": "TV-show office themes",+ "experimental": "experimental",+ "desc": "Re-skin the pixel office as a TV show. Switching starts a fresh cast.",+ "current": "current",+ "soon": "soon",+ "notBuiltYet": "{{label}} isn't built yet — showing the office for now.",+ "switchAborted": "Switch aborted — a terminal wouldn't close: {{error}}",+ "confirmTitle": "SWITCH OFFICE TO \"{{label}}\"?",+ "startsFreshCast": "STARTS A FRESH CAST",+ "deleteCount": "Your {{count}} current agent will be deleted — their terminals close and any in-progress work stops.",+ "deleteCountPlural": "Your {{count}} current agents will be deleted — their terminals close and any in-progress work stops.",+ "onlyCarries": "Only {{god}} carries over.",+ "stillWorking": "⚠ {{count}} agent is still working.",+ "stillWorkingPlural": "⚠ {{count}} agents are still working.",+ "cantUndo": "This can't be undone.",+ "switching": "switching…",+ "deleteSwitch": "delete {{count}} & switch"+ },+ "settings": {+ "title": "SETTINGS",+ "changeHomeTitle": "CHANGE HOME FOLDER",+ "resetTitle": "RESET EVERYTHING?",+ "close": "close",+ "change": "change...",+ "apply": "applying...",+ "moveAndRestart": "move & restart",+ "switchAndRestart": "switch & restart",+ "resetting": "resetting...",+ "eraseEverything": "erase everything & restart",+ "nav": {+ "general": "General",+ "prerequisites": "Prerequisites",+ "agentsModels": "Agents & Models",+ "autonomyBudgets": "Autonomy & Budgets",+ "connections": "Connections",+ "voice": "Voice",+ "memoryKnowledge": "Memory & Knowledge"+ },+ "changeHome": {+ "newHome": "New home folder",+ "moveTitle": "Move existing data (recommended)",+ "moveDesc": "Copy this harness's hive (every agent, memory, task) and the semantic-memory palace into the new folder. The old folder is left untouched as a backup you can delete later.",+ "freshTitle": "Start fresh",+ "freshDesc": "Point the harness at the new (empty) folder. Your existing data stays in the old folder, simply unused."+ },+ "resetConfirm": {+ "body": "This permanently erases all of Michael's memories and the entire hive, and cannot be undone. Any running sessions will be terminated and the app will relaunch into onboarding. Are you sure?"+ },+ "general": {+ "homeFolder": "Home folder",+ "environment": "Environment",+ "keepAwake": "Keep Mac awake while agents run",+ "keepAwakeDesc": "Blocks display sleep so schedules and terminals keep firing on time. Costs battery — best on AC.",+ "simpleMode": "Explain things simply",+ "simpleModeDesc": "Agents brief you in plain language instead of engineering shorthand.",+ "notifications": "Notifications",+ "desktopNotifications": "Desktop notifications",+ "desktopNotificationsDesc": "Native toasts when an agent finishes or needs your input.",+ "maintenance": "Maintenance",+ "autoCompact": "Scheduled auto-compact",+ "autoCompactDesc": "Queue /compact for every agent on a schedule (hourly by default; interval in the Triggers tab). Off by default — long-running agents may overflow their context without it.",+ "autoUpdate": "Auto-update",+ "autoUpdateDesc": "Check GitHub releases and download updates in the background; you choose when to restart. Never restarts on its own.",+ "telemetry": "Anonymous usage stats",+ "telemetryDesc": "A handful of anonymous events (app opened, agent spawned, feature used) — never prompts, code, paths, or agent output. Full list in TELEMETRY.md.",+ "language": "Language",+ "languageDesc": "Choose the language for the app interface. English is the default.",+ "dangerZone": "DANGER ZONE",+ "dangerDesc": "Reset wipes Michael's memories, the entire hive (every agent, message, task, and the board), the semantic-memory palace, and all settings - then takes you back to onboarding.",+ "resetStartOver": "reset & start over"+ },+ "agentsModels": {+ "defaultModel": "Default agent model",+ "defaultModelDesc": "Every newly spawned Claude agent (Michael included) starts on this model unless picked per-agent. Marked \"· default\" in the model pickers.",+ "savedNote": "saved — applies to newly spawned agents",+ "saveFailed": "save failed",+ "advanced": "Advanced",+ "maxTurns": "Max turns per run",+ "unlimited": "unlimited",+ "blankUnlimited": "blank = unlimited"+ },+ "autonomy": {+ "autonomy": "Autonomy",+ "autoOn": "Autonomous — agents act without asking",+ "autoOff": "Ask-first — agents pause for tool approval",+ "autoDesc": "Applies to newly spawned agents (each agent's command can still override).",+ "autonomous": "autonomous",+ "askFirst": "ask-first",+ "breaker": "Circuit breaker",+ "breakerDesc": "Guard against runaway agents and spend. The breaker steers, then constrains, then stops an agent that crosses these.",+ "floorBudget": "floor token budget",+ "budgetPlaceholder": "e.g. 1000000",+ "budgetEquals": "= {{value}} tokens",+ "budgetTotal": "total tokens across the floor",+ "velocity": "token velocity (tok/min)",+ "velocityPlaceholder": "e.g. 200000",+ "repeatedLimit": "repeated-tool limit",+ "errorStormLimit": "error-storm limit",+ "defaultPlaceholder": "default",+ "hardStop": "Hard stop",+ "hardStopDesc": "When tripped, KILL the agent instead of just constraining it. Off = steer-first (recommended).",+ "killOnTrip": "kill on trip",+ "steerFirst": "steer first",+ "saved": "saved"+ },+ "memory": {+ "semanticMemory": "Semantic memory",+ "crossSession": "Cross-session recall",+ "crossSessionDesc": "Agents' markdown memory is indexed for instant search. The embedding model lives in the Memory panel.",+ "kg": "Knowledge Graph",+ "kgTitle": "Enterprise knowledge base",+ "kgDesc": "Add your docs, images & PDFs; agents query them on demand via the kg tool.",+ "adding": "adding…",+ "addFiles": "add files…",+ "docCount": "{{count}} document indexed",+ "docCountPlural": "{{count}} documents indexed"+ },+ "connections": {+ "slack": "Slack",+ "slackIntegration": "Slack integration",+ "showSlackHelp": "Show Slack connect steps",+ "slackDesc": "Pipe a Slack channel's messages straight into Michael's queue.",+ "connected": "● Connected",+ "notConnected": "○ Not connected",+ "signingSecret": "Signing secret",+ "signingSecretPlaceholder": "Slack app -> Basic Information -> Signing Secret",+ "botToken": "Bot token",+ "channelId": "Channel id (optional)",+ "channelPlaceholder": "C0123... or blank for any",+ "port": "Port",+ "proactivePosting": "Proactive posting (app-initiated) — off by default",+ "start": "start",+ "connectedBtn": "connected",+ "stop": "stop",+ "listening": "listening",+ "stopped": "stopped",+ "requestUrl": "Request URL - paste into Slack Event Subscriptions",+ "lastRequestUrl": "last Request URL - Slack reuses it until you Stop",+ "slackHint": "In your Slack app: enable Event Subscriptions, add the message.channels / message.groups bot event, set the Request URL above, and reinstall to your workspace. The tunnel URL changes on every restart, so re-paste it after pressing Start again.",+ "webhooks": "Webhook triggers",+ "showWebhookHelp": "Show webhook API format",+ "webhooksDesc": "One endpoint per caller, each with its own secret and mode. They all share one server, so another webhook costs nothing.",+ "listeningOn": "● Listening",+ "notListening": "○ Not listening",+ "addWebhook": "add webhook",+ "webhookWarning": "Every webhook you switch on is a PUBLIC endpoint anyone holding its secret can post to. New ones arrive off.",+ "noWebhooks": "No webhooks yet. Add one to give a tool a URL it can hand work to.",+ "namePlaceholder": "what calls this?",+ "sure": "sure?",+ "url": "URL",+ "endpointPlaceholder": "starts once the webhook server is listening",+ "secret": "Secret",+ "rotate": "rotate",+ "mode": "Mode",+ "webhooksHint": "Callers POST to a webhook's URL with its secret in the x-md-webhook-secret header. Each one checks bodies against its own JSON schema — edit that in the Triggers tab of Michael's Command Center, where the history of everything that arrived lives too.",+ "organisation": "Organisation",+ "orgKey": "Organisation key",+ "orgKeyDesc": "How a teammate's install addresses yours.",+ "apiKey": "API key",+ "orgKeyPlaceholder": "paste your organisation key",+ "orgConfigOnly": "Configuration only for now. The organisation messaging service does not exist yet, so a key here starts no transport — it is saved, shown in the Triggers tab, and waits."+ },+ "voice": {+ "freeFlow": "Free Flow",+ "freeFlowTitle": "Free Flow (voice dictation)",+ "freeFlowDesc": "Push-to-talk dictation: speak, and Groq Whisper drops the text into the queue composer.",+ "groqKey": "Groq API key",+ "groqPlaceholder": "gsk_... (get a free key at console.groq.com)",+ "model": "Model",+ "fast": "whisper-large-v3-turbo (fast)",+ "accurate": "whisper-large-v3 (accurate)",+ "freeFlowHint": "Two ways to dictate: click the mic button above Send in the queue composer (click to record, click again to transcribe), or — while viewing any agent's terminal — hold Option (⌥) to talk and release to transcribe. Either way the text lands in the composer draft for you to review before sending. macOS will ask for microphone permission the first time you record.",+ "realtime": "Realtime Michael",+ "voiceChat": "Voice chat with Michael",+ "voiceChatDesc": "Talk to the orchestrator in real time. Toggle it on from Michael's tab; choose which microphone and speaker the voice loop uses here.",+ "openaiKey": "OpenAI API key · voice",+ "openaiKeyDesc1": "Talking to Michael runs on OpenAI's Realtime API — speech in, speech out, over a live connection to {{model}}. That is a different service from the Claude subscription your agents run on, so it needs its own OpenAI API key.",+ "openaiKeyDesc2": "Paste it once below. It is encrypted on this machine and never shown again — each voice session mints its own short-lived token from it, and the key itself never leaves your computer. It is the same OpenAI key listed under Agents & Models; setting it in either place is enough.",+ "keyPlaceholderSaved": "key saved — paste a new one to replace it",+ "save": "Save",+ "keySaved": "Key saved — Talk is ready. Start it from Michael's card.",+ "noKey": "No key yet — Talk stays disabled until one is saved.",+ "keySavedNote": "Key saved — Talk is ready.",+ "couldNotSave": "Could not save the key.",+ "idleDisconnect": "Idle auto-disconnect",+ "30s": "30 seconds",+ "1m": "1 minute",+ "2m": "2 minutes",+ "3m": "3 minutes",+ "5m": "5 minutes",+ "10m": "10 minutes",+ "never": "Off (never)",+ "idleDisconnectDesc": "How long the voice session stays open with no talking before it auto-closes. The spend cap still stops a runaway session even when this is off."+ }+ },+ "commandCenter": {+ "title": "COMMAND CENTER",+ "runsTheFloor": "Michael runs the floor",+ "deliveryPaused": "paused",+ "deliveryAuto": "auto",+ "deliveryPausedTitle": "Queued messages are being held for EVERY agent on the floor. Nothing is lost; it is delivered when you switch this back on.",+ "deliveryOnTitle": "Queued messages are delivered to every agent automatically. Click to hold the whole floor.",+ "ideTitle": "Open the IDE: browse and edit files in the selected agent's workspace, and see uncommitted changes as a diff.",+ "ide": "IDE",+ "tabs": {+ "terminal": "terminal",+ "floor": "monitor",+ "tasks": "tasks",+ "human": "ask me",+ "triggers": "triggers",+ "history": "history",+ "memory": "memory",+ "graph": "graph",+ "activity": "activity",+ "skills": "skills",+ "workers": "workers"+ },+ "terminalFullscreen": "Terminal is open in fullscreen. Press Esc to bring it back.",+ "noTerminal": "Michael has no live terminal.",+ "dispatchViaMichael": "DISPATCH — VIA MICHAEL",+ "suggestedOwner": "SUGGESTED OWNER",+ "michaelDecides": "Michael decides",+ "dispatchPlaceholder": "Describe the task… (Michael decomposes, writes the card, and assigns)",+ "dispatch": "dispatch",+ "sentToMichael": "sent to Michael",+ "sentToWithSuggestion": "sent to Michael (suggesting {{name}})",+ "dispatchFailed": "failed: {{error}}",+ "dispatchSuggestion": "(The human suggests {{name}} ({{id}}) for this — your call as orchestrator.)",+ "taskFromHuman": "Task from the human",+ "agents": "AGENTS",+ "godTag": " (god)",+ "toolCalls": "{{count}} tool calls",+ "rate": "rate",+ "budget": "budget",+ "meterTitle": "CUMULATIVE session usage: {{used}} of {{limit}} tokens{{note}} — not the context window",+ "agentLimit": " (agent limit)",+ "floorBudget": " (floor budget)",+ "ctx": "ctx",+ "contextTitle": "Context window: {{used}} of {{limit}} tokens ({{pct}}%)",+ "noStatusTick": "no status tick yet",+ "modelRestarts": "{{provider}} model (restarts agent)",+ "restartContinue": "restart & continue",+ "restartContinueTitle": "Kill and respawn this agent, resuming its current conversation — fixes a corrupted/garbled terminal without losing context",+ "engine": "engine:",+ "apply": "apply",+ "confirmRestartEngine": "This restarts Michael; a conversation on a different engine can't be resumed.",+ "restartFailed": "Restart failed.",+ "archived": "ARCHIVED ({{count}})",+ "showClosed": "show closed agents",+ "hideClosed": "hide closed agents",+ "directories": "DIRECTORIES",+ "noRepos": "No registered repos.",+ "openInTerminal": "Open in Terminal.app",+ "issues": "ISSUES",+ "fetching": "fetching…",+ "fetchIssues": "Fetch issues",+ "noRepoSelected": "No repo selected.",+ "fetchFailed": "Failed to fetch issues.",+ "noIssues": "No issues fetched yet.",+ "assign": "Assign",+ "textSearch": "TEXT SEARCH (board, tasks, memory)",+ "textSearchPlaceholder": "Find exact text across hive files…",+ "nothingMatched": "Nothing matched.",+ "searchNoMatch": "Nothing matched yet.",+ "semanticSearch": "SEMANTIC SEARCH (MemPalace)",+ "semanticPlaceholder": "What does the hive know about…",+ "memoryFile": "MEMORY FILE",+ "noMemory": "No memory recorded yet.",+ "activity": "ACTIVITY",+ "nothingYet": "Nothing yet.",+ "board": "BOARD",+ "boardEmpty": "The board is empty.",+ "logSpawn": "spawned {{name}}",+ "logMessage": "{{from}} → {{to}}: {{subject}}",+ "logDrain": "{{agent}} drained {{count}} msg(s)",+ "logEscalate": "escalated to human: {{subject}}",+ "logApprovalGranted": "approval granted",+ "logApprovalDenied": "approval denied",+ "tokenLimitTitle": "Set this agent's total token limit",+ "tokenLimit": "limit {{value}}",+ "setLimit": "set limit",+ "saveLimit": "Save limit",+ "fleetTokens": "Σ {{value}} tok",+ "fleetInputs": "inputs {{value}} (cache {{pct}}%)",+ "fleetRate": "{{value}} tok/min",+ "telemetryNote": "live from each agent's OpenTelemetry · bars show tokens used vs each agent's limit, else the {{cap}} floor budget",+ "defaultBudgetNote": " (default — set a floor token budget in Settings)",+ "openIssue": "GitHub Issue #{{num}}: {{title}}",+ "deliveryResumeAria": "Resume automatic delivery for the whole floor",+ "deliveryHoldAria": "Hold automatic delivery for the whole floor",+ "openIdeAria": "Open the IDE"+ },+ "addAgent": {+ "title": "ADD AGENT",+ "hireImported": "hire imported:",+ "byAuthor": " · by {{author}}",+ "reviewFields": "review every field — especially the command — before spawning.",+ "hireFlags": "⚠️ flags this hire appends to the command:",+ "hireSkills": "skills this hire activates:",+ "mcpSafe": "MCP servers (safe, pre-enabled):",+ "mcpConsent": "⚠️ MCP (needs your consent — NOT auto-enabled):",+ "mcpEnableInSettings": "— enable in Settings → MCP after reviewing",+ "sections": {+ "identity": {+ "label": "Identity",+ "hint": "name · character · color"+ },+ "workspace": {+ "label": "Workspace",+ "hint": "folder · isolation · resume"+ },+ "engine": {+ "label": "Engine",+ "hint": "provider · model · command"+ },+ "briefing": {+ "label": "Briefing",+ "hint": "description · goal"+ }+ },+ "name": "Name",+ "namePlaceholder": "Ada",+ "character": "Character",+ "color": "Color",+ "project": "Project",+ "pickProject": "Pick a project, or add a new one:",+ "noProjects": "No projects yet — add one to get started:",+ "addProject": "add project",+ "addProjectTitle": "Pick a folder and register it as a project",+ "projectPlaceholder": "/path/to/your/project",+ "pick": "pick",+ "saveAsProject": "save as project",+ "saveAsProjectTitle": "Save this folder to your projects so it's a one-click pick next time",+ "gitIsolation": "Git isolation (own worktree)",+ "resumeSession": "Resume session ID (optional)",+ "resumePlaceholder": "paste a Claude session id to continue its conversation",+ "folderFromSession": "folder set from session: {{path}}",+ "resumeNote": "Will resume this session in the chosen folder (git isolation disabled).",+ "provider": "Provider",+ "providerAntigravity": "Spawn the Antigravity CLI (agy) with a Gemini model",+ "providerCodex": "Spawn the Codex CLI (codex) without Claude-only flags",+ "providerCustom": "Run any command — no Claude-only flags",+ "model": "Model",+ "cliDefaultModel": "CLI default model",+ "fromHire": "{{model}} (from hire)",+ "ossModels": "OSS models",+ "ossLocal": "Local · no key (Ollama / LM Studio)",+ "ossByok": "Via OSS provider · BYOK",+ "ossLocalTitle": "{{slug}} · needs ~{{ram}} RAM — pull with: ollama pull {{tag}}",+ "ossByokTitle": "{{slug}} · set {{keyEnv}} in Settings → AI Engines",+ "byokNote": "BYOK keys & local endpoints for this engine live in Settings → AI Engines. New to local models? Read run on open models or set up on a Mac Mini. Live end-to-end is pending real model calls (verify on-device).",+ "runOnOpenModels": "run on open models",+ "setUpMacMini": "set up on a Mac Mini",+ "command": "Command",+ "commandAuto": "Command (auto mode on)",+ "templates": "Templates",+ "templatesHint": {+ "repoJanitor": {+ "label": "Repo janitor"+ },+ "docsWriter": {+ "label": "Docs writer"+ },+ "bugTriager": {+ "label": "Bug triager"+ },+ "researchAssistant": {+ "label": "Research assistant"+ },+ "releaseManager": {+ "label": "Release manager"+ }+ },+ "description": "Description",+ "descriptionPlaceholder": "job — what this agent is for, not live status",+ "goal": "Goal (optional)",+ "goalPlaceholder": "long-running directive injected on every prompt",+ "importHire": "Import hire",+ "importHireDesc": "Import hire loads a ready-made agent from a .json manifest — it fills in every field below for you to review. Nothing spawns until you hit spawn.",+ "generateWithAI": "generate one with AI…",+ "hideAIPrompt": "hide AI prompt",+ "aiPromptHint": "Copy this into Claude/ChatGPT/Gemini, fill in the details at the bottom, then save its JSON reply as a .json file and import it here.",+ "copied": "copied ✓",+ "copyPrompt": "copy prompt",+ "importHireBtn": "import hire…",+ "importHireBtnTitle": "Import a hire manifest (.json)",+ "spawn": "spawn",+ "spawning": "spawning...",+ "errName": "Name is required",+ "errFolder": "Pick a folder first",+ "errCommand": "Command is required",+ "hireProgress": "hire {{current}} of {{total}}",+ "skipHire": "skip hire"+ },+ "onboarding": {+ "titles": {+ "persona": "WELCOME TO MUNDER DIFFLIN",+ "welcome": "MEET YOUR OFFICE",+ "home": "STEP 1 OF 4 · HARNESS HOME",+ "homePlain": "STEP 1 OF 4 · A HOME FOR THE APP",+ "orchestrator": "STEP 2 OF 4 · YOUR CLONE'S ENGINE",+ "orchestratorPlain": "STEP 2 OF 4 · YOUR CLONE",+ "repos": "STEP 3 OF 4 · YOUR REPOS",+ "reposPlain": "STEP 3 OF 4 · YOUR PROJECTS",+ "permissions": "STEP 4 OF 4 · PERMISSIONS & RELIABILITY",+ "done": "ALL SET"+ },+ "persona": {+ "headline": "A CLONE OF YOU, WORKING 24/7",+ "body": "Munder Difflin turns the CLI agent you already use into a clone of you — one that runs an office of long-running agents and keeps working while you're away. It manages everything around them: context, memory, tasks, triggers, environment, files, and integrations.",+ "bodyLocal": " Everything runs on this machine.",+ "ask": "FIRST — WHO ARE YOU? (we'll tailor the setup)",+ "technicalTitle": "I'M TECHNICAL",+ "technicalDesc": "I write code or work in a terminal. Show me CLI commands, flags, and model ids.",+ "nonTechnicalTitle": "I'M NON-TECHNICAL",+ "nonTechnicalDesc": "I'm in marketing, sales, ops, or just starting out. Explain things in plain language."+ },+ "welcome": {+ "headline": "YOUR CLONE AND THE FLOOR IT RUNS",+ "descPlain": "Your clone runs a small office of AI workers, and you watch it all from one screen. Here's what's inside:",+ "desc": "Your clone coordinates a hive of AI coding agents — persistent, watchable, all local. Here's what's inside:",+ "features": {+ "engines": {+ "label": "ELEVEN ENGINES, ONE OFFICE",+ "desc": "Claude Code, Codex, Grok, Kimi, Antigravity, Qwen, OpenCode, Crush, pi, Copilot & Cursor — live agents on one floor.",+ "descPlain": "Eleven AI assistants — Claude, Codex, Cursor, Gemini, Grok and more — working side by side in one shared office."+ },+ "clone": {+ "label": "MICHAEL IS YOUR CLONE",+ "desc": "Your clone runs the floor — triages requests, routes tasks, and escalates only what needs you.",+ "descPlain": "Your clone, Michael, takes your requests, hands work to the right agent, and only interrupts you when it matters."+ },+ "memory": {+ "label": "LONG-TERM MEMORY",+ "desc": "Each agent keeps notes, mined into a shared, searchable MemPalace.",+ "descPlain": "Agents remember what they've done, so they don't start from scratch every time."+ },+ "commandCenter": {+ "label": "COMMAND CENTER",+ "desc": "Terminal · Floor · Memory · Activity · Tasks · Triggers in one control surface.",+ "descPlain": "One dashboard to watch the work, the agents' memory, tasks, and triggers."+ },+ "guardrails": {+ "label": "GUARDRAILS",+ "desc": "Per-agent token budgets, a steer→constrain→stop circuit breaker, and human approvals.",+ "descPlain": "Spending limits and safety stops keep agents in check — and they can ask you before big actions."+ },+ "hires": {+ "label": "READY-MADE HIRES",+ "desc": "Grab a pre-configured agent from the Agent Gallery and spawn it in one click.",+ "descPlain": "Hire a ready-made agent from the gallery in one click — no setup needed."+ }+ }+ },+ "providerBlurb": {+ "claude": "Claude Code — Anthropic",+ "codex": "Codex — OpenAI",+ "antigravity": "Antigravity — Google Gemini",+ "qwen": "Qwen — runs a local Qwen model on your machine",+ "gemini": "Gemini CLI - Google Gemini",+ "cursor": "Cursor Agent CLI — uses your Cursor credits (Luna, Composer, …)"+ },+ "home": {+ "descPlain": "Create a new, empty folder for the app to call home. Everything the app remembers — its own settings and your agents' memory — is stored here. Something like ~/HarnessAgents works well. We'll create it for you if it doesn't exist.",+ "desc": "Pick a folder where the harness will keep its own files — agent metadata, logs, and any new repos you create from here. Something like ~/HarnessAgents is a fine default. We'll create it if it doesn't exist.",+ "placeholder": "/path/to/HarnessAgents",+ "createPick": "create / pick",+ "pick": "pick",+ "notePlain": "You won't need to open this folder day-to-day — it's just where the app keeps its notes so nothing is lost when you restart.",+ "note": "Think of this as the \"town hall.\" The harness pins agent state there so sessions can be picked back up after a restart."+ },+ "orchestrator": {+ "descPlain": "Michael is your clone — he reads your requests, breaks them into tasks, and hands them to the right agent. He's the boss of the floor; you're still the boss of him. Choose which AI engine powers him.",+ "desc": "Michael is your clone — the boss of the floor you just met. He triages your requests, assigns tasks, and manages the team, while escalating anything that genuinely needs you. Pick the engine and model that power him; give him a longer-context, higher-capability model.",+ "cliAgentPlain": "A <strong>CLI agent</strong> is an AI coding assistant that runs on your computer — popular ones are Claude Code (Anthropic), Codex (OpenAI) and Antigravity (Google Gemini). <strong>Your clone</strong> is the always-on one that runs your whole office. We recommend Claude Code on Opus 4.8 (1M). You can add or switch the others later.",+ "cliAgent": "Each option is a <strong>CLI engine</strong> (Claude Code, Codex, Antigravity/Gemini, or a local proxy like Qwen). Engines marked INSTALLED are already on this machine; INSTALLS ON FIRST RUN means the app sets it up when Michael first starts. <strong>Your clone</strong> (Michael) is the engine that orchestrates the whole hive. Recommended: Claude Code · Opus 4.8 · 1M. Other providers can be wired per agent later.",+ "recommended": "RECOMMENDED",+ "model": "Model",+ "modelNote": "This only sets Michael's engine. You can run other providers per agent later."+ },+ "repos": {+ "descPlain": "Add your projects. A project is simply a folder — it can hold code, documents, notes, or any files you want your agents to work with. You can create a brand-new folder or pick an existing one, and add more anytime.",+ "desc": "Add the repos you want your agents to work in. Each folder becomes a project (a room on the floor) — multiple agents can share one. You can add more later.",+ "emptyPlain": "No projects added yet. Optional — you can add one later.",+ "empty": "No repos added yet. Optional, but recommended.",+ "addProject": "add a project",+ "addRepo": "add a repo"+ },+ "permissions": {+ "autonomyHead": "HOW MUCH CAN AGENTS DO ON THEIR OWN?",+ "autoLabelPlain": "LET AGENTS WORK ON THEIR OWN",+ "autoLabel": "WORK AUTONOMOUSLY (AUTO MODE)",+ "autoOnPlain": "On. Agents carry out tasks without stopping to ask — the smoothest experience.",+ "autoOffPlain": "Off. Agents pause and ask you before changing files or running commands.",+ "autoOn": "On. Agents never pause — Claude runs bypassPermissions, Codex bypasses approvals + sandbox, etc.",+ "autoOff": "Off. Each agent asks before edits / shell commands (Claude default, codex -a untrusted, …).",+ "autoNotePlain": "Best when agents work in their own projects. You can change this later, including for individual agents.",+ "autoNote": "The right default for the \"control room\" experience; a foot-gun on production repos. Override per agent in the Add Agent dialog.",+ "reliabilityHead": "KEEP THINGS RUNNING WHILE YOU'RE AWAY",+ "reliabilityDescPlain": "Your agents keep working on a schedule and in live terminals, even when you step away. These settings keep you in the loop and keep things running.",+ "reliabilityDesc": "Your agents keep working on a schedule and in live terminals. If your Mac fully sleeps those timers pause and catch up the moment you're back — nothing is lost, it may just run late.",+ "keepAwake": "KEEP WORKING WHILE AWAY",+ "keepAwakeDesc": "Strong keep-alive: stops your Mac from sleeping while an agent is live, so schedules and terminals fire on time even when you step away. Uses more battery — best on power. Off by default.",+ "notifications": "DESKTOP NOTIFICATIONS",+ "notificationsDesc": "Get pinged when an agent needs you or a terminal needs reviving — even while you're away. macOS asks permission the first time one fires.",+ "openAtLogin": "OPEN AT LOGIN",+ "openAtLoginDesc": "Relaunch the harness after a reboot so scheduled missions resume on their own. No prompt — applies immediately.",+ "shareStats": "SHARE ANONYMOUS USAGE STATS",+ "shareStatsDesc": "A handful of anonymous events (app opened, agent spawned, feature used) that help improve Munder Difflin — never prompts, code, file paths, or agent output. Full list in TELEMETRY.md; change anytime in Settings.",+ "stayAwake": "STAY AWAKE ON POWER (MANUAL)",+ "stayAwakeDesc": "macOS only lets you set this one yourself. In Battery → Options, turn on \"Prevent automatic sleeping when the display is off\" (on power adapter) so timers keep firing with the display asleep. Without a sleep-preventing setting the Mac still truly sleeps — work survives and catches up on wake.",+ "openBattery": "open Battery settings",+ "setItUp": "set it up",+ "next": "next"+ },+ "errPickHome": "Pick a harness home folder first.",+ "errCreateHome": "could not create harness home",+ "errEngineNotInstalled": "{{label}} is not installed. Install it and press \"check again\", or pick another engine."+ },+ "office": {+ "gpuError": "The office floor lost its GPU context.\n\nToo many terminals are using the GPU at once.\nClose a few agent terminals, or restart the app, to bring it back.",+ "errand": {+ "water": [+ "watering the plants 🌿",+ "giving the plants a drink",+ "they grow so fast"+ ],+ "window": [+ "letting some air in 🍃",+ "a bit of fresh air",+ "nice breeze today"+ ],+ "dispenser": [+ "getting some water 💧",+ "hydration break",+ "staying sharp"+ ],+ "fridge": [+ "anything good in the fridge?",+ "who took my yogurt?",+ "just looking…"+ ],+ "shelf": [+ "checking out the shelf 📚",+ "anything new in here?",+ "so much good stuff"+ ],+ "bin": [+ "out with the scrap paper 🗑️",+ "desk cleanup day",+ "tidying up a little"+ ],+ "smoke": [+ "the floor runs itself 🚬",+ "boss break.",+ "thinking big thoughts 🚬",+ "I DECLARE… a break"+ ]+ },+ "suckUp": [+ "already shipped {{done}} tasks, Michael. raise? 🥺",+ "{{done}} tasks done this week, boss!",+ "great vision as always, boss!",+ "I was JUST about to do exactly that!",+ "love the tie today, Michael",+ "working hard, boss! 💪",+ "best boss ever. genuinely."+ ],+ "gossip": [+ "has he ever actually written code?",+ "another 'quick sync' that took an hour…",+ "'world's best boss' — he bought that mug himself",+ "he pinned MY task as his idea",+ "the cigar smell, honestly…",+ "he watered the plant. ONE plant. his own.",+ "did you hear him? 'I DECLARE… a break'"+ ],+ "cheer": [+ "done! ✔",+ "nailed it",+ "that's a wrap",+ "ship it 🚀",+ "another one done",+ "crushed it",+ "in the books"+ ],+ "mugs": {+ "empty": "no clean mugs left…",+ "brewing": "brewing a fresh one ☕",+ "washing": "washing the mug"+ },+ "activity": {+ "waiting": "waiting",+ "needsYou": "needs you",+ "compacting": "compacting context",+ "looping": "looping — breaker armed",+ "runningFloor": "running the floor",+ "idle": "idle"+ }+ }+}diff --git a/src/renderer/src/i18n/locales/zh-CN.json b/src/renderer/src/i18n/locales/zh-CN.jsonnew file mode 100644index 00000000..c5d642ad--- /dev/null+++ b/src/renderer/src/i18n/locales/zh-CN.json@@ -0,0 +1,778 @@+{+ "common": {+ "on": "开",+ "off": "关",+ "cancel": "取消",+ "save": "保存",+ "close": "关闭",+ "back": "上一步",+ "next": "下一步",+ "finish": "完成",+ "saving": "保存中…",+ "copy": "复制",+ "delete": "删除",+ "hide": "隐藏",+ "show": "显示",+ "search": "搜索",+ "tokens": "令牌",+ "restarting": "重启中…",+ "add": "添加"+ },+ "commandBar": {+ "free": "自由",+ "skill": "/技能",+ "quick": "快捷",+ "placeholder": "输入命令",+ "placeholderBusy": "Ada 正在工作中…",+ "placeholderBlocked": "Ada 需要你…",+ "send": "发送",+ "busyNote": "Ada 正在使用工具。可以排队或暂停。",+ "blockedNote": "需要批准。"+ },+ "blockedBanner": {+ "needsYou": "需要你"+ },+ "costHud": {+ "spendCap": "支出上限",+ "none": "无",+ "usd": "USD",+ "off": "(关)",+ "thisSession": "本次会话 {{usd}}",+ "thisSessionWithCap": "本次会话 {{usd}} / {{cap}}",+ "audioTokens": "输入 {{input}} · 输出 {{output}} 语音令牌",+ "overCap": "已超出支出上限——该收尾了。",+ "nearCap": "即将达到支出上限。",+ "lastSession": "上次会话:{{usd}}",+ "noSession": "没有进行中的语音会话。",+ "compactTitle": "本次会话 {{count}} 个语音音频令牌",+ "tok": "tok"+ },+ "badge": {+ "idle": "空闲",+ "thinking": "工作中",+ "working": "工作中",+ "waiting": "等待中",+ "blocked": "需要你",+ "success": "完成",+ "ghost": "已退出",+ "compacting": "压缩中",+ "looping": "循环中",+ "typing": "你的草稿"+ },+ "agentControl": {+ "deliveryPaused": "队列消息已暂停投递(整个楼层)",+ "halting": "正在此步骤结束后停止…",+ "steersQueued": "有 {{count}} 条笔记等待处理",+ "steerPlaceholder": "给该智能体发送一条笔记…(在其下一轮作为上下文到达,不会输入到它的终端)",+ "steer": "引导",+ "flashResumed": "已重新允许使用工具",+ "flashPaused": "已阻止后续调用的工具",+ "flashHalt": "将在当前步骤结束后停止",+ "flashSteer": "笔记已排队,将在其下一轮到达",+ "allowTools": "允许工具",+ "allowToolsTip": "归还它的工具。智能体会保留会话并从中断处继续。",+ "allowToolsAria": "重新允许工具",+ "blockTools": "阻止工具",+ "blockToolsTip": "智能体会继续思考并与你对话,但在你再次允许之前无法读取、写入或运行任何内容。立即生效,且可撤销。",+ "blockToolsAria": "阻止该智能体使用工具",+ "stopAfterStep": "在本步骤后停止",+ "stopAfterStepTip": "让它完成当前步骤后再停止。进程与会话都会保留,因此“重启”和“继续”可以恢复它。若要直接结束进程,请使用 ✕。",+ "stopAfterStepAria": "在当前步骤后停止该智能体",+ "steerTip": "在该智能体的下一轮边界交给它一条笔记。不会打断它当前正在做的事,也不会输入到它的终端。",+ "steerAria": "给该智能体发送一条笔记"+ },+ "agentCard": {+ "boss": "老板",+ "contextTitle": "上下文:{{used}} / {{limit}} 令牌({{pct}}%)",+ "contextGaugeTitle": "上下文指示条——智能体上报活动后开始填充",+ "doingTasks": "正在执行 {{count}} 项任务——点击查看",+ "doingTasksPlural": "正在执行 {{count}} 项任务——点击查看",+ "editNote": "编辑私人笔记",+ "addNote": "添加私人笔记",+ "editNoteAria": "编辑 {{name}} 的笔记",+ "noteAria": "{{name}} 的笔记"+ },+ "askMe": {+ "emptyTitle": "现在没有需要你的事。🌿",+ "emptySub": "当团队把任务卡在你的输入上——要回答的问题,或只有你能完成的待办——就会出现在这里(也会出现在楼层的「问我」看板上)。",+ "openDetail": "打开完整任务详情",+ "dismissTitle": "忽略——不回答,把它从「问我」看板清掉(历史记录保留)",+ "dismissAria": "忽略此提问",+ "answerPlaceholder": "你的回答——或「完成」,附上结果…(Ctrl+Enter 发送)",+ "sending": "发送中…",+ "respond": "回答并解除阻塞",+ "viewAnswers": "查看 {{count}} 条历史回答",+ "viewAnswersPlural": "查看 {{count}} 条历史回答",+ "viewAnswersHistory": "打开包含完整问答历史的任务详情",+ "blockingDownstream": "阻塞 {{count}} 个下游任务",+ "blockingDownstreamPlural": "阻塞 {{count}} 个下游任务",+ "more": "… 还有 {{count}} 个"+ },+ "agentStrip": {+ "privateNote": "私人笔记 · {{name}}",+ "done": "完成",+ "closeNoteEditor": "关闭笔记编辑器",+ "notePlaceholder": "每行一条…",+ "oneLineOneBullet": "一行 = 一条 · Esc 关闭",+ "addAgent": "添加智能体",+ "restoringTitle": "上次会话的智能体正在以原始 ID 重新生成,以便记忆和收件箱重新挂载。",+ "restoreTitle": "上次会话:{{names}}",+ "restoringTeam": "正在恢复你的团队…",+ "restoreTeam": "恢复团队({{count}})▴",+ "previousSession": "上次会话",+ "restorable": "{{name}}——可从上次会话恢复",+ "dismiss": "忽略 {{name}}——从恢复列表中永久移除",+ "dismissAria": "忽略 {{name}}",+ "restoreAll": "全部恢复({{count}})"+ },+ "sidebar": {+ "terminal": "终端",+ "git": "Git",+ "messages": "消息",+ "traces": "追踪"+ },+ "toolWaterfall": {+ "fresh": "新计 {{tokens}}t",+ "cache": "缓存 {{tokens}}t({{pct}}%)",+ "total": "共 {{tokens}}t",+ "noTelemetry": "尚无实时遥测——生成/重新生成该智能体以接入",+ "empty": "尚未捕获到工具调用。智能体运行的每个工具都会以真实耗时显示在这里。",+ "barOk": "{{tool}} · {{ms}}ms · 成功",+ "barFailed": "{{tool}} · {{ms}}ms · 失败"+ },+ "agentDetail": {+ "open": "打开",+ "opening": "...",+ "ok": "正常",+ "err": "错误",+ "inFullscreen": "聚焦模式中",+ "fullscreenDesc": "此终端已在聚焦模式中打开。按 Esc 或退出聚焦模式将其带回此处。",+ "noPty": "没有终端",+ "noPtyDesc": "该智能体没有实时终端。通过「添加智能体」生成一个,即可使用终端标签页。",+ "killConfirm": "关闭 {{name}}?PTY 进程将被终止,智能体将被归档(保留在历史中,移出楼层)。",+ "ideTip": "打开 IDE:浏览并编辑 {{project}} 中的文件,并将未提交的更改作为差异查看。",+ "terminalTip": "在 {{cwd}} 中打开你的系统终端应用 —— 位于该智能体文件夹中的普通 shell,与该智能体自己的终端相互独立。",+ "openIde": "打开 IDE",+ "ide": "IDE",+ "openTerminalAria": "在该智能体的文件夹中打开系统终端"+ },+ "settingsHero": {+ "sponsoredBy": "赞助方",+ "visit": "访问",+ "whatsNew": "新功能",+ "whatsNewTitle": "显示上次告知你的更新的发布说明",+ "starOnGitHub": "在 GitHub 上标星",+ "reportProblem": "反馈问题",+ "fullChangelog": "完整更新日志 →",+ "announcement": "公告",+ "proLaunch": "v0.5.0 与 Munder Difflin Pro 一同发布。",+ "proCommunityFree": "社区版保持免费、开源,并持续获得更新。",+ "proParagraph": "Pro 版将带来新的功能与集成,全年持续上新;它领先于社区版,面向想要充分发挥编码智能体与智能体工具链潜力的重度用户。Pro 路线图还包括移动端应用。",+ "foundersWallTitle": "在 Founders' Wall 上吗?",+ "foundersWallBody": "免费获得一个月的 Munder Difflin Pro,此后年度套餐享 5 折。仅限前 100 位上榜用户。",+ "seeTheWall": "查看榜单",+ "joinDiscord": "加入 Discord"+ },+ "officeTheme": {+ "title": "办公室主题",+ "tvShow": "电视剧办公室主题",+ "experimental": "实验性",+ "desc": "把像素办公室换皮成电视剧场景。切换会开启一套全新演员阵容。",+ "current": "当前",+ "soon": "即将推出",+ "notBuiltYet": "{{label}} 尚未构建——暂时显示办公室。",+ "switchAborted": "切换中止——终端无法关闭:{{error}}",+ "confirmTitle": "切换到「{{label}}」?",+ "startsFreshCast": "开启全新演员阵容",+ "deleteCount": "你的 {{count}} 个当前智能体将被删除——它们的终端会关闭,进行中的工作会停止。",+ "deleteCountPlural": "你的 {{count}} 个当前智能体将被删除——它们的终端会关闭,进行中的工作会停止。",+ "onlyCarries": "只有 {{god}} 会保留。",+ "stillWorking": "⚠ {{count}} 个智能体仍在工作。",+ "stillWorkingPlural": "⚠ {{count}} 个智能体仍在工作。",+ "cantUndo": "此操作无法撤销。",+ "switching": "切换中…",+ "deleteSwitch": "删除 {{count}} 个并切换"+ },+ "settings": {+ "title": "设置",+ "changeHomeTitle": "更改主文件夹",+ "resetTitle": "重置一切?",+ "close": "关闭",+ "change": "更改…",+ "apply": "应用中…",+ "moveAndRestart": "迁移并重启",+ "switchAndRestart": "切换并重启",+ "resetting": "重置中…",+ "eraseEverything": "抹除一切并重启",+ "nav": {+ "general": "通用",+ "prerequisites": "前置条件",+ "agentsModels": "智能体与模型",+ "autonomyBudgets": "自主权与预算",+ "connections": "连接",+ "voice": "语音",+ "memoryKnowledge": "记忆与知识"+ },+ "changeHome": {+ "newHome": "新的主文件夹",+ "moveTitle": "迁移现有数据(推荐)",+ "moveDesc": "把该 harness 的 hive(每个智能体、记忆、任务)和语义记忆宫殿复制到新文件夹。旧文件夹原样保留,作为之后可删除的备份。",+ "freshTitle": "全新开始",+ "freshDesc": "让 harness 指向新的(空)文件夹。现有数据保留在旧文件夹中,只是不再使用。"+ },+ "resetConfirm": {+ "body": "这将永久抹除 Michael 的所有记忆和整个 hive,且无法撤销。任何运行中的会话都会被终止,应用将重启进入新手引导。你确定吗?"+ },+ "general": {+ "homeFolder": "主文件夹",+ "environment": "环境",+ "keepAwake": "智能体运行时保持 Mac 唤醒",+ "keepAwakeDesc": "阻止显示屏休眠,让计划任务和终端准时触发。更耗电——最好接电源。",+ "simpleMode": "用通俗方式解释",+ "simpleModeDesc": "智能体用日常语言而不是工程术语向你汇报。",+ "notifications": "通知",+ "desktopNotifications": "桌面通知",+ "desktopNotificationsDesc": "智能体完成或需要你输入时弹出系统通知。",+ "maintenance": "维护",+ "autoCompact": "定时自动压缩",+ "autoCompactDesc": "按计划为每个智能体排队执行 /compact(默认每小时;间隔在触发器标签页设置)。默认关闭——长期运行的智能体不开启可能会撑爆上下文。",+ "autoUpdate": "自动更新",+ "autoUpdateDesc": "后台检查 GitHub 发布并下载更新;由你选择何时重启。绝不会自行重启。",+ "telemetry": "匿名使用统计",+ "telemetryDesc": "少量匿名事件(打开应用、生成智能体、使用功能)——绝不包含提示词、代码、路径或智能体输出。完整清单见 TELEMETRY.md。",+ "language": "语言",+ "languageDesc": "选择应用界面的语言。默认英文。",+ "dangerZone": "危险区",+ "dangerDesc": "重置会抹掉 Michael 的记忆、整个 hive(每个智能体、消息、任务和看板)、语义记忆宫殿以及所有设置——然后带你回到新手引导。",+ "resetStartOver": "重置并重新开始"+ },+ "agentsModels": {+ "defaultModel": "默认智能体模型",+ "defaultModelDesc": "每个新生成的 Claude 智能体(含 Michael)默认使用此模型,除非按智能体单独选择。在模型选择器中标记为「· 默认」。",+ "savedNote": "已保存——适用于新生成的智能体",+ "saveFailed": "保存失败",+ "advanced": "高级",+ "maxTurns": "每次运行最大轮数",+ "unlimited": "无限制",+ "blankUnlimited": "留空 = 无限制"+ },+ "autonomy": {+ "autonomy": "自主权",+ "autoOn": "自主模式——智能体无需询问即可行动",+ "autoOff": "先询问——智能体在工具批准前暂停",+ "autoDesc": "适用于新生成的智能体(每个智能体的命令仍可覆盖)。",+ "autonomous": "自主",+ "askFirst": "先询问",+ "breaker": "断路器",+ "breakerDesc": "防范失控智能体和超支。断路器会对越界的智能体先引导、再约束、最后停止。",+ "floorBudget": "全楼层令牌预算",+ "budgetPlaceholder": "例如 1000000",+ "budgetEquals": "= {{value}} 令牌",+ "budgetTotal": "整个楼层的令牌总数",+ "velocity": "令牌速度(tok/分)",+ "velocityPlaceholder": "例如 200000",+ "repeatedLimit": "重复工具上限",+ "errorStormLimit": "错误风暴上限",+ "defaultPlaceholder": "默认",+ "hardStop": "硬停止",+ "hardStopDesc": "触发时直接终止智能体,而不仅是约束。关闭 = 先引导(推荐)。",+ "killOnTrip": "触发即终止",+ "steerFirst": "先引导",+ "saved": "已保存"+ },+ "memory": {+ "semanticMemory": "语义记忆",+ "crossSession": "跨会话回忆",+ "crossSessionDesc": "智能体的 markdown 记忆建立索引以便即时搜索。嵌入模型位于记忆面板中。",+ "kg": "知识图谱",+ "kgTitle": "企业知识库",+ "kgDesc": "添加你的文档、图片和 PDF;智能体可通过 kg 工具按需查询。",+ "adding": "添加中…",+ "addFiles": "添加文件…",+ "docCount": "已索引 {{count}} 个文档",+ "docCountPlural": "已索引 {{count}} 个文档"+ },+ "connections": {+ "slack": "Slack",+ "slackIntegration": "Slack 集成",+ "showSlackHelp": "显示 Slack 连接步骤",+ "slackDesc": "把 Slack 频道的消息直接接入 Michael 的队列。",+ "connected": "● 已连接",+ "notConnected": "○ 未连接",+ "signingSecret": "签名密钥",+ "signingSecretPlaceholder": "Slack 应用 -> Basic Information -> Signing Secret",+ "botToken": "Bot 令牌",+ "channelId": "频道 ID(可选)",+ "channelPlaceholder": "C0123... 或留空表示任意",+ "port": "端口",+ "proactivePosting": "主动发布(应用发起)——默认关闭",+ "start": "启动",+ "connectedBtn": "已连接",+ "stop": "停止",+ "listening": "监听中",+ "stopped": "已停止",+ "requestUrl": "请求 URL——粘贴到 Slack 事件订阅中",+ "lastRequestUrl": "上次的请求 URL——在你停止前 Slack 会继续使用",+ "slackHint": "在你的 Slack 应用中:启用事件订阅,添加 message.channels / message.groups 机器人事件,把上面的请求 URL 填进去,然后重新安装到你的工作区。隧道 URL 每次重启都会变化,所以再次点击「启动」后需要重新粘贴。",+ "webhooks": "Webhook 触发器",+ "showWebhookHelp": "显示 Webhook API 格式",+ "webhooksDesc": "每个调用方一个端点,各有自己的密钥和模式。它们共享一个服务器,所以多加一个 webhook 不会有额外成本。",+ "listeningOn": "● 监听中",+ "notListening": "○ 未监听",+ "addWebhook": "添加 webhook",+ "webhookWarning": "你开启的每个 webhook 都是一个公开端点,任何持有其密钥的人都可以向它发请求。新建的默认关闭。",+ "noWebhooks": "还没有 webhook。添加一个,给工具一个可以交付工作的 URL。",+ "namePlaceholder": "谁来调用它?",+ "sure": "确定?",+ "url": "URL",+ "endpointPlaceholder": "webhook 服务器开始监听后显示",+ "secret": "密钥",+ "rotate": "轮换",+ "mode": "模式",+ "webhooksHint": "调用方把请求 POST 到 webhook 的 URL,密钥放在 x-md-webhook-secret 请求头中。每个 webhook 都会按自己的 JSON schema 校验请求体——可在 Michael 的命令中心的触发器标签页中编辑,那里也保留着所有到达历史。",+ "organisation": "组织",+ "orgKey": "组织密钥",+ "orgKeyDesc": "队友的安装如何找到你的实例。",+ "apiKey": "API 密钥",+ "orgKeyPlaceholder": "粘贴你的组织密钥",+ "orgConfigOnly": "目前仅限配置。组织消息服务尚不存在,所以这里的密钥不会启动任何传输——它会被保存、显示在触发器标签页中,然后等待。"+ },+ "voice": {+ "freeFlow": "自由输入",+ "freeFlowTitle": "自由输入(语音听写)",+ "freeFlowDesc": "按住说话听写:开口说话,Groq Whisper 就会把文字放进队列编辑器。",+ "groqKey": "Groq API 密钥",+ "groqPlaceholder": "gsk_...(在 console.groq.com 免费获取密钥)",+ "model": "模型",+ "fast": "whisper-large-v3-turbo(快速)",+ "accurate": "whisper-large-v3(准确)",+ "freeFlowHint": "两种听写方式:点击队列编辑器发送键上方的麦克风按钮(点击开始录音,再点一次转写);或在查看任意智能体终端时按住 Option(⌥)说话、松手转写。两种方式都会把文字放进编辑器草稿,供你发送前检查。首次录音时 macOS 会请求麦克风权限。",+ "realtime": "实时 Michael",+ "voiceChat": "与 Michael 语音对话",+ "voiceChatDesc": "实时与调度者对话。从 Michael 的标签页开启;在这里选择语音回路使用的麦克风和扬声器。",+ "openaiKey": "OpenAI API 密钥 · 语音",+ "openaiKeyDesc1": "与 Michael 对话基于 OpenAI 的 Realtime API——语音进、语音出,通过到 {{model}} 的实时连接。这与你的智能体所用的 Claude 订阅是不同服务,所以需要单独的 OpenAI API 密钥。",+ "openaiKeyDesc2": "在下面粘贴一次即可。密钥在这台机器上加密存储,之后不再显示——每次语音会话都会从它生成一个短时令牌,密钥本身永远不会离开你的电脑。它与「智能体与模型」下列出的 OpenAI 密钥相同;在任一处设置即可。",+ "keyPlaceholderSaved": "密钥已保存——粘贴新密钥可替换",+ "save": "保存",+ "keySaved": "密钥已保存——Talk 已就绪。从 Michael 的卡片启动。",+ "noKey": "尚无密钥——保存密钥前 Talk 保持禁用。",+ "keySavedNote": "密钥已保存——Talk 已就绪。",+ "couldNotSave": "无法保存密钥。",+ "idleDisconnect": "空闲自动断开",+ "30s": "30 秒",+ "1m": "1 分钟",+ "2m": "2 分钟",+ "3m": "3 分钟",+ "5m": "5 分钟",+ "10m": "10 分钟",+ "never": "关闭(永不)",+ "idleDisconnectDesc": "语音会话在无人说话时保持多久后自动关闭。即使此项关闭,支出上限仍能阻止失控的会话。"+ }+ },+ "commandCenter": {+ "title": "命令中心",+ "runsTheFloor": "Michael 掌管楼层",+ "deliveryPaused": "已暂停",+ "deliveryAuto": "自动",+ "deliveryPausedTitle": "队列消息正为楼上的每个智能体保留。不会丢失任何内容;重新开启后即会送达。",+ "deliveryOnTitle": "队列消息会自动送达每个智能体。点击可暂停整个楼层的投递。",+ "ideTitle": "打开 IDE:浏览并编辑所选智能体工作区中的文件,并将未提交的更改作为差异查看。",+ "ide": "IDE",+ "tabs": {+ "terminal": "终端",+ "floor": "监控",+ "tasks": "任务",+ "human": "问我",+ "triggers": "触发器",+ "history": "历史",+ "memory": "记忆",+ "graph": "图谱",+ "activity": "动态",+ "skills": "技能",+ "workers": "工人"+ },+ "terminalFullscreen": "终端已全屏打开。按 Esc 返回。",+ "noTerminal": "Michael 没有实时终端。",+ "dispatchViaMichael": "派发——经由 Michael",+ "suggestedOwner": "建议负责人",+ "michaelDecides": "Michael 决定",+ "dispatchPlaceholder": "描述任务…(Michael 会拆解、写卡片并分配)",+ "dispatch": "派发",+ "sentToMichael": "已发送给 Michael",+ "sentToWithSuggestion": "已发送给 Michael(建议 {{name}})",+ "dispatchFailed": "失败:{{error}}",+ "dispatchSuggestion": "(人类建议由 {{name}}({{id}})处理——你是调度者,你来定。)",+ "taskFromHuman": "来自人类的任务",+ "agents": "智能体",+ "godTag": "(上帝)",+ "toolCalls": "{{count}} 次工具调用",+ "rate": "速率",+ "budget": "预算",+ "meterTitle": "累计会话用量:{{used}} / {{limit}} 令牌{{note}}——非上下文窗口",+ "agentLimit": "(智能体限额)",+ "floorBudget": "(楼层预算)",+ "ctx": "上下文",+ "contextTitle": "上下文窗口:{{used}} / {{limit}} 令牌({{pct}}%)",+ "noStatusTick": "尚无状态上报",+ "modelRestarts": "{{provider}} 模型(重启智能体)",+ "restartContinue": "重启并继续",+ "restartContinueTitle": "终止并重新生成该智能体,恢复其当前会话——修复损坏/花屏的终端而不丢失上下文",+ "engine": "引擎:",+ "apply": "应用",+ "confirmRestartEngine": "这会重启 Michael;不同引擎上的会话无法恢复。",+ "restartFailed": "重启失败。",+ "archived": "已归档({{count}})",+ "showClosed": "显示已关闭的智能体",+ "hideClosed": "隐藏已关闭的智能体",+ "directories": "目录",+ "noRepos": "没有已注册的仓库。",+ "openInTerminal": "在 Terminal.app 中打开",+ "issues": "Issue",+ "fetching": "获取中…",+ "fetchIssues": "获取 Issues",+ "noRepoSelected": "未选择仓库。",+ "fetchFailed": "获取 issues 失败。",+ "noIssues": "尚未获取 issues。",+ "assign": "分配",+ "textSearch": "文本搜索(看板、任务、记忆)",+ "textSearchPlaceholder": "在 hive 文件中查找精确文本…",+ "nothingMatched": "没有匹配项。",+ "searchNoMatch": "还没有匹配项。",+ "semanticSearch": "语义搜索(记忆宫殿)",+ "semanticPlaceholder": "hive 知道些什么关于…",+ "memoryFile": "记忆文件",+ "noMemory": "尚未记录记忆。",+ "activity": "动态",+ "nothingYet": "暂无内容。",+ "board": "看板",+ "boardEmpty": "看板为空。",+ "logSpawn": "生成了 {{name}}",+ "logMessage": "{{from}} → {{to}}:{{subject}}",+ "logDrain": "{{agent}} 处理了 {{count}} 条消息",+ "logEscalate": "升级给人类:{{subject}}",+ "logApprovalGranted": "批准通过",+ "logApprovalDenied": "批准被拒",+ "tokenLimitTitle": "设置该智能体的令牌总数上限",+ "tokenLimit": "上限 {{value}}",+ "setLimit": "设置上限",+ "saveLimit": "保存上限",+ "fleetTokens": "Σ {{value}} tok",+ "fleetInputs": "输入 {{value}}(缓存 {{pct}}%)",+ "fleetRate": "{{value}} tok/分",+ "telemetryNote": "来自每个智能体 OpenTelemetry 的实时数据 · 条状图显示已用令牌与各自上限的对比,否则为 {{cap}} 楼层预算",+ "defaultBudgetNote": "(默认——请在设置中设置楼层令牌预算)",+ "openIssue": "GitHub Issue #{{num}}:{{title}}",+ "deliveryResumeAria": "恢复整个楼层的自动投递",+ "deliveryHoldAria": "暂停整个楼层的自动投递",+ "openIdeAria": "打开 IDE"+ },+ "addAgent": {+ "title": "添加智能体",+ "hireImported": "已导入 hire:",+ "byAuthor": " · 作者 {{author}}",+ "reviewFields": "生成前请逐项检查——尤其是命令。",+ "hireFlags": "⚠️ 该 hire 附加到命令上的标志:",+ "hireSkills": "该 hire 激活的技能:",+ "mcpSafe": "MCP 服务器(安全、预启用):",+ "mcpConsent": "⚠️ MCP(需要你同意——不会自动启用):",+ "mcpEnableInSettings": "——审核后可在设置 → MCP 中启用",+ "sections": {+ "identity": {+ "label": "身份",+ "hint": "名字 · 角色 · 颜色"+ },+ "workspace": {+ "label": "工作区",+ "hint": "文件夹 · 隔离 · 恢复"+ },+ "engine": {+ "label": "引擎",+ "hint": "提供商 · 模型 · 命令"+ },+ "briefing": {+ "label": "任务简报",+ "hint": "描述 · 目标"+ }+ },+ "name": "名字",+ "namePlaceholder": "Ada",+ "character": "角色",+ "color": "颜色",+ "project": "项目",+ "pickProject": "选择项目,或添加新项目:",+ "noProjects": "还没有项目——添加一个开始:",+ "addProject": "添加项目",+ "addProjectTitle": "选择一个文件夹并注册为项目",+ "projectPlaceholder": "/path/to/your/project",+ "pick": "选择",+ "saveAsProject": "另存为项目",+ "saveAsProjectTitle": "把这个文件夹保存到你的项目里,下次一键选择",+ "gitIsolation": "Git 隔离(独立工作树)",+ "resumeSession": "恢复会话 ID(可选)",+ "resumePlaceholder": "粘贴 Claude 会话 ID 以继续其对话",+ "folderFromSession": "已根据会话设置文件夹:{{path}}",+ "resumeNote": "将在所选文件夹中恢复该会话(Git 隔离已禁用)。",+ "provider": "提供商",+ "providerAntigravity": "使用 Gemini 模型启动 Antigravity CLI(agy)",+ "providerCodex": "启动 Codex CLI(codex),不带 Claude 专属标志",+ "providerCustom": "运行任意命令——不带 Claude 专属标志",+ "model": "模型",+ "cliDefaultModel": "CLI 默认模型",+ "fromHire": "{{model}}(来自 hire)",+ "ossModels": "开源模型",+ "ossLocal": "本地 · 无需密钥(Ollama / LM Studio)",+ "ossByok": "通过 OSS 提供商 · BYOK",+ "ossLocalTitle": "{{slug}} · 约需 {{ram}} 内存——拉取:ollama pull {{tag}}",+ "ossByokTitle": "{{slug}} · 在设置 → AI 引擎中设置 {{keyEnv}}",+ "byokNote": "该引擎的 BYOK 密钥和本地端点位于 设置 → AI 引擎。本地模型新手?请阅读 在开源模型上运行 或 在 Mac Mini 上配置。端到端实测仍在等待真实模型调用(请在设备上验证)。",+ "runOnOpenModels": "在开源模型上运行",+ "setUpMacMini": "在 Mac Mini 上配置",+ "command": "命令",+ "commandAuto": "命令(自动模式已开)",+ "templates": "模板",+ "templatesHint": {+ "repoJanitor": {+ "label": "仓库清洁工"+ },+ "docsWriter": {+ "label": "文档写手"+ },+ "bugTriager": {+ "label": "缺陷分诊员"+ },+ "researchAssistant": {+ "label": "研究助理"+ },+ "releaseManager": {+ "label": "发布经理"+ }+ },+ "description": "描述",+ "descriptionPlaceholder": "职责 —— 该智能体是做什么的,而非实时状态",+ "goal": "目标(可选)",+ "goalPlaceholder": "每次提示都会注入的长期指令",+ "importHire": "导入 hire",+ "importHireDesc": "导入 hire 会从一个 .json 清单加载现成的智能体——它会填好下方所有字段供你检查。不点 生成 就不会启动任何东西。",+ "generateWithAI": "用 AI 生成一个…",+ "hideAIPrompt": "隐藏 AI 提示词",+ "aiPromptHint": "把它复制到 Claude/ChatGPT/Gemini,填写底部的详细信息,然后把它的 JSON 回复保存为 .json 文件,在这里导入。",+ "copied": "已复制 ✓",+ "copyPrompt": "复制提示词",+ "importHireBtn": "导入 hire…",+ "importHireBtnTitle": "导入 hire 清单(.json)",+ "spawn": "生成",+ "spawning": "生成中…",+ "errName": "必须填写名字",+ "errFolder": "请先选择文件夹",+ "errCommand": "必须填写命令",+ "hireProgress": "hire 第 {{current}} / {{total}} 项",+ "skipHire": "跳过 hire"+ },+ "onboarding": {+ "titles": {+ "persona": "欢迎来到 MUNDER DIFFLIN",+ "welcome": "认识你的办公室",+ "home": "第 1 步,共 4 步 · HARNESS 主目录",+ "homePlain": "第 1 步,共 4 步 · 为应用找一个家",+ "orchestrator": "第 2 步,共 4 步 · 你的克隆引擎",+ "orchestratorPlain": "第 2 步,共 4 步 · 你的克隆",+ "repos": "第 3 步,共 4 步 · 你的仓库",+ "reposPlain": "第 3 步,共 4 步 · 你的项目",+ "permissions": "第 4 步,共 4 步 · 权限与可靠性",+ "done": "全部就绪"+ },+ "persona": {+ "headline": "一个 24/7 工作的你",+ "body": "Munder Difflin 把你在用的 CLI 智能体变成你的克隆——一个经营着一屋子长期运行智能体、在你离开时持续工作的存在。它管理着围绕它们的一切:上下文、记忆、任务、触发器、环境、文件和集成。",+ "bodyLocal": " 一切都在本机运行。",+ "ask": "首先——你是谁?(我们会据此定制设置)",+ "technicalTitle": "我是技术人员",+ "technicalDesc": "我写代码或用终端工作。给我看 CLI 命令、标志和模型 ID。",+ "nonTechnicalTitle": "我是非技术人员",+ "nonTechnicalDesc": "我从事市场、销售、运营或刚入门。请用通俗语言解释。"+ },+ "welcome": {+ "headline": "你的克隆以及它经营的楼层",+ "descPlain": "你的克隆经营着一小间 AI 员工办公室,你可以在一个屏幕上看到一切。里面有什么:",+ "desc": "你的克隆协调着一窝 AI 编程智能体——持久、可观察、全本地。里面有什么:",+ "features": {+ "engines": {+ "label": "十一大引擎,一间办公室",+ "desc": "Claude Code、Codex、Grok、Kimi、Antigravity、Qwen、OpenCode、Crush、pi、Copilot 与 Cursor —— 在同一楼层并肩工作的实时智能体。",+ "descPlain": "十一个 AI 助手 —— Claude、Codex、Cursor、Gemini、Grok 等 —— 在同一间共享办公室里并肩工作。"+ },+ "clone": {+ "label": "Michael 就是你的克隆",+ "desc": "你的克隆经营着整个楼层——分流请求、分配任务,只把真正需要你的事升级给你。",+ "descPlain": "你的克隆 Michael 接收你的请求,把工作交给合适的智能体,只在关键时刻打扰你。"+ },+ "memory": {+ "label": "长期记忆",+ "desc": "每个智能体都记笔记,汇聚成一个共享、可搜索的记忆宫殿。",+ "descPlain": "智能体会记住自己做过的事,不必每次都从零开始。"+ },+ "commandCenter": {+ "label": "命令中心",+ "desc": "终端 · 楼层 · 记忆 · 动态 · 任务 · 触发器,一个控制面搞定。",+ "descPlain": "一个仪表盘,查看工作进度、智能体的记忆、任务和触发器。"+ },+ "guardrails": {+ "label": "护栏",+ "desc": "按智能体的令牌预算、引导→约束→停止的断路器,以及人工批准。",+ "descPlain": "支出限制和安全停止让智能体保持受控——它们在大动作前还能先问你。"+ },+ "hires": {+ "label": "现成招聘",+ "desc": "从智能体画廊拿一个预配置的智能体,一键生成。",+ "descPlain": "一键从画廊雇一个现成智能体——无需任何设置。"+ }+ }+ },+ "providerBlurb": {+ "claude": "Claude Code — Anthropic",+ "codex": "Codex — OpenAI",+ "antigravity": "Antigravity — Google Gemini",+ "qwen": "Qwen — 在你的机器上运行本地 Qwen 模型",+ "gemini": "Gemini CLI —— Google Gemini",+ "cursor": "Cursor Agent CLI —— 使用你的 Cursor 额度(Luna、Composer 等)"+ },+ "home": {+ "descPlain": "为应用创建一个新的空文件夹作为家。应用记住的一切——它自己的设置和你智能体的记忆——都存放在这里。像 ~/HarnessAgents 这样的地方就很合适。如果它不存在,我们会为你创建。",+ "desc": "选择一个文件夹,harness 会在其中存放自己的文件——智能体元数据、日志,以及你从这里创建的任何新仓库。像 ~/HarnessAgents 这样的地方就是个不错的默认选择。不存在的话我们会创建它。",+ "placeholder": "/path/to/HarnessAgents",+ "createPick": "创建 / 选择",+ "pick": "选择",+ "notePlain": "你日常不需要打开这个文件夹——它只是应用存放笔记的地方,这样重启时什么都不会丢。",+ "note": "把它想成「市政厅」。harness 把智能体状态固定在那里,这样重启后会话可以重新接续。"+ },+ "orchestrator": {+ "descPlain": "Michael 就是你的克隆——他读取你的请求,拆成任务,分给合适的智能体。他是楼层的老板;而你仍然是他的老板。选择用什么 AI 引擎驱动他。",+ "desc": "Michael 就是你的克隆——你刚认识的那层楼的老板。他分流你的请求、分配任务、管理团队,同时把真正需要你的情况升级上来。选择驱动他的引擎和模型;给他一个更长上下文、更强能力的模型。",+ "cliAgentPlain": "一个<strong>CLI 智能体</strong>是运行在你电脑上的 AI 编程助手 —— 常见的有 Claude Code(Anthropic)、Codex(OpenAI)和 Antigravity(Google Gemini)。<strong>你的克隆体</strong>是常驻运行、打理整个办公室的那一个。我们推荐使用 Opus 4.8(1M)的 Claude Code。其他引擎之后可以随时添加或切换。",+ "cliAgent": "每个选项都是一个<strong>CLI 引擎</strong>(Claude Code、Codex、Antigravity/Gemini,或本地代理如 Qwen)。标记为 INSTALLED 的引擎已在本机就绪;INSTALLS ON FIRST RUN 表示应用会在 Michael 首次启动时进行安装。<strong>你的克隆体</strong>(Michael)是统筹整个 hive 的引擎。推荐:Claude Code · Opus 4.8 · 1M。其他提供方之后可按智能体逐一接入。",+ "recommended": "推荐",+ "model": "模型",+ "modelNote": "这只设置 Michael 的引擎。之后你可以在每个智能体上运行其他提供商。"+ },+ "repos": {+ "descPlain": "添加你的项目。项目就是一个文件夹——可以放代码、文档、笔记,或任何你想让智能体处理的文件。你可以新建一个文件夹,也可以选现有的,随时还能再加。",+ "desc": "添加你想让智能体工作的仓库。每个文件夹都会成为一个项目(楼层上的一个房间)——多个智能体可以共享一个。之后随时可再加。",+ "emptyPlain": "还没有添加项目。可选——你可以之后再添加。",+ "empty": "还没有添加仓库。可选,但建议添加。",+ "addProject": "添加项目",+ "addRepo": "添加仓库"+ },+ "permissions": {+ "autonomyHead": "智能体可以自行做到什么程度?",+ "autoLabelPlain": "让智能体自主工作",+ "autoLabel": "自主工作(自动模式)",+ "autoOnPlain": "开。智能体不停下来询问就执行任务——最顺畅的体验。",+ "autoOffPlain": "关。智能体在改文件或运行命令前会暂停并询问你。",+ "autoOn": "开。智能体从不暂停——Claude 运行 bypassPermissions,Codex 绕过批准 + 沙箱,等等。",+ "autoOff": "关。每个智能体在编辑/执行 shell 命令前都会询问(Claude 默认,codex -a untrusted,…)。",+ "autoNotePlain": "智能体在自己的项目里工作时效果最好。之后可以随时更改,包括针对单个智能体。",+ "autoNote": "「控制室」体验的正确默认值;在生产仓库上是个坑。可在添加智能体对话框中按智能体覆盖。",+ "reliabilityHead": "你离开时保持一切运转",+ "reliabilityDescPlain": "即使你离开,你的智能体也会按计划在实时终端中继续工作。这些设置让你保持知情,并让一切继续运转。",+ "reliabilityDesc": "你的智能体会按计划在实时终端中继续工作。如果你的 Mac 完全休眠,这些定时器会暂停,等你回来再补上——什么都不会丢,只是可能跑得晚一些。",+ "keepAwake": "离开时保持工作",+ "keepAwakeDesc": "强保活:有智能体活跃时阻止 Mac 休眠,这样即使你离开,计划和终端也能准时触发。更耗电——最好接电源。默认关闭。",+ "notifications": "桌面通知",+ "notificationsDesc": "智能体需要你或终端需要抢救时提醒你——即使你不在。第一次触发时 macOS 会请求权限。",+ "openAtLogin": "开机启动",+ "openAtLoginDesc": "重启后自动重新启动 harness,让计划任务自行恢复。无提示——立即生效。",+ "shareStats": "共享匿名使用统计",+ "shareStatsDesc": "少量匿名事件(打开应用、生成智能体、使用功能),用于改进 Munder Difflin——绝不包含提示词、代码、文件路径或智能体输出。完整清单见 TELEMETRY.md;可随时在设置中更改。",+ "stayAwake": "接电源时保持唤醒(手动)",+ "stayAwakeDesc": "macOS 只允许你自己设置这一项。在「电池」→「选项」中,开启「防止显示器关闭时自动进入睡眠」(接电源适配器时),这样显示器休眠时定时器也能继续触发。没有防休眠设置的话 Mac 仍会真正休眠——工作会保存并在唤醒后补上。",+ "openBattery": "打开电池设置",+ "setItUp": "开始设置",+ "next": "下一步"+ },+ "errPickHome": "请先选择 harness 主文件夹。",+ "errCreateHome": "无法创建 harness 主文件夹",+ "errEngineNotInstalled": "{{label}} 尚未安装。请先安装它并点击“重新检查”,或选择其他引擎。"+ },+ "office": {+ "gpuError": "办公楼层丢失了 GPU 上下文。\n\n同时使用 GPU 的终端太多了。\n关闭几个智能体终端,或重启应用,即可恢复。",+ "errand": {+ "water": [+ "给植物浇水 🌿",+ "给植物们喝点水",+ "它们长得真快"+ ],+ "window": [+ "开窗透透气 🍃",+ "一点新鲜空气",+ "今天微风不错"+ ],+ "dispenser": [+ "接点水喝 💧",+ "补水时间",+ "保持精神"+ ],+ "fridge": [+ "冰箱里有什么好东西?",+ "谁拿走了我的酸奶?",+ "随便看看…"+ ],+ "shelf": [+ "看看书架 📚",+ "有什么新东西吗?",+ "好东西真多"+ ],+ "bin": [+ "把废纸清掉 🗑️",+ "收拾桌子的日子",+ "稍微整理一下"+ ],+ "smoke": [+ "这层楼自己就能运转 🚬",+ "老板休息一下。",+ "思考人生 🚬",+ "我宣布……休息一下"+ ]+ },+ "suckUp": [+ "Michael,已经交付了 {{done}} 个任务。加薪吗?🥺",+ "老板,这周完成了 {{done}} 个任务!",+ "一如既往的好眼光,老板!",+ "我正要去做那件事!",+ "今天领带不错,Michael",+ "努力工作,老板!💪",+ "史上最好的老板。真心话。"+ ],+ "gossip": [+ "他到底写过代码没有?",+ "又一个拖了一小时的「快速同步」…",+ "「世界上最好的老板」——那个杯子是他自己买的",+ "他把我的任务据为己有,说是他的主意",+ "说真的,那股雪茄味…",+ "他浇了那盆植物。就一盆。他自己的。",+ "你听见了吗?「我宣布……休息一下」"+ ],+ "cheer": [+ "完成!✔",+ "漂亮",+ "收工",+ "上线 🚀",+ "又搞定一个",+ "拿下了",+ "记入战绩"+ ],+ "mugs": {+ "empty": "没有干净的杯子了…",+ "brewing": "正在冲一杯新的 ☕",+ "washing": "在洗杯子"+ },+ "activity": {+ "waiting": "等待中",+ "needsYou": "需要你",+ "compacting": "正在压缩上下文",+ "looping": "循环中——断路器已启动",+ "runningFloor": "正在管理楼层",+ "idle": "空闲"+ }+ }+}diff --git a/src/renderer/src/main.tsx b/src/renderer/src/main.tsxindex 74240724..9dd5401a 100644--- a/src/renderer/src/main.tsx+++ b/src/renderer/src/main.tsx@@ -3,6 +3,7 @@ import { createRoot } from 'react-dom/client';import { App } from './App';import brandLogo from '@brand/logo.png?url';import './design/global.css';+import './i18n';const favicon = document.createElement('link');favicon.rel = 'icon';diff --git a/src/renderer/src/realtime/CostHud.tsx b/src/renderer/src/realtime/CostHud.tsxindex bc9982ef..bf47b475 100644--- a/src/renderer/src/realtime/CostHud.tsx+++ b/src/renderer/src/realtime/CostHud.tsx@@ -18,6 +18,7 @@* Branch feat/realtime-michael. See board.md "🎙 REALTIME MICHAEL".*/import { useEffect, useState } from 'react';+import { useTranslation } from 'react-i18next';import { formatUsd } from '@shared/realtimePricing';import { useRealtimeCost } from './costStore';@@ -57,6 +58,7 @@ export interface CostHudProps {}export function CostHud({ compact = false }: CostHudProps): React.ReactElement | null {+ const { t } = useTranslation();const { usd, inputTokens, outputTokens, capUsd, overCap, startedTs, setCap } = useRealtimeCost();// Local text state so the field can be cleared/typed without fighting the store.const [capText, setCapText] = useState(capUsd != null ? String(capUsd) : '');@@ -86,7 +88,7 @@ export function CostHud({ compact = false }: CostHudProps): React.ReactElement |const tokLabel = totalTok >= 1000 ? `${(totalTok / 1000).toFixed(1)}k` : String(totalTok);return (<span- title={`${totalTok.toLocaleString()} voice audio tokens this session`}+ title={t('costHud.compactTitle', { count: totalTok })}style={{fontFamily: 'var(--cth-font-mono)',fontSize: 12,@@ -96,7 +98,7 @@ export function CostHud({ compact = false }: CostHudProps): React.ReactElement |whiteSpace: 'nowrap'}}>- {tokLabel} tok+ {tokLabel} {t('costHud.tok')}</span>);}@@ -104,13 +106,13 @@ export function CostHud({ compact = false }: CostHudProps): React.ReactElement |return (<div style={wrap}><label style={{ display: 'flex', alignItems: 'center', gap: 6 }}>- <span style={labelStyle}>Spend cap</span>+ <span style={labelStyle}>{t('costHud.spendCap')}</span><inputtype="number"min="0"step="0.5"inputMode="decimal"- placeholder="none"+ placeholder={t('costHud.none')}value={capText}onChange={(e) => setCapText(e.target.value)}onBlur={(e) => commitCap(e.target.value)}@@ -119,31 +121,33 @@ export function CostHud({ compact = false }: CostHudProps): React.ReactElement |}}style={capInputStyle}/>- <span style={{ color: 'var(--cth-ink-500)' }}>USD{capUsd != null ? '' : ' (off)'}</span>+ <span style={{ color: 'var(--cth-ink-500)' }}>{t('costHud.usd')}{capUsd != null ? '' : ` ${t('costHud.off')}`}</span></label>{live ? (<div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}><span style={{ color: meterColor, fontWeight: 600 }}>- {formatUsd(usd)} this session{capUsd != null ? ` / ${formatUsd(capUsd)}` : ''}+ {capUsd != null+ ? t('costHud.thisSessionWithCap', { usd: formatUsd(usd), cap: formatUsd(capUsd) })+ : t('costHud.thisSession', { usd: formatUsd(usd) })}</span><span style={{ color: 'var(--cth-ink-500)', fontSize: 11 }}>- {inputTokens.toLocaleString()} in · {outputTokens.toLocaleString()} out audio tokens+ {t('costHud.audioTokens', { input: inputTokens.toLocaleString(), output: outputTokens.toLocaleString() })}</span>{overCap && (<span style={{ color: 'var(--cth-danger, #c0392b)', fontSize: 11 }}>- Over the spend cap — time to wrap up.+ {t('costHud.overCap')}</span>)}{near && (<span style={{ color: 'var(--cth-warn, #b8860b)', fontSize: 11 }}>- Approaching the spend cap.+ {t('costHud.nearCap')}</span>)}</div>) : (<span style={{ color: 'var(--cth-ink-500)', fontSize: 11 }}>- {usd > 0 ? `Last session: ${formatUsd(usd)}` : 'No active voice session.'}+ {usd > 0 ? t('costHud.lastSession', { usd: formatUsd(usd) }) : t('costHud.noSession')}</span>)}</div>diff --git a/src/renderer/src/scene/office/OfficeFloor.tsx b/src/renderer/src/scene/office/OfficeFloor.tsxindex 0c3422fd..adc94c3e 100644--- a/src/renderer/src/scene/office/OfficeFloor.tsx+++ b/src/renderer/src/scene/office/OfficeFloor.tsx@@ -1,4 +1,5 @@import { useEffect, useRef, useState } from 'react';+import { useTranslation } from 'react-i18next';import { Application, Container, Graphics, Ticker, Texture } from 'pixi.js';// PixiJS uses new Function() internally, blocked by Electron CSP — this patches it.import 'pixi.js/unsafe-eval';@@ -79,44 +80,50 @@ interface Runtime {* reads like real work completed when none did. */const CHEER_MIN_BUSY_MS = 60_000;-/** What an avatar mutters per errand, picked at random. */+/** What an avatar mutters per errand, picked at random. i18n keys into+ * `office.errand.*`. */const ERRAND_THOUGHTS: Record<ErrandKind, readonly string[]> = {- water: ['watering the plants 🌿', 'giving the plants a drink', 'they grow so fast'],- window: ['letting some air in 🍃', 'a bit of fresh air', 'nice breeze today'],- dispenser: ['getting some water 💧', 'hydration break', 'staying sharp'],- fridge: ['anything good in the fridge?', 'who took my yogurt?', 'just looking…'],- shelf: ['checking out the shelf 📚', 'anything new in here?', 'so much good stuff'],- bin: ['out with the scrap paper 🗑️', 'desk cleanup day', 'tidying up a little'],- smoke: ['the floor runs itself 🚬', 'boss break.', 'thinking big thoughts 🚬', 'I DECLARE… a break']+ water: ['office.errand.water.0', 'office.errand.water.1', 'office.errand.water.2'],+ window: ['office.errand.window.0', 'office.errand.window.1', 'office.errand.window.2'],+ dispenser: ['office.errand.dispenser.0', 'office.errand.dispenser.1', 'office.errand.dispenser.2'],+ fridge: ['office.errand.fridge.0', 'office.errand.fridge.1', 'office.errand.fridge.2'],+ shelf: ['office.errand.shelf.0', 'office.errand.shelf.1', 'office.errand.shelf.2'],+ bin: ['office.errand.bin.0', 'office.errand.bin.1', 'office.errand.bin.2'],+ smoke: ['office.errand.smoke.0', 'office.errand.smoke.1', 'office.errand.smoke.2', 'office.errand.smoke.3']};/** What workers blurt out when the boss walks by — performative excellence.- * `{done}` is replaced with that worker's REAL done-task count. */-const SUCK_UP_LINES = [- 'already shipped {done} tasks, Michael. raise? 🥺',- '{done} tasks done this week, boss!',- 'great vision as always, boss!',- 'I was JUST about to do exactly that!',- 'love the tie today, Michael',- 'working hard, boss! 💪',- 'best boss ever. genuinely.'+ * `{{done}}` interpolates that worker's REAL done-task count. */+const SUCK_UP_KEYS = [+ 'office.suckUp.0',+ 'office.suckUp.1',+ 'office.suckUp.2',+ 'office.suckUp.3',+ 'office.suckUp.4',+ 'office.suckUp.5',+ 'office.suckUp.6'] as const;/** What they actually say once he's out of earshot. */-const GOSSIP_LINES = [- 'has he ever actually written code?',- "another 'quick sync' that took an hour…",- "'world's best boss' — he bought that mug himself",- 'he pinned MY task as his idea',- 'the cigar smell, honestly…',- 'he watered the plant. ONE plant. his own.',- "did you hear him? 'I DECLARE… a break'"+const GOSSIP_KEYS = [+ 'office.gossip.0',+ 'office.gossip.1',+ 'office.gossip.2',+ 'office.gossip.3',+ 'office.gossip.4',+ 'office.gossip.5',+ 'office.gossip.6'] as const;/** Lines an avatar throws over its shoulder right after finishing a task. */-const CHEER_LINES = [- 'done! ✔', 'nailed it', "that's a wrap", 'ship it 🚀', 'another one done',- 'crushed it', 'in the books'+const CHEER_KEYS = [+ 'office.cheer.0',+ 'office.cheer.1',+ 'office.cheer.2',+ 'office.cheer.3',+ 'office.cheer.4',+ 'office.cheer.5',+ 'office.cheer.6'] as const;/** Load a texture via an <img> element. Unlike Pixi's Assets.load(), this@@ -157,6 +164,7 @@ function firstWords(prompt: string | undefined, maxWords = 6, maxChars = 42): st}export function OfficeFloor() {+ const { t } = useTranslation();const hostRef = useRef<HTMLDivElement | null>(null);const appRef = useRef<Application | null>(null);const mountIdRef = useRef(0);@@ -262,10 +270,7 @@ export function OfficeFloor() {note.style.cssText ='position:absolute;inset:0;display:flex;align-items:center;justify-content:center;' +'padding:24px;color:#ffd0b5;font-family:monospace;font-size:13px;text-align:center;white-space:pre-wrap;';- note.textContent =- 'The office floor lost its GPU context.\n\n' +- 'Too many terminals are using the GPU at once.\n' +- 'Close a few agent terminals, or restart the app, to bring it back.';+ note.textContent = t('office.gpuError');host.appendChild(note);}});@@ -527,7 +532,7 @@ export function OfficeFloor() {if (phase === 'toTray') {if (cleanCups <= 0) {// Rack ran dry — every mug is parked on someone's desk.- c.showThought('no clean mugs left…');+ c.showThought(t('office.mugs.empty'));rt.run = { phase: 'placing', timer: -1 }; // brief sulk, then move onreturn;}@@ -536,11 +541,11 @@ export function OfficeFloor() {c.setCarryingCup(true);rt.run = { phase: 'taking', timer: 0 };} else if (phase === 'toMachine') {- c.showThought('brewing a fresh one ☕');+ c.showThought(t('office.mugs.brewing'));machineBusy = 2.6;rt.run = { phase: 'brewing', timer: 0 };} else if (phase === 'toSink') {- c.showThought('washing the mug');+ c.showThought(t('office.mugs.washing'));sinkBusy = 2.4;rt.run = { phase: 'washing', timer: 0 };} else {@@ -611,7 +616,7 @@ export function OfficeFloor() {// the proximity director below).const p = rt.character.getPixelPosition();if (godDistance(p.x, p.y) > 96 && Math.random() < 0.35) {- rt.character.showThought(GOSSIP_LINES[Math.floor(Math.random() * GOSSIP_LINES.length)]);+ rt.character.showThought(t(GOSSIP_KEYS[Math.floor(Math.random() * GOSSIP_KEYS.length)]));return;}rt.character.showThought(pickSoloLine(character, spot.spot, seed));@@ -917,7 +922,7 @@ export function OfficeFloor() {rt!.err.timer = 0;c.faceDirection(spot.facing);const lines = ERRAND_THOUGHTS[spot.kind];- c.showThought(lines[Math.floor(Math.random() * lines.length)]);+ c.showThought(t(lines[Math.floor(Math.random() * lines.length)]));const finish = (): void => {const wasGod = !!agent!.isGod;releaseErrand(rt!);@@ -978,10 +983,9 @@ export function OfficeFloor() {if (Math.random() >= 0.6) continue;lastSuckUp.set(id, now);const done = doneByAssignee.get(id) ?? 0;- const pool = done > 0 ? SUCK_UP_LINES : SUCK_UP_LINES.slice(2);- const line = pool[Math.floor(Math.random() * pool.length)]- .replace('{done}', String(done));- rt.character.showThought(line);+ const pool = done > 0 ? SUCK_UP_KEYS : SUCK_UP_KEYS.slice(2);+ const line = pool[Math.floor(Math.random() * pool.length)];+ rt.character.showThought(t(line, { done: String(done) }));rt.character.hideThought(); // linger briefly, then fade}};@@ -1513,11 +1517,11 @@ export function OfficeFloor() {// agents that need the human).c.setStatusGlyph('none');c.sitAtDesk(false);- c.showThought(liveActivity(agent, 'waiting'), agent.carrying);+ c.showThought(liveActivity(agent, t('office.activity.waiting')), agent.carrying);break;case 'blocked':c.setStatusGlyph('blocked');- c.showThought(liveActivity(agent, 'needs you'));+ c.showThought(liveActivity(agent, t('office.activity.needsYou')));c.walkToTile(rt.waitTile);break;case 'compacting':@@ -1525,14 +1529,14 @@ export function OfficeFloor() {// so an agent compacting context reads as busy rather than frozen.c.setStatusGlyph('compacting');c.sitAtDesk(true);- c.showThought(liveActivity(agent, 'compacting context'));+ c.showThought(liveActivity(agent, t('office.activity.compacting')));break;case 'looping':// #5C — circuit-breaker armed (#6): hold position with the spinning// warning glyph so a runaway agent is visible on the floor.c.setStatusGlyph('looping');c.sitAtDesk(false);- c.showThought(liveActivity(agent, 'looping — breaker armed'));+ c.showThought(liveActivity(agent, t('office.activity.looping')));break;case 'success':c.setStatusGlyph('success');@@ -1540,7 +1544,7 @@ export function OfficeFloor() {c.startWandering();if (finishedWork) {c.cheer();- c.showThought(CHEER_LINES[Math.floor(Math.random() * CHEER_LINES.length)]);+ c.showThought(t(CHEER_KEYS[Math.floor(Math.random() * CHEER_KEYS.length)]));} else {c.hideThought();}@@ -1554,14 +1558,14 @@ export function OfficeFloor() {default:c.setStatusGlyph('none');// The god runs the floor from its desk; everyone else wanders when idle.- if (agent.isGod) { c.sitAtDesk(true); c.showThought(liveActivity(agent, 'running the floor')); }+ if (agent.isGod) { c.sitAtDesk(true); c.showThought(liveActivity(agent, t('office.activity.runningFloor'))); }else if (finishedWork) {// Task done → a quick cheer on the spot, then back to roaming.c.startWandering();c.cheer();- c.showThought(CHEER_LINES[Math.floor(Math.random() * CHEER_LINES.length)]);+ c.showThought(t(CHEER_KEYS[Math.floor(Math.random() * CHEER_KEYS.length)]));}- else { c.startWandering(); c.showThought(liveActivity(agent, 'idle')); }+ else { c.startWandering(); c.showThought(liveActivity(agent, t('office.activity.idle'))); }break;}};