bs9 1.4.3 → 1.5.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.
@@ -0,0 +1,270 @@
1
+ #!/usr/bin/env bun
2
+
3
+ import { Command } from "commander";
4
+ import { readFileSync } from "node:fs";
5
+ import { join, dirname } from "node:path";
6
+
7
+ // Read version from package.json
8
+ const packageJsonPath = join(dirname(import.meta.path), '..', 'package.json');
9
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
10
+ const version = packageJson.version;
11
+
12
+ import { startCommand } from "../src/commands/start.js";
13
+ import { stopCommand } from "../src/commands/stop.js";
14
+ import { restartCommand } from "../src/commands/restart.js";
15
+ import { statusCommand } from "../src/commands/status.js";
16
+ import { logsCommand } from "../src/commands/logs.js";
17
+ import { monitCommand } from "../src/commands/monit.js";
18
+ import { webCommand } from "../src/commands/web.js";
19
+ import { alertCommand } from "../src/commands/alert.js";
20
+ import { exportCommand } from "../src/commands/export.js";
21
+ import { depsCommand } from "../src/commands/deps.js";
22
+ import { profileCommand } from "../src/commands/profile.js";
23
+ import { deleteCommand } from "../src/commands/delete.js";
24
+ import { saveCommand } from "../src/commands/save.js";
25
+ import { resurrectCommand } from "../src/commands/resurrect.js";
26
+ import { deployCommand } from "../src/commands/deploy.js";
27
+ import { loadbalancerCommand } from "../src/loadbalancer/manager.js";
28
+ import { windowsCommand } from "../src/windows/service.js";
29
+ import { launchdCommand } from "../src/macos/launchd.js";
30
+ import { updateCommand } from "../src/commands/update.js";
31
+ import { dbpoolCommand } from "../src/database/pool.js";
32
+ import { advancedMonitoringCommand } from "../src/monitoring/advanced.js";
33
+ import { consulCommand } from "../src/discovery/consul.js";
34
+ import { doctorCommand } from "../src/commands/doctor.js";
35
+ import { inspectCommand } from "../src/commands/inspect.js";
36
+
37
+ const program = new Command();
38
+
39
+ program
40
+ .name("bs9")
41
+ .description("BS9 (Bun Sentinel 9) — Mission-critical process manager CLI")
42
+ .version(version);
43
+
44
+ program
45
+ .command("start")
46
+ .description("Start one or more services")
47
+ .argument("[file]", "Application file, service name, array [app1,app2], pattern [app-*], or [all]")
48
+ .option("-n, --name <name>", "Service name")
49
+ .option("-p, --port <port>", "Port number", "3000")
50
+ .option("-h, --host <host>", "Host address", "localhost")
51
+ .option("--https", "Use HTTPS protocol")
52
+ .option("-e, --env <env>", "Environment variables (can be used multiple times)", (value, previous) => [...(previous || []), value])
53
+ .option("--otel", "Enable OpenTelemetry instrumentation", true)
54
+ .option("--prometheus", "Enable Prometheus metrics", true)
55
+ .option("--build", "Build TypeScript to JavaScript before starting")
56
+ .action(startCommand);
57
+
58
+ program
59
+ .command("stop")
60
+ .description("Stop one or more services")
61
+ .argument("[name]", "Service name, array [app1,app2], pattern [app-*], or [all]")
62
+ .action(stopCommand);
63
+
64
+ program
65
+ .command("restart")
66
+ .description("Restart one or more services")
67
+ .argument("[name]", "Service name, array [app1,app2], pattern [app-*], or [all]")
68
+ .action(restartCommand);
69
+
70
+ program
71
+ .command("status")
72
+ .description("Show status and SRE metrics for services")
73
+ .argument("[name]", "Service name, array [app1,app2], pattern [app-*], or [all]")
74
+ .option("-w, --watch", "Watch mode (refresh every 2s)")
75
+ .action(statusCommand);
76
+
77
+ program
78
+ .command("logs")
79
+ .description("Show logs for a service (via journalctl)")
80
+ .argument("<name>", "Service name")
81
+ .option("-f, --follow", "Follow logs")
82
+ .option("-n, --lines <number>", "Number of lines", "50")
83
+ .action(logsCommand);
84
+
85
+ program
86
+ .command("monit")
87
+ .description("Real-time terminal dashboard for all services")
88
+ .option("-r, --refresh <seconds>", "Refresh interval in seconds", "2")
89
+ .action(monitCommand);
90
+
91
+ program
92
+ .command("web")
93
+ .description("Start web-based monitoring dashboard")
94
+ .option("-p, --port <port>", "Port for web dashboard", "8080")
95
+ .option("-d, --detach", "Run in background")
96
+ .action(webCommand);
97
+
98
+ program
99
+ .command("alert")
100
+ .description("Configure alert thresholds and webhooks")
101
+ .option("--enable", "Enable alerts")
102
+ .option("--disable", "Disable alerts")
103
+ .option("--webhook <url>", "Set webhook URL for alerts")
104
+ .option("--cpu <percentage>", "CPU threshold percentage")
105
+ .option("--memory <percentage>", "Memory threshold percentage")
106
+ .option("--errorRate <percentage>", "Error rate threshold percentage")
107
+ .option("--uptime <percentage>", "Uptime threshold percentage")
108
+ .option("--cooldown <seconds>", "Alert cooldown period in seconds")
109
+ .option("--service <name>", "Configure alerts for specific service")
110
+ .option("--list", "List current alert configuration")
111
+ .option("--test", "Test webhook connectivity")
112
+ .action(alertCommand);
113
+
114
+ program
115
+ .command("export")
116
+ .description("Export historical metrics data")
117
+ .option("-f, --format <format>", "Export format (json|csv)", "json")
118
+ .option("-h, --hours <hours>", "Hours of data to export", "24")
119
+ .option("-o, --output <file>", "Output file path")
120
+ .option("-s, --service <name>", "Export specific service metrics")
121
+ .action(exportCommand);
122
+
123
+ program
124
+ .command("deps")
125
+ .description("Visualize service dependencies")
126
+ .option("-f, --format <format>", "Output format (text|dot|json)", "text")
127
+ .option("-o, --output <file>", "Output file path")
128
+ .action(depsCommand);
129
+
130
+ program
131
+ .command("profile")
132
+ .description("Performance profiling for services")
133
+ .option("-d, --duration <seconds>", "Profiling duration", "60")
134
+ .option("-i, --interval <ms>", "Sampling interval", "1000")
135
+ .option("-s, --service <name>", "Service name to profile")
136
+ .option("--flamegraph", "Generate flame graph")
137
+ .option("--top <number>", "Show top N functions", "10")
138
+ .action(profileCommand);
139
+
140
+ program
141
+ .command("delete")
142
+ .description("Delete one or more managed services")
143
+ .argument("[name]", "Service name, array [app1,app2], pattern [test-*], or [all]")
144
+ .option("-a, --all", "Delete all services")
145
+ .option("-f, --force", "Force deletion without confirmation")
146
+ .option("-r, --remove", "Remove service configuration files")
147
+ .option("-t, --timeout <seconds>", "Timeout for graceful shutdown (default: 30)")
148
+ .action(deleteCommand);
149
+
150
+ program
151
+ .command("save")
152
+ .description("Save service configurations to backup")
153
+ .argument("[name]", "Service name (optional)")
154
+ .option("-a, --all", "Save all services")
155
+ .option("-f, --force", "Force save without errors")
156
+ .option("-b, --backup", "Create timestamped backup")
157
+ .action(saveCommand);
158
+
159
+ program
160
+ .command("resurrect")
161
+ .description("Resurrect services from backup")
162
+ .argument("[name]", "Service name (optional)")
163
+ .option("-a, --all", "Resurrect all services")
164
+ .option("-f, --force", "Force resurrection without errors")
165
+ .option("-c, --config <file>", "Configuration file to use")
166
+ .action(resurrectCommand);
167
+
168
+ program
169
+ .command("deploy")
170
+ .description("🚀 Deploy applications with zero-config production setup")
171
+ .argument("<file>", "Application file to deploy")
172
+ .option("-n, --name <name>", "Service name")
173
+ .option("-p, --port <port>", "Port number", "3000")
174
+ .option("-h, --host <host>", "Host address", "localhost")
175
+ .option("-e, --env <env>", "Environment variables (multiple)", (value, previous) => [...(previous || []), value])
176
+ .option("-i, --instances <number>", "Number of instances")
177
+ .option("--memory <memory>", "Memory limit")
178
+ .option("--cpu <cpu>", "CPU limit")
179
+ .option("--log-level <level>", "Log level")
180
+ .option("--log-file <file>", "Log file path")
181
+ .option("--restart <policy>", "Restart policy")
182
+ .option("--no-health", "Skip health check")
183
+ .option("--no-metrics", "Disable metrics")
184
+ .option("--no-otel", "Disable OpenTelemetry")
185
+ .option("--no-prometheus", "Disable Prometheus")
186
+ .option("--https", "Enable HTTPS")
187
+ .option("--no-linger", "Don't enable linger")
188
+ .option("-f, --force", "Force deployment")
189
+ .option("--reload", "Reload existing service")
190
+ .option("--build", "Build TypeScript")
191
+ .action(deployCommand);
192
+
193
+ program
194
+ .command("loadbalancer")
195
+ .description("Load balancer management")
196
+ .argument("<action>", "Action to perform")
197
+ .option("-p, --port <port>", "Load balancer port", "8080")
198
+ .option("-a, --algorithm <type>", "Load balancing algorithm", "round-robin")
199
+ .option("-b, --backends <list>", "Backend servers (host:port,host:port)")
200
+ .option("--health-check", "Enable health checking", true)
201
+ .option("--health-path <path>", "Health check path", "/healthz")
202
+ .option("--health-interval <ms>", "Health check interval", "10000")
203
+ .action(loadbalancerCommand);
204
+
205
+ program
206
+ .command("dbpool")
207
+ .description("Database connection pool management")
208
+ .argument("<action>", "Action to perform")
209
+ .option("--host <host>", "Database host", "localhost")
210
+ .option("--port <port>", "Database port", "5432")
211
+ .option("--database <name>", "Database name", "testdb")
212
+ .option("--username <user>", "Database username", "user")
213
+ .option("--password <pass>", "Database password", "password")
214
+ .option("--max-connections <num>", "Maximum connections", "10")
215
+ .option("--min-connections <num>", "Minimum connections", "2")
216
+ .option("--concurrency <num>", "Test concurrency", "10")
217
+ .option("--iterations <num>", "Test iterations", "100")
218
+ .action(dbpoolCommand);
219
+
220
+ program
221
+ .command("update")
222
+ .description("Update BS9 to latest version")
223
+ .option("--check", "Check for updates without installing")
224
+ .option("--force", "Force update even if already latest")
225
+ .option("--rollback", "Rollback to previous version")
226
+ .option("--version <version>", "Update to specific version")
227
+ .action(updateCommand);
228
+
229
+ program
230
+ .command("advanced")
231
+ .description("Advanced monitoring dashboard")
232
+ .option("--port <port>", "Dashboard port", "8090")
233
+ .action(advancedMonitoringCommand);
234
+
235
+ program
236
+ .command("consul")
237
+ .description("Consul service discovery")
238
+ .argument("<action>", "Action to perform")
239
+ .option("--consul-url <url>", "Consul URL", "http://localhost:8500")
240
+ .option("--name <name>", "Service name")
241
+ .option("--id <id>", "Service ID")
242
+ .option("--address <address>", "Service address")
243
+ .option("--port <port>", "Service port")
244
+ .option("--tags <tags>", "Service tags (comma-separated)")
245
+ .option("--health-check <url>", "Health check URL")
246
+ .option("--meta <json>", "Service metadata (JSON)")
247
+ .option("--service <service>", "Service name for discovery")
248
+ .action(consulCommand);
249
+
250
+ program
251
+ .command("doctor")
252
+ .description("Perform comprehensive health check")
253
+ .option("--check <type>", "Specific check to run (dependencies|configuration|platform)")
254
+ .option("-v, --verbose", "Verbose output with system information")
255
+ .action(doctorCommand);
256
+
257
+ program
258
+ .command("inspect")
259
+ .description("Comprehensive system inspection and analysis")
260
+ .option("--security", "Security inspection only")
261
+ .option("--performance", "Performance inspection only")
262
+ .option("--configuration", "Configuration inspection only")
263
+ .option("--compliance", "Compliance inspection only")
264
+ .option("--full", "Complete system inspection")
265
+ .option("--report <format>", "Export report (json|csv)")
266
+ .option("--deep", "Deep system analysis")
267
+ .option("-v, --verbose", "Verbose output with detailed analysis")
268
+ .action(inspectCommand);
269
+
270
+ program.parse();
@@ -0,0 +1,269 @@
1
+ #!/usr/bin/env bun
2
+
3
+ import { Command } from "commander";
4
+ import { readFileSync } from "node:fs";
5
+ import { join, dirname } from "node:path";
6
+
7
+ // Read version from package.json
8
+ const packageJsonPath = join(dirname(import.meta.path), '..', 'package.json');
9
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf8'));
10
+ const version = packageJson.version;
11
+
12
+ import { startCommand } from "../src/commands/start.js";
13
+ import { stopCommand } from "../src/commands/stop.js";
14
+ import { restartCommand } from "../src/commands/restart.js";
15
+ import { statusCommand } from "../src/commands/status.js";
16
+ import { logsCommand } from "../src/commands/logs.js";
17
+ import { monitCommand } from "../src/commands/monit.js";
18
+ import { webCommand } from "../src/commands/web.js";
19
+ import { alertCommand } from "../src/commands/alert.js";
20
+ import { exportCommand } from "../src/commands/export.js";
21
+ import { depsCommand } from "../src/commands/deps.js";
22
+ import { profileCommand } from "../src/commands/profile.js";
23
+ import { deleteCommand } from "../src/commands/delete.js";
24
+ import { saveCommand } from "../src/commands/save.js";
25
+ import { resurrectCommand } from "../src/commands/resurrect.js";
26
+ import { deployCommand } from "../src/commands/deploy.js";
27
+ import { loadbalancerCommand } from "../src/loadbalancer/manager.js";
28
+ import { windowsCommand } from "../src/windows/service.js";
29
+ import { launchdCommand } from "../src/macos/launchd.js";
30
+ import { updateCommand } from "../src/commands/update.js";
31
+ import { dbpoolCommand } from "../src/database/pool.js";
32
+ import { advancedMonitoringCommand } from "../src/monitoring/advanced.js";
33
+ import { consulCommand } from "../src/discovery/consul.js";
34
+ import { doctorCommand } from "../src/commands/doctor.js";
35
+ import { inspectCommand } from "../src/commands/inspect.js";
36
+
37
+ const program = new Command();
38
+
39
+ program
40
+ .name("bs9")
41
+ .description("BS9 (Bun Sentinel 9) — Mission-critical process manager CLI")
42
+ .version(version);
43
+
44
+ program
45
+ .command("start")
46
+ .description("Start a process with hardened systemd unit")
47
+ .argument("<file>", "Application file to start")
48
+ .option("-n, --name <name>", "Service name")
49
+ .option("-p, --port <port>", "Port number", "3000")
50
+ .option("-h, --host <host>", "Host address", "localhost")
51
+ .option("--https", "Use HTTPS protocol")
52
+ .option("-e, --env <env>", "Environment variables (can be used multiple times)", (value, previous) => [...(previous || []), value])
53
+ .option("--otel", "Enable OpenTelemetry instrumentation", true)
54
+ .option("--prometheus", "Enable Prometheus metrics", true)
55
+ .option("--build", "Build TypeScript to JavaScript before starting")
56
+ .action(startCommand);
57
+
58
+ program
59
+ .command("stop")
60
+ .description("Stop a managed service")
61
+ .argument("<name>", "Service name")
62
+ .action(stopCommand);
63
+
64
+ program
65
+ .command("restart")
66
+ .description("Restart a managed service")
67
+ .argument("<name>", "Service name")
68
+ .action(restartCommand);
69
+
70
+ program
71
+ .command("status")
72
+ .description("Show status and SRE metrics for all services")
73
+ .option("-w, --watch", "Watch mode (refresh every 2s)")
74
+ .action(statusCommand);
75
+
76
+ program
77
+ .command("logs")
78
+ .description("Show logs for a service (via journalctl)")
79
+ .argument("<name>", "Service name")
80
+ .option("-f, --follow", "Follow logs")
81
+ .option("-n, --lines <number>", "Number of lines", "50")
82
+ .action(logsCommand);
83
+
84
+ program
85
+ .command("monit")
86
+ .description("Real-time terminal dashboard for all services")
87
+ .option("-r, --refresh <seconds>", "Refresh interval in seconds", "2")
88
+ .action(monitCommand);
89
+
90
+ program
91
+ .command("web")
92
+ .description("Start web-based monitoring dashboard")
93
+ .option("-p, --port <port>", "Port for web dashboard", "8080")
94
+ .option("-d, --detach", "Run in background")
95
+ .action(webCommand);
96
+
97
+ program
98
+ .command("alert")
99
+ .description("Configure alert thresholds and webhooks")
100
+ .option("--enable", "Enable alerts")
101
+ .option("--disable", "Disable alerts")
102
+ .option("--webhook <url>", "Set webhook URL for alerts")
103
+ .option("--cpu <percentage>", "CPU threshold percentage")
104
+ .option("--memory <percentage>", "Memory threshold percentage")
105
+ .option("--errorRate <percentage>", "Error rate threshold percentage")
106
+ .option("--uptime <percentage>", "Uptime threshold percentage")
107
+ .option("--cooldown <seconds>", "Alert cooldown period in seconds")
108
+ .option("--service <name>", "Configure alerts for specific service")
109
+ .option("--list", "List current alert configuration")
110
+ .option("--test", "Test webhook connectivity")
111
+ .action(alertCommand);
112
+
113
+ program
114
+ .command("export")
115
+ .description("Export historical metrics data")
116
+ .option("-f, --format <format>", "Export format (json|csv)", "json")
117
+ .option("-h, --hours <hours>", "Hours of data to export", "24")
118
+ .option("-o, --output <file>", "Output file path")
119
+ .option("-s, --service <name>", "Export specific service metrics")
120
+ .action(exportCommand);
121
+
122
+ program
123
+ .command("deps")
124
+ .description("Visualize service dependencies")
125
+ .option("-f, --format <format>", "Output format (text|dot|json)", "text")
126
+ .option("-o, --output <file>", "Output file path")
127
+ .action(depsCommand);
128
+
129
+ program
130
+ .command("profile")
131
+ .description("Performance profiling for services")
132
+ .option("-d, --duration <seconds>", "Profiling duration", "60")
133
+ .option("-i, --interval <ms>", "Sampling interval", "1000")
134
+ .option("-s, --service <name>", "Service name to profile")
135
+ .option("--flamegraph", "Generate flame graph")
136
+ .option("--top <number>", "Show top N functions", "10")
137
+ .action(profileCommand);
138
+
139
+ program
140
+ .command("delete")
141
+ .description("Delete managed services")
142
+ .argument("[name]", "Service name (optional)")
143
+ .option("-a, --all", "Delete all services")
144
+ .option("-f, --force", "Force deletion without errors")
145
+ .option("-r, --remove", "Remove service configuration files")
146
+ .option("-t, --timeout <seconds>", "Timeout for graceful shutdown (default: 30)")
147
+ .action(deleteCommand);
148
+
149
+ program
150
+ .command("save")
151
+ .description("Save service configurations to backup")
152
+ .argument("[name]", "Service name (optional)")
153
+ .option("-a, --all", "Save all services")
154
+ .option("-f, --force", "Force save without errors")
155
+ .option("-b, --backup", "Create timestamped backup")
156
+ .action(saveCommand);
157
+
158
+ program
159
+ .command("resurrect")
160
+ .description("Resurrect services from backup")
161
+ .argument("[name]", "Service name (optional)")
162
+ .option("-a, --all", "Resurrect all services")
163
+ .option("-f, --force", "Force resurrection without errors")
164
+ .option("-c, --config <file>", "Configuration file to use")
165
+ .action(resurrectCommand);
166
+
167
+ program
168
+ .command("deploy")
169
+ .description("🚀 Deploy applications with zero-config production setup")
170
+ .argument("<file>", "Application file to deploy")
171
+ .option("-n, --name <name>", "Service name")
172
+ .option("-p, --port <port>", "Port number", "3000")
173
+ .option("-h, --host <host>", "Host address", "localhost")
174
+ .option("-e, --env <env>", "Environment variables (multiple)", (value, previous) => [...(previous || []), value])
175
+ .option("-i, --instances <number>", "Number of instances")
176
+ .option("--memory <memory>", "Memory limit")
177
+ .option("--cpu <cpu>", "CPU limit")
178
+ .option("--log-level <level>", "Log level")
179
+ .option("--log-file <file>", "Log file path")
180
+ .option("--restart <policy>", "Restart policy")
181
+ .option("--no-health", "Skip health check")
182
+ .option("--no-metrics", "Disable metrics")
183
+ .option("--no-otel", "Disable OpenTelemetry")
184
+ .option("--no-prometheus", "Disable Prometheus")
185
+ .option("--https", "Enable HTTPS")
186
+ .option("--no-linger", "Don't enable linger")
187
+ .option("-f, --force", "Force deployment")
188
+ .option("--reload", "Reload existing service")
189
+ .option("--build", "Build TypeScript")
190
+ .action(deployCommand);
191
+
192
+ program
193
+ .command("loadbalancer")
194
+ .description("Load balancer management")
195
+ .argument("<action>", "Action to perform")
196
+ .option("-p, --port <port>", "Load balancer port", "8080")
197
+ .option("-a, --algorithm <type>", "Load balancing algorithm", "round-robin")
198
+ .option("-b, --backends <list>", "Backend servers (host:port,host:port)")
199
+ .option("--health-check", "Enable health checking", true)
200
+ .option("--health-path <path>", "Health check path", "/healthz")
201
+ .option("--health-interval <ms>", "Health check interval", "10000")
202
+ .action(loadbalancerCommand);
203
+
204
+ program
205
+ .command("dbpool")
206
+ .description("Database connection pool management")
207
+ .argument("<action>", "Action to perform")
208
+ .option("--host <host>", "Database host", "localhost")
209
+ .option("--port <port>", "Database port", "5432")
210
+ .option("--database <name>", "Database name", "testdb")
211
+ .option("--username <user>", "Database username", "user")
212
+ .option("--password <pass>", "Database password", "password")
213
+ .option("--max-connections <num>", "Maximum connections", "10")
214
+ .option("--min-connections <num>", "Minimum connections", "2")
215
+ .option("--concurrency <num>", "Test concurrency", "10")
216
+ .option("--iterations <num>", "Test iterations", "100")
217
+ .action(dbpoolCommand);
218
+
219
+ program
220
+ .command("update")
221
+ .description("Update BS9 to latest version")
222
+ .option("--check", "Check for updates without installing")
223
+ .option("--force", "Force update even if already latest")
224
+ .option("--rollback", "Rollback to previous version")
225
+ .option("--version <version>", "Update to specific version")
226
+ .action(updateCommand);
227
+
228
+ program
229
+ .command("advanced")
230
+ .description("Advanced monitoring dashboard")
231
+ .option("--port <port>", "Dashboard port", "8090")
232
+ .action(advancedMonitoringCommand);
233
+
234
+ program
235
+ .command("consul")
236
+ .description("Consul service discovery")
237
+ .argument("<action>", "Action to perform")
238
+ .option("--consul-url <url>", "Consul URL", "http://localhost:8500")
239
+ .option("--name <name>", "Service name")
240
+ .option("--id <id>", "Service ID")
241
+ .option("--address <address>", "Service address")
242
+ .option("--port <port>", "Service port")
243
+ .option("--tags <tags>", "Service tags (comma-separated)")
244
+ .option("--health-check <url>", "Health check URL")
245
+ .option("--meta <json>", "Service metadata (JSON)")
246
+ .option("--service <service>", "Service name for discovery")
247
+ .action(consulCommand);
248
+
249
+ program
250
+ .command("doctor")
251
+ .description("Perform comprehensive health check")
252
+ .option("--check <type>", "Specific check to run (dependencies|configuration|platform)")
253
+ .option("-v, --verbose", "Verbose output with system information")
254
+ .action(doctorCommand);
255
+
256
+ program
257
+ .command("inspect")
258
+ .description("Comprehensive system inspection and analysis")
259
+ .option("--security", "Security inspection only")
260
+ .option("--performance", "Performance inspection only")
261
+ .option("--configuration", "Configuration inspection only")
262
+ .option("--compliance", "Compliance inspection only")
263
+ .option("--full", "Complete enterprise inspection")
264
+ .option("--report <format>", "Export report (json|csv)")
265
+ .option("--deep", "Deep system analysis")
266
+ .option("-v, --verbose", "Verbose output with detailed analysis")
267
+ .action(inspectCommand);
268
+
269
+ program.parse();