Antigravity
66be07750f
refactor(backend): migrate to modular repository pattern with separated concerns
...
- Extract database layer into model and repo packages
- Split repository into focused modules (control, federation, flow, groups, mutations)
- Remove monolithic db.go and sqlite/repository.go
- Update handlers to use new repository structure
- Migrate contract tests to new patterns
- Add migration plan documentation
2026-02-17 04:47:11 +00:00
sagit
1b4500202a
feat: update agents.md and add a feat ( #128 )
...
* docs(agents): update knowledge base with encryption, API envelope, and build conventions
Add comprehensive documentation of project conventions including:
- Encryption patterns (AES with node secret PSK)
- API envelope structure (code, msg, data, ts)
- Build peculiarities (minify: false, rolldown-vite, UPX compression)
- Unique styles (flat monorepo, asymmetric Go layout, hybrid frontend mode)
- Module boundaries and anti-patterns
- Large file hotspots and code map references
Updated 7 AGENTS.md files across root and submodules.
* test(backend): add comprehensive dual-stack IP preference test suite
Added 43 tests covering:
- Core IP selection logic (selectTunnelDialHost)
- Node capability detection (nodeSupportsV4/V6)
- Address picker functions
- API contract tests for create/update/list
- Database compatibility (SQLite + PostgreSQL)
Fixed pre-existing broken test in federation_runtime_test.go
2026-02-15 15:17:15 +00:00