Commit Graph

25 Commits

Author SHA1 Message Date
238df92888 Untangle Spike architecture with bridge pattern
Split the monolithic gitea/helpers.ts (which had Discord imports and created circular dependencies) into three focused libs:

1. **gitea/** — Pure API client: fetchPR, fetchReviewComments, convertUsername, threadName. No side effects or external deps.

2. **discord/** — Discord client setup: bot login, event listeners, slash commands. Now isolated from Gitea internals.

3. **bridge/** — New integration layer: webhook handler, DB mappings (Gitea PR ↔ Discord thread), Discord helpers, and createPRComment.

Dependencies now flow one direction: bridge → gitea and bridge → discord. No circular imports.

Added:
- Barrel exports (index.ts) for each lib with public API
- README.md for each lib documenting the barrel exports
- Comprehensive spike README.md with setup guide and architecture explanation
- Integration tests for webhooks (callback-based, no race conditions)
- Unit tests for pure API functions
- CLAUDE.md with links to each lib's README

This architecture makes it possible for AI to understand a lib by reading just its README, keeping context focused and small.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-09 15:23:11 -07:00
59d51c4be4 cool dude 2025-11-07 14:40:11 -08:00
Chris Wanstrath
3fc9bfad4a sneaker wip 2025-09-23 17:55:41 -07:00
8f8c70e10e fixed runner 2025-09-19 17:35:22 -07:00
8fa8f3a2d3 wip 2025-07-22 11:09:26 -07:00
76f394b852 demo 2025-07-21 16:53:47 -07:00
97a4c750ad overlay! 2025-07-21 12:03:31 -07:00
fe247d7eb1 video upload works 2025-07-17 13:52:09 -07:00
8e3ef39116 whiteboard 2025-07-15 09:50:29 -07:00
6dbbd74c01 wip 2025-07-14 14:47:30 -07:00
fc9288d0cc Add project-whiteboard app and update dependencies 2025-07-11 10:50:13 -07:00
785d90e140 Refactor todo format to remove dash prefix 2025-07-10 14:53:48 -07:00
06b9217fee werewolf 2025-07-07 15:30:58 -07:00
8843349413 Better todos 2025-07-02 10:22:07 -07:00
07953880af Better personality 2025-06-26 12:08:34 -07:00
21f336f78e Spike gets a facelift. 2025-06-26 11:50:03 -07:00
6750dc45f9 We can now mark good and bad responses from spike! 2025-06-23 14:51:31 -07:00
eb4a1fac14 Hell yeah! 2025-06-22 12:32:08 -07:00
04980a1869 wip 2025-06-22 11:17:20 -07:00
c267f8b54b Update bun.lock 2025-06-18 09:13:49 -07:00
007357445b new spike 2025-06-18 09:13:27 -07:00
Chris Wanstrath
b403c6d1d4 @the-rabbit-hole => @workshop 2025-06-16 22:16:00 -07:00
f3600aed41 Readme stuff 2025-06-16 11:26:21 -07:00
8cf11f6613 make it work 2025-06-16 10:12:09 -07:00
1b8b68a572 🆒 2025-06-16 09:27:35 -07:00