openbot
|
f876f2723d
|
feat(admin): write ops — channel/agent config editing + IM<->agent binding
- admin_ops.AdminWrites: atomic config.json writes (tmp+rename), field
validation (required/optional/unknown), secrets stay server-side
- channels: upsert/delete for wecom|wecom-app|weixin; sets pending_restart
hint (long-lived IM connections need supervisor restart)
- agents: upsert hot-registers AgentSpec into live SessionManager (lazy
spawn); delete guards last-agent; cmd string->list normalization
- binding: reuse mgr.switch() (cross-agent history migration honored) +
unbind; /api/* POST endpoints auth-gated (fail-closed)
- UI: Ops tab — 3 forms (channel w/ per-type fields, agent, bind) with
toasts, secret inputs masked, pending-restart banner
|
2026-10-13 16:50:15 +08:00 |
|