@pipeline-builder/api-server 3.4.64 → 3.4.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -7,7 +7,7 @@ Express server infrastructure for [Pipeline Builder](https://mwashburn160.github
7
7
  ## Key Exports
8
8
 
9
9
  ### App Factory
10
- - `createApp({ checkDependencies?, warmupHooks?, ... })` — Creates a configured Express app with CORS, Helmet, rate limiting, `/health` (liveness), `/ready` (readiness), `/warmup`, `/metrics`, and OpenAPI/Swagger UI. Pass `warmupHooks: [() => mongoose.connection.db?.admin().ping()]` for services that need to pre-warm Mongo/Redis on cold start.
10
+ - `createApp({ checkDependencies?, warmupHooks?, redisUrl?, ... })` — Creates a configured Express app with CORS, Helmet (strict CSP), gzip/deflate compression, rate limiting, `/health` (liveness), `/ready` (readiness), `/warmup`, `/metrics`, and OpenAPI spec + Swagger UI at `/docs`. Fails fast if `JWT_SECRET` is unset. Rate limiting keys per org (falling back to a normalized IPv6 prefix) and uses a shared Redis store when `redisUrl` is provided, so limits hold across multiple instances. Pass `warmupHooks: [() => mongoose.connection.db?.admin().ping()]` for services that need to pre-warm Mongo/Redis on cold start.
11
11
  - `runServer`, `startServer` — Server lifecycle with graceful shutdown
12
12
 
13
13
  ### Middleware
@@ -25,7 +25,7 @@ Express server infrastructure for [Pipeline Builder](https://mwashburn160.github
25
25
  ### Health & Quota Helpers
26
26
  - `postgresHealthCheck` — Returns `{ postgres: 'connected' | 'disconnected' }` (the `'unknown'` fallback was removed — a real probe failure now correctly fails `/ready`)
27
27
  - `mongoHealthCheck(connection)` — Returns `{ mongodb: 'connected' | 'unknown' | 'disconnected' }` based on mongoose's `readyState` (1 = connected, 2 = connecting/unknown, anything else = disconnected)
28
- - `incrementQuotaFromCtx(service, { req, ctx, orgId }, type)` — Increments a quota counter using values pulled from the route context. `type` is `'plugins' | 'pipelines' | 'apiCalls' | 'aiCalls'`.
28
+ - `incrementQuotaFromCtx(service, { req, ctx, orgId }, type)` — Increments a quota counter using values pulled from the route context. `type` is `'plugins' | 'pipelines' | 'apiCalls' | 'aiCalls' | 'storageBytes'`.
29
29
 
30
30
  ### Server-Sent Events
31
31
  - `SSEManager` — Connection manager for streaming logs to clients
package/package.json CHANGED
@@ -42,8 +42,8 @@
42
42
  "rate-limit-redis": "4.2.0",
43
43
  "swagger-ui-express": "5.0.1",
44
44
  "uuid": "13.0.0",
45
- "@pipeline-builder/pipeline-core": "3.4.62",
46
- "@pipeline-builder/api-core": "3.4.57"
45
+ "@pipeline-builder/api-core": "3.4.58",
46
+ "@pipeline-builder/pipeline-core": "3.4.63"
47
47
  },
48
48
  "keywords": [
49
49
  "aws",
@@ -87,7 +87,7 @@
87
87
  "access": "public",
88
88
  "registry": "https://registry.npmjs.org/"
89
89
  },
90
- "version": "3.4.64",
90
+ "version": "3.4.65",
91
91
  "bugs": {
92
92
  "url": "https://github.com/mwashburn160/pipeline-builder/issues"
93
93
  },