@structured-world/gitlab-mcp 6.43.1 → 6.45.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 +1 -1
- package/README.md.in +1 -1
- package/dist/src/cli/inject-tool-refs.d.ts +6 -4
- package/dist/src/cli/inject-tool-refs.js +22 -8
- package/dist/src/cli/inject-tool-refs.js.map +1 -1
- package/dist/src/config.d.ts +3 -0
- package/dist/src/config.js +10 -2
- package/dist/src/config.js.map +1 -1
- package/dist/src/handlers.js +50 -6
- package/dist/src/handlers.js.map +1 -1
- package/dist/src/logging/access-log.d.ts +15 -0
- package/dist/src/logging/access-log.js +159 -0
- package/dist/src/logging/access-log.js.map +1 -0
- package/dist/src/logging/connection-tracker.d.ts +21 -0
- package/dist/src/logging/connection-tracker.js +101 -0
- package/dist/src/logging/connection-tracker.js.map +1 -0
- package/dist/src/logging/index.d.ts +5 -0
- package/dist/src/logging/index.js +27 -0
- package/dist/src/logging/index.js.map +1 -0
- package/dist/src/logging/request-tracker.d.ts +39 -0
- package/dist/src/logging/request-tracker.js +199 -0
- package/dist/src/logging/request-tracker.js.map +1 -0
- package/dist/src/logging/types.d.ts +55 -0
- package/dist/src/logging/types.js +5 -0
- package/dist/src/logging/types.js.map +1 -0
- package/dist/src/server.js +98 -20
- package/dist/src/server.js.map +1 -1
- package/dist/src/utils/fetch.js +5 -0
- package/dist/src/utils/fetch.js.map +1 -1
- package/dist/structured-world-gitlab-mcp-6.45.0.tgz +0 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/structured-world-gitlab-mcp-6.43.1.tgz +0 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionTracker = void 0;
|
|
4
|
+
exports.getConnectionTracker = getConnectionTracker;
|
|
5
|
+
exports.resetConnectionTracker = resetConnectionTracker;
|
|
6
|
+
const access_log_js_1 = require("./access-log.js");
|
|
7
|
+
const logger_js_1 = require("../logger.js");
|
|
8
|
+
class ConnectionTracker {
|
|
9
|
+
connections = new Map();
|
|
10
|
+
enabled;
|
|
11
|
+
constructor(enabled = true) {
|
|
12
|
+
this.enabled = enabled;
|
|
13
|
+
}
|
|
14
|
+
isEnabled() {
|
|
15
|
+
return this.enabled;
|
|
16
|
+
}
|
|
17
|
+
setEnabled(enabled) {
|
|
18
|
+
this.enabled = enabled;
|
|
19
|
+
}
|
|
20
|
+
openConnection(sessionId, clientIp) {
|
|
21
|
+
if (!this.enabled)
|
|
22
|
+
return;
|
|
23
|
+
const stats = {
|
|
24
|
+
connectedAt: Date.now(),
|
|
25
|
+
clientIp,
|
|
26
|
+
sessionId,
|
|
27
|
+
requestCount: 0,
|
|
28
|
+
toolCount: 0,
|
|
29
|
+
errorCount: 0,
|
|
30
|
+
};
|
|
31
|
+
this.connections.set(sessionId, stats);
|
|
32
|
+
logger_js_1.logger.debug({ sessionId, clientIp }, "Connection opened for tracking");
|
|
33
|
+
}
|
|
34
|
+
getStats(sessionId) {
|
|
35
|
+
return this.connections.get(sessionId);
|
|
36
|
+
}
|
|
37
|
+
incrementRequests(sessionId) {
|
|
38
|
+
const stats = this.connections.get(sessionId);
|
|
39
|
+
if (!stats)
|
|
40
|
+
return;
|
|
41
|
+
stats.requestCount++;
|
|
42
|
+
}
|
|
43
|
+
incrementTools(sessionId) {
|
|
44
|
+
const stats = this.connections.get(sessionId);
|
|
45
|
+
if (!stats)
|
|
46
|
+
return;
|
|
47
|
+
stats.toolCount++;
|
|
48
|
+
}
|
|
49
|
+
recordError(sessionId, error) {
|
|
50
|
+
const stats = this.connections.get(sessionId);
|
|
51
|
+
if (!stats)
|
|
52
|
+
return;
|
|
53
|
+
stats.errorCount++;
|
|
54
|
+
stats.lastError = error;
|
|
55
|
+
}
|
|
56
|
+
closeConnection(sessionId, reason) {
|
|
57
|
+
const stats = this.connections.get(sessionId);
|
|
58
|
+
if (!stats) {
|
|
59
|
+
if (this.enabled) {
|
|
60
|
+
logger_js_1.logger.debug({ sessionId }, "Connection not found on close");
|
|
61
|
+
}
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
this.connections.delete(sessionId);
|
|
65
|
+
if (!this.enabled) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
const entry = (0, access_log_js_1.createConnectionCloseEntry)(stats, reason);
|
|
69
|
+
const logLine = (0, access_log_js_1.formatConnectionClose)(entry);
|
|
70
|
+
logger_js_1.logger.info({ connectionClose: entry }, logLine);
|
|
71
|
+
return logLine;
|
|
72
|
+
}
|
|
73
|
+
hasConnection(sessionId) {
|
|
74
|
+
return this.connections.has(sessionId);
|
|
75
|
+
}
|
|
76
|
+
getActiveConnectionCount() {
|
|
77
|
+
return this.connections.size;
|
|
78
|
+
}
|
|
79
|
+
getAllSessionIds() {
|
|
80
|
+
return Array.from(this.connections.keys());
|
|
81
|
+
}
|
|
82
|
+
closeAllConnections(reason = "server_shutdown") {
|
|
83
|
+
const sessionIds = this.getAllSessionIds();
|
|
84
|
+
for (const sessionId of sessionIds) {
|
|
85
|
+
this.closeConnection(sessionId, reason);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
clear() {
|
|
89
|
+
this.connections.clear();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.ConnectionTracker = ConnectionTracker;
|
|
93
|
+
let globalConnectionTracker = null;
|
|
94
|
+
function getConnectionTracker() {
|
|
95
|
+
globalConnectionTracker ??= new ConnectionTracker();
|
|
96
|
+
return globalConnectionTracker;
|
|
97
|
+
}
|
|
98
|
+
function resetConnectionTracker() {
|
|
99
|
+
globalConnectionTracker = null;
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=connection-tracker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-tracker.js","sourceRoot":"","sources":["../../../src/logging/connection-tracker.ts"],"names":[],"m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B;QACd,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;IAOD,mBAAmB,CAAC,SAAgC,iBAAiB;QACnE,MAAM,UAAU,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;QAC3C,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;YACnC,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC;IAKD,KAAK;QACH,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC;IAC3B,CAAC;CACF;AA7JD,8CA6JC;AAKD,IAAI,uBAAuB,GAA6B,IAAI,CAAC;AAK7D,SAAgB,oBAAoB;IAClC,uBAAuB,KAAK,IAAI,iBAAiB,EAAE,CAAC;IACpD,OAAO,uBAAuB,CAAC;AACjC,CAAC;AAKD,SAAgB,sBAAsB;IACpC,uBAAuB,GAAG,IAAI,CAAC;AACjC,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { RequestStack, ConnectionStats, AccessLogEntry, ConnectionCloseEntry, ConnectionCloseReason, LogFormat, } from "./types.js";
|
|
2
|
+
export { DEFAULT_LOG_FORMAT } from "./types.js";
|
|
3
|
+
export { AccessLogFormatter, truncateSessionId, formatDuration, formatGitLabStatus, formatDetails, formatAccessLog, formatConnectionClose, createAccessLogEntry, createConnectionCloseEntry, } from "./access-log.js";
|
|
4
|
+
export { RequestTracker, getRequestTracker, resetRequestTracker, getCurrentRequestId, runWithRequestContext, runWithRequestContextAsync, type RequestContext, } from "./request-tracker.js";
|
|
5
|
+
export { ConnectionTracker, getConnectionTracker, resetConnectionTracker, } from "./connection-tracker.js";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.resetConnectionTracker = exports.getConnectionTracker = exports.ConnectionTracker = exports.runWithRequestContextAsync = exports.runWithRequestContext = exports.getCurrentRequestId = exports.resetRequestTracker = exports.getRequestTracker = exports.RequestTracker = exports.createConnectionCloseEntry = exports.createAccessLogEntry = exports.formatConnectionClose = exports.formatAccessLog = exports.formatDetails = exports.formatGitLabStatus = exports.formatDuration = exports.truncateSessionId = exports.AccessLogFormatter = exports.DEFAULT_LOG_FORMAT = void 0;
|
|
4
|
+
var types_js_1 = require("./types.js");
|
|
5
|
+
Object.defineProperty(exports, "DEFAULT_LOG_FORMAT", { enumerable: true, get: function () { return types_js_1.DEFAULT_LOG_FORMAT; } });
|
|
6
|
+
var access_log_js_1 = require("./access-log.js");
|
|
7
|
+
Object.defineProperty(exports, "AccessLogFormatter", { enumerable: true, get: function () { return access_log_js_1.AccessLogFormatter; } });
|
|
8
|
+
Object.defineProperty(exports, "truncateSessionId", { enumerable: true, get: function () { return access_log_js_1.truncateSessionId; } });
|
|
9
|
+
Object.defineProperty(exports, "formatDuration", { enumerable: true, get: function () { return access_log_js_1.formatDuration; } });
|
|
10
|
+
Object.defineProperty(exports, "formatGitLabStatus", { enumerable: true, get: function () { return access_log_js_1.formatGitLabStatus; } });
|
|
11
|
+
Object.defineProperty(exports, "formatDetails", { enumerable: true, get: function () { return access_log_js_1.formatDetails; } });
|
|
12
|
+
Object.defineProperty(exports, "formatAccessLog", { enumerable: true, get: function () { return access_log_js_1.formatAccessLog; } });
|
|
13
|
+
Object.defineProperty(exports, "formatConnectionClose", { enumerable: true, get: function () { return access_log_js_1.formatConnectionClose; } });
|
|
14
|
+
Object.defineProperty(exports, "createAccessLogEntry", { enumerable: true, get: function () { return access_log_js_1.createAccessLogEntry; } });
|
|
15
|
+
Object.defineProperty(exports, "createConnectionCloseEntry", { enumerable: true, get: function () { return access_log_js_1.createConnectionCloseEntry; } });
|
|
16
|
+
var request_tracker_js_1 = require("./request-tracker.js");
|
|
17
|
+
Object.defineProperty(exports, "RequestTracker", { enumerable: true, get: function () { return request_tracker_js_1.RequestTracker; } });
|
|
18
|
+
Object.defineProperty(exports, "getRequestTracker", { enumerable: true, get: function () { return request_tracker_js_1.getRequestTracker; } });
|
|
19
|
+
Object.defineProperty(exports, "resetRequestTracker", { enumerable: true, get: function () { return request_tracker_js_1.resetRequestTracker; } });
|
|
20
|
+
Object.defineProperty(exports, "getCurrentRequestId", { enumerable: true, get: function () { return request_tracker_js_1.getCurrentRequestId; } });
|
|
21
|
+
Object.defineProperty(exports, "runWithRequestContext", { enumerable: true, get: function () { return request_tracker_js_1.runWithRequestContext; } });
|
|
22
|
+
Object.defineProperty(exports, "runWithRequestContextAsync", { enumerable: true, get: function () { return request_tracker_js_1.runWithRequestContextAsync; } });
|
|
23
|
+
var connection_tracker_js_1 = require("./connection-tracker.js");
|
|
24
|
+
Object.defineProperty(exports, "ConnectionTracker", { enumerable: true, get: function () { return connection_tracker_js_1.ConnectionTracker; } });
|
|
25
|
+
Object.defineProperty(exports, "getConnectionTracker", { enumerable: true, get: function () { return connection_tracker_js_1.getConnectionTracker; } });
|
|
26
|
+
Object.defineProperty(exports, "resetConnectionTracker", { enumerable: true, get: function () { return connection_tracker_js_1.resetConnectionTracker; } });
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/logging/index.ts"],"names":[],"mappings":";;;AAiBA,uCAAgD;AAAvC,8GAAA,kBAAkB,OAAA;AAG3B,iDAUyB;AATvB,mHAAA,kBAAkB,OAAA;AAClB,kHAAA,iBAAiB,OAAA;AACjB,+GAAA,cAAc,OAAA;AACd,mHAAA,kBAAkB,OAAA;AAClB,8GAAA,aAAa,OAAA;AACb,gHAAA,eAAe,OAAA;AACf,sHAAA,qBAAqB,OAAA;AACrB,qHAAA,oBAAoB,OAAA;AACpB,2HAAA,0BAA0B,OAAA;AAI5B,2DAQ8B;AAP5B,oHAAA,cAAc,OAAA;AACd,uHAAA,iBAAiB,OAAA;AACjB,yHAAA,mBAAmB,OAAA;AACnB,yHAAA,mBAAmB,OAAA;AACnB,2HAAA,qBAAqB,OAAA;AACrB,gIAAA,0BAA0B,OAAA;AAK5B,iEAIiC;AAH/B,0HAAA,iBAAiB,OAAA;AACjB,6HAAA,oBAAoB,OAAA;AACpB,+HAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { RequestStack } from "./types.js";
|
|
2
|
+
export interface RequestContext {
|
|
3
|
+
requestId: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function getCurrentRequestId(): string | undefined;
|
|
6
|
+
export declare function runWithRequestContext<T>(requestId: string, fn: () => T): T;
|
|
7
|
+
export declare function runWithRequestContextAsync<T>(requestId: string, fn: () => Promise<T>): Promise<T>;
|
|
8
|
+
export declare class RequestTracker {
|
|
9
|
+
private stacks;
|
|
10
|
+
private enabled;
|
|
11
|
+
constructor(enabled?: boolean);
|
|
12
|
+
isEnabled(): boolean;
|
|
13
|
+
setEnabled(enabled: boolean): void;
|
|
14
|
+
openStack(requestId: string, clientIp: string, method: string, path: string, sessionId?: string): void;
|
|
15
|
+
getStack(requestId: string): RequestStack | undefined;
|
|
16
|
+
setTool(requestId: string, tool: string, action?: string): void;
|
|
17
|
+
setGitLabResponse(requestId: string, status: number | "timeout" | "error", durationMs?: number): void;
|
|
18
|
+
addDetail(requestId: string, key: string, value: string | number | boolean): void;
|
|
19
|
+
addDetails(requestId: string, details: Record<string, string | number | boolean>): void;
|
|
20
|
+
setError(requestId: string, error: string): void;
|
|
21
|
+
setContext(requestId: string, context: string): void;
|
|
22
|
+
setReadOnly(requestId: string, readOnly: boolean): void;
|
|
23
|
+
setSessionId(requestId: string, sessionId: string): void;
|
|
24
|
+
closeStack(requestId: string, status: number): string | undefined;
|
|
25
|
+
closeStackWithError(requestId: string, error: string): string | undefined;
|
|
26
|
+
hasStack(requestId: string): boolean;
|
|
27
|
+
getOpenStackCount(): number;
|
|
28
|
+
clear(): void;
|
|
29
|
+
setToolForCurrentRequest(tool: string, action?: string): void;
|
|
30
|
+
setGitLabResponseForCurrentRequest(status: number | "timeout" | "error", durationMs?: number): void;
|
|
31
|
+
addDetailForCurrentRequest(key: string, value: string | number | boolean): void;
|
|
32
|
+
addDetailsForCurrentRequest(details: Record<string, string | number | boolean>): void;
|
|
33
|
+
setErrorForCurrentRequest(error: string): void;
|
|
34
|
+
setContextForCurrentRequest(context: string): void;
|
|
35
|
+
setReadOnlyForCurrentRequest(readOnly: boolean): void;
|
|
36
|
+
setSessionIdForCurrentRequest(sessionId: string): void;
|
|
37
|
+
}
|
|
38
|
+
export declare function getRequestTracker(): RequestTracker;
|
|
39
|
+
export declare function resetRequestTracker(): void;
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestTracker = void 0;
|
|
4
|
+
exports.getCurrentRequestId = getCurrentRequestId;
|
|
5
|
+
exports.runWithRequestContext = runWithRequestContext;
|
|
6
|
+
exports.runWithRequestContextAsync = runWithRequestContextAsync;
|
|
7
|
+
exports.getRequestTracker = getRequestTracker;
|
|
8
|
+
exports.resetRequestTracker = resetRequestTracker;
|
|
9
|
+
const async_hooks_1 = require("async_hooks");
|
|
10
|
+
const access_log_js_1 = require("./access-log.js");
|
|
11
|
+
const logger_js_1 = require("../logger.js");
|
|
12
|
+
const requestContext = new async_hooks_1.AsyncLocalStorage();
|
|
13
|
+
function getCurrentRequestId() {
|
|
14
|
+
return requestContext.getStore()?.requestId;
|
|
15
|
+
}
|
|
16
|
+
function runWithRequestContext(requestId, fn) {
|
|
17
|
+
return requestContext.run({ requestId }, fn);
|
|
18
|
+
}
|
|
19
|
+
async function runWithRequestContextAsync(requestId, fn) {
|
|
20
|
+
return requestContext.run({ requestId }, fn);
|
|
21
|
+
}
|
|
22
|
+
class RequestTracker {
|
|
23
|
+
stacks = new Map();
|
|
24
|
+
enabled;
|
|
25
|
+
constructor(enabled = true) {
|
|
26
|
+
this.enabled = enabled;
|
|
27
|
+
}
|
|
28
|
+
isEnabled() {
|
|
29
|
+
return this.enabled;
|
|
30
|
+
}
|
|
31
|
+
setEnabled(enabled) {
|
|
32
|
+
this.enabled = enabled;
|
|
33
|
+
}
|
|
34
|
+
openStack(requestId, clientIp, method, path, sessionId) {
|
|
35
|
+
if (!this.enabled)
|
|
36
|
+
return;
|
|
37
|
+
const stack = {
|
|
38
|
+
startTime: Date.now(),
|
|
39
|
+
clientIp,
|
|
40
|
+
method,
|
|
41
|
+
path,
|
|
42
|
+
sessionId,
|
|
43
|
+
details: {},
|
|
44
|
+
};
|
|
45
|
+
this.stacks.set(requestId, stack);
|
|
46
|
+
logger_js_1.logger.debug({ requestId, clientIp, method, path }, "Request stack opened");
|
|
47
|
+
}
|
|
48
|
+
getStack(requestId) {
|
|
49
|
+
return this.stacks.get(requestId);
|
|
50
|
+
}
|
|
51
|
+
setTool(requestId, tool, action) {
|
|
52
|
+
const stack = this.stacks.get(requestId);
|
|
53
|
+
if (!stack)
|
|
54
|
+
return;
|
|
55
|
+
stack.tool = tool;
|
|
56
|
+
if (action) {
|
|
57
|
+
stack.action = action;
|
|
58
|
+
}
|
|
59
|
+
logger_js_1.logger.debug({ requestId, tool, action }, "Tool set on request stack");
|
|
60
|
+
}
|
|
61
|
+
setGitLabResponse(requestId, status, durationMs) {
|
|
62
|
+
const stack = this.stacks.get(requestId);
|
|
63
|
+
if (!stack)
|
|
64
|
+
return;
|
|
65
|
+
stack.gitlabStatus = status;
|
|
66
|
+
if (durationMs !== undefined) {
|
|
67
|
+
stack.gitlabDuration = durationMs;
|
|
68
|
+
}
|
|
69
|
+
logger_js_1.logger.debug({ requestId, gitlabStatus: status, gitlabDuration: durationMs }, "GitLab response set on request stack");
|
|
70
|
+
}
|
|
71
|
+
addDetail(requestId, key, value) {
|
|
72
|
+
const stack = this.stacks.get(requestId);
|
|
73
|
+
if (!stack)
|
|
74
|
+
return;
|
|
75
|
+
stack.details[key] = value;
|
|
76
|
+
}
|
|
77
|
+
addDetails(requestId, details) {
|
|
78
|
+
const stack = this.stacks.get(requestId);
|
|
79
|
+
if (!stack)
|
|
80
|
+
return;
|
|
81
|
+
Object.assign(stack.details, details);
|
|
82
|
+
}
|
|
83
|
+
setError(requestId, error) {
|
|
84
|
+
const stack = this.stacks.get(requestId);
|
|
85
|
+
if (!stack)
|
|
86
|
+
return;
|
|
87
|
+
stack.error = error;
|
|
88
|
+
stack.details.err = error;
|
|
89
|
+
}
|
|
90
|
+
setContext(requestId, context) {
|
|
91
|
+
const stack = this.stacks.get(requestId);
|
|
92
|
+
if (!stack)
|
|
93
|
+
return;
|
|
94
|
+
stack.context = context;
|
|
95
|
+
}
|
|
96
|
+
setReadOnly(requestId, readOnly) {
|
|
97
|
+
const stack = this.stacks.get(requestId);
|
|
98
|
+
if (!stack)
|
|
99
|
+
return;
|
|
100
|
+
stack.readOnly = readOnly;
|
|
101
|
+
}
|
|
102
|
+
setSessionId(requestId, sessionId) {
|
|
103
|
+
const stack = this.stacks.get(requestId);
|
|
104
|
+
if (!stack)
|
|
105
|
+
return;
|
|
106
|
+
stack.sessionId = sessionId;
|
|
107
|
+
}
|
|
108
|
+
closeStack(requestId, status) {
|
|
109
|
+
const stack = this.stacks.get(requestId);
|
|
110
|
+
if (!stack) {
|
|
111
|
+
logger_js_1.logger.debug({ requestId }, "Request stack not found on close");
|
|
112
|
+
return undefined;
|
|
113
|
+
}
|
|
114
|
+
this.stacks.delete(requestId);
|
|
115
|
+
stack.status = status;
|
|
116
|
+
if (!this.enabled) {
|
|
117
|
+
return undefined;
|
|
118
|
+
}
|
|
119
|
+
const entry = (0, access_log_js_1.createAccessLogEntry)(stack);
|
|
120
|
+
const logLine = (0, access_log_js_1.formatAccessLog)(entry);
|
|
121
|
+
logger_js_1.logger.info({ accessLog: entry }, logLine);
|
|
122
|
+
return logLine;
|
|
123
|
+
}
|
|
124
|
+
closeStackWithError(requestId, error) {
|
|
125
|
+
const stack = this.stacks.get(requestId);
|
|
126
|
+
if (!stack)
|
|
127
|
+
return undefined;
|
|
128
|
+
stack.error = error;
|
|
129
|
+
stack.details.err = error;
|
|
130
|
+
return this.closeStack(requestId, 0);
|
|
131
|
+
}
|
|
132
|
+
hasStack(requestId) {
|
|
133
|
+
return this.stacks.has(requestId);
|
|
134
|
+
}
|
|
135
|
+
getOpenStackCount() {
|
|
136
|
+
return this.stacks.size;
|
|
137
|
+
}
|
|
138
|
+
clear() {
|
|
139
|
+
this.stacks.clear();
|
|
140
|
+
}
|
|
141
|
+
setToolForCurrentRequest(tool, action) {
|
|
142
|
+
const requestId = getCurrentRequestId();
|
|
143
|
+
if (requestId) {
|
|
144
|
+
this.setTool(requestId, tool, action);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
setGitLabResponseForCurrentRequest(status, durationMs) {
|
|
148
|
+
const requestId = getCurrentRequestId();
|
|
149
|
+
if (requestId) {
|
|
150
|
+
this.setGitLabResponse(requestId, status, durationMs);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
addDetailForCurrentRequest(key, value) {
|
|
154
|
+
const requestId = getCurrentRequestId();
|
|
155
|
+
if (requestId) {
|
|
156
|
+
this.addDetail(requestId, key, value);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
addDetailsForCurrentRequest(details) {
|
|
160
|
+
const requestId = getCurrentRequestId();
|
|
161
|
+
if (requestId) {
|
|
162
|
+
this.addDetails(requestId, details);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
setErrorForCurrentRequest(error) {
|
|
166
|
+
const requestId = getCurrentRequestId();
|
|
167
|
+
if (requestId) {
|
|
168
|
+
this.setError(requestId, error);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
setContextForCurrentRequest(context) {
|
|
172
|
+
const requestId = getCurrentRequestId();
|
|
173
|
+
if (requestId) {
|
|
174
|
+
this.setContext(requestId, context);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
setReadOnlyForCurrentRequest(readOnly) {
|
|
178
|
+
const requestId = getCurrentRequestId();
|
|
179
|
+
if (requestId) {
|
|
180
|
+
this.setReadOnly(requestId, readOnly);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
setSessionIdForCurrentRequest(sessionId) {
|
|
184
|
+
const requestId = getCurrentRequestId();
|
|
185
|
+
if (requestId) {
|
|
186
|
+
this.setSessionId(requestId, sessionId);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.RequestTracker = RequestTracker;
|
|
191
|
+
let globalTracker = null;
|
|
192
|
+
function getRequestTracker() {
|
|
193
|
+
globalTracker ??= new RequestTracker();
|
|
194
|
+
return globalTracker;
|
|
195
|
+
}
|
|
196
|
+
function resetRequestTracker() {
|
|
197
|
+
globalTracker = null;
|
|
198
|
+
}
|
|
199
|
+
//# sourceMappingURL=request-tracker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-tracker.js","sourceRoot":"","sources":["../../../src/logging/request-tracker.ts"],"names":[],"mappings":";;;AAuCA,kDAEC;AAKD,sDAEC;AAKD,gEAKC;AAkVD,8CAGC;AAKD,kDAEC;AApYD,6CAAgD;AAEhD,mDAAwE;AACxE,4CAAsC;AAatC,MAAM,cAAc,GAAG,IAAI,+BAAiB,EAAkB,CAAC;AAK/D,SAAgB,mBAAmB;IACjC,OAAO,cAAc,CAAC,QAAQ,EAAE,EAAE,SAAS,CAAC;AAC9C,CAAC;AAKD,SAAgB,qBAAqB,CAAI,SAAiB,EAAE,EAAW;IACrE,OAAO,cAAc,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/C,CAAC;AAKM,KAAK,UAAU,0BAA0B,CAC9C,SAAiB,EACjB,EAAoB;IAEpB,OAAO,cAAc,CAAC,GAAG,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;AAC/C,CAAC;AAQD,MAAa,cAAc;IACj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 -0,0 +1,55 @@
|
|
|
1
|
+
export interface RequestStack {
|
|
2
|
+
startTime: number;
|
|
3
|
+
clientIp: string;
|
|
4
|
+
sessionId?: string;
|
|
5
|
+
context?: string;
|
|
6
|
+
readOnly?: boolean;
|
|
7
|
+
method: string;
|
|
8
|
+
path: string;
|
|
9
|
+
tool?: string;
|
|
10
|
+
action?: string;
|
|
11
|
+
gitlabStatus?: number | "timeout" | "error";
|
|
12
|
+
gitlabDuration?: number;
|
|
13
|
+
details: Record<string, string | number | boolean>;
|
|
14
|
+
status?: number;
|
|
15
|
+
error?: string;
|
|
16
|
+
}
|
|
17
|
+
export type ConnectionCloseReason = "client_disconnect" | "idle_timeout" | "server_shutdown" | "transport_error" | "auth_expired";
|
|
18
|
+
export interface ConnectionStats {
|
|
19
|
+
connectedAt: number;
|
|
20
|
+
clientIp: string;
|
|
21
|
+
sessionId: string;
|
|
22
|
+
requestCount: number;
|
|
23
|
+
toolCount: number;
|
|
24
|
+
errorCount: number;
|
|
25
|
+
lastError?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface AccessLogEntry {
|
|
28
|
+
timestamp: string;
|
|
29
|
+
clientIp: string;
|
|
30
|
+
session: string;
|
|
31
|
+
ctx: string;
|
|
32
|
+
ro: string;
|
|
33
|
+
method: string;
|
|
34
|
+
path: string;
|
|
35
|
+
status: number;
|
|
36
|
+
durationMs: number;
|
|
37
|
+
tool: string;
|
|
38
|
+
action: string;
|
|
39
|
+
gitlabStatus: string;
|
|
40
|
+
gitlabDurationMs: string;
|
|
41
|
+
details: string;
|
|
42
|
+
}
|
|
43
|
+
export interface ConnectionCloseEntry {
|
|
44
|
+
timestamp: string;
|
|
45
|
+
clientIp: string;
|
|
46
|
+
session: string;
|
|
47
|
+
duration: string;
|
|
48
|
+
reason: ConnectionCloseReason;
|
|
49
|
+
requests: number;
|
|
50
|
+
tools: number;
|
|
51
|
+
errors: number;
|
|
52
|
+
lastError?: string;
|
|
53
|
+
}
|
|
54
|
+
export type LogFormat = "condensed" | "verbose";
|
|
55
|
+
export declare const DEFAULT_LOG_FORMAT: LogFormat;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/logging/types.ts"],"names":[],"mappings":";;;AA0La,QAAA,kBAAkB,GAAc,WAAW,CAAC"}
|