dsh-trivium 0.4.15 → 0.4.16

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/lib/store.js +5 -3
  2. package/package.json +2 -2
package/lib/store.js CHANGED
@@ -114,7 +114,7 @@ export async function openWorkspaceDb(cwd) {
114
114
  if (dbs.has(key)) return dbs.get(key);
115
115
  mkdirSync(join(key, ".dsh"), { recursive: true });
116
116
  const Engine = loadEngine();
117
- const db = new Engine(dbPathFor(key), DIM);
117
+ const db = new Engine(dbPathFor(key), { dim: DIM });
118
118
  try {
119
119
  db.createIndex("type");
120
120
  db.createIndex("status");
@@ -191,8 +191,10 @@ function normalizeTql(rows) {
191
191
  return rows
192
192
  .map((row) => {
193
193
  const node = row?._ || row?.["*"] || row?.a || Object.values(row || {})[0];
194
- if (!node || typeof node.id !== "number") return null;
195
- return { id: node.id, payload: node.payload || {} };
194
+ if (!node) return null;
195
+ const id = Number(node.id);
196
+ if (!Number.isFinite(id)) return null;
197
+ return { id, payload: node.payload || {} };
196
198
  })
197
199
  .filter(Boolean);
198
200
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-trivium",
3
- "version": "0.4.15",
3
+ "version": "0.4.16",
4
4
  "description": "In-process graph memory for DeepSeek Harness, backed by TriviumDB.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -55,7 +55,7 @@
55
55
  "@deepseek-ai/dsh-tools": ">=0.1.0-rc.8 <0.1.1 || >=0.1.1-rc.2 <0.2.0"
56
56
  },
57
57
  "dependencies": {
58
- "triviumdb": "^0.8.2"
58
+ "triviumdb": "^0.8.4"
59
59
  },
60
60
  "keywords": [
61
61
  "dsh-plugin",