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
18 changes: 14 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,23 @@ jobs:

- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.1.42"
# Must be >= 1.2 to parse the text bun.lock format. Older versions
# fail with "Unknown lockfile version", ignore the lockfile, and
# silently resolve every range to latest — which defeats pinning.
bun-version: "1.3.11"

- name: Install dependencies
run: bun install
# Fail loudly if the lockfile and package.json disagree, rather than
# quietly installing something other than what was committed.
run: bun install --frozen-lockfile

- name: Install Playwright browsers
run: bunx agent-browser install --with-deps
# Install via the same playwright-core the runner launches with, so the
# Chromium build always matches. `agent-browser install` cannot be used
# here: it goes through a native shim carrying its own newer Playwright
# and fetches build 1234, while agent-browser launches through the
# hoisted playwright-core (1.58.1), which looks for build 1208.
run: node node_modules/playwright-core/cli.js install --with-deps chromium

- name: Lint
run: bun run lint
Expand All @@ -30,4 +40,4 @@ jobs:
run: bun run typecheck

- name: Run tests
run: bun test --timeout 30000
run: bun run test
10 changes: 8 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

```bash
bun install # Install dependencies
bun test # Run all tests
bun run test # Run all tests (bun test --timeout 30000)
bun test test/types # Run single test file (partial match)
bun run test:coverage # Run tests with coverage
bun run typecheck # Type check with tsc
bun run lint # Lint with Biome
bun run lint:fix # Auto-fix lint issues
bun run format # Format code with Biome
bun run dev # Run CLI entry point
bun run test:coverage # Run tests with coverage
```

Tests run on **Bun's built-in test runner**, not Vitest. Test files import from
`"vitest"`, which Bun maps to `bun:test` automatically — keep that import style
when adding tests. The 30s timeout is required: the browser-driven tests in
`runner.test.ts` and `config.test.ts` exceed Bun's 5s default. CI runs
`bun run test` so the timeout stays defined in one place.

## Architecture

FlowSpec is a framework for immutable user flow specifications. The core idea: specs in `specs/` define *what* the app should do and are protected from agent modification. Implementation code is freely modifiable.
Expand Down
342 changes: 32 additions & 310 deletions bun.lock

Large diffs are not rendered by default.

Loading
Loading