Skip to content

Commit b37417f

Browse files
committed
Upgrade codeql and pack deps to version 2.24.3
1 parent 9861e84 commit b37417f

32 files changed

Lines changed: 209 additions & 72 deletions

.codeql-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2.24.2
1+
v2.24.3

.github/workflows/update-codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ jobs:
131131
- name: Update - Install dependencies
132132
run: npm install --include=optional
133133

134-
- name: Update - Install CodeQL pack dependencies
135-
run: server/scripts/install-packs.sh
134+
- name: Update - Upgrade CodeQL pack dependencies
135+
run: server/scripts/upgrade-packs.sh
136136

137137
- name: Update - Build and test
138138
run: npm run build-and-test
@@ -148,7 +148,7 @@ jobs:
148148
- Updated `.codeql-version` to `${{ needs.detect-update.outputs.version }}`
149149
- Updated all version-bearing files (package.json, extensions/vscode/package.json, codeql-pack.yml) to `${{ needs.detect-update.outputs.latest_version }}`
150150
- Regenerated `package-lock.json`
151-
- Installed CodeQL pack dependencies
151+
- Upgraded CodeQL pack lock files
152152
- Build and tests passed ✅
153153
commit-message: 'Upgrade CodeQL CLI dependency to ${{ needs.detect-update.outputs.version }}'
154154
delete-branch: true

client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql-development-mcp-server_client",
3-
"version": "2.24.2",
3+
"version": "2.24.3",
44
"description": "MCP client for integration testing of the CodeQL development MCP server",
55
"main": "src/ql-mcp-client.js",
66
"type": "module",

extensions/vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vscode-codeql-development-mcp-server",
33
"displayName": "CodeQL Development MCP Server",
44
"description": "LLM-assisted development of CodeQL queries, libraries, and tests via #ql-mcp prompts, resources, and tools.",
5-
"version": "2.24.2",
5+
"version": "2.24.3",
66
"publisher": "advanced-security",
77
"license": "SEE LICENSE IN LICENSE",
88
"icon": "media/codeql-icon.png",

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql-development-mcp-server_repo",
3-
"version": "2.24.2",
3+
"version": "2.24.3",
44
"description": "An MCP server supporting LLM requests for CodeQL development tools and resources.",
55
"private": true,
66
"type": "module",

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

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -55658,15 +55658,17 @@ var Response2 = class _Response {
5565855658
this.#init = init;
5565955659
}
5566055660
if (typeof body === "string" || typeof body?.getReader !== "undefined" || body instanceof Blob || body instanceof Uint8Array) {
55661-
headers ||= init?.headers || { "content-type": "text/plain; charset=UTF-8" };
55662-
this[cacheKey] = [init?.status || 200, body, headers];
55661+
;
55662+
this[cacheKey] = [init?.status || 200, body, headers || init?.headers];
5566355663
}
5566455664
}
5566555665
get headers() {
5566655666
const cache = this[cacheKey];
5566755667
if (cache) {
5566855668
if (!(cache[2] instanceof Headers)) {
55669-
cache[2] = new Headers(cache[2]);
55669+
cache[2] = new Headers(
55670+
cache[2] || { "content-type": "text/plain; charset=UTF-8" }
55671+
);
5567055672
}
5567155673
return cache[2];
5567255674
}
@@ -55791,15 +55793,32 @@ var flushHeaders = (outgoing) => {
5579155793
};
5579255794
var responseViaCache = async (res, outgoing) => {
5579355795
let [status, body, header] = res[cacheKey];
55794-
if (header instanceof Headers) {
55796+
let hasContentLength = false;
55797+
if (!header) {
55798+
header = { "content-type": "text/plain; charset=UTF-8" };
55799+
} else if (header instanceof Headers) {
55800+
hasContentLength = header.has("content-length");
5579555801
header = buildOutgoingHttpHeaders(header);
55802+
} else if (Array.isArray(header)) {
55803+
const headerObj = new Headers(header);
55804+
hasContentLength = headerObj.has("content-length");
55805+
header = buildOutgoingHttpHeaders(headerObj);
55806+
} else {
55807+
for (const key in header) {
55808+
if (key.length === 14 && key.toLowerCase() === "content-length") {
55809+
hasContentLength = true;
55810+
break;
55811+
}
55812+
}
5579655813
}
55797-
if (typeof body === "string") {
55798-
header["Content-Length"] = Buffer.byteLength(body);
55799-
} else if (body instanceof Uint8Array) {
55800-
header["Content-Length"] = body.byteLength;
55801-
} else if (body instanceof Blob) {
55802-
header["Content-Length"] = body.size;
55814+
if (!hasContentLength) {
55815+
if (typeof body === "string") {
55816+
header["Content-Length"] = Buffer.byteLength(body);
55817+
} else if (body instanceof Uint8Array) {
55818+
header["Content-Length"] = body.byteLength;
55819+
} else if (body instanceof Blob) {
55820+
header["Content-Length"] = body.size;
55821+
}
5580355822
}
5580455823
outgoing.writeHead(status, header);
5580555824
if (typeof body === "string" || body instanceof Uint8Array) {
@@ -65618,7 +65637,7 @@ init_package_paths();
6561865637
init_logger();
6561965638
import_dotenv.default.config({ path: resolve12(packageRootDir, ".env"), quiet: true });
6562065639
var PACKAGE_NAME = "codeql-development-mcp-server";
65621-
var VERSION = "2.24.2";
65640+
var VERSION = "2.24.3";
6562265641
async function startServer(mode = "stdio") {
6562365642
logger.info(`Starting CodeQL Development MCP McpServer v${VERSION} in ${mode} mode`);
6562465643
const codeqlBinary = resolveCodeQLBinary();

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

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codeql-development-mcp-server",
3-
"version": "2.24.2",
3+
"version": "2.24.3",
44
"description": "An MCP server supporting LLM requests for CodeQL development tools and resources.",
55
"main": "dist/codeql-development-mcp-server.js",
66
"type": "module",

server/ql/actions/tools/src/codeql-pack.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: advanced-security/ql-mcp-actions-tools-src
2-
version: 2.24.2
2+
version: 2.24.3
33
description: 'Queries for codeql-development-mcp-server tools for actions language'
44
library: false
55
dependencies:

0 commit comments

Comments
 (0)