102 lines
2.4 KiB
JSON
102 lines
2.4 KiB
JSON
{
|
|
"configVersion": 2,
|
|
"server": {
|
|
"host": "0.0.0.0",
|
|
"port": 3000,
|
|
"publicBaseUrl": ""
|
|
},
|
|
"policy": {
|
|
"allowedUsers": [],
|
|
"allowedChats": [],
|
|
"requireMentionInGroup": true
|
|
},
|
|
"acp": {
|
|
"stateFile": "",
|
|
"initializeTimeoutMs": 10000,
|
|
"promptTimeoutMs": 600000,
|
|
"cancelGraceMs": 5000,
|
|
"idleTimeoutMs": 1800000,
|
|
"sweepIntervalMs": 60000,
|
|
"maxProcesses": 8
|
|
},
|
|
"backends": [
|
|
{
|
|
"id": "kimi",
|
|
"command": "/home/ubuntu/.kimi-code/bin/kimi",
|
|
"args": ["acp"],
|
|
"env": {}
|
|
}
|
|
],
|
|
"skills": [
|
|
{
|
|
"id": "gori-update",
|
|
"file": "/home/ubuntu/gori-space/gori-deploy/.kimi-code/skills/gori-update/SKILL.md",
|
|
"maxBytes": 256000
|
|
}
|
|
],
|
|
"defaultRole": "assistant",
|
|
"roles": [
|
|
{
|
|
"id": "assistant",
|
|
"backend": "kimi",
|
|
"workspace": "/home/ubuntu/gori-space/gori-agent",
|
|
"persona": "",
|
|
"skills": [],
|
|
"policy": {
|
|
"permissionMode": "deny",
|
|
"allowedTools": [],
|
|
"allowedCommandPatterns": []
|
|
}
|
|
},
|
|
{
|
|
"id": "ops",
|
|
"backend": "kimi",
|
|
"workspace": "/home/ubuntu/gori-space",
|
|
"persona": "你是 Gori 团队运维角色。严格遵循 gori-update skill;有风险或需要外部确认时停止并报告。",
|
|
"skills": ["gori-update"],
|
|
"policy": {
|
|
"permissionMode": "allowlist",
|
|
"allowedTools": ["read", "grep", "glob", "bash"],
|
|
"allowedCommandPatterns": [
|
|
"^(?:.*\\\"command\\\":\\\")?(?:git (?:status|log|diff|pull --ff-only)|bash gori-deploy/(?:build\\.sh|dist/deploy-[a-z-]+\\.sh)|docker (?:ps|logs))"
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"platforms": {
|
|
"feishu": {
|
|
"enabled": false,
|
|
"appId": "cli_xxx",
|
|
"appSecret": "replace-me",
|
|
"verificationToken": "replace-me",
|
|
"botNames": ["Gori Agent"]
|
|
},
|
|
"wecom": {
|
|
"enabled": false,
|
|
"corpId": "wwxxxx",
|
|
"agentId": "1000001",
|
|
"secret": "replace-me"
|
|
},
|
|
"qq": {
|
|
"enabled": false,
|
|
"connectionMode": "websocket",
|
|
"appId": "1020xxxx",
|
|
"clientSecret": "replace-me",
|
|
"botSecret": "replace-me",
|
|
"verifySignature": true,
|
|
"botNames": ["Gori Agent"],
|
|
"intents": 33554432,
|
|
"shard": [0, 1]
|
|
},
|
|
"webhook": {
|
|
"enabled": true,
|
|
"secret": "replace-me"
|
|
},
|
|
"weixin": {
|
|
"enabled": false,
|
|
"mode": "external-webhook",
|
|
"secret": "replace-me"
|
|
}
|
|
}
|
|
}
|