From 81609e93586fce8f9ba447fafa92b1592e1c55f7 Mon Sep 17 00:00:00 2001 From: saravanakumardb1 Date: Sat, 14 Feb 2026 21:48:21 -0800 Subject: [PATCH] fix: remove stale port references from monitoring, docs, and AI.dev skills --- AI.dev/SKILLS/architecture-patterns.md | 2 +- AI.dev/SKILLS/debug-service.md | 7 ++----- AI.dev/SKILLS/local-development.md | 6 ------ docs/MIGRATION_GUIDE.md | 2 +- packages/monitoring/src/health.ts | 10 ---------- services/monitoring/health-check.ts | 2 -- 6 files changed, 4 insertions(+), 25 deletions(-) diff --git a/AI.dev/SKILLS/architecture-patterns.md b/AI.dev/SKILLS/architecture-patterns.md index 66335e80..d4cbb925 100644 --- a/AI.dev/SKILLS/architecture-patterns.md +++ b/AI.dev/SKILLS/architecture-patterns.md @@ -222,7 +222,7 @@ src/app/ import { createApiClient } from '@bytelyst/api-client'; const api = createApiClient({ - baseUrl: process.env.BILLING_API_URL || 'http://localhost:4002', + baseUrl: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003', getToken: () => localStorage.getItem('token') || undefined, }); diff --git a/AI.dev/SKILLS/debug-service.md b/AI.dev/SKILLS/debug-service.md index 931cb599..7ba336aa 100644 --- a/AI.dev/SKILLS/debug-service.md +++ b/AI.dev/SKILLS/debug-service.md @@ -38,10 +38,7 @@ Quickly locate which service is affected: ```bash # Check all services at once curl -s http://localhost:8000/health && \ -curl -s http://localhost:4001/health && \ -curl -s http://localhost:4002/health && \ -curl -s http://localhost:4003/health && \ -curl -s http://localhost:4004/health +curl -s http://localhost:4003/health ``` ### 3. Examine Logs @@ -138,7 +135,7 @@ curl -s http://localhost:4003/api/auth/me -H "Authorization: Bearer " # Check if dependent services are running docker compose ps # Verify service communication -curl -s http://localhost:4002/health | jq . # billing depends on platform +curl -s http://localhost:4003/health | jq . # consolidated platform service ``` ## Notes diff --git a/AI.dev/SKILLS/local-development.md b/AI.dev/SKILLS/local-development.md index fae010b5..ec6fb2c4 100644 --- a/AI.dev/SKILLS/local-development.md +++ b/AI.dev/SKILLS/local-development.md @@ -34,12 +34,9 @@ cd $HOME/code/mygh/learning_voice_ai_agent | Service | URL | Log File | Process | Port | | -------------------------- | --------------------- | ----------------------------- | ------- | ---- | | Backend API (FastAPI) | http://localhost:8000 | `.logs/backend.log` | Python | 8000 | -| Growth Service (Fastify) | http://localhost:4001 | `.logs/growth-service.log` | Node.js | 4001 | -| Billing Service (Fastify) | http://localhost:4002 | `.logs/billing-service.log` | Node.js | 4002 | | Platform Service (Fastify) | http://localhost:4003 | `.logs/platform-service.log` | Node.js | 4003 | | Admin Dashboard | http://localhost:3001 | `.logs/admin-dashboard.log` | Next.js | 3001 | | User Dashboard | http://localhost:3002 | `.logs/user-dashboard.log` | Next.js | 3002 | -| Tracker Service (Fastify) | http://localhost:4004 | `.logs/tracker-service.log` | Node.js | 4004 | | Tracker Dashboard | http://localhost:3003 | `.logs/tracker-dashboard.log` | Next.js | 3003 | ## Health Check Commands @@ -47,10 +44,7 @@ cd $HOME/code/mygh/learning_voice_ai_agent ```bash # Quick health check for all services curl -s http://127.0.0.1:8000/health && echo " ✓ Backend" -curl -s http://127.0.0.1:4001/health && echo " ✓ Growth" -curl -s http://127.0.0.1:4002/health && echo " ✓ Billing" curl -s http://127.0.0.1:4003/health && echo " ✓ Platform" -curl -s http://127.0.0.1:4004/health && echo " ✓ Tracker" # Check dashboards (HTTP status codes) curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:3001 && echo " ✓ Admin Dashboard" diff --git a/docs/MIGRATION_GUIDE.md b/docs/MIGRATION_GUIDE.md index eebf67b4..b09e8ccb 100644 --- a/docs/MIGRATION_GUIDE.md +++ b/docs/MIGRATION_GUIDE.md @@ -131,7 +131,7 @@ Create `src/lib/billing-client.ts` (example): import { createApiClient } from '@bytelyst/api-client'; const billingApi = createApiClient({ - baseUrl: process.env.BILLING_SERVICE_URL || 'http://localhost:4002', + baseUrl: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003', getToken: () => { // Return the current user's JWT token return localStorage.getItem('access_token'); diff --git a/packages/monitoring/src/health.ts b/packages/monitoring/src/health.ts index 94e2e48d..6e992071 100644 --- a/packages/monitoring/src/health.ts +++ b/packages/monitoring/src/health.ts @@ -25,16 +25,6 @@ export interface HealthReport { */ export const DEFAULT_SERVICES: ServiceTarget[] = [ { name: 'Backend API', url: process.env.BACKEND_URL || 'http://localhost:8000', path: '/health' }, - { - name: 'Growth Service', - url: process.env.GROWTH_SERVICE_URL || 'http://localhost:4001', - path: '/health', - }, - { - name: 'Billing Service', - url: process.env.BILLING_SERVICE_URL || 'http://localhost:4002', - path: '/health', - }, { name: 'Platform Service', url: process.env.PLATFORM_SERVICE_URL || 'http://localhost:4003', diff --git a/services/monitoring/health-check.ts b/services/monitoring/health-check.ts index aa962084..cae0cee5 100644 --- a/services/monitoring/health-check.ts +++ b/services/monitoring/health-check.ts @@ -11,8 +11,6 @@ * * Environment: * BACKEND_URL (default: http://localhost:8000) - * GROWTH_SERVICE_URL (default: http://localhost:4001) - * BILLING_SERVICE_URL (default: http://localhost:4002) * PLATFORM_SERVICE_URL (default: http://localhost:4003) * ADMIN_DASHBOARD_URL (default: http://localhost:3001) * USER_DASHBOARD_URL (default: http://localhost:3002)