@envsave/cli 1.0.46 → 1.0.48

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 CHANGED
@@ -185,10 +185,12 @@ envsave passwd
185
185
  envsave config # show current
186
186
  envsave config --max-gets 120 # set max gets/minute
187
187
 
188
- # Install the EnvSave Claude skill (prompts: local in project / global for user)
189
- envsave install-skill # interactive
190
- envsave install-skill --local # → ./.claude/skills/envsave/SKILL.md
191
- envsave install-skill --global # → ~/.claude/skills/envsave/SKILL.md
188
+ # Install the EnvSave skill into an agent platform
189
+ # (--agent defaults to "claude" — codex and others are planned)
190
+ envsave install-skill # interactive prompt for scope
191
+ envsave install-skill --local # → ./.claude/skills/envsave/SKILL.md
192
+ envsave install-skill --global # → ~/.claude/skills/envsave/SKILL.md
193
+ envsave install-skill --agent claude --global # explicit agent (claude only today)
192
194
 
193
195
  # Show version
194
196
  envsave --version
package/dist/SKILL.md CHANGED
@@ -26,14 +26,17 @@ pip install envsave
26
26
 
27
27
  If the user's project doesn't yet depend on envsave, add `@envsave/cli` to their dependencies before emitting `import` statements. Never tell the user to link from a local checkout — always use the npm package.
28
28
 
29
- **Installing this skill in Claude Code:**
29
+ **Installing this skill in your agent:**
30
30
 
31
31
  ```bash
32
32
  envsave install-skill # interactive — asks local or global
33
33
  envsave install-skill --local # → ./.claude/skills/envsave/SKILL.md (this project only)
34
34
  envsave install-skill --global # → ~/.claude/skills/envsave/SKILL.md (all your projects)
35
+ envsave install-skill --agent claude --global # explicit agent
35
36
  ```
36
37
 
38
+ `--agent` defaults to `claude`. Codex and other agentic platforms are planned but not yet supported.
39
+
37
40
  **Upgrading from the old unscoped package:** if `npm install -g @envsave/cli` fails with `EEXIST` on `bin/envsave`, the user has the old unscoped `envsave` package installed globally (pre-rename). Fix it with:
38
41
 
39
42
  ```bash
@@ -169,3 +172,4 @@ The command automatically:
169
172
  | Rename a secret | `envsave rename <OLD_NAME> <NEW_NAME>` (creates new opaque key, deletes old — output prints OLD → NEW for code search-and-replace) |
170
173
  | Unlock vault | `envsave list` |
171
174
  | Push to Vercel | `envsave vercel KEY1 KEY2` |
175
+ | Install this skill | `envsave install-skill [--agent <name>] [--local\|--global]` (claude only today) |
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.46",
863
+ version: "1.0.48",
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",
@@ -959,7 +959,9 @@ Usage:
959
959
  envsave restore Download vault backup from server
960
960
  envsave sync Sync vault with server (pull if cloud newer)
961
961
  envsave vercel <KEY|es_key>... Push secrets to Vercel under both clean name + opaque id
962
- envsave install-skill [--local|--global] Install the EnvSave Claude skill (prompts if no flag)
962
+ envsave install-skill [--agent <name>] [--local|--global]
963
+ Install the EnvSave skill for an agent platform.
964
+ Supported: claude (default). Coming soon: codex, others.
963
965
  envsave help Show this help
964
966
 
965
967
  Security model:
@@ -1650,6 +1652,13 @@ Done: ${success} pushed, ${failed} failed.`);
1650
1652
  break;
1651
1653
  }
1652
1654
  case "install-skill": {
1655
+ const SUPPORTED_AGENTS = ["claude"];
1656
+ const agent = (getFlag("--agent") ?? "claude").toLowerCase();
1657
+ if (!SUPPORTED_AGENTS.includes(agent)) {
1658
+ console.error(`Agent '${agent}' is not yet supported.`);
1659
+ console.error(`Supported today: ${SUPPORTED_AGENTS.join(", ")}. Coming soon: codex, others.`);
1660
+ process.exit(1);
1661
+ }
1653
1662
  const cliDir = dirname(fileURLToPath(import.meta.url));
1654
1663
  const candidates = [
1655
1664
  join4(cliDir, "SKILL.md"),
@@ -1668,7 +1677,7 @@ Done: ${success} pushed, ${failed} failed.`);
1668
1677
  if (!scope) {
1669
1678
  const rl = createInterface({ input: process.stdin, output: process.stderr });
1670
1679
  const answer = await new Promise((resolve) => {
1671
- rl.question("Install EnvSave skill (l)ocally in this project or (g)lobally for your user? [l/g] ", resolve);
1680
+ rl.question(`Install EnvSave skill for ${agent} — (l)ocally in this project or (g)lobally for your user? [l/g] `, resolve);
1672
1681
  });
1673
1682
  rl.close();
1674
1683
  const a = answer.trim().toLowerCase();
@@ -1681,7 +1690,11 @@ Done: ${success} pushed, ${failed} failed.`);
1681
1690
  process.exit(1);
1682
1691
  }
1683
1692
  }
1684
- const targetDir = scope === "local" ? join4(process.cwd(), ".claude", "skills", "envsave") : join4(homedir3(), ".claude", "skills", "envsave");
1693
+ const agentDir = {
1694
+ claude: ".claude"
1695
+ };
1696
+ const subdir = agentDir[agent];
1697
+ const targetDir = scope === "local" ? join4(process.cwd(), subdir, "skills", "envsave") : join4(homedir3(), subdir, "skills", "envsave");
1685
1698
  const targetFile = join4(targetDir, "SKILL.md");
1686
1699
  if (existsSync3(targetFile)) {
1687
1700
  const rl = createInterface({ input: process.stdin, output: process.stderr });
@@ -1697,10 +1710,10 @@ Done: ${success} pushed, ${failed} failed.`);
1697
1710
  mkdirSync3(targetDir, { recursive: true });
1698
1711
  writeFileSync3(targetFile, readFileSync5(skillSource));
1699
1712
  console.log(`
1700
- ✓ Installed EnvSave skill ${scope === "local" ? "locally" : "globally"}`);
1713
+ ✓ Installed EnvSave skill for ${agent} (${scope})`);
1701
1714
  console.log(` ${targetFile}
1702
1715
  `);
1703
- console.log(` Restart Claude Code (or open the project) and invoke /envsave to use it.
1716
+ console.log(` Restart your agent (or open the project) and invoke /envsave to use it.
1704
1717
  `);
1705
1718
  break;
1706
1719
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envsave/cli",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "Local secret vault for LLM-safe environments — encrypted secrets that agents can't bulk-discover",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",