clawmonitor 1.1.1 → 1.1.2
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 +0 -1
- package/bin/clawmonitor.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
package/bin/clawmonitor.js
CHANGED
|
@@ -8,7 +8,7 @@ const os = require('os');
|
|
|
8
8
|
|
|
9
9
|
// === Args ===
|
|
10
10
|
const argv = process.argv.slice(2);
|
|
11
|
-
const opts = { compact: argv.includes('--compact'),
|
|
11
|
+
const opts = { compact: argv.includes('--compact'), full: argv.includes('--full'), history: 10 };
|
|
12
12
|
for (let i = 0; i < argv.length; i++) {
|
|
13
13
|
if (argv[i] === '--history') { opts.history = parseInt(argv[i + 1]) || 10; i++; }
|
|
14
14
|
else if (argv[i] === '--help' || argv[i] === '-h') {
|
|
@@ -16,7 +16,6 @@ for (let i = 0; i < argv.length; i++) {
|
|
|
16
16
|
|
|
17
17
|
Usage: clawmonitor [options]
|
|
18
18
|
|
|
19
|
-
--all Monitor all sessions (no time filter)
|
|
20
19
|
--compact Compact one-line output
|
|
21
20
|
--history N Show last N history entries (default: 10)
|
|
22
21
|
--full Show full input/output (no truncation)
|
|
@@ -84,7 +83,7 @@ function findDir() {
|
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
const DIR = findDir();
|
|
87
|
-
const TIME =
|
|
86
|
+
const TIME = 0;
|
|
88
87
|
|
|
89
88
|
// === Sessions ===
|
|
90
89
|
function findSessions() {
|