sync snapshot from LAN repo (source codex/merge-tjlnew-classic-retrieval-20261019 @ ded012d9)

This commit is contained in:
gozeros committed 2026-11-05 11:04:44 +08:00
1 parent ea9dcff9c0
commit c753e6c9b5
818 files changed
+14037 -108991

No files matched your search

@@ -9,7 +9,6 @@ import {
GitBranch,
Globe,
Landmark,
Layers,
LoaderCircle,
MessageSquareText,
Network,
@@ -35,7 +34,7 @@ import {
MyProjectThreadIcon,
} from "@/components/workspace/my-project-thread-indicator";
import { useAgent, useAgents } from "@/core/agents";
import { getAccountDisplayName, getStoredAuth } from "@/core/auth";
import { getAccountDisplayName } from "@/core/auth";
import {
type ScheduledTask,
useScheduledTaskActions,
@@ -68,13 +67,12 @@ import {
} from "@/strategy-selection/recent-projects";
import OfficialWebAppsPage from "@/pages/OfficialWebAppsPage";
import GongwenWorkbench from "@/pages/deep-research/GongwenWorkbench";
import { ChatRuntime } from "@/components/workspace/chat-runtime";
import { ChatRuntime } from "@/pages/WorkspaceRoutes";
import MultiAgentTasksPage from "./official-multi-agent-tasks/MultiAgentTasksPage";
import TaskEditPage from "./official-multi-agent-tasks/TaskEditPage";
import TaskAnalysisPage from "./official-task-analysis/TaskAnalysisPage";
import TaskAnalysisDetailPage from "./official-task-analysis/TaskAnalysisDetailPage";
import HtmlTemplatesPage from "./HtmlTemplatesPage";
import "./official-deerflow-entry.css";
@@ -90,7 +88,6 @@ type OfficialPage =
| "multi-agent-edit"
| "task-analysis"
| "task-analysis-detail"
| "html-templates"
| "settings";
function pageFromPath(pathname: string): OfficialPage {
@@ -108,8 +105,6 @@ function pageFromPath(pathname: string): OfficialPage {
return "multi-agent-edit";
}
if (path.startsWith("/workspace/multi-agent-tasks")) return "multi-agent-tasks";
// 模板管理挂在任务分析系列下,必须先于 detail 的 /:id 正则判断,否则会被当成任务详情页。
if (path.startsWith("/workspace/task-analysis/html-templates")) return "html-templates";
if (/^\/workspace\/task-analysis\/[^/]+/.test(path)) return "task-analysis-detail";
if (path.startsWith("/workspace/task-analysis")) return "task-analysis";
if (path.startsWith("/workspace/settings")) return "settings";
@@ -812,10 +807,7 @@ export default function OfficialDeerFlowEntry() {
{ icon: CalendarClock, label: "定时任务", path: `${OFFICIAL_DEERFLOW_ROUTE_PREFIX}/workspace/scheduled-tasks`, pages: ["scheduled"] },
{ icon: Network, label: "多智能体定时任务", path: `${OFFICIAL_DEERFLOW_ROUTE_PREFIX}/workspace/multi-agent-tasks`, pages: ["multi-agent-tasks", "multi-agent-edit"] },
{ icon: GitBranch, label: "任务分析定时", path: `${OFFICIAL_DEERFLOW_ROUTE_PREFIX}/workspace/task-analysis`, pages: ["task-analysis", "task-analysis-detail"] },
// HTML 模板管理:任务分析系列的子页(/workspace/task-analysis/html-templates),仅管理员可见。
{ icon: Layers, label: "模板管理", path: `${OFFICIAL_DEERFLOW_ROUTE_PREFIX}/workspace/task-analysis/html-templates`, pages: ["html-templates"] },
] as const;
const isAdminUser = getStoredAuth()?.system_role === "admin";
return (
<main className={`official-deerflow${sidebarCollapsed ? " sidebar-collapsed" : ""}`}>
@@ -832,9 +824,7 @@ export default function OfficialDeerFlowEntry() {
</button>
</div>
<nav aria-label="官方页面导航" className="official-nav">
{nav
.filter((item) => item.label !== "模板管理" || isAdminUser)
.map((item) => (
{nav.map((item) => (
<OfficialNavItem
active={item.pages.some((candidate) => candidate === page)}
icon={item.icon}
@@ -1008,7 +998,6 @@ export default function OfficialDeerFlowEntry() {
{page === "task-analysis-detail" && (
<TaskAnalysisDetailPage routeTaskId={taskAnalysisId} />
)}
{page === "html-templates" && <HtmlTemplatesPage />}
{page === "settings" && <SettingsPage />}
</div>
<Toaster position="top-center" />