9 Commits

Author SHA1 Message Date
Jacob Schmidt
f86ac5e4b9 Remove dead code, fix duplicated connection logic, eliminate fake async
- Delete unused FileFragmentRepository.cs
- DatabaseSessionService delegates to JournalDatabaseService for
  OpenEncryptedConnection/EnsureSchema instead of duplicating logic
- Make IJournalDatabaseService expose OpenEncryptedConnection and
  EnsureSchema as public
- Convert entire fragment chain from fake async (Task.FromResult
  wrappers) to synchronous: IFragmentRepository, SqliteFragmentRepository,
  InMemoryFragmentRepository, IFragmentService, FragmentService,
  Entry.cs dispatch, and SmokeTests

Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 22:10:36 -06:00
Jacob Schmidt
e85a3f6d26 docs: update README with domain module architecture and encrypted fragment details
Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 22:01:32 -06:00
Jacob Schmidt
f06c1d15bb refactor: encrypt fragments in SQLCipher DB, organize services into domain modules
- Move standalone fragment storage from unencrypted SQLite to the existing
  encrypted SQLCipher database (journal_cache.db)
- Add IDatabaseSessionService/DatabaseSessionService for shared encrypted
  connection management after authentication
- Update fragments table schema: nullable entry_id, add guid column
- Reorganize flat Services/ directory (28 files) into 9 domain modules:
  Ai, Config, Database, Entries, Fragments, Logging, Sidecar, Speech, Vault
- Update all namespace declarations and using statements across all projects
- Update REFACTORING_SUMMARY.md with all changes

Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 21:58:45 -06:00
Jacob Schmidt
8a29bd4bd1 style: apply dotnet format (round 2)
Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 21:39:57 -06:00
Jacob Schmidt
e7d2bdfaa8 style: apply dotnet format to Core project
Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 21:23:58 -06:00
Jacob Schmidt
08ebeeb3c6 docs: add README with C# backend documentation
Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 21:11:24 -06:00
Jacob Schmidt
d3781d6c3e refactor: slim Entry.cs, extract shared sidecar client, add entry file repository
- Slim Entry.cs from ~550 to ~330 lines (thin dispatcher only)
- Extract HtmlSanitizer, CommandLogger, EntryFileService from Entry.cs
- Extract PythonSidecarClient from duplicated sidecar plumbing
- Add IEntryFileRepository + DiskEntryFileRepository (mirrors Fragment pattern)
- Move payload records to Dtos/CommandDtos.cs
- Move database result records to Dtos/DatabaseDtos.cs
- Register new services and repository in DI
- All 70/70 smoke tests pass, no behavior changes

Co-Authored-By: Warp <agent@warp.dev>
2026-02-23 21:03:55 -06:00
14b8e7a339 massive backend migration to c# 2026-02-23 19:57:18 -06:00
Jacob Schmidt
d0fac4199a Initial commit: Journal.Core library + Sidecar console app
- Fragment model with validation, DTOs (immutable records), repository, service
- Sidecar stdin/stdout JSON protocol for Tauri integration
- DI wiring via ServiceCollectionExtensions
- Scaffolded Journal.Api (not yet wired)

Co-Authored-By: Warp <agent@warp.dev>
2026-02-21 02:01:00 -06:00