AGENTS.md@packages/client · git:20260907.33d6653 · 2026-09-07 · sha256 a1fea87b8a23142a
AGENTS.md@packages/client git:20260907.33d6653A
Immutable. This exact content is served forever at /api/v1/blob/a1fea87b8a23142a.
# DOX — packages/client Files in this directory. One row per source file. | File | Purpose | |------|---------| | `README.md` | Package overview. React + Tailwind web client, published as a prebuilt `dist/`. Documents the `./chat-embed` export. | | `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; adds `dashboard-plugin-runtime` (+ `/server`,`/context`,`/test-support` subpaths before the bare key) for the same reason. See change: add-blackhole-session-pipeline. jsdom, `pool: "forks"`, shared `setup-home.ts` globalSetup. |