refactor(copy): 术语统一——收录版本、模型服务、智能体等(DEAI-2)
- 版本目标 → 收录版本(前后端用户可见字符串、能力描述、给模型的提示) - Agent 上游 / 上游 → 模型服务;界面上的 Agent / Agent 会话 → 智能体 / 智能体会话 - 身份歧义 / 识别有歧义 / 无法确定作品 → 没识别出作品;待识别(池) → 未识别 - 建档 → 加入媒体库;资产 → 文件;库根 → 媒体库目录;纳管 → 本工具 / 外部任务; 哨兵 → 标记文件 / 检查目录;站点快照 → 抓取;Feed / RSS 订阅 / 来源健康 → RSS - 代码标识符、API 字段名、迁移文件不改;glossary.md 同步;smoke 选择器跟随 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
d282212a6b
commit
4480fc346d
212 files changed
+741
-715
No files matched your search
@@ -43,7 +43,7 @@ const LEVEL: Record<HealthLevel, { label: string; tone: StatusTone }> = {
|
||||
const KIND_LABEL: Record<string, string> = {
|
||||
api: "API",
|
||||
worker: "Worker(io)",
|
||||
"worker:agent": "Worker(Agent)",
|
||||
"worker:agent": "Worker(智能体)",
|
||||
all: "单进程(all)",
|
||||
};
|
||||
|
||||
@@ -51,13 +51,13 @@ const KIND_LABEL: Record<string, string> = {
|
||||
const KIND_NAME: Record<string, string> = {
|
||||
api: "API",
|
||||
worker: "io worker",
|
||||
"worker:agent": "Agent worker",
|
||||
"worker:agent": "智能体 worker",
|
||||
all: "单进程",
|
||||
};
|
||||
|
||||
const MOUNT_REASON: Record<string, string> = {
|
||||
root_missing: "目录不存在",
|
||||
sentinel_missing: "哨兵文件缺失",
|
||||
sentinel_missing: "目录不可访问或未挂载",
|
||||
permission_denied: "没有权限",
|
||||
error: "检查出错",
|
||||
timeout: "检查超时",
|
||||
@@ -227,7 +227,7 @@ function Processes({ d }: { d: SystemHealth }) {
|
||||
<span className="text-muted-foreground">—</span>
|
||||
) : (
|
||||
<span className="whitespace-nowrap tabular-nums">
|
||||
io {p.concurrency.io ?? 0} · Agent {p.concurrency.agent ?? 0}
|
||||
io {p.concurrency.io ?? 0} · 智能体 {p.concurrency.agent ?? 0}
|
||||
</span>
|
||||
),
|
||||
},
|
||||
@@ -371,7 +371,7 @@ function History() {
|
||||
|
||||
function Disks({ d }: { d: SystemHealth }) {
|
||||
const t = d.diskThresholds;
|
||||
const scope = { data_dir: "数据目录", library_root: "库根", download_dir: "下载目录" } as const;
|
||||
const scope = { data_dir: "数据目录", library_root: "媒体库目录", download_dir: "下载目录" } as const;
|
||||
return (
|
||||
<Card title="磁盘" icon={HardDrive} level={worst(d.disks.map((x) => x.level))}>
|
||||
<p className="mb-3 text-meta text-muted-foreground">
|
||||
@@ -428,7 +428,7 @@ function Mounts({ d }: { d: SystemHealth }) {
|
||||
return (
|
||||
<Card title="挂载根" icon={HardDrive} level={d.mounts.length ? (bad ? "critical" : "ok") : undefined}>
|
||||
{d.mounts.length === 0 ? (
|
||||
<p className="text-caption text-muted-foreground">没有启用的库根或下载目录映射。</p>
|
||||
<p className="text-caption text-muted-foreground">没有启用的媒体库目录或下载目录映射。</p>
|
||||
) : (
|
||||
<ul className="divide-y divide-border/60">
|
||||
{d.mounts.map((m) => (
|
||||
@@ -436,7 +436,7 @@ function Mounts({ d }: { d: SystemHealth }) {
|
||||
<div className="min-w-0 flex-1">
|
||||
<p className="truncate">
|
||||
<span className="mr-1.5 text-meta text-muted-foreground">
|
||||
{m.kind === "library_root" ? "库根" : "下载目录"}
|
||||
{m.kind === "library_root" ? "媒体库目录" : "下载目录"}
|
||||
</span>
|
||||
{m.name}
|
||||
</p>
|
||||
|
||||
Reference in new issue
Block a user