- M5-008: Add session-hardening.test.ts verifying /model switch, /agent switch, session resume with conversationHistory, and metrics tracking (tokens + message count) - M6-001: Install bullmq, configure connection via VALKEY_URL (redis://localhost:6380) - M6-002: Create QueueService (apps/gateway/src/queue/) with typed job definitions (SummarizationJob, GCJob, TierManagementJob), worker registration with exponential backoff, queue health status, and admin API helpers (listJobs, retryJob, pause/resume) - M6-003: Migrate summarization cron → BullMQ repeatable job (SUMMARIZATION_CRON env) - M6-004: Migrate session GC cron → BullMQ repeatable job (SESSION_GC_CRON env) - M6-005: Migrate tier management cron → BullMQ repeatable job (TIER_MANAGEMENT_CRON env) - Add AdminJobsController for queue/job management at /api/admin/jobs - All three quality gates pass: typecheck, lint, format:check - 319 tests pass Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
67 lines
2.0 KiB
JSON
67 lines
2.0 KiB
JSON
{
|
|
"name": "@mosaic/gateway",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/main.js",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsx watch src/main.ts",
|
|
"lint": "eslint src",
|
|
"typecheck": "tsc --noEmit -p tsconfig.typecheck.json",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.80.0",
|
|
"@fastify/helmet": "^13.0.2",
|
|
"@mariozechner/pi-ai": "~0.57.1",
|
|
"@mariozechner/pi-coding-agent": "~0.57.1",
|
|
"@modelcontextprotocol/sdk": "^1.27.1",
|
|
"@mosaic/auth": "workspace:^",
|
|
"@mosaic/brain": "workspace:^",
|
|
"@mosaic/coord": "workspace:^",
|
|
"@mosaic/db": "workspace:^",
|
|
"@mosaic/discord-plugin": "workspace:^",
|
|
"@mosaic/log": "workspace:^",
|
|
"@mosaic/memory": "workspace:^",
|
|
"@mosaic/queue": "workspace:^",
|
|
"@mosaic/telegram-plugin": "workspace:^",
|
|
"@mosaic/types": "workspace:^",
|
|
"@nestjs/common": "^11.0.0",
|
|
"@nestjs/core": "^11.0.0",
|
|
"@nestjs/platform-fastify": "^11.0.0",
|
|
"@nestjs/platform-socket.io": "^11.0.0",
|
|
"@nestjs/throttler": "^6.5.0",
|
|
"@nestjs/websockets": "^11.0.0",
|
|
"@opentelemetry/auto-instrumentations-node": "^0.71.0",
|
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.213.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.213.0",
|
|
"@opentelemetry/resources": "^2.6.0",
|
|
"@opentelemetry/sdk-metrics": "^2.6.0",
|
|
"@opentelemetry/sdk-node": "^0.213.0",
|
|
"@opentelemetry/semantic-conventions": "^1.40.0",
|
|
"@sinclair/typebox": "^0.34.48",
|
|
"better-auth": "^1.5.5",
|
|
"bullmq": "^5.71.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.15.1",
|
|
"dotenv": "^17.3.1",
|
|
"fastify": "^5.0.0",
|
|
"node-cron": "^4.2.1",
|
|
"openai": "^6.32.0",
|
|
"reflect-metadata": "^0.2.0",
|
|
"rxjs": "^7.8.0",
|
|
"socket.io": "^4.8.0",
|
|
"uuid": "^11.0.0",
|
|
"zod": "^4.3.6"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^22.0.0",
|
|
"@types/node-cron": "^3.0.11",
|
|
"@types/uuid": "^10.0.0",
|
|
"tsx": "^4.0.0",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^2.0.0"
|
|
}
|
|
}
|