- Add @nestjs/throttler for rate limiting support - Configure multiple throttle profiles: default (100/min), strict (10/min for spawn/kill), status (200/min for polling) - Apply strict rate limits to spawn and kill endpoints to prevent DoS - Apply higher rate limits to status/health endpoints for monitoring - Add OrchestratorThrottlerGuard with X-Forwarded-For support for proxy setups - Add unit tests for throttler guard Refs #338 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
54 lines
1.6 KiB
JSON
54 lines
1.6 KiB
JSON
{
|
|
"name": "@mosaic/orchestrator",
|
|
"version": "0.0.6",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "nest start --watch",
|
|
"build": "nest build",
|
|
"start": "node dist/main.js",
|
|
"start:dev": "nest start --watch",
|
|
"start:debug": "nest start --debug --watch",
|
|
"start:prod": "node dist/main.js",
|
|
"test": "vitest",
|
|
"test:watch": "vitest watch",
|
|
"test:e2e": "vitest run --config tests/integration/vitest.config.ts",
|
|
"test:perf": "vitest run --config tests/performance/vitest.config.ts",
|
|
"typecheck": "tsc --noEmit",
|
|
"lint": "eslint src/",
|
|
"lint:fix": "eslint src/ --fix"
|
|
},
|
|
"dependencies": {
|
|
"@anthropic-ai/sdk": "^0.72.1",
|
|
"@mosaic/config": "workspace:*",
|
|
"@mosaic/shared": "workspace:*",
|
|
"@nestjs/bullmq": "^11.0.4",
|
|
"@nestjs/common": "^11.1.12",
|
|
"@nestjs/config": "^4.0.2",
|
|
"@nestjs/core": "^11.1.12",
|
|
"@nestjs/platform-express": "^11.1.12",
|
|
"@nestjs/throttler": "^6.5.0",
|
|
"bullmq": "^5.67.2",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.1",
|
|
"dockerode": "^4.0.2",
|
|
"ioredis": "^5.9.2",
|
|
"reflect-metadata": "^0.2.2",
|
|
"rxjs": "^7.8.1",
|
|
"simple-git": "^3.27.0",
|
|
"zod": "^3.24.1"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/cli": "^11.0.6",
|
|
"@nestjs/schematics": "^11.0.1",
|
|
"@nestjs/testing": "^11.1.12",
|
|
"@types/dockerode": "^3.3.31",
|
|
"@types/express": "^5.0.1",
|
|
"@types/node": "^22.13.4",
|
|
"@vitest/coverage-v8": "^4.0.18",
|
|
"ts-node": "^10.9.2",
|
|
"tsconfig-paths": "^4.2.0",
|
|
"typescript": "^5.8.2",
|
|
"vitest": "^4.0.18"
|
|
}
|
|
}
|