lsh-framework 0.7.0 → 0.8.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/dist/cli.js +27 -19
- package/package.json +8 -8
package/dist/cli.js
CHANGED
|
@@ -72,13 +72,13 @@ program
|
|
|
72
72
|
console.log('LSH - Encrypted Secrets Manager with Automatic Rotation');
|
|
73
73
|
console.log('');
|
|
74
74
|
console.log('🔐 Secrets Management (Primary Features):');
|
|
75
|
-
console.log('
|
|
76
|
-
console.log('
|
|
77
|
-
console.log('
|
|
78
|
-
console.log('
|
|
79
|
-
console.log('
|
|
80
|
-
console.log('
|
|
81
|
-
console.log('
|
|
75
|
+
console.log(' secrets sync Check sync status & get recommendations');
|
|
76
|
+
console.log(' secrets push Upload .env to encrypted cloud storage');
|
|
77
|
+
console.log(' secrets pull Download .env from cloud storage');
|
|
78
|
+
console.log(' secrets list List all stored environments');
|
|
79
|
+
console.log(' secrets show View secrets (masked)');
|
|
80
|
+
console.log(' secrets key Generate encryption key');
|
|
81
|
+
console.log(' secrets create Create new .env file');
|
|
82
82
|
console.log('');
|
|
83
83
|
console.log('🔄 Automation (Schedule secret rotation):');
|
|
84
84
|
console.log(' lib cron add Schedule automatic tasks');
|
|
@@ -86,14 +86,17 @@ program
|
|
|
86
86
|
console.log(' lib daemon start Start persistent daemon');
|
|
87
87
|
console.log('');
|
|
88
88
|
console.log('🚀 Quick Start:');
|
|
89
|
-
console.log(' lsh
|
|
90
|
-
console.log(' lsh
|
|
91
|
-
console.log(' lsh
|
|
89
|
+
console.log(' lsh secrets key # Generate encryption key');
|
|
90
|
+
console.log(' lsh secrets push --env dev # Push your secrets');
|
|
91
|
+
console.log(' lsh secrets pull --env dev # Pull on another machine');
|
|
92
92
|
console.log('');
|
|
93
93
|
console.log('📚 More Commands:');
|
|
94
94
|
console.log(' lib api API server management');
|
|
95
95
|
console.log(' lib supabase Supabase database management');
|
|
96
|
+
console.log(' lib daemon Daemon management');
|
|
97
|
+
console.log(' lib cron Cron job management');
|
|
96
98
|
console.log(' self Self-management commands');
|
|
99
|
+
console.log(' self zsh ZSH compatibility commands');
|
|
97
100
|
console.log(' -i, --interactive Start interactive shell');
|
|
98
101
|
console.log(' --help Show all options');
|
|
99
102
|
console.log('');
|
|
@@ -137,8 +140,10 @@ program
|
|
|
137
140
|
process.exit(1);
|
|
138
141
|
}
|
|
139
142
|
});
|
|
140
|
-
//
|
|
141
|
-
program
|
|
143
|
+
// Self-management commands
|
|
144
|
+
program.addCommand(selfCommand);
|
|
145
|
+
// ZSH compatibility commands (under self)
|
|
146
|
+
selfCommand
|
|
142
147
|
.command('zsh')
|
|
143
148
|
.description('ZSH compatibility commands')
|
|
144
149
|
.option('--migrate', 'Migrate ZSH configuration to LSH')
|
|
@@ -153,8 +158,6 @@ program
|
|
|
153
158
|
process.exit(1);
|
|
154
159
|
}
|
|
155
160
|
});
|
|
156
|
-
// Self-management commands
|
|
157
|
-
program.addCommand(selfCommand);
|
|
158
161
|
// Help subcommand
|
|
159
162
|
program
|
|
160
163
|
.command('help')
|
|
@@ -216,8 +219,9 @@ function findSimilarCommands(input, validCommands) {
|
|
|
216
219
|
await init_supabase(libCommand);
|
|
217
220
|
await init_daemon(libCommand);
|
|
218
221
|
await init_cron(libCommand);
|
|
219
|
-
await init_secrets(libCommand);
|
|
220
222
|
registerApiCommands(libCommand);
|
|
223
|
+
// Secrets as top-level command
|
|
224
|
+
await init_secrets(program);
|
|
221
225
|
// Self-management commands with nested utilities
|
|
222
226
|
registerZshImportCommands(selfCommand);
|
|
223
227
|
registerThemeCommands(selfCommand);
|
|
@@ -573,10 +577,10 @@ function showDetailedHelp() {
|
|
|
573
577
|
console.log(' -V, --version Show version');
|
|
574
578
|
console.log('');
|
|
575
579
|
console.log('Subcommands:');
|
|
580
|
+
console.log(' secrets Secrets management (primary feature)');
|
|
576
581
|
console.log(' repl JavaScript REPL interactive shell');
|
|
577
582
|
console.log(' script <file> Execute shell script');
|
|
578
583
|
console.log(' config Manage configuration');
|
|
579
|
-
console.log(' zsh ZSH compatibility commands');
|
|
580
584
|
console.log(' help Show detailed help');
|
|
581
585
|
console.log('');
|
|
582
586
|
console.log('Self-Management (lsh self <command>):');
|
|
@@ -584,6 +588,7 @@ function showDetailedHelp() {
|
|
|
584
588
|
console.log(' self version Show version information');
|
|
585
589
|
console.log(' self uninstall Uninstall LSH from system');
|
|
586
590
|
console.log(' self theme Manage themes (import Oh-My-Zsh themes)');
|
|
591
|
+
console.log(' self zsh ZSH compatibility commands');
|
|
587
592
|
console.log(' self zsh-import Import ZSH configs (aliases, functions, exports)');
|
|
588
593
|
console.log('');
|
|
589
594
|
console.log('Library Commands (lsh lib <command>):');
|
|
@@ -593,7 +598,6 @@ function showDetailedHelp() {
|
|
|
593
598
|
console.log(' lib daemon job Job management');
|
|
594
599
|
console.log(' lib daemon db Database integration');
|
|
595
600
|
console.log(' lib cron Cron job management');
|
|
596
|
-
console.log(' lib secrets Secrets management');
|
|
597
601
|
console.log('');
|
|
598
602
|
console.log('Examples:');
|
|
599
603
|
console.log('');
|
|
@@ -617,13 +621,17 @@ function showDetailedHelp() {
|
|
|
617
621
|
console.log(' lsh self theme import robbyrussell # Import Oh-My-Zsh theme');
|
|
618
622
|
console.log(' lsh self zsh-import aliases # Import ZSH aliases');
|
|
619
623
|
console.log('');
|
|
624
|
+
console.log(' Secrets Management:');
|
|
625
|
+
console.log(' lsh secrets sync # Check sync status');
|
|
626
|
+
console.log(' lsh secrets push # Push secrets to cloud');
|
|
627
|
+
console.log(' lsh secrets pull # Pull secrets from cloud');
|
|
628
|
+
console.log(' lsh secrets list # List environments');
|
|
629
|
+
console.log('');
|
|
620
630
|
console.log(' Library Services:');
|
|
621
631
|
console.log(' lsh lib daemon start # Start daemon');
|
|
622
632
|
console.log(' lsh lib daemon status # Check daemon status');
|
|
623
633
|
console.log(' lsh lib daemon job list # List all jobs');
|
|
624
634
|
console.log(' lsh lib cron list # List cron jobs');
|
|
625
|
-
console.log(' lsh lib secrets push # Push secrets to cloud');
|
|
626
|
-
console.log(' lsh lib secrets list # List environments');
|
|
627
635
|
console.log(' lsh lib api start # Start API server');
|
|
628
636
|
console.log(' lsh lib api key # Generate API key');
|
|
629
637
|
console.log('');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lsh-framework",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Encrypted secrets manager with automatic rotation, team sync, and multi-environment support. Built on a powerful shell with daemon scheduling and CI/CD integration.",
|
|
5
5
|
"main": "dist/app.js",
|
|
6
6
|
"bin": {
|
|
@@ -104,15 +104,10 @@
|
|
|
104
104
|
"ink-text-input": "^5.0.1",
|
|
105
105
|
"inquirer": "^9.2.12",
|
|
106
106
|
"ioredis": "^5.8.0",
|
|
107
|
-
"jest": "^29.7.0",
|
|
108
107
|
"jsonwebtoken": "^9.0.2",
|
|
109
108
|
"lodash": "^4.17.21",
|
|
110
|
-
"mocha": "^10.3.0",
|
|
111
|
-
"ncc": "^0.3.6",
|
|
112
|
-
"nexe": "^4.0.0-rc.2",
|
|
113
109
|
"node-cron": "^3.0.3",
|
|
114
110
|
"node-fetch": "^3.3.2",
|
|
115
|
-
"nodemon": "^3.0.1",
|
|
116
111
|
"ora": "^8.0.1",
|
|
117
112
|
"path": "^0.12.7",
|
|
118
113
|
"pg": "^8.16.3",
|
|
@@ -122,7 +117,6 @@
|
|
|
122
117
|
"socket.io": "^4.8.1",
|
|
123
118
|
"uuid": "^10.0.0",
|
|
124
119
|
"xstate": "^5.9.1",
|
|
125
|
-
"zapier-platform-core": "15.4.1",
|
|
126
120
|
"zx": "^7.2.3"
|
|
127
121
|
},
|
|
128
122
|
"devDependencies": {
|
|
@@ -141,8 +135,14 @@
|
|
|
141
135
|
"eslint": "^9.36.0",
|
|
142
136
|
"eslint-plugin-react": "^7.37.5",
|
|
143
137
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
138
|
+
"jest": "^29.7.0",
|
|
139
|
+
"mocha": "^10.3.0",
|
|
140
|
+
"ncc": "^0.3.6",
|
|
141
|
+
"nexe": "^4.0.0-rc.2",
|
|
142
|
+
"nodemon": "^3.0.1",
|
|
144
143
|
"supertest": "^7.1.4",
|
|
145
144
|
"ts-jest": "^29.2.5",
|
|
146
|
-
"typescript": "^5.4.5"
|
|
145
|
+
"typescript": "^5.4.5",
|
|
146
|
+
"zapier-platform-core": "15.4.1"
|
|
147
147
|
}
|
|
148
148
|
}
|