Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion agent/lib/github/tooling.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand All @@ -36,6 +36,7 @@
"ultracite": "^7.12.1",
"vitest": "^5.1.0"
},
"packageManager": "pnpm@12.21.0",
"engines": {
"node": "24.x"
}
Expand Down
187 changes: 175 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions tests/github/gh-contract.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/github/sandbox-init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down