lsh-framework 3.2.4 → 3.2.5

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.
@@ -344,6 +344,7 @@ export function registerSyncCommands(program) {
344
344
  .description('⬇️ Pull secrets from IPFS (auto-resolves via IPNS if no CID given)')
345
345
  .option('-o, --output <path>', 'Output file path', '.env')
346
346
  .option('-e, --env <name>', 'Environment name', '')
347
+ .option('-r, --repo <name>', 'Source repo name for IPNS resolution (overrides auto-detected repo)')
347
348
  .option('--force', 'Overwrite existing file without backup')
348
349
  .action(async (cid, options) => {
349
350
  const spinner = ora(cid ? 'Downloading from IPFS...' : 'Resolving latest secrets via IPNS...').start();
@@ -378,7 +379,7 @@ export function registerSyncCommands(program) {
378
379
  process.exit(1);
379
380
  }
380
381
  const gitInfo = getGitRepoInfo();
381
- const repoName = gitInfo?.repoName || DEFAULTS.DEFAULT_ENVIRONMENT;
382
+ const repoName = options.repo || gitInfo?.repoName || DEFAULTS.DEFAULT_ENVIRONMENT;
382
383
  const environment = options.env || DEFAULTS.DEFAULT_ENVIRONMENT;
383
384
  const keyInfo = deriveKeyInfo(ipnsKey, repoName, environment);
384
385
  const ipnsName = await ensureKeyImported(ipfsSync.getApiUrl(), keyInfo);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "3.2.4",
3
+ "version": "3.2.5",
4
4
  "description": "Simple, cross-platform encrypted secrets manager with automatic sync, IPFS audit logs, and multi-environment support. Just run lsh sync and start managing your secrets.",
5
5
  "main": "dist/app.js",
6
6
  "bin": {