Skip to content

Commit a3b8636

Browse files
committed
Update AGENTS.md
1 parent 2dcfddd commit a3b8636

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

AGENTS.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
- TypeScript strict mode; ES2020+/ESNext modules.
2020
- 2‑space indent, double quotes, named exports when practical.
2121
- Files: kebab‑case; tests end with `.test.ts`; entry files `index.ts`.
22-
- Follow .windsurf style guide (imports grouped, explicit types for public APIs).
22+
- Group imports; use explicit types for public APIs.
23+
- Use `node:crypto` (`randomInt`) instead of `Math.random()` when selecting from security‑relevant sets (e.g. tip accounts, signers).
24+
- Type all external API responses with explicit interfaces; never leave `fetch` JSON as `any`.
25+
- Pre‑compute expensive objects (e.g. `PublicKey`) at module level when the inputs are static constants.
2326

2427
## Testing Guidelines
2528
- Jest + `ts-jest` (Node env, ESM enabled).

0 commit comments

Comments
 (0)