diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 09080133..ed22480b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - with: - version: 10 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 @@ -47,8 +45,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - with: - version: 10 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: 24 @@ -69,8 +65,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - with: - version: 10 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node }} @@ -93,8 +87,6 @@ jobs: with: persist-credentials: false - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 - with: - version: 10 - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: node-version: ${{ matrix.node }} diff --git a/agent/lib/github/tooling.ts b/agent/lib/github/tooling.ts index 4d854104..262bac16 100644 --- a/agent/lib/github/tooling.ts +++ b/agent/lib/github/tooling.ts @@ -33,7 +33,7 @@ export const INSTALL_SCRIPT = [ " $SUDO apt-get update", " $SUDO env DEBIAN_FRONTEND=noninteractive apt-get install -y gh", "fi", - "command -v pnpm >/dev/null 2>&1 || npm install -g pnpm || $SUDO npm install -g pnpm", + "command -v pnpm >/dev/null 2>&1 || npm install -g pnpm@12.21.0 || $SUDO npm install -g pnpm@12.21.0", `[ -x ${GH_BINARY} ] || { echo 'the GitHub CLI is missing at ${GH_BINARY}' >&2; exit 1; }`, `[ -x ${GIT_BINARY} ] || { echo 'git is missing at ${GIT_BINARY}' >&2; exit 1; }`, `$SUDO mkdir -p ${SHIM_DIRECTORY}`, diff --git a/package.json b/package.json index d59fcbca..fe951b25 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "@vercel/blob": "^2.9.0", "@vercel/connect": "^2.9.3", "ai": "^7.0.173", - "eve": "^1.0.0", + "eve": "1.2.0", "zod": "4.6.7" }, "devDependencies": { @@ -36,6 +36,7 @@ "ultracite": "^7.12.1", "vitest": "^5.1.0" }, + "packageManager": "pnpm@12.21.0", "engines": { "node": "24.x" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0708c458..25417b06 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,3 +1,170 @@ +--- +lockfileVersion: '9.0' + +importers: + + .: + configDependencies: {} + packageManagerDependencies: + pnpm: + specifier: 12.21.0 + version: 12.21.0 + +packages: + + '@pnpm/exe.android-arm64@12.21.0': + resolution: {integrity: sha512-iaWidxR5B9NUBpwMznCQu1yUpKB6BjTY5BYX2lORj76VsfINdj8Z8XWSzSNrGI8qlxa28Jzdp5fiaspzOaJZlA==} + cpu: [arm64] + os: [android] + + '@pnpm/exe.android-x64@12.21.0': + resolution: {integrity: sha512-35e5v3wlwjIYxDywq+R6/z8CE4gLOEgRxt18yqz1tMRLmx2mnW+CFJI2Q8+srTNjn7gykXUC0x1k195JNikC5A==} + cpu: [x64] + os: [android] + + '@pnpm/exe.darwin-arm64@12.21.0': + resolution: {integrity: sha512-F5OyMX/6zLSowpTZEQRojbCmPS1Pq+fyRaIinslsIe6Glh3qbyQ52u+Fe0eEzSaRuIbWZkXmAAXSWh6Q5Wrlgg==} + cpu: [arm64] + os: [darwin] + + '@pnpm/exe.darwin-x64@12.21.0': + resolution: {integrity: sha512-EzpvcsaE6hrrgYeEiAFYd2rSgFybYyxXhkAY7K3y6Hg3loVfcyJ81hHczpFzi8lW5RXtUlFECRPZ8ZAMRFQYYg==} + cpu: [x64] + os: [darwin] + + '@pnpm/exe.freebsd-x64@12.21.0': + resolution: {integrity: sha512-wNjuEnmdLks4aayPu/QZWQ5tQM9Jn+odUp/vwQM8BXRYoulkTZhtZTHoD60N6mUdLWef1hgUeUh8llNGEUsimw==} + cpu: [x64] + os: [freebsd] + + '@pnpm/exe.linux-arm64-musl@12.21.0': + resolution: {integrity: sha512-Ceit9zn4g5ZqCJtx1fV8eJE7p8aeXMrGZ+Dc01vRqZLIUNgNeI+Ur0ruyqxtsnJx6rGADyXzohumxPLHjaJ5AQ==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-arm64@12.21.0': + resolution: {integrity: sha512-4Oj/iF2TDCe2lcH0n4TupPR5sSdrNLclJB6xBElLMPCUOAvBhdf2rRlSaO5M4erJ6g4Fyy7YTXTpcmfFsKyxEA==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-ppc64@12.21.0': + resolution: {integrity: sha512-s2o7rdSDeUTBFsNqxptpZXlTgT6cojmMVUOvTQvFNSv6Easian02ha4tR32fwwD97Au4YzIIjMCwywCF4D82Sw==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-riscv64@12.21.0': + resolution: {integrity: sha512-EYv3GzxeBTITCuM3yGHHbpRFpUvyulkXpQ6LsjKAQNL3iaba1E6h9iDmlouLb3Io4AMMsfdk0/uG6poQ41uewA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-s390x@12.21.0': + resolution: {integrity: sha512-8VXGNGVNEfs7pL9GTZOzFxjFEnMt4WL3rLOADR5/kPQ7ROTV9GfpVI2DPO/zArXFSkvfc9Zad/WypHLbvzoaTQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@pnpm/exe.linux-x64-musl@12.21.0': + resolution: {integrity: sha512-MnC5vpIXYubhDZCgCwlfJMg7Cg6HupN2IuouT9gD/tUmOfVdQYqeyYccWbthyo/Jeto8de1oQlxeRN1+1Hl2DQ==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@pnpm/exe.linux-x64@12.21.0': + resolution: {integrity: sha512-8eufCjHXspKbNS/kh8q4Q0gqJoOuvC4Q5pgos6XS8By/nAMtP+jf8F1Cw9er840kfAX+PJ/ts+A9qnLE91rvXQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@pnpm/exe.netbsd-x64@12.21.0': + resolution: {integrity: sha512-eyh1M8hQZCkLWxuva7S/fc1SbFbgqg0/5di0dgWmyiuc2Io3dbWVihDun8X+XM8zsR5uhIDvvZpbS9aZQbCovg==} + cpu: [x64] + os: [netbsd] + + '@pnpm/exe.win32-arm64@12.21.0': + resolution: {integrity: sha512-7xTxxUXo/grRLivSeIl6B21gnsz7ooe5EMPcJmQqwxc8WLJVReN8MzrlHru8bqXfVr4X3+6ZGZscntKenlCBqQ==} + cpu: [arm64] + os: [win32] + + '@pnpm/exe.win32-x64@12.21.0': + resolution: {integrity: sha512-9TpkJemVApxJ1Z1w0ZFGN+AuSx4nJOqXSJUqMqDvaXTYwGOzvBiiWdFP9GN0ketiWCQS1Q0/pza2E7I3pP0OBQ==} + cpu: [x64] + os: [win32] + + pnpm@12.21.0: + resolution: {integrity: sha512-Zv2CeO4ok1zpUXktNDZ/869cQyonVkRYIwKVM4NbjaUpu+C+UTCv1W7QcT+4eJ5Hutgtk71a4v5UsVVi1idu8A==} + engines: {node: '>=18'} + hasBin: true + +snapshots: + + '@pnpm/exe.android-arm64@12.21.0': + optional: true + + '@pnpm/exe.android-x64@12.21.0': + optional: true + + '@pnpm/exe.darwin-arm64@12.21.0': + optional: true + + '@pnpm/exe.darwin-x64@12.21.0': + optional: true + + '@pnpm/exe.freebsd-x64@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-arm64@12.21.0': + optional: true + + '@pnpm/exe.linux-ppc64@12.21.0': + optional: true + + '@pnpm/exe.linux-riscv64@12.21.0': + optional: true + + '@pnpm/exe.linux-s390x@12.21.0': + optional: true + + '@pnpm/exe.linux-x64-musl@12.21.0': + optional: true + + '@pnpm/exe.linux-x64@12.21.0': + optional: true + + '@pnpm/exe.netbsd-x64@12.21.0': + optional: true + + '@pnpm/exe.win32-arm64@12.21.0': + optional: true + + '@pnpm/exe.win32-x64@12.21.0': + optional: true + + pnpm@12.21.0: + optionalDependencies: + '@pnpm/exe.android-arm64': 12.21.0 + '@pnpm/exe.android-x64': 12.21.0 + '@pnpm/exe.darwin-arm64': 12.21.0 + '@pnpm/exe.darwin-x64': 12.21.0 + '@pnpm/exe.freebsd-x64': 12.21.0 + '@pnpm/exe.linux-arm64': 12.21.0 + '@pnpm/exe.linux-arm64-musl': 12.21.0 + '@pnpm/exe.linux-ppc64': 12.21.0 + '@pnpm/exe.linux-riscv64': 12.21.0 + '@pnpm/exe.linux-s390x': 12.21.0 + '@pnpm/exe.linux-x64': 12.21.0 + '@pnpm/exe.linux-x64-musl': 12.21.0 + '@pnpm/exe.netbsd-x64': 12.21.0 + '@pnpm/exe.win32-arm64': 12.21.0 + '@pnpm/exe.win32-x64': 12.21.0 + +--- lockfileVersion: '9.0' settings: @@ -13,13 +180,13 @@ importers: version: 2.9.0 '@vercel/connect': specifier: ^2.9.3 - version: 2.9.3(ai@7.0.173(zod@4.6.7))(eve@1.0.0) + version: 2.9.3(ai@7.0.173(zod@4.6.7))(eve@1.2.0(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1))) ai: specifier: ^7.0.173 version: 7.0.173(zod@4.6.7) eve: - specifier: ^1.0.0 - version: 1.0.0(@vercel/connect@2.9.3)(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)) + specifier: 1.2.0 + version: 1.2.0(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)) zod: specifier: 4.6.7 version: 4.6.7 @@ -692,8 +859,8 @@ packages: estree-walker@3.0.3: resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==} - eve@1.0.0: - resolution: {integrity: sha512-N4v0GYcJ/ClAtffQo8viUjBVR+F/FhaAQ/tfke4rC2mSyJueUczrT5GvQF3tiX+6Uq612O2n0IJUGpAwHr7OvQ==} + eve@1.2.0: + resolution: {integrity: sha512-l051+5qaf5pv/FS5JxZMQRAIhA5YdBmDwyPcucbJKyjgYQJMphpzfX95Xb0MmYDI0oSYUSOdtTOxpCgBq4A9gQ==} engines: {node: '>=24'} hasBin: true peerDependencies: @@ -701,7 +868,6 @@ packages: '@nuxt/kit': ^4.0.0 '@nuxt/schema': ^4.0.0 '@opentelemetry/api': ^1.0.0 - '@vercel/connect': ^2.7.0 ai: ^7.0.172 braintrust: ^3.0.0 chat: ^4.42.0 @@ -721,8 +887,6 @@ packages: optional: true '@opentelemetry/api': optional: true - '@vercel/connect': - optional: true braintrust: optional: true chat: @@ -1711,12 +1875,12 @@ snapshots: dependencies: execa: 5.1.1 - '@vercel/connect@2.9.3(ai@7.0.173(zod@4.6.7))(eve@1.0.0)': + '@vercel/connect@2.9.3(ai@7.0.173(zod@4.6.7))(eve@1.2.0(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)))': dependencies: '@vercel/oidc': 4.0.9 optionalDependencies: ai: 7.0.173(zod@4.6.7) - eve: 1.0.0(@vercel/connect@2.9.3)(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)) + eve: 1.2.0(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)) '@vercel/oidc@3.2.0': {} @@ -1818,14 +1982,13 @@ snapshots: dependencies: '@types/estree': 1.0.10 - eve@1.0.0(@vercel/connect@2.9.3)(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)): + eve@1.2.0(ai@7.0.173(zod@4.6.7))(vite@8.3.7(@types/node@24.19.0)(yaml@2.9.1)): dependencies: ai: 7.0.173(zod@4.6.7) nitro: 3.0.261103-rc rolldown: 1.3.2 undici: 8.12.4 optionalDependencies: - '@vercel/connect': 2.9.3(ai@7.0.173(zod@4.6.7))(eve@1.0.0) vite: 8.3.7(@types/node@24.19.0)(yaml@2.9.1) eventsource-parser@3.1.1: {} diff --git a/tests/github/gh-contract.test.ts b/tests/github/gh-contract.test.ts index ed463812..e2fae737 100644 --- a/tests/github/gh-contract.test.ts +++ b/tests/github/gh-contract.test.ts @@ -27,13 +27,16 @@ const required = process.env.FACTORY_REQUIRE_CLI_TESTS === "1"; /** * How the CLI's help lists a flag: `--name type` for one that takes a value, - * `--name` followed by the description for a switch. Returns null when the - * flag has no line of its own. + * `--name` or `--name[=true|false]` followed by the description for a switch. + * Returns null when the flag has no line of its own. */ const helpKind = (help: string, flag: string): "bool" | "value" | null => { const [, rest] = help.match( - new RegExp(`^\\s+(?:-\\w, )?--${flag}((?: {2,}| \\S|$).*)$`, "m") + new RegExp( + `^\\s+(?:-\\w, )?--${flag}(?:\\[=true\\|false\\])?((?: {2,}| \\S|$).*)$`, + "m" + ) ) ?? []; if (rest === undefined) { return null; diff --git a/tests/github/sandbox-init.test.ts b/tests/github/sandbox-init.test.ts index 1afd928f..0c7e610b 100644 --- a/tests/github/sandbox-init.test.ts +++ b/tests/github/sandbox-init.test.ts @@ -485,7 +485,7 @@ describe("sandbox tooling", () => { const script = run?.kind === "run" ? run.command : ""; expect(script.startsWith("set -e\n")).toBe(true); expect(script).toContain("apt-get install -y gh"); - expect(script).toContain("npm install -g pnpm"); + expect(script).toContain("npm install -g pnpm@12.21.0"); expect(script).toContain("[ -x /usr/bin/gh ]"); expect(script).toContain("[ -x /usr/bin/git ]"); expect(steps).toHaveLength(1);