diff --git a/docs/MCP+A2A/DOMAIN_PRODUCTS.md b/docs/MCP+A2A/DOMAIN_PRODUCTS.md index e17b13eb..1dfb1940 100644 --- a/docs/MCP+A2A/DOMAIN_PRODUCTS.md +++ b/docs/MCP+A2A/DOMAIN_PRODUCTS.md @@ -1,4 +1,4 @@ -# Domain — Product Repos (MCP + A2A Opportunities) +diagnostics-client# Domain — Product Repos (MCP + A2A Opportunities) This document captures **concrete, code-grounded** MCP/A2A touchpoints per product. Each section lists what exists today (real files/APIs) and where MCP tools or A2A agents add leverage. @@ -9,17 +9,25 @@ Each section lists what exists today (real files/APIs) and where MCP tools or A2 Every product already wires these platform-service capabilities: -| Capability | Client module | Status | -| ------------------ | -------------------------------------------- | ------------------------------------ | -| Telemetry events | `@bytelyst/telemetry-client` | ✅ Live in all 6 | -| Feature flags | `/api/flags/poll` | ✅ Live in web/RN/iOS/Android | -| Kill switch | `@bytelyst/kill-switch-client` | ✅ Live in NomGap, LysnrAI, JarvisJr | -| Auth / JWT | `@bytelyst/auth-client` or platform wrappers | ✅ All products | -| Remote diagnostics | `@bytelyst/diagnostics-client` | ⬜ Not yet wired in product apps | -| Extraction service | `@bytelyst/extraction` | ✅ MindLyst + LysnrAI (partial) | +| Capability | Client module | Status | +| ------------------ | -------------------------------------------- | ------------------------------------------------------- | +| Telemetry events | `@bytelyst/telemetry-client` | ✅ Live in all 6 | +| Feature flags | `/api/flags/poll` | ✅ Live in web/RN/iOS/Android | +| Kill switch | `@bytelyst/kill-switch-client` | ✅ Live in NomGap, LysnrAI, JarvisJr | +| Auth / JWT | `@bytelyst/auth-client` or platform wrappers | ✅ All products | +| Remote diagnostics | `@bytelyst/diagnostics-client` | ✅ Wired in 5/6 web/mobile apps (PeakPulse iOS pending) | +| Extraction service | `@bytelyst/extraction` | ✅ MindLyst + LysnrAI (partial) | **Biggest common gap:** `@bytelyst/diagnostics-client` is not initialised in any product app yet. Adding it is the cheapest per-product MCP win — enables SupportTriageAgent to start remote debug sessions from a single MCP tool call. +### Cross-product checklist + +- [x] ChronoMind — wire `@bytelyst/diagnostics-client` (`web/src/app/providers.tsx`) — [cb79c9b](https://github.com/saravanakumardb1/learning_ai_clock/commit/cb79c9b) +- [x] JarvisJr — wire `@bytelyst/diagnostics-client` (`web/src/app/layout.tsx`) — [5bc1fcc](https://github.com/saravanakumardb1/learning_ai_jarvis_jr/commit/5bc1fcc) +- [x] MindLyst — wire `@bytelyst/diagnostics-client` (`mindlyst-native/web/src/app/providers.tsx`) — [a90bff2](https://github.com/saravanakumardb1/learning_multimodal_memory_agents/commit/a90bff2) +- [x] NomGap — wire `@bytelyst/diagnostics-client` (`src/app/_layout.tsx`) — [6371266](https://github.com/saravanakumardb1/learning_ai_fastgap/commit/6371266) +- [x] LysnrAI — wire `@bytelyst/diagnostics-client` (`user-dashboard-web/src/app/providers.tsx`) — [dacccda](https://github.com/saravanakumardb1/learning_voice_ai_agent/commit/dacccda) + --- ## ChronoMind (`learning_ai_clock`) @@ -60,9 +68,9 @@ chronomind.syncStatus(userId) ← returns offline queue depth + la ### Highest-ROI first -1. Add `@bytelyst/diagnostics-client` init to `web/src/app/layout.tsx` (unlocks SupportTriageAgent) -2. Create `nl-timer-parse` extraction task (moves NL parsing to server-side model, enables eval loop) -3. `chronomind.syncStatus` MCP tool (direct ops value for support) +- [x] Wire `@bytelyst/diagnostics-client` (`web/src/app/providers.tsx` + `web/src/lib/diagnostics.ts`) — [cb79c9b](https://github.com/saravanakumardb1/learning_ai_clock/commit/cb79c9b) +- [ ] Create `nl-timer-parse` extraction task (moves NL parsing to server-side, enables eval loop) +- [x] `chronomind.syncStatus` endpoint in `backend/src/modules/timers/routes.ts` — [4a3ac76](https://github.com/saravanakumardb1/learning_ai_clock/commit/4a3ac76) --- @@ -107,9 +115,9 @@ nomgap.social.listGroupFasts(userId) ### Highest-ROI first -1. `nomgap.push.fire` MCP tool (directly replaces manual push management) -2. SafetyMonitorAgent (safety-critical, high product trust) -3. `@bytelyst/diagnostics-client` init in `App/_layout.tsx` (NomGap-specific: captures stage transition failures) +- [x] Wire `@bytelyst/diagnostics-client` (`src/app/_layout.tsx` + `src/lib/diagnostics.ts`) — [6371266](https://github.com/saravanakumardb1/learning_ai_fastgap/commit/6371266) +- [ ] `nomgap.push.fire` convenience wrapper in `src/api/push-api.ts` +- [ ] SafetyMonitorAgent spec in `docs/agents/` --- @@ -149,9 +157,9 @@ peakpulse.weather.getSnapshot(sessionId) ← WeatherSnapshotDoc for a ses ### Highest-ROI first -1. `peakpulse.sessions.export` MCP tool (most-requested feature: share route) -2. SyncDiagnosticsAgent (sync reliability is the top iOS support ticket type for GPS apps) -3. RouteSafetyAssessmentAgent (extraction service, no new infra required) +- [ ] Wire `@bytelyst/diagnostics-client` into iOS `PeakPulseApp.swift` (via Platform/ wrapper) — _pending: iOS wrapper pattern_ +- [ ] `peakpulse.sessions.export` endpoint in `backend/src/modules/peak-sessions/routes.ts` +- [ ] SyncDiagnosticsAgent spec --- @@ -212,9 +220,9 @@ This product's own coaching "crew" maps naturally to A2A: ### Highest-ROI first -1. `MarketplaceCertificationPipeline` A2A workflow (core product need, no manual cert process exists today) -2. `jarvis.memory.prune` MCP tool (memory hygiene is critical at scale) -3. `ProgressAnalystAgent` (directly enhances coaching value prop) +- [x] Wire `@bytelyst/diagnostics-client` (`web/src/app/layout.tsx` + `web/src/lib/diagnostics.ts`) — [5bc1fcc](https://github.com/saravanakumardb1/learning_ai_jarvis_jr/commit/5bc1fcc) +- [ ] `jarvis.memory.prune` endpoint in `backend/src/modules/jarvis-memory/routes.ts` +- [ ] MarketplaceCertificationPipeline A2A spec --- @@ -263,9 +271,9 @@ mindlyst.extractions.run(taskId, text) ← direct extraction (all 3 ### Highest-ROI first -1. `DailyBriefGenerationPipeline` A2A workflow (the core "morning brief" product feature IS this pipeline) -2. `TriageQualityAgent` (confidenceScore is already persisted; agent needs only a query + retriage call) -3. `mindlyst.memory.retriage` MCP tool (single tool, high product impact) +- [x] Wire `@bytelyst/diagnostics-client` (`mindlyst-native/web/src/app/providers.tsx` + `src/lib/diagnostics.ts`) — [a90bff2](https://github.com/saravanakumardb1/learning_multimodal_memory_agents/commit/a90bff2) +- [x] `mindlyst.memory.retriage` endpoint (`POST /memory-items/:id/retriage`) — [ae5c755](https://github.com/saravanakumardb1/learning_multimodal_memory_agents/commit/ae5c755) +- [ ] DailyBriefGenerationPipeline A2A spec --- @@ -318,9 +326,9 @@ lysnrai.stt.getBackendStatus() ← online (Azure) vs offline ### Highest-ROI first -1. `TranscriptExtractionPipelineAgent` (the extraction fields already exist in schema — just need the pipeline to run) -2. `KeyboardDiagnosticsAgent` (keyboard errors are the #1 LysnrAI support surface — very high ROI) -3. `lysnrai.stt.getBackendStatus` MCP tool (instant ops visibility, one endpoint to add) +- [x] Wire `@bytelyst/diagnostics-client` (`user-dashboard-web/src/app/providers.tsx` + `src/lib/diagnostics.ts`) — [dacccda](https://github.com/saravanakumardb1/learning_voice_ai_agent/commit/dacccda) +- [x] Transcript extraction endpoint (`POST /transcripts/:id/extract`) — [3164a61](https://github.com/saravanakumardb1/learning_voice_ai_agent/commit/3164a61) +- [ ] `lysnrai.stt.getBackendStatus` endpoint (one-liner status check) ---