lsh-framework 1.8.0 → 1.8.2

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.
@@ -234,11 +234,14 @@ export class SecretsManager {
234
234
  if (filename !== '.env' && !filename.startsWith('.env.')) {
235
235
  throw new Error(`Invalid filename: ${filename}. Must be '.env' or start with '.env.'`);
236
236
  }
237
- logger.info(`Pulling ${filename} (${environment}) from IPFS...`);
237
+ logger.info(`Pulling ${filename} (${this.getRepoAwareEnvironment(environment)}) from IPFS...`);
238
238
  // Get secrets from IPFS storage
239
239
  const secrets = await this.storage.pull(environment, this.encryptionKey, this.gitInfo?.repoName);
240
240
  if (secrets.length === 0) {
241
- throw new Error(`No secrets found for environment: ${environment}`);
241
+ const effectiveEnv = this.getRepoAwareEnvironment(environment);
242
+ throw new Error(`No secrets found for environment: ${effectiveEnv}\n\n` +
243
+ `💡 Tip: Check available environments with: lsh env\n` +
244
+ ` Or push secrets first with: lsh push --env ${environment}`);
242
245
  }
243
246
  // Backup existing .env if it exists (unless force is true)
244
247
  if (fs.existsSync(envFilePath) && !force) {
@@ -562,7 +565,7 @@ LSH_SECRETS_KEY=${this.encryptionKey}
562
565
  return;
563
566
  }
564
567
  out(' Pushing to cloud with new key...');
565
- await this.push(envFilePath, effectiveEnv, true); // Force push
568
+ await this.push(envFilePath, environment, true); // Force push (use original environment, not effectiveEnv)
566
569
  out();
567
570
  out('✅ Re-keying complete! Cloud secrets now encrypted with current key.');
568
571
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
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": {