|
|
@@ -4,7 +4,7 @@ import { DropdownMenu } from "@opencode-ai/ui/dropdown-menu"
|
|
|
import { Icon } from "@opencode-ai/ui/icon"
|
|
|
import { base64Encode } from "@opencode-ai/core/util/encode"
|
|
|
import { A, useNavigate } from "@solidjs/router"
|
|
|
-import { For, Match, Show, Switch, createEffect, createMemo, createSignal, on, onCleanup } from "solid-js"
|
|
|
+import { For, Match, Show, Switch, createEffect, createMemo, createSignal, on, onCleanup, type JSX } from "solid-js"
|
|
|
import { createStore, reconcile, unwrap } from "solid-js/store"
|
|
|
import { useGlobal } from "@/context/global"
|
|
|
import { usePlatform } from "@/context/platform"
|
|
|
@@ -34,7 +34,7 @@ import { ProjectSwitcher } from "./project-switcher"
|
|
|
import { bindProjectWorkspace, newProject, readProjectState, writeProjectState } from "./projects"
|
|
|
import { createTaskIndex, PaasTasks } from "./tasks"
|
|
|
import { PaasAgentEdit, type AgentEditDraft } from "./agent-edit"
|
|
|
-import { PaasPacks } from "./packs"
|
|
|
+import { PaasExtensions } from "./extensions-center"
|
|
|
import { ResearchIssue } from "./issue"
|
|
|
import { PaasReadiness, resourceAdvice } from "./readiness"
|
|
|
import { ResearchIcon } from "./research-icon"
|
|
|
@@ -42,9 +42,13 @@ import "./paas.css"
|
|
|
import "./typography.css"
|
|
|
import "./studio.css"
|
|
|
import "./illustration.css"
|
|
|
+import "./code-host.css"
|
|
|
+import "./workbench-theme.css"
|
|
|
+import "./agent-edit.css"
|
|
|
|
|
|
const pages = [
|
|
|
{ id: "chat", icon: "chat", name: "会话" },
|
|
|
+ { id: "applications", icon: "knowledge", name: "应用与插件" },
|
|
|
{ id: "agents", icon: "agent", name: "智能体" },
|
|
|
{ id: "tasks", icon: "tasks", name: "平台任务" },
|
|
|
{ id: "connection", icon: "settings", name: "平台设置" },
|
|
|
@@ -65,6 +69,9 @@ export default function PaasWorkspace(
|
|
|
standalone?: boolean
|
|
|
deployment?: PaasDeploymentProfile
|
|
|
onOpenDeveloper?: (directory?: string) => void
|
|
|
+ developerActive?: boolean
|
|
|
+ developerContent?: JSX.Element
|
|
|
+ onCloseDeveloper?: () => void
|
|
|
registerMenuCommand?: (handler: ((id: string) => boolean) | undefined) => void
|
|
|
} = {},
|
|
|
) {
|
|
|
@@ -109,6 +116,7 @@ export default function PaasWorkspace(
|
|
|
openingWorkspace: false,
|
|
|
navOpen: false,
|
|
|
agentSearch: "",
|
|
|
+ extensionsTab: "mine",
|
|
|
editAgentID: "",
|
|
|
editReturn: "agents",
|
|
|
management: "",
|
|
|
@@ -269,7 +277,7 @@ export default function PaasWorkspace(
|
|
|
if (document.hidden && state.page !== "chat")
|
|
|
void platform
|
|
|
.notify(
|
|
|
- paasStatus(run).startsWith("waiting") ? "研究任务需要确认" : "研究任务已有结果",
|
|
|
+ paasStatus(run).startsWith("waiting") ? "任务需要确认" : "任务已有结果",
|
|
|
paasText(run.input) || "打开任务查看",
|
|
|
() => {
|
|
|
setUI("chatTask", run)
|
|
|
@@ -387,6 +395,7 @@ export default function PaasWorkspace(
|
|
|
const localServer = () => server?.list.find(ServerConnection.builtin) ?? server?.list.find(ServerConnection.local)
|
|
|
const settingsPage = () => state.page === "connection" || state.page === "resources"
|
|
|
const goPage = (page: string) => {
|
|
|
+ props.onCloseDeveloper?.()
|
|
|
setUI("navOpen", false)
|
|
|
workspace.setState("page", page)
|
|
|
if (page === "tasks") void tasks.refresh()
|
|
|
@@ -397,8 +406,10 @@ export default function PaasWorkspace(
|
|
|
return true
|
|
|
}
|
|
|
if (id === "session.new") {
|
|
|
- if (state.connected && state.agents.length) actions.newSession?.()
|
|
|
- else goPage("connection")
|
|
|
+ if (state.connected && state.agents.length) {
|
|
|
+ goPage("chat")
|
|
|
+ actions.newSession?.()
|
|
|
+ } else goPage("connection")
|
|
|
return true
|
|
|
}
|
|
|
if (id === "sidebar.toggle") {
|
|
|
@@ -428,6 +439,7 @@ export default function PaasWorkspace(
|
|
|
})
|
|
|
}
|
|
|
const pageLabel = () => {
|
|
|
+ if (props.developerActive) return "代码工作区"
|
|
|
if (state.page === "edit-agent") return "编辑智能体"
|
|
|
if (settingsPage()) return "平台设置"
|
|
|
return pages.find((page) => page.id === state.page)?.name
|
|
|
@@ -545,21 +557,8 @@ export default function PaasWorkspace(
|
|
|
}
|
|
|
|
|
|
function openAgentPacks() {
|
|
|
- const api = platform.paas
|
|
|
- if (!api || !state.connected) return
|
|
|
- dialog.show(() => (
|
|
|
- <Dialog title="智能体包" size="x-large">
|
|
|
- <div class="paas-workspace paas-pack-dialog">
|
|
|
- <PaasPacks
|
|
|
- api={api}
|
|
|
- url={state.url}
|
|
|
- canManage={workspace.allowed("agents:write")}
|
|
|
- onManage={() => openManagement("agentpacks", "智能体包管理")}
|
|
|
- onCreated={workspace.catalog}
|
|
|
- />
|
|
|
- </div>
|
|
|
- </Dialog>
|
|
|
- ))
|
|
|
+ setUI("extensionsTab", "discover")
|
|
|
+ goPage("applications")
|
|
|
}
|
|
|
|
|
|
function openManagement(path: string, label: string) {
|
|
|
@@ -604,7 +603,11 @@ export default function PaasWorkspace(
|
|
|
return (
|
|
|
<article class="paas-agent-card">
|
|
|
<header>
|
|
|
- <span class="paas-agent-card-icon paas-agent-illustration" data-kind={agentIllustration(agent)} aria-hidden="true">
|
|
|
+ <span
|
|
|
+ class="paas-agent-card-icon paas-agent-illustration"
|
|
|
+ data-kind={agentIllustration(agent)}
|
|
|
+ aria-hidden="true"
|
|
|
+ >
|
|
|
<ResearchIcon kind={agentIllustration(agent)} />
|
|
|
</span>
|
|
|
<div class="paas-agent-card-identity">
|
|
|
@@ -614,11 +617,7 @@ export default function PaasWorkspace(
|
|
|
</Show>
|
|
|
</div>
|
|
|
<DropdownMenu modal={false} placement="bottom-end" gutter={6}>
|
|
|
- <DropdownMenu.Trigger
|
|
|
- class="paas-agent-card-more"
|
|
|
- aria-label={`${name()}的更多操作`}
|
|
|
- disabled={disabled()}
|
|
|
- >
|
|
|
+ <DropdownMenu.Trigger class="paas-agent-card-more" aria-label={`${name()}的更多操作`} disabled={disabled()}>
|
|
|
<span aria-hidden="true">···</span>
|
|
|
</DropdownMenu.Trigger>
|
|
|
<DropdownMenu.Portal>
|
|
|
@@ -640,10 +639,7 @@ export default function PaasWorkspace(
|
|
|
</div>
|
|
|
</Show>
|
|
|
<footer>
|
|
|
- <Show
|
|
|
- when={profile().entryMode !== "internal"}
|
|
|
- fallback={<span class="paas-muted">由研究流程调用</span>}
|
|
|
- >
|
|
|
+ <Show when={profile().entryMode !== "internal"} fallback={<span class="paas-muted">由研究流程调用</span>}>
|
|
|
<button
|
|
|
type="button"
|
|
|
class="paas-directory-primary"
|
|
|
@@ -689,7 +685,8 @@ export default function PaasWorkspace(
|
|
|
<div
|
|
|
class="paas-workspace"
|
|
|
classList={{
|
|
|
- "paas-chat-mode": state.page === "chat",
|
|
|
+ "paas-chat-mode": state.page === "chat" && !props.developerActive,
|
|
|
+ "paas-code-mode": !!props.developerActive,
|
|
|
"paas-agents-mode": state.page === "agents",
|
|
|
"paas-nav-rail": navRail(),
|
|
|
"paas-mac-chrome": platform.platform === "desktop" && platform.os === "macos" && !platform.windowFullscreen?.(),
|
|
|
@@ -705,18 +702,18 @@ export default function PaasWorkspace(
|
|
|
ref={(element) => {
|
|
|
navElement = element
|
|
|
}}
|
|
|
- aria-label="AgentPaaS 导航"
|
|
|
+ aria-label="λ-Agent 工作台导航"
|
|
|
>
|
|
|
<Show when={navRail()}>
|
|
|
<button type="button" class="paas-rail-toggle" aria-label="展开导航" title="展开导航" onClick={expandNav}>
|
|
|
<Icon name="chevron-right" size="small" />
|
|
|
</button>
|
|
|
</Show>
|
|
|
- <div class="paas-brand" aria-label="AgentPaaS" title="λ-Scientist 工作空间">
|
|
|
+ <div class="paas-brand" aria-label="λ-Agent" title="λ-Agent 工作台">
|
|
|
<span aria-hidden="true">λ</span>
|
|
|
<div>
|
|
|
- <strong>λ-Scientist</strong>
|
|
|
- <small>科研工作空间</small>
|
|
|
+ <strong>λ-Agent</strong>
|
|
|
+ <small>智能体工作台</small>
|
|
|
</div>
|
|
|
</div>
|
|
|
<ProjectSwitcher
|
|
|
@@ -727,12 +724,17 @@ export default function PaasWorkspace(
|
|
|
onSelect={(activeID) => {
|
|
|
setProjects("activeID", activeID)
|
|
|
saveProjects()
|
|
|
+ if (!props.developerActive) return
|
|
|
+ const directory = projects.projects.find((item) => item.id === activeID)?.workspace
|
|
|
+ if (directory) props.onOpenDeveloper?.(directory)
|
|
|
+ else goPage("chat")
|
|
|
}}
|
|
|
onCreate={(name) => {
|
|
|
const project = newProject(name)
|
|
|
setProjects("projects", (items) => [...items, project])
|
|
|
setProjects("activeID", project.id)
|
|
|
saveProjects()
|
|
|
+ goPage("chat")
|
|
|
}}
|
|
|
onBind={(projectID, workspace) => {
|
|
|
setProjects(reconcile(bindProjectWorkspace(unwrap(projects), projectID, workspace)))
|
|
|
@@ -746,6 +748,7 @@ export default function PaasWorkspace(
|
|
|
title="新会话"
|
|
|
disabled={!state.connected || !state.agents.length}
|
|
|
onClick={() => {
|
|
|
+ goPage("chat")
|
|
|
actions.newSession?.()
|
|
|
setUI("navOpen", false)
|
|
|
}}
|
|
|
@@ -760,7 +763,8 @@ export default function PaasWorkspace(
|
|
|
aria-label={page.name}
|
|
|
title={page.name}
|
|
|
aria-current={
|
|
|
- state.page === page.id || (page.id === "connection" && state.page === "resources")
|
|
|
+ !props.developerActive &&
|
|
|
+ (state.page === page.id || (page.id === "connection" && state.page === "resources"))
|
|
|
? "page"
|
|
|
: undefined
|
|
|
}
|
|
|
@@ -778,23 +782,25 @@ export default function PaasWorkspace(
|
|
|
</nav>
|
|
|
<div class="paas-nav-history" ref={(el) => setHistoryMount(el)} />
|
|
|
<div class="paas-sidebar-footer">
|
|
|
- <Show
|
|
|
- when={!props.standalone}
|
|
|
- fallback={
|
|
|
- <button
|
|
|
- type="button"
|
|
|
- aria-label="开发工作区"
|
|
|
- title="开发工作区"
|
|
|
- onClick={() => props.onOpenDeveloper?.()}
|
|
|
- >
|
|
|
- <Icon name="arrow-left" size="normal" />
|
|
|
- <span class="paas-nav-label">开发工作区</span>
|
|
|
- </button>
|
|
|
- }
|
|
|
- >
|
|
|
- <A href="/" aria-label="返回开发工作区" title="返回开发工作区">
|
|
|
- <Icon name="arrow-left" size="normal" />
|
|
|
- <span class="paas-nav-label">返回开发工作区</span>
|
|
|
+ <Show when={props.onOpenDeveloper}>
|
|
|
+ <button
|
|
|
+ type="button"
|
|
|
+ aria-label="代码工作区"
|
|
|
+ title="代码工作区"
|
|
|
+ aria-current={props.developerActive ? "page" : undefined}
|
|
|
+ onClick={() => {
|
|
|
+ setUI("navOpen", false)
|
|
|
+ props.onOpenDeveloper?.(activeProject()?.workspace)
|
|
|
+ }}
|
|
|
+ >
|
|
|
+ <ResearchIcon kind="workspace" />
|
|
|
+ <span class="paas-nav-label">代码工作区</span>
|
|
|
+ </button>
|
|
|
+ </Show>
|
|
|
+ <Show when={!props.standalone}>
|
|
|
+ <A href="/" aria-label="代码工作区" title="代码工作区">
|
|
|
+ <ResearchIcon kind="workspace" />
|
|
|
+ <span class="paas-nav-label">代码工作区</span>
|
|
|
</A>
|
|
|
</Show>
|
|
|
<button
|
|
|
@@ -846,7 +852,7 @@ export default function PaasWorkspace(
|
|
|
<Icon name="menu" size="small" />
|
|
|
</button>
|
|
|
<span class="paas-topbar-page">{pageLabel()}</span>
|
|
|
- <Show when={state.page === "chat" && ui.chatTitle}>
|
|
|
+ <Show when={!props.developerActive && state.page === "chat" && ui.chatTitle}>
|
|
|
<span class="paas-topbar-divider" aria-hidden="true">
|
|
|
/
|
|
|
</span>
|
|
|
@@ -898,8 +904,12 @@ export default function PaasWorkspace(
|
|
|
</Show>
|
|
|
</Show>
|
|
|
</div>
|
|
|
- <div class="paas-topbar-inbox" ref={(element) => setInboxMount(element)} />
|
|
|
- <Show when={state.page === "chat"}>
|
|
|
+ <div
|
|
|
+ class="paas-topbar-inbox"
|
|
|
+ style={{ display: props.developerActive ? "none" : undefined }}
|
|
|
+ ref={(element) => setInboxMount(element)}
|
|
|
+ />
|
|
|
+ <Show when={!props.developerActive && state.page === "chat"}>
|
|
|
<button
|
|
|
type="button"
|
|
|
class="paas-preview-toggle paas-icon-action"
|
|
|
@@ -913,12 +923,16 @@ export default function PaasWorkspace(
|
|
|
</Show>
|
|
|
<div
|
|
|
class="paas-topbar-chat-actions"
|
|
|
+ style={{ display: props.developerActive ? "none" : undefined }}
|
|
|
ref={(element) => {
|
|
|
setActionsMount(element)
|
|
|
}}
|
|
|
/>
|
|
|
</header>
|
|
|
- <div class="paas-content">
|
|
|
+ <div class="paas-code-host" style={{ display: props.developerActive ? "flex" : "none" }}>
|
|
|
+ {props.developerContent}
|
|
|
+ </div>
|
|
|
+ <div class="paas-content" style={{ display: props.developerActive ? "none" : undefined }}>
|
|
|
<Show when={state.connected && ui.notices.length && state.page !== "chat"}>
|
|
|
<div class="paas-global-notices" aria-label="任务通知">
|
|
|
<For each={ui.notices}>
|
|
|
@@ -931,7 +945,7 @@ export default function PaasWorkspace(
|
|
|
setUI("notices", (rows) => rows.filter((row) => row !== run))
|
|
|
}}
|
|
|
>
|
|
|
- {paasStatuses[paasStatus(run)] || "任务更新"} · {paasText(run.input) || "研究任务"}
|
|
|
+ {paasStatuses[paasStatus(run)] || "任务更新"} · {paasText(run.input) || "任务"}
|
|
|
</button>
|
|
|
<button
|
|
|
aria-label="关闭任务通知"
|
|
|
@@ -1009,7 +1023,7 @@ export default function PaasWorkspace(
|
|
|
onPreviewFile={openPreview}
|
|
|
previewFile={previewFile()}
|
|
|
onChatChanged={() => setPreviewFile(undefined)}
|
|
|
- visible={state.page === "chat"}
|
|
|
+ visible={!props.developerActive && state.page === "chat"}
|
|
|
agents={state.agents}
|
|
|
openAgentID={ui.chatAgentID}
|
|
|
onAgentOpened={() => setUI("chatAgentID", "")}
|
|
|
@@ -1037,17 +1051,17 @@ export default function PaasWorkspace(
|
|
|
<div class="paas-section-title">
|
|
|
<div>
|
|
|
<h1>平台连接</h1>
|
|
|
- <p>连接团队平台,选择智能体,即可开始研究。</p>
|
|
|
+ <p>连接平台,选择应用或智能体,即可开始任务。</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <ol class="paas-start-steps" aria-label="开始研究的三个步骤">
|
|
|
+ <ol class="paas-start-steps" aria-label="开始任务的三个步骤">
|
|
|
<li data-ready={state.connected}>1 · 连接平台</li>
|
|
|
<li data-ready={state.connected && !!state.agents.length}>2 · 选择智能体</li>
|
|
|
- <li>3 · 添加材料,开始研究</li>
|
|
|
+ <li>3 · 添加材料,开始任务</li>
|
|
|
</ol>
|
|
|
<section class="paas-panel paas-connect paas-connection-page" aria-label="平台连接">
|
|
|
<div>
|
|
|
- <strong>{state.connected ? "当前连接" : "连接研究平台"}</strong>
|
|
|
+ <strong>{state.connected ? "当前连接" : "连接工作平台"}</strong>
|
|
|
<p>
|
|
|
{deployment().allowCustomPlatform
|
|
|
? "填写团队提供的平台地址与访问凭证,接入你的研究空间。"
|
|
|
@@ -1104,7 +1118,9 @@ export default function PaasWorkspace(
|
|
|
placeholder="https://paas.example.com"
|
|
|
/>
|
|
|
<Show when={state.connectionErrors.url}>
|
|
|
- <small id="paas-url-error" class="paas-field-error" role="alert">{state.connectionErrors.url}</small>
|
|
|
+ <small id="paas-url-error" class="paas-field-error" role="alert">
|
|
|
+ {state.connectionErrors.url}
|
|
|
+ </small>
|
|
|
</Show>
|
|
|
<Show when={!deployment().allowCustomPlatform}>
|
|
|
<small class="paas-muted">平台地址由部署预置,不能修改。</small>
|
|
|
@@ -1128,7 +1144,9 @@ export default function PaasWorkspace(
|
|
|
placeholder="输入平台凭证"
|
|
|
/>
|
|
|
<Show when={state.connectionErrors.apiKey}>
|
|
|
- <small id="paas-key-error" class="paas-field-error" role="alert">{state.connectionErrors.apiKey}</small>
|
|
|
+ <small id="paas-key-error" class="paas-field-error" role="alert">
|
|
|
+ {state.connectionErrors.apiKey}
|
|
|
+ </small>
|
|
|
</Show>
|
|
|
</label>
|
|
|
<label class="paas-check">
|
|
|
@@ -1164,7 +1182,7 @@ export default function PaasWorkspace(
|
|
|
<span class="paas-eyebrow">连接概览</span>
|
|
|
<strong>{state.connected ? "平台已连接" : "尚未连接"}</strong>
|
|
|
<p class="paas-muted">
|
|
|
- {state.connected ? `已加载 ${state.agents.length} 个智能体。` : "连接后选择智能体开始研究。"}
|
|
|
+ {state.connected ? `已加载 ${state.agents.length} 个智能体。` : "连接后选择智能体开始任务。"}
|
|
|
</p>
|
|
|
<Show when={state.connected}>
|
|
|
<button class="paas-primary" onClick={() => workspace.setState("page", "chat")}>
|
|
|
@@ -1187,13 +1205,31 @@ export default function PaasWorkspace(
|
|
|
<li>配置研究资源:在智能体设置中选择模型、填写模型凭证,并按需要绑定工具和知识库。</li>
|
|
|
</ol>
|
|
|
<p>
|
|
|
- 没有智能体时,可在“智能体”页从已安装包创建,或请管理员添加。资源检查是可选诊断,不是开始研究的必经审批。
|
|
|
+ 没有智能体时,可在“智能体”页从已安装包创建,或请管理员添加。资源检查是可选诊断,不是开始任务的必经审批。
|
|
|
</p>
|
|
|
<p>连接成功后,可在“资源检查”中确认执行服务与模型是否可用。</p>
|
|
|
</details>
|
|
|
</aside>
|
|
|
</div>
|
|
|
</Match>
|
|
|
+ <Match when={state.page === "applications"}>
|
|
|
+ <PaasExtensions
|
|
|
+ api={platform.paas}
|
|
|
+ connected={state.connected}
|
|
|
+ url={state.url}
|
|
|
+ agents={state.agents}
|
|
|
+ canManage={workspace.allowed("agents:write")}
|
|
|
+ initialTab={ui.extensionsTab}
|
|
|
+ onConnection={() => goPage("connection")}
|
|
|
+ onRefresh={workspace.catalog}
|
|
|
+ onUse={(id) => {
|
|
|
+ setUI("chatAgentID", id)
|
|
|
+ goPage("chat")
|
|
|
+ }}
|
|
|
+ onConfigure={(id) => editAgent(id, "applications")}
|
|
|
+ onCode={props.onOpenDeveloper ? () => props.onOpenDeveloper?.(activeProject()?.workspace) : undefined}
|
|
|
+ />
|
|
|
+ </Match>
|
|
|
<Match when={state.page === "agents"}>
|
|
|
<div class="paas-directory-heading">
|
|
|
<div>
|
|
|
@@ -1259,11 +1295,15 @@ export default function PaasWorkspace(
|
|
|
/>
|
|
|
}
|
|
|
>
|
|
|
- <For each={[
|
|
|
- ["默认入口", "paas-agents-default", groupAgents(visibleAgents()).default],
|
|
|
- ["专业任务", "paas-agents-professional", groupAgents(visibleAgents()).professional],
|
|
|
- ["研究流水线", "paas-agents-workflow", groupAgents(visibleAgents()).workflow],
|
|
|
- ] as const}>
|
|
|
+ <For
|
|
|
+ each={
|
|
|
+ [
|
|
|
+ ["默认入口", "paas-agents-default", groupAgents(visibleAgents()).default],
|
|
|
+ ["专业任务", "paas-agents-professional", groupAgents(visibleAgents()).professional],
|
|
|
+ ["研究流水线", "paas-agents-workflow", groupAgents(visibleAgents()).workflow],
|
|
|
+ ] as const
|
|
|
+ }
|
|
|
+ >
|
|
|
{([title, id, agents]) => renderAgentGroup(title, id, agents)}
|
|
|
</For>
|
|
|
<Show when={groupAgents(visibleAgents()).internal.length}>
|
|
|
@@ -1329,7 +1369,7 @@ export default function PaasWorkspace(
|
|
|
<div class="paas-section-title">
|
|
|
<div>
|
|
|
<h1>资源检查</h1>
|
|
|
- <p>核对模型、知识库与 Skill / MCP 的可用状态;检查不会创建研究任务。</p>
|
|
|
+ <p>核对模型、知识库与 Skill / MCP 的可用状态;检查不会创建任务。</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="paas-toolbar">
|
|
|
@@ -1378,11 +1418,11 @@ export default function PaasWorkspace(
|
|
|
workspace.setState("page", "chat")
|
|
|
}}
|
|
|
>
|
|
|
- 直接开始研究
|
|
|
+ 直接开始任务
|
|
|
</button>
|
|
|
</div>
|
|
|
<p class="paas-muted">
|
|
|
- “检查资源”不调用模型;“测试模型连接”会发送少量测试请求,消耗模型额度。可跳过检查,直接开始研究。
|
|
|
+ “检查资源”不调用模型;“测试模型连接”会发送少量测试请求,消耗模型额度。可跳过检查,直接开始任务。
|
|
|
</p>
|
|
|
<PaasReadiness
|
|
|
connected={state.connected}
|
|
|
@@ -1451,7 +1491,7 @@ export default function PaasWorkspace(
|
|
|
title={state.agentID ? "检查所选智能体的资源" : "先选择智能体"}
|
|
|
text={
|
|
|
state.agentID
|
|
|
- ? "尚未检查。结果会显示在这里;也可以跳过检查直接开始研究。"
|
|
|
+ ? "尚未检查。结果会显示在这里;也可以跳过检查直接开始任务。"
|
|
|
: "选择智能体后可检查绑定资源;模型配置与知识库绑定可在上方设置入口修改。"
|
|
|
}
|
|
|
/>
|
|
|
@@ -1496,7 +1536,7 @@ export default function PaasWorkspace(
|
|
|
</Switch>
|
|
|
</div>
|
|
|
</main>
|
|
|
- <Show when={state.page === "chat" && previewOpen()}>
|
|
|
+ <Show when={!props.developerActive && state.page === "chat" && previewOpen()}>
|
|
|
<div
|
|
|
class="paas-splitter paas-splitter-preview"
|
|
|
role="separator"
|