@swarmvaultai/cli 0.1.10 → 0.1.12

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ import {
29
29
  } from "@swarmvaultai/engine";
30
30
  import { Command, Option } from "commander";
31
31
  var program = new Command();
32
- program.name("swarmvault").description("SwarmVault is a local-first LLM wiki compiler with graph outputs and pluggable providers.").version("0.1.10").option("--json", "Emit structured JSON output", false);
32
+ program.name("swarmvault").description("SwarmVault is a local-first LLM wiki compiler with graph outputs and pluggable providers.").version("0.1.12").option("--json", "Emit structured JSON output", false);
33
33
  function isJson() {
34
34
  return program.opts().json === true;
35
35
  }
@@ -54,8 +54,12 @@ program.command("init").description("Initialize a SwarmVault workspace in the cu
54
54
  log("Initialized SwarmVault workspace.");
55
55
  }
56
56
  });
57
- program.command("ingest").description("Ingest a local file path or URL into the raw SwarmVault workspace.").argument("<input>", "Local file path or URL").action(async (input) => {
58
- const manifest = await ingestInput(process.cwd(), input);
57
+ program.command("ingest").description("Ingest a local file path or URL into the raw SwarmVault workspace.").argument("<input>", "Local file path or URL").option("--include-assets", "Download remote image assets when ingesting URLs", true).option("--no-include-assets", "Skip downloading remote image assets when ingesting URLs").option("--max-asset-size <bytes>", "Maximum number of bytes to fetch for a single remote image asset").action(async (input, options) => {
58
+ const maxAssetSize = typeof options.maxAssetSize === "string" && options.maxAssetSize.trim() ? Number.parseInt(options.maxAssetSize, 10) : void 0;
59
+ const manifest = await ingestInput(process.cwd(), input, {
60
+ includeAssets: options.includeAssets,
61
+ maxAssetSize: Number.isFinite(maxAssetSize) ? maxAssetSize : void 0
62
+ });
59
63
  if (isJson()) {
60
64
  emitJson(manifest);
61
65
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swarmvaultai/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
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.10"
42
+ "@swarmvaultai/engine": "0.1.12"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/node": "^24.6.0",