@swarmvaultai/engine 3.16.1 → 3.18.0
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/dist/chunk-2CH2WWS4.js +1359 -0
- package/dist/chunk-2PN46RDI.js +26846 -0
- package/dist/chunk-333AMRSV.js +1056 -0
- package/dist/chunk-3GVEUYQZ.js +1641 -0
- package/dist/chunk-4MSSM2GH.js +1476 -0
- package/dist/chunk-563TZ4TZ.js +26573 -0
- package/dist/chunk-5GEPTIZE.js +26010 -0
- package/dist/chunk-5HNZ2WQI.js +1341 -0
- package/dist/chunk-5Q4IV4O3.js +1336 -0
- package/dist/chunk-65IRGGXX.js +27576 -0
- package/dist/chunk-6MO57J5C.js +988 -0
- package/dist/chunk-6UPHDGEB.js +1073 -0
- package/dist/chunk-75BU5TQ6.js +1690 -0
- package/dist/chunk-7O2HJSWQ.js +1686 -0
- package/dist/chunk-7QHDATCQ.js +1673 -0
- package/dist/chunk-B3FC4J3P.js +1214 -0
- package/dist/chunk-BTWPJEP2.js +1421 -0
- package/dist/chunk-CG67P2HB.js +1420 -0
- package/dist/chunk-CSPDMCON.js +26846 -0
- package/dist/chunk-CVFY54CF.js +24893 -0
- package/dist/chunk-CWLDFLH2.js +1163 -0
- package/dist/chunk-DAJAZPPO.js +26865 -0
- package/dist/chunk-DCSXDZAF.js +27698 -0
- package/dist/chunk-EEWB4WGH.js +1056 -0
- package/dist/chunk-EXD4RWT3.js +1131 -0
- package/dist/chunk-F7HZZ3VM.js +931 -0
- package/dist/chunk-FD3LJQ4T.js +1216 -0
- package/dist/chunk-G2TH6ZTA.js +1468 -0
- package/dist/chunk-H3CDZYRE.js +1701 -0
- package/dist/chunk-HFU5S5NO.js +838 -0
- package/dist/chunk-HKU2T5JX.js +25213 -0
- package/dist/chunk-HOJ7NSYC.js +937 -0
- package/dist/chunk-HORJDLXV.js +27614 -0
- package/dist/chunk-HRRPWXRZ.js +1335 -0
- package/dist/chunk-HW72C7O2.js +1690 -0
- package/dist/chunk-IAEYFTUS.js +1159 -0
- package/dist/chunk-IHMJCCXR.js +1146 -0
- package/dist/chunk-JEWLYIHN.js +27619 -0
- package/dist/chunk-JJDJF2P3.js +27012 -0
- package/dist/chunk-JTRE7C7P.js +26062 -0
- package/dist/chunk-L7DKPPV4.js +27339 -0
- package/dist/chunk-LEUV6TWJ.js +1131 -0
- package/dist/chunk-MB7HPUTR.js +1364 -0
- package/dist/chunk-MZSUYTSL.js +998 -0
- package/dist/chunk-N56FAH4N.js +1404 -0
- package/dist/chunk-NCSZ4AKP.js +1057 -0
- package/dist/chunk-NECZ4MUE.js +1416 -0
- package/dist/chunk-NHGS4LOI.js +1346 -0
- package/dist/chunk-NUWZUYE7.js +1701 -0
- package/dist/chunk-OK5752AP.js +1325 -0
- package/dist/chunk-PXZGMENW.js +27664 -0
- package/dist/chunk-QMW7OISM.js +1063 -0
- package/dist/chunk-RN56HUXA.js +26972 -0
- package/dist/chunk-RSQRF4FV.js +1424 -0
- package/dist/chunk-S2E65WRI.js +26062 -0
- package/dist/chunk-SRHM3HP4.js +944 -0
- package/dist/chunk-U7JO257M.js +25017 -0
- package/dist/chunk-UQCF65BN.js +1623 -0
- package/dist/chunk-USSP4GVB.js +25064 -0
- package/dist/chunk-V7KX3AQD.js +26010 -0
- package/dist/chunk-VSDBQVSE.js +27584 -0
- package/dist/chunk-WK2JR5H7.js +27694 -0
- package/dist/chunk-WOA5LSNB.js +26559 -0
- package/dist/chunk-WWP3VPEJ.js +26080 -0
- package/dist/chunk-YFKWMXJ6.js +26066 -0
- package/dist/chunk-Z552HHPV.js +26846 -0
- package/dist/chunk-ZQ5T64AR.js +1365 -0
- package/dist/hooks/claude.js +246 -24
- package/dist/hooks/codex.js +144 -11
- package/dist/hooks/copilot.js +95 -3
- package/dist/hooks/gemini.js +153 -5
- package/dist/hooks/opencode.js +4 -2
- package/dist/index.d.ts +36 -4
- package/dist/index.js +252 -12
- package/dist/memory-7OSGN7IU.js +32 -0
- package/dist/memory-A4VPLUBA.js +32 -0
- package/dist/memory-DNSQCDHC.js +32 -0
- package/dist/memory-ECS3TSGC.js +32 -0
- package/dist/memory-FVIBFROA.js +32 -0
- package/dist/memory-G6I3DBW4.js +32 -0
- package/dist/memory-GFOW2QWQ.js +32 -0
- package/dist/memory-GSCQ6F53.js +32 -0
- package/dist/memory-HE6VWUPV.js +32 -0
- package/dist/memory-HEA7XNKB.js +32 -0
- package/dist/memory-HMP3Y4PQ.js +32 -0
- package/dist/memory-JRYTVHNH.js +32 -0
- package/dist/memory-K3NL5E3K.js +32 -0
- package/dist/memory-KANI73CX.js +32 -0
- package/dist/memory-KI5G2A4C.js +32 -0
- package/dist/memory-PK55JUKG.js +32 -0
- package/dist/memory-PK5JJNAG.js +32 -0
- package/dist/memory-PQWSJ4RR.js +32 -0
- package/dist/memory-QCVKS3H4.js +32 -0
- package/dist/memory-QURNHGEZ.js +32 -0
- package/dist/memory-SAQPBIB4.js +32 -0
- package/dist/memory-SVGRP5KS.js +32 -0
- package/dist/memory-TQ46BGCI.js +32 -0
- package/dist/memory-UUPLB6O2.js +32 -0
- package/dist/memory-YKQWWIVY.js +32 -0
- package/dist/memory-Z7BP5OSC.js +32 -0
- package/dist/registry-2QC3VN7M.js +12 -0
- package/dist/registry-2REAPKPO.js +12 -0
- package/dist/registry-2XHXZDGH.js +12 -0
- package/dist/registry-4C55ZCPL.js +12 -0
- package/dist/registry-4QRMVAHX.js +12 -0
- package/dist/registry-5SYH3Y3U.js +12 -0
- package/dist/registry-6KZMA3XM.js +12 -0
- package/dist/registry-7QACDJQQ.js +12 -0
- package/dist/registry-B7UXRBW3.js +12 -0
- package/dist/registry-FKEREVDO.js +12 -0
- package/dist/registry-FLSGGY2R.js +12 -0
- package/dist/registry-G7NSRYCO.js +12 -0
- package/dist/registry-GH4O3A7H.js +12 -0
- package/dist/registry-IBH6K2KK.js +12 -0
- package/dist/registry-ILDEBNCW.js +12 -0
- package/dist/registry-JFEW5RUP.js +12 -0
- package/dist/registry-JQYQOZYN.js +12 -0
- package/dist/registry-JR5WY22P.js +12 -0
- package/dist/registry-KLO5YIHP.js +12 -0
- package/dist/registry-KVJAO5DF.js +12 -0
- package/dist/registry-MYJX6AEE.js +12 -0
- package/dist/registry-NBLIJHZT.js +12 -0
- package/dist/registry-NLRWSN5J.js +12 -0
- package/dist/registry-NMXDBYIZ.js +12 -0
- package/dist/registry-OUB6W3LM.js +12 -0
- package/dist/registry-P5KRT66L.js +12 -0
- package/dist/registry-PGZWRXMD.js +12 -0
- package/dist/registry-QAG2ZYH3.js +12 -0
- package/dist/registry-SUXWCWB4.js +12 -0
- package/dist/registry-SYCRRA65.js +12 -0
- package/dist/registry-TYROWPR5.js +12 -0
- package/dist/registry-U23ML76I.js +12 -0
- package/dist/registry-U76DBOV3.js +12 -0
- package/dist/registry-UA42LQUQ.js +12 -0
- package/dist/registry-W6ZFRI73.js +12 -0
- package/dist/registry-X5PMZTZY.js +12 -0
- package/dist/registry-XIL5F33J.js +12 -0
- package/dist/registry-XOPLQNZY.js +12 -0
- package/dist/registry-YDXVCE4Q.js +12 -0
- package/dist/registry-YGVTLIZH.js +12 -0
- package/dist/registry-ZNW3FDED.js +12 -0
- package/dist/viewer/assets/{index-Cq5HAlrV.js → index-BZE-2FtS.js} +37 -37
- package/dist/viewer/index.html +1 -1
- package/dist/viewer/lib.js +29 -1
- package/package.json +1 -1
package/dist/viewer/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>SwarmVault Graph</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-BZE-2FtS.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-CxosWf8Q.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/dist/viewer/lib.js
CHANGED
|
@@ -299,7 +299,8 @@ function embeddedGraphQuery(graph, question, searchResults, options) {
|
|
|
299
299
|
communities,
|
|
300
300
|
matches,
|
|
301
301
|
summary: [
|
|
302
|
-
|
|
302
|
+
formatTopMatchesLine(matches, nodesById, pagesById),
|
|
303
|
+
formatSeedsLine(seeds),
|
|
303
304
|
`Visited nodes: ${visitedNodeIds.length}`,
|
|
304
305
|
`Visited edges: ${visitedEdgeIds.size}`,
|
|
305
306
|
`Touched group patterns: ${hyperedgeIds.length}`,
|
|
@@ -308,6 +309,33 @@ function embeddedGraphQuery(graph, question, searchResults, options) {
|
|
|
308
309
|
].join("\n")
|
|
309
310
|
};
|
|
310
311
|
}
|
|
312
|
+
function formatTopMatchesLine(matches, nodesById, pagesById) {
|
|
313
|
+
if (matches.length === 0) {
|
|
314
|
+
return "Top matches: none";
|
|
315
|
+
}
|
|
316
|
+
const parts = matches.slice(0, 8).map((match) => {
|
|
317
|
+
let pagePath;
|
|
318
|
+
if (match.type === "page") {
|
|
319
|
+
pagePath = pagesById.get(match.id)?.path ?? match.id;
|
|
320
|
+
} else if (match.type === "node") {
|
|
321
|
+
const pageId = nodesById.get(match.id)?.pageId;
|
|
322
|
+
if (pageId) {
|
|
323
|
+
pagePath = pagesById.get(pageId)?.path ?? pageId;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
return `${match.label || match.id} (${match.type}, score ${match.score}${pagePath ? `, page ${pagePath}` : ""})`;
|
|
327
|
+
});
|
|
328
|
+
const more = matches.length > 8 ? ` (+${matches.length - 8} more)` : "";
|
|
329
|
+
return `Top matches: ${parts.join("; ")}${more}`;
|
|
330
|
+
}
|
|
331
|
+
function formatSeedsLine(seeds) {
|
|
332
|
+
if (seeds.length === 0) {
|
|
333
|
+
return "Seeds: none";
|
|
334
|
+
}
|
|
335
|
+
const shown = seeds.slice(0, 15).join(", ");
|
|
336
|
+
const more = seeds.length > 15 ? ` (+${seeds.length - 15} more)` : "";
|
|
337
|
+
return `Seeds: ${shown}${more}`;
|
|
338
|
+
}
|
|
311
339
|
function normalizeSnippet(content, query) {
|
|
312
340
|
const normalized = content.replace(/\s+/g, " ").trim();
|
|
313
341
|
if (!query) {
|