lsh-framework 1.2.0 → 1.2.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.
Files changed (73) hide show
  1. package/README.md +40 -3
  2. package/dist/cli.js +104 -486
  3. package/dist/commands/doctor.js +427 -0
  4. package/dist/commands/init.js +371 -0
  5. package/dist/constants/api.js +94 -0
  6. package/dist/constants/commands.js +64 -0
  7. package/dist/constants/config.js +56 -0
  8. package/dist/constants/database.js +21 -0
  9. package/dist/constants/errors.js +79 -0
  10. package/dist/constants/index.js +28 -0
  11. package/dist/constants/paths.js +28 -0
  12. package/dist/constants/ui.js +73 -0
  13. package/dist/constants/validation.js +124 -0
  14. package/dist/daemon/lshd.js +11 -32
  15. package/dist/lib/daemon-client-helper.js +7 -4
  16. package/dist/lib/daemon-client.js +9 -2
  17. package/dist/lib/format-utils.js +163 -0
  18. package/dist/lib/job-manager.js +2 -1
  19. package/dist/lib/platform-utils.js +211 -0
  20. package/dist/lib/secrets-manager.js +11 -1
  21. package/dist/lib/string-utils.js +128 -0
  22. package/dist/services/daemon/daemon-registrar.js +3 -2
  23. package/dist/services/secrets/secrets.js +54 -30
  24. package/package.json +10 -74
  25. package/dist/app.js +0 -33
  26. package/dist/cicd/analytics.js +0 -261
  27. package/dist/cicd/auth.js +0 -269
  28. package/dist/cicd/cache-manager.js +0 -172
  29. package/dist/cicd/data-retention.js +0 -305
  30. package/dist/cicd/performance-monitor.js +0 -224
  31. package/dist/cicd/webhook-receiver.js +0 -640
  32. package/dist/commands/api.js +0 -346
  33. package/dist/commands/theme.js +0 -261
  34. package/dist/commands/zsh-import.js +0 -240
  35. package/dist/components/App.js +0 -1
  36. package/dist/components/Divider.js +0 -29
  37. package/dist/components/REPL.js +0 -43
  38. package/dist/components/Terminal.js +0 -232
  39. package/dist/components/UserInput.js +0 -30
  40. package/dist/daemon/api-server.js +0 -316
  41. package/dist/daemon/monitoring-api.js +0 -220
  42. package/dist/lib/api-error-handler.js +0 -185
  43. package/dist/lib/associative-arrays.js +0 -285
  44. package/dist/lib/base-api-server.js +0 -290
  45. package/dist/lib/brace-expansion.js +0 -160
  46. package/dist/lib/builtin-commands.js +0 -439
  47. package/dist/lib/executors/builtin-executor.js +0 -52
  48. package/dist/lib/extended-globbing.js +0 -411
  49. package/dist/lib/extended-parameter-expansion.js +0 -227
  50. package/dist/lib/interactive-shell.js +0 -460
  51. package/dist/lib/job-builtins.js +0 -582
  52. package/dist/lib/pathname-expansion.js +0 -216
  53. package/dist/lib/script-runner.js +0 -226
  54. package/dist/lib/shell-executor.js +0 -2504
  55. package/dist/lib/shell-parser.js +0 -958
  56. package/dist/lib/shell-types.js +0 -6
  57. package/dist/lib/shell.lib.js +0 -40
  58. package/dist/lib/theme-manager.js +0 -476
  59. package/dist/lib/variable-expansion.js +0 -385
  60. package/dist/lib/zsh-compatibility.js +0 -659
  61. package/dist/lib/zsh-import-manager.js +0 -707
  62. package/dist/lib/zsh-options.js +0 -328
  63. package/dist/pipeline/job-tracker.js +0 -491
  64. package/dist/pipeline/mcli-bridge.js +0 -309
  65. package/dist/pipeline/pipeline-service.js +0 -1119
  66. package/dist/pipeline/workflow-engine.js +0 -870
  67. package/dist/services/api/api.js +0 -58
  68. package/dist/services/api/auth.js +0 -35
  69. package/dist/services/api/config.js +0 -7
  70. package/dist/services/api/file.js +0 -22
  71. package/dist/services/shell/shell.js +0 -28
  72. package/dist/services/zapier.js +0 -16
  73. package/dist/simple-api-server.js +0 -148
package/README.md CHANGED
@@ -239,6 +239,43 @@ lsh set DATABASE_URL postgres://localhost/db
239
239
  - ✅ Validates key names
240
240
  - ✅ Shows summary of changes
241
241
 
242
+ ### 🔄 Multi-Format Export
243
+
244
+ **New in v1.2.1:** Export secrets in multiple formats for easy integration with other tools!
245
+
246
+ ```bash
247
+ # JSON format (perfect for APIs and config files)
248
+ lsh list --format json
249
+
250
+ # YAML format (for Docker Compose, Kubernetes, etc.)
251
+ lsh list --format yaml
252
+
253
+ # TOML format (auto-detects namespaces!)
254
+ lsh list --format toml
255
+
256
+ # Shell export format (for sourcing in scripts)
257
+ lsh list --format export
258
+ eval "$(lsh list --format export)"
259
+
260
+ # Works with get command too
261
+ lsh get --all --format yaml > config.yaml
262
+
263
+ # And with env command for cloud secrets
264
+ lsh env prod --format json
265
+ ```
266
+
267
+ **Supported Formats:**
268
+ - ✅ `env` - Standard KEY=value format (default, masked)
269
+ - ✅ `json` - JSON object format
270
+ - ✅ `yaml` - YAML format
271
+ - ✅ `toml` - TOML with smart namespace detection
272
+ - ✅ `export` - Shell export statements
273
+
274
+ **Smart Features:**
275
+ - Auto-detects namespaces in TOML (e.g., `DATABASE_*` → `[database]`)
276
+ - Auto-disables masking for structured formats (JSON/YAML/TOML)
277
+ - Use `--no-mask` to show full values in any format
278
+
242
279
  ## Secrets Commands
243
280
 
244
281
  | Command | Description |
@@ -270,7 +307,7 @@ See the complete guide: [SECRETS_GUIDE.md](docs/features/secrets/SECRETS_GUIDE.m
270
307
  ### Install from npm
271
308
 
272
309
  ```bash
273
- npm install -g gwicho38-lsh
310
+ npm install -g lsh-framework
274
311
  ```
275
312
 
276
313
  ### Verify installation
@@ -485,7 +522,7 @@ echo "API keys rotated at $(date)" | mail -s "Key Rotation" team@company.com
485
522
  EOF
486
523
 
487
524
  # Schedule it
488
- lsh lib cron add --name "rotate-keys" \
525
+ lsh cron add --name "rotate-keys" \
489
526
  --schedule "0 0 1 * *" \
490
527
  --command "./rotate-keys.sh"
491
528
  ```
@@ -663,7 +700,7 @@ ps aux | grep lshd
663
700
  rm /tmp/lsh-job-daemon-$USER.pid
664
701
 
665
702
  # Restart
666
- lsh lib daemon start
703
+ lsh daemon start
667
704
  ```
668
705
 
669
706
  ## Documentation