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: 配置信息按全局语言路由统一管理
w1101627533cd546aba18e4
diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/ConfigFieldHintLabel.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/ConfigFieldHintLabel.tsxnew file mode 100644index 0000000000..4e0c3e48d4--- /dev/null+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/ConfigFieldHintLabel.tsx@@ -0,0 +1,34 @@+import type { ReactNode } from "react";++/**+ * 字段名 + 问号提示(样式对齐 Cron 定时任务:圆圈 ? + title 悬停)。+ * 无 help 时仅渲染标签。+ */+export function ConfigFieldHintLabel({+ label,+ help,+ className,+ mono = false,+}: {+ label: ReactNode;+ help?: string;+ className?: string;+ mono?: boolean;+}) {+ if (!help) {+ return <div className={`${mono ? "mono" : ""} ${className ?? ""}`.trim()}>{label}</div>;+ }++ return (+ <div className={`inline-flex max-w-full items-center gap-1 ${mono ? "mono" : ""} ${className ?? ""}`.trim()}>+ <span>{label}</span>+ <span+ className="inline-flex h-4 w-4 shrink-0 items-center justify-center rounded-full border border-border text-[10px] font-normal text-text-muted cursor-help"+ title={help}+ aria-label={help}+ >+ ?+ </span>+ </div>+ );+}diff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/PermissionsToolsEditor.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/PermissionsToolsEditor.tsxindex abea7bf1ad..82078886bc 100644--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/PermissionsToolsEditor.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/PermissionsToolsEditor.tsx@@ -1,6 +1,7 @@import { useCallback, useEffect, useMemo, useState } from "react";import { useTranslation } from "react-i18next";import { webRequest } from "../../services/webClient";+import { ConfigFieldHintLabel } from "./ConfigFieldHintLabel";export type PermissionsToolsEditorProps = {isConnected: boolean;@@ -15,6 +16,12 @@ const LEVEL_LABELS: Record<PermLevel, string> = {allow: "ALLOW",};+/** 仅缩写/协议类不够直观的工具名显示问号;bash / write / ask_user 等常见名不加 */+const AMBIGUOUS_TOOL_HELP_KEYS = new Set([+ "mcp_exec_command",+ "acp_chat",+]);+function normalizeLevel(value: unknown): PermLevel | null {if (typeof value === "string") {const l = value.trim().toLowerCase();@@ -58,7 +65,7 @@ function groupToolsByLevel(tools: Record<string, PermLevel>): Record<PermLevel,}export function PermissionsToolsEditor({ isConnected }: PermissionsToolsEditorProps) {- const { t } = useTranslation();+ const { t, i18n } = useTranslation();const [tools, setTools] = useState<Record<string, PermLevel>>({});const [loading, setLoading] = useState(false);const [busyKey, setBusyKey] = useState<string | null>(null);@@ -70,6 +77,15 @@ export function PermissionsToolsEditor({ isConnected }: PermissionsToolsEditorPrconst grouped = useMemo(() => groupToolsByLevel(tools), [tools]);const normalizedToolNames = useMemo(() => new Set(Object.keys(tools).map((name) => name.trim())), [tools]);+ const getToolHelp = useCallback(+ (toolName: string): string => {+ if (!AMBIGUOUS_TOOL_HELP_KEYS.has(toolName)) return "";+ const key = `config.permissionsTools.toolHelp.${toolName}`;+ return i18n.exists(key) ? t(key) : "";+ },+ [i18n, t],+ );+const load = useCallback(async () => {if (!isConnected) return;setLoading(true);@@ -212,7 +228,11 @@ export function PermissionsToolsEditor({ isConnected }: PermissionsToolsEditorPr{names.map((name) => (<tr key={name} className="border-t border-border even:bg-secondary/10"><td className="px-3 py-2 align-middle">- <span className="mono text-[13px] text-text break-all">{name}</span>+ <ConfigFieldHintLabel+ mono+ label={<span className="text-[13px] text-text break-all">{name}</span>}+ help={getToolHelp(name)}+ /></td><td className="px-3 py-2 align-middle"><selectdiff --git a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsxindex ae82f3cd58..250fdfe60e 100644--- a/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx+++ b/jiuwenswarm/channels/web/frontend/src/components/ConfigPanel/index.tsx@@ -14,6 +14,7 @@ import {syncAgentsWithModelChanges,type ModelIdentity,} from "./openaiAccountModelState";+import { ConfigFieldHintLabel } from "./ConfigFieldHintLabel";import { PermissionsToolsEditor } from "./PermissionsToolsEditor";import { ModelProviderIcon } from '../ModelProviderIcon';@@ -766,9 +767,43 @@ const KEY_PLACEHOLDER_I18N: Record<string, string> = {skill_retrieval_build_root_categories: "config.keys.skillRetrievalBuildRootCategoriesPlaceholder",};const KEY_LABEL_HINT_I18N: Record<string, string> = {+ // 模型:仅协议/推理等易歧义项(model_name / alias / api_base / api_key 不加)+ model_provider: "config.keyHelp.modelProvider",+ provider: "config.keyHelp.modelProvider",+ reasoning_level: "config.keyHelp.reasoningLevel",+ // 第三方 Key 名称本身可能不直观+ jina_api_key: "config.keyHelp.jinaApiKey",+ bocha_api_key: "config.keyHelp.bochaApiKey",+ perplexity_api_key: "config.keyHelp.perplexityApiKey",+ serper_api_key: "config.keyHelp.serperApiKey",+ github_token: "config.keyHelp.githubToken",+ // 免费搜索 / 演进+ free_search_ddg_enabled: "config.keyHelp.freeSearchDdg",+ free_search_bing_enabled: "config.keyHelp.freeSearchBing",+ evolution_auto_scan: "config.keyHelp.evolutionAutoScan",skill_create: "config.keyHelp.skillCreate",+ // 含义需补充(「启用」等不加)+ memory_forbidden_description: "config.keyHelp.memoryForbiddenDescription",symphony_dynamic_graph_enabled: "config.keyHelp.symphonyDynamicGraphEnabled",skill_retrieval_build_root_categories: "config.keyHelp.skillRetrievalBuildRootCategories",+ skill_retrieval_build_max_depth: "config.keyHelp.skillRetrievalBuildMaxDepth",+ skill_retrieval_build_max_workers: "config.keyHelp.skillRetrievalBuildMaxWorkers",+ skill_retrieval_build_max_retries: "config.keyHelp.skillRetrievalBuildMaxRetries",+ skill_retrieval_build_total_timeout_seconds: "config.keyHelp.skillRetrievalBuildTotalTimeout",+ skill_retrieval_build_classification_batch_limit: "config.keyHelp.skillRetrievalBuildClassificationBatchLimit",+ skill_retrieval_retrieve_max_exposure_depth: "config.keyHelp.skillRetrievalMaxExposureDepth",+ proactive_recommendation_max_recommend_per_day: "config.keyHelp.proactiveMaxPerDay",+ proactive_recommendation_max_rounds_per_tick: "config.keyHelp.proactiveMaxRounds",+ // Agent / Team 易歧义项(名称 / 模型 / 显示名称不加)+ skills: "config.keyHelp.agentSkills",+ lifecycle: "config.keyHelp.teamLifecycle",+ teammate_mode: "config.keyHelp.teamTeammateMode",+ spawn_mode: "config.keyHelp.teamSpawnMode",+ enable_permissions: "config.keyHelp.teamEnablePermissions",+ member_name: "config.keyHelp.teamMemberName",+ persona: "config.keyHelp.teamPersona",+ prompt_hint: "config.keyHelp.teamPromptHint",+ agent_key: "config.keyHelp.teamAgentKey",};/** 组内字段排序优先级,数字越小越靠前 */@@ -803,8 +838,17 @@ function getKeyDisplayLabel(key: string, t: (key: string) => string): string {return m ? m[2] : (getBooleanKeyLabel(key, t) ?? key);}+function resolveKeyHelpI18nKey(key: string): string | undefined {+ if (KEY_LABEL_HINT_I18N[key]) return KEY_LABEL_HINT_I18N[key];+ const m = key.match(/^(video|audio|vision)_(.+)$/);+ if (!m) return undefined;+ const suffix = m[2];+ if (suffix === "provider") return KEY_LABEL_HINT_I18N.model_provider ?? KEY_LABEL_HINT_I18N.provider;+ return KEY_LABEL_HINT_I18N[suffix];+}+function getKeyLabelHintText(key: string, t: (key: string) => string): string {- const hintKey = KEY_LABEL_HINT_I18N[key];+ const hintKey = resolveKeyHelpI18nKey(key);return hintKey ? t(hintKey) : "";}@@ -900,13 +944,12 @@ function GroupSection({<tbody>{group.keys.map(([key, value]) => (<tr key={key} className="border-t border-border first:border-t-0 even:bg-secondary/10 hover:bg-secondary/25 ">- <td className="px-4 py-2.5 align-middle text-xs text-text-muted w-[32%]" title={key}>- <div className="mono">{getKeyDisplayLabel(key, t)}</div>- {getKeyLabelHintText(key, t) ? (- <div className="mt-1 text-[11px] leading-4 text-text-muted">- {getKeyLabelHintText(key, t)}- </div>- ) : null}+ <td className="px-4 py-2.5 align-middle text-xs text-text-muted w-[32%]">+ <ConfigFieldHintLabel+ mono+ label={getKeyDisplayLabel(key, t)}+ help={getKeyLabelHintText(key, t) || undefined}+ />{PROACTIVE_INT_SPECS[key] ? (() => {const e = validateProactiveInt(key, draftValues[key] ?? "", t);return e ? (@@ -2207,7 +2250,15 @@ function MultiModelSection({{(["model_name", "alias", "api_base", "api_key", "model_provider", "reasoning_level"] as const).map((field) => (<div key={field} className="flex items-center gap-2 text-xs"><label className="w-28 text-text-muted shrink-0">- {field}{["api_key", "api_base", "model_name", "model_provider"].includes(field) && !(field === "api_key" && modelIsOpenAIAccount) && <span className="text-danger ml-0.5">*</span>}+ <ConfigFieldHintLabel+ label={+ <>+ {field}+ {["api_key", "api_base", "model_name", "model_provider"].includes(field) && !(field === "api_key" && modelIsOpenAIAccount) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "model_provider" ? (<select@@ -2285,7 +2336,15 @@ function MultiModelSection({{(["model_name", "alias", "api_base", "api_key", "model_provider", "reasoning_level"] as const).map((field) => (<div key={field} className="flex items-center gap-2 text-xs"><label className="w-28 text-text-muted shrink-0">- {field}{["api_key", "api_base", "model_name", "model_provider"].includes(field) && !(field === "api_key" && newModelIsOpenAIAccount) && <span className="text-danger ml-0.5">*</span>}+ <ConfigFieldHintLabel+ label={+ <>+ {field}+ {["api_key", "api_base", "model_name", "model_provider"].includes(field) && !(field === "api_key" && newModelIsOpenAIAccount) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "model_provider" ? (<select@@ -2585,9 +2644,16 @@ function MultiAgentSection({</div>{agentFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getAgentFieldLabel(field)}- {AGENT_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getAgentFieldLabel(field)}+ {AGENT_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "skills" ? (<MultiSelectDropdown@@ -2676,9 +2742,16 @@ function MultiAgentSection({</div>{agentFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getAgentFieldLabel(field)}- {AGENT_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getAgentFieldLabel(field)}+ {AGENT_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "skills" ? (<MultiSelectDropdown@@ -2948,9 +3021,16 @@ function TeamItemSection({<div className="space-y-2">{teamStringFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getTeamFieldLabel(field)}- {TEAM_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getTeamFieldLabel(field)}+ {TEAM_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "lifecycle" ? (<select@@ -2990,14 +3070,17 @@ function TeamItemSection({))}<div className="flex items-center gap-2 text-xs"><label className="w-28 text-text-muted shrink-0">- {t("config.keys.teamEnablePermissions")}+ <ConfigFieldHintLabel+ label={t("config.keys.teamEnablePermissions")}+ help={t("config.keyHelp.teamEnablePermissions")}+ /></label><buttontype="button"role="switch"aria-checked={team.enable_permissions}onClick={updateTeamPermissions}- title={t("config.keys.teamEnablePermissions")}+ title={t("config.keyHelp.teamEnablePermissions")}className={`relative inline-flex h-5 w-9 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent focus:outline-none ${team.enable_permissions ? "bg-[var(--color-toggle-enabled)]" : "bg-[var(--color-toggle-disabled)]"}`}>@@ -3025,9 +3108,16 @@ function TeamItemSection({<div className="border-t border-border px-3 py-2 space-y-2">{leaderFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getLeaderFieldLabel(field)}- {LEADER_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getLeaderFieldLabel(field)}+ {LEADER_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "agent_key" ? (<select@@ -3083,9 +3173,16 @@ function TeamItemSection({<div className="border-t border-border px-3 py-2 space-y-2">{teammateFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getLeaderFieldLabel(field)}- {LEADER_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getLeaderFieldLabel(field)}+ {LEADER_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "agent_key" ? (<select@@ -3163,9 +3260,16 @@ function TeamItemSection({<div className="border-t border-border px-3 py-2 space-y-2">{memberFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getMemberFieldLabel(field)}- {MEMBER_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getMemberFieldLabel(field)}+ {MEMBER_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "agent_key" ? (<select@@ -3210,9 +3314,16 @@ function TeamItemSection({<div className="rounded border border-accent/40 bg-accent/5 p-2 space-y-2">{memberFields.map((field) => (<div key={field} className="flex items-center gap-2 text-xs">- <label className="w-28 text-text-muted shrink-0 flex items-center gap-0.5">- {getMemberFieldLabel(field)}- {MEMBER_REQUIRED_FIELDS.has(field) && <span className="text-danger">*</span>}+ <label className="w-28 text-text-muted shrink-0">+ <ConfigFieldHintLabel+ label={+ <>+ {getMemberFieldLabel(field)}+ {MEMBER_REQUIRED_FIELDS.has(field) && <span className="text-danger ml-0.5">*</span>}+ </>+ }+ help={getKeyLabelHintText(field, t) || undefined}+ /></label>{field === "agent_key" ? (<selectdiff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.jsonindex 4d3d6bfd73..eebdcff051 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/en.json@@ -830,9 +830,46 @@"teamLeaderPersona": "Genius project management expert, skilled at task decomposition and team coordination"},"keyHelp": {- "skillCreate": "Install `skill-creator` and `teamskill-creator` before enabling",+ "apiBase": "Base URL of the model API. Must start with http:// or https://, e.g. https://api.openai.com/v1 (usually without a chat-specific path).",+ "apiKey": "Auth key for this model service. For local unauthenticated servers, any placeholder (e.g. sk-1234) is fine. Not needed after OpenAI account OAuth.",+ "model": "Provider model ID/name, e.g. gpt-4o or qwen-plus. Must be compatible with the selected provider.",+ "modelName": "Provider model ID/name, e.g. gpt-4o or qwen-plus. The same name can have multiple entries with different providers/endpoints.",+ "modelProvider": "Provider/protocol type that determines request format and auth (e.g. OpenAI-compatible, DashScope).",+ "alias": "Optional display alias to distinguish multiple entries with the same model name. Leave empty to show the model name only.",+ "reasoningLevel": "Reasoning intensity. Leave empty for the provider default. Only applies to models that support reasoning/thinking.",+ "isDefault": "When multiple entries share the same model name, mark this one as the group default.",+ "embedApiBase": "Base URL of the embedding API. Must start with http:// or https://.",+ "embedApiKey": "Auth key for the embedding service.",+ "embedModel": "Embedding model name used for memory retrieval and semantic search.",+ "jinaApiKey": "Jina AI key for web reading/search-related features.",+ "bochaApiKey": "Bocha Search API key for web search.",+ "perplexityApiKey": "Perplexity API key for web Q&A/search.",+ "serperApiKey": "Serper (Google Search API) key for web search.",+ "githubToken": "GitHub personal access token for repository or GitHub-related features.",+ "freeSearchDdg": "Enable free DuckDuckGo search (including DDG via Jina). Disable to turn off this source.",+ "freeSearchBing": "Enable free Bing search. Disable to stop using Bing.",+ "evolutionAutoScan": "Automatically detect signals that a skill can be evolved and suggest creating/updating skills.",+ "skillCreate": "Install `skill-creator` and `teamskill-creator` before enabling automatic skill-creation suggestions.",+ "memoryForbiddenDescription": "Describe sensitive types or rules that must not be written to memory, e.g. passwords, ID numbers, secrets.","symphonyDynamicGraphEnabled": "When disabled, planning uses only the static graph. Existing runtime data is retained.",- "skillRetrievalBuildRootCategories": "Edit YAML/JSON containing tree_root_categories or root_categories directly. The page shows the default taxonomy as a reference; saving writes the config content itself, not an external file path."+ "skillRetrievalBuildRootCategories": "Edit YAML/JSON containing tree_root_categories or root_categories directly. The page shows the default taxonomy as a reference; saving writes the config content itself, not an external file path.",+ "skillRetrievalBuildMaxDepth": "Maximum depth of the skill taxonomy tree. Deeper trees take longer to build.",+ "skillRetrievalBuildMaxWorkers": "Number of concurrent workers when building the skill tree.",+ "skillRetrievalBuildMaxRetries": "Max retries after a failed build request.",+ "skillRetrievalBuildTotalTimeout": "Total timeout for one full build (seconds). 0 means no limit.",+ "skillRetrievalBuildClassificationBatchLimit": "Max skills sent to the model in one classification batch.",+ "skillRetrievalMaxExposureDepth": "Max depth of the skill tree disclosed to the model in one retrieval.",+ "proactiveMaxPerDay": "Max proactive recommendations per user per day to avoid excessive interruption.",+ "proactiveMaxRounds": "Max recent dialogue rounds read on each check to infer recommendation context.",+ "agentSkills": "Skills pre-attached to this Agent. If empty, skills are retrieved/invoked on demand.",+ "teamLifecycle": "persistent: keep team state across sessions; temporary: may be recycled after the task.",+ "teamTeammateMode": "Collaboration mode: build_mode or plan_mode.",+ "teamSpawnMode": "How the team starts and spawns members.",+ "teamEnablePermissions": "Whether tool safety guardrails (permissions) apply to this Team.",+ "teamMemberName": "Internal member ID: must start with a lowercase letter, then lowercase letters, digits, or hyphens.",+ "teamPersona": "Role persona and responsibilities; shapes behavior and division of labor.",+ "teamPromptHint": "Extra prompt fragment injected into this member's system prompt.",+ "teamAgentKey": "Name of an existing Agent from Multi-Agent Configuration."},"hideValue": "Hide value","showValue": "Show value",@@ -1002,10 +1039,24 @@"invalidValue": "Non-standard value; choosing a policy will rewrite it. Current: {{raw}}","addTitle": "Add tool rule","toolPlaceholder": "e.g. mcp_exec_command",+ "toolGenericHelp": "Apply the selected policy (allow / ask / deny) to calls of this tool.","duplicateTool": "Tool already exists: {{tool}}","add": "Add","loadFailed": "Failed to load tool permissions",- "saveFailed": "Save failed"+ "saveFailed": "Save failed",+ "toolHelp": {+ "bash": "Run a shell command in the workspace and return its output (primary shell tool).",+ "mcp_exec_command": "Run a cross-platform command in the project workspace (supports background, timeout, and output truncation).",+ "create_terminal": "Create a terminal via ACP/IDE and run a command.",+ "write_file": "Write or overwrite file contents; existing files usually need a prior read.",+ "write": "Permission alias for write-style tools (often maps to write_file).",+ "edit_file": "Exact string replace on an already-read file (diff edit).",+ "search_replace": "Permission alias for edit-style tools (often maps to edit_file).",+ "read_file": "Read file contents (text, images, PDF, notebooks, etc.).",+ "read": "Permission alias for read-style tools (often maps to read_file).",+ "acp_chat": "Send a message to an external ACP agent process from config.",+ "grep": "Search for matching content in workspace files."+ }},"proactive": {"title": "Proactive Recommendation",diff --git a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.jsonindex b200770ac9..0df191e263 100644--- a/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json+++ b/jiuwenswarm/channels/web/frontend/src/i18n/locales/zh.json@@ -830,9 +830,46 @@"teamLeaderPersona": "天才项目管理专家,擅长任务分解和团队协调"},"keyHelp": {- "skillCreate": "建议先安装 `skill-creator` 和 `teamskill-creator`,再开启",+ "apiBase": "模型服务的 API 基础地址,须以 http:// 或 https:// 开头,例如 https://api.openai.com/v1(一般不要带具体聊天路径)。",+ "apiKey": "调用该模型服务的鉴权密钥。本地无鉴权服务可填任意占位值(如 sk-1234);OpenAI 账号 OAuth 登录后无需填写。",+ "model": "提供商侧的模型 ID/名称,例如 gpt-4o、qwen-plus;须与所选供应商兼容。",+ "modelName": "提供商侧的模型 ID/名称,例如 gpt-4o、qwen-plus;同一名称可配置多条不同供应商/地址的入口。",+ "modelProvider": "模型协议/供应商类型,决定请求格式与鉴权方式(如 OpenAI 兼容协议、DashScope 等)。",+ "alias": "可选显示别名,便于区分同名模型的多条配置;留空则界面仅显示模型名。",+ "reasoningLevel": "推理强度等级。留空使用提供商默认;仅对支持 reasoning/thinking 的模型生效。",+ "isDefault": "当存在多条同名模型配置时,将该条设为组内默认入口。",+ "embedApiBase": "Embedding(向量化)服务的 API 基础地址,须以 http:// 或 https:// 开头。",+ "embedApiKey": "Embedding 服务的鉴权密钥。",+ "embedModel": "Embedding 模型名称,用于记忆检索、语义搜索等向量化能力。",+ "jinaApiKey": "Jina AI 密钥,用于网页阅读/搜索等相关能力。",+ "bochaApiKey": "博查搜索 API Key,用于联网搜索。",+ "perplexityApiKey": "Perplexity API Key,用于联网问答/搜索。",+ "serperApiKey": "Serper(Google Search API)密钥,用于联网搜索。",+ "githubToken": "GitHub Personal Access Token,用于访问仓库或 GitHub 相关能力。",+ "freeSearchDdg": "启用 DuckDuckGo 免费搜索(含经 Jina 转发的 DDG)。关闭后相关搜索源不可用。",+ "freeSearchBing": "启用 Bing 免费搜索源。关闭后不再走 Bing。",+ "evolutionAutoScan": "自动检测对话中可演进为技能的信号,并提示创建/更新技能。",+ "skillCreate": "建议先安装 `skill-creator` 和 `teamskill-creator`,再开启自动建议创建新技能。",+ "memoryForbiddenDescription": "描述禁止写入记忆的敏感信息类型或规则,例如密码、证件号、密钥等。","symphonyDynamicGraphEnabled": "关闭后仅使用静态图谱,已有运行时数据会保留。",- "skillRetrievalBuildRootCategories": "直接编辑包含 tree_root_categories 或 root_categories 的 YAML/JSON;页面会展示默认分层供参考。保存后会写入配置内容本身,而不是外部文件路径。"+ "skillRetrievalBuildRootCategories": "直接编辑包含 tree_root_categories 或 root_categories 的 YAML/JSON;页面会展示默认分层供参考。保存后会写入配置内容本身,而不是外部文件路径。",+ "skillRetrievalBuildMaxDepth": "技能分类树的最大深度,过深会增加构建耗时。",+ "skillRetrievalBuildMaxWorkers": "构建技能树时的并发工作线程数。",+ "skillRetrievalBuildMaxRetries": "构建过程中单次请求失败后的最大重试次数。",+ "skillRetrievalBuildTotalTimeout": "整次构建的总超时时间(秒);0 表示不限制。",+ "skillRetrievalBuildClassificationBatchLimit": "单批送入模型做分类的技能数量上限。",+ "skillRetrievalMaxExposureDepth": "单次检索向模型披露技能树的最大深度。",+ "proactiveMaxPerDay": "每个用户每日主动推荐次数上限,防止打扰过多。",+ "proactiveMaxRounds": "每次检查时最多读取的近期对话轮数,用于推断推荐上下文。",+ "agentSkills": "预挂载到该 Agent 的技能列表;未选则运行时按需检索/调用。",+ "teamLifecycle": "persistent:跨会话保持团队状态;temporary:任务结束后可回收。",+ "teamTeammateMode": "成员协作模式:构建(build_mode)或计划(plan_mode)。",+ "teamSpawnMode": "团队启动/拉起成员的方式。",+ "teamEnablePermissions": "是否对该 Team 启用工具安全护栏(permissions)。",+ "teamMemberName": "成员内部 ID:须以小写字母开头,仅含小写字母、数字或连字符。",+ "teamPersona": "角色人设与职责描述,影响该成员的行为风格与分工。",+ "teamPromptHint": "额外提示词片段,会注入该成员的系统提示中。",+ "teamAgentKey": "绑定到「多 Agent 配置」中已有 Agent 的名称(name)。"},"hideValue": "隐藏明文","showValue": "显示明文",@@ -1002,10 +1039,24 @@"invalidValue": "配置值非标准格式,选择策略后将写回为合法值。当前:{{raw}}","addTitle": "添加工具规则","toolPlaceholder": "例如 mcp_exec_command",+ "toolGenericHelp": "对该工具调用应用所选策略(允许 / 询问 / 拒绝)。","duplicateTool": "工具已存在:{{tool}}","add": "添加","loadFailed": "加载工具权限失败",- "saveFailed": "保存失败"+ "saveFailed": "保存失败",+ "toolHelp": {+ "bash": "在工作区执行 Shell 命令并返回输出(主 Shell 工具)。",+ "mcp_exec_command": "在项目工作区内执行跨平台命令(支持后台、超时与输出裁剪)。",+ "create_terminal": "通过 ACP/IDE 创建终端并执行命令。",+ "write_file": "写入或覆盖文件内容;已存在文件通常需先读取。",+ "write": "文件写入类工具的权限别名(常对应 write_file)。",+ "edit_file": "对已读文件做精确字符串替换(差量编辑)。",+ "search_replace": "文件编辑类工具的权限别名(常对应 edit_file)。",+ "read_file": "读取文件内容(文本、图片、PDF、Notebook 等)。",+ "read": "文件读取类工具的权限别名(常对应 read_file)。",+ "acp_chat": "向配置中的外部 ACP Agent 子进程发送消息。",+ "grep": "在工作区文件中搜索匹配内容。"+ }},"proactive": {"title": "主动推荐",