@faros-fde-sandbox/cli 2.1.1 → 2.2.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 +53 -0
- package/lib/commands/logs.d.ts +3 -0
- package/lib/commands/logs.d.ts.map +1 -0
- package/lib/commands/logs.js +141 -0
- package/lib/commands/logs.js.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ CLI for Faros AI - sync test results, CI/CD events, and Linear data.
|
|
|
13
13
|
- [faros sync tests](#faros-sync-tests)
|
|
14
14
|
- [faros sync ci-cd](#faros-sync-ci-cd)
|
|
15
15
|
- [faros sync linear](#faros-sync-linear)
|
|
16
|
+
- [faros logs](#faros-logs)
|
|
16
17
|
- [Configuration](#configuration)
|
|
17
18
|
- [Environment Variables](#environment-variables)
|
|
18
19
|
- [Configuration File](#configuration-file)
|
|
@@ -205,6 +206,58 @@ faros sync linear --preview
|
|
|
205
206
|
- The connector uses pagination to handle large datasets
|
|
206
207
|
- All timestamps and relationships are preserved
|
|
207
208
|
|
|
209
|
+
### `faros logs`
|
|
210
|
+
|
|
211
|
+
View and manage the CLI log file.
|
|
212
|
+
|
|
213
|
+
**Usage:**
|
|
214
|
+
```bash
|
|
215
|
+
faros logs [options]
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
**Options:**
|
|
219
|
+
- `-f, --tail` - Follow log file in real-time (like `tail -f`)
|
|
220
|
+
- `-n, --lines <count>` - Show last n lines
|
|
221
|
+
- `--clear` - Clear the log file
|
|
222
|
+
- `--path` - Show log file path
|
|
223
|
+
|
|
224
|
+
**Examples:**
|
|
225
|
+
|
|
226
|
+
View entire log file:
|
|
227
|
+
```bash
|
|
228
|
+
faros logs
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Follow log file in real-time:
|
|
232
|
+
```bash
|
|
233
|
+
faros logs --tail
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
Show last 100 lines:
|
|
237
|
+
```bash
|
|
238
|
+
faros logs --lines 100
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
Clear the log file:
|
|
242
|
+
```bash
|
|
243
|
+
faros logs --clear
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
Show log file path:
|
|
247
|
+
```bash
|
|
248
|
+
faros logs --path
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
**Log File Location:**
|
|
252
|
+
- Logs are written to `./faros.log` in the working directory
|
|
253
|
+
- Log file is created automatically on first CLI operation
|
|
254
|
+
- Use `faros logs --clear` to clean up old logs
|
|
255
|
+
|
|
256
|
+
**Log Format:**
|
|
257
|
+
- JSON format (one entry per line)
|
|
258
|
+
- Includes timestamp, level, process ID, and message
|
|
259
|
+
- Credentials are automatically redacted
|
|
260
|
+
|
|
208
261
|
## Configuration
|
|
209
262
|
|
|
210
263
|
The CLI ships with sensible defaults in `faros.config.yaml`, so most users only need to set up a `.env` file with their API keys.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logs.d.ts","sourceRoot":"","sources":["../../src/commands/logs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAwDpC,wBAAgB,WAAW,IAAI,OAAO,CA2DrC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.logsCommand = logsCommand;
|
|
40
|
+
const commander_1 = require("commander");
|
|
41
|
+
const fs = __importStar(require("fs"));
|
|
42
|
+
const path = __importStar(require("path"));
|
|
43
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
44
|
+
function getLogPath() {
|
|
45
|
+
return path.join(process.cwd(), 'faros.log');
|
|
46
|
+
}
|
|
47
|
+
function showLastLines(filePath, lineCount) {
|
|
48
|
+
const content = fs.readFileSync(filePath, 'utf-8');
|
|
49
|
+
const lines = content.split('\n');
|
|
50
|
+
const lastLines = lines.slice(-lineCount);
|
|
51
|
+
console.log(lastLines.join('\n'));
|
|
52
|
+
}
|
|
53
|
+
function tailLogFile(filePath) {
|
|
54
|
+
console.log(chalk_1.default.dim(`Following ${filePath}... (Ctrl+C to stop)`));
|
|
55
|
+
console.log();
|
|
56
|
+
// Show last 10 lines initially
|
|
57
|
+
if (fs.existsSync(filePath) && fs.statSync(filePath).size > 0) {
|
|
58
|
+
showLastLines(filePath, 10);
|
|
59
|
+
}
|
|
60
|
+
let lastSize = fs.existsSync(filePath) ? fs.statSync(filePath).size : 0;
|
|
61
|
+
const interval = setInterval(() => {
|
|
62
|
+
if (!fs.existsSync(filePath)) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const stats = fs.statSync(filePath);
|
|
66
|
+
if (stats.size > lastSize) {
|
|
67
|
+
const stream = fs.createReadStream(filePath, {
|
|
68
|
+
start: lastSize,
|
|
69
|
+
end: stats.size,
|
|
70
|
+
});
|
|
71
|
+
stream.on('data', (chunk) => {
|
|
72
|
+
process.stdout.write(chunk.toString());
|
|
73
|
+
});
|
|
74
|
+
lastSize = stats.size;
|
|
75
|
+
}
|
|
76
|
+
}, 500);
|
|
77
|
+
// Handle Ctrl+C gracefully
|
|
78
|
+
process.on('SIGINT', () => {
|
|
79
|
+
clearInterval(interval);
|
|
80
|
+
console.log();
|
|
81
|
+
console.log(chalk_1.default.dim('Stopped following log file'));
|
|
82
|
+
process.exit(0);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function logsCommand() {
|
|
86
|
+
const cmd = new commander_1.Command('logs');
|
|
87
|
+
cmd
|
|
88
|
+
.description('View or manage CLI log file')
|
|
89
|
+
.option('-f, --tail', 'Follow log file in real-time')
|
|
90
|
+
.option('-n, --lines <count>', 'Show last n lines', parseInt)
|
|
91
|
+
.option('--clear', 'Clear the log file')
|
|
92
|
+
.option('--path', 'Show log file path')
|
|
93
|
+
.addHelpText('after', `
|
|
94
|
+
Examples:
|
|
95
|
+
$ faros logs # View entire log file
|
|
96
|
+
$ faros logs --tail # Follow log file in real-time
|
|
97
|
+
$ faros logs --lines 100 # Show last 100 lines
|
|
98
|
+
$ faros logs --clear # Clear the log file
|
|
99
|
+
$ faros logs --path # Show log file path
|
|
100
|
+
`)
|
|
101
|
+
.action(async (options) => {
|
|
102
|
+
const logPath = getLogPath();
|
|
103
|
+
if (options.path) {
|
|
104
|
+
console.log(logPath);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
if (options.clear) {
|
|
108
|
+
if (fs.existsSync(logPath)) {
|
|
109
|
+
fs.writeFileSync(logPath, '');
|
|
110
|
+
console.log(chalk_1.default.green('✔'), 'Log file cleared:', chalk_1.default.dim(logPath));
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
console.log(chalk_1.default.yellow('⚠'), 'No log file found at', chalk_1.default.dim(logPath));
|
|
114
|
+
}
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (!fs.existsSync(logPath)) {
|
|
118
|
+
console.log(chalk_1.default.yellow('⚠'), 'No log file found at', chalk_1.default.dim(logPath));
|
|
119
|
+
console.log();
|
|
120
|
+
console.log(chalk_1.default.dim('The log file will be created on the next sync operation.'));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
const stats = fs.statSync(logPath);
|
|
124
|
+
if (stats.size === 0) {
|
|
125
|
+
console.log(chalk_1.default.yellow('⚠'), 'Log file is empty:', chalk_1.default.dim(logPath));
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (options.tail) {
|
|
129
|
+
tailLogFile(logPath);
|
|
130
|
+
}
|
|
131
|
+
else if (options.lines) {
|
|
132
|
+
showLastLines(logPath, options.lines);
|
|
133
|
+
}
|
|
134
|
+
else {
|
|
135
|
+
const content = fs.readFileSync(logPath, 'utf-8');
|
|
136
|
+
console.log(content);
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
return cmd;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=logs.js.map
|
|
@@ -0,0 +1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AC,EAAE,CAAC;YACrB,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,oBAAoB,EAAE,eAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;YACzE,OAAO;QACT,CAAC;QAED,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,WAAW,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;aAAM,IAAI,OAAO,CAAC,KAAK,EAAE,CAAC;YACzB,aAAa,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;QACxC,CAAC;aAAM,CAAC;YACN,MAAM,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;YAClD,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QACvB,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,OAAO,GAAG,CAAC;AACb,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -8,6 +8,7 @@ const commander_1 = require("commander");
|
|
|
8
8
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
9
|
const update_notifier_1 = __importDefault(require("update-notifier"));
|
|
10
10
|
const sync_1 = require("./commands/sync");
|
|
11
|
+
const logs_1 = require("./commands/logs");
|
|
11
12
|
const ui_1 = require("./lib/ui");
|
|
12
13
|
const logger_1 = require("./lib/logger");
|
|
13
14
|
const fs_1 = require("fs");
|
|
@@ -59,6 +60,7 @@ ${chalk_1.default.bold('Support:')} https://community.faros.ai
|
|
|
59
60
|
log.info({ version: pkg.version, argv: process.argv.slice(2) }, 'faros-cli started');
|
|
60
61
|
// Register commands
|
|
61
62
|
program.addCommand((0, sync_1.syncCommand)());
|
|
63
|
+
program.addCommand((0, logs_1.logsCommand)());
|
|
62
64
|
// Parse arguments
|
|
63
65
|
await program.parseAsync(process.argv);
|
|
64
66
|
}
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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