@singularity-layer/agentvault 0.1.0 → 0.1.1
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 +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
import { createRequire } from "node:module";
|
|
2
3
|
import { Command } from "commander";
|
|
4
|
+
// The single source of truth for the version is package.json.
|
|
5
|
+
const PKG_VERSION = createRequire(import.meta.url)("../package.json").version;
|
|
3
6
|
import { createClient } from "./client.js";
|
|
4
7
|
import { runBackup } from "./commands/backup.js";
|
|
5
8
|
import { runDaemonInstall, runDaemonStatus, runDaemonUninstall, runOfferDaemon, } from "./commands/daemon.js";
|
|
@@ -18,7 +21,7 @@ export function buildProgram() {
|
|
|
18
21
|
program
|
|
19
22
|
.name("agentvault")
|
|
20
23
|
.description("Encrypted backups for local AI agents")
|
|
21
|
-
.version(
|
|
24
|
+
.version(PKG_VERSION);
|
|
22
25
|
program
|
|
23
26
|
.command("login")
|
|
24
27
|
.description("Sign in (browser wallet approval; --api-key to paste a key)")
|