Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(symphony): 技能总谱增加英文翻译

lin-xiaoyue4d867fcb5cf
diff --git a/jiuwenswarm/channels/web/frontend/src/components/SkillGraphPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/SkillGraphPanel/index.tsx
index 949003eb8a..3ebeeb64cd 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/SkillGraphPanel/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/SkillGraphPanel/index.tsx
@@ -9,6 +9,7 @@ import {
RotateCcw,
Search,
} from 'lucide-react';
+import { useTranslation } from 'react-i18next';
import { webRequest } from '../../services/webClient';
import './SkillGraphPanel.css';
@@ -139,6 +140,55 @@ const INDEX_UPDATE_TIMEOUT_MS = 1_800_000;
const DEFAULT_MIN_CONFIDENCE = 0.7;
type SymphonyBuildMode = 'incremental' | 'full';
+type Translate = (key: string, options?: Record<string, unknown>) => string;
+
+const BUILD_STAGE_TRANSLATION_KEYS: Record<string, string> = {
+ idle: 'idle',
+ 'update.start': 'updateStart',
+ 'update.pause_requested': 'updatePauseRequested',
+ 'update.paused': 'updatePaused',
+ 'scan.start': 'scanStart',
+ 'scan.done': 'scanDone',
+ 'diff.done': 'diffDone',
+ 'fingerprint.reuse': 'fingerprintReuse',
+ 'fingerprint.parse.start': 'fingerprintParseStart',
+ 'fingerprint.extract.start': 'fingerprintExtractStart',
+ 'fingerprint.normalize.start': 'fingerprintNormalizeStart',
+ 'fingerprint.done': 'fingerprintDone',
+ 'artifact.fingerprints.write.start': 'artifactFingerprintsWriteStart',
+ 'artifact.fingerprints.write.done': 'artifactFingerprintsWriteDone',
+ 'graph.build.start': 'graphBuildStart',
+ 'graph.registry.start': 'graphRegistryStart',
+ 'graph.registry.done': 'graphRegistryDone',
+ 'graph.candidates.start': 'graphCandidatesStart',
+ 'graph.candidates.done': 'graphCandidatesDone',
+ 'graph.resolve.start': 'graphResolveStart',
+ 'graph.resolve.progress': 'graphResolveProgress',
+ 'graph.resolve.done': 'graphResolveDone',
+ 'graph.materialize.start': 'graphMaterializeStart',
+ 'graph.materialize.done': 'graphMaterializeDone',
+ 'graph.score.start': 'graphScoreStart',
+ 'graph.score.done': 'graphScoreDone',
+ 'graph.build.done': 'graphBuildDone',
+ 'artifact.graph.write.start': 'artifactGraphWriteStart',
+ 'artifact.graph.write.done': 'artifactGraphWriteDone',
+ 'state.write.start': 'stateWriteStart',
+ 'state.write.done': 'stateWriteDone',
+ 'update.failed': 'updateFailed',
+ 'update.done': 'updateDone',
+};
+
+const SERVER_DETAIL_TRANSLATION_KEYS: Record<string, string> = {
+ '当前没有正在运行的技能总谱构建。': 'skills.graph.serverDetails.noRunningBuild',
+ '已请求暂停技能总谱构建,已完成的缓存和 checkpoint 会保留。': 'skills.graph.serverDetails.pauseRequested',
+ '已有技能总谱构建正在运行,请等待完成或先暂停当前构建。': 'skills.graph.serverDetails.buildRunning',
+ '技能总谱构建已暂停,可再次执行增量构建继续。': 'skills.graph.serverDetails.buildPaused',
+ '技能总谱不存在或不完整,请先构建总谱。': 'skills.graph.serverDetails.scoreMissing',
+};
+
+const SERVER_DETAIL_PREFIX_TRANSLATION_KEYS: Array<{ prefix: string; key: string }> = [
+ { prefix: 'Symphony 总谱构建失败:', key: 'skills.graph.errors.buildFailedWithDetail' },
+];
function asString(value: unknown, fallback = ''): string {
if (value === undefined || value === null) return fallback;
@@ -179,7 +229,7 @@ function asArray(value: unknown): RawRecord[] {
return Array.isArray(value) ? value.filter((item): item is RawRecord => Boolean(item && typeof item === 'object')) : [];
}
-function asDetailItems(value: unknown): DetailListItem[] {
+function asDetailItems(value: unknown, requiredLabel: string): DetailListItem[] {
if (!Array.isArray(value)) return [];
return value
.map((item, index) => {
@@ -191,7 +241,7 @@ function asDetailItems(value: unknown): DetailListItem[] {
if (!label) return null;
const type = asString(record.type ?? record.kind ?? record.format).trim();
- const required = record.required === true ? '必需' : '';
+ const required = record.required === true ? requiredLabel : '';
const description = asString(record.description).trim();
const meta = [type, required, description].filter(Boolean).join(' / ');
return {
@@ -354,8 +404,31 @@ function isBuildRunningPayload(data: { build_progress?: BuildProgress }): boolea
return data.build_progress?.status === 'running';
}
-function buildLogSummary(entry: BuildLogEntry): string {
- const label = asString(entry.label || entry.stage, '构建日志');
+function buildStageLabel(stage: string, fallback: string, t: Translate): string {
+ const key = BUILD_STAGE_TRANSLATION_KEYS[stage];
+ if (!key) return fallback || stage || t('skills.graph.buildLogFallback');
+ return t(`skills.graph.buildStages.${key}`, {
+ defaultValue: fallback || stage || t('skills.graph.buildLogFallback'),
+ });
+}
+
+function buildProgressLabel(progress: BuildProgress | null, updating: boolean, t: Translate): string {
+ if (progress) {
+ return buildStageLabel(
+ asString(progress.stage),
+ asString(progress.label, t('skills.graph.buildLogFallback')),
+ t,
+ );
+ }
+ return updating ? t('skills.graph.status.refreshing') : t('skills.graph.status.noBuildLogs');
+}
+
+function buildLogSummary(entry: BuildLogEntry, t: Translate): string {
+ const label = buildStageLabel(
+ asString(entry.stage),
+ asString(entry.label || entry.stage, t('skills.graph.buildLogFallback')),
+ t,
+ );
const countKeys: Array<[string, string?]> = [
['current', 'total'],
['skill_count', undefined],
@@ -384,6 +457,18 @@ function formatBuildCount(value: unknown, total: unknown): string {
return `${Math.max(0, Math.min(Math.round(parsedValue), Math.round(parsedTotal)))}/${Math.round(parsedTotal)}`;
}
+function localizedServerDetail(detail: unknown, fallbackKey: string, t: Translate): string {
+ const text = asString(detail).trim();
+ if (!text) return t(fallbackKey);
+ const exactKey = SERVER_DETAIL_TRANSLATION_KEYS[text];
+ if (exactKey) return t(exactKey);
+ const prefixMatch = SERVER_DETAIL_PREFIX_TRANSLATION_KEYS.find(({ prefix }) => text.startsWith(prefix));
+ if (prefixMatch) {
+ return t(prefixMatch.key, { detail: text.slice(prefixMatch.prefix.length).trim() });
+ }
+ return text;
+}
+
function normalizeTokenCount(value: unknown): number {
const parsed = Number(value);
return Number.isFinite(parsed) && parsed > 0 ? Math.round(parsed) : 0;
@@ -401,10 +486,14 @@ function tokenUsageTotal(usage: LLMTokenUsageSummary | null): LLMTokenUsageTotal
};
}
-function formatTokenUsage(usage: LLMTokenUsageSummary | null): string {
+function formatTokenUsage(usage: LLMTokenUsageSummary | null, t: Translate): string {
const total = tokenUsageTotal(usage);
if (!total) return '';
- return `${(total.prompt_tokens || 0).toLocaleString()} in / ${(total.completion_tokens || 0).toLocaleString()} out / ${(total.total_tokens || 0).toLocaleString()} total`;
+ return t('skills.graph.tokenUsage', {
+ prompt: (total.prompt_tokens || 0).toLocaleString(),
+ completion: (total.completion_tokens || 0).toLocaleString(),
+ total: (total.total_tokens || 0).toLocaleString(),
+ });
}
function parseBuildLogTime(entry: BuildLogEntry | undefined): number {
@@ -552,6 +641,7 @@ function buildLogSignature(entries?: BuildLogEntry[]): string {
}
export function SkillGraphPanel() {
+ const { t } = useTranslation();
const canvasRef = useRef<HTMLCanvasElement | null>(null);
const graphRef = useRef<NormalizedGraph>({ nodes: [], edges: [] });
const visibleRef = useRef<NormalizedGraph>({ nodes: [], edges: [] });
@@ -762,7 +852,7 @@ export function SkillGraphPanel() {
keepLoading = true;
return;
}
- throw new Error(data.detail || '无法读取技能总谱,请先刷新总谱。');
+ throw new Error(localizedServerDetail(data.detail, 'skills.graph.errors.readFailed', t));
}
const normalized = normalizeGraph(data);
setPayload(data);
@@ -785,7 +875,7 @@ export function SkillGraphPanel() {
setLoading(false);
}
}
- }, [applyBuildLog, requestAutoFit]);
+ }, [applyBuildLog, requestAutoFit, t]);
const restoreBuildStatus = useCallback(async (): Promise<boolean> => {
const data = await webRequest<SkillGraphStatus>(
@@ -814,7 +904,7 @@ export function SkillGraphPanel() {
setTokenUsage(null);
setBuildProgress({
stage: 'update.start',
- label: force ? '准备全量重新构建技能总谱' : '准备增量构建技能总谱',
+ label: force ? t('skills.graph.status.prepareFull') : t('skills.graph.status.prepareIncremental'),
percent: 3,
status: 'running',
});
@@ -829,7 +919,7 @@ export function SkillGraphPanel() {
return;
}
if (!data.success) {
- throw new Error(data.detail || '技能总谱刷新失败');
+ throw new Error(localizedServerDetail(data.detail, 'skills.graph.errors.refreshFailed', t));
}
await loadGraph();
} catch (err) {
@@ -838,7 +928,7 @@ export function SkillGraphPanel() {
setUpdating(false);
setBuildMode(null);
}
- }, [applyBuildLog, loadGraph]);
+ }, [applyBuildLog, loadGraph, t]);
const pauseBuild = useCallback(async () => {
setPausingBuild(true);
@@ -852,14 +942,14 @@ export function SkillGraphPanel() {
);
applyBuildLog(data);
if (!data.success && !data.paused) {
- throw new Error(data.detail || '技能总谱暂停失败');
+ throw new Error(localizedServerDetail(data.detail, 'skills.graph.errors.pauseFailed', t));
}
} catch (err) {
setError(err instanceof Error ? err.message : String(err));
} finally {
setPausingBuild(false);
}
- }, [applyBuildLog]);
+ }, [applyBuildLog, t]);
useEffect(() => {
let stopped = false;
@@ -1210,23 +1300,27 @@ export function SkillGraphPanel() {
const createdAt = asString(manifest.created_at);
const graphUpdatedAt = createdAt ? new Date(createdAt).toLocaleString() : '';
const currentProgressPercent = progressPercent(buildProgress);
- const progressLabel = buildProgress?.label || (updating ? '正在刷新技能总谱' : '暂无构建日志');
- const progressTitle = isGraphBuildRunning ? '正在刷新技能总谱' : isGraphBuildPaused ? '技能总谱构建已暂停' : progressLabel;
+ const progressLabel = buildProgressLabel(buildProgress, updating, t);
+ const progressTitle = isGraphBuildRunning
+ ? t('skills.graph.status.refreshing')
+ : isGraphBuildPaused
+ ? t('skills.graph.status.paused')
+ : progressLabel;
const recentBuildLog = compactBuildLog(buildLog).slice(-8);
- const tokenUsageText = formatTokenUsage(tokenUsage);
+ const tokenUsageText = formatTokenUsage(tokenUsage, t);
const elapsedText = buildElapsedText(buildLog, buildProgress, buildElapsedNow);
const buildMetricsText = [tokenUsageText, elapsedText].filter(Boolean).join(' · ');
- const detailInputs = selectedNode ? asDetailItems(selectedNode.properties.inputs) : [];
- const detailOutputs = selectedNode ? asDetailItems(selectedNode.properties.outputs) : [];
- const detailTasks = selectedNode ? asDetailItems(selectedNode.properties.tasks) : [];
+ const detailInputs = selectedNode ? asDetailItems(selectedNode.properties.inputs, t('skills.graph.required')) : [];
+ const detailOutputs = selectedNode ? asDetailItems(selectedNode.properties.outputs, t('skills.graph.required')) : [];
+ const detailTasks = selectedNode ? asDetailItems(selectedNode.properties.tasks, t('skills.graph.required')) : [];
return (
<div className="skill-graph-panel">
<aside className="skill-graph-panel__sidebar">
<div className="skill-graph-panel__stats skill-graph-panel__stats--compact">
- <span><strong>{visibleSkillNodes.length}</strong>技能</span>
- <span><strong>{visible.edges.length}</strong>边</span>
+ <span><strong>{visibleSkillNodes.length}</strong>{t('skills.graph.stats.skillsSuffix')}</span>
+ <span><strong>{visible.edges.length}</strong>{t('skills.graph.stats.edgesSuffix')}</span>
</div>
<label className="skill-graph-panel__search">
@@ -1234,13 +1328,13 @@ export function SkillGraphPanel() {
<input
value={query}
onChange={(event) => setQuery(event.target.value)}
- placeholder="搜索技能"
+ placeholder={t('skills.graph.searchPlaceholder')}
/>
</label>
<div className="skill-graph-panel__filters">
<label>
- <span>最小置信度 {Math.round(minConfidence * 100)}%</span>
+ <span>{t('skills.graph.minConfidence', { percent: Math.round(minConfidence * 100) })}</span>
<input
type="range"
min={graphMinConfidence}
@@ -1256,14 +1350,14 @@ export function SkillGraphPanel() {
</div>
<div className="skill-graph-panel__actions">
- <button type="button" onClick={loadGraph} disabled={isBusy} title="读谱">
+ <button type="button" onClick={loadGraph} disabled={isBusy} title={t('skills.graph.actions.read')}>
{loading ? <Loader2 size={16} className="skill-graph-panel__spin" aria-hidden="true" /> : <RefreshCw size={16} aria-hidden="true" />}
</button>
<button
type="button"
onClick={() => void rebuildGraph('incremental')}
disabled={isBusy}
- title="增量构建"
+ title={t('skills.graph.actions.incrementalBuild')}
>
{isIncrementalBuild ? <Loader2 size={16} className="skill-graph-panel__spin" aria-hidden="true" /> : <GitBranch size={16} aria-hidden="true" />}
</button>
@@ -1271,7 +1365,7 @@ export function SkillGraphPanel() {
type="button"
onClick={pauseBuild}
disabled={!canPauseBuild}
- title="暂停构建"
+ title={t('skills.graph.actions.pauseBuild')}
>
{pausingBuild ? <Loader2 size={16} className="skill-graph-panel__spin" aria-hidden="true" /> : <Pause size={16} aria-hidden="true" />}
</button>
@@ -1279,11 +1373,11 @@ export function SkillGraphPanel() {
type="button"
onClick={() => void rebuildGraph('full')}
disabled={isBusy}
- title="全量重新构建"
+ title={t('skills.graph.actions.fullRebuild')}
>
{isFullBuild ? <Loader2 size={16} className="skill-graph-panel__spin" aria-hidden="true" /> : <RotateCcw size={16} aria-hidden="true" />}
</button>
- <button type="button" onClick={fitView} disabled={!visible.nodes.length} title="适配视图">
+ <button type="button" onClick={fitView} disabled={!visible.nodes.length} title={t('skills.graph.actions.fitView')}>
<Focus size={16} aria-hidden="true" />
</button>
</div>
@@ -1304,12 +1398,12 @@ export function SkillGraphPanel() {
) : null}
<div className="skill-graph-panel__log-list">
{recentBuildLog.length === 0 ? (
- <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">等待构建日志...</div>
+ <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">{t('skills.graph.status.waitingBuildLogs')}</div>
) : (
recentBuildLog.map((entry, index) => (
<div className="skill-graph-panel__log-row" key={`${entry.ts || 'log'}-${entry.stage || index}-${index}`}>
<span>{buildLogTime(entry)}</span>
- <strong>{buildLogSummary(entry)}</strong>
+ <strong>{buildLogSummary(entry, t)}</strong>
</div>
))
)}
@@ -1325,9 +1419,9 @@ export function SkillGraphPanel() {
) : null}
<section className="skill-graph-panel__node-list">
- <h3>技能列表</h3>
+ <h3>{t('skills.graph.skillList')}</h3>
{visibleSkillNodes.length === 0 ? (
- <div className="skill-graph-panel__empty">没有可显示的技能。</div>
+ <div className="skill-graph-panel__empty">{t('skills.graph.noVisibleSkills')}</div>
) : (
[...visibleSkillNodes]
.sort((a, b) => b.degree - a.degree)
@@ -1340,7 +1434,7 @@ export function SkillGraphPanel() {
onClick={() => selectNode(node)}
>
<span>{node.label}</span>
- <small>入度 {node.inDegree} · 出度 {node.outDegree}</small>
+ <small>{t('skills.graph.degreeSummary', { inDegree: node.inDegree, outDegree: node.outDegree })}</small>
</button>
))
)}
@@ -1350,7 +1444,7 @@ export function SkillGraphPanel() {
<section className="skill-graph-panel__canvas-wrap">
{graphUpdatedAt ? (
<div className="skill-graph-panel__graph-meta">
- 更新时间 {graphUpdatedAt}
+ {t('skills.graph.updatedAt', { time: graphUpdatedAt })}
</div>
) : null}
<canvas
@@ -1392,7 +1486,7 @@ export function SkillGraphPanel() {
{isBusy ? (
<div className={`skill-graph-panel__loading${graphUpdatedAt ? ' skill-graph-panel__loading--below-meta' : ''}`}>
<Loader2 size={18} className="skill-graph-panel__spin" aria-hidden="true" />
- <span>{isGraphBuildRunning ? `${progressTitle} · ${currentProgressPercent}%` : '正在读取技能总谱'}</span>
+ <span>{isGraphBuildRunning ? `${progressTitle} · ${currentProgressPercent}%` : t('skills.graph.status.reading')}</span>
</div>
) : null}
</section>
@@ -1405,8 +1499,8 @@ export function SkillGraphPanel() {
<p>{selectedNode.id}</p>
</div>
<div className="skill-graph-panel__detail-grid">
- <span>入度<strong>{selectedNode.inDegree}</strong></span>
- <span>出度<strong>{selectedNode.outDegree}</strong></span>
+ <span>{t('skills.graph.inDegree')}<strong>{selectedNode.inDegree}</strong></span>
+ <span>{t('skills.graph.outDegree')}<strong>{selectedNode.outDegree}</strong></span>
</div>
{asString(selectedNode.properties.description) ? (
<p className="skill-graph-panel__description">
@@ -1415,9 +1509,9 @@ export function SkillGraphPanel() {
) : null}
<div className="skill-graph-panel__io-sections">
<section className="skill-graph-panel__io-section skill-graph-panel__io-section--input">
- <h4>输入</h4>
+ <h4>{t('skills.graph.inputs')}</h4>
{detailInputs.length === 0 ? (
- <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">暂无输入</div>
+ <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">{t('skills.graph.noInputs')}</div>
) : (
<div className="skill-graph-panel__tags">
{detailInputs.slice(0, 18).map((item) => (
@@ -1430,9 +1524,9 @@ export function SkillGraphPanel() {
)}
</section>
<section className="skill-graph-panel__io-section skill-graph-panel__io-section--output">
- <h4>输出</h4>
+ <h4>{t('skills.graph.outputs')}</h4>
{detailOutputs.length === 0 ? (
- <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">暂无输出</div>
+ <div className="skill-graph-panel__empty skill-graph-panel__empty--compact">{t('skills.graph.noOutputs')}</div>
) : (
<div className="skill-graph-panel__tags">
{detailOutputs.slice(0, 18).map((item) => (
@@ -1446,7 +1540,7 @@ export function SkillGraphPanel() {
</section>
{detailTasks.length > 0 ? (
<section className="skill-graph-panel__io-section skill-graph-panel__io-section--task">
- <h4>任务</h4>
+ <h4>{t('skills.graph.tasks')}</h4>
<div className="skill-graph-panel__tags">
{detailTasks.slice(0, 18).map((item) => (
<span key={item.key} title={item.meta || item.label}>
@@ -1459,9 +1553,9 @@ export function SkillGraphPanel() {
) : null}
</div>
<div className="skill-graph-panel__related">
- <h4>相关边</h4>
+ <h4>{t('skills.graph.relatedEdges')}</h4>
{relatedEdges.length === 0 ? (
- <div className="skill-graph-panel__empty">暂无相关边。</div>
+ <div className="skill-graph-panel__empty">{t('skills.graph.noRelatedEdges')}</div>
) : (
relatedEdges.slice(0, 80).map((edge, index) => {
const otherId = edge.source === selectedNode.id ? edge.target : edge.source;
@@ -1483,7 +1577,7 @@ export function SkillGraphPanel() {
</div>
</>
) : (
- <div className="skill-graph-panel__empty skill-graph-panel__detail-empty">选择一个技能查看指纹</div>
+ <div className="skill-graph-panel__empty skill-graph-panel__detail-empty">{t('skills.graph.selectSkillHint')}</div>
)}
</aside>
</div>
diff --git a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx
index 51865e26d6..de2884c9a1 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/SkillPanel/index.tsx
@@ -1494,7 +1494,7 @@ export function SkillPanel({ sessionId, onNavigateToConfig, isActive = false }:
: "text-text-muted hover:text-text"
}`}
>
- 技能总谱
+ {t('skills.tabs.skillGraph')}
</button>
<button
onClick={() => setActiveTab("index")}
diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
index e5b75119a3..ed8fd36d36 100644
--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json
@@ -980,7 +980,8 @@
"tabs": {
"mySkills": "My Skills",
"marketplace": "Marketplace",
- "skillIndex": "Skill Index"
+ "skillIndex": "Skill Index",
+ "skillGraph": "Skill Score"
},
"mySkillsTabs": {
"all": "All",
@@ -1135,6 +1136,95 @@
"skill": "Skill"
}
},
+ "graph": {
+ "stats": {
+ "skillsSuffix": " skills",
+ "edgesSuffix": " edges"
+ },
+ "searchPlaceholder": "Search skills",
+ "minConfidence": "Minimum confidence {{percent}}%",
+ "buildLogFallback": "Build log",
+ "tokenUsage": "{{prompt}} in / {{completion}} out / {{total}} total",
+ "required": "Required",
+ "skillList": "Skill List",
+ "noVisibleSkills": "No skills to display.",
+ "degreeSummary": "In {{inDegree}} · Out {{outDegree}}",
+ "updatedAt": "Updated {{time}}",
+ "inDegree": "In",
+ "outDegree": "Out",
+ "inputs": "Inputs",
+ "noInputs": "No inputs",
+ "outputs": "Outputs",
+ "noOutputs": "No outputs",
+ "tasks": "Tasks",
+ "relatedEdges": "Related Edges",
+ "noRelatedEdges": "No related edges.",
+ "selectSkillHint": "Select a skill to view its fingerprint",
+ "actions": {
+ "read": "Read score",
+ "incrementalBuild": "Incremental build",
+ "pauseBuild": "Pause build",
+ "fullRebuild": "Full rebuild",
+ "fitView": "Fit view"
+ },
+ "status": {
+ "refreshing": "Refreshing skill score",
+ "paused": "Skill score build paused",
+ "reading": "Reading skill score",
+ "noBuildLogs": "No build logs",
+ "waitingBuildLogs": "Waiting for build logs...",
+ "prepareFull": "Preparing full skill score rebuild",
+ "prepareIncremental": "Preparing incremental skill score build"
+ },
+ "errors": {
+ "readFailed": "Unable to read the skill score. Refresh the score first.",
+ "refreshFailed": "Failed to refresh the skill score",
+ "pauseFailed": "Failed to pause the skill score build",
+ "buildFailedWithDetail": "Symphony score build failed: {{detail}}"
+ },
+ "serverDetails": {
+ "noRunningBuild": "No skill score build is currently running.",
+ "pauseRequested": "Skill score build pause requested. Completed cache and checkpoints will be kept.",
+ "buildRunning": "A skill score build is already running. Wait for it to finish or pause the current build first.",
+ "buildPaused": "Skill score build paused. Run an incremental build again to continue.",
+ "scoreMissing": "The skill score is missing or incomplete. Build the score first."
+ },
+ "buildStages": {
+ "idle": "No build logs",
+ "updateStart": "Starting skill score build",
+ "updatePauseRequested": "Pausing skill score build",
+ "updatePaused": "Skill score build paused",
+ "scanStart": "Scanning skill directories",
+ "scanDone": "Skill directory scan complete",
+ "diffDone": "Checking skill changes",
+ "fingerprintReuse": "Reusing skill fingerprints",
+ "fingerprintParseStart": "Parsing skill fingerprints",
+ "fingerprintExtractStart": "Extracting skill fingerprints",
+ "fingerprintNormalizeStart": "Normalizing skill fingerprints",
+ "fingerprintDone": "Skill fingerprint processing complete",
+ "artifactFingerprintsWriteStart": "Writing skill fingerprint files",
+ "artifactFingerprintsWriteDone": "Skill fingerprint files written",
+ "graphBuildStart": "Building skill relation graph",
+ "graphRegistryStart": "Registering skill nodes",
+ "graphRegistryDone": "Skill node registration complete",
+ "graphCandidatesStart": "Generating candidate relations",
+ "graphCandidatesDone": "Candidate relation generation complete",
+ "graphResolveStart": "Resolving candidate relations",
+ "graphResolveProgress": "Resolving candidate relations",
+ "graphResolveDone": "Candidate relation resolution complete",
+ "graphMaterializeStart": "Generating score structure",
+ "graphMaterializeDone": "Score structure generated",
+ "graphScoreStart": "Building score retrieval structure",
+ "graphScoreDone": "Score retrieval structure built",
+ "graphBuildDone": "Skill relation graph built",
+ "artifactGraphWriteStart": "Writing score files",
+ "artifactGraphWriteDone": "Score files written",
+ "stateWriteStart": "Writing score state",
+ "stateWriteDone": "Score state written",
+ "updateFailed": "Score build failed",
+ "updateDone": "Score build complete"
+ }
+ },
"evolution": {
"closeAria": "Close skill experience dialog",
"title": "Skill Experience: {{name}}",
diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
index 79774d533a..182d719a55 100644
--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json
@@ -979,7 +979,8 @@
"tabs": {
"mySkills": "我的技能",
"marketplace": "技能广场",
- "skillIndex": "技能索引"
+ "skillIndex": "技能索引",
+ "skillGraph": "技能总谱"
},
"mySkillsTabs": {
"all": "全部",
@@ -1134,6 +1135,95 @@
"skill": "技能"
}
},
+ "graph": {
+ "stats": {
+ "skillsSuffix": "技能",
+ "edgesSuffix": "边"
+ },
+ "searchPlaceholder": "搜索技能",
+ "minConfidence": "最小置信度 {{percent}}%",
+ "buildLogFallback": "构建日志",
+ "tokenUsage": "{{prompt}} 输入 / {{completion}} 输出 / {{total}} 总计",
+ "required": "必需",
+ "skillList": "技能列表",
+ "noVisibleSkills": "没有可显示的技能。",
+ "degreeSummary": "入度 {{inDegree}} · 出度 {{outDegree}}",
+ "updatedAt": "更新时间 {{time}}",
+ "inDegree": "入度",
+ "outDegree": "出度",
+ "inputs": "输入",
+ "noInputs": "暂无输入",
+ "outputs": "输出",
+ "noOutputs": "暂无输出",
+ "tasks": "任务",
+ "relatedEdges": "相关边",
+ "noRelatedEdges": "暂无相关边。",
+ "selectSkillHint": "选择一个技能查看指纹",
+ "actions": {
+ "read": "读谱",
+ "incrementalBuild": "增量构建",
+ "pauseBuild": "暂停构建",
+ "fullRebuild": "全量重新构建",
+ "fitView": "适配视图"
+ },
+ "status": {
+ "refreshing": "正在刷新技能总谱",
+ "paused": "技能总谱构建已暂停",
+ "reading": "正在读取技能总谱",
+ "noBuildLogs": "暂无构建日志",
+ "waitingBuildLogs": "等待构建日志...",
+ "prepareFull": "准备全量重新构建技能总谱",
+ "prepareIncremental": "准备增量构建技能总谱"
+ },
+ "errors": {
+ "readFailed": "无法读取技能总谱,请先刷新总谱。",
+ "refreshFailed": "技能总谱刷新失败",
+ "pauseFailed": "技能总谱暂停失败",
+ "buildFailedWithDetail": "Symphony 总谱构建失败: {{detail}}"
+ },
+ "serverDetails": {
+ "noRunningBuild": "当前没有正在运行的技能总谱构建。",
+ "pauseRequested": "已请求暂停技能总谱构建,已完成的缓存和 checkpoint 会保留。",
+ "buildRunning": "已有技能总谱构建正在运行,请等待完成或先暂停当前构建。",
+ "buildPaused": "技能总谱构建已暂停,可再次执行增量构建继续。",
+ "scoreMissing": "技能总谱不存在或不完整,请先构建总谱。"
+ },
+ "buildStages": {
+ "idle": "暂无构建日志",
+ "updateStart": "开始构建技能总谱",
+ "updatePauseRequested": "正在暂停技能总谱构建",
+ "updatePaused": "技能总谱构建已暂停",
+ "scanStart": "扫描技能目录",
+ "scanDone": "技能目录扫描完成",
+ "diffDone": "计算技能变更",
+ "fingerprintReuse": "复用技能指纹",
+ "fingerprintParseStart": "解析技能指纹",
+ "fingerprintExtractStart": "提取技能指纹",
+ "fingerprintNormalizeStart": "规范化技能指纹",
+ "fingerprintDone": "技能指纹处理完成",
+ "artifactFingerprintsWriteStart": "写入技能指纹文件",
+ "artifactFingerprintsWriteDone": "技能指纹文件写入完成",
+ "graphBuildStart": "构建技能关系图",
+ "graphRegistryStart": "注册技能节点",
+ "graphRegistryDone": "技能节点注册完成",
+ "graphCandidatesStart": "生成候选关系",
+ "graphCandidatesDone": "候选关系生成完成",
+ "graphResolveStart": "解析候选关系",
+ "graphResolveProgress": "解析候选关系",
+ "graphResolveDone": "候选关系解析完成",
+ "graphMaterializeStart": "生成总谱结构",
+ "graphMaterializeDone": "总谱结构生成完成",
+ "graphScoreStart": "构建乐谱检索结构",
+ "graphScoreDone": "乐谱检索结构构建完成",
+ "graphBuildDone": "技能关系图构建完成",
+ "artifactGraphWriteStart": "写入总谱文件",
+ "artifactGraphWriteDone": "总谱文件写入完成",
+ "stateWriteStart": "写入总谱状态",
+ "stateWriteDone": "总谱状态写入完成",
+ "updateFailed": "总谱构建失败",
+ "updateDone": "总谱构建完成"
+ }
+ },
"evolution": {
"closeAria": "关闭技能经验弹窗",
"title": "技能经验:{{name}}",