Define each tRPC API in its main-process feature and keep contracts model-only.
Separate renderer composition, feature state, and presentational UI components.
Retain desktop capabilities with explicit opt-out construction and authorization.
Add safe diagnostics, IPC timeouts/cancellation, snapshot streams, and cleanup.
Align renderer behavior with the structured design specification and shared tokens.
Record M1 scope, freeze rules, validation, and M2 release acceptance criteria.
Validation: lint, typechecks, 84 unit/SQLite tests, 2 Electron E2E tests,
build, packaged EXE test, production audit, and design/token checks passed.
Memory pressure required constrained Node memory and serial unit tests;
the default package extraction issue remains documented.
- Implemented `electron-trpc` package for tRPC integration with Electron.
- Created IPC handler for managing requests and subscriptions.
- Added preload script to expose tRPC bridge to the renderer process.
- Defined various routers for application features including window management, file operations, and settings.
- Established a structured request schema using Zod for type safety.
- Added UI component for title bar with platform-specific styles.
- Implemented modules for app information, dialog confirmations, and menu interactions.
- Added tests for module boundaries, tRPC preload functionality, and type inference.