@swarmvaultai/cli 0.1.14 → 0.1.16
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 +1 -1
- package/dist/index.js +12 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -165,7 +165,7 @@ Start the local graph workspace backed by `state/graph.json`, `/api/search`, and
|
|
|
165
165
|
|
|
166
166
|
Export the graph workspace as a standalone HTML file with embedded graph and page data for offline sharing.
|
|
167
167
|
|
|
168
|
-
### `swarmvault install --agent <codex|claude|cursor>`
|
|
168
|
+
### `swarmvault install --agent <codex|claude|cursor|goose|pi|gemini>`
|
|
169
169
|
|
|
170
170
|
Install agent-specific rules into the current project so an agent understands the SwarmVault workspace contract and workflow.
|
|
171
171
|
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
// src/index.ts
|
|
4
|
+
import { readFileSync } from "fs";
|
|
4
5
|
import process from "process";
|
|
5
6
|
import {
|
|
6
7
|
acceptApproval,
|
|
@@ -29,7 +30,16 @@ import {
|
|
|
29
30
|
} from "@swarmvaultai/engine";
|
|
30
31
|
import { Command, Option } from "commander";
|
|
31
32
|
var program = new Command();
|
|
32
|
-
|
|
33
|
+
var CLI_VERSION = readCliVersion();
|
|
34
|
+
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);
|
|
35
|
+
function readCliVersion() {
|
|
36
|
+
try {
|
|
37
|
+
const packageJson = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
38
|
+
return typeof packageJson.version === "string" && packageJson.version.trim() ? packageJson.version : "0.1.16";
|
|
39
|
+
} catch {
|
|
40
|
+
return "0.1.16";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
33
43
|
function isJson() {
|
|
34
44
|
return program.opts().json === true;
|
|
35
45
|
}
|
|
@@ -304,7 +314,7 @@ program.command("mcp").description("Run SwarmVault as a local MCP server over st
|
|
|
304
314
|
process.exit(0);
|
|
305
315
|
});
|
|
306
316
|
});
|
|
307
|
-
program.command("install").description("Install SwarmVault instructions for an agent in the current project.").requiredOption("--agent <agent>", "codex, claude, or
|
|
317
|
+
program.command("install").description("Install SwarmVault instructions for an agent in the current project.").requiredOption("--agent <agent>", "codex, claude, cursor, goose, pi, or gemini").action(async (options) => {
|
|
308
318
|
const target = await installAgent(process.cwd(), options.agent);
|
|
309
319
|
if (isJson()) {
|
|
310
320
|
emitJson({ agent: options.agent, target });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swarmvaultai/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
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.
|
|
42
|
+
"@swarmvaultai/engine": "0.1.16"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/node": "^24.6.0",
|