# AGENTS.md

A next.js web application that integrates AI capabilities with draw.io diagrams. This app allows you to create, modify, and enhance diagrams through natural language commands and AI-assisted visualization.

## Setup

```
npm ci
```

## Commands

```
npm run dev       # run locally
npm run start     # run the app
npm run build     # produce a build
npm run test      # run the test suite, must pass before any commit
npm run lint      # lint
npm run format    # format
npm run check     # lint and type check
npm run prepare
```

## Layout

- `components/` 44 source files
- `lib/`        32 source files
- `tests/`      31 source files
- `app/`        25 source files
- `electron/`   15 source files
- `packages/`   14 source files

## Conventions

- Tests live alongside the code they cover, following `packages/mcp-server/tests/edit-gate.test.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/auto-format.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.
