From 2dd1bfa26f6cc4dd221891b81e93e91c7636516a Mon Sep 17 00:00:00 2001 From: Mathias Magnusson Date: Fri, 12 Dec 2025 16:52:27 +0100 Subject: create, join, and archive ctf instances --- AGENTS.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 AGENTS.md (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..641eb22 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,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. -- cgit v1.2.3