改为运行时控制画板 Agent 入口

新增前端运行时配置接口下发画板 Agent 开关

将画板 Agent 入口改为读取后端运行时配置

把开关变量改为 GENARRATIVE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR

补充前后端测试和生产环境变量文档
This commit is contained in:
2026-07-07 14:03:45 +08:00
parent 1d43783685
commit 2a98b60830
17 changed files with 227 additions and 23 deletions
+3 -3
View File
@@ -199,9 +199,9 @@ VITE_LLM_DEBUG_LOG="false"
# Set to "true" to expose local diagnostic panels, or "false" to hide them.
VITE_DEBUG_MODE=""
# Optional: show the image editor right-side Agent entry.
# Keep this off by default outside local development.
VITE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR="false"
# Optional: show the image editor right-side Agent entry at runtime.
# This is read by api-server and exposed through /api/runtime/frontend-config.
GENARRATIVE_ENABLE_IMAGE_EDITOR_AGENT_SIDEBAR="false"
# Optional: official VikingDB credentials for regenerating build-tag similarities
# with the Python embedding script. The script auto-loads `.env.local` and uses