Skip to content
Draft
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
4 changes: 2 additions & 2 deletions .github/workflows/release-main-and-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ jobs:
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 20.x
node-version: "22"
registry-url: https://registry.npmjs.org
# npm trusted publishing needs npm 11.5.1 or newer, Node 20 bundles npm 10.
# npm trusted publishing needs npm 11.5.1 or newer, Node 22 bundles npm 10.
- run: npm install -g npm@11
- run: bun install --frozen-lockfile --os="*" --cpu="*"

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ jobs:
ref: ${{ inputs.ref }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
# The stdin regression test spawns Node and imports Ink, which requires Node 22 or newer.
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "22"
- run: bun install --frozen-lockfile

# Every static check reports even when an earlier one fails. Build and tests only run when all pass.
Expand Down Expand Up @@ -90,6 +94,9 @@ jobs:
ref: ${{ inputs.ref }}
persist-credentials: false
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: "22"
- run: bun install --frozen-lockfile
- run: bun run build
- run: bun pm pack --ignore-scripts
Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Before finishing a change run `bun test`, `bun run typecheck`, `bun run lint:che
## Critical gotchas

- **No `Bun` global in `src/`.** oxlint's `no-restricted-globals` bans it because the npm bundle
runs on Node (`engines.node >= 20.12`). Use `node:*` APIs in `src/`. `Bun.*` is allowed only in
runs on Node (`engines.node >= 22`). Use `node:*` APIs in `src/`. `Bun.*` is allowed only in
`scripts/**`, `src/testing/**`, `**/*.test.*`, and `**/*-test-support.ts`. Generic Bun advice
(Bun.serve, Bun.file, bun:sqlite, Bun.$) does **not** apply to shipped code.
- **Two test runners.** Unit tests use `bun test` (`import { test, expect, describe } from "bun:test"`).
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ invoke agents from your terminal.

## Installation

You need Node.js 20.12 or later and AWS credentials configured as for the AWS CLI. Python templates
You need Node.js 22 or later and AWS credentials configured as for the AWS CLI. Python templates
also need [`uv`](https://docs.astral.sh/uv/getting-started/installation/).

```bash
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"main": "./dist/index.js",
"engines": {
"node": ">=20.12.0"
"node": ">=22"
},
"files": [
"dist",
Expand Down
2 changes: 1 addition & 1 deletion src/io/source.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ describe("SourceResolver bytes", () => {
child.stdin.end("late value");

const [code] = await once(child, "close");
expect(code).toBe(0);
expect(errors).toBe("READY\n");
expect(code).toBe(0);
expect(output).toBe("late value");
},
);
Expand Down
Loading