@swarmvaultai/cli 0.2.0 → 0.2.2

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
@@ -97,7 +97,7 @@ Ingest a local file path, directory path, or URL into immutable source storage a
97
97
  - use `source add` instead when the same local directory, public GitHub repo root, or docs hub should stay registered and reloadable
98
98
  - URL ingest still localizes remote image references by default
99
99
  - local file ingest supports markdown, text, reStructuredText, HTML, PDF, DOCX, images, and code
100
- - code-aware directory ingest currently covers JavaScript, TypeScript, Python, Go, Rust, Java, C#, C, C++, PHP, Ruby, PowerShell, Kotlin, and Scala
100
+ - code-aware directory ingest currently covers JavaScript, JSX, TypeScript, TSX, Python, Go, Rust, Java, Kotlin, Scala, Lua, Zig, C#, C, C++, PHP, Ruby, and PowerShell
101
101
 
102
102
  Useful flags:
103
103
 
package/dist/index.js CHANGED
@@ -217,13 +217,13 @@ function normalizeVersion(version) {
217
217
  // src/index.ts
218
218
  var program = new Command();
219
219
  var CLI_VERSION = readCliVersion();
220
- program.name("swarmvault").description("SwarmVault is a local-first LLM wiki compiler with graph outputs and pluggable providers.").version(CLI_VERSION).option("--json", "Emit structured JSON output", false);
220
+ program.name("swarmvault").description("SwarmVault is a local-first knowledge compiler with graph outputs and optional provider-backed workflows.").version(CLI_VERSION).option("--json", "Emit structured JSON output", false);
221
221
  function readCliVersion() {
222
222
  try {
223
223
  const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
224
- return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.2.0";
224
+ return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.2.2";
225
225
  } catch {
226
- return "0.2.0";
226
+ return "0.2.2";
227
227
  }
228
228
  }
229
229
  function parsePositiveInt(value, fallback) {
@@ -512,9 +512,9 @@ graphPush.command("neo4j").description("Push the compiled graph directly into Ne
512
512
  }
513
513
  }
514
514
  );
515
- graph.command("serve").description("Serve the local graph viewer.").option("--port <port>", "Port override").action(async (options) => {
515
+ graph.command("serve").description("Serve the local graph viewer.").option("--port <port>", "Port override").option("--full", "Disable overview sampling and render the full graph", false).action(async (options) => {
516
516
  const port = options.port ? parsePositiveInt(options.port, 0) || void 0 : void 0;
517
- const server = await startGraphServer(process2.cwd(), port);
517
+ const server = await startGraphServer(process2.cwd(), port, { full: options.full ?? false });
518
518
  if (isJson()) {
519
519
  emitJson({ port: server.port, url: `http://localhost:${server.port}` });
520
520
  } else {
@@ -528,7 +528,7 @@ graph.command("serve").description("Serve the local graph viewer.").option("--po
528
528
  process2.exit(0);
529
529
  });
530
530
  });
531
- graph.command("export").description("Export the graph as HTML, SVG, GraphML, or Cypher.").option("--html <output>", "Output HTML file path").option("--svg <output>", "Output SVG file path").option("--graphml <output>", "Output GraphML file path").option("--cypher <output>", "Output Cypher file path").action(async (options) => {
531
+ graph.command("export").description("Export the graph as HTML, SVG, GraphML, or Cypher.").option("--html <output>", "Output HTML file path").option("--svg <output>", "Output SVG file path").option("--graphml <output>", "Output GraphML file path").option("--cypher <output>", "Output Cypher file path").option("--full", "Disable overview sampling for HTML export", false).action(async (options) => {
532
532
  const targets = [
533
533
  options.html ? { format: "html", outputPath: options.html } : null,
534
534
  options.svg ? { format: "svg", outputPath: options.svg } : null,
@@ -539,7 +539,7 @@ graph.command("export").description("Export the graph as HTML, SVG, GraphML, or
539
539
  throw new Error("Pass exactly one of --html, --svg, --graphml, or --cypher.");
540
540
  }
541
541
  const target = targets[0];
542
- const outputPath = target.format === "html" ? await exportGraphHtml(process2.cwd(), target.outputPath) : (await exportGraphFormat(process2.cwd(), target.format, target.outputPath)).outputPath;
542
+ const outputPath = target.format === "html" ? await exportGraphHtml(process2.cwd(), target.outputPath, { full: options.full ?? false }) : (await exportGraphFormat(process2.cwd(), target.format, target.outputPath)).outputPath;
543
543
  if (isJson()) {
544
544
  emitJson({ format: target.format, outputPath });
545
545
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swarmvaultai/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Global CLI for SwarmVault.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "node": ">=24.0.0"
39
39
  },
40
40
  "dependencies": {
41
- "@swarmvaultai/engine": "0.2.0",
41
+ "@swarmvaultai/engine": "0.2.2",
42
42
  "commander": "^14.0.1"
43
43
  },
44
44
  "devDependencies": {