Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
refactor(agents): delete the unreachable /agents/new/ai start page (MUL-9005) (#10343)
Jiayuan Zhang3d01b581e8dc
diff --git a/apps/desktop/src/renderer/src/routes.tsx b/apps/desktop/src/renderer/src/routes.tsxindex 5618959866..eaefe1378f 100644--- a/apps/desktop/src/renderer/src/routes.tsx+++ b/apps/desktop/src/renderer/src/routes.tsx@@ -21,10 +21,7 @@ import { MyIssuesPage } from "@multica/views/my-issues";import { SkillsPage } from "@multica/views/skills";import { DesktopRuntimesPage } from "./components/desktop-runtimes-page";import { DesktopAgentsPage } from "./components/desktop-agents-page";-import {- AiCreateAgentPage,- ManualCreateAgentPage,-} from "@multica/views/agents";+import { ManualCreateAgentPage } from "@multica/views/agents";import { DesktopChooseRuntimePage } from "./components/desktop-choose-runtime-page";import { AgentCreatedPage } from "./pages/agent-created-page";import { SquadsPage, SquadDetailPage as SquadDetailPageView } from "@multica/views/squads/components";@@ -234,11 +231,6 @@ export const appRoutes: RouteObject[] = [element: <ManualCreateAgentPage />,handle: { title: "Create Agent" },},- {- path: "agents/new/ai",- element: <AiCreateAgentPage />,- handle: { title: "Create Agent" },- },{path: "agents/new/ai/:sessionId",element: <AiBuilderSessionPage />,diff --git a/apps/web/app/[workspaceSlug]/(dashboard)/agents/new/ai/page.tsx b/apps/web/app/[workspaceSlug]/(dashboard)/agents/new/ai/page.tsxdeleted file mode 100644index 5fe24210ae..0000000000--- a/apps/web/app/[workspaceSlug]/(dashboard)/agents/new/ai/page.tsx+++ /dev/null@@ -1,5 +0,0 @@-import { AiCreateAgentPage } from "@multica/views/agents/ai-create-agent-page";--export default function NewAgentAiRoute() {- return <AiCreateAgentPage />;-}diff --git a/packages/core/paths/consistency.test.ts b/packages/core/paths/consistency.test.tsindex fc804adc69..87fc70a92f 100644--- a/packages/core/paths/consistency.test.ts+++ b/packages/core/paths/consistency.test.ts@@ -21,7 +21,6 @@ describe("paths.workspace() shape", () => {["agents", "agents"],["newAgent", "agents/new"],["newAgentManual", "agents/new/manual"],- ["newAgentAi", "agents/new/ai"],["chat", "chat"],["squads", "squads"],["inbox", "inbox"],diff --git a/packages/core/paths/paths.test.ts b/packages/core/paths/paths.test.tsindex a1f9e3fbb2..289efd88f0 100644--- a/packages/core/paths/paths.test.ts+++ b/packages/core/paths/paths.test.ts@@ -14,7 +14,6 @@ describe("paths.workspace(slug)", () => {expect(ws.autopilotDetail("a1")).toBe("/acme/autopilots/a1");expect(ws.agents()).toBe("/acme/agents");expect(ws.newAgent()).toBe("/acme/agents/new");- expect(ws.newAgentAi()).toBe("/acme/agents/new/ai");expect(ws.newAgentAiSession("sess_1")).toBe("/acme/agents/new/ai/sess_1");expect(ws.newAgentDone("agent_1")).toBe("/acme/agents/new/done/agent_1");expect(ws.memberDetail("u1")).toBe("/acme/members/u1");diff --git a/packages/core/paths/paths.ts b/packages/core/paths/paths.tsindex c54560aa9c..991cdcbb28 100644--- a/packages/core/paths/paths.ts+++ b/packages/core/paths/paths.ts@@ -60,10 +60,9 @@ function workspaceScoped(slug: string) {// Step 3: the agent exists; offer its first uses.newAgentDone: (agentId: string) =>`${ws}/agents/new/done/${encode(agentId)}`,- newAgentAi: () => `${ws}/agents/new/ai`,// One creation conversation. It is a durable object, not a step of the- // route above: it survives leaving the studio and is resumed later, so it- // owns an address instead of being a query param on the "start one" screen.+ // routes above: it survives leaving the studio and is resumed later, so it+ // owns an address instead of being a query param on the screen that started it.newAgentAiSession: (sessionId: string) =>`${ws}/agents/new/ai/${encode(sessionId)}`,agentDetail: (id: string) => `${ws}/agents/${encode(id)}`,diff --git a/packages/views/agents/create/ai-create-agent-page.tsx b/packages/views/agents/create/ai-create-agent-page.tsxdeleted file mode 100644index 6904d0e0a2..0000000000--- a/packages/views/agents/create/ai-create-agent-page.tsx+++ /dev/null@@ -1,92 +0,0 @@-"use client";--import { useCallback, useState } from "react";-import { useQuery } from "@tanstack/react-query";-import { agentBuilderSessionListOptions } from "@multica/core/agents";-import { useWorkspaceId } from "@multica/core/hooks";-import { useWorkspacePaths } from "@multica/core/paths";-import { runtimeDisplayLabel } from "@multica/core/runtimes";-import type { RuntimeDevice } from "@multica/core/types";-import { useNavigation } from "../../navigation";-import { useT } from "../../i18n";-import { BuilderSetupPanel } from "./builder-setup-panel";-import { AgentCreateChip, AgentCreateShell } from "./create-shell";-import { createPathWithParams } from "./squad-param";--/**- * Starting a conversational agent creation: pick where it will run.- *- * This route is the ACTION — one screen, one job. The conversation it produces- * is a durable object and lives at its own address (ai-builder-session-page),- * because it is left and resumed rather than completed in one sitting. Both- * used to share this route, switched on a `?session=` param, which made the- * route render two unrelated screens and left the conversation — the thing- * with a lifetime — as a modifier on the thing without one.- *- * Entering a conversation REPLACES this entry. The runtime choice is consumed- * the moment the session exists — it is frozen onto the hidden carrier agent- * and cannot be revisited from here — so leaving it on the history stack would- * only offer to start a second conversation on the way back.- */-export function AiCreateAgentPage() {- const { t } = useT("agents");- const wsId = useWorkspaceId();- const paths = useWorkspacePaths();- const navigation = useNavigation();- const squadId = navigation.searchParams.get("squad");-- const builderSessions = useQuery(agentBuilderSessionListOptions(wsId));- const sessions = builderSessions.data ?? [];-- // The chip has to say something before a runtime is settled on.- const [runtimeLabel, setRuntimeLabel] = useState<string | null>(null);- const handleRuntimeLabel = useCallback(- (runtime: RuntimeDevice | null) =>- setRuntimeLabel(runtime ? runtimeDisplayLabel(runtime) : null),- [],- );-- const open = useCallback(- (sessionId: string, runtimeId: string | null) =>- navigation.replace(- createPathWithParams(paths.newAgentAiSession(sessionId), {- squad: squadId,- runtime: runtimeId,- }),- ),- [navigation, paths, squadId],- );-- return (- <AgentCreateShell- title={- squadId- ? t(($) => $.creation_studio.squad_title)- : t(($) => $.creation_studio.title)- }- step={t(($) => $.creation_studio.step_ai)}- onClose={() =>- navigation.push(squadId ? paths.squadDetail(squadId) : paths.agents())- }- chips={- <>- <AgentCreateChip>- {t(($) => $.creation_studio.modes.ai.title)}- </AgentCreateChip>- {runtimeLabel ? (- <AgentCreateChip>{runtimeLabel}</AgentCreateChip>- ) : null}- </>- }- >- <BuilderSetupPanel- sessions={sessions}- // Resuming carries no runtime seed: a listed conversation reports its- // own, which is the truthful answer after a runtime switch.- onResume={(sessionId) => open(sessionId, null)}- onStarted={(sessionId, runtimeId) => open(sessionId, runtimeId)}- onRuntimeLabel={handleRuntimeLabel}- />- </AgentCreateShell>- );-}diff --git a/packages/views/agents/create/builder-conversation.tsx b/packages/views/agents/create/builder-conversation.tsxindex 0e35315e75..b91bef4f52 100644--- a/packages/views/agents/create/builder-conversation.tsx+++ b/packages/views/agents/create/builder-conversation.tsx@@ -1,21 +1,8 @@"use client";-import type { ReactNode } from "react";-import { Loader2, MessageSquare, X } from "@multica/ui/icons";-import {- applyDraftModelChange,- applyDraftRuntimeChange,- stripBuilderDraft,- type AgentDraft,- type BuilderRestore,-} from "@multica/core/agents";-import { isRuntimeUsableForUser } from "@multica/core/runtimes";-import type {- ChatMessage,- MemberWithUser,- RuntimeDevice,-} from "@multica/core/types";-import { Button } from "@multica/ui/components/ui/button";+import { X } from "@multica/ui/icons";+import { stripBuilderDraft, type BuilderRestore } from "@multica/core/agents";+import type { ChatMessage } from "@multica/core/types";import { IconButton } from "@multica/ui/components/common/icon-button";import { cn } from "@multica/ui/lib/utils";import { ChatInput } from "../../chat/components/chat-input";@@ -25,113 +12,6 @@ import {ChatMessageSkeleton,} from "../../chat/components/chat-message-list";import { useT } from "../../i18n";-import { AppLink } from "../../navigation";-import { ModelDropdown } from "../components/model-dropdown";-import { RuntimePicker } from "../components/runtime-picker";--/**- * Pre-conversation card: the builder runs on a real runtime, so the runtime and- * model have to be chosen before the first message — they are frozen onto the- * hidden carrier agent when the session is created.- */-export function BuilderSetup({- draft,- onChange,- runtimes,- runtimesLoading,- members,- currentUserId,- selectedRuntime,- starting,- error,- onStart,- connectRuntimeHref,- banner,-}: {- draft: AgentDraft;- onChange: (draft: AgentDraft) => void;- runtimes: RuntimeDevice[];- runtimesLoading: boolean;- members: MemberWithUser[];- currentUserId: string | null;- selectedRuntime: RuntimeDevice | null;- starting: boolean;- error: string | null;- onStart: () => void;- connectRuntimeHref: string;- /** Rendered above the card: the way back to an unfinished conversation, so- * this screen cannot silently start yet another one. */- banner?: ReactNode;-}) {- const { t } = useT("agents");- const hasOnline = runtimes.some(- (runtime) =>- runtime.status === "online" &&- isRuntimeUsableForUser(runtime, currentUserId),- );- return (- <main className="flex min-h-0 flex-1 items-center justify-center overflow-y-auto px-5 py-10">- <div className="w-full max-w-xl">- {banner}- <div className="rounded-xl border bg-card p-6 shadow-sm">- <span className="flex size-11 items-center justify-center rounded-lg bg-primary/10 text-primary">- <MessageSquare className="size-5" />- </span>- <h2 className="mt-5 text-title-lg font-semibold">- {t(($) => $.creation_studio.builder.setup_title)}- </h2>- <p className="mt-2 text-body leading-6 text-muted-foreground">- {t(($) => $.creation_studio.builder.setup_description)}- </p>- <div className="mt-6 space-y-4">- <RuntimePicker- runtimes={runtimes}- runtimesLoading={runtimesLoading}- members={members}- currentUserId={currentUserId}- selectedRuntimeId={draft.runtimeId}- onSelect={(runtimeId) => {- if (runtimeId !== draft.runtimeId) {- onChange(applyDraftRuntimeChange(draft, runtimeId));- }- }}- />- <ModelDropdown- runtimeId={selectedRuntime?.id ?? null}- runtimeOnline={selectedRuntime?.status === "online"}- value={draft.model}- onChange={(model) => onChange(applyDraftModelChange(draft, model))}- disabled={!selectedRuntime}- />- </div>- {error && (- <div role="alert" className="mt-4 text-body text-destructive">- {error}- </div>- )}- <div className="mt-6 flex justify-end">- {hasOnline ? (- <Button- onClick={onStart}- disabled={starting || selectedRuntime?.status !== "online"}- >- {starting && <Loader2 className="size-4 animate-spin" />}- {t(($) => $.creation_studio.builder.start)}- </Button>- ) : (- <Button- render={<AppLink href={connectRuntimeHref} />}- nativeButton={false}- >- {t(($) => $.creation_studio.builder.connect_runtime)}- </Button>- )}- </div>- </div>- </div>- </main>- );-}export function BuilderConversation({sessionId,diff --git a/packages/views/agents/create/builder-setup-panel.tsx b/packages/views/agents/create/builder-setup-panel.tsxdeleted file mode 100644index 2d0524ec49..0000000000--- a/packages/views/agents/create/builder-setup-panel.tsx+++ /dev/null@@ -1,75 +0,0 @@-"use client";--import { useEffect } from "react";-import { useWorkspacePaths } from "@multica/core/paths";-import type {- AgentBuilderSessionSummary,- RuntimeDevice,-} from "@multica/core/types";-import { BuilderSetup } from "./builder-conversation";-import { UnfinishedDraftsBanner } from "./unfinished-drafts";-import { useBuilderSession } from "./use-builder-session";-import { useCreateAgentForm } from "./use-create-agent-form";--/**- * The step before a conversation exists: choose where it will run.- *- * The runtime cannot be deferred — it is frozen onto the hidden carrier agent- * when the session is created, and it becomes the new agent's default runtime.- * This pane owns a throwaway form for exactly those two fields; the real draft- * belongs to the conversation and is created with it.- */-export function BuilderSetupPanel({- sessions,- onResume,- onStarted,- onRuntimeLabel,-}: {- /** Unfinished conversations, so this screen is not a dead end when some- * exist: the picker is the only way back to them from here. */- sessions: AgentBuilderSessionSummary[];- onResume: (sessionId: string) => void;- /** Hands the new conversation's id and runtime back so the route can open it. */- onStarted: (sessionId: string, runtimeId: string) => void;- onRuntimeLabel: (runtime: RuntimeDevice | null) => void;-}) {- const paths = useWorkspacePaths();- const form = useCreateAgentForm();- const { draft, setDraft, selectedRuntime } = form;-- const builder = useBuilderSession({- sessionId: "",- // Nothing is sent from this screen; the encoder is only reachable once a- // conversation exists.- encodeInput: (text) => text,- });-- useEffect(() => {- onRuntimeLabel(selectedRuntime);- }, [onRuntimeLabel, selectedRuntime]);-- const startConversation = async () => {- if (selectedRuntime?.status !== "online") return;- const startedId = await builder.start(selectedRuntime.id, draft.model);- if (startedId) onStarted(startedId, selectedRuntime.id);- };-- return (- <BuilderSetup- banner={- <UnfinishedDraftsBanner sessions={sessions} onResume={onResume} />- }- draft={draft}- onChange={setDraft}- runtimes={form.runtimes}- runtimesLoading={form.runtimesLoading}- members={form.members}- currentUserId={form.currentUserId}- selectedRuntime={selectedRuntime}- starting={builder.starting}- error={builder.error}- onStart={() => void startConversation()}- connectRuntimeHref={paths.runtimes()}- />- );-}diff --git a/packages/views/agents/create/index.ts b/packages/views/agents/create/index.tsindex 60412ca892..263af28948 100644--- a/packages/views/agents/create/index.ts+++ b/packages/views/agents/create/index.ts@@ -4,5 +4,4 @@export { ChooseRuntimePage } from "./choose-runtime-page";export { AgentCreatedPage } from "./agent-created-page";export { ManualCreateAgentPage } from "./manual-create-agent-page";-export { AiCreateAgentPage } from "./ai-create-agent-page";export { AiBuilderSessionPage } from "./ai-builder-session-page";diff --git a/packages/views/agents/create/use-builder-session.ts b/packages/views/agents/create/use-builder-session.tsindex 4fd4d966ef..e32235a536 100644--- a/packages/views/agents/create/use-builder-session.ts+++ b/packages/views/agents/create/use-builder-session.ts@@ -26,8 +26,8 @@ import { useT } from "../../i18n";const EMPTY_CHAT_MESSAGES: ChatMessage[] = [];/**- * Lifecycle of one AI-builder conversation: create the hidden carrier session,- * exchange messages on it, rebind its runtime, and destroy it on request.+ * Lifecycle of one AI-builder conversation: exchange messages on the hidden+ * carrier session, rebind its runtime, and destroy it on request.** The conversation is identified by `sessionId`, which the page reads off its* own URL. That is what makes it survive a refresh, a back/forward, and a@@ -42,7 +42,7 @@ const EMPTY_CHAT_MESSAGES: ChatMessage[] = [];* for the main chat window — which has never polled.*/export function useBuilderSession(options: {- /** The conversation to operate on; empty string before one is started. */+ /** The conversation to operate on. */sessionId: string;/** Encodes composer text into the builder wire format for the current draft. */encodeInput: (text: string) => string;@@ -58,7 +58,6 @@ export function useBuilderSession(options: {const invalidateDraftList = () =>qc.invalidateQueries({ queryKey: agentBuilderSessionKeys.list(wsId) });- const [starting, setStarting] = useState(false);const [closing, setClosing] = useState(false);const [switchingRuntime, setSwitchingRuntime] = useState(false);const [error, setError] = useState<string | null>(null);@@ -99,34 +98,6 @@ export function useBuilderSession(options: {messagesQuery.error instanceof ApiError &&messagesQuery.error.status === 404;- /** Creates the conversation. Returns its id so the caller can address it. */- const start = async (- runtimeId: string,- model: string,- ): Promise<string | null> => {- setStarting(true);- setError(null);- try {- const session = await api.createAgentBuilderSession({- runtime_id: runtimeId,- model: model.trim() || undefined,- });- if (!session.session_id) {- throw new Error(t(($) => $.creation_studio.builder.start_failed));- }- return session.session_id;- } catch (err) {- setError(- err instanceof Error- ? err.message- : t(($) => $.creation_studio.builder.start_failed),- );- return null;- } finally {- setStarting(false);- }- };-/*** Destroys the conversation. Returns false when the server refused, so the* caller can stay put and show the error instead of navigating away from a@@ -327,7 +298,6 @@ export function useBuilderSession(options: {messagesLoading: messagesQuery.isLoading,pendingTask: pendingQuery.data,pending,- starting,closing,switchingRuntime,error,@@ -339,7 +309,6 @@ export function useBuilderSession(options: {}handleDurableRestoreApplied();},- start,destroy,archiveAfterCreate,switchRuntime,diff --git a/packages/views/agents/index.ts b/packages/views/agents/index.tsindex 2d58cc8cdd..ab740a9ed2 100644--- a/packages/views/agents/index.ts+++ b/packages/views/agents/index.ts@@ -3,6 +3,5 @@ export {ChooseRuntimePage,AgentCreatedPage,ManualCreateAgentPage,- AiCreateAgentPage,AiBuilderSessionPage,} from "./create";diff --git a/packages/views/locales/en/agents.json b/packages/views/locales/en/agents.jsonindex bc662cf2c1..ec9d1b0195 100644--- a/packages/views/locales/en/agents.json+++ b/packages/views/locales/en/agents.json@@ -300,13 +300,8 @@"duplicate_title": "Duplicate {{name}}","step_ai": "Build through conversation","modes": {- "template": {- "title": "Use a template",- "description": "Start from curated instructions and skills, then adapt every detail to your workspace."- },"ai": {- "title": "Build with AI",- "description": "Create an editable configuration through conversation."+ "title": "Build with AI"}},"sections": {@@ -334,10 +329,6 @@}},"builder": {- "setup_title": "Choose a runtime for Agent Builder",- "setup_description": "This runtime powers setup and is the default for the new agent.",- "start": "Start conversation",- "connect_runtime": "Connect a runtime","draft_parse_failed": "This reply could not fill the form. Ask the assistant to generate the draft again, or fill it in manually.","start_failed": "Could not start Agent Builder.","send_failed": "Could not send your message.",diff --git a/packages/views/locales/es/agents.json b/packages/views/locales/es/agents.jsonindex 46a4175fce..18801e83ce 100644--- a/packages/views/locales/es/agents.json+++ b/packages/views/locales/es/agents.json@@ -282,13 +282,8 @@"duplicate_title": "Duplicar {{name}}","step_ai": "Crear conversando","modes": {- "template": {- "title": "Usar una plantilla",- "description": "Parte de instrucciones y skills seleccionadas, y adapta cada detalle a tu espacio de trabajo."- },"ai": {- "title": "Crear con IA",- "description": "Crea una configuración editable conversando."+ "title": "Crear con IA"}},"sections": {@@ -316,10 +311,6 @@}},"builder": {- "setup_title": "Elige un runtime para Agent Builder",- "setup_description": "Este runtime alimenta la configuración y es el predeterminado para el nuevo agente.",- "start": "Iniciar conversación",- "connect_runtime": "Conectar un runtime","start_failed": "No se ha podido iniciar Agent Builder.","send_failed": "No se ha podido enviar tu mensaje.","stop_failed": "No se ha podido detener la generación actual.",diff --git a/packages/views/locales/fr/agents.json b/packages/views/locales/fr/agents.jsonindex 05c51d1c67..876a39c27b 100644--- a/packages/views/locales/fr/agents.json+++ b/packages/views/locales/fr/agents.json@@ -300,13 +300,8 @@"duplicate_title": "Dupliquer {{name}}","step_ai": "Construire par la conversation","modes": {- "template": {- "title": "Partir d'un modèle",- "description": "Partez d'instructions et de skills sélectionnés, puis adaptez chaque détail à votre espace de travail."- },"ai": {- "title": "Construire avec l'IA",- "description": "Créez une configuration modifiable par la conversation."+ "title": "Construire avec l'IA"}},"sections": {@@ -334,10 +329,6 @@}},"builder": {- "setup_title": "Choisir un runtime pour l'Agent Builder",- "setup_description": "Ce runtime sert à la configuration et sera celui du nouvel agent par défaut.",- "start": "Démarrer la conversation",- "connect_runtime": "Connecter un runtime","draft_parse_failed": "Cette réponse n’a pas permis de remplir le formulaire. Demandez à l’agent de générer à nouveau le brouillon ou remplissez le formulaire manuellement.","start_failed": "Impossible de démarrer l'Agent Builder.","send_failed": "Impossible d'envoyer votre message.",diff --git a/packages/views/locales/ja/agents.json b/packages/views/locales/ja/agents.jsonindex 6abef8d234..37f909445e 100644--- a/packages/views/locales/ja/agents.json+++ b/packages/views/locales/ja/agents.json@@ -873,13 +873,8 @@"duplicate_title": "{{name}} を複製","step_ai": "会話で作成","modes": {- "template": {- "title": "テンプレートを使用",- "description": "整理された指示とスキルを基に、ワークスペースに合わせて詳細を調整します。"- },"ai": {- "title": "AI で作成",- "description": "対話で編集可能な設定の下書きを作成します。"+ "title": "AI で作成"}},"sections": {@@ -907,10 +902,6 @@}},"builder": {- "setup_title": "Agent Builder のランタイムを選択",- "setup_description": "このランタイムは作成時の対話と、新しいエージェントの既定値に使われます。",- "start": "会話を開始",- "connect_runtime": "ランタイムを接続","draft_parse_failed": "この返信からフォームを入力できませんでした。エージェントに下書きの再生成を依頼するか、手動で入力してください。","start_failed": "Agent Builder を開始できませんでした。","send_failed": "メッセージを送信できませんでした。",diff --git a/packages/views/locales/ko/agents.json b/packages/views/locales/ko/agents.jsonindex c378801ec7..d975676ee3 100644--- a/packages/views/locales/ko/agents.json+++ b/packages/views/locales/ko/agents.json@@ -873,13 +873,8 @@"duplicate_title": "{{name}} 복제","step_ai": "대화로 만들기","modes": {- "template": {- "title": "템플릿 사용",- "description": "정리된 지침과 스킬을 바탕으로 워크스페이스에 맞게 세부 항목을 조정합니다."- },"ai": {- "title": "AI로 만들기",- "description": "대화를 통해 수정 가능한 설정 초안을 만듭니다."+ "title": "AI로 만들기"}},"sections": {@@ -907,10 +902,6 @@}},"builder": {- "setup_title": "Agent Builder 런타임 선택",- "setup_description": "이 런타임은 생성 대화에 사용되며 새 에이전트의 기본값이 됩니다.",- "start": "대화 시작",- "connect_runtime": "런타임 연결","draft_parse_failed": "이 응답으로 양식을 채울 수 없습니다. 에이전트에게 초안을 다시 생성하도록 요청하거나 직접 입력하세요.","start_failed": "Agent Builder를 시작하지 못했습니다.","send_failed": "메시지를 보내지 못했습니다.",diff --git a/packages/views/locales/ru/agents.json b/packages/views/locales/ru/agents.jsonindex 1507d19da1..c5b016719e 100644--- a/packages/views/locales/ru/agents.json+++ b/packages/views/locales/ru/agents.json@@ -322,13 +322,8 @@"duplicate_title": "Дублировать {{name}}","step_ai": "Создание через диалог","modes": {- "template": {- "title": "Использовать шаблон",- "description": "Начните с готовых инструкций и навыков, а затем подстройте каждую деталь под своё рабочее пространство."- },"ai": {- "title": "Создать с помощью ИИ",- "description": "Создайте редактируемую конфигурацию в диалоге."+ "title": "Создать с помощью ИИ"}},"sections": {@@ -356,10 +351,6 @@}},"builder": {- "setup_title": "Выберите среду выполнения для Agent Builder",- "setup_description": "Выбранная онлайн-среда выполнения обеспечивает диалог настройки и по умолчанию становится средой выполнения нового агента.",- "start": "Начать диалог",- "connect_runtime": "Подключить среду выполнения","draft_parse_failed": "Не удалось заполнить форму из этого ответа. Попросите помощника создать черновик заново или заполните форму вручную.","start_failed": "Не удалось запустить Agent Builder.","send_failed": "Не удалось отправить сообщение.",diff --git a/packages/views/locales/zh-Hans/agents.json b/packages/views/locales/zh-Hans/agents.jsonindex 1e4d846ff7..195cb27379 100644--- a/packages/views/locales/zh-Hans/agents.json+++ b/packages/views/locales/zh-Hans/agents.json@@ -289,13 +289,8 @@"duplicate_title": "复制 {{name}}","step_ai": "通过对话创建","modes": {- "template": {- "title": "使用模板",- "description": "从整理好的指令和 skill 开始,再根据工作区需要修改每个细节。"- },"ai": {- "title": "通过 AI 创建",- "description": "通过对话生成可编辑的配置草稿。"+ "title": "通过 AI 创建"}},"sections": {@@ -323,10 +318,6 @@}},"builder": {- "setup_title": "为智能体构建器选择运行时",- "setup_description": "该运行时用于创建对话,并默认用于新智能体。",- "start": "开始对话",- "connect_runtime": "连接运行时","draft_parse_failed": "本次回复未能填入表单。请让智能体重新生成草稿,或手动填写。","start_failed": "无法启动智能体构建器。","send_failed": "无法发送消息。",diff --git a/packages/views/locales/zh-Hant/agents.json b/packages/views/locales/zh-Hant/agents.jsonindex 5641cae9c9..b9827438fa 100644--- a/packages/views/locales/zh-Hant/agents.json+++ b/packages/views/locales/zh-Hant/agents.json@@ -289,13 +289,8 @@"duplicate_title": "複製 {{name}}","step_ai": "透過對話建立","modes": {- "template": {- "title": "使用模板",- "description": "從整理好的指令和 skill 開始,再根據工作區需要修改每個細節。"- },"ai": {- "title": "透過 AI 建立",- "description": "透過對話生成可編輯的配置草稿。"+ "title": "透過 AI 建立"}},"sections": {@@ -323,10 +318,6 @@}},"builder": {- "setup_title": "為 AI 代理構建器選擇執行時",- "setup_description": "該執行時用於建立對話,並預設用於新 AI 代理。",- "start": "開始對話",- "connect_runtime": "連線執行時","draft_parse_failed": "本次回覆未能填入表單。請讓 AI 代理重新生成草稿,或手動填寫。","start_failed": "無法啟動 AI 代理構建器。","send_failed": "無法傳送訊息。",diff --git a/packages/views/package.json b/packages/views/package.jsonindex 653863d68d..11638a7cec 100644--- a/packages/views/package.json+++ b/packages/views/package.json@@ -33,7 +33,6 @@"./agents/agent-detail-page": "./agents/components/agent-detail-page.tsx","./agents/agents-page": "./agents/components/agents-page.tsx","./agents/ai-builder-session-page": "./agents/create/ai-builder-session-page.tsx",- "./agents/ai-create-agent-page": "./agents/create/ai-create-agent-page.tsx","./agents/agent-created-page": "./agents/create/agent-created-page.tsx","./agents/choose-runtime-page": "./agents/create/choose-runtime-page.tsx","./agents/manual-create-agent-page": "./agents/create/manual-create-agent-page.tsx",