diff --git a/bun.lock b/bun.lock index c43ae306..32d8e221 100644 --- a/bun.lock +++ b/bun.lock @@ -11,8 +11,8 @@ "@code-yeongyu/comment-checker": "^0.6.1", "@modelcontextprotocol/sdk": "^1.25.1", "@openauthjs/openauth": "^0.4.3", - "@opencode-ai/plugin": "^1.0.162", - "@opencode-ai/sdk": "^1.0.162", + "@opencode-ai/plugin": "^1.1.1", + "@opencode-ai/sdk": "^1.1.1", "commander": "^14.0.2", "hono": "^4.10.4", "js-yaml": "^4.1.1", @@ -84,9 +84,9 @@ "@openauthjs/openauth": ["@openauthjs/openauth@0.4.3", "", { "dependencies": { "@standard-schema/spec": "1.0.0-beta.3", "aws4fetch": "1.0.20", "jose": "5.9.6" }, "peerDependencies": { "arctic": "^2.2.2", "hono": "^4.0.0" } }, "sha512-RlnjqvHzqcbFVymEwhlUEuac4utA5h4nhSK/i2szZuQmxTIqbGUxZ+nM+avM+VV4Ing+/ZaNLKILoXS3yrkOOw=="], - "@opencode-ai/plugin": ["@opencode-ai/plugin@1.0.162", "", { "dependencies": { "@opencode-ai/sdk": "1.0.162", "zod": "4.1.8" } }, "sha512-tiJw7SCfSlG/3tY2O0J2UT06OLuazOzsv1zYlFbLxLy/EVedtW0pzxYalO20a4e//vInvOXFkhd2jLyB5vNEVA=="], + "@opencode-ai/plugin": ["@opencode-ai/plugin@1.1.1", "", { "dependencies": { "@opencode-ai/sdk": "1.1.1", "zod": "4.1.8" } }, "sha512-OZGvpDal8YsSo6dnatHfwviSToGZ6mJJyEKZGxUyWDuGCP7VhcoPkoM16ktl7TCVHkDK+TdwY9tKzkzFqQNc5w=="], - "@opencode-ai/sdk": ["@opencode-ai/sdk@1.0.162", "", {}, "sha512-+XqRErBUt9eb1m3i/7WkZc/QCKCCjTaGV3MvhLhs/CUwbUn767D/ugzcG/i2ec8j/4nQmjJbjPDRmrQfvF1Qjw=="], + "@opencode-ai/sdk": ["@opencode-ai/sdk@1.1.1", "", {}, "sha512-PfXujMrHGeMnpS8Gd2BXSY+zZajlztcAvcokf06NtAhd0Mbo/hCLXgW0NBCQ+3FX3e/G2PNwz2DqMdtzyIZaCQ=="], "@oslojs/asn1": ["@oslojs/asn1@1.0.0", "", { "dependencies": { "@oslojs/binary": "1.0.0" } }, "sha512-zw/wn0sj0j0QKbIXfIlnEcTviaCzYOY3V5rAyjR6YtOByFtJiT574+8p9Wlach0lZH9fddD4yb9laEAIl4vXQA=="], diff --git a/package.json b/package.json index 9bb2be34..1f19ec70 100644 --- a/package.json +++ b/package.json @@ -56,8 +56,8 @@ "@code-yeongyu/comment-checker": "^0.6.1", "@modelcontextprotocol/sdk": "^1.25.1", "@openauthjs/openauth": "^0.4.3", - "@opencode-ai/plugin": "^1.0.162", - "@opencode-ai/sdk": "^1.0.162", + "@opencode-ai/plugin": "^1.1.1", + "@opencode-ai/sdk": "^1.1.1", "commander": "^14.0.2", "hono": "^4.10.4", "js-yaml": "^4.1.1", diff --git a/src/agents/document-writer.ts b/src/agents/document-writer.ts index 753173bc..5fc9f796 100644 --- a/src/agents/document-writer.ts +++ b/src/agents/document-writer.ts @@ -20,7 +20,7 @@ export function createDocumentWriterAgent( "A technical writer who crafts clear, comprehensive documentation. Specializes in README files, API docs, architecture docs, and user guides. MUST BE USED when executing documentation tasks from ai-todo list plans.", mode: "subagent" as const, model, - tools: { background_task: false }, + permission: { background_task: "deny" }, prompt: ` You are a TECHNICAL WRITER with deep engineering background who transforms complex codebases into crystal-clear documentation. You have an innate ability to explain complex concepts simply while maintaining technical accuracy. diff --git a/src/agents/explore.ts b/src/agents/explore.ts index 6e25be6d..4d04c0ff 100644 --- a/src/agents/explore.ts +++ b/src/agents/explore.ts @@ -30,7 +30,7 @@ export function createExploreAgent(model: string = DEFAULT_MODEL): AgentConfig { mode: "subagent" as const, model, temperature: 0.1, - tools: { write: false, edit: false, background_task: false }, + permission: { write: "deny", edit: "deny", background_task: "deny" }, prompt: `You are a codebase search specialist. Your job: find files and code, return actionable results. ## Your Mission diff --git a/src/agents/oracle.ts b/src/agents/oracle.ts index e0990d24..c240250a 100644 --- a/src/agents/oracle.ts +++ b/src/agents/oracle.ts @@ -103,7 +103,7 @@ export function createOracleAgent(model: string = DEFAULT_MODEL): AgentConfig { mode: "subagent" as const, model, temperature: 0.1, - tools: { write: false, edit: false, task: false, background_task: false }, + permission: { write: "deny", edit: "deny", task: "deny", background_task: "deny" }, prompt: ORACLE_SYSTEM_PROMPT, }