Skip to content

Commit 234a201

Browse files
committed
Sync server/dist/**
1 parent 10e12f5 commit 234a201

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

server/dist/codeql-development-mcp-server.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53068,6 +53068,10 @@ var Protocol = class {
5306853068
this._progressHandlers.clear();
5306953069
this._taskProgressTokens.clear();
5307053070
this._pendingDebouncedNotifications.clear();
53071+
for (const info of this._timeoutInfo.values()) {
53072+
clearTimeout(info.timeoutId);
53073+
}
53074+
this._timeoutInfo.clear();
5307153075
for (const controller of this._requestHandlerAbortControllers.values()) {
5307253076
controller.abort();
5307353077
}
@@ -53198,7 +53202,9 @@ var Protocol = class {
5319853202
await capturedTransport?.send(errorResponse);
5319953203
}
5320053204
}).catch((error2) => this._onerror(new Error(`Failed to send response: ${error2}`))).finally(() => {
53201-
this._requestHandlerAbortControllers.delete(request.id);
53205+
if (this._requestHandlerAbortControllers.get(request.id) === abortController) {
53206+
this._requestHandlerAbortControllers.delete(request.id);
53207+
}
5320253208
});
5320353209
}
5320453210
_onprogress(notification) {
@@ -55211,6 +55217,9 @@ var McpServer = class {
5521155217
annotations = rest.shift();
5521255218
}
5521355219
} else if (typeof firstArg === "object" && firstArg !== null) {
55220+
if (Object.values(firstArg).some((v) => typeof v === "object" && v !== null)) {
55221+
throw new Error(`Tool ${name} expected a Zod schema or ToolAnnotations, but received an unrecognized object`);
55222+
}
5521455223
annotations = rest.shift();
5521555224
}
5521655225
}
@@ -55329,6 +55338,9 @@ function getZodSchemaObject(schema2) {
5532955338
if (isZodRawShapeCompat(schema2)) {
5533055339
return objectFromShape(schema2);
5533155340
}
55341+
if (!isZodSchemaInstance(schema2)) {
55342+
throw new Error("inputSchema must be a Zod schema or raw shape, received an unrecognized object");
55343+
}
5533255344
return schema2;
5533355345
}
5533455346
function promptArgumentsFromSchema(schema2) {

0 commit comments

Comments
 (0)