summaryrefslogtreecommitdiff
path: root/AGENTS.md
blob: 641eb22d8a5349be238ca28908ad56dd159fe9e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Agent Notes (fleg-bout)

## Commands
- Install deps: `bun install`
- Run bot locally: `timeout 5 bun run .`
- Check types: `bun typecheck`
- Tests: we don't do tests

## Code Style
- TypeScript ESM (`"type": "module"`); prefer `import type { ... }` for types.
- Use 4-space indentation, double quotes, and semicolons.
- Keep imports grouped and sorted: external first, then local.
- Prefer `let`, early returns, and `async/await` over nested callbacks.
- Handle `strict` TS + `noUncheckedIndexedAccess`: null-check before use.
- Errors: `throw new Error(...)` (avoid throwing strings); log context, don’t log secrets.
- Naming: `camelCase` for vars/functions, `PascalCase` for classes/types, `SCREAMING_SNAKE_CASE` for constants.