@codemem/opencode-plugin 0.39.0 → 0.40.0-alpha.1

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.
@@ -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.39.0";
18
+ const PINNED_BACKEND_VERSION = "0.40.0-alpha.1";
19
19
  const COMPAT_CHECK_DELAY_MS = 1500;
20
20
  const COMPAT_CHECK_CACHE_TTL_MS = 5 * 60 * 1000;
21
21
  const CODEMEM_CONTEXT_PART_ID_PREFIX = "codemem-context-";
@@ -886,7 +886,14 @@ const detectRunner = ({ cwd, envRunner }) => {
886
886
  }
887
887
  // Prefer the TS codemem if installed globally, fall back to npx
888
888
  try {
889
- const versionOutput = execSync("codemem --version", { encoding: "utf-8", timeout: 3000 }).trim();
889
+ const versionOutput = execSync("codemem --version", {
890
+ encoding: "utf-8",
891
+ timeout: 3000,
892
+ // Suppress shell "not found" noise when codemem is not on PATH; the
893
+ // catch below falls back to npx. Without this, stderr leaks to the
894
+ // terminal on every OpenCode startup for npx-only installs.
895
+ stdio: ["ignore", "pipe", "ignore"],
896
+ }).trim();
890
897
  // Accept any global codemem at or above the pinned backend version, so a
891
898
  // newer global install is used instead of silently downgrading to
892
899
  // `npx codemem@<pin>` (the old check only matched the exact pin or the
@@ -1946,6 +1953,9 @@ export const OpencodeMemPlugin = async ({
1946
1953
  cwd: runnerFrom,
1947
1954
  timeout: 500,
1948
1955
  encoding: "utf-8",
1956
+ // Suppress "fatal: not a git repository" when the working directory is
1957
+ // not a git repo. The catch below leaves version as "unknown".
1958
+ stdio: ["ignore", "pipe", "ignore"],
1949
1959
  }).trim();
1950
1960
  } catch (err) {
1951
1961
  // Ignore - version will remain 'unknown'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codemem/opencode-plugin",
3
- "version": "0.39.0",
3
+ "version": "0.40.0-alpha.1",
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.17.13"
21
+ "@opencode-ai/plugin": "1.18.4"
22
22
  },
23
23
  "repository": {
24
24
  "type": "git",