# breakpilot-compliance-sdk

TypeScript SDK monorepo providing React, Angular, Vue, vanilla JS, and core bindings for the BreakPilot Compliance backend. Published as npm packages.

**Stack:** TypeScript, workspaces (`packages/core`, `packages/react`, `packages/angular`, `packages/vanilla`, `packages/types`).

## Layout

```
packages/
├── core/       # Framework-agnostic client + state
├── types/      # Shared type definitions
├── react/      # React Provider + hooks
├── angular/    # Angular service
└── vanilla/    # Vanilla-JS embed script
```

## Architecture

Follow `../AGENTS.typescript.md`. No framework-specific code in `core/`.

## Build + test

```bash
npm install
npm run build     # per-workspace build
npm test          # Vitest (Phase 4 adds coverage — currently 0 tests)
```

## Known debt (Phase 4)

- `packages/vanilla/src/embed.ts` (611), `packages/react/src/provider.tsx` (539), `packages/core/src/client.ts` (521), `packages/react/src/hooks.ts` (474) — split.
- **Zero test coverage.** Priority Phase 4 target.

## Don't touch

Public API surface of `core` without bumping package major version and updating consumers.
