You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,14 +19,15 @@ This repository is the Pydantic Logfire JavaScript SDK monorepo. It provides Ope
19
19
20
20
- Use the Node.js version in `.node-version`. The root `package.json` also enforces Node.js 24 through `engines`.
21
21
- Use pnpm 10.28.0. The package manager is pinned in `packageManager`.
22
+
- Use Vite+ (`vp`) for the JavaScript toolchain entrypoint. Vite+ manages Vite, Vitest, Oxlint, Oxfmt, and package build tasks.
22
23
- Run workspace commands from the repository root unless a package-level command is explicitly needed.
23
24
24
25
## Useful Commands
25
26
26
27
Install dependencies:
27
28
28
29
```bash
29
-
pnpm install
30
+
vp install
30
31
```
31
32
32
33
Build all packages:
@@ -56,15 +57,15 @@ pnpm run check
56
57
Run focused checks for one package:
57
58
58
59
```bash
59
-
pnpm --filter logfiretest
60
-
pnpm --filter @pydantic/logfire-nodetest
61
-
pnpm --filter @pydantic/logfire-browsertypecheck
60
+
vp run logfire#test
61
+
vp run @pydantic/logfire-node#test
62
+
vp run @pydantic/logfire-browser#typecheck
62
63
```
63
64
64
-
Run a single Vitest test by name from a package filter:
65
+
Run a single Vite+ test by name from a package:
65
66
66
67
```bash
67
-
pnpm --filter logfiretest -- -t "test name pattern"
68
+
vp run logfire#test -- -t "test name pattern"
68
69
```
69
70
70
71
Format or verify formatting:
@@ -103,10 +104,11 @@ pnpm run changeset-add
103
104
- Tests use Vitest and usually live alongside source files as `*.test.ts`.
104
105
- Prefer exact assertions over fuzzy matching for stable output. Use `toBe` or `toEqual` with deterministic inputs instead of `toContain` or broad regex matching.
105
106
- When testing formatted errors or stack output, mock stack strings so assertions stay deterministic.
106
-
-For changes under `packages/logfire-api/src/evals`, consider the focused coverage script:
107
+
-The focused eval coverage script is temporarily disabled during the Vite+ migration because Vite+ coverage currently reports mixed Vitest package versions. For eval changes, run the package tests and typecheck instead:
0 commit comments