Add ACP-backed role sessions
This commit is contained in:
+49
-14
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"configVersion": 2,
|
||||
"server": {
|
||||
"host": "0.0.0.0",
|
||||
"port": 3000,
|
||||
@@ -9,23 +10,57 @@
|
||||
"allowedChats": [],
|
||||
"requireMentionInGroup": true
|
||||
},
|
||||
"defaultAgent": "echo",
|
||||
"agents": [
|
||||
"acp": {
|
||||
"stateFile": "",
|
||||
"initializeTimeoutMs": 10000,
|
||||
"promptTimeoutMs": 600000,
|
||||
"cancelGraceMs": 5000,
|
||||
"idleTimeoutMs": 1800000,
|
||||
"sweepIntervalMs": 60000,
|
||||
"maxProcesses": 8
|
||||
},
|
||||
"backends": [
|
||||
{
|
||||
"name": "echo",
|
||||
"command": "node",
|
||||
"args": ["scripts/echo-agent.js"],
|
||||
"inputMode": "stdin",
|
||||
"timeoutMs": 30000,
|
||||
"outputMaxBytes": 64000
|
||||
"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": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "kimi",
|
||||
"command": "kimi",
|
||||
"args": ["-p"],
|
||||
"inputMode": "arg",
|
||||
"timeoutMs": 120000,
|
||||
"outputMaxBytes": 64000
|
||||
"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": {
|
||||
|
||||
Reference in New Issue
Block a user