From 28b0a75705a8d139a0010000e3e4814366b467c9 Mon Sep 17 00:00:00 2001 From: Oded Winberger Date: Tue, 31 Mar 2026 22:10:30 +0200 Subject: [PATCH] fix(package): add ./server export for OpenCode-Go plugin compatibility OpenCode-Go's resolveExportPath checks exports["./server"] before falling back to the main field. Without this entry, fs.realpathSync resolves the entry path relative to CWD instead of the package directory, triggering a containment security check failure: ERROR path=oh-my-opencode error=Plugin resolved server entry outside plugin directory Fixes #2966 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 3002e1fc6..56e55921b 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "types": "./dist/index.d.ts", "import": "./dist/index.js" }, + "./server": "./dist/index.js", "./schema.json": "./dist/oh-my-opencode.schema.json" }, "scripts": {