feat(policy-file): move channel overrides to standalone channelPoliciesFile with hot reload

This commit is contained in:
2026-02-26 00:28:34 +00:00
parent d6f908b813
commit 682d9a336e
8 changed files with 79 additions and 39 deletions

View File

@@ -13,20 +13,7 @@
"listMode": { "type": "string", "enum": ["human-list", "agent-list"], "default": "human-list" },
"humanList": { "type": "array", "items": { "type": "string" }, "default": [] },
"agentList": { "type": "array", "items": { "type": "string" }, "default": [] },
"channelPolicies": {
"type": "object",
"additionalProperties": {
"type": "object",
"additionalProperties": false,
"properties": {
"listMode": { "type": "string", "enum": ["human-list", "agent-list"] },
"humanList": { "type": "array", "items": { "type": "string" } },
"agentList": { "type": "array", "items": { "type": "string" } },
"endSymbols": { "type": "array", "items": { "type": "string" } }
}
},
"default": {}
},
"channelPoliciesFile": { "type": "string", "default": "~/.openclaw/whispergate-channel-policies.json" },
"bypassUserIds": { "type": "array", "items": { "type": "string" }, "default": [] },
"endSymbols": { "type": "array", "items": { "type": "string" }, "default": ["🔚"] },
"noReplyProvider": { "type": "string" },