From 11ca4e95e300e18fdea7a4215f4a0045f3faf3be Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 14 Feb 2026 21:54:09 -0800 Subject: [PATCH] docs: Phase 5 update AGENTS.md, package.json, monitoring for consolidated services --- AGENTS.md | 31 +++++++++---------- services/platform-service/package.json | 2 +- .../src/modules/votes/votes.test.ts | 2 +- 3 files changed, 17 insertions(+), 18 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2e7eaa02..7814ce59 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -38,10 +38,9 @@ learning_ai_common_plat/ │ ├── scripts/generate.ts # Token generator │ └── generated/ # Output: tokens.css, tokens.ts, MindLystTokens.kt, MindLystTheme.swift ├── services/ # @lysnrai/* product-agnostic microservices -│ ├── platform-service/ # Auth, audit, flags, notifications, blob (port 4003) -│ ├── billing-service/ # Subscriptions, Stripe, usage, licenses (port 4002) -│ ├── growth-service/ # Invitations, referrals, promos (port 4001) -│ ├── tracker-service/ # Items, comments, votes, public roadmap (port 4004) +│ ├── platform-service/ # Consolidated: auth, audit, flags, notifications, blob, +│ │ # invitations, referrals, promos, subscriptions, usage, +│ │ # plans, licenses, stripe, items, comments, votes, public (port 4003) │ ├── extraction-service/ # LangExtract text extraction + Python sidecar (port 4005) │ └── monitoring/ # Loki + Grafana config, health-check script ├── docs/ # Architecture docs, roadmap, analysis @@ -121,18 +120,18 @@ learning_ai_common_plat/ | **Audit log** | `services/platform-service/` | `src/modules/audit/` | | **Notifications** | `services/platform-service/` | `src/modules/notifications/` | | **Rate limiting** | `services/platform-service/` | `src/modules/rate-limit/` | -| **Subscriptions** | `services/billing-service/` | `src/modules/subscriptions/` | -| **Stripe webhooks** | `services/billing-service/` | `src/modules/stripe/` | -| **Usage tracking** | `services/billing-service/` | `src/modules/usage/` | -| **Plans** | `services/billing-service/` | `src/modules/plans/` | -| **Licenses** | `services/billing-service/` | `src/modules/licenses/` | -| **Invitations** | `services/growth-service/` | `src/modules/invitations/` | -| **Referrals** | `services/growth-service/` | `src/modules/referrals/` | -| **Promos** | `services/growth-service/` | `src/modules/promos/` | -| **Tracker items** | `services/tracker-service/` | `src/modules/items/` | -| **Public roadmap** | `services/tracker-service/` | `src/modules/public/` | -| **Tracker comments** | `services/tracker-service/` | `src/modules/comments/` | -| **Tracker votes** | `services/tracker-service/` | `src/modules/votes/` | +| **Subscriptions** | `services/platform-service/` | `src/modules/subscriptions/` | +| **Stripe webhooks** | `services/platform-service/` | `src/modules/stripe/` | +| **Usage tracking** | `services/platform-service/` | `src/modules/usage/` | +| **Plans** | `services/platform-service/` | `src/modules/plans/` | +| **Licenses** | `services/platform-service/` | `src/modules/licenses/` | +| **Invitations** | `services/platform-service/` | `src/modules/invitations/` | +| **Referrals** | `services/platform-service/` | `src/modules/referrals/` | +| **Promos** | `services/platform-service/` | `src/modules/promos/` | +| **Tracker items** | `services/platform-service/` | `src/modules/items/` | +| **Public roadmap** | `services/platform-service/` | `src/modules/public/` | +| **Tracker comments** | `services/platform-service/` | `src/modules/comments/` | +| **Tracker votes** | `services/platform-service/` | `src/modules/votes/` | | **Extraction routes** | `services/extraction-service/` | `src/modules/extract/` — POST /extract, /extract/batch, /extract/jobs, /extract/models | | **Extraction tasks** | `services/extraction-service/` | `src/modules/tasks/` — predefined task library (triage, transcript, memory-insight, etc.) | | **Extraction Python** | `services/extraction-service/` | `python/src/` — LangExtract sidecar (FastAPI :4006), extractor, task registry, language detection | diff --git a/services/platform-service/package.json b/services/platform-service/package.json index dd7e42cc..18ca6964 100644 --- a/services/platform-service/package.json +++ b/services/platform-service/package.json @@ -2,7 +2,7 @@ "name": "@lysnrai/platform-service", "version": "0.1.0", "private": true, - "description": "Platform Service — auth, audit, notifications, feature flags", + "description": "Platform Service — consolidated: auth, audit, notifications, flags, blob, invitations, referrals, promos, subscriptions, usage, plans, licenses, stripe, items, comments, votes, public", "type": "module", "scripts": { "dev": "tsx watch src/server.ts", diff --git a/services/platform-service/src/modules/votes/votes.test.ts b/services/platform-service/src/modules/votes/votes.test.ts index bee59981..ce85f9e6 100644 --- a/services/platform-service/src/modules/votes/votes.test.ts +++ b/services/platform-service/src/modules/votes/votes.test.ts @@ -49,7 +49,7 @@ describe('VoteDoc', () => { }); describe('voteRoutes export', () => { - it('exports voteRoutes function', async () => { + it('exports voteRoutes function', { timeout: 15_000 }, async () => { const mod = await import('./routes.js'); expect(typeof mod.voteRoutes).toBe('function'); });