pyre-cli 3.2.0 → 3.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/dist/index.js +2 -1
- package/package.json +1 -1
- package/src/index.ts +3 -1
package/dist/index.js
CHANGED
|
@@ -2975,8 +2975,9 @@ async function showSplash() {
|
|
|
2975
2975
|
}
|
|
2976
2976
|
|
|
2977
2977
|
// src/index.ts
|
|
2978
|
+
var pkg = JSON.parse(fs4.readFileSync(new URL("../package.json", import.meta.url), "utf-8"));
|
|
2978
2979
|
var program = new Command();
|
|
2979
|
-
program.name("pyre").version(
|
|
2980
|
+
program.name("pyre").version(pkg.version).description("Mac system monitoring CLI: interactive live dashboard, stats, graphs, export, packet monitor, battery predictor").option("-j, --json", "Output as JSON").option("-c, --csv", "Output as CSV").option("-t, --tsv", "Output as TSV").option("--detailed", "Include detailed system info and sensor readings").option("--interval <seconds>", "Refresh interval for live mode", "2").option("--once", "Show a single static snapshot instead of live feed").option("--out <file>", "Also write the snapshot output to a file (--once/--json/--csv/--tsv modes)").option("--export-dir <dir>", "Directory used for live-mode snapshot exports and logs", "./pyre-exports").option("--log", "Start continuous CSV logging immediately when live mode starts").option("--tree", "Show process tree view instead of flat list").option("--sort <key>", "Sort processes by: cpu, mem, pid, user, command, state, threads, runtime", "cpu").option("--packets", "Include packet monitor panel in output").option("--limit <n>", "Max number of processes to include in --once/--json/--csv/--tsv snapshots (0 = all)", "10").option("--p2p-host <host>", "P2P host address (server: bind address, client: server address)", "0.0.0.0").option("--p2p-port <port>", "P2P port number", "9876").option("--p2p-password <password>", "Password for P2P authentication").option("--p2p-tls", "Enable TLS encryption for P2P connections").option("--p2p-cert <file>", "TLS certificate file (PEM) for P2P server").option("--p2p-key <file>", "TLS private key file (PEM) for P2P server").option("--p2p-ca <file>", "TLS CA certificate file (PEM) for P2P client").option("--p2p-insecure", "Skip TLS certificate verification (client only)").option("--p2p-rate-limit <n>", "Max auth attempts per IP per minute (default: 5)", "5").option("--p2p-allow <ips>", "Comma-separated list of allowed IPs (empty = all)").option("--p2p-deny <ips>", "Comma-separated list of denied IPs").option("--p2p-audit-log <dir>", "Directory for P2P audit logs").option("--p2p-hmac-key <key>", "HMAC key for message signing (default: derived from password)");
|
|
2980
2981
|
program.parse(process.argv);
|
|
2981
2982
|
var opts = program.opts();
|
|
2982
2983
|
function isExportMode() {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -16,11 +16,13 @@ import { startLive, stopLive } from './live/index.js';
|
|
|
16
16
|
import { showSplash } from './splash.js';
|
|
17
17
|
import { P2PServer, P2PClient } from './p2p/index.js';
|
|
18
18
|
|
|
19
|
+
const pkg = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url), 'utf-8'));
|
|
20
|
+
|
|
19
21
|
const program = new Command();
|
|
20
22
|
|
|
21
23
|
program
|
|
22
24
|
.name('pyre')
|
|
23
|
-
.version(
|
|
25
|
+
.version(pkg.version)
|
|
24
26
|
.description('Mac system monitoring CLI: interactive live dashboard, stats, graphs, export, packet monitor, battery predictor')
|
|
25
27
|
.option('-j, --json', 'Output as JSON')
|
|
26
28
|
.option('-c, --csv', 'Output as CSV')
|