- 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>
14 lines
443 B
C#
14 lines
443 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
using Journal.Core;
|
|
using Journal.Core.Services.Sidecar;
|
|
|
|
var services = new ServiceCollection();
|
|
services.AddFragmentServices();
|
|
services.AddSingleton<Entry>();
|
|
var provider = services.BuildServiceProvider();
|
|
|
|
var entry = provider.GetRequiredService<Entry>();
|
|
var cli = provider.GetRequiredService<SidecarCli>();
|
|
var exitCode = await cli.RunAsync(args, entry);
|
|
Environment.ExitCode = exitCode;
|