lsh-framework 1.4.0 → 1.4.1

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/.env.example CHANGED
@@ -1,5 +1,16 @@
1
- # LSH Shell - Environment Configuration
2
- # Copy this file to .env and update with your actual values
1
+ # LSH Shell - Environment Configuration (DEPRECATED for LSH config)
2
+ #
3
+ # ⚠️ IMPORTANT: LSH configuration should now be in ~/.config/lsh/lshrc
4
+ #
5
+ # Use: lsh config # Edit configuration
6
+ # lsh config set KEY val # Set individual values
7
+ #
8
+ # This .env.example file is kept for reference and backward compatibility.
9
+ # For new installations, use: lsh config init
10
+ #
11
+ # Priority: Environment variables > ~/.config/lsh/lshrc > defaults
12
+ #
13
+ # Use .env files ONLY for application secrets, NOT for LSH configuration
3
14
 
4
15
  # Core Configuration
5
16
  USER=your_username
@@ -272,12 +272,16 @@ export class ConfigManager {
272
272
  }
273
273
  /**
274
274
  * Merge config with process.env
275
- * Config file values take precedence over environment variables
275
+ * Config file values are loaded into process.env, but existing environment
276
+ * variables take precedence (config provides defaults)
276
277
  */
277
278
  mergeWithEnv() {
278
279
  for (const [key, value] of Object.entries(this.config)) {
279
280
  if (value !== undefined && value !== '') {
280
- process.env[key] = value;
281
+ // Only set if not already in environment (env vars take precedence)
282
+ if (!process.env[key]) {
283
+ process.env[key] = value;
284
+ }
281
285
  }
282
286
  }
283
287
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lsh-framework",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Simple, cross-platform encrypted secrets manager with automatic sync and multi-environment support. Just run lsh sync and start managing your secrets.",
5
5
  "main": "dist/app.js",
6
6
  "bin": {