Refactor runtime around isolated bot instances

This commit is contained in:
zenord
2026-08-16 23:45:09 +08:00
parent 914579a94c
commit f9fb4ef776
51 changed files with 2355 additions and 1459 deletions
+36 -63
View File
@@ -1,64 +1,35 @@
{
"configVersion": 2,
"server": {
"host": "0.0.0.0",
"port": 8787,
"publicBaseUrl": ""
},
"policy": {
"allowedUsers": [],
"allowedChats": [],
"requireMentionInGroup": true
},
"acp": {
"stateFile": "",
"initializeTimeoutMs": 10000,
"promptTimeoutMs": 600000,
"cancelGraceMs": 5000,
"idleTimeoutMs": 1800000,
"sweepIntervalMs": 60000,
"maxProcesses": 8
},
"backends": [
{
"configVersion": 3,
"bot": {
"id": "BOT_ID",
"workspace": "/absolute/path/to/workspace",
"persona": "Describe this bot's responsibilities and boundaries.",
"agent": {
"id": "kimi",
"command": "/home/USER/.kimi-code/bin/kimi",
"args": ["acp"],
"env": {}
}
],
"skills": [],
"defaultRole": "ROLE_ID",
"roles": [
{
"id": "ROLE_ID",
"backend": "kimi",
"workspace": "/absolute/path/to/workspace",
"persona": "Describe this agent's responsibilities and boundaries.",
"skills": [],
"policy": {
"permissionMode": "deny",
"allowedTools": [],
"allowedCommandPatterns": []
}
}
],
"platforms": {
"feishu": {
"enabled": false,
"appId": "",
"appSecret": "",
"verificationToken": "",
"botNames": []
},
"wecom": {
"enabled": false,
"corpId": "",
"agentId": "",
"secret": ""
"skills": [],
"permissions": {
"mode": "deny",
"allowedTools": [],
"allowedCommandPatterns": []
}
},
"gateway": {
"server": {
"host": "0.0.0.0",
"port": 8787,
"publicBaseUrl": ""
},
"qq": {
"enabled": true,
"policy": {
"allowedUsers": [],
"allowedChats": [],
"requireMentionInGroup": true
},
"platform": {
"type": "qq",
"connectionMode": "websocket",
"appId": "QQ_APP_ID",
"clientSecret": "QQ_CLIENT_SECRET",
@@ -67,15 +38,17 @@
"botNames": ["QQ_BOT_NAME"],
"intents": 33554432,
"shard": [0, 1]
},
"webhook": {
"enabled": false,
"secret": ""
},
"weixin": {
"enabled": false,
"mode": "external-webhook",
"secret": ""
}
},
"runtime": {
"acp": {
"stateFile": "",
"initializeTimeoutMs": 10000,
"promptTimeoutMs": 7200000,
"cancelGraceMs": 5000,
"idleTimeoutMs": 1800000,
"sweepIntervalMs": 60000,
"maxProcesses": 8
}
}
}