@swarmvaultai/engine 0.1.22 → 0.1.24

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 CHANGED
@@ -169,14 +169,15 @@ This matters because many "OpenAI-compatible" backends only implement part of th
169
169
  ### Compile + Query
170
170
 
171
171
  - `compileVault(rootDir, { approve })` writes wiki pages, graph data, and search state using the vault schema as guidance, or stages a review bundle
172
- - compile also writes graph orientation pages such as `wiki/graph/report.md` and `wiki/graph/communities/<community>.md`
173
- - `benchmarkVault(rootDir, { questions })` writes `state/benchmark.json` and folds the latest benchmark summary into `wiki/graph/report.md`
172
+ - compile also writes graph orientation pages such as `wiki/graph/report.md`, `wiki/graph/report.json`, and `wiki/graph/communities/<community>.md`
173
+ - `benchmarkVault(rootDir, { questions })` writes `state/benchmark.json` and folds the latest benchmark summary into `wiki/graph/report.md` and `wiki/graph/report.json`
174
174
  - `queryVault(rootDir, { question, save, format, review })` answers against the compiled vault using the same schema layer and saves by default
175
175
  - `exploreVault(rootDir, { question, steps, format, review })` runs a save-first multi-step exploration loop and writes a hub page plus step outputs
176
176
  - `searchVault(rootDir, query, limit)` searches compiled pages directly
177
- - `queryGraphVault(rootDir, question, { traversal, budget })` runs deterministic local graph search without a model provider
177
+ - `queryGraphVault(rootDir, question, { traversal, budget })` runs deterministic local graph search without a model provider and includes matching group patterns when relevant
178
178
  - `pathGraphVault(rootDir, from, to)` returns the shortest graph path between two targets
179
- - `explainGraphVault(rootDir, target)` returns node, community, neighbor, and provenance details
179
+ - `explainGraphVault(rootDir, target)` returns node, community, neighbor, provenance, and group-pattern details
180
+ - `listGraphHyperedges(rootDir, target?, limit?)` returns graph hyperedges globally or for a specific node/page target
180
181
  - `listGodNodes(rootDir, limit)` returns the most connected bridge-heavy graph nodes
181
182
  - project-aware compile also builds `wiki/projects/index.md` plus `wiki/projects/<project>/index.md` rollups without duplicating page trees
182
183
  - human-authored insight pages in `wiki/insights/` are indexed into search and available to query without being rewritten by compile
@@ -208,7 +209,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
208
209
  - `exportGraphHtml(rootDir, outputPath)` exports the graph workspace as a standalone HTML file
209
210
  - `exportGraphFormat(rootDir, "svg" | "graphml" | "cypher", outputPath)` exports the graph into interoperable file formats
210
211
 
211
- The MCP surface includes tools for workspace info, page search, page reads, source listing, querying, ingestion, compile, lint, and graph-native read operations such as graph query, node explain, neighbor lookup, shortest path, and god-node listing, along with resources for config, graph, manifests, schema, page content, and session artifacts.
212
+ The MCP surface includes tools for workspace info, page search, page reads, source listing, querying, ingestion, compile, lint, graph report reads, hyperedge reads, and graph-native read operations such as graph query, node explain, neighbor lookup, shortest path, and god-node listing, along with resources for config, graph, manifests, schema, page content, and session artifacts.
212
213
 
213
214
  ## Artifacts
214
215
 
@@ -220,6 +221,7 @@ Running the engine produces a local workspace with these main areas:
220
221
  - `raw/assets/`: copied attachments referenced by ingested markdown bundles and remote URL ingests
221
222
  - `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
222
223
  - `wiki/graph/`: generated graph report pages and per-community summaries derived from `state/graph.json`
224
+ - `wiki/graph/report.json`: machine-readable graph report data used by the viewer and export surfaces
223
225
  - `wiki/outputs/assets/`: local chart/image artifacts and JSON manifests for saved visual outputs
224
226
  - `wiki/code/`: generated module pages for ingested code sources
225
227
  - `wiki/projects/`: generated project rollups over canonical pages
@@ -229,7 +231,7 @@ Running the engine produces a local workspace with these main areas:
229
231
  - `state/analyses/`: model analysis output
230
232
  - `state/code-index.json`: repo-aware code module aliases and local resolution data
231
233
  - `state/benchmark.json`: latest benchmark/trust summary for the current vault
232
- - `state/graph.json`: compiled graph
234
+ - `state/graph.json`: compiled graph, including semantic-similarity edges and hyperedge-style group patterns
233
235
  - `state/search.sqlite`: full-text index
234
236
  - `state/sessions/`: canonical session artifacts
235
237
  - `state/approvals/`: staged review bundles from `compileVault({ approve: true })`
@@ -241,6 +243,7 @@ Saved outputs are indexed immediately into the graph page registry and search in
241
243
  Code sources also emit module, symbol, and parser-backed rationale nodes into `state/graph.json`, so local imports, exports, inheritance, same-module call edges, and rationale links are queryable through the same viewer and search pipeline.
242
244
  Ingest, inbox import, compile, query, lint, review, and candidate operations also append human-readable entries to `wiki/log.md`.
243
245
  PDF sources now go through a local text-extraction pass before analysis, and image sources use the configured `visionProvider` for structured OCR/diagram extraction when a real multimodal provider is available. When image extraction is unavailable, SwarmVault records an explicit warning in the extraction sidecar and carries that warning forward into analysis instead of silently treating the source as empty.
246
+ Compile and repo-refresh runs also keep benchmark artifacts current by default, so graph report consumers can show freshness and stale-state without requiring a separate benchmark command first. The graph report now also carries deterministic “why this is surprising” explanations plus group-pattern sections built from hyperedges.
244
247
 
245
248
  ## Notes
246
249