Commit Graph

116 Commits

Author SHA1 Message Date
Badri Narayanan S
943a4dcb20 Verbose message logging only when debug = true 2025-12-24 20:31:39 +05:30
Badri Narayanan S
0edc718672 refactor: centralize constants, add error classes, and DRY test utilities
- Create src/errors.js with custom error classes (RateLimitError, AuthError, ApiError, etc.)
- Create src/utils/helpers.js with shared utilities (formatDuration, sleep)
- Create tests/helpers/http-client.cjs with shared test utilities (~250 lines deduped)
- Centralize OAuth config and other constants in src/constants.js
- Add JSDoc types to all major exported functions
- Refactor all test files to use shared http-client utilities
- Update CLAUDE.md with new architecture documentation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-24 18:11:45 +05:30
Badri Narayanan S
712da8f7f2 code quality improvements and refactoring 2025-12-21 22:11:44 +05:30
Badri Narayanan S
f282b36d1e code cleanup and test fix 2025-12-21 20:25:20 +05:30
Badri Narayanan S
c703fb32fb fix where models didnt wait if retrydelay is less than 2 mins for multi account scenario 2025-12-21 19:57:50 +05:30
Badri Narayanan S
8eead9660c reset rate limits in cache only when all accounts are rate limited 2025-12-21 15:43:51 +05:30
Badri Narayanan S
9a35845ceb add ability to remove accounts. ensure accounts are not / added / removed when server is running 2025-12-21 15:05:45 +05:30
Badri Narayanan S
95c08f9d55 handle rate limits gracefully, and add ability to check google server for every request in case they reset rate limits on their end, thereby not relying on local cache alone 2025-12-21 14:49:57 +05:30
Badri Narayanan S
f625377bdf thinking sanitization 2025-12-19 22:41:01 +05:30
Badri Narayanan S
da48b9898b sanitize thinking blocks 2025-12-19 22:02:18 +05:30
Badri Narayanan S
3ad42b127d added claude.md 2025-12-19 20:08:38 +05:30
Badri Narayanan S
0b6bfbffdd added gitgnore 2025-12-19 19:34:46 +05:30
Badri Narayanan S
3d98119fed remove unnecessary fields 2025-12-19 19:34:37 +05:30
Badri Narayanan S
059547382d initial commit 2025-12-19 19:27:10 +05:30
Badri Narayanan S
5ae29947b1 initial commit 2025-12-19 19:20:28 +05:30
Badri Narayanan S
52d72b7bff initial commit 2025-12-18 00:06:00 +05:30