lsh-framework 1.2.0 → 1.3.0
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/README.md +40 -3
- package/dist/cli.js +104 -486
- package/dist/commands/doctor.js +427 -0
- package/dist/commands/init.js +371 -0
- package/dist/constants/api.js +94 -0
- package/dist/constants/commands.js +64 -0
- package/dist/constants/config.js +56 -0
- package/dist/constants/database.js +21 -0
- package/dist/constants/errors.js +79 -0
- package/dist/constants/index.js +28 -0
- package/dist/constants/paths.js +28 -0
- package/dist/constants/ui.js +73 -0
- package/dist/constants/validation.js +124 -0
- package/dist/daemon/lshd.js +11 -32
- package/dist/lib/daemon-client-helper.js +7 -4
- package/dist/lib/daemon-client.js +9 -2
- package/dist/lib/format-utils.js +163 -0
- package/dist/lib/fuzzy-match.js +123 -0
- package/dist/lib/job-manager.js +2 -1
- package/dist/lib/platform-utils.js +211 -0
- package/dist/lib/secrets-manager.js +11 -1
- package/dist/lib/string-utils.js +128 -0
- package/dist/services/daemon/daemon-registrar.js +3 -2
- package/dist/services/secrets/secrets.js +119 -59
- package/package.json +10 -74
- package/dist/app.js +0 -33
- package/dist/cicd/analytics.js +0 -261
- package/dist/cicd/auth.js +0 -269
- package/dist/cicd/cache-manager.js +0 -172
- package/dist/cicd/data-retention.js +0 -305
- package/dist/cicd/performance-monitor.js +0 -224
- package/dist/cicd/webhook-receiver.js +0 -640
- package/dist/commands/api.js +0 -346
- package/dist/commands/theme.js +0 -261
- package/dist/commands/zsh-import.js +0 -240
- package/dist/components/App.js +0 -1
- package/dist/components/Divider.js +0 -29
- package/dist/components/REPL.js +0 -43
- package/dist/components/Terminal.js +0 -232
- package/dist/components/UserInput.js +0 -30
- package/dist/daemon/api-server.js +0 -316
- package/dist/daemon/monitoring-api.js +0 -220
- package/dist/lib/api-error-handler.js +0 -185
- package/dist/lib/associative-arrays.js +0 -285
- package/dist/lib/base-api-server.js +0 -290
- package/dist/lib/brace-expansion.js +0 -160
- package/dist/lib/builtin-commands.js +0 -439
- package/dist/lib/executors/builtin-executor.js +0 -52
- package/dist/lib/extended-globbing.js +0 -411
- package/dist/lib/extended-parameter-expansion.js +0 -227
- package/dist/lib/interactive-shell.js +0 -460
- package/dist/lib/job-builtins.js +0 -582
- package/dist/lib/pathname-expansion.js +0 -216
- package/dist/lib/script-runner.js +0 -226
- package/dist/lib/shell-executor.js +0 -2504
- package/dist/lib/shell-parser.js +0 -958
- package/dist/lib/shell-types.js +0 -6
- package/dist/lib/shell.lib.js +0 -40
- package/dist/lib/theme-manager.js +0 -476
- package/dist/lib/variable-expansion.js +0 -385
- package/dist/lib/zsh-compatibility.js +0 -659
- package/dist/lib/zsh-import-manager.js +0 -707
- package/dist/lib/zsh-options.js +0 -328
- package/dist/pipeline/job-tracker.js +0 -491
- package/dist/pipeline/mcli-bridge.js +0 -309
- package/dist/pipeline/pipeline-service.js +0 -1119
- package/dist/pipeline/workflow-engine.js +0 -870
- package/dist/services/api/api.js +0 -58
- package/dist/services/api/auth.js +0 -35
- package/dist/services/api/config.js +0 -7
- package/dist/services/api/file.js +0 -22
- package/dist/services/shell/shell.js +0 -28
- package/dist/services/zapier.js +0 -16
- 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
|
|
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
|
|
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
|
|
703
|
+
lsh daemon start
|
|
667
704
|
```
|
|
668
705
|
|
|
669
706
|
## Documentation
|