opencode-mempalace-persistence 1.2.1 → 1.2.2

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ const VENV_PYTHON = join(HOME, ".local/share/pipx/venvs/mempalace/bin/python3");
8
8
  const MEMPALACE_BIN = join(HOME, ".local/bin/mempalace");
9
9
  const OPENCODE_DB = join(HOME, ".local/share/opencode/opencode.db");
10
10
  const STATE_FILE = join(HOME, ".mempalace/sync_state.json");
11
- const OPENCODE_CONFIG = join(HOME, ".config/opencode/opencode.json");
11
+ const PLUGIN_CONFIG = join(HOME, ".mempalace/plugin-config.json");
12
12
  const IDENTITY_FILE = join(HOME, ".mempalace/identity.txt");
13
13
  const OUT_DIR = "/tmp/oc-sessions";
14
14
  const TMP_SCRIPT = "/tmp/oc-plugin-query.py";
@@ -45,9 +45,8 @@ function hasText(parts) {
45
45
  }
46
46
  function isAutoInjectEnabled() {
47
47
  try {
48
- const raw = readFileSync(OPENCODE_CONFIG, "utf-8");
49
- const cfg = JSON.parse(raw);
50
- return !!cfg?.mempalace?.autoInjectContext;
48
+ const raw = readFileSync(PLUGIN_CONFIG, "utf-8");
49
+ return !!JSON.parse(raw)?.autoInjectContext;
51
50
  }
52
51
  catch {
53
52
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-mempalace-persistence",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "OpenCode plugin — auto-sync conversations to MemPalace memory in real-time. No forced wings, KG extraction via MCP tools.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",