From 26372c00916f88ffa8632924985a7e5a2e77c56e Mon Sep 17 00:00:00 2001 From: Tomohisa Takaoka Date: Thu, 19 Feb 2026 19:33:58 -0800 Subject: [PATCH] fix: pin @opencode-ai/sdk to <1.2.7 to fix broken v2 exports @opencode-ai/sdk versions 1.2.7+ have a broken build where dist/v2/ directory is missing (files are incorrectly placed under dist/src/v2/ instead). This causes 'Cannot find module' errors when running takt installed via npm install -g. The v2 export path '@opencode-ai/sdk/v2' resolves to dist/v2/index.js per the package's exports map, but that file does not exist in 1.2.7+. Pinning to <1.2.7 as a workaround until the SDK package is fixed. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b7a42fd..5c9e96d 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "dependencies": { "@anthropic-ai/claude-agent-sdk": "^0.2.47", "@openai/codex-sdk": "^0.103.0", - "@opencode-ai/sdk": "^1.1.53", + "@opencode-ai/sdk": ">=1.1.53 <1.2.7", "chalk": "^5.3.0", "commander": "^12.1.0", "update-notifier": "^7.3.1",