feat: 精简部署工作空间并接入真实助手
- 项目首页保留部署状态与日志入口,发布和管理功能收进更多菜单。 - 统一记录步骤与日志,限制轮询、日志渲染和助手短会话开销。 - 接入只读 Agent 问答、来源与个人历史,补充权限和并发回归。
This commit is contained in:
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user