@swarmvaultai/engine 3.5.0 → 3.7.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/README.md +8 -4
- package/dist/chunk-5GEPTIZE.js +26010 -0
- package/dist/chunk-7O2HJSWQ.js +1686 -0
- package/dist/chunk-S2E65WRI.js +26062 -0
- package/dist/chunk-V7KX3AQD.js +26010 -0
- package/dist/hooks/claude.js +53 -5
- package/dist/hooks/codex.js +13 -3
- package/dist/hooks/copilot.js +13 -3
- package/dist/hooks/gemini.js +13 -3
- package/dist/index.d.ts +127 -5
- package/dist/index.js +905 -129
- package/dist/memory-DNSQCDHC.js +32 -0
- package/dist/memory-FVIBFROA.js +32 -0
- package/dist/memory-HE6VWUPV.js +32 -0
- package/dist/registry-NMXDBYIZ.js +12 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
queryVault,
|
|
62
62
|
readContextPack,
|
|
63
63
|
readMemoryTask,
|
|
64
|
+
refreshGraphClusters,
|
|
64
65
|
rebuildRetrievalIndex,
|
|
65
66
|
reloadManagedSources,
|
|
66
67
|
resumeMemoryTask,
|
|
@@ -107,6 +108,7 @@ import {
|
|
|
107
108
|
queryGraphVault,
|
|
108
109
|
queryVault,
|
|
109
110
|
readContextPack,
|
|
111
|
+
refreshGraphClusters,
|
|
110
112
|
rebuildRetrievalIndex,
|
|
111
113
|
resumeMemoryTask,
|
|
112
114
|
reloadManagedSources,
|
|
@@ -160,6 +162,7 @@ console.log(await doctorRetrieval(rootDir));
|
|
|
160
162
|
|
|
161
163
|
const graphQuery = await queryGraphVault(rootDir, "Which nodes bridge the biggest communities?");
|
|
162
164
|
console.log(graphQuery.summary);
|
|
165
|
+
console.log(await refreshGraphClusters(rootDir, { resolution: 1 }));
|
|
163
166
|
|
|
164
167
|
const exploration = await exploreVault(rootDir, { question: "What should I investigate next?", steps: 3, format: "report" });
|
|
165
168
|
console.log(exploration.hubPath);
|
|
@@ -232,7 +235,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
|
|
|
232
235
|
|
|
233
236
|
### Ingest
|
|
234
237
|
|
|
235
|
-
- `addManagedSource(rootDir, input, { compile, brief, maxPages, maxDepth })` registers and syncs a recurring source, then optionally compiles and writes a source brief
|
|
238
|
+
- `addManagedSource(rootDir, input, { compile, brief, maxPages, maxDepth, branch, ref, checkoutDir })` registers and syncs a recurring source, then optionally compiles and writes a source brief
|
|
236
239
|
- `listManagedSourceRecords(rootDir)` lists registry-backed managed sources from `state/sources.json`
|
|
237
240
|
- `reloadManagedSources(rootDir, { id, all, compile, brief, maxPages, maxDepth })` re-syncs one managed source or the full registry
|
|
238
241
|
- `deleteManagedSource(rootDir, id)` removes a managed-source registry entry and transient sync state without deleting canonical vault artifacts
|
|
@@ -241,12 +244,12 @@ This matters because many "OpenAI-compatible" backends only implement part of th
|
|
|
241
244
|
- `addInput(rootDir, input, { author, contributor })` captures supported URLs into normalized markdown before ingesting them, or falls back to generic URL ingest
|
|
242
245
|
- `ingestDirectory(rootDir, inputDir, { repoRoot, include, exclude, maxFiles, gitignore, extractClasses })` recursively ingests a local directory as a repo-aware code/content source tree
|
|
243
246
|
- `importInbox(rootDir, inputDir?)` recursively imports supported inbox files plus markdown and HTML browser-clipper style bundles
|
|
244
|
-
- managed sources support local directories, public GitHub repo root URLs, and bounded same-domain docs hubs
|
|
247
|
+
- managed sources support local directories, public GitHub repo root URLs, and bounded same-domain docs hubs; GitHub repo sources can pin `branch`, `ref`, and `checkoutDir`
|
|
245
248
|
- registry data lives in `state/sources.json`, working state lives under `state/sources/<id>/`, and source briefs are written to `wiki/outputs/source-briefs/<id>.md`
|
|
246
249
|
- EPUB inputs split into chapter-level manifests with shared group metadata so books stay navigable instead of becoming one giant source
|
|
247
250
|
- CSV and TSV inputs produce bounded tabular summaries with delimiter-aware previews and compact column hints
|
|
248
251
|
- XLSX inputs extract workbook-level and sheet-level previews, while PPTX inputs extract slide text plus speaker notes when present
|
|
249
|
-
- JavaScript, JSX, TypeScript, TSX, Bash/shell script, Python, Go, Rust, Java, Kotlin, Scala, Dart, Lua, Zig, C#, C, C++, PHP, Ruby, and
|
|
252
|
+
- JavaScript, JSX, TypeScript, TSX, Bash/shell script, Python, Go, Rust, Java, Kotlin, Scala, Dart, Lua, Zig, C#, C, C++, PHP, Ruby, PowerShell, Elixir, OCaml, Objective-C, ReScript, Solidity, HTML, CSS, Vue, Svelte, Julia, Verilog/SystemVerilog, R, and SQL inputs are treated as code sources and compiled into both source pages and `wiki/code/` module pages where parser support exists. Julia, Verilog/SystemVerilog, and R currently emit explicit parser-asset diagnostics when no packaged WASM grammar is available.
|
|
250
253
|
- `.rst` and `.rest` inputs are treated as first-class text sources with lightweight heading and directive normalization before analysis
|
|
251
254
|
- code manifests can carry `repoRelativePath`, and compile writes `state/code-index.json` so local imports can resolve across an ingested repo tree
|
|
252
255
|
- repo-aware manifests, graph nodes, and graph pages can also carry `sourceClass` so first-party, third-party, resource, and generated material can be filtered and reported separately
|
|
@@ -316,7 +319,7 @@ Running the engine produces a local workspace with these main areas:
|
|
|
316
319
|
- `raw/sources/`: immutable source copies
|
|
317
320
|
- `raw/assets/`: copied attachments referenced by ingested markdown bundles and remote URL ingests
|
|
318
321
|
- `wiki/`: generated markdown pages, the append-only `log.md` activity trail, staged candidates, saved query outputs, exploration hub pages, and a human-only `insights/` area
|
|
319
|
-
- `wiki/graph/`: generated graph report pages, markdown/SVG share cards, the portable `share-kit/`, and per-community summaries derived from `state/graph.json`
|
|
322
|
+
- `wiki/graph/`: generated graph report pages, markdown/SVG share cards, the portable `share-kit/`, optional `tree.html`, and per-community summaries derived from `state/graph.json`
|
|
320
323
|
- `wiki/context/`: markdown companions for saved context packs
|
|
321
324
|
- `wiki/memory/`: markdown index and task pages for the agent task ledger
|
|
322
325
|
- `wiki/graph/report.json`: machine-readable graph report data used by the viewer and export surfaces
|
|
@@ -332,6 +335,7 @@ Running the engine produces a local workspace with these main areas:
|
|
|
332
335
|
- `state/code-index.json`: repo-aware code module aliases and local resolution data
|
|
333
336
|
- `state/benchmark.json`: latest benchmark/trust summary for the current vault
|
|
334
337
|
- `state/graph.json`: compiled graph, including semantic-similarity edges and hyperedge-style group patterns
|
|
338
|
+
- graph helpers include tree export, graph merge for SwarmVault/node-link JSON, read-only status checks, shrink-guarded code refresh, community refresh, graph query/path/explain, blast radius, and file exports
|
|
335
339
|
- `state/context-packs/`: JSON context-pack artifacts for agent kickoff, review, and handoff workflows
|
|
336
340
|
- `state/memory/tasks/`: JSON task records for the agent task ledger
|
|
337
341
|
- `state/retrieval/`: local retrieval index directory, including the SQLite FTS shard and manifest
|