Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Update vulnerable brace-expansion and fast-uri transitives (#1765)

Regan Bell49efd16a278b
diff --git a/package-lock.json b/package-lock.json
index 173092116..20d9b5db0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -19,7 +19,7 @@
"@aws-sdk/credential-provider-node": "^3.972.70",
"@aws-sdk/s3-request-presigner": "^3.1061.0",
"@earendil-works/pi-ai": "0.82.0",
- "@earendil-works/pi-coding-agent": "https://github.com/yc-software/pi/releases/download/qm-pi-coding-agent-0.82.0-security.4/earendil-works-pi-coding-agent-0.82.0-qm-security.4.tgz",
+ "@earendil-works/pi-coding-agent": "https://github.com/yc-software/qm/releases/download/vendored-pi-coding-agent-0.82.0-security.5/earendil-works-pi-coding-agent-0.82.0-qm-security.5.tgz",
"@fly/sprites": "0.2.3",
"@openai/codex": "0.155.1",
"@opencode-ai/plugin": "1.18.31",
@@ -1008,8 +1008,8 @@
},
"node_modules/@earendil-works/pi-coding-agent": {
"version": "0.82.0",
- "resolved": "https://github.com/yc-software/pi/releases/download/qm-pi-coding-agent-0.82.0-security.4/earendil-works-pi-coding-agent-0.82.0-qm-security.4.tgz",
- "integrity": "sha512-MqE18XzGgcnzNUnqa0jbXdOq1wfsRv0eyoCk7UMC5MMU0maGH8KfXNocvC9T+WDXvMLuu98dM9DSR4F8PvVPDQ==",
+ "resolved": "https://github.com/yc-software/qm/releases/download/vendored-pi-coding-agent-0.82.0-security.5/earendil-works-pi-coding-agent-0.82.0-qm-security.5.tgz",
+ "integrity": "sha512-8aI19QEosokMfkYWCkAv2mqKK94yXF+ftZ43Z2nfsRzwA1uVBwiNIZXd3Ydn902YCoKX17nKqhVddmhyi6ZZYQ==",
"hasShrinkwrap": true,
"license": "MIT",
"dependencies": {
@@ -2027,9 +2027,9 @@
"license": "MIT"
},
"node_modules/@earendil-works/pi-coding-agent/node_modules/brace-expansion": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
- "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
@@ -6678,9 +6678,9 @@
"license": "MIT"
},
"node_modules/brace-expansion": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz",
- "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==",
+ "version": "5.0.12",
+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
+ "integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
"license": "MIT",
"dependencies": {
"balanced-match": "^4.0.2"
@@ -7751,9 +7751,9 @@
}
},
"node_modules/fast-json-stringify/node_modules/fast-uri": {
- "version": "4.1.4",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.1.4.tgz",
- "integrity": "sha512-dODXrIxlS9JSdgAnhIUKOosKV1oMtU2VtVw87QRaHzyl5jxO290Ii5tEZfCfzfWNHi3jKWwBSdQj0qIyshdZdQ==",
+ "version": "4.1.5",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-4.1.5.tgz",
+ "integrity": "sha512-vZeoMRB4epNr7QfdHxel7te/RcX16CxyXI07JCCTFWZA2s4v1azGNESRj+2EoaHSaWFL/Z3GmKT2jF6A202jLg==",
"funding": [
{
"type": "github",
@@ -7790,9 +7790,9 @@
"peer": true
},
"node_modules/fast-uri": {
- "version": "3.1.7",
- "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.7.tgz",
- "integrity": "sha512-dOvZVzjdZdz7phd9v6jCbwxrBW3fK6n8Rc0CtdmM4bumzMnxywBYhuph6J819RRw/ku+rLbelwfMunktuzVVHg==",
+ "version": "3.1.8",
+ "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.8.tgz",
+ "integrity": "sha512-GZMtZUTNRpOVIECoXwLNZS5xUGE+mVNbTB8h/7Rwh2TFWcBQiPzTgyZi05BF9UMZKkLJv8XBRJTlU7zg8+ZfMg==",
"funding": [
{
"type": "github",
diff --git a/package.json b/package.json
index f61acc5d1..00edbfbb1 100644
--- a/package.json
+++ b/package.json
@@ -74,7 +74,7 @@
"@aws-sdk/credential-provider-node": "^3.972.70",
"@aws-sdk/s3-request-presigner": "^3.1061.0",
"@earendil-works/pi-ai": "0.82.0",
- "@earendil-works/pi-coding-agent": "https://github.com/yc-software/pi/releases/download/qm-pi-coding-agent-0.82.0-security.4/earendil-works-pi-coding-agent-0.82.0-qm-security.4.tgz",
+ "@earendil-works/pi-coding-agent": "https://github.com/yc-software/qm/releases/download/vendored-pi-coding-agent-0.82.0-security.5/earendil-works-pi-coding-agent-0.82.0-qm-security.5.tgz",
"@fly/sprites": "0.2.3",
"@openai/codex": "0.155.1",
"@opencode-ai/plugin": "1.18.31",
@@ -106,14 +106,14 @@
"@hono/node-server": "2.0.10",
"hono": "4.13.5",
"@fastify/ajv-compiler": {
- "fast-uri": "3.1.7"
+ "fast-uri": "3.1.8"
},
"ajv": {
- "fast-uri": "3.1.7"
+ "fast-uri": "3.1.8"
},
- "brace-expansion": "^5.0.9",
+ "brace-expansion": "^5.0.12",
"fast-json-stringify": {
- "fast-uri": "4.1.4"
+ "fast-uri": "4.1.5"
},
"undici": "8.10.2",
"ip-address": "10.7.2",
diff --git a/test/pi-dependency-security.test.ts b/test/pi-dependency-security.test.ts
index 2c16cb6ca..1f93f78a6 100644
--- a/test/pi-dependency-security.test.ts
+++ b/test/pi-dependency-security.test.ts
@@ -6,7 +6,7 @@ import test from "node:test";
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
const piCodingAgentTarball =
- "https://github.com/yc-software/pi/releases/download/qm-pi-coding-agent-0.82.0-security.4/earendil-works-pi-coding-agent-0.82.0-qm-security.4.tgz";
+ "https://github.com/yc-software/qm/releases/download/vendored-pi-coding-agent-0.82.0-security.5/earendil-works-pi-coding-agent-0.82.0-qm-security.5.tgz";
function installedVersion(path: string): string {
const manifestUrl = new URL(`../node_modules/${path}/package.json`, import.meta.url);
@@ -45,13 +45,20 @@ test("Pi and MCP security overrides are materialized by the root lockfile", () =
assert.equal(pi?.resolved, piCodingAgentTarball);
- assert.deepEqual(lockedVersions(packages, "brace-expansion"), ["5.0.9"]);
- assert.deepEqual(lockedVersions(packages, "fast-uri").sort(), ["3.1.7", "4.1.4"]);
+ assert.deepEqual(lockedVersions(packages, "brace-expansion"), ["5.0.12"]);
+ assert.deepEqual(lockedVersions(packages, "fast-uri").sort(), ["3.1.8", "4.1.5"]);
assert.deepEqual(lockedVersions(packages, "hono"), ["4.13.5"]);
assert.deepEqual(lockedVersions(packages, "protobufjs"), ["7.6.5"]);
assert.deepEqual(lockedVersions(packages, "undici"), ["8.10.2"]);
assert.deepEqual(lockedVersions(packages, "@hono/node-server"), ["2.0.10"]);
- assert.equal(dependencyVersion(minimatchManifest, "brace-expansion"), "5.0.9");
+ assert.equal(dependencyVersion(minimatchManifest, "brace-expansion"), "5.0.12");
+ for (const dependency of ["@fastify/ajv-compiler", "ajv", "fast-json-stringify"]) {
+ const parentManifest = new URL(`../node_modules/${dependency}/package.json`, import.meta.url);
+ assert.equal(
+ dependencyVersion(parentManifest, "fast-uri"),
+ dependency === "fast-json-stringify" ? "4.1.5" : "3.1.8",
+ );
+ }
assert.equal(dependencyVersion(piManifest, "undici"), "8.10.2");
assert.equal(dependencyVersion(piManifest, "protobufjs"), "7.6.5");
assert.equal(installedVersion("@hono/node-server"), "2.0.10");