feat: 精简部署工作空间并接入真实助手

- 项目首页保留部署状态与日志入口,发布和管理功能收进更多菜单。

- 统一记录步骤与日志,限制轮询、日志渲染和助手短会话开销。

- 接入只读 Agent 问答、来源与个人历史,补充权限和并发回归。
This commit is contained in:
湛兮
2026-10-27 23:55:12 +08:00
parent 94649fe604
commit ea4adc7ca4
29 changed files with 3385 additions and 6236 deletions
+16
View File
@@ -3,6 +3,7 @@
*/
import type {
AgentCard,
AgentQuestionPayload,
AgentConfigSummary,
AgentConnectionTestResult,
AgentInvocation,
@@ -533,6 +534,21 @@ export const devopsApi = {
return data
},
async getAgentStatus(): Promise<{ configured: boolean; dataSource: 'memory' | 'database' }> {
const { data } = await http.get('/agent/status')
return data
},
async askAgent(payload: AgentQuestionPayload, signal?: AbortSignal): Promise<AgentInvocation> {
const { data } = await http.post<AgentInvocation>('/agent/questions', payload, {
timeout: 55_000,
signal,
})
return data
},
async getAgentQuestions(): Promise<AgentInvocation[]> {
const { data } = await http.get<AgentInvocation[]>('/agent/questions')
return data
},
async createAgentInvocation(
payload: CreateAgentInvocationPayload,
): Promise<AgentInvocation> {