diff --git a/.opencode/opencode.json b/.opencode/opencode.json index 5e3ed0e..2c3c7c6 100644 --- a/.opencode/opencode.json +++ b/.opencode/opencode.json @@ -1,5 +1,153 @@ { "$schema": "https://opencode.ai/config.json", + "provider": { + "zai": { + "npm": "@ai-sdk/openai-compatible", + "name": "Z.AI Coding Plan", + "options": { + "baseURL": "https://api.z.ai/api/coding/paas/v4", + "apiKey": "{env:ZAI_API_KEY}" + }, + "models": { + "glm-4.7": { + "name": "GLM 4.7 (build)" + }, + "glm-5.1": { + "name": "GLM 5.1 (thinking)", + "reasoning": true + } + } + } + }, + "model": "zai/glm-5.1", + "small_model": "zai/glm-4.7", + "agent": { + "orchestrator": { + "mode": "primary", + "model": "zai/glm-5.1", + "description": "Coordinator - Interfaccia unica con l'utente", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "pensante-architecture": { + "mode": "subagent", + "model": "zai/glm-5.1", + "description": "Spec-Driven Architecture", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "pensante-security": { + "mode": "subagent", + "model": "zai/glm-5.1", + "description": "Security Audit", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "pensante-design": { + "mode": "subagent", + "model": "zai/glm-5.1", + "description": "Design System", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "pensante-integration": { + "mode": "subagent", + "model": "zai/glm-5.1", + "description": "Integration & Data Flow", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "executer-implementation": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Code Implementation", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "executer-test": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "TDD Tests", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "executer-security-audit": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Security Audit Execution", + "permission": { + "edit": "deny", + "bash": "ask" + } + }, + "executer-security-fix": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Security Fixes", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "executer-ui": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "UI Implementation", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "executer-visual": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Visual Assets", + "permission": { + "edit": "allow", + "bash": "ask" + } + }, + "executer-build": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Build Scripts", + "permission": { + "edit": "allow", + "bash": "allow" + } + }, + "executer-worker": { + "mode": "subagent", + "model": "zai/glm-4.7", + "description": "Web Worker", + "permission": { + "edit": "allow", + "bash": "allow" + } + } + }, + "instructions": [ + "AGENTS.md" + ], + "permission": { + "skill": { + "*": "allow" + } + }, "mcp": { "sequential-thinking": { "type": "local", @@ -8,22 +156,6 @@ "-y", "@modelcontextprotocol/server-sequential-thinking" ] - }, - "context7": { - "type": "local", - "command": [ - "npx", - "-y", - "@context7/mcp-server" - ] - }, - "universal-skills": { - "type": "local", - "command": [ - "npx", - "-y", - "github:jacob-bd/universal-skills-manager" - ] } } -} +} \ No newline at end of file