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
2 changes: 1 addition & 1 deletion docs/database.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ The Worker binding is also `DATABASE`.

## D1 default

`bun alchemy deploy` / `nub run infra:deploy:*` with no `DATABASE` value and no PlanetScale tokens
`nub run infra:deploy:*` with no `DATABASE` value and no PlanetScale tokens
stays on D1.

- Binding: `DB`
Expand Down
10 changes: 5 additions & 5 deletions docs/e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ evidence of recorded-action replay.

## AI usage accounting

For a local accounting report, run `nub exec tsx scripts/e2e/ai-report.mjs init` before
the tests and `nub exec tsx scripts/e2e/ai-report.mjs summarize` afterward. These commands
For a local accounting report, run `nub scripts/e2e/ai-report.mjs init` before
the tests and `nub scripts/e2e/ai-report.mjs summarize` afterward. These commands
use the pinned Node runtime and do not make model calls.

The summary counts the suite's own decision-model calls. Executor token counts and cost come from
Expand Down Expand Up @@ -461,10 +461,10 @@ do not exercise the Items API or prove indexing.
The isolated live suite is `tests/ai-search.external.e2e.ts`. Launch it with:

```sh
E2E_ENV_FILE=/path/to/isolated-test-account.env nub exec tsx scripts/e2e/ai-search.ts
E2E_ENV_FILE=/path/to/isolated-test-account.env nub scripts/e2e/ai-search.ts
# Refresh and then verify the changed browser actions against fresh owned resources.
E2E_ENV_FILE=/path/to/isolated-test-account.env nub exec tsx scripts/e2e/ai-search.ts --record --grep administrators
E2E_ENV_FILE=/path/to/isolated-test-account.env nub exec tsx scripts/e2e/ai-search.ts --strict-cache --grep administrators
E2E_ENV_FILE=/path/to/isolated-test-account.env nub scripts/e2e/ai-search.ts --record --grep administrators
E2E_ENV_FILE=/path/to/isolated-test-account.env nub scripts/e2e/ai-search.ts --strict-cache --grep administrators
```

The private file must supply `CLOUDFLARE_ACCOUNT_ID`, `CLOUDFLARE_API_TOKEN`, and
Expand Down
2 changes: 1 addition & 1 deletion e2e.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default {
environment: "test",
command: {
executable: "nub",
args: ["exec", "tsx", "scripts/e2e/dev.ts"],
args: ["scripts/e2e/dev.ts"],
env: appEnvironment,
startupTimeout: process.env.E2E_CONTAINER_RUNTIME === "1" ? 600_000 : 180_000,
shutdownTimeout: 120_000,
Expand Down
Loading