AGENTS.md@packages/client/src/lib/live-preview · git:20261021.aa266aa · 2026-10-21 · sha256 e1ffa724bccf247a

AGENTS.md@packages/client/src/lib/live-preview git:20261021.aa266aaA

Immutable. This exact content never changes and is served at /api/v1/blob/e1ffa724bccf247a.

# DOX — packages/client/src/lib/live-preview

Files in this directory. One row per source file. See change: improve-canvas-html-and-url-ux.

| File | Purpose |
|------|---------|
| `exposure-store.ts` | External store for the WS `preview_exposure_changed {epoch}` push (`notifyExposureChanged`, `subscribeExposure`, `getPushedExposureEpoch`). |
| `preview-policy.ts` | Pure: provenance→egress, `sandboxFor` (D3 table, never allow-same-origin), `wantedPolicy`/`needsRunScripts`, `parsePresetPath` (`live:`/`static:`), `classifyAddress` (shared `validateAddressPath`), `isLocalOperator`, `localTargetUrl`. |