@nifrajs/core 2.2.0 → 2.4.0

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 (136) hide show
  1. package/README.md +2 -2
  2. package/dist/assurance.d.ts +48 -4
  3. package/dist/assurance.d.ts.map +1 -1
  4. package/dist/assurance.js +87 -9
  5. package/dist/assurance.js.map +1 -1
  6. package/dist/binary.d.ts +54 -0
  7. package/dist/binary.d.ts.map +1 -0
  8. package/dist/binary.js +90 -0
  9. package/dist/binary.js.map +1 -0
  10. package/dist/budget.d.ts +1 -1
  11. package/dist/budget.js +1 -1
  12. package/dist/capabilities.d.ts +19 -2
  13. package/dist/capabilities.d.ts.map +1 -1
  14. package/dist/capabilities.js +60 -8
  15. package/dist/capabilities.js.map +1 -1
  16. package/dist/classification.d.ts +1 -1
  17. package/dist/classification.js +1 -1
  18. package/dist/diff.d.ts +6 -6
  19. package/dist/diff.js +6 -6
  20. package/dist/durable-adapters.d.ts.map +1 -1
  21. package/dist/durable-adapters.js +36 -70
  22. package/dist/durable-adapters.js.map +1 -1
  23. package/dist/durable-execution.d.ts +2 -2
  24. package/dist/durable-execution.js +2 -2
  25. package/dist/idempotency.d.ts +3 -3
  26. package/dist/idempotency.js +4 -4
  27. package/dist/index.d.ts +3 -3
  28. package/dist/index.js +3 -3
  29. package/dist/internal/brand.d.ts +1 -1
  30. package/dist/internal/brand.js +1 -1
  31. package/dist/internal/route-catalog.d.ts +58 -0
  32. package/dist/internal/route-catalog.d.ts.map +1 -0
  33. package/dist/internal/route-catalog.js +58 -0
  34. package/dist/internal/route-catalog.js.map +1 -0
  35. package/dist/internal/route-execution.d.ts +75 -0
  36. package/dist/internal/route-execution.d.ts.map +1 -0
  37. package/dist/internal/route-execution.js +2 -0
  38. package/dist/internal/route-execution.js.map +1 -0
  39. package/dist/internal/same-origin.d.ts +29 -0
  40. package/dist/internal/same-origin.d.ts.map +1 -0
  41. package/dist/internal/same-origin.js +47 -0
  42. package/dist/internal/same-origin.js.map +1 -0
  43. package/dist/internal/secret.d.ts +1 -1
  44. package/dist/internal/secret.js +1 -1
  45. package/dist/ledger.d.ts +9 -9
  46. package/dist/ledger.js +5 -5
  47. package/dist/reflection.d.ts +1 -1
  48. package/dist/router/pattern.d.ts +9 -0
  49. package/dist/router/pattern.d.ts.map +1 -1
  50. package/dist/router/pattern.js +13 -4
  51. package/dist/router/pattern.js.map +1 -1
  52. package/dist/router/router.js +3 -3
  53. package/dist/schema/standard.d.ts +2 -2
  54. package/dist/schema/standard.js +2 -2
  55. package/dist/seo.d.ts +3 -3
  56. package/dist/seo.js +4 -4
  57. package/dist/server/body.d.ts +2 -2
  58. package/dist/server/body.js +2 -2
  59. package/dist/server/context.d.ts +18 -18
  60. package/dist/server/contract.d.ts +7 -7
  61. package/dist/server/contract.js +3 -3
  62. package/dist/server/cookies.d.ts +4 -4
  63. package/dist/server/cookies.js +8 -8
  64. package/dist/server/edge.d.ts +83 -0
  65. package/dist/server/edge.d.ts.map +1 -0
  66. package/dist/server/edge.js +71 -0
  67. package/dist/server/edge.js.map +1 -0
  68. package/dist/server/install.d.ts +2 -0
  69. package/dist/server/install.d.ts.map +1 -1
  70. package/dist/server/install.js +2 -0
  71. package/dist/server/install.js.map +1 -1
  72. package/dist/server/logger.d.ts +7 -7
  73. package/dist/server/logger.js +4 -4
  74. package/dist/server/registry.d.ts +5 -5
  75. package/dist/server/response-contract-lane.d.ts +91 -0
  76. package/dist/server/response-contract-lane.d.ts.map +1 -0
  77. package/dist/server/response-contract-lane.js +81 -0
  78. package/dist/server/response-contract-lane.js.map +1 -0
  79. package/dist/server/server.d.ts +52 -91
  80. package/dist/server/server.d.ts.map +1 -1
  81. package/dist/server/server.js +130 -186
  82. package/dist/server/server.js.map +1 -1
  83. package/dist/server/sse.d.ts +4 -4
  84. package/dist/server/sse.js +7 -7
  85. package/dist/server/webhook.d.ts +1 -1
  86. package/dist/server/webhook.js +5 -5
  87. package/dist/server/websocket.d.ts +19 -19
  88. package/dist/server/websocket.js +9 -9
  89. package/dist/server/ws-bun.d.ts +4 -4
  90. package/dist/server/ws-bun.js +3 -3
  91. package/dist/server.d.ts +3 -1
  92. package/dist/server.d.ts.map +1 -1
  93. package/dist/server.js +3 -1
  94. package/dist/server.js.map +1 -1
  95. package/dist/transport-codec.d.ts +12 -0
  96. package/dist/transport-codec.d.ts.map +1 -1
  97. package/dist/transport-codec.js +19 -4
  98. package/dist/transport-codec.js.map +1 -1
  99. package/package.json +12 -2
  100. package/src/assurance.ts +154 -8
  101. package/src/binary.ts +128 -0
  102. package/src/budget.ts +1 -1
  103. package/src/capabilities.ts +71 -9
  104. package/src/classification.ts +1 -1
  105. package/src/diff.ts +8 -8
  106. package/src/durable-adapters.ts +40 -70
  107. package/src/durable-execution.ts +2 -2
  108. package/src/idempotency.ts +4 -4
  109. package/src/index.ts +3 -3
  110. package/src/internal/brand.ts +1 -1
  111. package/src/internal/route-catalog.ts +94 -0
  112. package/src/internal/route-execution.ts +106 -0
  113. package/src/internal/same-origin.ts +43 -0
  114. package/src/internal/secret.ts +1 -1
  115. package/src/ledger.ts +11 -11
  116. package/src/reflection.ts +1 -1
  117. package/src/router/pattern.ts +16 -4
  118. package/src/router/router.ts +5 -5
  119. package/src/schema/standard.ts +2 -2
  120. package/src/seo.ts +6 -6
  121. package/src/server/body.ts +2 -2
  122. package/src/server/context.ts +18 -18
  123. package/src/server/contract.ts +13 -13
  124. package/src/server/cookies.ts +8 -8
  125. package/src/server/edge.ts +150 -0
  126. package/src/server/install.ts +5 -0
  127. package/src/server/logger.ts +8 -8
  128. package/src/server/registry.ts +5 -5
  129. package/src/server/response-contract-lane.ts +164 -0
  130. package/src/server/server.ts +159 -366
  131. package/src/server/sse.ts +11 -11
  132. package/src/server/webhook.ts +5 -5
  133. package/src/server/websocket.ts +22 -22
  134. package/src/server/ws-bun.ts +4 -4
  135. package/src/server.ts +8 -5
  136. package/src/transport-codec.ts +24 -5
@@ -7,10 +7,11 @@ import type { Context, Platform, ResponseControls, RouteSchema } from "./context
7
7
  import type { NodeServeOutcome } from "./node-outcome.js";
8
8
  import type { NodeOutcomeRuntime } from "./node-outcome-hook.js";
9
9
  import { type QueryValue, queryObjectOf, searchOf } from "./query.js";
10
+ import type { ResponseContractRuntime } from "./response-contract-lane.js";
10
11
  import { CONTEXT_SEARCH, CONTEXT_SET, type HandlerResult } from "./runtime-core.js";
11
12
  export type { NodeServeOutcome };
12
13
  import type { IdempotencyRuntime } from "./idempotency-lane.js";
13
- import { INSTALL_EFFECT_LEDGER, INSTALL_IDEMPOTENCY, INSTALL_MCP, INSTALL_NODE_DIRECT, INSTALL_SSE, INSTALL_WS } from "./install.js";
14
+ import { INSTALL_EFFECT_LEDGER, INSTALL_IDEMPOTENCY, INSTALL_MCP, INSTALL_NODE_DIRECT, INSTALL_RESPONSE_CONTRACT, INSTALL_SSE, INSTALL_WS } from "./install.js";
14
15
  import type { EffectLedgerRuntime } from "./ledger-lane.js";
15
16
  import type { McpRuntime } from "./mcp-hook.js";
16
17
  import type { IdentityPlugin } from "./plugin.js";
@@ -23,10 +24,10 @@ import type { WsRuntime } from "./ws-hook.js";
23
24
  export type MaybePromise<T> = T | Promise<T>;
24
25
  /**
25
26
  * Internal request view. A real Web `Request` already satisfies this shape, so Web/edge runtimes pass
26
- * their `Request` **directly** (zero wrapper allocation on the hot path — `request` is simply absent and
27
+ * their `Request` **directly** (zero wrapper allocation on the hot path - `request` is simply absent and
27
28
  * {@link requestOf} returns the source itself). Node's adapter passes a *lazy* source whose `request`
28
29
  * getter builds an undici `Request` only when user code reads `c.req`, an onRequest/onResponse hook
29
- * needs it, or a body helper consumes it — so the common Node request never pays for a `Request` build.
30
+ * needs it, or a body helper consumes it - so the common Node request never pays for a `Request` build.
30
31
  */
31
32
  export interface RequestSource {
32
33
  readonly method: string;
@@ -73,7 +74,7 @@ export interface RawContext {
73
74
  }
74
75
  export type OnRequestResult = Response | Request | undefined;
75
76
  /** The handler's permitted return type. When the route declares a `response` schema, the return is
76
- * constrained to the contract's type (or a raw `Response`) — so the implementation can't drift from the
77
+ * constrained to the contract's type (or a raw `Response`) - so the implementation can't drift from the
77
78
  * declared contract. Without a `response` schema it's unconstrained (`HandlerResult`), exactly as before. */
78
79
  type ResponseOf<S extends RouteSchema> = S extends {
79
80
  response: infer R extends StandardSchemaV1;
@@ -93,7 +94,7 @@ export { type QueryValue, queryObjectOf, searchOf };
93
94
  * anything when no handler touched `c.set.*`. Server-internal. */
94
95
  export type CtxSet = ResponseControls & {
95
96
  _headers?: Record<string, string>;
96
- /** Accumulated `Set-Cookie` values — a list, since a `Record` would collapse multiple cookies. */
97
+ /** Accumulated `Set-Cookie` values - a list, since a `Record` would collapse multiple cookies. */
97
98
  _cookies?: string[];
98
99
  };
99
100
  /**
@@ -110,12 +111,15 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
110
111
  private readonly wsRouter;
111
112
  private wsRouteCount;
112
113
  /** In-process pub/sub backing `ws.subscribe(topic)` + `app.publish(topic, data)` (single-instance).
113
- * Created by the first `app.ws()` via the `@nifrajs/core/ws` runtime — `undefined` until then, so a
114
+ * Created by the first `app.ws()` via the `@nifrajs/core/ws` runtime - `undefined` until then, so a
114
115
  * no-WebSocket app never constructs (or bundles) it. */
115
116
  private topics;
116
117
  private readonly maxBodyBytes;
117
118
  private readonly wsMaxPayloadBytes;
118
119
  private readonly requestTimeoutMs;
120
+ /** Installed by the `responseContract()` plugin; `undefined` = not installed, which is the default
121
+ * and the state in which a declared `response` schema stays a compile-time contract only. */
122
+ private responseContractRuntime;
119
123
  /** Opt-in caller-IP trust declaration; `undefined` = socket peer only, no forwarded header believed. */
120
124
  private readonly clientIpTrust;
121
125
  private readonly acceptInboundDeadlines;
@@ -156,7 +160,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
156
160
  private readonly onResponseHooks;
157
161
  private readonly onResponseFinalizedHooks;
158
162
  private readonly responseRequests;
159
- /** Names of plugins/middleware already applied via `use` — for idempotent dedupe. */
163
+ /** Names of plugins/middleware already applied via `use` - for idempotent dedupe. */
160
164
  private readonly appliedPlugins;
161
165
  /** Order-scoped evidence captured by routes registered after an assured plugin. */
162
166
  private readonly activeAssurance;
@@ -196,12 +200,12 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
196
200
  afterHandle(fn: (result: unknown, context: Context & Ctx) => MaybePromise<unknown>): this;
197
201
  /** Handle a thrown error; a non-`undefined` return becomes the response (else the default 500). Order-scoped. */
198
202
  onError(fn: (error: unknown, context: Context & Ctx) => MaybePromise<unknown>): this;
199
- /** Transform every outgoing response — success, error, 404, 405, short-circuit. Global. */
203
+ /** Transform every outgoing response - success, error, 404, 405, short-circuit. Global. */
200
204
  onResponse(fn: (response: Response, req: Request) => MaybePromise<Response>): this;
201
205
  /** Observe the terminal response after all transformations. Observers are ordered and fail-open. */
202
206
  onResponseFinalized(fn: (outcome: ResponseFinalization, req: Request) => MaybePromise<void>): this;
203
207
  /**
204
- * Apply a type-**identity** plugin ({@link IdentityPlugin}, from {@link defineIdentityPlugin}) — it
208
+ * Apply a type-**identity** plugin ({@link IdentityPlugin}, from {@link defineIdentityPlugin}) - it
205
209
  * registers routes/hooks but doesn't change the types, so this returns `this` with the route registry
206
210
  * and context fully intact. This overload exists specifically so a *named* identity plugin (e.g.
207
211
  * `@nifrajs/better-auth`) threads the registry: its `& { pluginName }` intersection would otherwise
@@ -209,14 +213,14 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
209
213
  */
210
214
  use(plugin: IdentityPlugin): this;
211
215
  /**
212
- * Apply a **plugin function** — `(app) => app`, typically built with {@link definePlugin}. It's
216
+ * Apply a **plugin function** - `(app) => app`, typically built with {@link definePlugin}. It's
213
217
  * called with `this` and its result is returned, so an inline plugin's `derive`/`decorate` thread
214
218
  * the added context to handlers defined after `use` (the overload is generic over the concrete
215
219
  * `this`). A named plugin already applied is skipped (idempotent dedupe).
216
220
  */
217
221
  use<Out extends AnyServer>(plugin: (app: this) => Out): Out;
218
222
  /**
219
- * Apply a {@link Middleware} bundle — wire each hook it provides to its lifecycle point. Returns
223
+ * Apply a {@link Middleware} bundle - wire each hook it provides to its lifecycle point. Returns
220
224
  * `this` (no context-type merging); call it before the routes its `beforeHandle`/`afterHandle`
221
225
  * should cover (those are order-scoped; `onRequest`/`onResponse` are global). A named bundle already
222
226
  * applied is skipped (idempotent).
@@ -225,11 +229,11 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
225
229
  get<Path extends string, S extends RouteSchema, H extends Handler<Path, S, Ctx>>(path: Path, schema: S, handler: H): Server<AddRoute<R, "GET", Path, RouteInfoFor<Path, S, OutputOf<H>>>, Ctx>;
226
230
  get<Path extends string, H extends Handler<Path, RouteSchema, Ctx>>(path: Path, handler: H): Server<AddRoute<R, "GET", Path, RouteInfoFor<Path, Record<never, never>, OutputOf<H>>>, Ctx>;
227
231
  /**
228
- * Register a **typed SSE route** — a GET endpoint streaming `text/event-stream` whose event
232
+ * Register a **typed SSE route** - a GET endpoint streaming `text/event-stream` whose event
229
233
  * payloads are contracted by `schema.sse`. The handler receives the validated context plus a
230
234
  * {@link TypedSSEStream}: `stream.send(event)` is compile-time-checked against the schema and
231
235
  * JSON-serialized into the SSE `data:` field. The typed client sees the marker and grows a
232
- * `.subscribe(onEvent)` for the route with the same payload type — end-to-end typed streaming.
236
+ * `.subscribe(onEvent)` for the route with the same payload type - end-to-end typed streaming.
233
237
  *
234
238
  * import { streaming } from "@nifrajs/core/sse" // .use(streaming()) enables .sse()
235
239
  * const app = server().use(streaming()).sse("/feed", { sse: t.object({ id: t.integer(), title: t.string() }) },
@@ -281,7 +285,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
281
285
  body: S["input"];
282
286
  }, OutputOf<H>>>, Ctx>;
283
287
  /**
284
- * Declare an MCP **resource** — read-only data an agent can fetch through `nifra mcp` (app config, a
288
+ * Declare an MCP **resource** - read-only data an agent can fetch through `nifra mcp` (app config, a
285
289
  * generated document, …). `read` runs in the app process, so capture whatever app state it needs in the
286
290
  * closure. `uri` is the MCP resource identifier (e.g. `"myapp://config"`). The sibling of {@link tool}
287
291
  * for the resource half of MCP.
@@ -292,22 +296,22 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
292
296
  readonly mimeType?: string;
293
297
  }, read: McpResourceDescriptor["read"]): Server<R, Ctx>;
294
298
  /**
295
- * Declare an MCP **prompt** — a reusable prompt template an agent can fetch through `nifra mcp`.
299
+ * Declare an MCP **prompt** - a reusable prompt template an agent can fetch through `nifra mcp`.
296
300
  * `handler` receives the caller's arguments and returns the rendered messages.
297
301
  */
298
302
  prompt(name: string, config: {
299
303
  readonly description: string;
300
304
  readonly arguments?: readonly PromptArgument[];
301
305
  }, handler: McpPromptDescriptor["handler"]): Server<R, Ctx>;
302
- /** The MCP resources declared via {@link resource} — enumerated by `nifra mcp`. */
306
+ /** The MCP resources declared via {@link resource} - enumerated by `nifra mcp`. */
303
307
  mcpResources(): readonly McpResourceDescriptor[];
304
- /** The MCP prompts declared via {@link prompt} — enumerated by `nifra mcp`. */
308
+ /** The MCP prompts declared via {@link prompt} - enumerated by `nifra mcp`. */
305
309
  mcpPrompts(): readonly McpPromptDescriptor[];
306
310
  /**
307
311
  * Register a **WebSocket** route. The connection upgrades on a `GET` to `path` carrying
308
312
  * `Upgrade: websocket`; the optional `handler.upgrade(c)` runs in the request context first and may
309
313
  * reject (return a `Response`) or seed per-connection `ws.data`. WebSockets are served by the
310
- * adapter (`listen()`, `@nifrajs/node`, `@nifrajs/deno`, `toFetchHandler`) — not by bare `app.fetch`, which
314
+ * adapter (`listen()`, `@nifrajs/node`, `@nifrajs/deno`, `toFetchHandler`) - not by bare `app.fetch`, which
311
315
  * has no socket (a WS path through `app.fetch` is a normal HTTP response).
312
316
  *
313
317
  * The route also enters the type-level registry (under the pseudo-method `"WS"`), so the typed
@@ -321,14 +325,14 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
321
325
  ws<Data = unknown, Schema extends StandardSchemaV1 | undefined = undefined, Send extends StandardSchemaV1 | undefined = undefined, Path extends string = string>(path: Path, handler: WebSocketHandler<Data, EnvOf<Ctx>, Schema, Send>): string extends Path ? Server<R, Ctx> : Server<AddRoute<R, "WS", Path, WsRouteInfoFor<Path, Schema, Send>>, Ctx>;
322
326
  /**
323
327
  * Broadcast `data` to every WebSocket connection subscribed to `topic` (via `ws.subscribe(topic)`).
324
- * In-process and **single-instance** (see {@link TopicRegistry}) — a multi-instance deploy must bridge
328
+ * In-process and **single-instance** (see {@link TopicRegistry}) - a multi-instance deploy must bridge
325
329
  * an external fan-out (Redis, a Durable Object) to this. A no-op when nobody is subscribed.
326
330
  */
327
331
  publish(topic: string, data: string | ArrayBufferView | ArrayBuffer): void;
328
332
  private route;
329
333
  /**
330
334
  * Low-level route registration shared by the inline builder and `implement()`.
331
- * Captures the server's current `derive`/`decorate` chain into the route — this
335
+ * Captures the server's current `derive`/`decorate` chain into the route - this
332
336
  * is the "compiled", order-scoped per-route chain.
333
337
  */
334
338
  register(method: Method, path: string, schema: RouteSchema | undefined, handler: (context: never) => unknown): void;
@@ -347,6 +351,8 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
347
351
  /** The idempotency lane's bridge back into the normal matched lanes, resolved to a concrete Response
348
352
  * (the lane buffers the body, then replays it through the route's real validation + handler). */
349
353
  private idempotencyRunLanes;
354
+ /** @internal Symbol-keyed install seam for the `responseContract()` plugin. Off the public typed surface. */
355
+ [INSTALL_RESPONSE_CONTRACT](runtime: ResponseContractRuntime): void;
350
356
  /** @internal Symbol-keyed install seam for the `idempotency()` plugin. Off the public typed surface. */
351
357
  [INSTALL_IDEMPOTENCY](runtime: IdempotencyRuntime): void;
352
358
  /** @internal Symbol-keyed install seam for the `mcp()` plugin. Off the public typed surface. */
@@ -358,16 +364,16 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
358
364
  /** @internal Symbol-keyed install seam for the `websocket()` plugin. Off the public typed surface. */
359
365
  [INSTALL_WS](runtime: WsRuntime): void;
360
366
  /**
361
- * Merge another server's routes into this one — the composition escape hatch for large apps.
367
+ * Merge another server's routes into this one - the composition escape hatch for large apps.
362
368
  *
363
369
  * WHY: the fluent chain accumulates one type-alias level per route, and TypeScript resolves
364
- * that stack in one recursion — a single chain hits TS2589 at ~95 routes. Groups keep every
370
+ * that stack in one recursion - a single chain hits TS2589 at ~95 routes. Groups keep every
365
371
  * chain short: build each domain (`listings`, `agents`, …) as its own `server()` (its registry
366
- * resolves independently), then `app.merge(listings).merge(agents)` — each merge adds ONE level
372
+ * resolves independently), then `app.merge(listings).merge(agents)` - each merge adds ONE level
367
373
  * regardless of group size. 300+ routes stay fully typed (see many-routes.test-d.ts). The
368
374
  * other escape hatch is contract-first `implement()`, whose registry is a single object type.
369
375
  *
370
- * Semantics: merged routes keep the chains captured where they were DEFINED — the group's
376
+ * Semantics: merged routes keep the chains captured where they were DEFINED - the group's
371
377
  * `derive`/`decorate`/`beforeHandle`/`afterHandle`/`onError`/`around` apply to its routes
372
378
  * exactly as they did standalone, so a group wires its own plugins. The group's request-level
373
379
  * hooks (`onRequest`/`onResponse`/`onResponseFinalized`) are appended to this server's. This
@@ -387,7 +393,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
387
393
  */
388
394
  routes(): ReadonlyArray<RouteDescriptor>;
389
395
  /**
390
- * Resolve a `Request` to a `Response` — the whole lifecycle, testable without a port. The
396
+ * Resolve a `Request` to a `Response` - the whole lifecycle, testable without a port. The
391
397
  * optional `platform` carries edge inputs (`env`, `waitUntil`); edge adapters pass it, and
392
398
  * Bun/Node/Deno omit it (then `c.env` is `undefined` and `c.waitUntil` runs fire-and-forget).
393
399
  */
@@ -401,24 +407,24 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
401
407
  /**
402
408
  * Run `produce` under the capacity gate: admit → run → release exactly once when the response is
403
409
  * produced (or the run throws). Only reached when {@link capacityGate} is set, so the off path pays
404
- * nothing. The slot is held for the duration of handler execution, not the streaming of the body —
410
+ * nothing. The slot is held for the duration of handler execution, not the streaming of the body -
405
411
  * capacity here bounds concurrent *work*, matching how in-flight is counted.
406
412
  */
407
413
  private admitGated;
408
414
  private runAdmitted;
409
415
  /**
410
- * Like {@link fetch}, but renders a plain-data result **without** building a Web `Response` — the
416
+ * Like {@link fetch}, but renders a plain-data result **without** building a Web `Response` - the
411
417
  * `@nifrajs/node` adapter serializes the returned primitives straight to the socket, skipping the undici
412
418
  * `Response` build + body drain (the bulk of the Node bridge cost, measured ≈4µs/req). A handler that
413
419
  * returns a `Response`, an error/short-circuit, or any registered `onResponse` hook falls back to the
414
- * full Web path (`{ kind: "response" }`), so behavior is identical — only the common JSON-data case is
420
+ * full Web path (`{ kind: "response" }`), so behavior is identical - only the common JSON-data case is
415
421
  * faster. Same lifecycle as {@link fetch} (body cap, validation, hooks all run); only the final
416
422
  * render differs.
417
423
  */
418
424
  resolveNode(req: Request, platform?: Platform<EnvOf<Ctx>>): MaybePromise<NodeServeOutcome>;
419
425
  resolveNodeSource(source: RequestSource, platform?: Platform<EnvOf<Ctx>>, suppliedRuntime?: NodeOutcomeRuntime): MaybePromise<NodeServeOutcome>;
420
426
  /**
421
- * Resolve a WebSocket upgrade — the seam every serving adapter uses. Returns `pass` (not a WS
427
+ * Resolve a WebSocket upgrade - the seam every serving adapter uses. Returns `pass` (not a WS
422
428
  * upgrade for a registered route → handle as normal HTTP), `reject` (a WS route matched but
423
429
  * `upgrade()` rejected, or the path was malformed → return `response`), or `upgrade` (perform the
424
430
  * runtime upgrade, then dispatch the native socket's events to `handler`, seeding `ws.data` with
@@ -435,7 +441,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
435
441
  * result + `set` into the output `T` (`toResponse` → a Web `Response`; `toNodeOutcome` → node-direct
436
442
  * primitives), `wrapResponse` lifts an early/error `Response` into that same `T`, and `onTimeout`
437
443
  * produces the 503. The Web `fetch` and `resolveNode` are thin callers over this one routing +
438
- * context + lifecycle implementation — no duplication across the trust boundary.
444
+ * context + lifecycle implementation - no duplication across the trust boundary.
439
445
  */
440
446
  /** Apply the `clientIp` trust declaration to the adapter's raw socket peer, returning a platform
441
447
  * whose `clientIp` is the derived caller. Only called when a trust declaration is configured. */
@@ -443,14 +449,14 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
443
449
  private dispatch;
444
450
  /**
445
451
  * onRequest short-circuit path. Synchronous as long as every hook returns synchronously (the
446
- * common case — e.g. CORS returning `undefined` for a non-preflight request): an `async` version
452
+ * common case - e.g. CORS returning `undefined` for a non-preflight request): an `async` version
447
453
  * here put EVERY request of any app with one onRequest hook onto the promise machinery, profiled
448
454
  * at ~13% of a realistic request. The first hook that returns a Promise hands the REMAINING
449
455
  * hooks to the async continuation; behavior is identical.
450
456
  */
451
457
  private runWithOnRequest;
452
458
  /** Async tail of {@link runWithOnRequest}: applies the first awaited hook's outcome, then runs
453
- * the remaining hooks (awaiting freely — we're already async here). */
459
+ * the remaining hooks (awaiting freely - we're already async here). */
454
460
  private continueOnRequest;
455
461
  private takeResponseRequest;
456
462
  /**
@@ -471,19 +477,19 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
471
477
  private contextlessBareError;
472
478
  /**
473
479
  * The synchronous fast path selected by a route's execution plan: apply static decorations, call the
474
- * handler, render the result — **no `await`** unless the handler itself returns a promise. It mirrors
480
+ * handler, render the result - **no `await`** unless the handler itself returns a promise. It mirrors
475
481
  * the bare slice of {@link runLifecycle} (which a bare route would otherwise no-op through) and shares
476
482
  * {@link logRequestError}; a bare route has no `onError` hooks, so error handling is fully synchronous
477
483
  * (a thrown `Response` is control flow; anything else is a logged flat 500). This is where nifra skips
478
- * the per-request async-frame tax — the same win codegen routers get, but without `eval`.
484
+ * the per-request async-frame tax - the same win codegen routers get, but without `eval`.
479
485
  */
480
486
  private runBare;
481
- /** Bare-route error rendering — identical to {@link runLifecycle}'s catch minus the (absent) onError
487
+ /** Bare-route error rendering - identical to {@link runLifecycle}'s catch minus the (absent) onError
482
488
  * loop: a thrown `Response` is returned as deliberate control flow; anything else is logged + 500. */
483
489
  /**
484
490
  * Build a route's fused Web renderer. Composition happens once at
485
491
  * registration; the returned closure is what every request to the route runs. Behavior is
486
- * byte-identical to the generic `runBare`/`runContextlessBare` + `toResponse` pair — same
492
+ * byte-identical to the generic `runBare`/`runContextlessBare` + `toResponse` pair - same
487
493
  * decoration order, same error routing (thrown `Response` = control flow; anything else logs and
488
494
  * 500s), same respond semantics (the lifecycle parity suite pins it).
489
495
  */
@@ -492,7 +498,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
492
498
  private runWithAround;
493
499
  private runAround;
494
500
  private runBodyOnly;
495
- /** Validate + run the handler for the bodyOnly path — shared by the inline fast path and the
501
+ /** Validate + run the handler for the bodyOnly path - shared by the inline fast path and the
496
502
  * streaming fallback. A method (not per-request closures) so the hot path allocates nothing
497
503
  * beyond the one `.then` continuation. */
498
504
  private finishBodyOnly;
@@ -505,7 +511,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
505
511
  private applyQueryValidation;
506
512
  /**
507
513
  * Thread the response through each global `onResponse` hook. Stays SYNCHRONOUS until a hook
508
- * actually returns a Promise — an `async` version forced a promise + microtask on EVERY response
514
+ * actually returns a Promise - an `async` version forced a promise + microtask on EVERY response
509
515
  * of any app with an onResponse hook (cors/securityHeaders/etag/timing all use onResponse), the
510
516
  * same ~13%/req tax the onRequest walk was de-async'd to avoid. The first async hook hands the
511
517
  * rest to {@link continueOnResponse}.
@@ -521,7 +527,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
521
527
  /**
522
528
  * Bound the response time. On timeout we abort `ctx.signal` (so cancellation-aware
523
529
  * handlers can bail) and return 503; the in-flight work keeps running but its
524
- * result is discarded — JS can't forcibly cancel a promise.
530
+ * result is discarded - JS can't forcibly cancel a promise.
525
531
  */
526
532
  private withTimeout;
527
533
  /**
@@ -531,7 +537,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
531
537
  */
532
538
  private runLifecycle;
533
539
  private handleLifecycleError;
534
- /** Log an unhandled request error to the (redacting) logger — shared by {@link runLifecycle} and the
540
+ /** Log an unhandled request error to the (redacting) logger - shared by {@link runLifecycle} and the
535
541
  * bare fast path ({@link bareError}) so both record the same fields. Never throws; never leaks. */
536
542
  private logRequestError;
537
543
  private readAndValidateBody;
@@ -541,12 +547,12 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
541
547
  /**
542
548
  * Read the body as text, capped at `maxBodyBytes`. Rejects (`null`) on a
543
549
  * `Content-Length` over the cap *before* buffering, and aborts mid-stream once the
544
- * running byte count exceeds it — so a lying or absent length can't force us to
550
+ * running byte count exceeds it - so a lying or absent length can't force us to
545
551
  * buffer an oversized payload.
546
552
  *
547
553
  * Fast path: when a non-chunked request carries a `Content-Length` within the cap,
548
- * a native `req.json()` is already bounded — under HTTP/1.1 + HTTP/2 framing the
549
- * runtime delivers at most `Content-Length` bytes — so we skip the manual stream
554
+ * a native `req.json()` is already bounded - under HTTP/1.1 + HTTP/2 framing the
555
+ * runtime delivers at most `Content-Length` bytes - so we skip the manual stream
550
556
  * loop and a separate text decode. It trusts the wire
551
557
  * *framing*, not the header value: nifra only ever receives framed Requests from the
552
558
  * runtime's HTTP server, never a hand-built one with a mismatched length. Chunked or
@@ -565,7 +571,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
565
571
  * Start a `Bun.serve` instance bound to `port` (use `0` for an ephemeral port).
566
572
  *
567
573
  * `reusePort` sets `SO_REUSEPORT` so **multiple processes can bind the same port** and the kernel
568
- * load-balances connections across them — the standard way to use every core (Bun is
574
+ * load-balances connections across them - the standard way to use every core (Bun is
569
575
  * single-threaded per process). Spawn one process per core, each calling
570
576
  * `app.listen(PORT, { reusePort: true })`; see `examples/cluster.ts`. Every process must opt in,
571
577
  * and all of them must be the same app. Linux balances ~evenly; macOS accepts the flag but may
@@ -582,7 +588,7 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
582
588
  }): RunningServer;
583
589
  /**
584
590
  * Gracefully stop: wait for in-flight requests to finish (up to `drainMs`), then
585
- * issue a single terminal stop — graceful if everything drained, forced if
591
+ * issue a single terminal stop - graceful if everything drained, forced if
586
592
  * stragglers remain. Safe to call when not listening.
587
593
  *
588
594
  * The Bun semantics: poll `pendingRequests` (awaiting
@@ -597,56 +603,11 @@ export declare class Server<R extends Registry = EmptyRegistry, Ctx = EmptyConte
597
603
  private installSignalHandlers;
598
604
  }
599
605
  /**
600
- * Create a new {@link Server}. Pass an `Env` to type the platform bindings — `server<Env>()` makes
606
+ * Create a new {@link Server}. Pass an `Env` to type the platform bindings - `server<Env>()` makes
601
607
  * `c.env: Env` in every handler + middleware, and types the `env` argument of `app.fetch` /
602
608
  * `toFetchHandler`. Omit it and `c.env` is `unknown` (validate/cast before use).
603
609
  */
604
610
  export declare function server<Env = unknown>(options?: ServerOptions): Server<EmptyRegistry, {
605
611
  readonly env: Env;
606
612
  }>;
607
- /** A Cloudflare Workers-style execution context (the `fetch` 3rd arg). Structural — only
608
- * `waitUntil` is used; declared here so `@nifrajs/core` needs no Workers type dependency. */
609
- export interface ExecutionContext {
610
- waitUntil(promise: Promise<unknown>): void;
611
- }
612
- /** A Cloudflare Workers-style scheduled (cron) controller. Structural — no Workers type dependency. */
613
- export interface ScheduledController {
614
- /** Epoch ms the run was scheduled for. */
615
- readonly scheduledTime: number;
616
- /** The matching cron expression from `wrangler.toml` `[triggers]`. */
617
- readonly cron: string;
618
- /** Tell the platform not to retry this run on failure. */
619
- noRetry(): void;
620
- }
621
- /** A nifra cron handler: the platform controller + the same typed `env`/`waitUntil` nifra threads into
622
- * request handlers. Schedule background work with `waitUntil` so it outlives the trigger. */
623
- export type ScheduledHandler<Env = unknown> = (controller: ScheduledController, context: {
624
- readonly env: Env;
625
- waitUntil(promise: Promise<unknown>): void;
626
- }) => MaybePromise<void>;
627
- /** Structural view of a Cloudflare Durable Object namespace binding — keeps `@cloudflare/workers-types`
628
- * out of `@nifrajs/core`. The real `DurableObjectNamespace` satisfies it. */
629
- export interface DurableObjectNamespaceLike {
630
- idFromName(name: string): unknown;
631
- get(id: unknown): {
632
- fetch(request: Request): Promise<Response>;
633
- };
634
- }
635
- export declare function toFetchHandler<Env = unknown>(app: {
636
- fetch(request: Request, platform?: Platform<Env>): MaybePromise<Response>;
637
- resolveWebSocketUpgrade?(request: Request, platform?: Platform<Env>): MaybePromise<WebSocketUpgradeOutcome>;
638
- }, options?: {
639
- scheduled?: ScheduledHandler<Env>;
640
- /**
641
- * Route WebSocket upgrades to a Durable Object that holds the connections and runs the app's
642
- * pub/sub — enabling cross-connection broadcast (`app.publish`) on Cloudflare Workers, where a
643
- * stateless isolate can't. Pass the DO namespace binding from `env`; pair with `@nifrajs/workers`'
644
- * `createWebSocketHub(app)` (the DO class) + a `wrangler.toml` binding. Without this, WS upgrades use
645
- * a per-connection `WebSocketPair` (no broadcast).
646
- */
647
- webSocketHub?: (env: Env) => DurableObjectNamespaceLike;
648
- }): {
649
- fetch(request: Request, env: Env, ctx: ExecutionContext): MaybePromise<Response>;
650
- scheduled?(controller: ScheduledController, env: Env, ctx: ExecutionContext): MaybePromise<void>;
651
- };
652
613
  //# sourceMappingURL=server.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,aAAa,EACnB,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAA;AAErE,OAAO,EACL,KAAK,uBAAuB,EAE5B,KAAK,qBAAqB,EAM3B,MAAM,mCAAmC,CAAA;AAc1C,OAAO,EAAgB,KAAK,MAAM,EAA4B,MAA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