opencode-fractal-memory 0.6.6 → 0.6.7

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.
@@ -4,11 +4,10 @@ import * as os from "node:os";
4
4
  import { Database } from "bun:sqlite";
5
5
  import { memLog } from "../logging";
6
6
  export const DB_PATHS = {};
7
- export function initDbPaths(projectDir) {
8
- const globalDbPath = path.join(os.homedir(), ".config", "opencode", "memory.db");
9
- const projectDbPath = path.join(projectDir, ".opencode", "memory.db");
10
- DB_PATHS.global = globalDbPath;
11
- DB_PATHS.project = projectDbPath;
7
+ export function initDbPaths(_projectDir) {
8
+ const unifiedDbPath = path.join(os.homedir(), ".config", "opencode", "memory.db");
9
+ DB_PATHS.global = unifiedDbPath;
10
+ DB_PATHS.project = unifiedDbPath;
12
11
  }
13
12
  export function openDb(scope) {
14
13
  const dbPath = DB_PATHS[scope] || scope;
@@ -88,8 +87,9 @@ export function queryNodes(scope) {
88
87
  sticky, confidence, created_at, updated_at, parent_ids,
89
88
  LENGTH(content) as content_length, metadata
90
89
  FROM memory_nodes
90
+ WHERE scope = ?
91
91
  ORDER BY level, importance DESC
92
- `).all();
92
+ `).all(scope);
93
93
  db.close();
94
94
  return rows.map((r) => rowToNode(r));
95
95
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-fractal-memory",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "description": "Fractal memory system for OpenCode with semantic search and automatic compression.",
5
5
  "main": "dist/plugin.js",
6
6
  "exports": {