@swarmvaultai/cli 0.1.3 → 0.1.4

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
@@ -23,6 +23,7 @@ Installed commands:
23
23
  mkdir my-vault
24
24
  cd my-vault
25
25
  swarmvault init
26
+ sed -n '1,120p' swarmvault.schema.md
26
27
  swarmvault ingest ./notes.md
27
28
  swarmvault compile
28
29
  swarmvault query "What keeps recurring?" --save
@@ -41,6 +42,9 @@ Create a workspace with:
41
42
  - `state/`
42
43
  - `agent/`
43
44
  - `swarmvault.config.json`
45
+ - `swarmvault.schema.md`
46
+
47
+ The schema file is the vault-specific instruction layer. Edit it to define naming rules, categories, grounding expectations, and exclusions before a serious compile.
44
48
 
45
49
  ### `swarmvault ingest <path-or-url>`
46
50
 
@@ -58,9 +62,11 @@ Compile the current manifests into:
58
62
  - structured graph data in `state/graph.json`
59
63
  - local search data in `state/search.sqlite`
60
64
 
65
+ The compiler also reads `swarmvault.schema.md` and records a `schema_hash` in generated pages so schema edits can mark pages stale.
66
+
61
67
  ### `swarmvault query "<question>" [--save]`
62
68
 
63
- Query the compiled vault. With `--save`, the answer is written into `wiki/outputs/` so the result becomes part of the vault.
69
+ Query the compiled vault. The query layer also reads `swarmvault.schema.md`, so answers follow the vault’s own structure and grounding rules. With `--save`, the answer is written into `wiki/outputs/` so the result becomes part of the vault.
64
70
 
65
71
  ### `swarmvault lint`
66
72
 
@@ -83,6 +89,8 @@ Run SwarmVault as a local MCP server over stdio. This exposes the vault to compa
83
89
  - `compile_vault`
84
90
  - `lint_vault`
85
91
 
92
+ The MCP surface also exposes `swarmvault://schema` and includes `schemaPath` in `workspace_info`.
93
+
86
94
  ### `swarmvault graph serve`
87
95
 
88
96
  Start the local graph UI backed by `state/graph.json`.
package/dist/index.js CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  watchVault
17
17
  } from "@swarmvaultai/engine";
18
18
  var program = new Command();
19
- program.name("swarmvault").description("SwarmVault is a local-first LLM wiki compiler with graph outputs and pluggable providers.").version("0.1.3");
19
+ program.name("swarmvault").description("SwarmVault is a local-first LLM wiki compiler with graph outputs and pluggable providers.").version("0.1.4");
20
20
  program.command("init").description("Initialize a SwarmVault workspace in the current directory.").action(async () => {
21
21
  await initVault(process.cwd());
22
22
  process.stdout.write("Initialized SwarmVault workspace.\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swarmvaultai/cli",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Global CLI for SwarmVault.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "commander": "^14.0.1",
42
- "@swarmvaultai/engine": "0.1.3"
42
+ "@swarmvaultai/engine": "0.1.4"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^24.6.0",