@swarmvaultai/cli 0.8.0 → 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.
- package/dist/index.js +18 -6
- package/package.json +2 -2
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.
|
|
281
|
+
return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.9.0";
|
|
282
282
|
} catch {
|
|
283
|
-
return "0.
|
|
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(), {
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.9.0",
|
|
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.
|
|
41
|
+
"@swarmvaultai/engine": "0.9.0",
|
|
42
42
|
"commander": "^14.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|