@vellumai/assistant 0.10.8-dev.202607151732.6085b59 → 0.10.8-dev.202607151831.d3cec7b
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.
package/package.json
CHANGED
|
@@ -251,28 +251,17 @@ export async function getMemoryGraph(
|
|
|
251
251
|
|
|
252
252
|
const workspaceDir = getWorkspaceDir();
|
|
253
253
|
const pageIndex = await getPageIndex(workspaceDir);
|
|
254
|
-
//
|
|
255
|
-
//
|
|
256
|
-
//
|
|
257
|
-
//
|
|
258
|
-
//
|
|
259
|
-
const entries = pageIndex.entries;
|
|
260
|
-
|
|
261
|
-
// Synthetic rows (skills / CLI commands) carry `modifiedAt: 0` and have no
|
|
262
|
-
// on-disk page. Keyed by slug (not prefix) so a real user page that happens
|
|
263
|
-
// to live under a reserved prefix is NOT mistaken for a synthetic one.
|
|
264
|
-
const syntheticSlugs = new Set(
|
|
265
|
-
entries.filter((e) => e.modifiedAt <= 0).map((e) => e.slug),
|
|
266
|
-
);
|
|
254
|
+
// The Memory graph is the assistant's learned mind: concept pages and the
|
|
255
|
+
// links between them. Skills and plugins have their own dedicated pages, so
|
|
256
|
+
// synthetic capability rows (skills / CLI commands, which carry `modifiedAt: 0`)
|
|
257
|
+
// are excluded here — the map is about what the assistant knows, not what it
|
|
258
|
+
// can do.
|
|
259
|
+
const entries = pageIndex.entries.filter((e) => e.modifiedAt > 0);
|
|
267
260
|
|
|
268
261
|
// Raw (frontmatter + body) page reader, matching the v3 lane build. A read
|
|
269
262
|
// that rejects drops that article's authored/wikilink edges but keeps its
|
|
270
|
-
// numeric fallbacks.
|
|
271
|
-
// their guaranteed-miss read; a real page is read so its links are captured.
|
|
263
|
+
// numeric fallbacks.
|
|
272
264
|
const pageRaw = async (slug: Slug): Promise<string> => {
|
|
273
|
-
if (syntheticSlugs.has(slug)) {
|
|
274
|
-
return "";
|
|
275
|
-
}
|
|
276
265
|
const page = await readPage(workspaceDir, slug);
|
|
277
266
|
if (!page) {
|
|
278
267
|
throw new Error(`page not found: ${slug}`);
|
|
@@ -309,7 +298,6 @@ export async function getMemoryGraph(
|
|
|
309
298
|
entries,
|
|
310
299
|
staticAdjacency: staticGraph.adjacency,
|
|
311
300
|
learnedAdjacency: learnedGraph.adjacency,
|
|
312
|
-
pruneDisconnectedNonConcepts: true,
|
|
313
301
|
});
|
|
314
302
|
|
|
315
303
|
return { backend: BACKEND_MEMORY_V3, supported: true, ...assembled };
|