feat(controller): 工具仓库、Skills 录入、多轮追问与终端运行日志

- 插件/MCP 改为通用工具仓库:内置、HTTP MCP、本机命令(stdio)三类工具,可增删改、
  按 Agent 分配;定义变更自动提升下发版本并重发,删除即回收分配并通知 Agent 清空。
- 旧 desktop-filesystem 降级为仓库中的一个内置条目;本机预设工具改为总控只展示、
  Agent 默认启用,任务执行来源新增 builtin(审计 task.builtin_tool_execution)。
- Skills 补齐录入闭环:新建或按名称覆盖更新,并可从旧版技能目录(SKILL.md + skill.json)
  批量导入;同名更新保持标识不变并自动重新应用,旧包入口脚本只提示不执行。
- 单独指派支持基于某条已完成任务的多轮追问:任务内容框仍下发无上下文的一次性任务,
  追问时由总控组装历史(仅成功轮次、默认最近 50 轮 / 约 6 万字符),会话按 Agent 隔离;
  执行动态把同一会话合并为一条记录,任务详情弹窗底部提供继续对话输入框。
- 任务详情支持运行中观测:打开期间每 2 秒刷新,终端风格输出全部事件并自动滚动;
  progress 事件不改变任务状态且顺延无进展超时,避免正在执行工具的任务被误判超时。
- 修复 build.ps1 缺 UTF-8 BOM 导致 build.bat 在 PowerShell 5.1 下语法报错。
This commit is contained in:
toot
2026-09-16 15:30:50 +08:00
parent 8a6c55d94a
commit aa57ea69de
19 changed files with 1977 additions and 154 deletions
+30 -6
View File
@@ -2,10 +2,6 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function AgentDeploymentStatuses() {
return window['go']['main']['App']['AgentDeploymentStatuses']();
}
export function AgentDirectory(arg1) {
return window['go']['main']['App']['AgentDirectory'](arg1);
}
@@ -14,6 +10,10 @@ export function AgentLLMStatuses() {
return window['go']['main']['App']['AgentLLMStatuses']();
}
export function AgentMCPStatuses() {
return window['go']['main']['App']['AgentMCPStatuses']();
}
export function AgentOperationalDetails(arg1) {
return window['go']['main']['App']['AgentOperationalDetails'](arg1);
}
@@ -38,6 +38,10 @@ export function ClearTaskHistory() {
return window['go']['main']['App']['ClearTaskHistory']();
}
export function ContinueTaskSession(arg1, arg2, arg3, arg4) {
return window['go']['main']['App']['ContinueTaskSession'](arg1, arg2, arg3, arg4);
}
export function CreatePairingCode() {
return window['go']['main']['App']['CreatePairingCode']();
}
@@ -54,6 +58,10 @@ export function CreateTasks(arg1) {
return window['go']['main']['App']['CreateTasks'](arg1);
}
export function DeleteMCPTool(arg1) {
return window['go']['main']['App']['DeleteMCPTool'](arg1);
}
export function DeployLLMProfile(arg1, arg2) {
return window['go']['main']['App']['DeployLLMProfile'](arg1, arg2);
}
@@ -70,14 +78,18 @@ export function DispatchMentionsWithImages(arg1, arg2, arg3) {
return window['go']['main']['App']['DispatchMentionsWithImages'](arg1, arg2, arg3);
}
export function EnableDesktopFilesystem(arg1) {
return window['go']['main']['App']['EnableDesktopFilesystem'](arg1);
export function ImportSkillsFromDirectory() {
return window['go']['main']['App']['ImportSkillsFromDirectory']();
}
export function LLMProfiles() {
return window['go']['main']['App']['LLMProfiles']();
}
export function MCPTools() {
return window['go']['main']['App']['MCPTools']();
}
export function OnlineAgents() {
return window['go']['main']['App']['OnlineAgents']();
}
@@ -106,10 +118,18 @@ export function SaveLLMProfile(arg1) {
return window['go']['main']['App']['SaveLLMProfile'](arg1);
}
export function SaveMCPTool(arg1) {
return window['go']['main']['App']['SaveMCPTool'](arg1);
}
export function SaveSkill(arg1) {
return window['go']['main']['App']['SaveSkill'](arg1);
}
export function SetAgentMCPTools(arg1, arg2) {
return window['go']['main']['App']['SetAgentMCPTools'](arg1, arg2);
}
export function SetAgentSkills(arg1, arg2) {
return window['go']['main']['App']['SetAgentSkills'](arg1, arg2);
}
@@ -129,3 +149,7 @@ export function Snapshot() {
export function TaskDetails(arg1) {
return window['go']['main']['App']['TaskDetails'](arg1);
}
export function TaskSessionTurns(arg1) {
return window['go']['main']['App']['TaskSessionTurns'](arg1);
}