All AI agents (Codex, Copilot, Antigravity) must follow this file and the rules in .agent/rules/.
- The project uses JavaScript/TypeScript and Jest.
- Use the
tdd-flowskill for feature implementation and bug fixes. - Preserve existing implementation when a test is skipped. Do not implement behavior inferred from ignored tests.
- Focus tests on observable behavior. Do not use mocks.
- The Mailinator OpenAPI specification is the source of truth for supported API behavior.
- Only implement or assert properties and validation rules explicitly defined by the specification. Report ambiguities or gaps for human review instead of filling them with assumptions.
- A request class generally maps to one OpenAPI
operationIdand belongs in the module matching that operation's tag. - Mailinator API request paths must use the
/api/v2/prefix. - Export new request classes and response types from both the module's
index.tsandsrc/index.ts. - Use the
AUTHORIZATIONconstant for authenticated requests. Requests that do not require a token must implementRequestWithoutToken. - Do not remove deprecated or undocumented endpoints without explicit confirmation.
- Endpoint coverage and integration tests must make real HTTP requests; do not use request-mocking tools.
- Assertions must validate contract-defined response semantics rather than mere existence.
- After implementation, run
npx tsc --noEmitandnpm test.
See docs/openapi-alignment.md for the SDK architecture, OpenAPI gap-analysis workflow, and implementation checklist.