Skip to content

Commit d6471c9

Browse files
committed
refactor
1 parent a715e0d commit d6471c9

15 files changed

Lines changed: 1950 additions & 1598 deletions

‎AGENTS.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
- Use async/await for I/O; keep logging terse via `src/lib/logger.js`.
2424
- Two-space indentation, single-responsibility modules, and descriptive function names (`joinMUC`, `handleStanza`).
2525
- Configuration must be loaded from RDF profiles, `config/agents/secrets.json`, or `.env` for remote services. Avoid hardcoded defaults/fallbacks.
26+
- Refactoring should be an ongoing process.
27+
- Unit and/or integration tests should be created and run before and after any significant changes.
28+
- No source files should be over 500 lines, they should be further modularised following best practices.
29+
2630
## Testing Guidelines
2731
- `npm test` runs the current unit and integration test set.
2832
- Favor runnable example scripts per feature alongside Vitest coverage.

0 commit comments

Comments
 (0)