Dev 环境部署全景

Clawline Client Web 拆分。

WebBot 梳理了 *.dev.dora.restry.cn 开发环境的完整部署架构。所有服务运行在 matrix 机器上,通过 Caddy 反向代理 统一路由。

域名端口pm2 服务内容负责 Agent
web.dev.dora.restry.cn3026dev-webclient-web(React)clawline-client-web
gw.dev.dora.restry.cn3020dev-gwgateway admin 静态页clawline-client-web
docs.dev.dora.restry.cn3029dev-docsVitePress 文档clawline-client-web
portal.dev.dora.restry.cn3002portal-api + portal-staticPortal 后端 API + 静态前端research-portal
bi.dev.dora.restry.cn8899bi-backend + dev-biBI 服务research-bi
craft.dev.dora.restry.cndev-craftClawcraft(部分请求转发 OWL)research-craft
channel.dev.dora.restry.cn3023dev-channel-h5Channel H5 示例页clawline-channel

Gateway Admin 重新部署

gw.dev.dora.restry.cn 的管理端经历了一次重大部署迁移:

  • 原状:pm2 dev-gw 从旧的 workspace-clawline-gateway/repo/admin/dist serve 静态文件,JS 资源过旧缺少 AI Settings 按钮
  • 根因:research agent 之前 build 了新的前端但部署到了错误目录
  • 迁移:pm2 dev-gw 从旧 workspace-clawline-gateway 切换到 workspace-clawline-client-web/gateway-repo/public,完成从独立 gateway 仓库到 WebBot 管辖的转移
  • 遗留问题:旧版 Logto token 残留导致白屏,需手动清除浏览器 logto 缓存后重新登录

Gateway 全流程测试(Claude Code CLI)

researcher agent 通过 tmux 管理的 Claude Code CLI(session 401d2e5f)对 Gateway 进行了全流程本地测试:

功能测试结果
Admin UI✅ 正常
AI Settings GET/PUT✅ 返回默认值 / DB 覆盖生效
Suggestions API✅ 返回 7 条建议
Voice Refine API✅ 语音转写清理正常
消息持久化✅ Supabase 有真实消息

Bug 修复:测试中发现 max_tokensmax_completion_tokens 兼容性问题(GPT-5.4-mini 不支持旧参数),commit 12bb93d 修复。