Commit graph

7 commits

Author SHA1 Message Date
Jason Monk
6fe84536a8 Make dashboard reactive so integration and audit state updates without navigation
The dashboard was stale because it used a manual refreshTrigger instead of
reactive data sources. Now IntegrationStateStore exposes observeChanges()
and AuditDao exposes observeRecent() — both Flows that the ViewModel combines
so the UI updates immediately when integrations are toggled or new audit
entries arrive.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 19:47:58 -04:00
Jason Monk
44670a6696 Remove stale mcp-core/ and mcp-health/ directories, fix conflict markers in health build files 2026-04-05 12:42:38 -04:00
Jason Monk
1b357a3dc5 Add real Health Connect MCP tools: get_steps, get_heart_rate, get_sleep 2026-04-05 11:32:55 -04:00
Jason Monk
45c39f36ac Fix conflict marker in api/build.gradle.kts from T-16 merge 2026-04-05 10:01:32 -04:00
Jason Monk
535fb2e430 Merge T-16: Tunnel + relay integration tests with mock relay server 2026-04-05 10:00:46 -04:00
Jason Monk
78f0fc65d3 Define McpIntegration, IntegrationStateStore, and IntegrationState contracts
Implement the :api module provider contract (T-6):
- McpIntegration interface for integration modules to implement
- IntegrationStateStore interface for user enable/disable persistence
- IntegrationState enum with deriveIntegrationState() derivation function
- NotificationSettingsProvider and NotificationSettings for notification model
- Tests for state derivation logic and state store contract

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 07:31:56 -04:00
Jason Monk
65d71fba10 Restructure Gradle modules: flat layout to nested architecture
Rename modules to match target architecture:
- mcp-core/ -> core/mcp/ (MCP session, providers, audit)
- tunnel/ -> core/tunnel/ (mux protocol, TLS, CertificateStore)
- mcp-health/ -> health/ (Health Connect integration)

Create new empty modules:
- api/ (integration contract layer, depends on core:mcp)
- notifications/ (notification state machine + audit persistence)
- work/ (foreground service, FCM, WorkManager)

Update all module references in settings.gradle.kts, app/build.gradle.kts,
health/build.gradle.kts. Update .claude/CLAUDE.md with Java 21 and new
module paths. Fix .gitignore to cover all build/ directories.

Verified: ./gradlew assemble, :core:mcp:testDebugUnitTest, ktlintCheck
all pass with JAVA_HOME=/usr/lib/jvm/java-21-openjdk.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-05 07:18:03 -04:00