core 接入 agent-executor:terminal 工具与技能执行/依赖安装支持远端执行(cfg.executor.url 或 EXECUTOR_URL/TOKEN 环境变量,SSE 收流、run.procs 注册 remoteKill 句柄与取消/超时联动、engine.killRunProcs 兼容);设置页服务状态显示命令执行方式;附 remote-exec 集成测试

This commit is contained in:
2026-09-06 08:21:41 +08:00
parent 232f768783
commit 548ce651f6
10 changed files with 269 additions and 4 deletions
+9 -1
View File
@@ -40,7 +40,15 @@ workspace_root: "./data/tasks"
# 数据根目录:db(默认 .agent.db)与启动 prompt dump(prompt.txt)放这里;相对路径按启动目录展开。
# 容器部署建议指到挂载卷内(如 /workspace/data),否则重建容器会丢数据。
data_root: "./data"
# db_path: "/some/where/.agent.db" # 显式配置优先;缺省为 data_root/.agent.db
# db_path: "/workspace/data/.agent.db" # 显式配置优先;缺省为 data_root/.agent.db
# agent-executor(独立命令执行容器,见根目录 executor/):url 非空时 terminal 工具与技能命令
# 都发到该服务执行(SSE 实时回传),core 镜像不再携带 python 等重工具链;
# 留空则本地 spawn(裸机开发)。两侧需同路径挂载 ./tasks、./skills;
# compose 已用环境变量 EXECUTOR_URL/EXECUTOR_TOKEN 注入,通常无需在这里配。
# executor:
# url: "http://agent-executor:9000"
# token: "change-me" # 选填;executor 侧配同值才校验
# 日志等级(改后重启生效):debug < info < warn < error < none,只输出 ≥ 该等级的日志;none=全部静默。
# info(默认)=关键动作概述;debug 另加用户/AI 消息全文、工具调用参数/结果等排查细节。