@envsave/cli 1.0.40 → 1.0.41
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/cli.js +55 -0
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -874,6 +874,57 @@ import { spawnSync } from "node:child_process";
|
|
|
874
874
|
import { createHash } from "node:crypto";
|
|
875
875
|
import { join as join4 } from "node:path";
|
|
876
876
|
import { homedir as homedir3 } from "node:os";
|
|
877
|
+
// package.json
|
|
878
|
+
var package_default = {
|
|
879
|
+
name: "@envsave/cli",
|
|
880
|
+
version: "1.0.41",
|
|
881
|
+
description: "Local secret vault for LLM-safe environments — encrypted secrets that agents can't bulk-discover",
|
|
882
|
+
type: "module",
|
|
883
|
+
main: "dist/index.js",
|
|
884
|
+
types: "dist/index.d.ts",
|
|
885
|
+
bin: {
|
|
886
|
+
envsave: "dist/cli.js"
|
|
887
|
+
},
|
|
888
|
+
files: [
|
|
889
|
+
"dist",
|
|
890
|
+
"python"
|
|
891
|
+
],
|
|
892
|
+
scripts: {
|
|
893
|
+
prebuild: `bun -e "const p=require('./package.json');const v=p.version.split('.');v[2]=+v[2]+1;p.version=v.join('.');require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\\n')"`,
|
|
894
|
+
build: "bun build src/cli.ts --outdir dist --target node --format esm && bun build src/index.ts --outdir dist --target node --format esm --outfile dist/index.js",
|
|
895
|
+
dev: "bun run src/cli.ts",
|
|
896
|
+
webapp: "bun run webapp/server.ts",
|
|
897
|
+
"lint:claude": "claude -p 'you are a linter. please look at the changes vs. main and report any issues related to typos. report the filename and line number on one line, and a description of the issue on the second line. do not return any other text.'"
|
|
898
|
+
},
|
|
899
|
+
devDependencies: {
|
|
900
|
+
"@types/bun": "latest",
|
|
901
|
+
"@types/node": "^25.5.0"
|
|
902
|
+
},
|
|
903
|
+
peerDependencies: {
|
|
904
|
+
typescript: "^5"
|
|
905
|
+
},
|
|
906
|
+
keywords: [
|
|
907
|
+
"vault",
|
|
908
|
+
"secrets",
|
|
909
|
+
"encryption",
|
|
910
|
+
"llm",
|
|
911
|
+
"security",
|
|
912
|
+
"env"
|
|
913
|
+
],
|
|
914
|
+
license: "MIT",
|
|
915
|
+
repository: {
|
|
916
|
+
type: "git",
|
|
917
|
+
url: "git+https://github.com/jcsancho/envsave.git"
|
|
918
|
+
},
|
|
919
|
+
homepage: "https://api.envsave.com",
|
|
920
|
+
author: "Jose C Sancho",
|
|
921
|
+
dependencies: {
|
|
922
|
+
"@clerk/backend": "^3.2.1",
|
|
923
|
+
"@supabase/supabase-js": "^2.99.2"
|
|
924
|
+
}
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
// src/cli.ts
|
|
877
928
|
var args = process.argv.slice(2);
|
|
878
929
|
var command = args[0];
|
|
879
930
|
function checkEnvFiles() {
|
|
@@ -998,6 +1049,10 @@ async function main() {
|
|
|
998
1049
|
checkEnvFiles();
|
|
999
1050
|
return;
|
|
1000
1051
|
}
|
|
1052
|
+
if (command === "--version" || command === "-v" || command === "version") {
|
|
1053
|
+
console.log(package_default.version);
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1001
1056
|
switch (command) {
|
|
1002
1057
|
case "activate": {
|
|
1003
1058
|
const token = args[1];
|