feat: enhance agent skills sandbox configuration and availability

- Updated .env.example to set default sandbox mode to 'docker' and added timeout and docker image variables.
- Modified docker-compose files to include a sandbox service for building and pulling the sandbox image.
- Adjusted frontend API to reflect sandbox availability for skills, ensuring UI elements are conditionally displayed based on sandbox status.
- Implemented backend logic to disable skills when the sandbox is not enabled, improving error handling and user experience.
This commit is contained in:
wizardchen
2026-02-04 20:47:03 +08:00
committed by lyingbug
parent 3c6b129530
commit 2d6efec84f
7 changed files with 58 additions and 22 deletions
+11
View File
@@ -94,6 +94,17 @@ services:
- neo4j
- full
# Sandbox 镜像:仅用于 build/pull,非常驻服务;本地 app 执行 Skills 时按需 docker run 该镜像,用毕即释
sandbox:
image: wechatopenai/weknora-sandbox:${WEKNORA_VERSION:-latest}
build:
context: .
dockerfile: docker/Dockerfile.sandbox
profiles:
- sandbox
command: ["true"]
restart: "no"
docreader:
image: wechatopenai/weknora-docreader:latest
container_name: WeKnora-docreader-dev