Add agent configuration guide
This commit is contained in:
+22
-42
@@ -2,7 +2,7 @@
|
||||
"configVersion": 2,
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 3000,
|
||||
"port": 8787,
|
||||
"publicBaseUrl": ""
|
||||
},
|
||||
"policy": {
|
||||
@@ -22,80 +22,60 @@
|
||||
"backends": [
|
||||
{
|
||||
"id": "kimi",
|
||||
"command": "/home/ubuntu/.kimi-code/bin/kimi",
|
||||
"command": "/home/USER/.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",
|
||||
"skills": [],
|
||||
"defaultRole": "ROLE_ID",
|
||||
"roles": [
|
||||
{
|
||||
"id": "assistant",
|
||||
"id": "ROLE_ID",
|
||||
"backend": "kimi",
|
||||
"workspace": "/home/ubuntu/gori-space/gori-agent",
|
||||
"persona": "",
|
||||
"workspace": "/absolute/path/to/workspace",
|
||||
"persona": "Describe this agent's responsibilities and boundaries.",
|
||||
"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"]
|
||||
"appId": "",
|
||||
"appSecret": "",
|
||||
"verificationToken": "",
|
||||
"botNames": []
|
||||
},
|
||||
"wecom": {
|
||||
"enabled": false,
|
||||
"corpId": "wwxxxx",
|
||||
"agentId": "1000001",
|
||||
"secret": "replace-me"
|
||||
"corpId": "",
|
||||
"agentId": "",
|
||||
"secret": ""
|
||||
},
|
||||
"qq": {
|
||||
"enabled": false,
|
||||
"enabled": true,
|
||||
"connectionMode": "websocket",
|
||||
"appId": "1020xxxx",
|
||||
"clientSecret": "replace-me",
|
||||
"botSecret": "replace-me",
|
||||
"appId": "QQ_APP_ID",
|
||||
"clientSecret": "QQ_CLIENT_SECRET",
|
||||
"botSecret": "",
|
||||
"verifySignature": true,
|
||||
"botNames": ["Gori Agent"],
|
||||
"botNames": ["QQ_BOT_NAME"],
|
||||
"intents": 33554432,
|
||||
"shard": [0, 1]
|
||||
},
|
||||
"webhook": {
|
||||
"enabled": true,
|
||||
"secret": "replace-me"
|
||||
"enabled": false,
|
||||
"secret": ""
|
||||
},
|
||||
"weixin": {
|
||||
"enabled": false,
|
||||
"mode": "external-webhook",
|
||||
"secret": "replace-me"
|
||||
"secret": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user