@swarmvaultai/engine 0.1.29 → 0.1.31

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
@@ -45,6 +45,7 @@ import {
45
45
  loadVaultSchema,
46
46
  loadVaultSchemas,
47
47
  pathGraphVault,
48
+ pushGraphNeo4j,
48
49
  queryGraphVault,
49
50
  queryVault,
50
51
  runWatchCycle,
@@ -65,13 +66,18 @@ The engine also exports the main runtime types for providers, graph artifacts, p
65
66
 
66
67
  ```ts
67
68
  import {
69
+ addInput,
70
+ benchmarkVault,
68
71
  compileVault,
69
72
  exploreVault,
70
73
  exportGraphHtml,
74
+ exportGraphFormat,
75
+ getWatchStatus,
71
76
  importInbox,
72
77
  initVault,
73
78
  installGitHooks,
74
79
  loadVaultSchemas,
80
+ pushGraphNeo4j,
75
81
  queryGraphVault,
76
82
  queryVault,
77
83
  runWatchCycle,
@@ -100,6 +106,12 @@ console.log(exploration.hubPath);
100
106
 
101
107
  await exportGraphHtml(rootDir, "./exports/graph.html");
102
108
  await exportGraphFormat(rootDir, "graphml", "./exports/graph.graphml");
109
+ await pushGraphNeo4j(rootDir, {
110
+ uri: "bolt://127.0.0.1:7687",
111
+ username: "neo4j",
112
+ passwordEnv: "NEO4J_PASSWORD",
113
+ dryRun: true
114
+ });
103
115
 
104
116
  await runWatchCycle(rootDir, { repo: true });
105
117
  console.log(await getWatchStatus(rootDir));
@@ -172,6 +184,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
172
184
 
173
185
  - `compileVault(rootDir, { approve })` writes wiki pages, graph data, and search state using the vault schema as guidance, or stages a review bundle
174
186
  - compile also writes graph orientation pages such as `wiki/graph/report.md`, `wiki/graph/report.json`, and `wiki/graph/communities/<community>.md`
187
+ - compile propagates semantic tags onto page frontmatter and source-backed graph nodes, and records deterministic `contradicts` edges plus a Contradictions section in the graph report when conflicting claims are found
175
188
  - `benchmarkVault(rootDir, { questions })` writes `state/benchmark.json` and folds the latest benchmark summary into `wiki/graph/report.md` and `wiki/graph/report.json`
176
189
  - semantic graph query and embedding-backed similarity enrichment cache vectors under `state/embeddings.json` so graph-semantic refresh stays incremental
177
190
  - `queryVault(rootDir, { question, save, format, review })` answers against the compiled vault using the same schema layer and saves by default
@@ -195,7 +208,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
195
208
  - `syncTrackedReposForWatch(rootDir)` is the repo-watch sync path that defers non-code semantic refresh into `state/watch/`
196
209
  - `installGitHooks(rootDir)`, `uninstallGitHooks(rootDir)`, and `getGitHookStatus(rootDir)` manage local `post-commit` and `post-checkout` hook blocks for the nearest git repository
197
210
  - `installAgent(rootDir, agent, { hook })` writes agent instructions and returns the primary `target`, all touched `targets`, and optional merge warnings for agents such as Aider
198
- - `lintVault(rootDir, options)` runs structural lint, optional deep lint, and optional web-augmented evidence gathering
211
+ - `lintVault(rootDir, options)` runs structural lint, optional deep lint, optional contradiction-only filtering through `{ conflicts: true }`, and optional web-augmented evidence gathering
199
212
  - `listSchedules(rootDir)`, `runSchedule(rootDir, jobId)`, and `serveSchedules(rootDir)` manage recurring local jobs from config
200
213
  - compile, query, explore, lint, and watch also write canonical markdown session artifacts to `state/sessions/`
201
214
  - scheduled `query` and `explore` jobs stage saved outputs through approvals when they write artifacts
@@ -212,6 +225,7 @@ This matters because many "OpenAI-compatible" backends only implement part of th
212
225
  - `startMcpServer(rootDir)` runs the MCP server over stdio
213
226
  - `exportGraphHtml(rootDir, outputPath)` exports the graph workspace as a standalone HTML file
214
227
  - `exportGraphFormat(rootDir, "svg" | "graphml" | "cypher", outputPath)` exports the graph into interoperable file formats
228
+ - `pushGraphNeo4j(rootDir, options)` upserts the current graph into Neo4j over Bolt/Aura with shared-database-safe `vaultId` namespacing
215
229
 
216
230
  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.
217
231