@swarmvaultai/cli 0.7.31 → 0.9.0

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 (3) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +18 -6
  3. package/package.json +8 -9
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SwarmVault
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.js CHANGED
@@ -278,9 +278,9 @@ program.name("swarmvault").description("SwarmVault is a local-first knowledge co
278
278
  function readCliVersion() {
279
279
  try {
280
280
  const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
281
- return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.7.31";
281
+ return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.9.0";
282
282
  } catch {
283
- return "0.7.31";
283
+ return "0.9.0";
284
284
  }
285
285
  }
286
286
  function parsePositiveInt(value, fallback) {
@@ -424,17 +424,26 @@ program.hook("postAction", async (_thisCommand, actionCommand) => {
424
424
  program.command("init").description("Initialize a SwarmVault workspace in the current directory.").option("--obsidian", "Generate a minimal .obsidian workspace alongside the vault", false).option(
425
425
  "--profile <profile>",
426
426
  "Starter workspace profile or comma-separated preset list (for example: personal-research or reader,timeline)"
427
+ ).option(
428
+ "--lite",
429
+ "Minimal LLM-Wiki starter (raw/, wiki/, wiki/index.md, wiki/log.md, swarmvault.schema.md) without config, state, or agent installs",
430
+ false
427
431
  ).action(async (options) => {
428
- await initVault(process2.cwd(), { obsidian: options.obsidian ?? false, profile: options.profile });
432
+ await initVault(process2.cwd(), {
433
+ obsidian: options.obsidian ?? false,
434
+ profile: options.profile,
435
+ lite: options.lite ?? false
436
+ });
429
437
  if (isJson()) {
430
438
  emitJson({
431
439
  status: "initialized",
432
440
  rootDir: process2.cwd(),
433
441
  obsidian: options.obsidian ?? false,
434
- profile: options.profile ?? "default"
442
+ profile: options.profile ?? "default",
443
+ lite: options.lite ?? false
435
444
  });
436
445
  } else {
437
- log("Initialized SwarmVault workspace.");
446
+ log(options.lite ? "Initialized SwarmVault lite workspace." : "Initialized SwarmVault workspace.");
438
447
  }
439
448
  });
440
449
  program.command("ingest").description("Ingest a local file path, directory path, or URL into the raw SwarmVault workspace.").argument("<input>", "Local file path, directory path, or URL").option("--review", "Stage a source review artifact after ingest and compile", false).option("--guide", "Stage a guided source integration bundle after ingest and compile (default: from config)").option("--no-guide", "Skip guided mode even if enabled in config").option("--answers-file <path>", "JSON file with guided-session answers keyed by question id or listed in prompt order").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").option("--repo-root <path>", "Override the detected repo root when ingesting a directory").option("--include <glob...>", "Only ingest files matching one or more glob patterns").option("--exclude <glob...>", "Skip files matching one or more glob patterns").option("--max-files <n>", "Maximum number of files to ingest from a directory").option("--include-third-party", "Also ingest repo files classified as third-party", false).option("--include-resources", "Also ingest repo files classified as resources", false).option("--include-generated", "Also ingest repo files classified as generated output", false).option("--no-gitignore", "Ignore .gitignore rules when ingesting a directory").option("--resume <run-id>", "Re-run only the failed files from a prior ingest run id").option("--commit", "Auto-commit wiki and state changes after ingest").action(
@@ -1214,7 +1223,10 @@ program.command("mcp").description("Run SwarmVault as a local MCP server over st
1214
1223
  process2.exit(0);
1215
1224
  });
1216
1225
  });
1217
- program.command("install").description("Install SwarmVault instructions for an agent in the current project.").requiredOption("--agent <agent>", "codex, claude, cursor, goose, pi, gemini, opencode, aider, copilot, trae, claw, or droid").option("--hook", "Also install hook/plugin guidance when the target agent supports it", false).action(
1226
+ program.command("install").description("Install SwarmVault instructions for an agent in the current project.").requiredOption(
1227
+ "--agent <agent>",
1228
+ "codex, claude, cursor, goose, pi, gemini, opencode, aider, copilot, trae, claw, droid, kiro, hermes, antigravity, or vscode"
1229
+ ).option("--hook", "Also install hook/plugin guidance when the target agent supports it", false).action(
1218
1230
  async (options) => {
1219
1231
  const hookCapableAgents = /* @__PURE__ */ new Set(["claude", "opencode", "gemini", "copilot"]);
1220
1232
  if (options.hook && !hookCapableAgents.has(options.agent)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swarmvaultai/cli",
3
- "version": "0.7.31",
3
+ "version": "0.9.0",
4
4
  "description": "Global CLI for SwarmVault.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -37,19 +37,18 @@
37
37
  "engines": {
38
38
  "node": ">=24.0.0"
39
39
  },
40
- "scripts": {
41
- "build": "tsup src/index.ts --format esm --dts",
42
- "test": "vitest run",
43
- "typecheck": "tsc --noEmit",
44
- "prepublishOnly": "node ../../scripts/check-release-sync.mjs && node ../../scripts/check-published-manifests.mjs"
45
- },
46
40
  "dependencies": {
47
- "@swarmvaultai/engine": "0.7.31",
41
+ "@swarmvaultai/engine": "0.9.0",
48
42
  "commander": "^14.0.1"
49
43
  },
50
44
  "devDependencies": {
51
45
  "@types/node": "^24.6.0",
52
46
  "tsup": "^8.5.0",
53
47
  "vitest": "^3.2.4"
48
+ },
49
+ "scripts": {
50
+ "build": "tsup src/index.ts --format esm --dts",
51
+ "test": "vitest run",
52
+ "typecheck": "tsc --noEmit"
54
53
  }
55
- }
54
+ }