Merge branch 'deai2'

Co-Authored-By: Claude Fable 5.1 <[email protected]>

# Conflicts:
#	apps/server/src/modules/acquisition-organize/services/organize.ts
#	apps/web/app/routes/console/sites.$siteId.tsx
This commit is contained in:
root committed 2026-09-29 21:26:16 +08:00
commit 12bc4664b6
247 files changed
+2658 -2148

No files matched your search

+19 -9
View File
@@ -790,6 +790,7 @@ export const SettingsSectionId = z.enum([
"metadata",
"agent",
"api-keys",
"interface",
"account",
]);
export type SettingsSectionId = z.infer<typeof SettingsSectionId>;
@@ -812,14 +813,14 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
{
id: "automation",
label: "自动化",
description: "总开关、缓存水位、每日预算、保留天数",
description: "总开关、下载盘、每日预算、保留天数",
legacyTabs: [{ tab: "automation" }, { tab: "storage", anchor: "cache" }],
anchors: [
{ id: "switches", label: "开关" },
{ id: "cache", label: "缓存水位" },
{ id: "cache", label: "下载盘" },
{ id: "budget", label: "每日预算" },
{ id: "retention", label: "保留" },
{ id: "storage", label: "存储与保留" },
{ id: "advanced", label: "高级" },
],
fields: [
"automation.enabled",
@@ -874,10 +875,10 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
{
id: "library",
label: "媒体库与目录",
description: "库根、哨兵状态、默认整理方式、命名模板",
description: "媒体库目录、默认整理方式、命名模板",
legacyTabs: [{ tab: "library-roots", anchor: "roots" }],
anchors: [
{ id: "roots", label: "库根" },
{ id: "roots", label: "媒体库目录" },
{ id: "organize", label: "整理方式" },
{ id: "naming", label: "命名模板" },
],
@@ -929,11 +930,11 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
},
{
id: "agent",
label: "Agent",
description: "Agent 上游、运行预算、自动调查、网页搜索",
label: "智能体",
description: "模型服务、运行预算、自动调查、网页搜索",
legacyTabs: [{ tab: "pi" }],
anchors: [
{ id: "upstream", label: "上游" },
{ id: "upstream", label: "模型服务" },
{ id: "runtime", label: "上下文与子会话" },
{ id: "budget", label: "预算" },
{ id: "investigate", label: "自动调查" },
@@ -979,6 +980,15 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
fields: [],
resources: ["api-keys"],
},
{
id: "interface",
label: "界面",
description: "只影响当前浏览器",
legacyTabs: [],
anchors: [{ id: "display", label: "显示" }],
fields: [],
resources: ["ui-preferences"],
},
{
id: "account",
label: "账户与安全",
@@ -987,7 +997,7 @@ export const SETTINGS_SECTIONS: readonly SettingsSectionDef[] = [
anchors: [
{ id: "password", label: "密码" },
{ id: "totp", label: "二次验证" },
{ id: "passkeys", label: "Passkey" },
{ id: "passkeys", label: "通行密钥" },
{ id: "session", label: "会话" },
{ id: "shortcuts", label: "快捷键" },
],