@graphty/remote-logger 1.1.1 → 1.2.1
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 +318 -10
- package/dist/client/RemoteLogClient.d.ts +2 -0
- package/dist/client/RemoteLogClient.d.ts.map +1 -1
- package/dist/client/RemoteLogClient.js +35 -4
- package/dist/client/RemoteLogClient.js.map +1 -1
- package/dist/client/types.d.ts +13 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/mcp/index.d.ts +9 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +9 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/mcp-server.d.ts +32 -0
- package/dist/mcp/mcp-server.d.ts.map +1 -0
- package/dist/mcp/mcp-server.js +270 -0
- package/dist/mcp/mcp-server.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +14 -0
- package/dist/mcp/tools/index.d.ts.map +1 -0
- package/dist/mcp/tools/index.js +14 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/logs-clear.d.ts +76 -0
- package/dist/mcp/tools/logs-clear.d.ts.map +1 -0
- package/dist/mcp/tools/logs-clear.js +58 -0
- package/dist/mcp/tools/logs-clear.js.map +1 -0
- package/dist/mcp/tools/logs-get-all.d.ts +60 -0
- package/dist/mcp/tools/logs-get-all.d.ts.map +1 -0
- package/dist/mcp/tools/logs-get-all.js +50 -0
- package/dist/mcp/tools/logs-get-all.js.map +1 -0
- package/dist/mcp/tools/logs-get-errors.d.ts +65 -0
- package/dist/mcp/tools/logs-get-errors.d.ts.map +1 -0
- package/dist/mcp/tools/logs-get-errors.js +46 -0
- package/dist/mcp/tools/logs-get-errors.js.map +1 -0
- package/dist/mcp/tools/logs-get-file-path.d.ts +75 -0
- package/dist/mcp/tools/logs-get-file-path.d.ts.map +1 -0
- package/dist/mcp/tools/logs-get-file-path.js +90 -0
- package/dist/mcp/tools/logs-get-file-path.js.map +1 -0
- package/dist/mcp/tools/logs-get-recent.d.ts +89 -0
- package/dist/mcp/tools/logs-get-recent.d.ts.map +1 -0
- package/dist/mcp/tools/logs-get-recent.js +74 -0
- package/dist/mcp/tools/logs-get-recent.js.map +1 -0
- package/dist/mcp/tools/logs-list-sessions.d.ts +64 -0
- package/dist/mcp/tools/logs-list-sessions.d.ts.map +1 -0
- package/dist/mcp/tools/logs-list-sessions.js +48 -0
- package/dist/mcp/tools/logs-list-sessions.js.map +1 -0
- package/dist/mcp/tools/logs-receive.d.ts +150 -0
- package/dist/mcp/tools/logs-receive.d.ts.map +1 -0
- package/dist/mcp/tools/logs-receive.js +68 -0
- package/dist/mcp/tools/logs-receive.js.map +1 -0
- package/dist/mcp/tools/logs-search.d.ts +91 -0
- package/dist/mcp/tools/logs-search.d.ts.map +1 -0
- package/dist/mcp/tools/logs-search.js +68 -0
- package/dist/mcp/tools/logs-search.js.map +1 -0
- package/dist/mcp/tools/logs-status.d.ts +45 -0
- package/dist/mcp/tools/logs-status.d.ts.map +1 -0
- package/dist/mcp/tools/logs-status.js +45 -0
- package/dist/mcp/tools/logs-status.js.map +1 -0
- package/dist/server/dual-server.d.ts +76 -0
- package/dist/server/dual-server.d.ts.map +1 -0
- package/dist/server/dual-server.js +214 -0
- package/dist/server/dual-server.js.map +1 -0
- package/dist/server/index.d.ts +5 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +5 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/jsonl-writer.d.ts +93 -0
- package/dist/server/jsonl-writer.d.ts.map +1 -0
- package/dist/server/jsonl-writer.js +205 -0
- package/dist/server/jsonl-writer.js.map +1 -0
- package/dist/server/log-server.d.ts +62 -11
- package/dist/server/log-server.d.ts.map +1 -1
- package/dist/server/log-server.js +237 -101
- package/dist/server/log-server.js.map +1 -1
- package/dist/server/log-storage.d.ts +301 -0
- package/dist/server/log-storage.d.ts.map +1 -0
- package/dist/server/log-storage.js +408 -0
- package/dist/server/log-storage.js.map +1 -0
- package/dist/server/marker-utils.d.ts +69 -0
- package/dist/server/marker-utils.d.ts.map +1 -0
- package/dist/server/marker-utils.js +118 -0
- package/dist/server/marker-utils.js.map +1 -0
- package/dist/vite/index.d.ts +8 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +8 -0
- package/dist/vite/index.js.map +1 -0
- package/dist/vite/plugin.d.ts +42 -0
- package/dist/vite/plugin.d.ts.map +1 -0
- package/dist/vite/plugin.js +46 -0
- package/dist/vite/plugin.js.map +1 -0
- package/package.json +12 -2
- package/src/client/RemoteLogClient.ts +52 -4
- package/src/client/types.ts +13 -0
- package/src/mcp/index.ts +25 -0
- package/src/mcp/mcp-server.ts +364 -0
- package/src/mcp/tools/index.ts +69 -0
- package/src/mcp/tools/logs-clear.ts +86 -0
- package/src/mcp/tools/logs-get-all.ts +78 -0
- package/src/mcp/tools/logs-get-errors.ts +71 -0
- package/src/mcp/tools/logs-get-file-path.ts +121 -0
- package/src/mcp/tools/logs-get-recent.ts +104 -0
- package/src/mcp/tools/logs-list-sessions.ts +71 -0
- package/src/mcp/tools/logs-receive.ts +96 -0
- package/src/mcp/tools/logs-search.ts +95 -0
- package/src/mcp/tools/logs-status.ts +69 -0
- package/src/server/dual-server.ts +308 -0
- package/src/server/index.ts +37 -0
- package/src/server/jsonl-writer.ts +277 -0
- package/src/server/log-server.ts +311 -119
- package/src/server/log-storage.ts +651 -0
- package/src/server/marker-utils.ts +144 -0
- package/src/vite/index.ts +8 -0
- package/src/vite/plugin.ts +59 -0
package/dist/server/index.d.ts
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* These are only meant to be run in Node.js, not in the browser.
|
|
4
4
|
* @module server
|
|
5
5
|
*/
|
|
6
|
-
export {
|
|
6
|
+
export { createDualServer, type DualServerOptions, type DualServerResult, } from "./dual-server.js";
|
|
7
|
+
export { type FileStats, type JsonlEntry, JsonlWriter, } from "./jsonl-writer.js";
|
|
8
|
+
export { clearLogs, createLogServer, type CreateLogServerOptions, type CreateLogServerResult, getJsonlWriter, getLogStorage, HELP_TEXT, type LogEntry, type LogServerOptions, main, parseArgs, type ParseArgsResult, setLogStorage, startLogServer, } from "./log-server.js";
|
|
9
|
+
export { type AddLogsOptions, type ClearFilter, type HealthStatus, type LogEntryWithSession, type LogFilter, LogStorage, type LogStorageOptions, type SearchOptions, type ServerConfig, type ServerMode, type ServerStatus, type SessionFilter, type SessionMetadata, } from "./log-storage.js";
|
|
10
|
+
export { extractMarkerFromPath, extractMarkerFromSessionId, type MarkerResolutionOptions, resolveProjectMarker, } from "./marker-utils.js";
|
|
7
11
|
export { certFilesExist, type GeneratedCert, generateSelfSignedCert, readCertFiles } from "./self-signed-cert.js";
|
|
8
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,SAAS,EACT,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,IAAI,EACJ,SAAS,EACT,KAAK,eAAe,EACpB,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,gBAAgB,EAChB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,KAAK,SAAS,EACd,KAAK,UAAU,EACf,WAAW,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,SAAS,EACT,eAAe,EACf,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,cAAc,EACd,aAAa,EACb,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,gBAAgB,EACrB,IAAI,EACJ,SAAS,EACT,KAAK,eAAe,EACpB,aAAa,EACb,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACH,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,UAAU,EACV,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,eAAe,GACvB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,qBAAqB,EACrB,0BAA0B,EAC1B,KAAK,uBAAuB,EAC5B,oBAAoB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,KAAK,aAAa,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
* These are only meant to be run in Node.js, not in the browser.
|
|
4
4
|
* @module server
|
|
5
5
|
*/
|
|
6
|
-
export {
|
|
6
|
+
export { createDualServer, } from "./dual-server.js";
|
|
7
|
+
export { JsonlWriter, } from "./jsonl-writer.js";
|
|
8
|
+
export { clearLogs, createLogServer, getJsonlWriter, getLogStorage, HELP_TEXT, main, parseArgs, setLogStorage, startLogServer, } from "./log-server.js";
|
|
9
|
+
export { LogStorage, } from "./log-storage.js";
|
|
10
|
+
export { extractMarkerFromPath, extractMarkerFromSessionId, resolveProjectMarker, } from "./marker-utils.js";
|
|
7
11
|
export { certFilesExist, generateSelfSignedCert, readCertFiles } from "./self-signed-cert.js";
|
|
8
12
|
//# sourceMappingURL=index.js.map
|
package/dist/server/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,SAAS,EACT,SAAS,EAGT,IAAI,EACJ,SAAS,EAET,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,cAAc,EAAsB,sBAAsB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACH,gBAAgB,GAGnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAGH,WAAW,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACH,SAAS,EACT,eAAe,EAGf,cAAc,EACd,aAAa,EACb,SAAS,EAGT,IAAI,EACJ,SAAS,EAET,aAAa,EACb,cAAc,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAMH,UAAU,GAQb,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACH,qBAAqB,EACrB,0BAA0B,EAE1B,oBAAoB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAsB,sBAAsB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSONL file writer for streaming logs to disk.
|
|
3
|
+
*
|
|
4
|
+
* Organizes logs by project marker in the temp directory:
|
|
5
|
+
* {baseDir}/{marker}/logs.jsonl
|
|
6
|
+
* @module server/jsonl-writer
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* A JSONL log entry.
|
|
10
|
+
*/
|
|
11
|
+
export interface JsonlEntry {
|
|
12
|
+
/** ISO 8601 timestamp when the log was created */
|
|
13
|
+
time: string;
|
|
14
|
+
/** Log level (e.g., "INFO", "DEBUG", "WARN", "ERROR") */
|
|
15
|
+
level: string;
|
|
16
|
+
/** The log message */
|
|
17
|
+
message: string;
|
|
18
|
+
/** Session ID this log belongs to */
|
|
19
|
+
sessionId: string;
|
|
20
|
+
/** Optional additional data */
|
|
21
|
+
data?: Record<string, unknown>;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* File statistics.
|
|
25
|
+
*/
|
|
26
|
+
export interface FileStats {
|
|
27
|
+
/** Whether the file exists */
|
|
28
|
+
exists: boolean;
|
|
29
|
+
/** File size in bytes */
|
|
30
|
+
size: number;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* JSONL file writer that streams log entries to disk.
|
|
34
|
+
*
|
|
35
|
+
* Each project marker gets its own log file in the structure:
|
|
36
|
+
* {baseDir}/{marker}/logs.jsonl
|
|
37
|
+
*/
|
|
38
|
+
export declare class JsonlWriter {
|
|
39
|
+
private readonly baseDir;
|
|
40
|
+
private readonly markerStates;
|
|
41
|
+
private closed;
|
|
42
|
+
/**
|
|
43
|
+
* Create a new JsonlWriter.
|
|
44
|
+
* @param baseDir - Base directory for log files (e.g., os.tmpdir()/remote-logger)
|
|
45
|
+
*/
|
|
46
|
+
constructor(baseDir: string);
|
|
47
|
+
/**
|
|
48
|
+
* Get the file path for a project marker.
|
|
49
|
+
* @param projectMarker - The project marker
|
|
50
|
+
* @returns Full path to the JSONL file
|
|
51
|
+
*/
|
|
52
|
+
getFilePath(projectMarker: string): string;
|
|
53
|
+
/**
|
|
54
|
+
* Get file statistics for a project marker's log file.
|
|
55
|
+
* @param projectMarker - The project marker
|
|
56
|
+
* @returns File stats or null if file doesn't exist
|
|
57
|
+
*/
|
|
58
|
+
getFileStats(projectMarker: string): FileStats | null;
|
|
59
|
+
/**
|
|
60
|
+
* Write a log entry to the appropriate file.
|
|
61
|
+
* @param projectMarker - The project marker
|
|
62
|
+
* @param entry - The log entry to write
|
|
63
|
+
* @returns Promise that resolves when the write is queued
|
|
64
|
+
*/
|
|
65
|
+
write(projectMarker: string, entry: JsonlEntry): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Flush all pending writes to disk.
|
|
68
|
+
*/
|
|
69
|
+
flush(): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Close all file handles.
|
|
72
|
+
*/
|
|
73
|
+
close(): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Ensure the marker state exists, creating file if needed.
|
|
76
|
+
* @param projectMarker - The project marker
|
|
77
|
+
* @returns The marker state
|
|
78
|
+
*/
|
|
79
|
+
private ensureMarkerState;
|
|
80
|
+
/**
|
|
81
|
+
* Flush the buffer for a marker state.
|
|
82
|
+
* @param state - The marker state to flush
|
|
83
|
+
*/
|
|
84
|
+
private flushBuffer;
|
|
85
|
+
/**
|
|
86
|
+
* Clean up old project log files based on directory modification time.
|
|
87
|
+
* Removes entire project directories that haven't been modified within the retention period.
|
|
88
|
+
* @param retentionDays - Number of days to retain logs
|
|
89
|
+
* @returns Number of project directories removed
|
|
90
|
+
*/
|
|
91
|
+
cleanupOldFiles(retentionDays: number): number;
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=jsonl-writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonl-writer.d.ts","sourceRoot":"","sources":["../../src/server/jsonl-writer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH;;GAEG;AACH,MAAM,WAAW,UAAU;IACvB,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,8BAA8B;IAC9B,MAAM,EAAE,OAAO,CAAC;IAChB,yBAAyB;IACzB,IAAI,EAAE,MAAM,CAAC;CAChB;AAcD;;;;;GAKG;AACH,qBAAa,WAAW;IACpB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAS;IACjC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAkC;IAC/D,OAAO,CAAC,MAAM,CAAS;IAEvB;;;OAGG;gBACS,OAAO,EAAE,MAAM;IAI3B;;;;OAIG;IACH,WAAW,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;IAI1C;;;;OAIG;IACH,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAcrD;;;;;OAKG;IACH,KAAK,CAAC,aAAa,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC;IAmB9D;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB5B;;OAEG;IACG,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAsB5B;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IAyBzB;;;OAGG;IACH,OAAO,CAAC,WAAW;IAanB;;;;;OAKG;IACH,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM;CAoDjD"}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSONL file writer for streaming logs to disk.
|
|
3
|
+
*
|
|
4
|
+
* Organizes logs by project marker in the temp directory:
|
|
5
|
+
* {baseDir}/{marker}/logs.jsonl
|
|
6
|
+
* @module server/jsonl-writer
|
|
7
|
+
*/
|
|
8
|
+
import * as fs from "fs";
|
|
9
|
+
import * as path from "path";
|
|
10
|
+
/**
|
|
11
|
+
* JSONL file writer that streams log entries to disk.
|
|
12
|
+
*
|
|
13
|
+
* Each project marker gets its own log file in the structure:
|
|
14
|
+
* {baseDir}/{marker}/logs.jsonl
|
|
15
|
+
*/
|
|
16
|
+
export class JsonlWriter {
|
|
17
|
+
/**
|
|
18
|
+
* Create a new JsonlWriter.
|
|
19
|
+
* @param baseDir - Base directory for log files (e.g., os.tmpdir()/remote-logger)
|
|
20
|
+
*/
|
|
21
|
+
constructor(baseDir) {
|
|
22
|
+
this.markerStates = new Map();
|
|
23
|
+
this.closed = false;
|
|
24
|
+
this.baseDir = baseDir;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Get the file path for a project marker.
|
|
28
|
+
* @param projectMarker - The project marker
|
|
29
|
+
* @returns Full path to the JSONL file
|
|
30
|
+
*/
|
|
31
|
+
getFilePath(projectMarker) {
|
|
32
|
+
return path.join(this.baseDir, projectMarker, "logs.jsonl");
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Get file statistics for a project marker's log file.
|
|
36
|
+
* @param projectMarker - The project marker
|
|
37
|
+
* @returns File stats or null if file doesn't exist
|
|
38
|
+
*/
|
|
39
|
+
getFileStats(projectMarker) {
|
|
40
|
+
const filePath = this.getFilePath(projectMarker);
|
|
41
|
+
try {
|
|
42
|
+
const stats = fs.statSync(filePath);
|
|
43
|
+
return {
|
|
44
|
+
exists: true,
|
|
45
|
+
size: stats.size,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
catch {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Write a log entry to the appropriate file.
|
|
54
|
+
* @param projectMarker - The project marker
|
|
55
|
+
* @param entry - The log entry to write
|
|
56
|
+
* @returns Promise that resolves when the write is queued
|
|
57
|
+
*/
|
|
58
|
+
write(projectMarker, entry) {
|
|
59
|
+
if (this.closed) {
|
|
60
|
+
return Promise.resolve();
|
|
61
|
+
}
|
|
62
|
+
const state = this.ensureMarkerState(projectMarker);
|
|
63
|
+
const line = `${JSON.stringify(entry)}\n`;
|
|
64
|
+
// Add to buffer and trigger write
|
|
65
|
+
state.buffer.push(line);
|
|
66
|
+
// Chain the write to maintain order
|
|
67
|
+
state.writeLock = state.writeLock.then(() => {
|
|
68
|
+
this.flushBuffer(state);
|
|
69
|
+
});
|
|
70
|
+
return Promise.resolve();
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Flush all pending writes to disk.
|
|
74
|
+
*/
|
|
75
|
+
async flush() {
|
|
76
|
+
const flushPromises = [];
|
|
77
|
+
for (const state of this.markerStates.values()) {
|
|
78
|
+
// Wait for pending writes and flush buffer
|
|
79
|
+
flushPromises.push(state.writeLock.then(() => {
|
|
80
|
+
this.flushBuffer(state);
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
await Promise.all(flushPromises);
|
|
84
|
+
// Sync all file descriptors
|
|
85
|
+
for (const state of this.markerStates.values()) {
|
|
86
|
+
try {
|
|
87
|
+
fs.fsyncSync(state.fd);
|
|
88
|
+
}
|
|
89
|
+
catch {
|
|
90
|
+
// Ignore sync errors
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Close all file handles.
|
|
96
|
+
*/
|
|
97
|
+
async close() {
|
|
98
|
+
if (this.closed) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
this.closed = true;
|
|
102
|
+
// Flush all pending writes
|
|
103
|
+
await this.flush();
|
|
104
|
+
// Close all file handles
|
|
105
|
+
for (const state of this.markerStates.values()) {
|
|
106
|
+
try {
|
|
107
|
+
fs.closeSync(state.fd);
|
|
108
|
+
}
|
|
109
|
+
catch {
|
|
110
|
+
// Ignore close errors
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
this.markerStates.clear();
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Ensure the marker state exists, creating file if needed.
|
|
117
|
+
* @param projectMarker - The project marker
|
|
118
|
+
* @returns The marker state
|
|
119
|
+
*/
|
|
120
|
+
ensureMarkerState(projectMarker) {
|
|
121
|
+
let state = this.markerStates.get(projectMarker);
|
|
122
|
+
if (!state) {
|
|
123
|
+
const filePath = this.getFilePath(projectMarker);
|
|
124
|
+
const dir = path.dirname(filePath);
|
|
125
|
+
// Create directory if it doesn't exist
|
|
126
|
+
fs.mkdirSync(dir, { recursive: true });
|
|
127
|
+
// Open file for appending
|
|
128
|
+
const fd = fs.openSync(filePath, "a");
|
|
129
|
+
state = {
|
|
130
|
+
fd,
|
|
131
|
+
buffer: [],
|
|
132
|
+
writeLock: Promise.resolve(),
|
|
133
|
+
};
|
|
134
|
+
this.markerStates.set(projectMarker, state);
|
|
135
|
+
}
|
|
136
|
+
return state;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Flush the buffer for a marker state.
|
|
140
|
+
* @param state - The marker state to flush
|
|
141
|
+
*/
|
|
142
|
+
flushBuffer(state) {
|
|
143
|
+
if (state.buffer.length === 0) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
// Take all buffered entries
|
|
147
|
+
const toWrite = state.buffer.join("");
|
|
148
|
+
state.buffer = [];
|
|
149
|
+
// Write to file
|
|
150
|
+
fs.writeSync(state.fd, toWrite);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Clean up old project log files based on directory modification time.
|
|
154
|
+
* Removes entire project directories that haven't been modified within the retention period.
|
|
155
|
+
* @param retentionDays - Number of days to retain logs
|
|
156
|
+
* @returns Number of project directories removed
|
|
157
|
+
*/
|
|
158
|
+
cleanupOldFiles(retentionDays) {
|
|
159
|
+
// Check if base directory exists
|
|
160
|
+
if (!fs.existsSync(this.baseDir)) {
|
|
161
|
+
return 0;
|
|
162
|
+
}
|
|
163
|
+
const cutoffTime = new Date();
|
|
164
|
+
cutoffTime.setDate(cutoffTime.getDate() - retentionDays);
|
|
165
|
+
const cutoffMs = cutoffTime.getTime();
|
|
166
|
+
let removed = 0;
|
|
167
|
+
try {
|
|
168
|
+
const entries = fs.readdirSync(this.baseDir, { withFileTypes: true });
|
|
169
|
+
for (const entry of entries) {
|
|
170
|
+
if (!entry.isDirectory()) {
|
|
171
|
+
continue;
|
|
172
|
+
}
|
|
173
|
+
const dirPath = path.join(this.baseDir, entry.name);
|
|
174
|
+
try {
|
|
175
|
+
const stats = fs.statSync(dirPath);
|
|
176
|
+
// Check if directory is older than retention period
|
|
177
|
+
if (stats.mtimeMs < cutoffMs) {
|
|
178
|
+
// Close file handle if we have one open for this marker
|
|
179
|
+
const state = this.markerStates.get(entry.name);
|
|
180
|
+
if (state) {
|
|
181
|
+
try {
|
|
182
|
+
fs.closeSync(state.fd);
|
|
183
|
+
}
|
|
184
|
+
catch {
|
|
185
|
+
// Ignore close errors
|
|
186
|
+
}
|
|
187
|
+
this.markerStates.delete(entry.name);
|
|
188
|
+
}
|
|
189
|
+
// Remove the directory
|
|
190
|
+
fs.rmSync(dirPath, { recursive: true, force: true });
|
|
191
|
+
removed++;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
catch {
|
|
195
|
+
// Ignore errors for individual directories
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
catch {
|
|
200
|
+
// Ignore errors reading base directory
|
|
201
|
+
}
|
|
202
|
+
return removed;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
//# sourceMappingURL=jsonl-writer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonl-writer.js","sourceRoot":"","sources":["../../src/server/jsonl-writer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAwC7B;;;;;GAKG;AACH,MAAM,OAAO,WAAW;IAKpB;;;OAGG;IACH,YAAY,OAAe;QAPV,iBAAY,GAAG,IAAI,GAAG,EAAuB,CAAC;QACvD,WAAM,GAAG,KAAK,CAAC;QAOnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED;;;;OAIG;IACH,WAAW,CAAC,aAAqB;QAC7B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,aAAa,EAAE,YAAY,CAAC,CAAC;IAChE,CAAC;IAED;;;;OAIG;IACH,YAAY,CAAC,aAAqB;QAC9B,MAAM,QAAQ,GAAG,IAAI,CAAC,WAA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W,EAAE,EAAE,CAAC;oBACvB,SAAS;gBACb,CAAC;gBAED,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;gBAEpD,IAAI,CAAC;oBACD,MAAM,KAAK,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;oBAEnC,oDAAoD;oBACpD,IAAI,KAAK,CAAC,OAAO,GAAG,QAAQ,EAAE,CAAC;wBAC3B,wDAAwD;wBACxD,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;wBAChD,IAAI,KAAK,EAAE,CAAC;4BACR,IAAI,CAAC;gCACD,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;4BAC3B,CAAC;4BAAC,MAAM,CAAC;gCACL,sBAAsB;4BAC1B,CAAC;4BACD,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;wBACzC,CAAC;wBAED,uBAAuB;wBACvB,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;wBACrD,OAAO,EAAE,CAAC;oBACd,CAAC;gBACL,CAAC;gBAAC,MAAM,CAAC;oBACL,2CAA2C;gBAC/C,CAAC;YACL,CAAC;QACL,CAAC;QAAC,MAAM,CAAC;YACL,uCAAuC;QAC3C,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;CACJ"}
|
|
@@ -14,32 +14,83 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import * as http from "http";
|
|
16
16
|
import * as https from "https";
|
|
17
|
+
import { JsonlWriter } from "./jsonl-writer.js";
|
|
18
|
+
import { LogStorage } from "./log-storage.js";
|
|
19
|
+
/**
|
|
20
|
+
* Get the shared LogStorage instance, creating it if needed.
|
|
21
|
+
* Creates a JsonlWriter for JSONL file streaming by default.
|
|
22
|
+
* @returns The shared LogStorage instance
|
|
23
|
+
*/
|
|
24
|
+
export declare function getLogStorage(): LogStorage;
|
|
25
|
+
/**
|
|
26
|
+
* Get the shared JsonlWriter instance.
|
|
27
|
+
* @returns The shared JsonlWriter instance or null if not initialized
|
|
28
|
+
*/
|
|
29
|
+
export declare function getJsonlWriter(): JsonlWriter | null;
|
|
30
|
+
/**
|
|
31
|
+
* Set the shared LogStorage instance (for testing or external injection).
|
|
32
|
+
* @param storage - The LogStorage instance to use
|
|
33
|
+
*/
|
|
34
|
+
export declare function setLogStorage(storage: LogStorage): void;
|
|
17
35
|
export interface LogServerOptions {
|
|
18
36
|
/** Port to listen on (default: 9080) */
|
|
19
37
|
port?: number;
|
|
20
38
|
/** Hostname to bind to (default: localhost) */
|
|
21
39
|
host?: string;
|
|
22
|
-
/** Path to SSL certificate file */
|
|
40
|
+
/** Path to SSL certificate file (HTTPS only used if both certPath and keyPath provided) */
|
|
23
41
|
certPath?: string;
|
|
24
|
-
/** Path to SSL private key file */
|
|
42
|
+
/** Path to SSL private key file (HTTPS only used if both certPath and keyPath provided) */
|
|
25
43
|
keyPath?: string;
|
|
26
44
|
/** Path to file for writing logs (optional) */
|
|
27
45
|
logFile?: string;
|
|
28
|
-
/**
|
|
29
|
-
|
|
46
|
+
/** Start in MCP server mode (default: false) @deprecated Use mcpOnly instead */
|
|
47
|
+
mcp?: boolean;
|
|
48
|
+
/** Start only MCP server (no HTTP) */
|
|
49
|
+
mcpOnly?: boolean;
|
|
50
|
+
/** Start only HTTP server (no MCP) - legacy mode */
|
|
51
|
+
httpOnly?: boolean;
|
|
30
52
|
/** Suppress startup banner (default: false) */
|
|
31
53
|
quiet?: boolean;
|
|
32
54
|
}
|
|
33
|
-
export
|
|
34
|
-
time: string;
|
|
35
|
-
level: string;
|
|
36
|
-
message: string;
|
|
37
|
-
}
|
|
55
|
+
export type { LogEntry } from "./log-storage.js";
|
|
38
56
|
/**
|
|
39
57
|
* Clear all stored logs.
|
|
40
58
|
* Useful for testing.
|
|
41
59
|
*/
|
|
42
60
|
export declare function clearLogs(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Options for creating a log server without starting it.
|
|
63
|
+
*/
|
|
64
|
+
export interface CreateLogServerOptions {
|
|
65
|
+
/** Port to listen on */
|
|
66
|
+
port: number;
|
|
67
|
+
/** Hostname to bind to */
|
|
68
|
+
host: string;
|
|
69
|
+
/** Shared log storage instance */
|
|
70
|
+
storage: LogStorage;
|
|
71
|
+
/** Suppress terminal output (default: false) */
|
|
72
|
+
quiet?: boolean;
|
|
73
|
+
/** Only serve /log POST and /health GET endpoints (default: false) */
|
|
74
|
+
logReceiveOnly?: boolean;
|
|
75
|
+
/** Path to SSL certificate file (HTTPS only used if both certPath and keyPath provided) */
|
|
76
|
+
certPath?: string;
|
|
77
|
+
/** Path to SSL private key file (HTTPS only used if both certPath and keyPath provided) */
|
|
78
|
+
keyPath?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Result of creating a log server.
|
|
82
|
+
*/
|
|
83
|
+
export interface CreateLogServerResult {
|
|
84
|
+
/** The HTTP or HTTPS server instance (not yet listening) */
|
|
85
|
+
server: http.Server | https.Server;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Create a log server with shared storage.
|
|
89
|
+
* The server is not started - call server.listen() to start it.
|
|
90
|
+
* @param options - Server configuration options
|
|
91
|
+
* @returns The server instance
|
|
92
|
+
*/
|
|
93
|
+
export declare function createLogServer(options: CreateLogServerOptions): CreateLogServerResult;
|
|
43
94
|
/**
|
|
44
95
|
* Start the log server.
|
|
45
96
|
* @param options - Server configuration options
|
|
@@ -49,7 +100,7 @@ export declare function startLogServer(options?: LogServerOptions): http.Server
|
|
|
49
100
|
/**
|
|
50
101
|
* Help text displayed when --help is passed.
|
|
51
102
|
*/
|
|
52
|
-
export declare const HELP_TEXT = "\nRemote Log Server - Remote logging for browser debugging\n\nUsage:\n npx remote-log-server [options]\n npx @graphty/remote-logger [options]\n\nOptions:\n --port, -p <port> Port to listen on (default: 9080)\n --host, -h <host> Hostname to bind to (default: localhost)\n --cert, -c <path> Path to SSL certificate file\n --key, -k <path> Path to SSL private key file\n --log-file, -l <path> Write logs to file\n --http
|
|
103
|
+
export declare const HELP_TEXT = "\nRemote Log Server - Remote logging for browser debugging\n\nUsage:\n npx remote-log-server [options]\n npx @graphty/remote-logger [options]\n\nOptions:\n --port, -p <port> Port to listen on (default: 9080)\n --host, -h <host> Hostname to bind to (default: localhost)\n --cert, -c <path> Path to SSL certificate file (enables HTTPS)\n --key, -k <path> Path to SSL private key file (enables HTTPS)\n --log-file, -l <path> Write logs to file\n --mcp-only Start only MCP server (no HTTP)\n --http-only Start only HTTP server (legacy mode)\n --mcp Alias for --mcp-only (deprecated)\n --quiet, -q Suppress startup banner\n --help Show this help message\n\nProtocol:\n HTTP is used by default. To use HTTPS, provide both --cert and --key.\n\nModes:\n Default (no flags) Dual mode: HTTP + MCP running together\n --mcp-only MCP only: For Claude Code integration\n --http-only HTTP only: Legacy mode for browser debugging\n\nExamples:\n npx remote-log-server # Start dual mode (HTTP + MCP)\n npx remote-log-server --port 9085 # Custom port\n npx remote-log-server --mcp-only # MCP server only (for Claude Code)\n npx remote-log-server --http-only # HTTP server only (legacy)\n npx remote-log-server --cert cert.crt --key key.key # Use HTTPS with custom certs\n npx remote-log-server --log-file ./tmp/logs.jsonl # Also write to file\n";
|
|
53
104
|
/**
|
|
54
105
|
* Result of parsing command line arguments.
|
|
55
106
|
*/
|
|
@@ -71,5 +122,5 @@ export declare function parseArgs(args: string[]): ParseArgsResult;
|
|
|
71
122
|
/**
|
|
72
123
|
* Parse command line arguments and start the server.
|
|
73
124
|
*/
|
|
74
|
-
export declare function main(): void
|
|
125
|
+
export declare function main(): Promise<void>;
|
|
75
126
|
//# sourceMappingURL=log-server.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"log-server.d.ts","sourceRoot":"","sources":["../../src/server/log-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"log-server.d.ts","sourceRoot":"","sources":["../../src/server/log-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAiB,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAQ7D;;;;GAIG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAU1C;AAED;;;GAGG;AACH,wBAAgB,cAAc,IAAI,WAAW,GAAG,IAAI,CAEnD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,UAAU,GAAG,IAAI,CAEvD;AAkBD,MAAM,WAAW,gBAAgB;IAC7B,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gFAAgF;IAChF,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,sCAAsC;IACtC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,+CAA+C;IAC/C,KAAK,CAAC,EAAE,OAAO,CAAC;CACnB;AAGD,YAAY,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAajD;;;GAGG;AACH,wBAAgB,SA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