# AGENTS.md

A full-featured download manager.

## Setup

```
pnpm install
```

## Commands

```
pnpm start                     # run the app
pnpm build                     # produce a build
pnpm test                      # run the test suite, must pass before any commit
pnpm lint                      # lint
pnpm format                    # format
pnpm ensure:electron-runtime
pnpm prestart
pnpm build:electron
```

## Layout

- `src/`      1401 source files
- `scripts/`  55 source files
- `tests/`    52 source files
- `e2e/`      28 source files
- `packages/` 21 source files

## Conventions

- Tests live alongside the code they cover, following `e2e/activity-tile.spec.ts`.
- 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/ci.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- Generated output is committed (`build/`). Search will return the compiled copy, so edit the source, not that.
- `src/core/session/session-manager.test.ts` is 119KB. It will not fit comfortably in context, so read it in parts.

---

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.
