From 87fa3498f83f22919ca3545ccf2edcaab610f9a7 Mon Sep 17 00:00:00 2001 From: mcmunder Date: Wed, 18 Mar 2026 21:28:51 +0100 Subject: [PATCH 1/4] fix: add main field and relax peer dependency for plugin loading --- .changeset/fix-plugin-loading.md | 7 +++++++ package.json | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .changeset/fix-plugin-loading.md diff --git a/.changeset/fix-plugin-loading.md b/.changeset/fix-plugin-loading.md new file mode 100644 index 0000000..fa37fc0 --- /dev/null +++ b/.changeset/fix-plugin-loading.md @@ -0,0 +1,7 @@ +--- +"@mcmunder/opencode-git-memory": patch +--- + +fix: add `main` field and relax peer dependency for plugin loading compatibility + +All other OpenCode plugins use the `main` field for entry point resolution. Our plugin only had `exports`, which OpenCode's plugin loader may not resolve. Also relaxed `peerDependencies` from an exact pin (`1.2.27`) to `>=1.1.0` to match the convention used by other plugins and avoid conflicts with the SDK version shipped by OpenCode. diff --git a/package.json b/package.json index 85fd9dc..16d7699 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.0.2", "description": "An OpenCode plugin that gives your AI agent conversation context scoped to your branch and traveling with your code.", "type": "module", + "main": "./dist/index.js", "exports": { ".": { "import": "./dist/index.js", @@ -45,7 +46,7 @@ "simple-git-hooks": "^2.13.1" }, "peerDependencies": { - "@opencode-ai/plugin": "1.2.27", + "@opencode-ai/plugin": ">=1.1.0", "typescript": "^5" } } From 87ac19d5a7df1178e5696f0c7207b4777ac1c0ad Mon Sep 17 00:00:00 2001 From: mcmunder Date: Wed, 18 Mar 2026 21:32:44 +0100 Subject: [PATCH 2/4] docs: add changeset --- .changeset/open-symbols-exist.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/open-symbols-exist.md diff --git a/.changeset/open-symbols-exist.md b/.changeset/open-symbols-exist.md new file mode 100644 index 0000000..3bc7c70 --- /dev/null +++ b/.changeset/open-symbols-exist.md @@ -0,0 +1,5 @@ +--- +"@mcmunder/opencode-git-memory": patch +--- + +Add main field to package.json to hopefully fix plugin loading. From 0cf42b2c66422358b12a1e72a520227222fcb45e Mon Sep 17 00:00:00 2001 From: mcmunder Date: Wed, 18 Mar 2026 21:33:20 +0100 Subject: [PATCH 3/4] docs: delete duplicate changeset --- .changeset/fix-plugin-loading.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .changeset/fix-plugin-loading.md diff --git a/.changeset/fix-plugin-loading.md b/.changeset/fix-plugin-loading.md deleted file mode 100644 index fa37fc0..0000000 --- a/.changeset/fix-plugin-loading.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@mcmunder/opencode-git-memory": patch ---- - -fix: add `main` field and relax peer dependency for plugin loading compatibility - -All other OpenCode plugins use the `main` field for entry point resolution. Our plugin only had `exports`, which OpenCode's plugin loader may not resolve. Also relaxed `peerDependencies` from an exact pin (`1.2.27`) to `>=1.1.0` to match the convention used by other plugins and avoid conflicts with the SDK version shipped by OpenCode. From 7e4ae04c62ec8ec1f7021ca14c544f25408c130a Mon Sep 17 00:00:00 2001 From: mcmunder Date: Wed, 18 Mar 2026 21:34:13 +0100 Subject: [PATCH 4/4] fix: use ^1.1.0 peer dep range to exclude future breaking versions --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 16d7699..f5a7b79 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "simple-git-hooks": "^2.13.1" }, "peerDependencies": { - "@opencode-ai/plugin": ">=1.1.0", + "@opencode-ai/plugin": "^1.1.0", "typescript": "^5" } }