AGENTS.md@packages/client · git:20260703.e20cd5a · 2026-07-03 · sha256 2cdf32922c7a7677

AGENTS.md@packages/client git:20260703.e20cd5aA

Immutable. This exact content is served forever at /api/v1/blob/2cdf32922c7a7677.

# DOX — packages/client

Files in this directory. One row per source file.

| File | Purpose |
|------|---------|
| `vite.config.ts` | Vite config for client package. Resolves dashboard port via `PI_DASHBOARD_PORT` env → `/tmp/dash-dev-port` marker → `~/.pi/dashboard/config.json` → fallback `8000`. Aliases shared + client-utils sources. `viteDashboardPluginsPlugin` loads dashboard plugins from repo root. `manualChunks` splits react-vendor, markdown, syntax, diff, xterm, dnd, util, monaco chunks. Dev server proxies `/api` + `/ws` to dashboard port. |
| `vitest.config.ts` | Vitest config for client package. Mirrors `vite.config` aliases (shared + client-utils → workspace `src`) so tests resolve worktree source over hoisted symlink. jsdom, `pool: "forks"`, shared `setup-home.ts` globalSetup. |