@lmzhen/dsh-evolution-learning-graph 0.3.63 → 0.3.64

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/index.js +6 -7
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -183,14 +183,13 @@ async function resolveGraphNode(parsed, repository) {
183
183
  message: content
184
184
  };
185
185
  }
186
- const entries = await repository.readMemory(parsed.source);
187
- const entry = entries[parsed.index];
188
- return entry === void 0 ? {
189
- ok: false,
190
- message: `Memory ${parsed.source}[${parsed.index}] does not exist (${entries.length} entries).`
191
- } : {
186
+ const check = readMemoryIndex(parsed, await repository.readMemory(parsed.source));
187
+ return check.ok ? {
192
188
  ok: true,
193
- message: entry
189
+ message: check.entry ?? ""
190
+ } : {
191
+ ok: false,
192
+ message: check.message ?? `Memory ${parsed.source}[${parsed.index}] is not available.`
194
193
  };
195
194
  }
196
195
  /**
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lmzhen/dsh-evolution-learning-graph",
3
3
  "description": "Learning graph over skills and memory (community build)",
4
- "version": "0.3.63",
4
+ "version": "0.3.64",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,8 +31,8 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "@deepseek-ai/schemastery": "^3.18.1",
34
- "@lmzhen/dsh-evolution-approval": "^0.3.63",
35
- "@lmzhen/dsh-evolution-core": "^0.3.63"
34
+ "@lmzhen/dsh-evolution-approval": "^0.3.64",
35
+ "@lmzhen/dsh-evolution-core": "^0.3.64"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",