@codemem/opencode-plugin 0.21.1 → 0.22.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,8 +37,8 @@ export const resolveUpgradeGuidance = ({ runner, runnerFrom }) => {
37
37
 
38
38
  if (normalizedRunner === "uv") {
39
39
  return {
40
- mode: "uv-dev",
41
- action: "In your codemem repo, pull latest changes and run `uv sync`, then restart OpenCode.",
40
+ mode: "repo-dev",
41
+ action: "In your codemem repo, pull latest changes and run `pnpm install` and `pnpm build`, then restart OpenCode.",
42
42
  note: "detected dev repo mode",
43
43
  };
44
44
  }
@@ -60,7 +60,7 @@ export const resolveUpgradeGuidance = ({ runner, runnerFrom }) => {
60
60
 
61
61
  return {
62
62
  mode: "generic",
63
- action: "Run `uv tool install --upgrade codemem`, then restart OpenCode.",
63
+ action: "Update codemem using your normal install method, then restart OpenCode.",
64
64
  note: "fallback guidance",
65
65
  };
66
66
  };
@@ -138,34 +138,18 @@ export const resolveAutoUpdatePlan = ({ runner, runnerFrom }) => {
138
138
  }
139
139
 
140
140
  if (normalizedRunner === "uvx") {
141
- if (!source) {
142
- return {
143
- allowed: false,
144
- reason: "missing-source",
145
- command: null,
146
- commandText: null,
147
- };
148
- }
149
- if (isPinnedGitSource(source)) {
150
- return {
151
- allowed: false,
152
- reason: "pinned-source",
153
- command: null,
154
- commandText: null,
155
- };
156
- }
157
141
  return {
158
- allowed: true,
159
- reason: null,
160
- command: ["uvx", "--refresh", "--from", source, "codemem", "version"],
161
- commandText: "uvx --refresh --from <source> codemem version",
142
+ allowed: false,
143
+ reason: !source ? "missing-source" : isPinnedGitSource(source) ? "pinned-source" : "custom-source",
144
+ command: null,
145
+ commandText: null,
162
146
  };
163
147
  }
164
148
 
165
149
  return {
166
150
  allowed: true,
167
151
  reason: null,
168
- command: ["uv", "tool", "install", "--upgrade", "codemem"],
169
- commandText: "uv tool install --upgrade codemem",
152
+ command: ["npm", "install", "-g", "codemem@latest"],
153
+ commandText: "npm install -g codemem@latest",
170
154
  };
171
155
  };
@@ -15,7 +15,7 @@ import {
15
15
 
16
16
  const TRUTHY_VALUES = ["1", "true", "yes"];
17
17
  const DISABLED_VALUES = ["0", "false", "off"];
18
- const PINNED_BACKEND_VERSION = "0.21.1";
18
+ const PINNED_BACKEND_VERSION = "0.21.2";
19
19
 
20
20
  const normalizeEnvValue = (value) => (value || "").toLowerCase();
21
21
  const envHasValue = (value, truthyValues) =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemem/opencode-plugin",
3
- "version": "0.21.1",
3
+ "version": "0.22.0-alpha.0",
4
4
  "description": "CodeMem plugin for OpenCode",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -18,7 +18,7 @@
18
18
  ".opencode/lib/"
19
19
  ],
20
20
  "dependencies": {
21
- "@opencode-ai/plugin": "1.3.2"
21
+ "@opencode-ai/plugin": "1.3.3"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",