lsh-framework 2.2.3 → 2.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.
@@ -221,7 +221,8 @@ export class SecretsManager {
221
221
  updatedAt: new Date(),
222
222
  }));
223
223
  // Store on IPFS
224
- const cid = await this.storage.push(secrets, effectiveEnv, this.encryptionKey, this.gitInfo?.repoName, this.gitInfo?.currentBranch);
224
+ const cid = await this.storage.push(secrets, environment, // Use raw environment, storage will apply repo-aware naming
225
+ this.encryptionKey, this.gitInfo?.repoName, this.gitInfo?.currentBranch);
225
226
  logger.info(`✅ Pushed ${secrets.length} secrets from ${filename} to IPFS`);
226
227
  console.log(`📦 IPFS CID: ${cid}`);
227
228
  // Log to IPFS for immutable audit record
@@ -661,7 +662,7 @@ LSH_SECRETS_KEY=${this.encryptionKey}
661
662
  out('⬇️ Cloud secrets available but no local file');
662
663
  if (autoExecute) {
663
664
  out(' Pulling from cloud...');
664
- await this.pull(envFilePath, effectiveEnv, false);
665
+ await this.pull(envFilePath, environment, false); // Use raw environment, not effectiveEnv
665
666
  out('✅ Secrets pulled from cloud!');
666
667
  }
667
668
  else {
@@ -712,7 +713,7 @@ LSH_SECRETS_KEY=${this.encryptionKey}
712
713
  out(` Cloud: ${status.cloudModified.toLocaleString()}`);
713
714
  if (autoExecute) {
714
715
  out(' Pulling from cloud (backup created)...');
715
- await this.pull(envFilePath, effectiveEnv, false);
716
+ await this.pull(envFilePath, environment, false); // Use raw environment, not effectiveEnv
716
717
  out('✅ Secrets synced from cloud!');
717
718
  }
718
719
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "2.2.3",
3
+ "version": "2.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": {