feat(agent): unify agnet→agent and implement client/runtime unification spec v0.1 core
按桌面客户端统一方案 v0.1 + agent_management Sub Mode Runtime 对接,强制全量统一,不留兼容。
命名统一(强制,无兼容):
- 全仓 agnet/Agnet/AGNET → agent/Agent/AGENT:后端 Go(路由 /api/agent/*、env AGENT_*、
结构体/函数、19 个文件改名)、前端(agent-console/agent-hub、/api/agent 调用、i18n)、
DB(表 agent_*、列 agent_id)、compose/.env、文档、脚本。
- DB 加幂等迁移 renameAgnetTablesToAgent():启动时 rename 老 agnet_* 表/列,保住生产数据。
统一方案核心(10 项):
- callback 统一 /api/agent/callbacks/runtime-events(路由/广播URL/函数名)。
- artifact 兜底判定改用 Runtime 权威信号 metadata.synthesized(§7.2)+ 结构化 artifact_type。
- Manager→Runtime 路径对齐 /api/agent/sub-agile/deployments(§2.2),{deployment_id} 回退 swarm_id。
- 状态裁决 display_status:Manager 唯一裁判,completed 无有效产物→needs_codegen/
completed_without_deliverable(§10.6),接入 detail/timeline/workflow。
- GET /api/heicode/capabilities 能力发现(§6)。
- 模型策略 per_role(role_models)+ 收集 allowed_model_ids(§9)。
- resource_binding_id→secret_ref 服务端解析,客户端不再 inline secret_ref(§17.6)。
- 客户端统一路由层 /api/heicode/sub-agile|swarm/*(task≡deployment,复用控制面)+ workflow 投影。
- 日志分层 user_logs/debug_logs(§13)。
验证:go build ./... + go test(controller/router/model/middleware)全绿;前端 tsc -b + rsbuild build 通过。
待部署:VM .env 的 AGNET_*→AGENT_*;启动迁移自动 rename 表;其他三仓库需同步切到 /api/agent。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
首屏辅助信息:
|
||||
|
||||
- 绑定 Git 与云资源
|
||||
- 生成子 Agnet 团队
|
||||
- 生成子 Agent 团队
|
||||
- 密钥保管器托管凭证
|
||||
- CodeGW 统一模型与用量
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
| 想法转任务 | 把自然语言目标转成产品文档、任务和角色 |
|
||||
| 资源绑定 | 接入 Git、SK、项目文档、云账号和云资源 |
|
||||
| 权限控制 | 按角色分配 Resource Grant 和审批规则 |
|
||||
| 执行闭环 | 子 Agnet 持续推进开发、测试、修复和部署,可调用 SK 工具,Heicode 展示日志和审计 |
|
||||
| 执行闭环 | 子 Agent 持续推进开发、测试、修复和部署,可调用 SK 工具,Heicode 展示日志和审计 |
|
||||
|
||||
### 4. 工作流区
|
||||
|
||||
@@ -120,7 +120,7 @@
|
||||
|
||||
- 长期密钥进入密钥保管器。
|
||||
- Heicode 服务端数据库只保存 `secret_ref`。
|
||||
- 子 Agnet 只拿短期凭证。
|
||||
- 子 Agent 只拿短期凭证。
|
||||
- 高危操作在客户端审批。
|
||||
- 日志、Markdown、前端响应不显示明文密钥。
|
||||
|
||||
@@ -134,14 +134,14 @@
|
||||
|------|------|
|
||||
| Heicode Manager | 资源、部署、状态、用量和审计辅助控制台 |
|
||||
| 客户端 | 主对话体验、任务推进和高危审批 |
|
||||
| Agnet 平台 | AKS 执行层 |
|
||||
| Agent 平台 | AKS 执行层 |
|
||||
| CodeGW | 模型网关与用量 |
|
||||
| Azure Key Vault | 密钥保管器 |
|
||||
|
||||
补充说明:
|
||||
|
||||
- 用户主要在客户端对话和推进任务。
|
||||
- Manager 主要承担资源准备、Agnet 部署、用量和审计辅助。
|
||||
- Manager 主要承担资源准备、Agent 部署、用量和审计辅助。
|
||||
|
||||
### 7. 适用场景区
|
||||
|
||||
|
||||
Reference in New Issue
Block a user