# AGENTS.md

🐻 Bear necessities for state management in React

## Setup

```
pnpm install
```

## Commands

```
pnpm build              # produce a build
pnpm test               # run the test suite, must pass before any commit
pnpm prebuild
pnpm build-watch
pnpm build:base
pnpm build:vanilla
pnpm build:react
pnpm build:middleware
```

## Layout

- `examples/` 17 source files
- `src/`      16 source files
- `tests/`    15 source files

## Conventions

- Tests live alongside the code they cover, following `tests/basic.test.tsx`.
- TypeScript runs in strict mode. Type errors are the fastest feedback available, so do not weaken it.
- CI defines what passing means. See `.github/workflows/compressed-size.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
