@envsave/cli 1.0.50 → 1.0.52
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 +2 -2
- package/dist/cli.js +3 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -177,9 +177,9 @@ envsave delete OPENAI_API_KEY
|
|
|
177
177
|
# Creates a new opaque key derived from the new name, copies the value over,
|
|
178
178
|
# and deletes the old opaque key. The output prints OLD → NEW for easy
|
|
179
179
|
# search-and-replace in your code.
|
|
180
|
-
envsave rename
|
|
180
|
+
envsave rename CLERK_SECRET_KEY_PROJECT_A CLERK_SECRET_KEY_PROJECT_B
|
|
181
181
|
# Output:
|
|
182
|
-
# Renamed:
|
|
182
|
+
# Renamed: CLERK_SECRET_KEY_PROJECT_A → CLERK_SECRET_KEY_PROJECT_B
|
|
183
183
|
# Replace in your code:
|
|
184
184
|
# OLD (deleted): es_7cXxcbsVaJQv...
|
|
185
185
|
# NEW (created): es_enLaxEjzTO5r...
|
package/dist/cli.js
CHANGED
|
@@ -860,7 +860,7 @@ async function checkLicense() {
|
|
|
860
860
|
// package.json
|
|
861
861
|
var package_default = {
|
|
862
862
|
name: "@envsave/cli",
|
|
863
|
-
version: "1.0.
|
|
863
|
+
version: "1.0.52",
|
|
864
864
|
description: "Local secret vault for LLM-safe environments — encrypted secrets that agents can't bulk-discover",
|
|
865
865
|
type: "module",
|
|
866
866
|
main: "dist/index.js",
|
|
@@ -1585,16 +1585,12 @@ Use 'envsave list' to verify your secrets.`);
|
|
|
1585
1585
|
case "vercel": {
|
|
1586
1586
|
const vercelDir = join4(process.cwd(), ".vercel");
|
|
1587
1587
|
const vercelProjectJson = join4(vercelDir, "project.json");
|
|
1588
|
-
|
|
1588
|
+
const vercelRepoJson = join4(vercelDir, "repo.json");
|
|
1589
|
+
if (!existsSync3(vercelProjectJson) && !existsSync3(vercelRepoJson)) {
|
|
1589
1590
|
console.error("This project is not linked to Vercel.");
|
|
1590
1591
|
console.error("Run 'vercel link' first to connect this directory to a Vercel project.");
|
|
1591
1592
|
process.exit(1);
|
|
1592
1593
|
}
|
|
1593
|
-
let projectName = "unknown";
|
|
1594
|
-
try {
|
|
1595
|
-
const proj = JSON.parse(readFileSync5(vercelProjectJson, "utf8"));
|
|
1596
|
-
projectName = proj.projectId || "unknown";
|
|
1597
|
-
} catch {}
|
|
1598
1594
|
const envArg = getFlag("--env");
|
|
1599
1595
|
const environments = envArg ? envArg.split(",") : ["production", "preview", "development"];
|
|
1600
1596
|
const keyArgs = args.slice(1).filter((a) => !a.startsWith("--"));
|