Skip to main content

apps/gateway/src/server.ts

Metadata

Indexed Symbols

  • buildServer (line 27, function) - Implements build server for module behavior.
  • start (line 98, function) - Implements start for module behavior.
  • shutdown (line 112, const arrow function) - Implements shutdown for module behavior.

Markdown Headings (if applicable)

No markdown headings detected.

Source Preview

import Fastify from "fastify";
import { env } from "./config/env.js";
import { correlationIdPlugin } from "./middleware/correlation-id.js";
import { authPlugin } from "./middleware/auth.js";
import { idempotencyPlugin } from "./middleware/idempotency.js";
import { tenantGuardPlugin } from "./middleware/tenant-guard.js";
import { securityPlugin } from "./middleware/security.js";
import { rateLimitPlugin } from "./middleware/rate-limit.js";
import { eventRoutes } from "./routes/events.js";
import { edgeAgentRoutes } from "./routes/edge-agent.js";
import { executionRoutes } from "./routes/execute.js";
import { healthRoutes } from "./routes/health.js";
import { integrationRoutes } from "./routes/integrations.js";
import { importExportRoutes } from "./routes/import-export.js";
import { openApiRoutes } from "./routes/openapi.js";
import { resourceRoutes } from "./routes/resources.js";
import { adapterRoutes } from "./routes/adapters.js";
import { settingsRoutes } from "./routes/settings.js";
import { dashboardRoutes } from "./routes/dashboard.js";
import { portalActionRoutes } from "./routes/portal-actions.js";
import { opsActionRoutes } from "./routes/ops-actions.js";
import { agentRuntimeRoutes } from "./routes/agent-runtime.js";
import { getPool } from "./services/postgres.js";
import { startTelemetry, stopTelemetry } from "./services/telemetry.js";
import { heartbeatWorker } from "./services/worker-runtime-repository.js";