@nifrajs/cli 5.9.0 → 5.11.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/CHANGELOG.md +85 -0
  2. package/dist/check-diagnostics.d.ts +1 -0
  3. package/dist/check-diagnostics.d.ts.map +1 -1
  4. package/dist/check-diagnostics.js +4 -0
  5. package/dist/check-diagnostics.js.map +1 -1
  6. package/dist/check-scan.d.ts +1 -0
  7. package/dist/check-scan.d.ts.map +1 -1
  8. package/dist/check-scan.js +8 -1
  9. package/dist/check-scan.js.map +1 -1
  10. package/dist/check.d.ts.map +1 -1
  11. package/dist/check.js +7 -2
  12. package/dist/check.js.map +1 -1
  13. package/dist/cli.d.ts.map +1 -1
  14. package/dist/cli.js +21 -20
  15. package/dist/cli.js.map +1 -1
  16. package/dist/command-catalog.d.ts +1 -5
  17. package/dist/command-catalog.d.ts.map +1 -1
  18. package/dist/command-catalog.js +2 -21
  19. package/dist/command-catalog.js.map +1 -1
  20. package/dist/doctor.js +2 -2
  21. package/dist/doctor.js.map +1 -1
  22. package/dist/internal/source-facts.d.ts +30 -0
  23. package/dist/internal/source-facts.d.ts.map +1 -1
  24. package/dist/internal/source-facts.js +127 -0
  25. package/dist/internal/source-facts.js.map +1 -1
  26. package/dist/load.d.ts +4 -2
  27. package/dist/load.d.ts.map +1 -1
  28. package/dist/load.js +6 -1
  29. package/dist/load.js.map +1 -1
  30. package/dist/mcp-delegate.d.ts +17 -3
  31. package/dist/mcp-delegate.d.ts.map +1 -1
  32. package/dist/mcp-delegate.js +24 -9
  33. package/dist/mcp-delegate.js.map +1 -1
  34. package/dist/mcp-http.js +1 -1
  35. package/dist/mcp-http.js.map +1 -1
  36. package/dist/mcp-relay.d.ts +37 -0
  37. package/dist/mcp-relay.d.ts.map +1 -0
  38. package/dist/mcp-relay.js +129 -0
  39. package/dist/mcp-relay.js.map +1 -0
  40. package/dist/mcp-tool-meta.d.ts.map +1 -1
  41. package/dist/mcp-tool-meta.js +0 -1
  42. package/dist/mcp-tool-meta.js.map +1 -1
  43. package/dist/mcp.d.ts.map +1 -1
  44. package/dist/mcp.js +55 -1
  45. package/dist/mcp.js.map +1 -1
  46. package/dist/migrate-layout.d.ts.map +1 -1
  47. package/dist/migrate-layout.js +45 -33
  48. package/dist/migrate-layout.js.map +1 -1
  49. package/dist/recipes/5.10.0.d.ts +13 -0
  50. package/dist/recipes/5.10.0.d.ts.map +1 -0
  51. package/dist/recipes/5.10.0.js +45 -0
  52. package/dist/recipes/5.10.0.js.map +1 -0
  53. package/dist/recipes/5.11.0.d.ts +10 -0
  54. package/dist/recipes/5.11.0.d.ts.map +1 -0
  55. package/dist/recipes/5.11.0.js +50 -0
  56. package/dist/recipes/5.11.0.js.map +1 -0
  57. package/dist/recipes/index.d.ts.map +1 -1
  58. package/dist/recipes/index.js +4 -0
  59. package/dist/recipes/index.js.map +1 -1
  60. package/dist/review.d.ts.map +1 -1
  61. package/dist/review.js +3 -0
  62. package/dist/review.js.map +1 -1
  63. package/dist/rules/codes.d.ts +3 -0
  64. package/dist/rules/codes.d.ts.map +1 -1
  65. package/dist/rules/codes.js +3 -0
  66. package/dist/rules/codes.js.map +1 -1
  67. package/dist/rules/explanations.d.ts.map +1 -1
  68. package/dist/rules/explanations.js +15 -0
  69. package/dist/rules/explanations.js.map +1 -1
  70. package/dist/rules/internal-links.d.ts +5 -0
  71. package/dist/rules/internal-links.d.ts.map +1 -0
  72. package/dist/rules/internal-links.js +418 -0
  73. package/dist/rules/internal-links.js.map +1 -0
  74. package/dist/rules/legacy.d.ts.map +1 -1
  75. package/dist/rules/legacy.js +20 -0
  76. package/dist/rules/legacy.js.map +1 -1
  77. package/dist/rules/server-fn-namespace.d.ts +8 -0
  78. package/dist/rules/server-fn-namespace.d.ts.map +1 -0
  79. package/dist/rules/server-fn-namespace.js +43 -0
  80. package/dist/rules/server-fn-namespace.js.map +1 -0
  81. package/dist/rules/source-scan.d.ts +29 -0
  82. package/dist/rules/source-scan.d.ts.map +1 -0
  83. package/dist/rules/source-scan.js +38 -0
  84. package/dist/rules/source-scan.js.map +1 -0
  85. package/dist/rules/text-slot-boolean.d.ts.map +1 -1
  86. package/dist/rules/text-slot-boolean.js +21 -43
  87. package/dist/rules/text-slot-boolean.js.map +1 -1
  88. package/dist/source-rewrites.d.ts +0 -5
  89. package/dist/source-rewrites.d.ts.map +1 -1
  90. package/dist/source-rewrites.js +350 -10
  91. package/dist/source-rewrites.js.map +1 -1
  92. package/dist/typecheck-coverage.d.ts +9 -0
  93. package/dist/typecheck-coverage.d.ts.map +1 -1
  94. package/dist/typecheck-coverage.js +16 -0
  95. package/dist/typecheck-coverage.js.map +1 -1
  96. package/dist/upgrade.d.ts +19 -1
  97. package/dist/upgrade.d.ts.map +1 -1
  98. package/dist/upgrade.js +55 -2
  99. package/dist/upgrade.js.map +1 -1
  100. package/docs/examples.json +21 -9
  101. package/docs/llms-full.txt +800 -262
  102. package/docs/types.json +868 -128
  103. package/package.json +11 -11
  104. package/src/check-diagnostics.ts +5 -0
  105. package/src/check-scan.ts +9 -1
  106. package/src/check.ts +15 -3
  107. package/src/cli.ts +25 -20
  108. package/src/command-catalog.ts +2 -26
  109. package/src/doctor.ts +2 -2
  110. package/src/internal/source-facts.ts +155 -0
  111. package/src/load.ts +15 -3
  112. package/src/mcp-delegate.ts +37 -11
  113. package/src/mcp-http.ts +1 -1
  114. package/src/mcp-relay.ts +155 -0
  115. package/src/mcp-tool-meta.ts +0 -1
  116. package/src/mcp.ts +51 -1
  117. package/src/migrate-layout.ts +61 -29
  118. package/src/recipes/5.10.0.ts +46 -0
  119. package/src/recipes/5.11.0.ts +51 -0
  120. package/src/recipes/index.ts +4 -0
  121. package/src/review.ts +3 -0
  122. package/src/rules/codes.ts +3 -0
  123. package/src/rules/explanations.ts +15 -0
  124. package/src/rules/internal-links.ts +490 -0
  125. package/src/rules/legacy.ts +21 -0
  126. package/src/rules/server-fn-namespace.ts +47 -0
  127. package/src/rules/source-scan.ts +66 -0
  128. package/src/rules/text-slot-boolean.ts +26 -42
  129. package/src/source-rewrites.ts +383 -12
  130. package/src/typecheck-coverage.ts +23 -0
  131. package/src/upgrade.ts +71 -3
  132. package/dist/sync-routes.d.ts +0 -29
  133. package/dist/sync-routes.d.ts.map +0 -1
  134. package/dist/sync-routes.js +0 -56
  135. package/dist/sync-routes.js.map +0 -1
  136. package/src/sync-routes.ts +0 -70
package/docs/types.json CHANGED
@@ -2375,7 +2375,7 @@
2375
2375
  "name": "BuildTargetOptions",
2376
2376
  "kind": "interface",
2377
2377
  "package": "@nifrajs/web",
2378
- "signature": "export interface BuildTargetOptions {\n /** The `routes/` directory to discover (absolute path). */\n readonly routesDir: string;\n /** Output directory for the assembled deploy dir (absolute path). Cleared and recreated, so the\n * build refuses one that is a filesystem root or is or contains the routes directory, the public\n * directory, an absolute entry module, or the working directory. */\n readonly outDir: string;\n /** A scratch directory for intermediate codegen (the generated server entry + manifest) and the\n * server bundle, cleaned up after. Absolute path. Checked the same way as `outDir`. */\n readonly workDir: string;\n /** The adapter's client runtime module (exports `mountRouter`), e.g. `\"@nifrajs/web-react/client\"`. */\n readonly clientModule: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `adapter`. */\n readonly adapterImport: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `backend`, or `undefined`. */\n readonly backendImport?: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `use` (app-level middleware\n * applied before page routes are declared), or `undefined`. Must resolve to the same edge-safe\n * module as `adapterImport`. */\n readonly useImport?: string;\n /** `createWebApp` options the server entry imports by name (`apiPrefix`, `mounts`, `csp`, ...), each\n * mapped to the specifier (resolvable from `workDir`) of the same edge-safe module as `adapterImport`. */\n readonly optionImports?: ServerEntryOptionImports;\n /** Factory that builds the app for `static` prerendering, GIVEN the client build's manifest - so the\n * emitted hydration `<script src>` uses the REAL content-hashed entry (`client.entry`) plus the same\n * styles/route-preload the server targets use. A pre-built instance can't work here: the hash isn't known\n * until `buildClient` runs inside `buildTarget`, so a hardcoded entry 404s → pages render but never\n * hydrate. Required for `target: \"static\"` (SSG drives `app.fetch`). For `bun` and `node` it is\n * optional: given, the opted-in routes are prerendered into `_prerendered/` and the server answers\n * them from their file; the other targets ignore it. */\n readonly prerenderApp?: (client: BuildManifest) => PrerenderAppLike | Promise<PrerenderAppLike>;\n /** Client-build plugins (e.g. the MDX/Vue/Solid Bun plugins). */\n readonly clientPlugins?: readonly BunPlugin[];\n /** Server-build plugins (e.g. the SSR variants). */\n readonly serverPlugins?: readonly BunPlugin[];\n /** Extra Bun.build resolve conditions for the CLIENT build. */\n readonly conditions?: readonly string[];\n /** Compile-time `define` replacements layered onto both builds. */\n readonly define?: Readonly<Record<string, string>>;\n /** Project-root static directory copied to deploy root. `false` disables it. */\n readonly publicDir?: string | false;\n /** Prefix of environment variables allowed into the client bundle (default `\"PUBLIC_\"`). */\n readonly publicEnvPrefix?: string;\n /** Reviewed false positives of the secret scan over the bundle, `public/` and prerendered pages. */\n readonly secretExemptions?: readonly SecretExemption[];\n /**\n * Vite-only CSS output policy. `false` emits one aggregate stylesheet. The native Bun build does not\n * support this switch and fails closed if it is supplied instead of silently ignoring it.\n */\n readonly cssCodeSplit?: boolean;\n /**\n * Activation policy for framework-owned SSR stylesheet links. Defaults to `\"blocking\"`; `\"deferred\"`\n * fetches with `media=\"print\"` and promotes before hydration. With Vite, pair it with\n * `cssCodeSplit: false`; the native Bun build supports the activation policy but keeps its existing\n * CSS output strategy.\n */\n readonly cssLoading?: CssLoadingMode;\n /** Document `<title>` for the generated server entry. */\n readonly title?: string;\n /** Trust the edge platform's client-address header for `c.clientIp` (`cloudflare`, `vercel`). Off by\n * default, leaving an edge app with no caller address. See {@link ServerEntryClientIp}. */\n readonly clientIp?: ServerEntryClientIp;\n /** How a `bun`, `node` or `deno` server stops and keeps idle connections. See\n * {@link ServerEntrySelfHost}. */\n readonly selfHost?: ServerEntrySelfHost;\n /** The client entry for a server built with `optionImports.live`: that runtime's `clientEntry`. */\n readonly live?: LiveClientEntry | undefined;\n}"
2378
+ "signature": "export interface BuildTargetOptions {\n /** Vercel-only: opt into Node.js 22 serverless SSR instead of the default Edge function. */\n readonly vercelRuntime?: VercelRuntime;\n /** The `routes/` directory to discover (absolute path). */\n readonly routesDir: string;\n /** Output directory for the assembled deploy dir (absolute path). Cleared and recreated, so the\n * build refuses one that is a filesystem root or is or contains the routes directory, the public\n * directory, an absolute entry module, or the working directory. */\n readonly outDir: string;\n /** A scratch directory for intermediate codegen (the generated server entry + manifest) and the\n * server bundle, cleaned up after. Absolute path. Checked the same way as `outDir`. */\n readonly workDir: string;\n /** The adapter's client runtime module (exports `mountRouter`), e.g. `\"@nifrajs/web-react/client\"`. */\n readonly clientModule: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `adapter`. */\n readonly adapterImport: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `backend`, or `undefined`. */\n readonly backendImport?: string;\n /** Import specifier (resolvable from `workDir`) of the module exporting `use` (app-level middleware\n * applied before page routes are declared), or `undefined`. Must resolve to the same edge-safe\n * module as `adapterImport`. */\n readonly useImport?: string;\n /** `createWebApp` options the server entry imports by name (`apiPrefix`, `mounts`, `csp`, ...), each\n * mapped to the specifier (resolvable from `workDir`) of the same edge-safe module as `adapterImport`. */\n readonly optionImports?: ServerEntryOptionImports;\n /** Factory that builds the app for `static` prerendering, GIVEN the client build's manifest - so the\n * emitted hydration `<script src>` uses the REAL content-hashed entry (`client.entry`) plus the same\n * styles/route-preload the server targets use. A pre-built instance can't work here: the hash isn't known\n * until `buildClient` runs inside `buildTarget`, so a hardcoded entry 404s → pages render but never\n * hydrate. Required for `target: \"static\"` (SSG drives `app.fetch`). For `bun` and `node` it is\n * optional: given, the opted-in routes are prerendered into `_prerendered/` and the server answers\n * them from their file; the other targets ignore it. */\n readonly prerenderApp?: (client: BuildManifest) => PrerenderAppLike | Promise<PrerenderAppLike>;\n /** Client-build plugins (e.g. the MDX/Vue/Solid Bun plugins). */\n readonly clientPlugins?: readonly BunPlugin[];\n /** Server-build plugins (e.g. the SSR variants). */\n readonly serverPlugins?: readonly BunPlugin[];\n /** Extra Bun.build resolve conditions for the CLIENT build. */\n readonly conditions?: readonly string[];\n /** Compile-time `define` replacements layered onto both builds. */\n readonly define?: Readonly<Record<string, string>>;\n /** Project-root static directory copied to deploy root. `false` disables it. */\n readonly publicDir?: string | false;\n /** Prefix of environment variables allowed into the client bundle (default `\"PUBLIC_\"`). */\n readonly publicEnvPrefix?: string;\n /** Reviewed false positives of the secret scan over the bundle, `public/` and prerendered pages. */\n readonly secretExemptions?: readonly SecretExemption[];\n /**\n * Vite-only CSS output policy. `false` emits one aggregate stylesheet. The native Bun build does not\n * support this switch and fails closed if it is supplied instead of silently ignoring it.\n */\n readonly cssCodeSplit?: boolean;\n /**\n * Activation policy for framework-owned SSR stylesheet links. Defaults to `\"blocking\"`; `\"deferred\"`\n * fetches with `media=\"print\"` and promotes before hydration. With Vite, pair it with\n * `cssCodeSplit: false`; the native Bun build supports the activation policy but keeps its existing\n * CSS output strategy.\n */\n readonly cssLoading?: CssLoadingMode;\n /** Document `<title>` for the generated server entry. */\n readonly title?: string;\n /** Trust the edge platform's client-address header for `c.clientIp` (`cloudflare`, `vercel`). Off by\n * default, leaving an edge app with no caller address. See {@link ServerEntryClientIp}. */\n readonly clientIp?: ServerEntryClientIp;\n /** How a `bun`, `node` or `deno` server stops and keeps idle connections. See\n * {@link ServerEntrySelfHost}. */\n readonly selfHost?: ServerEntrySelfHost;\n /** The client entry for a server built with `optionImports.live`: that runtime's `clientEntry`. */\n readonly live?: LiveClientEntry | undefined;\n}"
2379
2379
  },
2380
2380
  {
2381
2381
  "name": "BuildTargetPlan",
@@ -2485,6 +2485,12 @@
2485
2485
  "signature": "export declare const CLIENT_ENTRY_PATH = \"/__nifra/client.js\";",
2486
2486
  "doc": "/**\n * The stable URL every SSR'd page points its client entry at.\n *\n * It has to be stable, and Bun's own URL is not: that one is a content hash over the entire client graph,\n * so it changes whenever anything the entry imports changes. This path redirects to whichever hashed\n * chunk Bun is serving at the moment the browser asks, which is the only formulation that stays correct\n * across a rebuild.\n */"
2487
2487
  },
2488
+ {
2489
+ "name": "COMPONENT_OUTPUT_LIMIT",
2490
+ "kind": "const",
2491
+ "package": "@nifrajs/web",
2492
+ "signature": "export declare const COMPONENT_OUTPUT_LIMIT: 1048576;"
2493
+ },
2488
2494
  {
2489
2495
  "name": "CONTENT_SNAPSHOT_MAX",
2490
2496
  "kind": "const",
@@ -3463,14 +3469,14 @@
3463
3469
  "name": "ClientRouteHooks",
3464
3470
  "kind": "interface",
3465
3471
  "package": "@nifrajs/web",
3466
- "signature": "export interface ClientRouteHooks {\n readonly clientLoader?: ClientLoader;\n readonly clientAction?: ClientAction;\n /** The page's `shareData` export: `false` gives every reload of it fresh data. */\n readonly shareData?: boolean;\n /** The page's `keepAlive` export: the page stays mounted after a visitor leaves it. */\n readonly keepAlive?: true | KeepAliveOptions;\n /** Neutral boundary descriptors needed for soft-navigation interception. A boundary's loader lives in\n * the route's backend half, so the browser never learns whether one exists. */\n readonly boundaries?: ReadonlyArray<Omit<BoundaryDescriptor, \"hasLoad\">>;\n}",
3472
+ "signature": "export interface ClientRouteHooks {\n /** page's registered independently navigable route-slot identities. */\n readonly routeSlots?: Readonly<Record<string, readonly string[]>>;\n readonly clientLoader?: ClientLoader;\n readonly clientAction?: ClientAction;\n /** The page's `shareData` export: `false` gives every reload of it fresh data. */\n readonly shareData?: boolean;\n /** The page's `keepAlive` export: the page stays mounted after a visitor leaves it. */\n readonly keepAlive?: true | KeepAliveOptions;\n /** Neutral boundary descriptors needed for soft-navigation interception. A boundary's loader lives in\n * the route's backend half, so the browser never learns whether one exists. */\n readonly boundaries?: ReadonlyArray<Omit<BoundaryDescriptor, \"hasLoad\">>;\n}",
3467
3473
  "doc": "/** Client hooks populated by the generated route entry after a route chunk loads. */"
3468
3474
  },
3469
3475
  {
3470
3476
  "name": "ClientRouter",
3471
3477
  "kind": "interface",
3472
3478
  "package": "@nifrajs/web",
3473
- "signature": "export interface ClientRouter {\n /** Current state; stable reference between transitions (so `useSyncExternalStore` can bail). */\n snapshot: () => RouterState;\n /** Subscribe to transitions; returns an unsubscribe fn. */\n subscribe: (listener: () => void) => () => void;\n /**\n * Navigate to a path: match → fetch loader data → publish. No-op for an unmatched path. A loader\n * redirect to another route is followed; one that leaves the app (another origin, a `#fragment`, no\n * route) rejects with its target as `redirectTo`.\n */\n navigate: (path: string) => Promise<void>;\n /**\n * Submit an action (POST `body` to `action` in data mode): a redirect becomes a client\n * navigation; otherwise the data return is published as `actionData` and the active route's\n * loader is revalidated so the mutation is reflected. Pass `{ revalidate: false }` to SKIP that\n * revalidation - keep the current `data` and just publish the action's `actionData` (useful when\n * the action already returned everything that changed, saving the extra round-trip). A redirect\n * always loads its target regardless. Rejects on failure (caller falls back); once the server has\n * answered, at any status, the rejection's `redirectTo` names the page to load instead of posting\n * again. A revalidation answered with a terminal status renders that status route in the page's\n * place.\n */\n submit: (action: string, body: NonNullable<RequestInit[\"body\"]>, opts?: SubmitOptions) => Promise<void>;\n /** Run the initial route's client loader after the adapter has hydrated the SSR markup. */\n hydrate: () => Promise<void>;\n /**\n * Mark cached route data stale and refresh the active view. With `paths`, target exactly those\n * (e.g. the routes a mutation changed); without, invalidate the whole cache. The active route\n * refreshes immediately - refetched + republished - whenever it's in scope (an explicit list that\n * includes it, or an invalidate-all); other stale entries refetch lazily when next read (a\n * fetcher, or the next navigation/access). Rejects if the active refetch fails (like `navigate`).\n * A refetch answered with a terminal status renders that status route in the page's place; one\n * whose status page renders inside layouts rejects, so the caller can load the page as a document.\n * The keyed substrate for targeted revalidation (the `X-Nifra-Revalidate` header) and fetchers.\n */\n invalidate: (paths?: readonly string[]) => Promise<void>;\n /**\n * Warm a path's chunk + loader data into a bounded one-shot cache without publishing state -\n * a later `navigate` to it transitions with no network round-trip. Best-effort: failures and\n * unmatched paths are no-ops. Wired to link hover/focus by `installHistory`.\n */\n prefetch: (path: string) => Promise<void>;\n /**\n * Get (lazily creating) the stable {@link Fetcher} for `key` - an independent, concurrent\n * load/submit state machine for row-level mutations or side-channel loads that must not disturb\n * the active view. The same `key` always returns the same fetcher (so a binding can subscribe to a\n * stable store). Keys are app-chosen and typically stable (e.g. a row id).\n */\n fetcher: (key: string) => Fetcher;\n /** All live fetchers - for a global busy view (e.g. a `useFetchers` binding). */\n fetchers: () => readonly Fetcher[];\n /** Subscribe to any-fetcher-changed (a transition on any fetcher, or a new one created) - backs a\n * `useFetchers` binding; returns an unsubscribe fn. */\n subscribeFetchers: (listener: () => void) => () => void;\n /** Match a path against the manifest patterns (exposed for history/link wiring). */\n match: (path: string) => RouteMatch | null;\n}",
3479
+ "signature": "export interface ClientRouter {\n /** Current state; stable reference between transitions (so `useSyncExternalStore` can bail). */\n snapshot: () => RouterState;\n /** Subscribe to transitions; returns an unsubscribe fn. */\n subscribe: (listener: () => void) => () => void;\n /**\n * Navigate to a path: match → fetch loader data → publish. No-op for an unmatched path. A loader\n * redirect to another route is followed; one that leaves the app (another origin, a `#fragment`, no\n * route) rejects with its target as `redirectTo`.\n */\n navigate: (path: string) => Promise<void>;\n /**\n * Submit an action (POST `body` to `action` in data mode): a redirect becomes a client\n * navigation; otherwise the data return is published as `actionData` and the active route's\n * loader is revalidated so the mutation is reflected. Pass `{ revalidate: false }` to SKIP that\n * revalidation - keep the current `data` and just publish the action's `actionData` (useful when\n * the action already returned everything that changed, saving the extra round-trip). A redirect\n * always loads its target regardless. Rejects on failure (caller falls back); once the server has\n * answered, at any status, the rejection's `redirectTo` names the page to load instead of posting\n * again. A revalidation answered with a terminal status renders that status route in the page's\n * place.\n */\n submit: (action: string, body: NonNullable<RequestInit[\"body\"]>, opts?: SubmitOptions) => Promise<void>;\n /** Run the initial route's client loader after the adapter has hydrated the SSR markup. */\n hydrate: () => Promise<void>;\n /**\n * Mark cached route data stale and refresh the active view. With `paths`, target exactly those\n * (e.g. the routes a mutation changed); without, invalidate the whole cache. The active route\n * refreshes immediately - refetched + republished - whenever it's in scope (an explicit list that\n * includes it, or an invalidate-all); other stale entries refetch lazily when next read (a\n * fetcher, or the next navigation/access). Rejects if the active refetch fails (like `navigate`).\n * A refetch answered with a terminal status renders that status route in the page's place; one\n * whose status page renders inside layouts rejects, so the caller can load the page as a document.\n * The keyed substrate for targeted revalidation (the `X-Nifra-Revalidate` header) and fetchers.\n */\n invalidate: (paths?: readonly string[]) => Promise<void>;\n /**\n * Warm a path's chunk + loader data into a bounded one-shot cache without publishing state -\n * a later `navigate` to it transitions with no network round-trip. Best-effort: failures and\n * unmatched paths are no-ops. Wired to link hover/focus by `installHistory`.\n */\n prefetch: (path: string) => Promise<void>;\n /**\n * Get (lazily creating) the stable {@link Fetcher} for `key` - an independent, concurrent\n * load/submit state machine for row-level mutations or side-channel loads that must not disturb\n * the active view. The same `key` always returns the same fetcher (so a binding can subscribe to a\n * stable store). Keys are app-chosen and typically stable (e.g. a row id).\n */\n fetcher: (key: string) => Fetcher;\n /** All live fetchers - for a global busy view (e.g. a `useFetchers` binding). */\n fetchers: () => readonly Fetcher[];\n /** Subscribe to any-fetcher-changed (a transition on any fetcher, or a new one created) - backs a\n * `useFetchers` binding; returns an unsubscribe fn. */\n subscribeFetchers: (listener: () => void) => () => void;\n /** Match a path against the manifest patterns (exposed for history/link wiring). */\n match: (path: string) => RouteMatch | null;\n /** Load a route's lazy component chain before an independently mounted route slot renders it. */\n loadModule: (routeId: string, path?: string) => Promise<void>;\n /** Read and validate a route's slot registry after its module has loaded. */\n routeSlotsFor: (routeId: string) => RouteSlotRegistry;\n /** Read the generated manifest identity for a route id. */\n routePattern: (routeId: string) => string | undefined;\n}",
3474
3480
  "doc": "/** The agnostic router store consumed by per-adapter Router bindings. */"
3475
3481
  },
3476
3482
  {
@@ -3656,7 +3662,7 @@
3656
3662
  "name": "ComponentClientAdapter",
3657
3663
  "kind": "interface",
3658
3664
  "package": "@nifrajs/web",
3659
- "signature": "export interface ComponentClientAdapter {\n readonly name: ComponentState[\"adapter\"];\n prepare(record: ComponentRecord, current: CurrentComponent, host?: Element, context?: {\n readonly records: readonly ComponentRecord[];\n }): unknown | Promise<unknown>;\n hydrate(host: Element, record: ComponentRecord, prepared: unknown, current: CurrentComponent): ComponentClientRoot | Promise<ComponentClientRoot>;\n create?(host: Element, record: ComponentRecord, prepared: unknown, current: CurrentComponent): ComponentClientRoot | Promise<ComponentClientRoot>;\n update(root: ComponentClientRoot, record: ComponentRecord, prepared: unknown, current: CurrentComponent): void | Promise<void>;\n}"
3665
+ "signature": "export interface ComponentClientAdapter {\n readonly name: ComponentState[\"adapter\"];\n prepare(record: ComponentRecord, current: CurrentComponent, host?: Element, context?: {\n readonly records: readonly ComponentRecord[];\n }): unknown | Promise<unknown>;\n hydrate(host: Element, record: ComponentRecord, prepared: unknown, current: CurrentComponent): ComponentClientRoot | Promise<ComponentClientRoot>;\n create?(host: Element, record: ComponentRecord, prepared: unknown, current: CurrentComponent): ComponentClientRoot | Promise<ComponentClientRoot>;\n update(root: ComponentClientRoot, record: ComponentRecord, prepared: unknown, current: CurrentComponent): void | Promise<void>;\n /** Update a mounted root from a progressive framework stream and return its bounded snapshot. */\n updateProgressive?(root: ComponentClientRoot, flight: ReadableStream<Uint8Array>, current: CurrentComponent, signal: AbortSignal): Promise<NonNullable<ComponentRecord[\"payload\"]>>;\n}"
3660
3666
  },
3661
3667
  {
3662
3668
  "name": "ComponentClientRoot",
@@ -3704,7 +3710,13 @@
3704
3710
  "name": "ComponentOwner",
3705
3711
  "kind": "interface",
3706
3712
  "package": "@nifrajs/web",
3707
- "signature": "export interface ComponentOwner {\n readonly components: readonly ServerComponentHandle[];\n readonly capabilities?: readonly string[];\n readonly instances: (ctx: ServerComponentContext) => readonly ComponentInstance[] | Promise<readonly ComponentInstance[]>;\n /** A public, non-secret token supplied by the application's auth integration. */\n readonly scope: \"anonymous\" | ((ctx: ServerComponentContext) => string | Promise<string>);\n}"
3713
+ "signature": "export interface ComponentOwner {\n readonly components: readonly ServerComponentHandle[];\n readonly capabilities?: readonly string[];\n /**\n * Opts the complete owner route document into the shared ISR store. This is an explicit\n * application contract: every loader, layout, owner callback, and rendered record for this\n * route must be independent of request identity and secrets. Runtime validation also requires\n * the anonymous owner scope and no component capabilities.\n * Request-header reads by route middleware/loaders/layouts, component authorization/loading, or\n * app hooks registered through `createWebApp({ use })` make that response ineligible for shared\n * storage. Replaced or uninspectable request views fail closed. Database, environment, global,\n * external-service, and other dependencies remain the application's responsibility.\n */\n readonly cache?: ComponentOwnerCachePolicy;\n readonly instances: (ctx: ServerComponentContext) => readonly ComponentInstance[] | Promise<readonly ComponentInstance[]>;\n /** A public, non-secret token supplied by the application's auth integration. */\n readonly scope: \"anonymous\" | ((ctx: ServerComponentContext) => string | Promise<string>);\n}"
3714
+ },
3715
+ {
3716
+ "name": "ComponentOwnerCachePolicy",
3717
+ "kind": "interface",
3718
+ "package": "@nifrajs/web",
3719
+ "signature": "export interface ComponentOwnerCachePolicy {\n /** The cache can serve this complete route document to any anonymous visitor. */\n readonly scope: \"public\";\n /**\n * Required assertion that route, loader, layout, and component output are request-independent.\n * Nifra observes request-header reads through owner-route middleware, layouts, component\n * authorization/loading, and app hooks registered with `createWebApp({ use })`. Accessing the\n * request from an owner loader is conservatively treated as a dependency, including a native\n * `Request` copy. Replaced/uninspectable request views fail closed. Database, environment, global,\n * external-service, and other dependencies remain the application's responsibility.\n */\n readonly requestIndependent: true;\n /** Positive freshness window in seconds for this complete owner route. */\n readonly revalidate: number;\n /** Public invalidation tags shared by this route's cached documents. */\n readonly tags?: readonly string[];\n}"
3708
3720
  },
3709
3721
  {
3710
3722
  "name": "ComponentPipelineOptions",
@@ -4264,12 +4276,33 @@
4264
4276
  "package": "@nifrajs/web",
4265
4277
  "signature": "export interface CreateCspPolicyOptions {\n /**\n * Build the complete Content-Security-Policy value for one document, or `undefined` to send none:\n *\n * ```ts\n * header: ({ sources }) => `default-src 'self'; script-src 'self' ${sources}; object-src 'none'`\n * ```\n */\n readonly header: (context: CspHeaderContext) => string | undefined;\n /** Generate the nonce for a document that needs one. Default: 122 random bits, CSP base64-safe. */\n readonly generate?: () => string;\n}"
4266
4278
  },
4279
+ {
4280
+ "name": "CreateInfiniteQueryOptions",
4281
+ "kind": "interface",
4282
+ "package": "@nifrajs/web-solid",
4283
+ "signature": "export interface CreateInfiniteQueryOptions<T, P> extends InfiniteQueryOptions<T, P> {\n readonly enabled?: boolean;\n}",
4284
+ "doc": "/** Options for a Solid infinite query. */"
4285
+ },
4286
+ {
4287
+ "name": "CreateInfiniteQueryResult",
4288
+ "kind": "interface",
4289
+ "package": "@nifrajs/web-solid",
4290
+ "signature": "export interface CreateInfiniteQueryResult<T, P> {\n readonly state: Accessor<QueryState<InfiniteData<T, P>>>;\n readonly isPending: Accessor<boolean>;\n readonly isError: Accessor<boolean>;\n readonly isSuccess: Accessor<boolean>;\n readonly hasNextPage: Accessor<boolean>;\n readonly hasPreviousPage: Accessor<boolean>;\n readonly fetchNextPage: () => Promise<InfiniteData<T, P>>;\n readonly fetchPreviousPage: () => Promise<InfiniteData<T, P>>;\n readonly refetch: () => Promise<InfiniteData<T, P>>;\n}",
4291
+ "doc": "/** Infinite-query state and page controls expressed as Solid accessors. */"
4292
+ },
4267
4293
  {
4268
4294
  "name": "CreateMcpServerOptions",
4269
4295
  "kind": "interface",
4270
4296
  "package": "@nifrajs/mcp",
4271
4297
  "signature": "export interface CreateMcpServerOptions {\n readonly name: string;\n readonly version: string;\n readonly tools?: readonly McpTool[];\n /** MCP Apps widgets - their resources are registered and the UI capability is advertised. */\n readonly widgets?: readonly McpWidget[];\n /** Extra (non-widget) resources to expose. */\n readonly resources?: readonly McpResource[];\n readonly prompts?: readonly McpPrompt[];\n /** GET health-page text. */\n readonly health?: string;\n /** Max JSON-RPC body size in bytes (default 1 MB). */\n readonly maxBodyBytes?: number;\n /** Max serialized JSON-RPC response or SSE frame size (default 1 MB). */\n readonly maxResponseBytes?: number;\n /** Max bytes an SSE stream queues for a client that is not reading (default 4 MiB). */\n readonly maxPendingBytes?: number;\n /** Natural-language guidance for LLMs, surfaced in the modern `server/discover` result (2026-07-28). */\n readonly instructions?: string;\n /** Explicitly allow browser clients from any origin. Omit for the secure same-origin default. */\n readonly allowAnyOrigin?: boolean;\n /** Origin allowlist for the DNS-rebinding guard. Set it to permit exact cross-origin clients. */\n readonly allowedOrigins?: readonly string[];\n /** Host allowlist; set it for a server on localhost or a private network. See {@link McpHttpOptions}. */\n readonly allowedHosts?: readonly string[];\n /** Shared state for one authenticated MCP session; prefer `resolveState` for multi-session hosts. */\n readonly state?: McpProtocolState;\n /** Resolve a session-scoped request registry after per-message authorization. */\n readonly resolveState?: McpHttpOptions[\"resolveState\"];\n /**\n * Per-message authorization, applied after the message parses and before any tool runs. Return\n * `false` to answer 403 with a JSON-RPC `unauthorized` error (`MCP_ERROR.UNAUTHORIZED`) and no result.\n *\n * This is the seam for \"this caller may list tools but may not call the write ones\" - the HTTP\n * layer above only sees one opaque POST, so a route guard cannot make that distinction.\n * `fetch(request, { authorizeMessage })` overrides it per request when the decision depends on\n * something the surrounding handler resolved (a session, a tenant). With it set, a GET for the\n * server-message stream is answered `405`, since that stream has no message to authorize.\n */\n readonly authorizeMessage?: (message: JsonRpcRequest, request: Request) => boolean | Promise<boolean>;\n}"
4272
4298
  },
4299
+ {
4300
+ "name": "CreateMutationResult",
4301
+ "kind": "interface",
4302
+ "package": "@nifrajs/web-solid",
4303
+ "signature": "export interface CreateMutationResult<TData, TVariables> {\n readonly state: Accessor<MutationState<TData, TVariables>>;\n readonly isIdle: Accessor<boolean>;\n readonly isPending: Accessor<boolean>;\n readonly isError: Accessor<boolean>;\n readonly isSuccess: Accessor<boolean>;\n readonly mutate: (variables: TVariables) => void;\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n readonly reset: () => void;\n readonly cancel: () => void;\n}",
4304
+ "doc": "/** A mutation result expressed as Solid accessors and imperative controls. */"
4305
+ },
4273
4306
  {
4274
4307
  "name": "CreateNonceResolverOptions",
4275
4308
  "kind": "interface",
@@ -4323,7 +4356,7 @@
4323
4356
  "name": "CreateWebAppOptions",
4324
4357
  "kind": "interface",
4325
4358
  "package": "@nifrajs/web",
4326
- "signature": "export interface CreateWebAppOptions<Env = unknown> {\n readonly serverComponents?: import(\"../server-components/types.js\").ServerComponentRuntime;\n readonly adapter: RenderAdapter;\n readonly manifest: Manifest;\n /** Cache production module imports and layout preparation, never request data. Defaults to NODE_ENV === \"production\"; disable for a mutable manifest. */\n readonly cacheRouteModules?: boolean;\n /** URL of the built client entry (module script) injected into every page. */\n readonly clientEntry: string;\n /** Default document title for all pages. */\n readonly title?: string;\n /**\n * Resolve a fresh CSP nonce for each document request. The value is applied to every\n * framework-owned executable script; return `undefined` to keep the default nonce-free output.\n * Nonce-bearing documents are marked `private, no-store` so the request-specific value is not\n * replayed by browser, CDN, or ISR caches. Pass {@link cspHeader} to have nifra write the\n * Content-Security-Policy header from the same value.\n */\n readonly nonce?: NonceResolver<Env>;\n /**\n * Build the Content-Security-Policy value for each document a {@link nonce} app renders, or return\n * `undefined` to send none. nifra sets it on every document it renders - pages, status pages,\n * `_error`, streamed and deferred documents - from the nonce it put on that document's scripts, so\n * the header never depends on which `Request` object a wrapper holds. `sources` is the\n * `script-src` list the document needs: `'nonce-…'` plus a `'sha256-…'` hash for each constant\n * inline script nifra writes, which covers a document the resolver left nonce-free.\n *\n * ```ts\n * cspHeader: ({ sources }) => `default-src 'self'; script-src 'self' ${sources}; object-src 'none'`\n * ```\n *\n * Needs `nonce`; `csp` writes its own header, so the two are refused together.\n */\n readonly cspHeader?: (context: CspHeaderContext) => string | undefined;\n /**\n * A hash-based Content-Security-Policy from `createCspPolicy`, instead of `nonce`. A document then\n * carries a nonce only when it needs one (it `defer()`s a value, or `meta` names the nonce in\n * `unsafeInlineScript`); every other page is nonce-free, gets the same CSP header on every request,\n * and stays cacheable by `withISR` or a CDN. `meta` still receives a nonce to name.\n */\n readonly csp?: CspPolicy;\n /** Experimental and unstable: features whose API may change in any release. */\n readonly experimental?: {\n /**\n * Partial prerendering, from `partialPrerendering()` in `@nifrajs/web/ppr`. A route whose backend\n * half exports `shellLoader` streams a shell shared by every visitor, then each `dynamic` boundary\n * as it settles. Needs `csp` (hashes), not `nonce`.\n */\n readonly ppr?: PprSetup;\n };\n /**\n * Options for the underlying `server()` - `requestTimeoutMs`, `admission`, `gracefulSignals`, and\n * the rest of {@link ServerOptions}.\n *\n * Needed because the `Server` is constructed in here, so a caller has no other way to reach its\n * constructor: a page app could set no request timeout and no capacity gate, which are exactly the\n * two knobs a production readiness check looks for. An SSR app wants them MORE than a backend does -\n * a render is slow and allocation-heavy, so a burst that a JSON API would absorb is the one that\n * exhausts the pod.\n *\n * Applies to the whole app, {@link mounts} and the {@link api} auto-mount included: the capacity gate\n * sits at the fetch entry, ahead of the request hooks those are dispatched from.\n */\n readonly server?: ServerOptions;\n /**\n * Runs against the app BEFORE any page route is registered - the seam for `securityHeaders()`,\n * `requestId()`, `logger()`, a rate limit, or anything else applied with `use`.\n *\n * ```ts\n * createWebApp({\n * …,\n * use: (app) => {\n * app.use(securityHeaders())\n * app.use(requestId())\n * },\n * })\n * ```\n *\n * A callback rather than an array because `use` is overloaded - `Middleware`, `IdentityPlugin`,\n * `ContextPlugin` - and only the real call site instantiates the right overload. The return value\n * is ignored: this is for cross-cutting concerns, not for declaring routes (declare those on the\n * returned app, where they get their types).\n *\n * **Why the timing matters.** `beforeHandle`, `afterHandle`, `around`, `derive`/`decorate`, and\n * `onError` are snapshotted into each route AS IT IS DECLARED, and `createWebApp` declares every\n * page (plus the `/*` catch-all) before it returns - so a caller's `app.use(…)` afterwards would\n * bind them to no page, and outside production it throws (`HOOK_AFTER_PAGES`). `requestId()` is\n * exactly that case: it is a `derive`, so applied late it would leave every page without\n * `c.requestId`. A `group()` is its own scope and stays allowed. Route assurance evidence is order-scoped the same\n * way, so a late `securityHeaders()` leaves the pages unable to PROVE the header to `nifra assure`\n * even though it does still set it.\n *\n * `onRequest`/`onResponse` (and the response header/body hooks) are app-global arrays read at\n * request time, so those alone DO work when added late. Using this seam for everything avoids\n * having to remember which is which.\n *\n * Runs ahead of the {@link mounts} / {@link api} request hooks, so an `onRequest` middleware guards\n * a mounted auth handler too.\n *\n * A `ContextPlugin` applied here takes runtime effect but cannot widen the declared return type of\n * this function, so `c.requestId` is not typed on routes you declare afterwards. Named plugins are\n * idempotent, so `app.use(requestId())` on the returned app recovers the TYPE without applying the\n * plugin a second time.\n */\n readonly use?: (app: ReturnType<typeof server<Env>>) => void;\n /** Injected into each loader's `ctx.api` - typically an `inProcessClient(app)` (typed\n * per-route via `@nifrajs/client`'s `createRoutes`). Opaque to the core.\n *\n * **Auto-mount.** Every `inProcessClient(backend)` exposes the symbol-keyed platform-aware backend\n * mount interface from `@nifrajs/core/mount`; given an {@link apiPrefix}, `createWebApp` also serves\n * that backend over HTTP there: a request whose pathname starts with the prefix is dispatched before\n * page routing with the same `env`/`waitUntil` platform context, and the backend's `Response` is\n * returned untouched. The mount runs in `nifra dev` too. Without `apiPrefix` the backend is\n * loader-only.\n *\n * **Request-scoped loader calls.** While a page renders, its loaders, actions and boundaries get a\n * `ctx.api` bound to that request's platform identity: a backend handler reached through it sees the\n * visitor's `c.clientIp` (derived under this app's `server.clientIp` trust declaration), `c.env` and\n * `c.waitUntil`, so a per-caller rate limit or audit field keys on the real visitor. `c.clientIp` is\n * the supported way to read the caller - identity travels in the platform, so rebuilding a `Request`\n * does not lose it. Headers do NOT travel: the page request's `cookie` and `authorization` are never\n * copied, so a loader call is anonymous unless the loader passes headers on the call itself. */\n readonly api?: unknown;\n /** HTTP path prefix the {@link api} backend is mounted at, such as `\"/api\"`. A request whose\n * pathname is exactly the prefix or starts with `prefix + \"/\"` is dispatched to the backend before\n * page routing; the backend therefore defines its routes at the **full** path (`server().post(\"/api/\n * sync\", …)`), matching the in-process `inProcessClient` call sites. Unset or `\"\"`, nothing is\n * mounted: the app serves pages only and `api` stays a loader-only `ctx.api`. Mounting is also a\n * no-op when `api` does not expose the symbol mount.\n *\n * A page file under the prefix (`routes/api/report.tsx`) could never render - the backend answers\n * first and its 404 is final - so `createWebApp` throws, naming the file. The same holds for every\n * other pre-route mount. */\n readonly apiPrefix?: string;\n /**\n * Strip {@link apiPrefix} from the pathname before dispatching to `api` (default `false`).\n *\n * The default suits a backend that declares FULL paths (`server().post(\"/api/sync\", …)`), which is\n * right when it is only ever mounted here. Set this when the backend declares its routes WITHOUT the\n * prefix because it also runs standalone behind its own shell, so its paths cannot carry a prefix that\n * only exists when it is mounted. Without it every request 404s inside the backend, and the workaround\n * is a `Proxy` that rewrites each URL.\n */\n readonly apiStrip?: boolean;\n /**\n * Sub-apps mounted ahead of page routing - an auth handler, a webhook receiver, a stack's routes.\n *\n * Structural on purpose: anything with `{ path, app: { fetch } }` fits, so a library that exposes its\n * routes as such a list mounts as `mounts: theirRoutes` without `@nifrajs/web` taking a dependency on\n * it. `better-auth` is the motivating case - it is not a `backend` route, so `/api/auth/*` used to 404\n * silently.\n *\n * Tried longest-path-first and BEFORE the `api` mount, so a mount at `/api/auth` wins over a backend\n * at `/api` no matter which was declared first. `stripPrefix` is the per-mount form of {@link apiStrip}:\n * leave it off to pass the full path through. `opaque` states why a mount whose routes nifra cannot\n * read (better-auth's handler) is outside assurance; it is then listed as a known gap, with any\n * routes it declares reported as declared.\n */\n readonly mounts?: ReadonlyArray<{\n readonly path: string;\n readonly app: MountableApp<Env>;\n readonly stripPrefix?: boolean;\n readonly priority?: number;\n readonly fallbackOn?: 404;\n readonly opaque?: MountOptions<Env>[\"opaque\"];\n }>;\n /** Secret for **draft / preview mode** (see `enableDraft`). When set, a request carrying a valid\n * signed `__nifra_draft` cookie gets `ctx.draft === true` in loaders/actions (else always `false`).\n * Pair with `withISR({ draftSecret })` so editors bypass the cache. Omit to disable draft mode. */\n readonly draftSecret?: string;\n /**\n * Live data refresh, from `live()` in `@nifrajs/web/live`. Loaders declare keys with `ctx.live()`;\n * the app answers live loads at the runtime's load endpoint. Omit and nothing live is loaded.\n */\n readonly live?: LiveRuntimeHandle;\n /** Per-route chunk URLs (`buildClient`'s `BuildManifest.routes`) - `routeId → [layout chunks…, own\n * chunk]`. When present, each page `modulepreload`s its matched route's chunks alongside the entry,\n * so the route code downloads in parallel (no entry→route-chunk waterfall). Omit ⇒ entry-only. */\n readonly routePreload?: Readonly<Record<string, readonly string[]>>;\n /** The app's bundled stylesheet URLs (`buildClient`'s `BuildManifest.css`) - the aggregate, injected\n * as `<link rel=\"stylesheet\">` in a page's `<head>`. Used as the fallback for any route absent from\n * {@link routeStyles}. Omit ⇒ no links (dev, where Vite injects CSS, or a CSS-free app). */\n readonly styles?: readonly string[];\n /** Per-route stylesheet URLs (`buildClient`'s `BuildManifest.routeStyles`) - `routeId → [chain CSS]`.\n * When a matched route has an entry here, only those (its layout chain + own CSS) are linked instead\n * of the aggregate `styles`, so a page ships only the CSS it uses. An empty array ⇒ no `<link>` (the\n * page imports no CSS). Routes absent here fall back to `styles`. Omit ⇒ always use `styles`. */\n readonly routeStyles?: Readonly<Record<string, readonly string[]>>;\n /** Locale key -> copy chunk URL (`buildClient`'s `BuildManifest.copyChunks`, the server manifest's\n * `copyChunks`). A production client build moves copy tables (`@nifrajs/i18n/copy`) into one chunk per\n * locale; each page lists them for the browser and preloads its own. Omit ⇒ tables keep their values. */\n readonly copyChunks?: Readonly<Record<string, string>>;\n /**\n * The app's locale routing, `defineI18nRouting()` from `@nifrajs/i18n/routing`, registered once:\n * export it as `i18n` from `backend/framework.ts`. Every document then takes its locale from the\n * URL: `<html lang dir>` from the registry unless the route's meta sets `lang`, a `Content-Language`\n * header, and the locale each adapter's `useLocale()` and `<I18nProvider>` read. A route under a\n * `[lang]` or `[[lang]]` directory is checked with its `matchSegment()` before any middleware: an\n * unserved locale, or a page missing from it, is a 404, and a non-canonical prefix (`/en/x` when the\n * default is unprefixed) redirects with a 308.\n */\n readonly i18n?: WebAppI18n;\n /**\n * Activation policy for framework-owned stylesheet links (default `\"blocking\"`). `\"deferred\"`\n * emits `media=\"print\"` links; the generated client waits for them and switches them to `all` before\n * mounting. Pair with an aggregate Vite stylesheet (`cssCodeSplit: false`) to prevent lazy-prefetch\n * CSS insertion. Non-hydrated pages always keep their stylesheet links blocking.\n */\n readonly cssLoading?: CssLoadingMode;\n /** SSG: the prerendered-path set (e.g. `enumerateStaticRoutes(routes).paths` or the build's\n * `prerendered.json`). Handed over as `window.__NIFRA_PRERENDERED__` on every page so a client soft-nav\n * into a prerendered route fetches its static `_data.json` instead of hitting the worker, unless the\n * target carries a query string, which renders on demand as a hard request does. A set over\n * 4 KB of JSON is served once from `/__nifra/prerendered.json?v=<version>`, cacheable for good, and\n * pages hand over only that URL; `prerenderRoutes` writes the file into a static output. */\n readonly prerenderedPaths?: readonly string[];\n /**\n * Pages a self-hosted build prerendered, answered from their file instead of rendered. `nifra build\n * --target bun|node` wires this from its prerender pass. The page is served from the page route,\n * so `use` middleware and every request hook run first; a request with a query string, a navigation\n * data or component request, or a draft-mode visitor renders on demand as before. Ignored with\n * {@link nonce}, whose documents need a nonce minted for their request.\n */\n readonly prerenderedPages?: PrerenderedPages;\n /**\n * Which pages and files each host serves, from `createHostPolicy()`. Evaluated before everything\n * else the app answers (prerendered pages, mounts, the API, every page) and, in a `nifra build`\n * server entry, before its static files too. A refused path answers the policy's refusal.\n */\n readonly hostPolicy?: HostPolicy;\n /**\n * Which cookies say who is signed in, for an app with a `keepAlive` route. A response that changes\n * or deletes one rotates the readable identity epoch cookie, and every tab drops the pages it kept\n * for the previous visitor. The session cookies of `@nifrajs/auth` and Auth.js count under their\n * default names, Better Auth's under any `cookiePrefix`; name any other in `identityCookies`. An app\n * run by `nifra dev` and `nifra build` exports this from `backend/framework.ts`. Development reports, once per\n * name, an `HttpOnly` cookie that changes and is in neither list (`NIFRA_KEEPALIVE_IDENTITY_COOKIE`).\n */\n readonly keepAlive?: KeepAliveServerOptions;\n /**\n * The files the build emitted, by request path: `buildAssets` from the generated server manifest.\n * A {@link hostPolicy} rule's `buildAssets` token matches exactly these. `nifra dev` serves the\n * client bundle and `public/` ahead of the app, so the app's own check never sees them there.\n */\n readonly buildAssets?: BuildAssetSet;\n /** Publish the project's `AGENTS.md` inside `/llms.txt` and `/llms-full.txt`. **Off by default**:\n * those endpoints are public and unauthenticated, while `AGENTS.md` is a repo file written for the\n * team - unreleased feature names, internal hostnames, and \"don't touch X yet\" notes live there\n * routinely. Turn it on only for a repo whose guidelines you would publish as a page. */\n readonly publishLocalGuidelines?: boolean;\n /** Serve `/llms.txt` and `/llms-full.txt`: the page routes, and the backend routes when the backend\n * is mounted over HTTP at {@link apiPrefix}, with their request and response schemas in the full\n * text. **Off by default**: both are public and unauthenticated, and they list every route, admin\n * and internal ones included. Turn it on for an app whose whole surface you would publish. */\n readonly llmsTxt?: boolean;\n /** SSG: per dynamic route pattern, its `getStaticPaths` `fallback` (from `enumerateStaticRoutes` or\n * the build's `prerendered.json`). A route mapped to `\"404\"` rejects any path NOT in\n * `prerenderedPaths` with the 404 page - the unlisted path simply doesn't exist. `\"ssr\"` (the\n * default for unmapped routes) renders unlisted paths on-demand. */\n readonly staticFallbacks?: Readonly<Record<string, \"ssr\" | \"404\">>;\n /** In-memory reference cache for explicitly `static` boundary values. It never persists payloads\n * across processes; operated/durable cache implementations stay outside the public framework. */\n readonly staticBoundaryCache?: import(\"../boundary.js\").StaticBoundaryCache;\n /** Observe every loader/action failure - for error-reporting plugins (Sentry-style). Called for\n * real throws (not control-flow `Response`s like `redirect`), **before** the nearest `_error`\n * boundary renders / a soft-nav 500 / a rethrow. A failure a boundary answers is also written to the\n * server's `logger` (under its `errorLogDetail`) whether or not this is set, exactly as an unhandled\n * error is. Observation only; its own throws are swallowed so a faulty reporter can't break\n * rendering. (`beforeLoader` is intentionally omitted - the core HTTP hooks already cover\n * pre-request work.) */\n readonly onLoaderError?: (error: unknown, ctx: {\n readonly request: Request;\n readonly params: Readonly<Record<string, string>>;\n readonly route: string;\n }) => void;\n}"
4359
+ "signature": "export interface CreateWebAppOptions<Env = unknown> {\n readonly serverComponents?: import(\"../server-components/types.js\").ServerComponentRuntime;\n readonly adapter: RenderAdapter;\n readonly manifest: Manifest;\n /** Cache production module imports and layout preparation, never request data. Defaults to NODE_ENV === \"production\"; disable for a mutable manifest. */\n readonly cacheRouteModules?: boolean;\n /** URL of the built client entry (module script) injected into every page. */\n readonly clientEntry: string;\n /** Default document title for all pages. */\n readonly title?: string;\n /**\n * Resolve a fresh CSP nonce for each document request. The value is applied to every\n * framework-owned executable script; return `undefined` to keep the default nonce-free output.\n * Nonce-bearing documents are marked `private, no-store` so the request-specific value is not\n * replayed by browser, CDN, or ISR caches. Pass {@link cspHeader} to have nifra write the\n * Content-Security-Policy header from the same value.\n */\n readonly nonce?: NonceResolver<Env>;\n /**\n * Build the Content-Security-Policy value for each document a {@link nonce} app renders, or return\n * `undefined` to send none. nifra sets it on every document it renders - pages, status pages,\n * `_error`, streamed and deferred documents - from the nonce it put on that document's scripts, so\n * the header never depends on which `Request` object a wrapper holds. `sources` is the\n * `script-src` list the document needs: `'nonce-…'` plus a `'sha256-…'` hash for each constant\n * inline script nifra writes, which covers a document the resolver left nonce-free.\n *\n * ```ts\n * cspHeader: ({ sources }) => `default-src 'self'; script-src 'self' ${sources}; object-src 'none'`\n * ```\n *\n * Needs `nonce`; `csp` writes its own header, so the two are refused together.\n */\n readonly cspHeader?: (context: CspHeaderContext) => string | undefined;\n /**\n * A hash-based Content-Security-Policy from `createCspPolicy`, instead of `nonce`. A document then\n * carries a nonce only when it needs one (it `defer()`s a value, or `meta` names the nonce in\n * `unsafeInlineScript`); every other page is nonce-free, gets the same CSP header on every request,\n * and stays cacheable by `withISR` or a CDN. `meta` still receives a nonce to name.\n */\n readonly csp?: CspPolicy;\n /**\n * Partial prerendering, from `partialPrerendering()` in `@nifrajs/web/ppr`. A route whose backend\n * half exports `shellLoader` streams a shell shared by every visitor, then each `dynamic` boundary\n * as it settles. `csp` (hashes) is optional; `nonce` is refused, since a per-request nonce would\n * make every shell unique.\n */\n readonly ppr?: PprSetup;\n /**\n * Options for the underlying `server()` - `requestTimeoutMs`, `admission`, `gracefulSignals`, and\n * the rest of {@link ServerOptions}.\n *\n * Needed because the `Server` is constructed in here, so a caller has no other way to reach its\n * constructor: a page app could set no request timeout and no capacity gate, which are exactly the\n * two knobs a production readiness check looks for. An SSR app wants them MORE than a backend does -\n * a render is slow and allocation-heavy, so a burst that a JSON API would absorb is the one that\n * exhausts the pod.\n *\n * Applies to the whole app, {@link mounts} and the {@link api} auto-mount included: the capacity gate\n * sits at the fetch entry, ahead of the request hooks those are dispatched from.\n */\n readonly server?: ServerOptions;\n /**\n * Runs against the app BEFORE any page route is registered - the seam for `securityHeaders()`,\n * `requestId()`, `logger()`, a rate limit, or anything else applied with `use`.\n *\n * ```ts\n * createWebApp({\n * …,\n * use: (app) => {\n * app.use(securityHeaders())\n * app.use(requestId())\n * },\n * })\n * ```\n *\n * A callback rather than an array because `use` is overloaded - `Middleware`, `IdentityPlugin`,\n * `ContextPlugin` - and only the real call site instantiates the right overload. The return value\n * is ignored: this is for cross-cutting concerns, not for declaring routes (declare those on the\n * returned app, where they get their types).\n *\n * **Why the timing matters.** `beforeHandle`, `afterHandle`, `around`, `derive`/`decorate`, and\n * `onError` are snapshotted into each route AS IT IS DECLARED, and `createWebApp` declares every\n * page (plus the `/*` catch-all) before it returns - so a caller's `app.use(…)` afterwards would\n * bind them to no page, and outside production it throws (`HOOK_AFTER_PAGES`). `requestId()` is\n * exactly that case: it is a `derive`, so applied late it would leave every page without\n * `c.requestId`. A `group()` is its own scope and stays allowed. Route assurance evidence is order-scoped the same\n * way, so a late `securityHeaders()` leaves the pages unable to PROVE the header to `nifra assure`\n * even though it does still set it.\n *\n * `onRequest`/`onResponse` (and the response header/body hooks) are app-global arrays read at\n * request time, so those alone DO work when added late. Using this seam for everything avoids\n * having to remember which is which.\n *\n * Runs ahead of the {@link mounts} / {@link api} request hooks, so an `onRequest` middleware guards\n * a mounted auth handler too.\n *\n * A `ContextPlugin` applied here takes runtime effect but cannot widen the declared return type of\n * this function, so `c.requestId` is not typed on routes you declare afterwards. Named plugins are\n * idempotent, so `app.use(requestId())` on the returned app recovers the TYPE without applying the\n * plugin a second time.\n */\n readonly use?: (app: ReturnType<typeof server<Env>>) => void;\n /** Injected into each loader's `ctx.api` - typically an `inProcessClient(app)` (typed\n * per-route via `@nifrajs/client`'s `createRoutes`). Opaque to the core.\n *\n * **Auto-mount.** Every `inProcessClient(backend)` exposes the symbol-keyed platform-aware backend\n * mount interface from `@nifrajs/core/mount`; given an {@link apiPrefix}, `createWebApp` also serves\n * that backend over HTTP there: a request whose pathname starts with the prefix is dispatched before\n * page routing with the same `env`/`waitUntil` platform context, and the backend's `Response` is\n * returned untouched. The mount runs in `nifra dev` too. Without `apiPrefix` the backend is\n * loader-only.\n *\n * **Request-scoped loader calls.** While a page renders, its loaders, actions and boundaries get a\n * `ctx.api` bound to that request's platform identity: a backend handler reached through it sees the\n * visitor's `c.clientIp` (derived under this app's `server.clientIp` trust declaration), `c.env` and\n * `c.waitUntil`, so a per-caller rate limit or audit field keys on the real visitor. `c.clientIp` is\n * the supported way to read the caller - identity travels in the platform, so rebuilding a `Request`\n * does not lose it. Headers do NOT travel: the page request's `cookie` and `authorization` are never\n * copied, so a loader call is anonymous unless the loader passes headers on the call itself. */\n readonly api?: unknown;\n /** HTTP path prefix the {@link api} backend is mounted at, such as `\"/api\"`. A request whose\n * pathname is exactly the prefix or starts with `prefix + \"/\"` is dispatched to the backend before\n * page routing; the backend therefore defines its routes at the **full** path (`server().post(\"/api/\n * sync\", …)`), matching the in-process `inProcessClient` call sites. Unset or `\"\"`, nothing is\n * mounted: the app serves pages only and `api` stays a loader-only `ctx.api`. Mounting is also a\n * no-op when `api` does not expose the symbol mount.\n *\n * A page file under the prefix (`routes/api/report.tsx`) could never render - the backend answers\n * first and its 404 is final - so `createWebApp` throws, naming the file. The same holds for every\n * other pre-route mount. */\n readonly apiPrefix?: string;\n /**\n * Strip {@link apiPrefix} from the pathname before dispatching to `api` (default `false`).\n *\n * The default suits a backend that declares FULL paths (`server().post(\"/api/sync\", …)`), which is\n * right when it is only ever mounted here. Set this when the backend declares its routes WITHOUT the\n * prefix because it also runs standalone behind its own shell, so its paths cannot carry a prefix that\n * only exists when it is mounted. Without it every request 404s inside the backend, and the workaround\n * is a `Proxy` that rewrites each URL.\n */\n readonly apiStrip?: boolean;\n /**\n * Sub-apps mounted ahead of page routing - an auth handler, a webhook receiver, a stack's routes.\n *\n * Structural on purpose: anything with `{ path, app: { fetch } }` fits, so a library that exposes its\n * routes as such a list mounts as `mounts: theirRoutes` without `@nifrajs/web` taking a dependency on\n * it. `better-auth` is the motivating case - it is not a `backend` route, so `/api/auth/*` used to 404\n * silently.\n *\n * Tried longest-path-first and BEFORE the `api` mount, so a mount at `/api/auth` wins over a backend\n * at `/api` no matter which was declared first. `stripPrefix` is the per-mount form of {@link apiStrip}:\n * leave it off to pass the full path through. `opaque` states why a mount whose routes nifra cannot\n * read (better-auth's handler) is outside assurance; it is then listed as a known gap, with any\n * routes it declares reported as declared.\n */\n readonly mounts?: ReadonlyArray<{\n readonly path: string;\n readonly app: MountableApp<Env>;\n readonly stripPrefix?: boolean;\n readonly priority?: number;\n readonly fallbackOn?: 404;\n readonly opaque?: MountOptions<Env>[\"opaque\"];\n }>;\n /** Secret for **draft / preview mode** (see `enableDraft`). When set, a request carrying a valid\n * signed `__nifra_draft` cookie gets `ctx.draft === true` in loaders/actions (else always `false`).\n * Pair with `withISR({ draftSecret })` so editors bypass the cache. Omit to disable draft mode. */\n readonly draftSecret?: string;\n /**\n * Live data refresh, from `live()` in `@nifrajs/web/live`. Loaders declare keys with `ctx.live()`;\n * the app answers live loads at the runtime's load endpoint. Omit and nothing live is loaded.\n */\n readonly live?: LiveRuntimeHandle;\n /** Per-route chunk URLs (`buildClient`'s `BuildManifest.routes`) - `routeId → [layout chunks…, own\n * chunk]`. When present, each page `modulepreload`s its matched route's chunks alongside the entry,\n * so the route code downloads in parallel (no entry→route-chunk waterfall). Omit ⇒ entry-only. */\n readonly routePreload?: Readonly<Record<string, readonly string[]>>;\n /** The app's bundled stylesheet URLs (`buildClient`'s `BuildManifest.css`) - the aggregate, injected\n * as `<link rel=\"stylesheet\">` in a page's `<head>`. Used as the fallback for any route absent from\n * {@link routeStyles}. Omit ⇒ no links (dev, where Vite injects CSS, or a CSS-free app). */\n readonly styles?: readonly string[];\n /** Per-route stylesheet URLs (`buildClient`'s `BuildManifest.routeStyles`) - `routeId → [chain CSS]`.\n * When a matched route has an entry here, only those (its layout chain + own CSS) are linked instead\n * of the aggregate `styles`, so a page ships only the CSS it uses. An empty array ⇒ no `<link>` (the\n * page imports no CSS). Routes absent here fall back to `styles`. Omit ⇒ always use `styles`. */\n readonly routeStyles?: Readonly<Record<string, readonly string[]>>;\n /** Locale key -> copy chunk URL (`buildClient`'s `BuildManifest.copyChunks`, the server manifest's\n * `copyChunks`). A production client build moves copy tables (`@nifrajs/i18n/copy`) into one chunk per\n * locale; each page lists them for the browser and preloads its own. Omit ⇒ tables keep their values. */\n readonly copyChunks?: Readonly<Record<string, string>>;\n /**\n * The app's locale routing, `defineI18nRouting()` from `@nifrajs/i18n/routing`, registered once:\n * export it as `i18n` from `backend/framework.ts`. Every document then takes its locale from the\n * URL: `<html lang dir>` from the registry unless the route's meta sets `lang`, a `Content-Language`\n * header, and the locale each adapter's `useLocale()` and `<I18nProvider>` read. A route under a\n * `[lang]` or `[[lang]]` directory is checked with its `matchSegment()` before any middleware: an\n * unserved locale, or a page missing from it, is a 404, and a non-canonical prefix (`/en/x` when the\n * default is unprefixed) redirects with a 308.\n */\n readonly i18n?: WebAppI18n;\n /**\n * Activation policy for framework-owned stylesheet links (default `\"blocking\"`). `\"deferred\"`\n * emits `media=\"print\"` links; the generated client waits for them and switches them to `all` before\n * mounting. Pair with an aggregate Vite stylesheet (`cssCodeSplit: false`) to prevent lazy-prefetch\n * CSS insertion. Non-hydrated pages always keep their stylesheet links blocking.\n */\n readonly cssLoading?: CssLoadingMode;\n /** SSG: the prerendered-path set (e.g. `enumerateStaticRoutes(routes).paths` or the build's\n * `prerendered.json`). Handed over as `window.__NIFRA_PRERENDERED__` on every page so a client soft-nav\n * into a prerendered route fetches its static `_data.json` instead of hitting the worker, unless the\n * target carries a query string, which renders on demand as a hard request does. A set over\n * 4 KB of JSON is served once from `/__nifra/prerendered.json?v=<version>`, cacheable for good, and\n * pages hand over only that URL; `prerenderRoutes` writes the file into a static output. */\n readonly prerenderedPaths?: readonly string[];\n /**\n * Pages a self-hosted build prerendered, answered from their file instead of rendered. `nifra build\n * --target bun|node` wires this from its prerender pass. The page is served from the page route,\n * so `use` middleware and every request hook run first; a request with a query string, a navigation\n * data or component request, or a draft-mode visitor renders on demand as before. Ignored with\n * {@link nonce}, whose documents need a nonce minted for their request.\n */\n readonly prerenderedPages?: PrerenderedPages;\n /**\n * Which pages and files each host serves, from `createHostPolicy()`. Evaluated before everything\n * else the app answers (prerendered pages, mounts, the API, every page) and, in a `nifra build`\n * server entry, before its static files too. A refused path answers the policy's refusal.\n */\n readonly hostPolicy?: HostPolicy;\n /**\n * Which cookies say who is signed in, for an app with a `keepAlive` route. A response that changes\n * or deletes one rotates the readable identity epoch cookie, and every tab drops the pages it kept\n * for the previous visitor. The session cookies of `@nifrajs/auth` and Auth.js count under their\n * default names, Better Auth's under any `cookiePrefix`; name any other in `identityCookies`. An app\n * run by `nifra dev` and `nifra build` exports this from `backend/framework.ts`. Development reports, once per\n * name, an `HttpOnly` cookie that changes and is in neither list (`NIFRA_KEEPALIVE_IDENTITY_COOKIE`).\n */\n readonly keepAlive?: KeepAliveServerOptions;\n /**\n * The files the build emitted, by request path: `buildAssets` from the generated server manifest.\n * A {@link hostPolicy} rule's `buildAssets` token matches exactly these. `nifra dev` serves the\n * client bundle and `public/` ahead of the app, so the app's own check never sees them there.\n */\n readonly buildAssets?: BuildAssetSet;\n /** Publish the project's `AGENTS.md` inside `/llms.txt` and `/llms-full.txt`. **Off by default**:\n * those endpoints are public and unauthenticated, while `AGENTS.md` is a repo file written for the\n * team - unreleased feature names, internal hostnames, and \"don't touch X yet\" notes live there\n * routinely. Turn it on only for a repo whose guidelines you would publish as a page. */\n readonly publishLocalGuidelines?: boolean;\n /** Serve `/llms.txt` and `/llms-full.txt`: the page routes, and the backend routes when the backend\n * is mounted over HTTP at {@link apiPrefix}, with their request and response schemas in the full\n * text. **Off by default**: both are public and unauthenticated, and they list every route, admin\n * and internal ones included. Turn it on for an app whose whole surface you would publish. */\n readonly llmsTxt?: boolean;\n /** SSG: per dynamic route pattern, its `getStaticPaths` `fallback` (from `enumerateStaticRoutes` or\n * the build's `prerendered.json`). A route mapped to `\"404\"` rejects any path NOT in\n * `prerenderedPaths` with the 404 page - the unlisted path simply doesn't exist. `\"ssr\"` (the\n * default for unmapped routes) renders unlisted paths on-demand. */\n readonly staticFallbacks?: Readonly<Record<string, \"ssr\" | \"404\">>;\n /** In-memory reference cache for explicitly `static` boundary values. It never persists payloads\n * across processes; operated/durable cache implementations stay outside the public framework. */\n readonly staticBoundaryCache?: import(\"../boundary.js\").StaticBoundaryCache;\n /** Observe every loader/action failure - for error-reporting plugins (Sentry-style). Called for\n * real throws (not control-flow `Response`s like `redirect`), **before** the nearest `_error`\n * boundary renders / a soft-nav 500 / a rethrow. A failure a boundary answers is also written to the\n * server's `logger` (under its `errorLogDetail`) whether or not this is set, exactly as an unhandled\n * error is. Observation only; its own throws are swallowed so a faulty reporter can't break\n * rendering. (`beforeLoader` is intentionally omitted - the core HTTP hooks already cover\n * pre-request work.) */\n readonly onLoaderError?: (error: unknown, ctx: {\n readonly request: Request;\n readonly params: Readonly<Record<string, string>>;\n readonly route: string;\n }) => void;\n}"
4327
4360
  },
4328
4361
  {
4329
4362
  "name": "CronError",
@@ -5004,6 +5037,20 @@
5004
5037
  "package": "nifra",
5005
5038
  "signature": "export type DefinePluginResult<In extends AnyServer, Out extends AnyServer> = ServerTypeUnpinned<In> extends true ? PluginTypeCollapsed : NifraPlugin<In, Out>;"
5006
5039
  },
5040
+ {
5041
+ "name": "DehydrateOptions",
5042
+ "kind": "interface",
5043
+ "package": "@nifrajs/web",
5044
+ "signature": "export interface DehydrateOptions {\n /** Every dehydrated value is serialized into the page and readable by the visitor, so a query is\n * included only when this returns `true`. Without it `dehydrate` sends nothing. */\n readonly shouldDehydrateQuery?: (query: DehydratedQueryInfo) => boolean;\n}",
5045
+ "doc": "/** Select which successful query values may cross the SSR-to-browser boundary. */"
5046
+ },
5047
+ {
5048
+ "name": "DehydratedQueryInfo",
5049
+ "kind": "interface",
5050
+ "package": "@nifrajs/web",
5051
+ "signature": "export interface DehydratedQueryInfo {\n readonly kind: \"query\" | \"infinite\";\n readonly key: unknown;\n readonly data: unknown;\n readonly updatedAt: number;\n}",
5052
+ "doc": "/** Metadata passed to a dehydration filter before query data is sent to the browser. */"
5053
+ },
5007
5054
  {
5008
5055
  "name": "DehydratedState",
5009
5056
  "kind": "interface",
@@ -5557,7 +5604,7 @@
5557
5604
  "name": "DynamicBoundary",
5558
5605
  "kind": "type",
5559
5606
  "package": "@nifrajs/web",
5560
- "signature": "export type DynamicBoundary<Data, UI> = BoundaryBase<Data, UI> & {\n readonly mode: \"dynamic\";\n readonly load?: (ctx: BoundaryRequestCtx) => Data | Promise<Data>;\n /** Experimental, partial prerendering: the hole ships its props and hydrates. Default `false`. */\n readonly interactive?: boolean;\n /** Experimental, partial prerendering: the hole's deadline in milliseconds. Default 5000. */\n readonly timeout?: number;\n};"
5607
+ "signature": "export type DynamicBoundary<Data, UI> = BoundaryBase<Data, UI> & {\n readonly mode: \"dynamic\";\n readonly load?: (ctx: BoundaryRequestCtx) => Data | Promise<Data>;\n /** Partial prerendering: the hole ships its props and hydrates. Default `false`. */\n readonly interactive?: boolean;\n /** Partial prerendering: the hole's deadline in milliseconds. Default 5000. */\n readonly timeout?: number;\n};"
5561
5608
  },
5562
5609
  {
5563
5610
  "name": "DynamicBoundaryBatch",
@@ -6452,6 +6499,12 @@
6452
6499
  "signature": "export interface FileVersion {\n readonly dev: number;\n readonly ino: number;\n readonly size: number;\n readonly mtimeMs: number;\n readonly ctimeMs: number;\n}",
6453
6500
  "doc": "/**\n * The stat fields that tell one version of a file from another on one host: node:fs `Stats` as it is,\n * or Deno's `FileInfo` with its dates as epoch milliseconds and a field it lacks as `NaN`.\n */"
6454
6501
  },
6502
+ {
6503
+ "name": "FilledRoutePath",
6504
+ "kind": "type",
6505
+ "package": "@nifrajs/core",
6506
+ "signature": "export type FilledRoutePath = {\n readonly ok: true;\n readonly path: string;\n} | {\n readonly ok: false;\n /** Params the pattern names that `params` leaves out or holds as the empty string. */\n readonly missing: readonly string[];\n /** Params whose value cannot be carried or would be split differently by this pattern. */\n readonly invalid: readonly string[];\n};"
6507
+ },
6455
6508
  {
6456
6509
  "name": "FixOption",
6457
6510
  "kind": "interface",
@@ -6629,12 +6682,6 @@
6629
6682
  "package": "@nifrajs/testing",
6630
6683
  "signature": "export interface GenerateRegressionTestOptions {\n /** Import specifier for the app under test. Default `\"../src/app\"`. */\n readonly importPath?: string;\n /** Named export of the app. Default `\"app\"`. */\n readonly appExport?: string;\n /** Also assert the response shape. Default false (status-only is the robust regression signal). */\n readonly assertShape?: boolean;\n /** Dotted key paths in the request body whose string values are safe to embed verbatim. */\n readonly allow?: readonly string[];\n /** Query parameter names whose values are safe to embed verbatim. Default none. */\n readonly allowQuery?: readonly string[];\n /** Header names (any case) whose values are safe to embed verbatim. Default `[\"content-type\"]`. */\n readonly allowHeaders?: readonly string[];\n /** Embed the capsule's `note` verbatim. Default false: a note is free text and is redacted. */\n readonly keepNote?: boolean;\n}"
6631
6684
  },
6632
- {
6633
- "name": "GenerateRouteSearchTypesOptions",
6634
- "kind": "interface",
6635
- "package": "@nifrajs/web",
6636
- "signature": "export interface GenerateRouteSearchTypesOptions {\n /** Turn a route source file into a module specifier for a `typeof import(...)` type - the same contract\n * as `generateClientEntry`'s `resolve`, but WITHOUT a file extension (a `.d.ts` imports a module, not a\n * path). Relative to wherever the emitted `.d.ts` is written. */\n readonly resolve: (file: string) => string;\n /** The module whose `RouteSearch` interface is augmented (default `\"@nifrajs/web\"`). Every adapter's\n * `NavigateTarget` reads `@nifrajs/web`'s `RouteSearch`, so the default types `navigate` on all of them. */\n readonly module?: string;\n}"
6637
- },
6638
6685
  {
6639
6686
  "name": "GenerateServerManifestOptions",
6640
6687
  "kind": "interface",
@@ -6860,28 +6907,28 @@
6860
6907
  "kind": "function",
6861
6908
  "package": "@nifrajs/web-preact",
6862
6909
  "signature": "export declare function Hole<Data>(props: HoleProps<Data>): ComponentChildren;",
6863
- "doc": "/**\n * Experimental: one `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Preact never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own root from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive root re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6910
+ "doc": "/**\n * One `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Preact never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own root from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive root re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6864
6911
  },
6865
6912
  {
6866
6913
  "name": "Hole",
6867
6914
  "kind": "function",
6868
6915
  "package": "@nifrajs/web-react",
6869
6916
  "signature": "export declare function Hole<Data>(props: HoleProps<Data>): ReactNode;",
6870
- "doc": "/**\n * Experimental: one `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host React never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own root from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive root re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6917
+ "doc": "/**\n * One `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host React never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own root from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive root re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6871
6918
  },
6872
6919
  {
6873
6920
  "name": "Hole",
6874
6921
  "kind": "function",
6875
6922
  "package": "@nifrajs/web-solid",
6876
6923
  "signature": "export declare function Hole<Data>(props: HoleProps<Data>): JSX.Element;",
6877
- "doc": "/**\n * Experimental: one `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Solid never fills: the PPR runtime puts the server's\n * HTML into it, and an interactive hole then hydrates as its own root from the frame's props. When the\n * page reloads, after an action or a live change, the same host takes the new fill in place: an\n * interactive root gets the new props through its store and keeps its state. After a client\n * navigation the hole renders like any streamed boundary.\n */"
6924
+ "doc": "/**\n * One `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Solid never fills: the PPR runtime puts the server's\n * HTML into it, and an interactive hole then hydrates as its own root from the frame's props. When the\n * page reloads, after an action or a live change, the same host takes the new fill in place: an\n * interactive root gets the new props through its store and keeps its state. After a client\n * navigation the hole renders like any streamed boundary.\n */"
6878
6925
  },
6879
6926
  {
6880
6927
  "name": "Hole",
6881
6928
  "kind": "const",
6882
6929
  "package": "@nifrajs/web-vue",
6883
6930
  "signature": "export declare const Hole: new <Data>(props: HoleProps<Data> & {} & import(\"vue\").VNodeProps & import(\"vue\").AllowedComponentProps & import(\"vue\").ComponentCustomProps) => import(\"vue\").CreateComponentPublicInstanceWithMixins<HoleProps<Data> & {}, {}, {}, {}, {}, import(\"vue\").ComponentOptionsMixin, import(\"vue\").ComponentOptionsMixin, {}, import(\"vue\").PublicProps, {}, false, {}, HoleSlots, {}, {}, string, {}, any, import(\"vue\").ComponentProvideOptions, {\n P: {};\n B: {};\n D: {};\n C: {};\n M: {};\n Defaults: {};\n}, HoleProps<Data> & {}, {}, {}, {}, {}, {}>;",
6884
- "doc": "/**\n * Experimental: one `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Vue never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own app from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive app re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6931
+ "doc": "/**\n * One `dynamic` or `shared` boundary of a partially prerendered page.\n *\n * In a shared shell the hole is an empty host Vue never fills or diffs: the PPR runtime puts the\n * server's HTML into it, and an interactive hole then hydrates as its own app from the frame's props.\n * When the page reloads, after an action or a live change, the host takes the new fill in place: an\n * interactive app re-renders with the new props and keeps its state. After a client navigation the\n * hole renders like any streamed boundary.\n */"
6885
6932
  },
6886
6933
  {
6887
6934
  "name": "HoleDefinition",
@@ -7014,6 +7061,20 @@
7014
7061
  "package": "@nifrajs/agent",
7015
7062
  "signature": "export type HostileCodeIsolation = \"none\" | \"os\";"
7016
7063
  },
7064
+ {
7065
+ "name": "Href",
7066
+ "kind": "type",
7067
+ "package": "@nifrajs/web",
7068
+ "signature": "export type Href<Pattern extends string = string> = string & {\n readonly \"~nifraHref\": Pattern;\n};",
7069
+ "doc": "/**\n * An in-app URL: what `href()` builds from a route and `rawHref()` returns for a checked path. A string\n * at runtime, a branded string to the compiler, so a plain string or a template literal is not assignable\n * to it. `Pattern` is the {@link RouteTable} key it was built for. The brand is a named property, not a\n * `unique symbol`, so an `Href` from one copy of this package is assignable to another's.\n */"
7070
+ },
7071
+ {
7072
+ "name": "HrefOptions",
7073
+ "kind": "type",
7074
+ "package": "@nifrajs/web",
7075
+ "signature": "export type HrefOptions<K extends Pattern> = {\n readonly to: K;\n readonly search?: SearchOfRoute<K> | undefined;\n readonly hash?: string | undefined;\n} & ParamsOption<K> & SlotOptions<K>;",
7076
+ "doc": "/**\n * What {@link href} takes: the route's pattern as `to`, its `params` (required when the pattern has\n * any, absent when it has none), the route's `search` as its `searchSchema` outputs it, and the `hash`\n * without its `#`.\n */"
7077
+ },
7017
7078
  {
7018
7079
  "name": "HreflangLink",
7019
7080
  "kind": "interface",
@@ -7076,6 +7137,13 @@
7076
7137
  "signature": "export interface HydrationAssuranceOptions {\n readonly onWarning?: (message: string) => void;\n}",
7077
7138
  "doc": "/** Hydrate a server-rendered Vue layout `chain` (with the loader `props`) inside `container`. */"
7078
7139
  },
7140
+ {
7141
+ "name": "HydrationBoundary",
7142
+ "kind": "function",
7143
+ "package": "@nifrajs/web-preact",
7144
+ "signature": "export declare function HydrationBoundary(props: {\n readonly state: DehydratedState | undefined;\n readonly children?: ComponentChildren;\n}): ComponentChildren;",
7145
+ "doc": "/** Seed the provider's cache before its child queries read their first snapshot. */"
7146
+ },
7079
7147
  {
7080
7148
  "name": "HydrationBoundary",
7081
7149
  "kind": "function",
@@ -7140,7 +7208,7 @@
7140
7208
  "name": "I18nRoutingOptions",
7141
7209
  "kind": "interface",
7142
7210
  "package": "@nifrajs/i18n",
7143
- "signature": "export interface I18nRoutingOptions<K extends string = string> {\n /** Prefix the default locale too (`/en/about` instead of `/about`). Default `false`. */\n readonly prefixDefaultLocale?: boolean;\n /**\n * The locales a page exists in, by its pathname without the locale prefix, query or hash\n * (`/learn/x`); `undefined` for every served locale. It must be pure: every page of one cluster\n * has to answer the same set, or the alternates stop being reciprocal. A draft locale it names is\n * left out; a key the registry does not declare throws.\n *\n * ```ts\n * pageLocales: (pathname) => (pathname.startsWith(\"/learn/\") ? [\"en\", \"hi\"] : undefined)\n * ```\n */\n readonly pageLocales?: (pathname: string) => readonly K[] | undefined;\n}"
7211
+ "signature": "export interface I18nRoutingOptions<K extends string = string> {\n /** Prefix the default locale too (`/en/about` instead of `/about`). Default `false`. */\n readonly prefixDefaultLocale?: boolean;\n /** Explicit static, unprefixed canonical path → locale path mappings. Missing translations keep\n * the canonical pathname; availability still comes from `pageLocales`. No filesystem aliases,\n * dynamic slug translation or domain routing are created. Unicode is emitted percent-encoded. */\n readonly pathnames?: Readonly<Record<string, Partial<Record<K, string | undefined>>>>;\n /**\n * The locales a page exists in, by its canonical pathname without the locale prefix, query or hash\n * (`/learn/x`, the declared key for a mapped page); `undefined` for every served locale. It must be\n * pure: every page of one cluster has to answer the same set, or alternates stop being reciprocal.\n * A draft locale it names is left out; a key the registry does not declare throws.\n *\n * ```ts\n * pageLocales: (pathname) => (pathname.startsWith(\"/learn/\") ? [\"en\", \"hi\"] : undefined)\n * ```\n */\n readonly pageLocales?: (pathname: string) => readonly K[] | undefined;\n}"
7144
7212
  },
7145
7213
  {
7146
7214
  "name": "IDEMPOTENT_REPLAY_HEADER",
@@ -7379,28 +7447,40 @@
7379
7447
  "name": "Image",
7380
7448
  "kind": "function",
7381
7449
  "package": "@nifrajs/web-preact",
7382
- "signature": "export declare function Image(props: ImageComponentProps): VNode;",
7383
- "doc": "/**\n * Render a responsive, CLS-safe `<img>`. `width`+`height` are required (reserve layout space);\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7450
+ "signature": "export declare function Image(props: ImageComponentProps | StaticImageComponentProps): VNode;",
7451
+ "doc": "/**\n * Render a responsive, CLS-safe `<img>`. String URLs require dimensions; asset imports infer them;\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7384
7452
  },
7385
7453
  {
7386
7454
  "name": "Image",
7387
7455
  "kind": "function",
7388
7456
  "package": "@nifrajs/web-react",
7389
- "signature": "export declare function Image(props: ImageComponentProps): ReactElement;",
7390
- "doc": "/**\n * Render a responsive, CLS-safe `<img>`. `width`+`height` are required (reserve layout space);\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7457
+ "signature": "export declare function Image(props: ImageComponentProps | StaticImageComponentProps): ReactElement;",
7458
+ "doc": "/**\n * Render a responsive, CLS-safe `<img>`. String URLs require dimensions; asset imports infer them;\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7391
7459
  },
7392
7460
  {
7393
7461
  "name": "Image",
7394
7462
  "kind": "function",
7395
7463
  "package": "@nifrajs/web-solid",
7396
- "signature": "export declare function Image(props: ImageComponentProps): JSX.Element;",
7397
- "doc": "/**\n * Render a responsive, CLS-safe `<img>`. `width`+`height` are required (reserve layout space);\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7464
+ "signature": "export declare function Image(props: ImageComponentProps | StaticImageComponentProps): JSX.Element;",
7465
+ "doc": "/**\n * Render a responsive, CLS-safe `<img>`. String URLs require dimensions; asset imports infer them;\n * `priority` marks the LCP image (`eager` + `fetchpriority=\"high\"`). Extra DOM props pass through.\n */"
7398
7466
  },
7399
7467
  {
7400
7468
  "name": "Image",
7401
7469
  "kind": "const",
7402
7470
  "package": "@nifrajs/web-vue",
7403
- "signature": "export declare const Image: import(\"vue\").DefineComponent<import(\"vue\").ExtractPropTypes<{\n src: {\n type: StringConstructor;\n required: true;\n };\n width: {\n type: NumberConstructor;\n required: true;\n };\n height: {\n type: NumberConstructor;\n required: true;\n };\n alt: {\n type: StringConstructor;\n required: true;\n };\n sizes: {\n type: StringConstructor;\n required: false;\n default: undefined;\n };\n widths: {\n type: PropType<readonly number[]>;\n required: false;\n default: undefined;\n };\n quality: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n loading: {\n type: PropType<\"lazy\" | \"eager\">;\n required: false;\n default: undefined;\n };\n priority: {\n type: BooleanConstructor;\n required: false;\n default: undefined;\n };\n loader: {\n type: PropType<ImageLoader>;\n required: false;\n default: undefined;\n };\n}>, () => import(\"vue\").VNode<import(\"vue\").RendererNode, import(\"vue\").RendererElement, {\n [key: string]: any;\n}>, {}, {}, {}, import(\"vue\").ComponentOptionsMixin, import(\"vue\").ComponentOptionsMixin, {}, string, import(\"vue\").PublicProps, Readonly<import(\"vue\").ExtractPropTypes<{\n src: {\n type: StringConstructor;\n required: true;\n };\n width: {\n type: NumberConstructor;\n required: true;\n };\n height: {\n type: NumberConstructor;\n required: true;\n };\n alt: {\n type: StringConstructor;\n required: true;\n };\n sizes: {\n type: StringConstructor;\n required: false;\n default: undefined;\n };\n widths: {\n type: PropType<readonly number[]>;\n required: false;\n default: undefined;\n };\n quality: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n loading: {\n type: PropType<\"lazy\" | \"eager\">;\n required: false;\n default: undefined;\n };\n priority: {\n type: BooleanConstructor;\n required: false;\n default: undefined;\n };\n loader: {\n type: PropType<ImageLoader>;\n required: false;\n default: undefined;\n };\n}>> & Readonly<{}>, {\n sizes: string;\n widths: readonly number[];\n quality: number;\n loading: \"lazy\" | \"eager\";\n priority: boolean;\n loader: ImageLoader;\n}, {}, {}, {}, string, import(\"vue\").ComponentProvideOptions, true, {}, any>;"
7471
+ "signature": "export declare const Image: import(\"vue\").DefineComponent<import(\"vue\").ExtractPropTypes<{\n src: {\n type: PropType<string | StaticImageData>;\n required: true;\n };\n width: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n height: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n alt: {\n type: StringConstructor;\n required: true;\n };\n sizes: {\n type: StringConstructor;\n required: false;\n default: undefined;\n };\n widths: {\n type: PropType<readonly number[]>;\n required: false;\n default: undefined;\n };\n quality: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n loading: {\n type: PropType<\"lazy\" | \"eager\">;\n required: false;\n default: undefined;\n };\n priority: {\n type: BooleanConstructor;\n required: false;\n default: undefined;\n };\n loader: {\n type: PropType<ImageLoader>;\n required: false;\n default: undefined;\n };\n}>, () => import(\"vue\").VNode<import(\"vue\").RendererNode, import(\"vue\").RendererElement, {\n [key: string]: any;\n}>, {}, {}, {}, import(\"vue\").ComponentOptionsMixin, import(\"vue\").ComponentOptionsMixin, {}, string, import(\"vue\").PublicProps, Readonly<import(\"vue\").ExtractPropTypes<{\n src: {\n type: PropType<string | StaticImageData>;\n required: true;\n };\n width: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n height: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n alt: {\n type: StringConstructor;\n required: true;\n };\n sizes: {\n type: StringConstructor;\n required: false;\n default: undefined;\n };\n widths: {\n type: PropType<readonly number[]>;\n required: false;\n default: undefined;\n };\n quality: {\n type: NumberConstructor;\n required: false;\n default: undefined;\n };\n loading: {\n type: PropType<\"lazy\" | \"eager\">;\n required: false;\n default: undefined;\n };\n priority: {\n type: BooleanConstructor;\n required: false;\n default: undefined;\n };\n loader: {\n type: PropType<ImageLoader>;\n required: false;\n default: undefined;\n };\n}>> & Readonly<{}>, {\n width: number;\n height: number;\n sizes: string;\n widths: readonly number[];\n quality: number;\n loading: \"lazy\" | \"eager\";\n priority: boolean;\n loader: ImageLoader;\n}, {}, {}, {}, string, import(\"vue\").ComponentProvideOptions, true, {}, any>;"
7472
+ },
7473
+ {
7474
+ "name": "ImageAssetPlugin",
7475
+ "kind": "interface",
7476
+ "package": "@nifrajs/image",
7477
+ "signature": "export interface ImageAssetPlugin {\n /** Nifra emits these content-hashed files with the bundle, never into the application's sources. */\n nifraStaticAssets(): readonly ImageBuildAsset[];\n /** The URL prefix baked into the imports; a build with another publicPath refuses the plugin. */\n readonly nifraPublicPath?: string;\n}"
7478
+ },
7479
+ {
7480
+ "name": "ImageAssets",
7481
+ "kind": "interface",
7482
+ "package": "@nifrajs/image",
7483
+ "signature": "export interface ImageAssets {\n /** Start a new module graph without retaining images from an earlier build. */\n clear(): void;\n load(file: string): Promise<StaticImageData>;\n assets(): readonly ImageBuildAsset[];\n}"
7404
7484
  },
7405
7485
  {
7406
7486
  "name": "ImageBackend",
@@ -7409,6 +7489,26 @@
7409
7489
  "signature": "export interface ImageBackend {\n /** Cheap, header-only metadata read. Throws {@link ImageProcessingError} (`decode` / `too_large`). */\n probe(bytes: Uint8Array): Promise<ImageProbe>;\n /** Decode → resize to `input.width` (aspect-preserving) → encode to `input.format`. */\n transform(input: ResizeInput): Promise<ResizeOutput>;\n}",
7410
7490
  "doc": "/**\n * The codec seam. The handler owns all request-level security (validation, SSRF, byte/pixel caps,\n * concurrency, caching); a backend only decodes/resizes/encodes. Backends MUST translate codec failures\n * into {@link ImageProcessingError} so the handler can map them to stable HTTP statuses.\n */"
7411
7491
  },
7492
+ {
7493
+ "name": "ImageBuildAsset",
7494
+ "kind": "interface",
7495
+ "package": "@nifrajs/image",
7496
+ "signature": "export interface ImageBuildAsset {\n readonly fileName: string;\n readonly source: Uint8Array;\n}",
7497
+ "doc": "/** The structural asset hook consumed by Nifra's build pipelines. Paths are relative to /assets/. */"
7498
+ },
7499
+ {
7500
+ "name": "ImageBuildOptions",
7501
+ "kind": "interface",
7502
+ "package": "@nifrajs/image",
7503
+ "signature": "export interface ImageBuildOptions {\n /** Only local files beneath this directory may be imported (symlinks are resolved). */\n readonly root?: string;\n /** Match the client build's publicPath: a root-relative prefix or an absolute http(s) CDN URL.\n * Default `/assets/`. */\n readonly publicPath?: string;\n /** Omit for codec-free metadata imports. Requested widths are clamped to the source width. */\n readonly widths?: readonly number[];\n /** Required when widths are requested; inject sharp, Bun.Image, or a WASM backend explicitly. */\n readonly backend?: ImageBackend;\n readonly format?: OutputFormat;\n readonly quality?: number;\n readonly maxSourceBytes?: number;\n readonly maxSourcePixels?: number;\n}"
7504
+ },
7505
+ {
7506
+ "name": "ImageBunPlugin",
7507
+ "kind": "interface",
7508
+ "package": "@nifrajs/image",
7509
+ "signature": "export interface ImageBunPlugin extends ImageAssetPlugin {\n readonly name: string;\n setup(build: ImageBunBuild): void;\n}",
7510
+ "doc": "/** Structural Bun hooks keep the shared plugin entry usable without Bun's ambient types. */"
7511
+ },
7412
7512
  {
7413
7513
  "name": "ImageComponentProps",
7414
7514
  "kind": "interface",
@@ -7452,6 +7552,12 @@
7452
7552
  "package": "@nifrajs/image",
7453
7553
  "signature": "export interface ImageInfo {\n readonly width: number;\n readonly height: number;\n readonly format: ImageFormat;\n}"
7454
7554
  },
7555
+ {
7556
+ "name": "ImageInputProps",
7557
+ "kind": "type",
7558
+ "package": "@nifrajs/image",
7559
+ "signature": "export type ImageInputProps = ImageProps | StaticImageProps;"
7560
+ },
7455
7561
  {
7456
7562
  "name": "ImageLoader",
7457
7563
  "kind": "type",
@@ -7466,6 +7572,12 @@
7466
7572
  "signature": "export declare class ImagePixelLimitError extends Error {\n readonly width: number;\n readonly height: number;\n readonly maxPixels: number;\n constructor(width: number, height: number, maxPixels: number);\n}",
7467
7573
  "doc": "/** Thrown before decoding a source larger than `maxPixels`; answer it with a `413`. */"
7468
7574
  },
7575
+ {
7576
+ "name": "ImagePresentationProps",
7577
+ "kind": "interface",
7578
+ "package": "@nifrajs/image",
7579
+ "signature": "export interface ImagePresentationProps {\n /** Alt text - **required** for accessibility (use `alt=\"\"` for decorative images). */\n readonly alt: string;\n /** `sizes` attribute for responsive selection (e.g. `\"(max-width: 600px) 100vw, 600px\"`). */\n readonly sizes?: string;\n /** Widths to generate `srcSet` entries for. Default: `[width, width*2]` (1×/2× retina). */\n readonly widths?: readonly number[];\n /** Quality passed to the loader. */\n readonly quality?: number;\n /** `lazy` (default) or `eager`. `priority` overrides this to eager. */\n readonly loading?: \"lazy\" | \"eager\";\n /** Mark the LCP image: `loading=\"eager\"` + `fetchpriority=\"high\"`. */\n readonly priority?: boolean;\n}"
7580
+ },
7469
7581
  {
7470
7582
  "name": "ImageProbe",
7471
7583
  "kind": "interface",
@@ -7484,7 +7596,8 @@
7484
7596
  "name": "ImageProps",
7485
7597
  "kind": "interface",
7486
7598
  "package": "@nifrajs/image",
7487
- "signature": "export interface ImageProps {\n readonly src: string;\n /** Intrinsic width (px) - **required**, reserves layout space (no CLS). */\n readonly width: number;\n /** Intrinsic height (px) - **required** (no CLS). */\n readonly height: number;\n /** Alt text - **required** for accessibility (use `alt=\"\"` for decorative images). */\n readonly alt: string;\n /** `sizes` attribute for responsive selection (e.g. `\"(max-width: 600px) 100vw, 600px\"`). */\n readonly sizes?: string;\n /** Widths to generate `srcSet` entries for. Default: `[width, width*2]` (1×/2× retina). */\n readonly widths?: readonly number[];\n /** Quality passed to the loader. */\n readonly quality?: number;\n /** `lazy` (default) or `eager`. `priority` overrides this to eager. */\n readonly loading?: \"lazy\" | \"eager\";\n /** Mark the LCP image: `loading=\"eager\"` + `fetchpriority=\"high\"`. */\n readonly priority?: boolean;\n}"
7599
+ "signature": "export interface ImageProps extends ImagePresentationProps {\n readonly src: string;\n readonly width: number;\n readonly height: number;\n}",
7600
+ "doc": "/** String URLs retain the original, extendable props contract. */"
7488
7601
  },
7489
7602
  {
7490
7603
  "name": "ImageReencoder",
@@ -7493,6 +7606,13 @@
7493
7606
  "signature": "export interface ImageReencoder {\n probe(bytes: Uint8Array): Promise<{\n readonly width: number;\n readonly height: number;\n readonly format: string;\n }>;\n transform(input: {\n readonly bytes: Uint8Array;\n readonly width: number;\n readonly quality: number;\n readonly format: StripFormat;\n }): Promise<{\n readonly bytes: Uint8Array;\n }>;\n}",
7494
7607
  "doc": "/** The slice of `@nifrajs/image`'s `ImageBackend` this needs - `probe` for dims/format, `transform` to re-encode. */"
7495
7608
  },
7609
+ {
7610
+ "name": "ImageVitePlugin",
7611
+ "kind": "interface",
7612
+ "package": "@nifrajs/image",
7613
+ "signature": "export interface ImageVitePlugin extends ImageAssetPlugin {\n readonly name: string;\n readonly enforce: \"pre\";\n configResolved(): void;\n load(this: ImageLoadContext, id: string): Promise<string | undefined>;\n configureServer(server: ImageDevServer): void;\n}",
7614
+ "doc": "/** Structural Vite plugin type: the image package does not depend on Vite at runtime. */"
7615
+ },
7496
7616
  {
7497
7617
  "name": "ImpactReport",
7498
7618
  "kind": "interface",
@@ -7689,6 +7809,20 @@
7689
7809
  "signature": "export interface InfiniteQueryOptions<T, P> extends QueryOptions {\n /** The param the FIRST page is fetched with. */\n readonly initialPageParam: P;\n /** Derive the next page's param from the last fetched page (and all pages/params). `undefined`/`null`\n * ⇒ no next page (`hasNextPage` is false). */\n readonly getNextPageParam: (lastPage: T, allPages: readonly T[], lastPageParam: P, allPageParams: readonly P[]) => P | undefined | null;\n /** Derive the previous page's param (for bidirectional infinite lists). Omit ⇒ no previous page. */\n readonly getPreviousPageParam?: (firstPage: T, allPages: readonly T[], firstPageParam: P, allPageParams: readonly P[]) => P | undefined | null;\n}",
7690
7810
  "doc": "/** Options for an {@link InfiniteQueryHandle}. `getNextPageParam` (required) derives the param for the\n * next page from the last page - return `undefined`/`null` to signal there is no next page. */"
7691
7811
  },
7812
+ {
7813
+ "name": "InfiniteQuerySnapshot",
7814
+ "kind": "interface",
7815
+ "package": "@nifrajs/web-svelte",
7816
+ "signature": "export interface InfiniteQuerySnapshot<T, P> extends QueryState<InfiniteData<T, P>> {\n readonly hasNextPage: boolean;\n readonly hasPreviousPage: boolean;\n}",
7817
+ "doc": "/** Svelte's infinite-query snapshot includes page availability alongside the shared query state. */"
7818
+ },
7819
+ {
7820
+ "name": "InfiniteQueryStore",
7821
+ "kind": "type",
7822
+ "package": "@nifrajs/web-svelte",
7823
+ "signature": "export type InfiniteQueryStore<T, P> = Readable<InfiniteQuerySnapshot<T, P>> & {\n readonly fetchNextPage: () => Promise<InfiniteData<T, P>>;\n readonly fetchPreviousPage: () => Promise<InfiniteData<T, P>>;\n readonly refetch: () => Promise<InfiniteData<T, P>>;\n};",
7824
+ "doc": "/** A Svelte readable infinite-query snapshot with page controls. */"
7825
+ },
7692
7826
  {
7693
7827
  "name": "InjectedClock",
7694
7828
  "kind": "interface",
@@ -8016,6 +8150,13 @@
8016
8150
  "package": "@nifrajs/content",
8017
8151
  "signature": "export type JoinedRow<Left extends Record<string, unknown>, Right extends Record<string, unknown>, Cardinality extends JoinCardinality> = {\n readonly left: Entry<Left>;\n readonly right: Cardinality extends \"one-to-one\" ? Entry<Right> | null : ReadonlyArray<Entry<Right>>;\n};"
8018
8152
  },
8153
+ {
8154
+ "name": "JsonByteLimitError",
8155
+ "kind": "class",
8156
+ "package": "@nifrajs/core",
8157
+ "signature": "export declare class JsonByteLimitError extends RangeError {\n constructor();\n}",
8158
+ "doc": "/** A JSON value would exceed the caller's UTF-8 byte budget. */"
8159
+ },
8019
8160
  {
8020
8161
  "name": "JsonReplyContext",
8021
8162
  "kind": "interface",
@@ -8487,7 +8628,7 @@
8487
8628
  "name": "LinkProps",
8488
8629
  "kind": "interface",
8489
8630
  "package": "@nifrajs/web-react",
8490
- "signature": "export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"href\"> {\n /** Same-origin destination path (e.g. `/users/7?tab=posts`). Rendered as the `<a href>`. */\n readonly to: string;\n /** Replace the current history entry instead of pushing. */\n readonly replace?: boolean;\n /** When the link warms its route ahead of a click - rendered as `data-nifra-prefetch`. Unset, the\n * nearest ancestor's `data-nifra-prefetch` decides, else `intent` (hover or focus). */\n readonly prefetch?: PrefetchMode;\n}",
8631
+ "signature": "export interface LinkProps extends Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"href\"> {\n /** The destination: an `Href` from `href()` or `rawHref()`. Rendered as the `<a href>`. A value that is\n * not a same-origin path (a forged `Href`) renders the `<a>` without an `href`, does nothing on click and\n * logs a `console.error`; a link to another site is a plain `<a>`. */\n readonly to: Href;\n /** Replace the current history entry instead of pushing. */\n readonly replace?: boolean;\n /** When the link warms its route ahead of a click - rendered as `data-nifra-prefetch`. Unset, the\n * nearest ancestor's `data-nifra-prefetch` decides, else `intent` (hover or focus). */\n readonly prefetch?: PrefetchMode;\n}",
8491
8632
  "doc": "/** {@link Link} props: every `<a>` attribute except `href` (set from `to`), plus `to`, `replace` and\n * `prefetch`. */"
8492
8633
  },
8493
8634
  {
@@ -8651,6 +8792,12 @@
8651
8792
  "package": "@nifrajs/web",
8652
8793
  "signature": "export interface LoadGoogleFontResult {\n readonly family: string;\n /** A self-hosted `@font-face` stylesheet (one rule per written file). Import it from your app. */\n readonly css: string;\n /** Every file written to `outDir`. */\n readonly assets: readonly FontAsset[];\n /** `fontPreload()` link-attribute sets - spread the ones you want into a layout's `meta.link`.\n * Preloading *every* weight/subset is wasteful; usually preload just the primary subset + weight. */\n readonly preloads: readonly LinkDescriptor[];\n}"
8653
8794
  },
8795
+ {
8796
+ "name": "LoadedRouteSlot",
8797
+ "kind": "interface",
8798
+ "package": "@nifrajs/web",
8799
+ "signature": "export interface LoadedRouteSlot {\n readonly routeId: string;\n readonly path: string;\n readonly params: Record<string, string>;\n readonly search: Record<string, unknown>;\n readonly data: unknown;\n readonly serverComponents?: ComponentState;\n readonly layoutData?: readonly unknown[];\n readonly boundaries?: BoundaryStates;\n readonly live?: unknown;\n /** Parent path binds the loaded view to the authorization context that requested it. */\n readonly parentPath: string;\n readonly matchChain?: MatchChain;\n readonly chain: readonly unknown[];\n}"
8800
+ },
8654
8801
  {
8655
8802
  "name": "Loader",
8656
8803
  "kind": "type",
@@ -8820,7 +8967,7 @@
8820
8967
  "name": "LocalizedRouter",
8821
8968
  "kind": "interface",
8822
8969
  "package": "@nifrajs/i18n",
8823
- "signature": "export interface LocalizedRouter<K extends string = string> {\n /** The registry this router reads. */\n readonly locales: Locales<K>;\n /** Prefix `path` with `locale` (`/about` → `/fr/about`), unless it is the unprefixed default.\n * The query and trailing slash ride along, the hash too; an already-prefixed path is re-prefixed.\n * A locale that is not served throws. */\n localizePathname(path: string, locale: K, options?: LocalizeOptions): string;\n /** Strip a served locale prefix (`/fr/about` → `{ locale: \"fr\", pathname: \"/about\" }`). Anything\n * else - `/frank`, a draft's prefix - returns `{ locale: undefined }` with the path unchanged. */\n unlocalizePathname(path: string): UnlocalizedPath<K>;\n /** The served locale a path's first segment names, or `undefined` when unprefixed. */\n getPathLocale(path: string): K | undefined;\n /** The locale a path is in: its prefix, or the default for an unprefixed path. */\n localeOf(path: string): K;\n /** The served locales the page at `path` exists in (any prefix, or none), in registry order: what\n * `pageLocales` says, or every served locale. Also a prerender's static paths. */\n localesOf(path: string): readonly K[];\n /** The page's canonical URL and its `hreflang` alternates, one per locale the page exists in\n * (`pageLocales`, unless `options.locales` names them). `path` may carry any served prefix or none\n * (it decides the canonical's locale); its query is kept and its hash dropped. A page in one locale\n * only, or in none, has no alternates. */\n alternates(path: string, options?: AlternatesOptions<K>): Alternates;\n /**\n * Check the value of a `[lang]` / `[[lang]]` route segment that is the path's first segment.\n * `pathname` is the request's path (query allowed), used to build a redirect. A page that does not\n * exist in the locale (`pageLocales`) is not found.\n *\n * ```ts\n * // routes/[lang]/_layout.backend.ts\n * import { notFound, type RouteMiddleware, redirect } from \"@nifrajs/web\"\n * import { urls } from \"../../shared/i18n\"\n *\n * export const middleware: RouteMiddleware = (ctx) => {\n * const { pathname, search } = new URL(ctx.request.url)\n * const match = urls.matchSegment(ctx.params.lang, pathname + search)\n * if (match.kind === \"not-found\") notFound()\n * if (match.kind === \"redirect\") return redirect(match.location, { status: 308 })\n * }\n * ```\n */\n matchSegment(value: string | undefined, pathname: string): SegmentMatch<K>;\n}"
8970
+ "signature": "export interface LocalizedRouter<K extends string = string> {\n /** The registry this router reads. */\n readonly locales: Locales<K>;\n /** Prefix `path` with `locale` (`/about` → `/fr/about`), unless it is the unprefixed default.\n * The query and trailing slash ride along, the hash too; an already-localized path is translated\n * through its canonical mapping. A locale that is not served throws. */\n localizePathname(path: string, locale: K, options?: LocalizeOptions): string;\n /** Strip a served locale prefix and resolve a translated static pathname to its canonical path.\n * Unmapped paths keep their spelling; unknown and draft prefixes remain ordinary segments. */\n unlocalizePathname(path: string): UnlocalizedPath<K>;\n /** The served locale a path's first segment names, or `undefined` when unprefixed. */\n getPathLocale(path: string): K | undefined;\n /** The locale a path is in: its prefix, or the default for an unprefixed path. */\n localeOf(path: string): K;\n /** The served locales the page at `path` exists in (any prefix, or none), in registry order: what\n * `pageLocales` says, or every served locale. The callback sees the canonical mapping key. */\n localesOf(path: string): readonly K[];\n /** Mapped public paths only, in mapping declaration then served registry order, filtered by\n * `pageLocales`. Unmapped filesystem routes are not enumerated. No query, hash or trailing slash. */\n staticPathnames(): readonly string[];\n /** The page's canonical URL and its `hreflang` alternates, one per locale the page exists in\n * (`pageLocales`, unless `options.locales` names them). `path` may carry any served prefix or none\n * (it decides the canonical's locale); its query is kept and its hash dropped. A page in one locale\n * only, or in none, has no alternates. */\n alternates(path: string, options?: AlternatesOptions<K>): Alternates;\n /**\n * Check the value of a `[lang]` / `[[lang]]` route segment that is the path's first segment.\n * `pathname` is the request's path (query allowed), used to build a redirect. A page that does not\n * exist in the locale (`pageLocales`) is not found.\n *\n * ```ts\n * // routes/[lang]/_layout.backend.ts\n * import { notFound, type RouteMiddleware, redirect } from \"@nifrajs/web\"\n * import { urls } from \"../../shared/i18n\"\n *\n * export const middleware: RouteMiddleware = (ctx) => {\n * const { pathname, search } = new URL(ctx.request.url)\n * const match = urls.matchSegment(ctx.params.lang, pathname + search)\n * if (match.kind === \"not-found\") notFound()\n * if (match.kind === \"redirect\") return redirect(match.location, { status: 308 })\n * }\n * ```\n */\n matchSegment(value: string | undefined, pathname: string): SegmentMatch<K>;\n}"
8824
8971
  },
8825
8972
  {
8826
8973
  "name": "Location",
@@ -9920,14 +10067,28 @@
9920
10067
  "name": "MutationCallbacks",
9921
10068
  "kind": "interface",
9922
10069
  "package": "@nifrajs/web",
9923
- "signature": "export interface MutationCallbacks<TData, TVariables> {\n readonly onMutate?: (variables: TVariables) => void | Promise<void>;\n readonly onSuccess?: (data: TData, variables: TVariables) => void | Promise<void>;\n readonly onError?: (error: unknown, variables: TVariables) => void | Promise<void>;\n readonly onSettled?: (data: TData | undefined, error: unknown, variables: TVariables) => void | Promise<void>;\n}",
10070
+ "signature": "export interface MutationCallbacks<TData, TVariables> {\n readonly onMutate?: (variables: TVariables, context: MutationContext) => void | Promise<void>;\n readonly onSuccess?: (data: TData, variables: TVariables, context: MutationContext) => void | Promise<void>;\n readonly onError?: (error: unknown, variables: TVariables, context: MutationContext) => void | Promise<void>;\n readonly onSettled?: (data: TData | undefined, error: unknown, variables: TVariables, context: MutationContext) => void | Promise<void>;\n}",
9924
10071
  "doc": "/** Lifecycle callbacks for a mutation. All optional; `onSettled` runs after success OR error. */"
9925
10072
  },
10073
+ {
10074
+ "name": "MutationCancelledError",
10075
+ "kind": "class",
10076
+ "package": "@nifrajs/web",
10077
+ "signature": "export declare class MutationCancelledError extends Error {\n constructor();\n}",
10078
+ "doc": "/** Rejection returned when {@link MutationHandle.cancel} discards an in-flight result. */"
10079
+ },
10080
+ {
10081
+ "name": "MutationContext",
10082
+ "kind": "interface",
10083
+ "package": "@nifrajs/web",
10084
+ "signature": "export interface MutationContext {\n readonly signal: AbortSignal;\n}",
10085
+ "doc": "/** Cooperative cancellation context supplied to mutation functions and callbacks. */"
10086
+ },
9926
10087
  {
9927
10088
  "name": "MutationHandle",
9928
10089
  "kind": "interface",
9929
10090
  "package": "@nifrajs/web",
9930
- "signature": "export interface MutationHandle<TData, TVariables> {\n snapshot: () => MutationState<TData, TVariables>;\n subscribe: (listener: () => void) => () => void;\n /** Run the mutation. Resolves to the data (and runs onSuccess/onSettled) or rejects (onError/onSettled);\n * a throwing `onMutate` fails it the same way. A throwing `onSuccess` or `onSettled` after the write\n * rejects the call but leaves the state `success` and never calls `onError`. The latest concurrent\n * call wins the published state (older results are dropped). */\n mutate: (variables: TVariables) => Promise<TData>;\n /** Rebind the latest `fn`/callbacks (closures change between renders) without losing state. */\n rebind: (fn: (variables: TVariables) => Promise<TData>, callbacks: MutationCallbacks<TData, TVariables>) => void;\n /** Reset to the idle state (clears data/error/variables). */\n reset: () => void;\n}",
10091
+ "signature": "export interface MutationHandle<TData, TVariables> {\n snapshot: () => MutationState<TData, TVariables>;\n subscribe: (listener: () => void) => () => void;\n /** Run the mutation. Resolves to the data (and runs onSuccess/onSettled) or rejects (onError/onSettled);\n * a throwing `onMutate` fails it the same way. A throwing `onSuccess` or `onSettled` after the write\n * rejects the call but leaves the state `success` and never calls `onError`. The latest concurrent\n * call wins the published state (older results are dropped). */\n mutate: (variables: TVariables) => Promise<TData>;\n /** Rebind the latest `fn`/callbacks (closures change between renders) without losing state. */\n rebind: (fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks: MutationCallbacks<TData, TVariables>) => void;\n /** Reset to the idle state (clears data/error/variables). */\n reset: () => void;\n /** Reject pending mutate promises, discard local state and abort the signal. Uncooperative work may\n * continue; the server may still finish an accepted request. */\n cancel: () => void;\n}",
9931
10092
  "doc": "/** A standalone mutation store: subscribe to its state, fire `mutate`, `reset` back to idle. */"
9932
10093
  },
9933
10094
  {
@@ -9944,6 +10105,13 @@
9944
10105
  "signature": "export type MutationStatus = \"idle\" | \"pending\" | \"success\" | \"error\";",
9945
10106
  "doc": "/** A mutation's lifecycle status. */"
9946
10107
  },
10108
+ {
10109
+ "name": "MutationStore",
10110
+ "kind": "type",
10111
+ "package": "@nifrajs/web-svelte",
10112
+ "signature": "export type MutationStore<TData, TVariables> = Readable<MutationState<TData, TVariables>> & {\n readonly mutate: (variables: TVariables) => void;\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n readonly reset: () => void;\n readonly cancel: () => void;\n};",
10113
+ "doc": "/** A Svelte readable mutation state, augmented with imperative controls. */"
10114
+ },
9947
10115
  {
9948
10116
  "name": "NAMESPACED_KEYS",
9949
10117
  "kind": "const",
@@ -10164,49 +10332,49 @@
10164
10332
  "kind": "function",
10165
10333
  "package": "@nifrajs/web-react",
10166
10334
  "signature": "export declare function Navigate({ to, replace }: NavigateProps): null;",
10167
- "doc": "/**\n * Declaratively navigate on mount - the component analogue of `useNavigate` (e.g. a guard that renders\n * `<Navigate to=\"/login\" replace />`). Navigates in an effect, so it's a safe no-op during SSR (renders\n * `null`); the redirect happens once on the client after hydration.\n */"
10335
+ "doc": "/**\n * Declaratively navigate on mount - the component analogue of `useNavigate` (e.g. a guard that renders\n * `<Navigate to={href({ to: \"/login\" })} replace />`). Navigates in an effect, so it's a safe no-op during SSR (renders\n * `null`); the redirect happens once on the client after hydration.\n */"
10168
10336
  },
10169
10337
  {
10170
10338
  "name": "NavigateFunction",
10171
- "kind": "interface",
10339
+ "kind": "type",
10172
10340
  "package": "@nifrajs/web",
10173
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10174
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10341
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10342
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10175
10343
  },
10176
10344
  {
10177
10345
  "name": "NavigateFunction",
10178
- "kind": "interface",
10346
+ "kind": "type",
10179
10347
  "package": "@nifrajs/web-preact",
10180
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10181
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10348
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10349
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10182
10350
  },
10183
10351
  {
10184
10352
  "name": "NavigateFunction",
10185
- "kind": "interface",
10353
+ "kind": "type",
10186
10354
  "package": "@nifrajs/web-react",
10187
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10188
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10355
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10356
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10189
10357
  },
10190
10358
  {
10191
10359
  "name": "NavigateFunction",
10192
- "kind": "interface",
10360
+ "kind": "type",
10193
10361
  "package": "@nifrajs/web-solid",
10194
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10195
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10362
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10363
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10196
10364
  },
10197
10365
  {
10198
10366
  "name": "NavigateFunction",
10199
- "kind": "interface",
10367
+ "kind": "type",
10200
10368
  "package": "@nifrajs/web-svelte",
10201
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10202
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10369
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10370
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10203
10371
  },
10204
10372
  {
10205
10373
  "name": "NavigateFunction",
10206
- "kind": "interface",
10374
+ "kind": "type",
10207
10375
  "package": "@nifrajs/web-vue",
10208
- "signature": "export interface NavigateFunction {\n (to: string | number, options?: NavigateOptions): void;\n <To extends string>(target: {\n readonly to: To;\n readonly search?: NavigateSearchOf<To>;\n readonly replace?: boolean;\n readonly state?: unknown;\n }): void;\n}",
10209
- "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. Three forms: a string path (push, or\n * replace via `{ replace: true }`), a history delta (`-1`/`1`), or an object target `{ to, search, replace }`\n * whose `search` is typed against `to`'s route schema via {@link NavigateSearchOf} (a wrong shape for a\n * mapped route is a compile error; an unmapped path takes a loose `search`). The object form's `search` is\n * serialized onto `to`. A no-op on the server / before hydration.\n */"
10376
+ "signature": "export type NavigateFunction = (to: Href | number, options?: NavigateOptions) => void;",
10377
+ "doc": "/**\n * A programmatic navigate, shared by every adapter's `useNavigate`. It takes an {@link Href}, built by\n * `href({ to, params, search, hash })` or `rawHref(path)` (push, or replace with `{ replace: true }`), or a\n * history delta (`-1` back, `1` forward). A plain string or a template literal is a compile error: the\n * route, its params and its search are checked where the link is built. A no-op on the server and before\n * hydration.\n */"
10210
10378
  },
10211
10379
  {
10212
10380
  "name": "NavigateOptions",
@@ -10219,23 +10387,9 @@
10219
10387
  "name": "NavigateProps",
10220
10388
  "kind": "interface",
10221
10389
  "package": "@nifrajs/web-react",
10222
- "signature": "export interface NavigateProps {\n readonly to: string;\n readonly replace?: boolean;\n}",
10390
+ "signature": "export interface NavigateProps {\n readonly to: Href;\n readonly replace?: boolean;\n}",
10223
10391
  "doc": "/** {@link Navigate} props: the destination `to` and whether to `replace` the history entry. */"
10224
10392
  },
10225
- {
10226
- "name": "NavigateSearchOf",
10227
- "kind": "type",
10228
- "package": "@nifrajs/web",
10229
- "signature": "export type NavigateSearchOf<To extends string> = To extends keyof RouteSearch ? RouteSearch[To] : Record<string, unknown>;",
10230
- "doc": "/**\n * The `search` type for a navigate to `To`: the route's schema output when `To` is a mapped\n * {@link RouteSearch} key, otherwise the loose `Record<string, unknown>` (so a navigate to any path is\n * always allowed). Keyed on `To` rather than a union, so a mapped route can't fall back to the loose form\n * with a wrong shape - `navigate({ to: \"/reports\", search: { page: \"x\" } })` is a compile error.\n */"
10231
- },
10232
- {
10233
- "name": "NavigateTargetInput",
10234
- "kind": "interface",
10235
- "package": "@nifrajs/web",
10236
- "signature": "export interface NavigateTargetInput {\n readonly to: string;\n readonly search?: Record<string, unknown>;\n readonly replace?: boolean;\n readonly state?: unknown;\n}",
10237
- "doc": "/** The runtime shape of an object-form navigate target (loose - the typed narrowing lives in\n * {@link NavigateFunction}'s generic call signature). `to` is a bare pathname; `search` is serialized\n * onto it; `replace` folds into the options. */"
10238
- },
10239
10393
  {
10240
10394
  "name": "Navigation",
10241
10395
  "kind": "interface",
@@ -11415,7 +11569,7 @@
11415
11569
  "kind": "interface",
11416
11570
  "package": "@nifrajs/web",
11417
11571
  "signature": "export interface PprSetup {\n readonly [PPR_SETUP]: (environment: PprEnvironment) => PprIntegration;\n}",
11418
- "doc": "/** What `partialPrerendering()` returns for `createWebApp({ experimental: { ppr } })`. */"
11572
+ "doc": "/** What `partialPrerendering()` returns for `createWebApp({ ppr })`. */"
11419
11573
  },
11420
11574
  {
11421
11575
  "name": "PprShells",
@@ -11912,7 +12066,7 @@
11912
12066
  "name": "QueryClient",
11913
12067
  "kind": "interface",
11914
12068
  "package": "@nifrajs/web",
11915
- "signature": "export interface QueryClient {\n /** Get the stable {@link QueryHandle} for `key`, fetched via `fn`. Re-binds the latest `fn` (and\n * `options`) each call (closures change between renders); returns the same handle for the same\n * (hashed) key. */\n query: <T>(key: unknown, fn: () => Promise<T>, options?: QueryOptions) => QueryHandle<T>;\n /** Get the stable {@link InfiniteQueryHandle} for `key`, whose pages are fetched via `fn(pageParam)`. */\n infiniteQuery: <T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: InfiniteQueryOptions<T, P>) => InfiniteQueryHandle<T, P>;\n /** Mark matching cached queries, infinite ones included, stale and refetch the **mounted** ones\n * (subscribers > 0). Array keys match by **prefix** (`[\"todo\"]` ⇒ every `[\"todo\", …]`); other keys\n * match exactly. */\n invalidateQueries: (keyOrPrefix: unknown) => void;\n /** Read a cached query's data (`undefined` if absent or not yet successful). Synchronous, no fetch. */\n getQueryData: <T>(key: unknown) => T | undefined;\n /** Write a query's data directly (optimistic updates, or seeding). Creates the entry if absent; marks\n * it fresh (`updatedAt = now`). `updater` may be a value or a function of the previous data. */\n setQueryData: <T>(key: unknown, updater: T | ((prev: T | undefined) => T)) => void;\n /** Fetch + cache a query's data WITHOUT subscribing (SSR prefetch, hover warm). Resolves when cached;\n * a fresh entry is a no-op. Rejects if the fetch throws (caller may swallow). */\n prefetchQuery: <T>(key: unknown, fn: () => Promise<T>, options?: QueryOptions) => Promise<void>;\n /** Serialize every successful query to a transferable snapshot (server → client SSR bridge). */\n dehydrate: () => DehydratedState;\n /** Seed the cache from a {@link dehydrate} snapshot (client boot). Existing fresher entries win. */\n hydrate: (state: DehydratedState) => void;\n /** Drop every cached query: mounted ones go back to pending and refetch, the rest are removed. Every\n * client in the page runs it when the visitor changes: `identityChanged()` in this tab, a live\n * account switch, or, on the client's next read, a new identity epoch cookie. */\n clear: () => void;\n}",
12069
+ "signature": "export interface QueryClient {\n /** Get the stable {@link QueryHandle} for `key`, fetched via `fn`. Re-binds the latest `fn` (and\n * `options`) each call (closures change between renders); returns the same handle for the same\n * (hashed) key. */\n query: <T>(key: unknown, fn: () => Promise<T>, options?: QueryOptions) => QueryHandle<T>;\n /** Get the stable {@link InfiniteQueryHandle} for `key`, whose pages are fetched via `fn(pageParam)`. */\n infiniteQuery: <T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: InfiniteQueryOptions<T, P>) => InfiniteQueryHandle<T, P>;\n /** Mark matching cached queries, infinite ones included, stale and refetch the **mounted** ones\n * (subscribers > 0). Array keys match by **prefix** (`[\"todo\"]` ⇒ every `[\"todo\", …]`); other keys\n * match exactly. */\n invalidateQueries: (keyOrPrefix: unknown) => void;\n /** Read a cached query's data (`undefined` if absent or not yet successful). Synchronous, no fetch. */\n getQueryData: <T>(key: unknown) => T | undefined;\n /** Write a query's data directly (optimistic updates, or seeding). Creates the entry if absent; marks\n * it fresh (`updatedAt = now`). `updater` may be a value or a function of the previous data. */\n setQueryData: <T>(key: unknown, updater: T | ((prev: T | undefined) => T)) => void;\n /** Fetch + cache a query's data WITHOUT subscribing (SSR prefetch, hover warm). Resolves when cached;\n * a fresh entry is a no-op. Rejects if the fetch throws (caller may swallow). */\n prefetchQuery: <T>(key: unknown, fn: () => Promise<T>, options?: QueryOptions) => Promise<void>;\n /** Serialize the successful queries that `options.shouldDehydrateQuery` selects to a transferable\n * snapshot (server → client SSR bridge). Deny by default: with no filter the snapshot is empty. */\n dehydrate: (options?: DehydrateOptions) => DehydratedState;\n /** Seed the cache from a {@link dehydrate} snapshot (client boot). Existing fresher entries win. */\n hydrate: (state: DehydratedState) => void;\n /** Drop every cached query: mounted ones go back to pending and refetch, the rest are removed. Every\n * client in the page runs it when the visitor changes: `identityChanged()` in this tab, a live\n * account switch, or, on the client's next read, a new identity epoch cookie. */\n clear: () => void;\n}",
11916
12070
  "doc": "/** The keyed query cache. One per app (a binding registers it like the router). */"
11917
12071
  },
11918
12072
  {
@@ -11921,6 +12075,13 @@
11921
12075
  "package": "@nifrajs/web",
11922
12076
  "signature": "export interface QueryClientOptions {\n /** Monotonic clock in ms - injected so the core stays deterministic + testable; the adapter binding\n * passes `() => Date.now()`. */\n readonly now: () => number;\n /** Data stays fresh this long after a fetch; older ⇒ refetch on the next `fetch()` (default `0`). */\n readonly staleTime?: number;\n /** Evict an entry this long (ms) after its last subscriber leaves (default 5 min). */\n readonly gcTime?: number;\n /** Hard cap on cached entries - LRU-evict the oldest *unsubscribed* entry past it (default 1000). */\n readonly max?: number;\n}"
11923
12077
  },
12078
+ {
12079
+ "name": "QueryClientProvider",
12080
+ "kind": "function",
12081
+ "package": "@nifrajs/web-preact",
12082
+ "signature": "export declare function QueryClientProvider(props: {\n readonly client: QueryClient;\n readonly children?: ComponentChildren;\n}): ComponentChildren;",
12083
+ "doc": "/** Provide an SSR/request-scoped query client or an application-specific client. */"
12084
+ },
11924
12085
  {
11925
12086
  "name": "QueryClientProvider",
11926
12087
  "kind": "function",
@@ -11928,6 +12089,13 @@
11928
12089
  "signature": "export declare function QueryClientProvider(props: {\n readonly client: QueryClient;\n readonly children?: ReactNode;\n}): ReactNode;",
11929
12090
  "doc": "/** Provide a {@link QueryClient} to the tree - required for SSR dehydrate/hydrate and for tests; a\n * client-only app can omit it and rely on the built-in client-side singleton. */"
11930
12091
  },
12092
+ {
12093
+ "name": "QueryClientProvider",
12094
+ "kind": "function",
12095
+ "package": "@nifrajs/web-solid",
12096
+ "signature": "export declare function QueryClientProvider(props: {\n readonly client: QueryClient;\n readonly state?: DehydratedState;\n readonly children?: JSX.Element;\n}): JSX.Element;",
12097
+ "doc": "/** Provide a request-scoped client and optionally seed it before descendants run. */"
12098
+ },
11931
12099
  {
11932
12100
  "name": "QueryHandle",
11933
12101
  "kind": "interface",
@@ -12175,6 +12343,20 @@
12175
12343
  "signature": "export declare const ROUTE_PATTERN_OVERLAP_MAX_STATES = 100000;",
12176
12344
  "doc": "/** Hard budget for the offline route-language intersection. Never use this on the request path. */"
12177
12345
  },
12346
+ {
12347
+ "name": "ROUTE_SLOT_QUERY_PREFIX",
12348
+ "kind": "const",
12349
+ "package": "@nifrajs/web",
12350
+ "signature": "export declare const ROUTE_SLOT_QUERY_PREFIX = \"slot.\";",
12351
+ "doc": "/** Reserved query-key prefix carrying independently navigable route-slot targets. */"
12352
+ },
12353
+ {
12354
+ "name": "ROUTE_TABLE_FILE",
12355
+ "kind": "const",
12356
+ "package": "@nifrajs/web",
12357
+ "signature": "export declare const ROUTE_TABLE_FILE = \".nifra/types/routes.d.ts\";",
12358
+ "doc": "/** The generated `RouteTable`, relative to the app root. */"
12359
+ },
12178
12360
  {
12179
12361
  "name": "ROUTE_TYPES_DIR",
12180
12362
  "kind": "const",
@@ -12220,7 +12402,7 @@
12220
12402
  "name": "RateLimitOptions",
12221
12403
  "kind": "interface",
12222
12404
  "package": "@nifrajs/middleware",
12223
- "signature": "export interface RateLimitOptions {\n /** Where counters live. `MemoryStore` for dev; a shared store in production. */\n readonly store: RateLimitStore;\n /** Max requests allowed per window. */\n readonly max: number;\n /** Window length, in milliseconds. */\n readonly windowMs: number;\n /**\n * How many trusted reverse proxies sit in front of the app and append to `X-Forwarded-For`.\n * Default `0`. Prefer the app-level `server({ clientIp: { trustedHops } })` declaration, which the\n * default key already honors; this option is for a limiter that must read XFF on its own.\n *\n * The default key reads the client IP from `X-Forwarded-For` as the address your **edge** proxy\n * observed - the entry `trustedProxies` from the right (1 proxy → the rightmost hop; 2 → the\n * second-from-right; …). Your proxies append on the right, so a client can only inject fake hops on\n * the *left*, which this skips → not spoofable when `trustedProxies` matches your topology.\n *\n * ⚠️ With the default `0`, `X-Forwarded-For` is treated as fully client-controlled and **ignored**.\n * Reading the\n * *first* XFF hop - the old behavior - let any client mint a fresh bucket per request and defeat the\n * limiter.\n */\n readonly trustedProxies?: number;\n /** Exact trusted single-IP header, e.g. an infra-set `x-real-ip`. Not read unless configured. */\n readonly header?: string;\n /**\n * One shared bucket for every request that {@link header}/{@link trustedProxies} cannot key. Off by\n * default because it lets one client consume the quota for everyone. Enable only for intentional\n * global throttles; with neither `header` nor `trustedProxies` set, every request shares the bucket.\n */\n readonly allowGlobalKey?: boolean;\n /**\n * Bucket key for a request. Overrides the default key entirely - e.g. an authenticated user id.\n * `platform.clientIp` is the caller the app's `clientIp` trust declaration derived (the socket peer\n * when none is declared).\n *\n * It may return a promise, for a key that needs async work such as verifying a signed session\n * cookie with WebCrypto. A key that throws or rejects is charged to the client IP the default key\n * derives, so a forged or expired credential never earns a bucket of its own; when no client IP is\n * known either, the request is refused with a `500`, as an unkeyable request always is.\n */\n readonly key?: (req: Request, platform?: Platform) => string | Promise<string>;\n /**\n * Leave a request uncharged: it is not counted and carries no `RateLimit-*` headers. Runs before\n * the key is derived, so a health check or an internal probe never touches the store.\n */\n readonly skip?: (req: Request, platform?: Platform) => boolean;\n}"
12405
+ "signature": "export interface RateLimitOptions {\n /** Where counters live. `MemoryStore` for dev; a shared store in production. */\n readonly store: RateLimitStore;\n /** Max requests allowed per window. */\n readonly max: number;\n /** Window length, in milliseconds. */\n readonly windowMs: number;\n /**\n * How many trusted reverse proxies sit in front of the app and append to `X-Forwarded-For`.\n * Default `0`. Prefer the app-level `server({ clientIp: { trustedHops } })` declaration, which the\n * default key already honors; this option is for a limiter that must read XFF on its own.\n *\n * The default key reads the client IP from `X-Forwarded-For` as the address your **edge** proxy\n * observed - the entry `trustedProxies` from the right (1 proxy → the rightmost hop; 2 → the\n * second-from-right; …). Your proxies append on the right, so a client can only inject fake hops on\n * the *left*, which this skips → not spoofable when `trustedProxies` matches your topology.\n *\n * ⚠️ With the default `0`, `X-Forwarded-For` is treated as fully client-controlled and **ignored**.\n * Reading the\n * *first* XFF hop - the old behavior - let any client mint a fresh bucket per request and defeat the\n * limiter.\n */\n readonly trustedProxies?: number;\n /**\n * Trusted header containing exactly one IP, e.g. an infra-overwritten `x-real-ip`. A valid address is\n * canonicalized into the same bucket as the resolved caller IP (IPv4 normalized, IPv6 grouped by\n * `/64`). Missing, malformed, or comma-separated values fall through to `trustedProxies` /\n * `allowGlobalKey`; without a safe fallback the request fails closed with `500`.\n */\n readonly header?: string;\n /**\n * One shared bucket for every request that {@link header}/{@link trustedProxies} cannot key. Off by\n * default because it lets one client consume the quota for everyone. Enable only for intentional\n * global throttles; with neither `header` nor `trustedProxies` set, every request shares the bucket.\n */\n readonly allowGlobalKey?: boolean;\n /**\n * Bucket key for a request. Overrides the default key entirely - e.g. an authenticated user id.\n * `platform.clientIp` is the caller the app's `clientIp` trust declaration derived (the socket peer\n * when none is declared).\n *\n * It may return a promise, for a key that needs async work such as verifying a signed session\n * cookie with WebCrypto. A key that throws or rejects is charged to the client IP the default key\n * derives, so a forged or expired credential never earns a bucket of its own; when no client IP is\n * known either, the request is refused with a `500`, as an unkeyable request always is.\n */\n readonly key?: (req: Request, platform?: Platform) => string | Promise<string>;\n /**\n * Leave a request uncharged: it is not counted and carries no `RateLimit-*` headers. Runs before\n * the key is derived, so a health check or an internal probe never touches the store.\n */\n readonly skip?: (req: Request, platform?: Platform) => boolean;\n}"
12224
12406
  },
12225
12407
  {
12226
12408
  "name": "RateLimitResult",
@@ -13189,7 +13371,7 @@
13189
13371
  "name": "RevalidateEndpointOptions",
13190
13372
  "kind": "interface",
13191
13373
  "package": "@nifrajs/web",
13192
- "signature": "export interface RevalidateEndpointOptions {\n readonly store: CacheStore;\n /** Shared secret; the request's token must match it (constant-time). */\n readonly secret: string;\n /** Header carrying the secret. Default `x-nifra-revalidate-token`. */\n readonly tokenHeader?: string;\n /** Map a to-purge path → its cache key - MUST match the `withISR` `key` fn. The default uses the\n * revalidation request's origin plus the purged path, matching `withISR`'s default host-aware key. */\n readonly key?: (path: string, req: Request) => string;\n /** The `query` policy given to `withISR`, so a purged path's query string is keyed the same way.\n * Default `\"bypass\"`. A path whose query `withISR` never caches is refused with `400`. Ignored\n * when `key` is supplied. */\n readonly query?: ISRQuery;\n /**\n * A CDN to purge after the origin store (a `@nifrajs/web/cdn` provider). The origin goes first so a\n * CDN refetch cannot repopulate from a stale origin entry. The reply is `200` when the CDN accepted\n * the purge, `202` when it is queued (rate limit or retry), and `502` when the CDN refused it.\n */\n readonly cdn?: CdnPurgeTarget;\n /**\n * Caches below the pages whose entries carry the same tags, such as a `@nifrajs/cache` holding\n * loader data. A tag purge invalidates each of them first, then the page store, then the CDN, so a\n * page regenerated mid-purge cannot be rebuilt from stale data. A failure answers `500` before the\n * page store is touched, so a retry purges everything again. Path purges do not reach them.\n */\n readonly dataCaches?: readonly {\n invalidateTag(tag: string): unknown;\n }[];\n /**\n * The app's live runtime: a purge also tells live pages watching a purged tag to reload, after the\n * caches and before the CDN. A publish that fails answers `502` with `origin: \"done\"`.\n */\n readonly live?: {\n publish(...keys: string[]): Promise<void>;\n };\n}"
13374
+ "signature": "export interface RevalidateEndpointOptions {\n readonly store: CacheStore;\n /** The same app instance passed to `withISR`, for deployment-scoped owner-route path purges. */\n readonly app?: object;\n /** Shared secret; the request's token must match it (constant-time). */\n readonly secret: string;\n /** Header carrying the secret. Default `x-nifra-revalidate-token`. */\n readonly tokenHeader?: string;\n /** Map a to-purge path → its cache key - MUST match the `withISR` `key` fn. The default uses the\n * revalidation request's origin plus the purged path, matching `withISR`'s default host-aware key. */\n readonly key?: (path: string, req: Request) => string;\n /** The `query` policy given to `withISR`, so a purged path's query string is keyed the same way.\n * Default `\"bypass\"`. A path whose query `withISR` never caches is refused with `400`. Ignored\n * when `key` is supplied. */\n readonly query?: ISRQuery;\n /**\n * A CDN to purge after the origin store (a `@nifrajs/web/cdn` provider). The origin goes first so a\n * CDN refetch cannot repopulate from a stale origin entry. The reply is `200` when the CDN accepted\n * the purge, `202` when it is queued (rate limit or retry), and `502` when the CDN refused it.\n */\n readonly cdn?: CdnPurgeTarget;\n /**\n * Caches below the pages whose entries carry the same tags, such as a `@nifrajs/cache` holding\n * loader data. A tag purge invalidates each of them first, then the page store, then the CDN, so a\n * page regenerated mid-purge cannot be rebuilt from stale data. A failure answers `500` before the\n * page store is touched, so a retry purges everything again. Path purges do not reach them.\n */\n readonly dataCaches?: readonly {\n invalidateTag(tag: string): unknown;\n }[];\n /**\n * The app's live runtime: a purge also tells live pages watching a purged tag to reload, after the\n * caches and before the CDN. A publish that fails answers `502` with `origin: \"done\"`.\n */\n readonly live?: {\n publish(...keys: string[]): Promise<void>;\n };\n}"
13193
13375
  },
13194
13376
  {
13195
13377
  "name": "RevalidateOptions",
@@ -13687,7 +13869,7 @@
13687
13869
  "name": "RouteModule",
13688
13870
  "kind": "interface",
13689
13871
  "package": "@nifrajs/web",
13690
- "signature": "export interface RouteModule {\n readonly default: unknown;\n readonly loader?: Loader;\n /** Layout loader that must run before actions and is not retained across the action's render. */\n readonly gate?: boolean;\n readonly action?: Action;\n /**\n * Backend half only: which browser origins may POST to {@link action}. When omitted, a request\n * whose `Origin` is another site's is refused with 403 before middleware, gates or the action run;\n * requests without an `Origin` (non-browser clients) pass. An array allows exactly those origins\n * (and refuses a request without one); a function decides, receiving `null` when there is none.\n * Use it for a callback a third party posts to, such as an identity provider's `form_post`.\n * `Origin` is browser-enforced, not authentication: keep the action's own auth checks.\n */\n readonly allowedOrigins?: ReadonlyArray<string> | ((origin: string | null) => boolean);\n /**\n * Backend half only: the schema of what {@link loader} sends to the browser. Required whenever the\n * loader returns data. Keys it does not declare are dropped before the page renders; a declared\n * field of the wrong shape fails the request with a 500 naming the field's path.\n */\n readonly loaderOutput?: StandardSchemaV1;\n /** Backend half only: the schema of what {@link action} sends back, held to the same rule. */\n readonly actionOutput?: StandardSchemaV1;\n /**\n * Experimental, backend half only: the loader of a partially prerendered page's shared shell. It\n * receives no request, so its output is the same for every visitor and the shell is cached.\n */\n readonly shellLoader?: (ctx: ShellCtx) => unknown;\n /** Experimental, backend half only: the schema of what {@link shellLoader} returns. */\n readonly shellOutput?: StandardSchemaV1;\n /**\n * Experimental, backend half only: query parameters that select a different shell, each with its\n * closed set of values (`{ search: { color: [\"red\", \"blue\"] } }`). Any other parameter, or a value\n * outside its set, builds the default shell; holes still read the whole query.\n */\n readonly shellVariations?: ShellVariations;\n /** Optional client-only loader. It runs after hydration and on client navigations. */\n readonly clientLoader?: ClientLoader;\n /** Optional client-only submit wrapper. The server action remains mandatory for mutations. */\n readonly clientAction?: ClientAction;\n /** Named async boundaries owned by this route. The adapter renders their neutral state seam. A\n * boundary's `load` comes from {@link boundaryLoaders} in the route's backend half; the frontend\n * file declares only how it renders. */\n readonly boundaries?: readonly BoundaryRegistration[];\n /** Backend half only: each boundary's server loader, keyed by boundary name. */\n readonly boundaryLoaders?: Readonly<Record<string, BoundaryLoaderEntry>>;\n /** A Standard Schema validating this route's URL search params. When present, `ctx.search` is parsed +\n * validated against it (failing closed to the schema's defaults on invalid input); type it into the\n * loader with `LoaderArgs<Api, Env, typeof searchSchema>`. */\n readonly searchSchema?: StandardSchemaV1<unknown, Record<string, unknown>>;\n /** Search keys that are purely client-side UI (`\"tab\"`, a client-side `\"sort\"`, `\"modal\"`) and do NOT\n * affect this route's loader. When a client navigation stays on the same route + pathname and changes\n * ONLY these keys, the router updates the URL (so `useSearch` re-renders) WITHOUT re-running the loader.\n * Any other key change revalidates as usual - so omitting a data-affecting key here can never serve\n * stale data, it only forgoes the optimization. Client-only: the server always renders fresh. */\n readonly searchClientKeys?: readonly string[];\n /**\n * `false` gives every client reload of this page (an action's revalidation, `invalidate()`, a live\n * refresh) fresh data. By default a reload keeps the identity of the parts of `data` and the layouts'\n * data that it did not change, so an unchanged row keeps its DOM and component state, and a renderer\n * that memoizes on identity skips it. Not every unchanged row, though: an array whose first 32\n * elements all changed is taken whole, later unchanged elements included, so code that needs a row's\n * identity must not count on it. Opt out for a page whose code compares `data` against its value\n * from before the reload, or whose rows re-render whatever their identity, which then pay the\n * comparison for nothing. Client-only.\n */\n readonly shareData?: boolean;\n /**\n * Keep this page mounted after the visitor leaves it, so back and forward show it again as it was\n * left: its component state, form fields, inner scroll offsets and focus. At most three pages are\n * kept per tab, each for at most 10 minutes; a kept page is shown again only by a back or forward to\n * its own history entry, and its data reloads in place. A sign-in or sign-out drops every kept page.\n * Client-only.\n */\n readonly keepAlive?: true | KeepAliveOptions;\n readonly meta?: MetaInput;\n /**\n * Opt this route out of nifra's full-document client hydration. The server still renders the full\n * HTML document, loaders/actions still run, and native links/forms still work; the generated app\n * client, route chunks, and loader globals are omitted for hard navigations. Intended for static or\n * island-hydrated pages where interactivity is mounted by smaller, explicit client entries.\n */\n readonly hydrate?: boolean;\n /**\n * `false` renders this route's component in the browser only. The server still matches the route,\n * runs its gates and loaders, renders the layouts around it and embeds the data - it skips the\n * component alone, putting {@link HydrateFallback} (or nothing) in the page slot. The browser\n * hydrates against that, then renders the component. For a component that cannot render on a\n * server: one that reads `window` or a browser-only API while it renders.\n *\n * The module itself is still imported on the server, for its loader and options - so an import\n * that needs a browser at load time belongs inside the component (a dynamic `import()`), not at the\n * top of the file. Cannot be combined with `hydrate = false`: nothing would ever render the page.\n */\n readonly ssr?: boolean;\n /**\n * What the server renders in the page slot of an `ssr = false` route, and what the browser hydrates\n * before the component takes over - a skeleton, a spinner. Receives the same props as the\n * component, loader `data` included. Omitted ⇒ the slot is empty until the component renders.\n */\n readonly HydrateFallback?: unknown;\n /**\n * Any value to report through `useMatches` - a breadcrumb label, a render function, a flag a layout\n * reads about the page inside it. Layouts, pages, and status pages may export one. It is read from\n * the module on the server and in the browser, so it must be the same value on both.\n */\n readonly handle?: unknown;\n /**\n * On a root status page (`_404.tsx`, `_<status>.tsx`) or an `_error.tsx`. By default (`true`) the\n * page renders inside the layouts above it with their loader data and `meta`, as a nested `_404`\n * renders. When those layouts cannot render it - a loader throws, a gate or the middleware refuses -\n * a root status page renders alone and an `_error` inside its layouts without their data, with the\n * same status. `false` always renders them that way, and runs no layout loader for them.\n */\n readonly inLayouts?: boolean;\n /**\n * Opt a **static** route (no `:param`/`*`) into build-time prerendering (SSG): `prerenderRoutes`\n * (from `@nifrajs/web/build`) renders it to a static `index.html` at build. The loader runs at build\n * with the in-process `api` (build-safe data only - no per-request cookies/secrets); `defer()` on a\n * prerendered route resolves at build. For **dynamic** routes use {@link getStaticPaths} instead.\n */\n readonly prerender?: boolean;\n /**\n * Enumerate the concrete params to prerender for a **dynamic** (`:param`) route - the SSG path list\n * (blogs/docs/etc.). Runs at build; `prerenderRoutes` renders one `index.html` per returned path.\n */\n readonly getStaticPaths?: GetStaticPaths;\n /**\n * ISR freshness for this route, in **seconds**. `createWebApp` emits it as an\n * `x-nifra-isr-revalidate` response header that `withISR` reads to set the page's cache TTL\n * (overriding the wrapper's default). Older-than-`revalidate` cached pages are served stale while\n * regenerating. (Distinct from the action-revalidation `x-nifra-revalidate` header - a CSV path\n * list the client parses to refetch - so the two channels never alias.)\n */\n readonly revalidate?: number;\n /**\n * Bounded tags ISR on-demand invalidation (`?tag=...`) and a CDN purge reach this page by. A list, or\n * a function of the route's params and URL (`({ params }) => [\\`product:${params.id}\\`]`) for tags\n * per page. Tags travel to the CDN and reach anyone reading the origin: never put personal data in one.\n */\n readonly revalidateTags?: RevalidateTags;\n /**\n * No-framework island bundles (`@nifrajs/web/islands`) to load on this route, as `<script\n * type=\"module\">` in the document tail. Loaded **regardless of `hydrate`** - pair with\n * `export const hydrate = false` for a static page that ships zero framework JS and mounts\n * interactivity through `<Island>` markers + `mountIslands` enhancers instead.\n */\n readonly islandScripts?: readonly string[];\n}",
13872
+ "signature": "export interface RouteModule {\n readonly default: unknown;\n readonly loader?: Loader;\n /**\n * Named, independently navigable route regions. Each name is bound to route patterns from the\n * generated route table; URL state selects only one of these registered identities.\n */\n readonly routeSlots?: Readonly<Record<string, readonly string[]>>;\n /** Layout loader that must run before actions and is not retained across the action's render. */\n readonly gate?: boolean;\n readonly action?: Action;\n /**\n * Backend half only: which browser origins may POST to {@link action}. When omitted, a request\n * whose `Origin` is another site's is refused with 403 before middleware, gates or the action run;\n * requests without an `Origin` (non-browser clients) pass. An array allows exactly those origins\n * (and refuses a request without one); a function decides, receiving `null` when there is none.\n * Use it for a callback a third party posts to, such as an identity provider's `form_post`.\n * `Origin` is browser-enforced, not authentication: keep the action's own auth checks.\n */\n readonly allowedOrigins?: ReadonlyArray<string> | ((origin: string | null) => boolean);\n /**\n * Backend half only: the schema of what {@link loader} sends to the browser. Required whenever the\n * loader returns data. Keys it does not declare are dropped before the page renders; a declared\n * field of the wrong shape fails the request with a 500 naming the field's path.\n */\n readonly loaderOutput?: StandardSchemaV1;\n /** Backend half only: the schema of what {@link action} sends back, held to the same rule. */\n readonly actionOutput?: StandardSchemaV1;\n /**\n * Backend half only: the loader of a partially prerendered page's shared shell. It\n * receives no request, so its output is the same for every visitor and the shell is cached.\n */\n readonly shellLoader?: (ctx: ShellCtx) => unknown;\n /** Backend half only: the schema of what {@link shellLoader} returns. */\n readonly shellOutput?: StandardSchemaV1;\n /**\n * Backend half only: query parameters that select a different shell, each with its\n * closed set of values (`{ search: { color: [\"red\", \"blue\"] } }`). Any other parameter, or a value\n * outside its set, builds the default shell; holes still read the whole query.\n */\n readonly shellVariations?: ShellVariations;\n /** Optional client-only loader. It runs after hydration and on client navigations. */\n readonly clientLoader?: ClientLoader;\n /** Optional client-only submit wrapper. The server action remains mandatory for mutations. */\n readonly clientAction?: ClientAction;\n /** Named async boundaries owned by this route. The adapter renders their neutral state seam. A\n * boundary's `load` comes from {@link boundaryLoaders} in the route's backend half; the frontend\n * file declares only how it renders. */\n readonly boundaries?: readonly BoundaryRegistration[];\n /** Backend half only: each boundary's server loader, keyed by boundary name. */\n readonly boundaryLoaders?: Readonly<Record<string, BoundaryLoaderEntry>>;\n /** A Standard Schema validating this route's URL search params. When present, `ctx.search` is parsed +\n * validated against it (failing closed to the schema's defaults on invalid input); type it into the\n * loader with `LoaderArgs<Api, Env, typeof searchSchema>`. */\n readonly searchSchema?: StandardSchemaV1<unknown, Record<string, unknown>>;\n /** Search keys that are purely client-side UI (`\"tab\"`, a client-side `\"sort\"`, `\"modal\"`) and do NOT\n * affect this route's loader. When a client navigation stays on the same route + pathname and changes\n * ONLY these keys, the router updates the URL (so `useSearch` re-renders) WITHOUT re-running the loader.\n * Any other key change revalidates as usual - so omitting a data-affecting key here can never serve\n * stale data, it only forgoes the optimization. Client-only: the server always renders fresh. */\n readonly searchClientKeys?: readonly string[];\n /**\n * `false` gives every client reload of this page (an action's revalidation, `invalidate()`, a live\n * refresh) fresh data. By default a reload keeps the identity of the parts of `data` and the layouts'\n * data that it did not change, so an unchanged row keeps its DOM and component state, and a renderer\n * that memoizes on identity skips it. Not every unchanged row, though: an array whose first 32\n * elements all changed is taken whole, later unchanged elements included, so code that needs a row's\n * identity must not count on it. Opt out for a page whose code compares `data` against its value\n * from before the reload, or whose rows re-render whatever their identity, which then pay the\n * comparison for nothing. Client-only.\n */\n readonly shareData?: boolean;\n /**\n * Keep this page mounted after the visitor leaves it, so back and forward show it again as it was\n * left: its component state, form fields, inner scroll offsets and focus. At most three pages are\n * kept per tab, each for at most 10 minutes; a kept page is shown again only by a back or forward to\n * its own history entry, and its data reloads in place. A sign-in or sign-out drops every kept page.\n * Client-only.\n */\n readonly keepAlive?: true | KeepAliveOptions;\n readonly meta?: MetaInput;\n /**\n * Opt this route out of nifra's full-document client hydration. The server still renders the full\n * HTML document, loaders/actions still run, and native links/forms still work; the generated app\n * client, route chunks, and loader globals are omitted for hard navigations. Intended for static or\n * island-hydrated pages where interactivity is mounted by smaller, explicit client entries.\n */\n readonly hydrate?: boolean;\n /**\n * `false` renders this route's component in the browser only. The server still matches the route,\n * runs its gates and loaders, renders the layouts around it and embeds the data - it skips the\n * component alone, putting {@link HydrateFallback} (or nothing) in the page slot. The browser\n * hydrates against that, then renders the component. For a component that cannot render on a\n * server: one that reads `window` or a browser-only API while it renders.\n *\n * The module itself is still imported on the server, for its loader and options - so an import\n * that needs a browser at load time belongs inside the component (a dynamic `import()`), not at the\n * top of the file. Cannot be combined with `hydrate = false`: nothing would ever render the page.\n */\n readonly ssr?: boolean;\n /**\n * What the server renders in the page slot of an `ssr = false` route, and what the browser hydrates\n * before the component takes over - a skeleton, a spinner. Receives the same props as the\n * component, loader `data` included. Omitted ⇒ the slot is empty until the component renders.\n */\n readonly HydrateFallback?: unknown;\n /**\n * Any value to report through `useMatches` - a breadcrumb label, a render function, a flag a layout\n * reads about the page inside it. Layouts, pages, and status pages may export one. It is read from\n * the module on the server and in the browser, so it must be the same value on both.\n */\n readonly handle?: unknown;\n /**\n * On a root status page (`_404.tsx`, `_<status>.tsx`) or an `_error.tsx`. By default (`true`) the\n * page renders inside the layouts above it with their loader data and `meta`, as a nested `_404`\n * renders. When those layouts cannot render it - a loader throws, a gate or the middleware refuses -\n * a root status page renders alone and an `_error` inside its layouts without their data, with the\n * same status. `false` always renders them that way, and runs no layout loader for them.\n */\n readonly inLayouts?: boolean;\n /**\n * Opt a **static** route (no `:param`/`*`) into build-time prerendering (SSG): `prerenderRoutes`\n * (from `@nifrajs/web/build`) renders it to a static `index.html` at build. The loader runs at build\n * with the in-process `api` (build-safe data only - no per-request cookies/secrets); `defer()` on a\n * prerendered route resolves at build. For **dynamic** routes use {@link getStaticPaths} instead.\n */\n readonly prerender?: boolean;\n /**\n * Enumerate the concrete params to prerender for a **dynamic** (`:param`) route - the SSG path list\n * (blogs/docs/etc.). Runs at build; `prerenderRoutes` renders one `index.html` per returned path.\n */\n readonly getStaticPaths?: GetStaticPaths;\n /**\n * ISR freshness for this route, in **seconds**. `createWebApp` emits it as an\n * `x-nifra-isr-revalidate` response header that `withISR` reads to set the page's cache TTL\n * (overriding the wrapper's default). Older-than-`revalidate` cached pages are served stale while\n * regenerating. (Distinct from the action-revalidation `x-nifra-revalidate` header - a CSV path\n * list the client parses to refetch - so the two channels never alias.)\n */\n readonly revalidate?: number;\n /**\n * Bounded tags ISR on-demand invalidation (`?tag=...`) and a CDN purge reach this page by. A list, or\n * a function of the route's params and URL (`({ params }) => [\\`product:${params.id}\\`]`) for tags\n * per page. Tags travel to the CDN and reach anyone reading the origin: never put personal data in one.\n */\n readonly revalidateTags?: RevalidateTags;\n /**\n * No-framework island bundles (`@nifrajs/web/islands`) to load on this route, as `<script\n * type=\"module\">` in the document tail. Loaded **regardless of `hydrate`** - pair with\n * `export const hydrate = false` for a static page that ships zero framework JS and mounts\n * interactivity through `<Island>` markers + `mountIslands` enhancers instead.\n */\n readonly islandScripts?: readonly string[];\n}",
13691
13873
  "doc": "/** A route module - the default component + optional loader / action / meta. */"
13692
13874
  },
13693
13875
  {
@@ -13743,11 +13925,129 @@
13743
13925
  "doc": "/** Per-route input schemas. Each is any Standard Schema (zod/valibot/arktype/…). */"
13744
13926
  },
13745
13927
  {
13746
- "name": "RouteSearch",
13928
+ "name": "RouteSlot",
13929
+ "kind": "function",
13930
+ "package": "@nifrajs/web-preact",
13931
+ "signature": "export declare function RouteSlot({ name, fallback, error }: RouteSlotProps): VNode | null;"
13932
+ },
13933
+ {
13934
+ "name": "RouteSlot",
13935
+ "kind": "function",
13936
+ "package": "@nifrajs/web-react",
13937
+ "signature": "export declare function RouteSlot({ name, fallback, error }: RouteSlotProps): ReactNode;",
13938
+ "doc": "/** Render the registered route's complete layout and page chain in this independently navigable region. */"
13939
+ },
13940
+ {
13941
+ "name": "RouteSlot",
13942
+ "kind": "const",
13943
+ "package": "@nifrajs/web-vue",
13944
+ "signature": "export declare const RouteSlot: import(\"vue\").DefineComponent<import(\"vue\").ExtractPropTypes<{\n name: {\n type: PropType<RouteSlotName>;\n required: true;\n };\n}>, () => import(\"vue\").VNode<import(\"vue\").RendererNode, import(\"vue\").RendererElement, {\n [key: string]: any;\n}> | import(\"vue\").VNode<import(\"vue\").RendererNode, import(\"vue\").RendererElement, {\n [key: string]: any;\n}>[] | null, {}, {}, {}, import(\"vue\").ComponentOptionsMixin, import(\"vue\").ComponentOptionsMixin, {}, string, import(\"vue\").PublicProps, Readonly<import(\"vue\").ExtractPropTypes<{\n name: {\n type: PropType<RouteSlotName>;\n required: true;\n };\n}>> & Readonly<{}>, {}, {}, {}, {}, string, import(\"vue\").ComponentProvideOptions, true, {}, any>;"
13945
+ },
13946
+ {
13947
+ "name": "RouteSlotController",
13948
+ "kind": "interface",
13949
+ "package": "@nifrajs/web-preact",
13950
+ "signature": "export interface RouteSlotController {\n readonly target: string | undefined;\n readonly status: RouteSlotStatus;\n readonly content: LoadedRouteSlot | undefined;\n readonly error: string | undefined;\n open(target: RouteSlotTarget): void;\n close(): void;\n}"
13951
+ },
13952
+ {
13953
+ "name": "RouteSlotController",
13954
+ "kind": "interface",
13955
+ "package": "@nifrajs/web-react",
13956
+ "signature": "export interface RouteSlotController {\n readonly target: string | undefined;\n readonly status: RouteSlotStatus;\n readonly content: LoadedRouteSlot | undefined;\n readonly error: string | undefined;\n open(target: RouteSlotTarget): void;\n close(): void;\n}"
13957
+ },
13958
+ {
13959
+ "name": "RouteSlotController",
13960
+ "kind": "interface",
13961
+ "package": "@nifrajs/web-svelte",
13962
+ "signature": "export interface RouteSlotController {\n readonly target: string | undefined;\n open(target: RouteSlotTarget): void;\n close(): void;\n}"
13963
+ },
13964
+ {
13965
+ "name": "RouteSlotController",
13966
+ "kind": "interface",
13967
+ "package": "@nifrajs/web-vue",
13968
+ "signature": "export interface RouteSlotController {\n readonly target: ComputedRef<string | undefined>;\n readonly status: ComputedRef<RouteSlotStatus>;\n readonly content: ComputedRef<LoadedRouteSlot | undefined>;\n readonly error: ComputedRef<string | undefined>;\n open(target: RouteSlotTarget): void;\n close(): void;\n}"
13969
+ },
13970
+ {
13971
+ "name": "RouteSlotLoadError",
13972
+ "kind": "class",
13973
+ "package": "@nifrajs/web",
13974
+ "signature": "export declare class RouteSlotLoadError extends Error {\n readonly code: string;\n constructor(code: string);\n}"
13975
+ },
13976
+ {
13977
+ "name": "RouteSlotName",
13978
+ "kind": "type",
13979
+ "package": "@nifrajs/web",
13980
+ "signature": "export type RouteSlotName = NamesInRoute<RouteTable[keyof RouteTable]> & string;",
13981
+ "doc": "/** Union of slot names registered by the generated route manifest. */"
13982
+ },
13983
+ {
13984
+ "name": "RouteSlotPatternsOf",
13985
+ "kind": "type",
13986
+ "package": "@nifrajs/web",
13987
+ "signature": "export type RouteSlotPatternsOf<T> = T extends {\n readonly routeSlots: infer Slots;\n} ? Slots extends Readonly<Record<string, readonly string[]>> ? Slots : Readonly<Record<never, never>> : Readonly<Record<never, never>>;",
13988
+ "doc": "/** Preserve route-module slot declarations in the generated, per-route `RouteTable`. */"
13989
+ },
13990
+ {
13991
+ "name": "RouteSlotProps",
13992
+ "kind": "interface",
13993
+ "package": "@nifrajs/web-preact",
13994
+ "signature": "export interface RouteSlotProps {\n readonly name: RouteSlotName;\n readonly fallback?: ComponentChildren;\n readonly error?: ComponentChildren | ((code: string) => ComponentChildren);\n}"
13995
+ },
13996
+ {
13997
+ "name": "RouteSlotProps",
13998
+ "kind": "interface",
13999
+ "package": "@nifrajs/web-react",
14000
+ "signature": "export interface RouteSlotProps {\n readonly name: RouteSlotName;\n readonly fallback?: ReactNode;\n readonly error?: ReactNode | ((code: string) => ReactNode);\n}"
14001
+ },
14002
+ {
14003
+ "name": "RouteSlotProps",
14004
+ "kind": "interface",
14005
+ "package": "@nifrajs/web-svelte",
14006
+ "signature": "export interface RouteSlotProps {\n name: RouteSlotName\n /** Rendered while the addressed route is loading. */\n children?: Snippet\n /** Rendered when the authorized route request fails, with a stable error code. */\n error?: Snippet<[code: string]>\n}"
14007
+ },
14008
+ {
14009
+ "name": "RouteSlotRegistry",
14010
+ "kind": "type",
14011
+ "package": "@nifrajs/web",
14012
+ "signature": "export type RouteSlotRegistry = Readonly<Record<string, readonly string[]>>;"
14013
+ },
14014
+ {
14015
+ "name": "RouteSlotRuntime",
14016
+ "kind": "interface",
14017
+ "package": "@nifrajs/web",
14018
+ "signature": "export interface RouteSlotRuntime {\n readonly router: RouteSlotRouter;\n readonly routes: Readonly<Record<string, readonly unknown[]>>;\n readonly searchSchemas: Readonly<Record<string, readonly (StandardSchemaV1 | undefined)[]>> | undefined;\n readonly matchChains: Readonly<Record<string, MatchChain>> | undefined;\n}"
14019
+ },
14020
+ {
14021
+ "name": "RouteSlotSnapshot",
13747
14022
  "kind": "interface",
13748
14023
  "package": "@nifrajs/web",
13749
- "signature": "export interface RouteSearch {\n}",
13750
- "doc": "/**\n * The augmentable route -> search-type map for typed cross-route navigation. Empty by default (so an\n * object-form navigate to any path is allowed with a loose `search`). A build step (`nifra sync-routes`)\n * OR the app declares one entry per route path against its `searchSchema` output:\n *\n * ```ts\n * declare module \"@nifrajs/web\" {\n * interface RouteSearch {\n * \"/reports\": { page: number; q: string }\n * }\n * }\n * ```\n *\n * With that, `navigate({ to: \"/reports\", search: { page: 2 } })` type-checks `search` against\n * `/reports`'s schema, and a wrong shape is a compile error. See {@link NavigateTarget}.\n */"
14024
+ "signature": "export interface RouteSlotSnapshot {\n readonly key?: string;\n readonly status: RouteSlotStatus;\n readonly content?: LoadedRouteSlot;\n readonly error?: string;\n}"
14025
+ },
14026
+ {
14027
+ "name": "RouteSlotStateError",
14028
+ "kind": "class",
14029
+ "package": "@nifrajs/web",
14030
+ "signature": "export declare class RouteSlotStateError extends TypeError {\n readonly code: \"malformed\" | \"unknown_slot\" | \"unknown_route\" | \"invalid_target\" | \"too_large\";\n constructor(code: RouteSlotStateError[\"code\"], message?: string);\n}"
14031
+ },
14032
+ {
14033
+ "name": "RouteSlotStatus",
14034
+ "kind": "type",
14035
+ "package": "@nifrajs/web",
14036
+ "signature": "export type RouteSlotStatus = \"idle\" | \"loading\" | \"ready\" | \"error\";"
14037
+ },
14038
+ {
14039
+ "name": "RouteSlotStore",
14040
+ "kind": "class",
14041
+ "package": "@nifrajs/web",
14042
+ "signature": "export declare class RouteSlotStore {\n #private;\n constructor(_storeKey: string, onUnused?: () => void);\n get disposed(): boolean;\n get active(): boolean;\n readonly getSnapshot: () => RouteSlotSnapshot;\n readonly getServerSnapshot: () => RouteSlotSnapshot;\n readonly subscribe: (listener: () => void) => (() => void);\n sync(key: string, loader?: RouteSlotLoader, error?: string): void;\n dispose(): void;\n refreshForRuntimeChange(): void;\n}",
14043
+ "doc": "/** One shared lifecycle for every adapter consuming the same parent page and slot name. */"
14044
+ },
14045
+ {
14046
+ "name": "RouteSlotTarget",
14047
+ "kind": "type",
14048
+ "package": "@nifrajs/web",
14049
+ "signature": "export type RouteSlotTarget = Href<keyof RouteTable & string>;",
14050
+ "doc": "/** A typed route URL that a registered route slot may display. */"
13751
14051
  },
13752
14052
  {
13753
14053
  "name": "RouteSnapshot",
@@ -13762,6 +14062,13 @@
13762
14062
  "package": "@nifrajs/core",
13763
14063
  "signature": "export interface RouteSnapshotSchema {\n readonly headers?: SchemaSnapshot;\n readonly cookies?: SchemaSnapshot;\n readonly body?: SchemaSnapshot;\n readonly query?: SchemaSnapshot;\n readonly params?: SchemaSnapshot;\n readonly response?: SchemaSnapshot;\n readonly sse?: SchemaSnapshot;\n readonly errors?: Readonly<Record<string, SchemaSnapshot>>;\n}"
13764
14064
  },
14065
+ {
14066
+ "name": "RouteTable",
14067
+ "kind": "interface",
14068
+ "package": "@nifrajs/web",
14069
+ "signature": "export interface RouteTable {\n}",
14070
+ "doc": "/**\n * Every route the app serves, keyed by URL pattern. An entry is `{ params, search }`: `params` is the\n * object a link to the route needs (`Record<string, never>` when the pattern has none), `search` the\n * output of the route's `searchSchema` (the raw query when it declares none). Empty here; `nifra types`\n * writes `.nifra/types/routes.d.ts`, which fills it from the route files:\n *\n * ```ts\n * declare module \"@nifrajs/web\" {\n * interface RouteTable {\n * \"/users/:id\": { readonly params: { readonly id: string }; readonly search: { tab: string } }\n * }\n * }\n * ```\n *\n * There is one key per pattern, so an optional segment (`[[lang]]`) is two keys with exact params each.\n * With an empty table every `to` is accepted and `search` is loose.\n */"
14071
+ },
13765
14072
  {
13766
14073
  "name": "RouteTypesOptions",
13767
14074
  "kind": "interface",
@@ -14700,7 +15007,7 @@
14700
15007
  "kind": "type",
14701
15008
  "package": "@nifrajs/web",
14702
15009
  "signature": "export type SearchOf<Module> = Module extends {\n searchSchema: infer S;\n} ? S extends StandardSchemaV1 ? InferOutput<S> extends Record<string, unknown> ? InferOutput<S> : never : Record<string, unknown> : Record<string, unknown>;",
14703
- "doc": "/**\n * The search OUTPUT type for a route MODULE - its `searchSchema`'s validated output, or the raw parsed\n * query (`Record<string, unknown>`) when it declares none. The building block for typed cross-route\n * navigation: generated route types (`nifra sync-routes`) map each path to\n * `SearchOf<typeof import(\"./routes/<file>\")>`, populating the augmentable `RouteSearch` interface.\n */"
15010
+ "doc": "/**\n * The search OUTPUT type for a route MODULE - its `searchSchema`'s validated output, or the raw parsed\n * query (`Record<string, unknown>`) when it declares none. The building block for typed cross-route\n * navigation: `nifra types` maps each route pattern to\n * `SearchOf<typeof import(\"./routes/<file>\")>` in `.nifra/types/routes.d.ts`, populating the augmentable\n * `RouteTable` interface.\n */"
14704
15011
  },
14705
15012
  {
14706
15013
  "name": "SearchParamsInit",
@@ -14727,8 +15034,8 @@
14727
15034
  "name": "SecretExemption",
14728
15035
  "kind": "interface",
14729
15036
  "package": "@nifrajs/web",
14730
- "signature": "export interface SecretExemption {\n readonly rule: SecretRule;\n /** The finding's file as reported: app-relative for a source or `public/` file, output-relative for\n * an emitted file. */\n readonly file?: string;\n /** For `private-env-value`: the variable whose value may ship. */\n readonly env?: string;\n readonly reason: string;\n}",
14731
- "doc": "/**\n * One reviewed false positive. It names the rule, where the finding is and why it may ship: there is\n * no exemption by value, so a credential that turns up somewhere else still fails the build.\n */"
15037
+ "signature": "export interface SecretExemption {\n readonly rule: SecretRule;\n /** Exempt this rule throughout the named file. Source and `public/` paths are app-relative;\n * emitted-file paths are output-relative. */\n readonly file?: string;\n /** For `private-env-value`: exempt every finding sourced from this variable across scanned output. */\n readonly env?: string;\n readonly reason: string;\n}",
15038
+ "doc": "/**\n * One reviewed false positive. A file scope exempts a rule throughout that file. For\n * `private-env-value`, an env scope exempts every finding sourced from that variable anywhere in\n * scanned output.\n */"
14732
15039
  },
14733
15040
  {
14734
15041
  "name": "SecretFinding",
@@ -14792,7 +15099,7 @@
14792
15099
  "name": "SegmentMatch",
14793
15100
  "kind": "type",
14794
15101
  "package": "@nifrajs/i18n",
14795
- "signature": "export type SegmentMatch<K extends string = string> = {\n readonly kind: \"ok\";\n readonly locale: K;\n}\n/** Not a served locale (unknown, or a draft): answer 404. */\n | {\n readonly kind: \"not-found\";\n}\n/** A served locale under a non-canonical URL - the default's prefix when the default is served\n * unprefixed, or the wrong case. `location` is the canonical path, query kept. */\n | {\n readonly kind: \"redirect\";\n readonly location: string;\n};",
15102
+ "signature": "export type SegmentMatch<K extends string = string> = {\n readonly kind: \"ok\";\n readonly locale: K;\n}\n/** Not a served locale (unknown, or a draft): answer 404. */\n | {\n readonly kind: \"not-found\";\n}\n/** A served locale under a non-canonical URL - the default's prefix when the default is served\n * unprefixed, the wrong case, or a mapped page's canonical source spelling instead of its translated\n * spelling. `location` is the canonical localized path, query kept and hash dropped. */\n | {\n readonly kind: \"redirect\";\n readonly location: string;\n};",
14796
15103
  "doc": "/** What a `[lang]` segment value means for the request. */"
14797
15104
  },
14798
15105
  {
@@ -14980,20 +15287,20 @@
14980
15287
  "name": "ServerComponentRenderAdapter",
14981
15288
  "kind": "interface",
14982
15289
  "package": "@nifrajs/web",
14983
- "signature": "export interface ServerComponentRenderAdapter {\n readonly name: \"react\" | \"vue\" | \"svelte\" | \"solid\" | \"preact\";\n readonly version: 1;\n render(view: unknown, props: unknown, context: ComponentRenderContext): ComponentRender | Promise<ComponentRender>;\n}"
15290
+ "signature": "export interface ServerComponentRenderAdapter {\n readonly name: \"react\" | \"vue\" | \"svelte\" | \"solid\" | \"preact\";\n readonly version: 1;\n render(view: unknown, props: unknown, context: ComponentRenderContext): ComponentRender | Promise<ComponentRender>;\n /** Optional React Flight stream for progressive owner refreshes. */\n renderProgressive?(view: unknown, props: unknown, context: ComponentRenderContext): ReadableStream<Uint8Array> | Promise<ReadableStream<Uint8Array>>;\n}"
14984
15291
  },
14985
15292
  {
14986
15293
  "name": "ServerComponentRuntime",
14987
15294
  "kind": "interface",
14988
15295
  "package": "@nifrajs/web",
14989
- "signature": "export interface ServerComponentRuntime {\n owns(routeId: string): boolean;\n capabilities(routeId: string): readonly string[];\n classify(request: Request, routeId: string): import(\"./protocol.js\").ComponentRequest | undefined;\n execute(routeId: string, context: ServerComponentContext, selection?: import(\"./protocol.js\").ComponentRequest, nonce?: string): Promise<ComponentState>;\n response(state: ComponentState, selection: import(\"./protocol.js\").ComponentRequest): Response;\n failure(error: unknown): Response;\n /** Whether the route's partially prerendered holes may show server components. */\n hosts?(routeId: string): boolean;\n /** Render `component` as the route's hole `key`, with the hole loader's output as its input. */\n hole?(routeId: string, component: object, key: string, input: unknown, context: ServerComponentContext): Promise<ComponentRecord>;\n}",
15296
+ "signature": "export interface ServerComponentRuntime {\n owns(routeId: string): boolean;\n capabilities(routeId: string): readonly string[];\n /** Deployment/build/adapter/route identity for explicitly public owner-page ISR entries. */\n cacheIdentity?(routeId: string): string | undefined;\n /** Public ISR policy for the complete document of an opted-in owner route. */\n cachePolicy?(routeId: string): ComponentOwnerCachePolicy | undefined;\n classify(request: Request, routeId: string): import(\"./protocol.js\").ComponentRequest | undefined;\n execute(routeId: string, context: ServerComponentContext, selection?: import(\"./protocol.js\").ComponentRequest, nonce?: string): Promise<ComponentState>;\n /** Progressive owner refresh; present only when the render adapter supports it. */\n progressive?(routeId: string, context: ServerComponentContext, selection: import(\"./protocol.js\").ComponentRequest, nonce?: string): Promise<Response>;\n response(state: ComponentState, selection: import(\"./protocol.js\").ComponentRequest): Response;\n failure(error: unknown): Response;\n /** Whether the route's partially prerendered holes may show server components. */\n hosts?(routeId: string): boolean;\n /** Render `component` as the route's hole `key`, with the hole loader's output as its input. */\n hole?(routeId: string, component: object, key: string, input: unknown, context: ServerComponentContext): Promise<ComponentRecord>;\n}",
14990
15297
  "doc": "/** Optional seam passed to createWebApp; disabled applications have no runtime import of this feature. */"
14991
15298
  },
14992
15299
  {
14993
15300
  "name": "ServerComponentsOptions",
14994
15301
  "kind": "interface",
14995
15302
  "package": "@nifrajs/web",
14996
- "signature": "export interface ServerComponentsOptions {\n readonly build: string;\n readonly adapter: ServerComponentRenderAdapter;\n readonly owners: Readonly<Record<string, ComponentOwner>>;\n /**\n * Experimental: route id to the server components its partially prerendered holes may show, each\n * through `serverHole`. A route is an owner or hosts holes, never both.\n */\n readonly holes?: Readonly<Record<string, ComponentHoles>>;\n readonly capabilities?: readonly CapabilityDefinition[];\n readonly assets?: readonly string[];\n}"
15303
+ "signature": "export interface ServerComponentsOptions {\n readonly build: string;\n /** Unique per deployed environment when any owner opts into public ISR caching. */\n readonly deployment?: string;\n readonly adapter: ServerComponentRenderAdapter;\n readonly owners: Readonly<Record<string, ComponentOwner>>;\n /**\n * Route id to the server components its partially prerendered holes may show, each\n * through `serverHole`. A route is an owner or hosts holes, never both.\n */\n readonly holes?: Readonly<Record<string, ComponentHoles>>;\n readonly capabilities?: readonly CapabilityDefinition[];\n readonly assets?: readonly string[];\n}"
14997
15304
  },
14998
15305
  {
14999
15306
  "name": "ServerComponentsPluginOptions",
@@ -15322,14 +15629,14 @@
15322
15629
  "kind": "type",
15323
15630
  "package": "@nifrajs/web",
15324
15631
  "signature": "export type SharedBoundary<Data, UI> = BoundaryBase<Data, UI> & {\n readonly mode: \"shared\";\n readonly load?: (ctx: SharedHoleCtx) => Data | Promise<Data>;\n /** The hole ships its props and hydrates. Default `false`. */\n readonly interactive?: boolean;\n /** How long a visitor waits for a build in milliseconds, then gets the error slot. Default 5000. */\n readonly timeout?: number;\n};",
15325
- "doc": "/**\n * Experimental, partial prerendering: a hole that is the same for every visitor, built like the shell\n * from a request-free context and cached on its own `revalidate`, then written right after the shell.\n * Its loader entry in `boundaryLoaders` needs `revalidate`.\n */"
15632
+ "doc": "/**\n * Partial prerendering: a hole that is the same for every visitor, built like the shell\n * from a request-free context and cached on its own `revalidate`, then written right after the shell.\n * Its loader entry in `boundaryLoaders` needs `revalidate`.\n */"
15326
15633
  },
15327
15634
  {
15328
15635
  "name": "SharedHoleCtx",
15329
15636
  "kind": "interface",
15330
15637
  "package": "@nifrajs/web",
15331
15638
  "signature": "export interface SharedHoleCtx extends ShellCtx {\n readonly live: (...keys: string[]) => void;\n}",
15332
- "doc": "/**\n * Experimental: what a shared hole's loader receives. The keys it declares are kept with the built\n * entry and watched for every visitor it serves; a change reloads the hole, which the shared entry\n * answers until a purge by one of its `revalidateTags` drops it, so publish each key with a tag.\n */"
15639
+ "doc": "/**\n * What a shared hole's loader receives. The keys it declares are kept with the built\n * entry and watched for every visitor it serves; a change reloads the hole, which the shared entry\n * answers until a purge by one of its `revalidateTags` drops it, so publish each key with a tag.\n */"
15333
15640
  },
15334
15641
  {
15335
15642
  "name": "SharedKey",
@@ -15382,7 +15689,7 @@
15382
15689
  "kind": "interface",
15383
15690
  "package": "@nifrajs/web",
15384
15691
  "signature": "export interface ShellCtx {\n /** `\"shell\"`: built on demand at runtime, under the same rules as a build. */\n readonly phase: \"build\" | \"shell\";\n /** The deployment's origin from config, never from a Host header. */\n readonly origin?: string;\n /** Decoded params, as the route pattern matched them. */\n readonly params: Readonly<Record<string, string>>;\n readonly locale: string | undefined;\n /** The route's declared `shellVariations` this request selected: declared keys and values only. */\n readonly variations: Readonly<Record<string, string>>;\n /** Aborts on the shell build deadline, never on one visitor's disconnect. */\n readonly signal: AbortSignal;\n /** The in-process api, unbound to any request: build-safe calls only, as in a prerender. */\n readonly api: unknown;\n}",
15385
- "doc": "/**\n * Experimental: what a partially prerendered page's `shellLoader` receives. No request, env, draft or\n * search: the shell is shared by every visitor whose URL maps to the same params and locale.\n */"
15692
+ "doc": "/**\n * What a partially prerendered page's `shellLoader` receives. No request, env, draft or\n * search: the shell is shared by every visitor whose URL maps to the same params and locale.\n */"
15386
15693
  },
15387
15694
  {
15388
15695
  "name": "ShouldRevalidate",
@@ -15440,7 +15747,7 @@
15440
15747
  "name": "SingleCopyOptions",
15441
15748
  "kind": "interface",
15442
15749
  "package": "@nifrajs/core",
15443
- "signature": "export interface SingleCopyOptions {\n /** The app root whose copy wins. Defaults to `process.cwd()`. */\n readonly cwd?: string;\n /** Package names or `@scope/*` patterns. Defaults to the `nifra.singleCopy` declaration. */\n readonly packages?: readonly string[];\n /**\n * Throw instead of warning when a declared package keeps a second copy (a version skew, or a file\n * with no counterpart in the app's copy). Read by {@link registerSingleCopy}; defaults to the\n * declaration's `strict` flag, or {@link SINGLE_COPY_STRICT_ENV} set to `1`/`true`.\n */\n readonly strict?: boolean;\n /**\n * Called for every skip: by {@link registerSingleCopy} for each planned `version-skew`, and by the\n * plugin for each `no-counterpart` file it lets through at load time. Unset, the plugin stays silent\n * (a bundle's duplicates are the identity preflight's to report); the registrar always warns, or\n * throws in strict mode, and calls this as well.\n */\n readonly onSkip?: (skip: SingleCopySkip) => void;\n}"
15750
+ "signature": "export interface SingleCopyOptions {\n /** The app root whose copy wins. Defaults to its nearest declaration, or `process.cwd()` if none. */\n readonly cwd?: string;\n /** Package names or `@scope/*` patterns. Defaults to the `nifra.singleCopy` declaration. */\n readonly packages?: readonly string[];\n /**\n * Throw instead of warning when a declared package keeps a second copy (a version skew, or a file\n * with no counterpart in the app's copy). Read by {@link registerSingleCopy}; defaults to the\n * declaration's `strict` flag, or {@link SINGLE_COPY_STRICT_ENV} set to `1`/`true`.\n */\n readonly strict?: boolean;\n /**\n * Called for every skip: by {@link registerSingleCopy} for each planned `version-skew`, and by the\n * plugin for each `no-counterpart` file it lets through at load time. Unset, the plugin stays silent\n * (a bundle's duplicates are the identity preflight's to report); the registrar always warns, or\n * throws in strict mode, and calls this as well.\n */\n readonly onSkip?: (skip: SingleCopySkip) => void;\n}"
15444
15751
  },
15445
15752
  {
15446
15753
  "name": "SingleCopyPlan",
@@ -15821,6 +16128,50 @@
15821
16128
  "signature": "export interface StaticFileAccess {\n /** The real path the file was opened at: what tags and types it. */\n readonly path: string;\n readonly version: FileVersion;\n /** Read the whole file, up to {@link CONTENT_SNAPSHOT_MAX} bytes, through the open descriptor. */\n readonly readWhole: () => Promise<Uint8Array>;\n /** Stat the open descriptor again. */\n readonly restat: () => Promise<FileVersion>;\n readonly tags: ContentTags;\n /** `@nifrajs/core/range`'s parser, passed in so this module imports nothing. */\n readonly parseRange: (value: string, size: number) => {\n readonly kind: \"none\" | \"unsatisfiable\";\n } | {\n readonly kind: \"satisfiable\";\n readonly ranges: readonly {\n readonly start: number;\n readonly end: number;\n }[];\n };\n}",
15822
16129
  "doc": "/** How a reader reaches the opened, pinned file for {@link planStatic}. */"
15823
16130
  },
16131
+ {
16132
+ "name": "StaticImageComponentProps",
16133
+ "kind": "type",
16134
+ "package": "@nifrajs/web-preact",
16135
+ "signature": "export type StaticImageComponentProps = StaticImageProps & Omit<ImageComponentProps, \"src\" | \"width\" | \"height\">;"
16136
+ },
16137
+ {
16138
+ "name": "StaticImageComponentProps",
16139
+ "kind": "type",
16140
+ "package": "@nifrajs/web-react",
16141
+ "signature": "export type StaticImageComponentProps = StaticImageProps & Omit<ImageComponentProps, \"src\" | \"width\" | \"height\">;"
16142
+ },
16143
+ {
16144
+ "name": "StaticImageComponentProps",
16145
+ "kind": "type",
16146
+ "package": "@nifrajs/web-solid",
16147
+ "signature": "export type StaticImageComponentProps = StaticImageProps & Omit<ImageComponentProps, \"src\" | \"width\" | \"height\">;"
16148
+ },
16149
+ {
16150
+ "name": "StaticImageComponentProps",
16151
+ "kind": "type",
16152
+ "package": "@nifrajs/web-svelte",
16153
+ "signature": "export type StaticImageComponentProps = StaticImageProps &\n Omit<ImageComponentProps, \"src\" | \"width\" | \"height\">"
16154
+ },
16155
+ {
16156
+ "name": "StaticImageData",
16157
+ "kind": "interface",
16158
+ "package": "@nifrajs/image",
16159
+ "signature": "export interface StaticImageData {\n readonly src: string;\n readonly width: number;\n readonly height: number;\n readonly variants?: readonly StaticImageVariant[];\n}",
16160
+ "doc": "/** Intrinsic display dimensions (including EXIF orientation), plus optional prebuilt variants. */"
16161
+ },
16162
+ {
16163
+ "name": "StaticImageProps",
16164
+ "kind": "interface",
16165
+ "package": "@nifrajs/image",
16166
+ "signature": "export interface StaticImageProps extends ImagePresentationProps {\n readonly src: StaticImageData;\n readonly width?: number;\n readonly height?: number;\n}"
16167
+ },
16168
+ {
16169
+ "name": "StaticImageVariant",
16170
+ "kind": "interface",
16171
+ "package": "@nifrajs/image",
16172
+ "signature": "export interface StaticImageVariant {\n readonly src: string;\n readonly width: number;\n readonly height: number;\n}",
16173
+ "doc": "/** Browser-safe output of an `?image` import. No filesystem or codec enters the client. */"
16174
+ },
15824
16175
  {
15825
16176
  "name": "StaticMatch",
15826
16177
  "kind": "type",
@@ -16851,24 +17202,31 @@
16851
17202
  "kind": "interface",
16852
17203
  "package": "@nifrajs/auth",
16853
17204
  "signature": "export interface UnauthenticatedResponse {\n /** An error status, 400-599. Default `401`. */\n readonly status?: number;\n /** The body; present but `undefined` sends none. Default `{ ok: false, error: \"unauthorized\" }`. */\n readonly body?: unknown;\n /** Response headers, such as a `www-authenticate` challenge. */\n readonly headers?: Readonly<Record<string, string>>;\n}",
16854
- "doc": "/** The response a guard denies a missing session with, in place of the default `401` JSON. */"
17205
+ "doc": "/**\n * The response a guard denies a missing session with, in place of the default `401` JSON. Every\n * nifra auth package's guard options named `unauthenticated` takes this shape.\n */"
16855
17206
  },
16856
17207
  {
16857
17208
  "name": "UnauthenticatedResponse",
16858
17209
  "kind": "interface",
16859
17210
  "package": "@nifrajs/authjs",
16860
17211
  "signature": "export interface UnauthenticatedResponse {\n /** An error status, 400-599. Default `401`. */\n readonly status?: number;\n /** The body; present but `undefined` sends none. Default `{ ok: false, error: \"unauthorized\" }`. */\n readonly body?: unknown;\n /** Response headers, such as a `www-authenticate` challenge. */\n readonly headers?: Readonly<Record<string, string>>;\n}",
16861
- "doc": "/** The response a guard denies a missing session with, in place of the default `401` JSON. */"
17212
+ "doc": "/**\n * The response a guard denies a missing session with, in place of the default `401` JSON. Every\n * nifra auth package's guard options named `unauthenticated` takes this shape.\n */"
16862
17213
  },
16863
17214
  {
16864
17215
  "name": "UnauthenticatedResponse",
16865
17216
  "kind": "interface",
16866
17217
  "package": "@nifrajs/better-auth",
16867
17218
  "signature": "export interface UnauthenticatedResponse {\n /** An error status, 400-599. Default `401`. */\n readonly status?: number;\n /** The body; present but `undefined` sends none. Default `{ ok: false, error: \"unauthorized\" }`. */\n readonly body?: unknown;\n /** Response headers, such as a `www-authenticate` challenge. */\n readonly headers?: Readonly<Record<string, string>>;\n}",
16868
- "doc": "/** The response a guard denies a missing session with, in place of the default `401` JSON. */"
17219
+ "doc": "/**\n * The response a guard denies a missing session with, in place of the default `401` JSON. Every\n * nifra auth package's guard options named `unauthenticated` takes this shape.\n */"
16869
17220
  },
16870
17221
  {
16871
- "name": "UndiciTransportOptions",
17222
+ "name": "UnauthenticatedResponse",
17223
+ "kind": "interface",
17224
+ "package": "@nifrajs/core",
17225
+ "signature": "export interface UnauthenticatedResponse {\n /** An error status, 400-599. Default `401`. */\n readonly status?: number;\n /** The body; present but `undefined` sends none. Default `{ ok: false, error: \"unauthorized\" }`. */\n readonly body?: unknown;\n /** Response headers, such as a `www-authenticate` challenge. */\n readonly headers?: Readonly<Record<string, string>>;\n}",
17226
+ "doc": "/**\n * The response a guard denies a missing session with, in place of the default `401` JSON. Every\n * nifra auth package's guard options named `unauthenticated` takes this shape.\n */"
17227
+ },
17228
+ {
17229
+ "name": "UndiciTransportOptions",
16872
17230
  "kind": "interface",
16873
17231
  "package": "@nifrajs/proxy",
16874
17232
  "signature": "export interface UndiciTransportOptions {\n /**\n * Connection pool to dial through - an undici `Agent`, `Pool`, or any other `Dispatcher`. Omit to\n * use undici's global dispatcher. Supply one to tune `connections` per origin, which is the knob\n * that matters under load. It must not compose a redirect interceptor: this proxy relays 3xx\n * rather than following it, and a dispatcher that follows would hand the upstream the next hop.\n */\n readonly dispatcher?: Dispatcher;\n /**\n * Milliseconds of silence tolerated *within* the response body before undici destroys it.\n * `createProxy`'s own `timeoutMs` only covers the wait for response headers - after the status is\n * relayed a `504` is no longer sendable - so this is what protects against a body that starts and\n * then stalls. Default `30_000`; `0` disables it.\n */\n readonly bodyTimeoutMs?: number;\n}"
@@ -16877,8 +17235,8 @@
16877
17235
  "name": "UnlocalizedPath",
16878
17236
  "kind": "interface",
16879
17237
  "package": "@nifrajs/i18n",
16880
- "signature": "export interface UnlocalizedPath<K extends string = string> {\n /** The served locale the leading segment named, or `undefined` for an unprefixed path. */\n readonly locale: K | undefined;\n /** The path without the locale segment, always starting with `/`. */\n readonly pathname: string;\n}",
16881
- "doc": "/** A pathname with its locale prefix removed (or not, when it carries none). */"
17238
+ "signature": "export interface UnlocalizedPath<K extends string = string> {\n /** The served locale the leading segment named, or `undefined` for an unprefixed path. */\n readonly locale: K | undefined;\n /** The canonical unprefixed path, always starting with `/`; mapped Unicode is URL-encoded. */\n readonly pathname: string;\n}",
17239
+ "doc": "/** A canonical pathname with its locale prefix removed (or not, when it carries none). */"
16882
17240
  },
16883
17241
  {
16884
17242
  "name": "UnsafeScriptDescriptor",
@@ -16898,7 +17256,7 @@
16898
17256
  "kind": "type",
16899
17257
  "package": "@nifrajs/uploads",
16900
17258
  "signature": "export type UploadResult = {\n readonly ok: true;\n readonly mime: string;\n readonly ext: string;\n readonly bytes: Uint8Array;\n} | {\n readonly ok: false;\n readonly reason: \"too_large\" | \"empty\" | \"unrecognized\" | \"type_not_allowed\";\n /** The sniffed type, when one was detected (set for `type_not_allowed`). */\n readonly detected?: FileType;\n};",
16901
- "doc": "/**\n * Validate an upload's **size** and **real type** (by magic bytes, not the client's `Content-Type`).\n * Pair with `c.boundedBody(maxBytes)` from `@nifrajs/core` to bound the *read* itself: read the body\n * under the cap, then `validateUpload(bytes, …)` to confirm the size + sniff the type.\n */"
17259
+ "doc": "/**\n * Validate an upload's **size** and **real type** (by magic bytes, not the client's `Content-Type`).\n * Direct request reads follow the configured route body limit. Use `c.boundedBody(maxBytes)` from `@nifrajs/core`\n * for an explicit per-read cap, then `validateUpload(bytes, …)` to confirm the size and sniff the type.\n */"
16902
17260
  },
16903
17261
  {
16904
17262
  "name": "UrlParts",
@@ -16919,6 +17277,13 @@
16919
17277
  "signature": "export interface UseCapabilityOptions {\n /** Adapter/resource token recorded on the ledger entry (`repo:orders`). */\n readonly target?: string;\n /** Dimensionless resource counters recorded on the ledger entry. */\n readonly cost?: EffectCost;\n /** Keyed payload digest (see `computeEffectDigest`). */\n readonly digest?: string;\n}",
16920
17278
  "doc": "/**\n * Optional effect-ledger fields for one `useCapability` beacon. Token-only by design: an adapter\n * names *what* it touched and *how much resource* it used - never the value it read or wrote.\n */"
16921
17279
  },
17280
+ {
17281
+ "name": "UseInfiniteQueryOptions",
17282
+ "kind": "interface",
17283
+ "package": "@nifrajs/web-preact",
17284
+ "signature": "export interface UseInfiniteQueryOptions<T, P> extends InfiniteQueryOptions<T, P> {\n readonly enabled?: boolean;\n}",
17285
+ "doc": "/** Options for an infinite query. */"
17286
+ },
16922
17287
  {
16923
17288
  "name": "UseInfiniteQueryOptions",
16924
17289
  "kind": "interface",
@@ -16926,6 +17291,27 @@
16926
17291
  "signature": "export interface UseInfiniteQueryOptions<T, P> extends InfiniteQueryOptions<T, P> {\n readonly enabled?: boolean;\n}",
16927
17292
  "doc": "/** Options for {@link useInfiniteQuery} - the engine's {@link InfiniteQueryOptions} plus `enabled`. */"
16928
17293
  },
17294
+ {
17295
+ "name": "UseInfiniteQueryOptions",
17296
+ "kind": "interface",
17297
+ "package": "@nifrajs/web-svelte",
17298
+ "signature": "export interface UseInfiniteQueryOptions<T, P> extends InfiniteQueryOptions<T, P> {\n readonly enabled?: boolean;\n}",
17299
+ "doc": "/** Options for a Svelte infinite query. */"
17300
+ },
17301
+ {
17302
+ "name": "UseInfiniteQueryOptions",
17303
+ "kind": "interface",
17304
+ "package": "@nifrajs/web-vue",
17305
+ "signature": "export interface UseInfiniteQueryOptions<T, P> extends InfiniteQueryOptions<T, P> {\n readonly enabled?: boolean;\n}",
17306
+ "doc": "/** Options for a Vue infinite query. */"
17307
+ },
17308
+ {
17309
+ "name": "UseInfiniteQueryResult",
17310
+ "kind": "interface",
17311
+ "package": "@nifrajs/web-preact",
17312
+ "signature": "export interface UseInfiniteQueryResult<T, P> extends QueryState<InfiniteData<T, P>> {\n readonly isPending: boolean;\n readonly isError: boolean;\n readonly isSuccess: boolean;\n readonly fetchNextPage: () => Promise<InfiniteData<T, P>>;\n readonly fetchPreviousPage: () => Promise<InfiniteData<T, P>>;\n readonly hasNextPage: boolean;\n readonly hasPreviousPage: boolean;\n readonly refetch: () => Promise<InfiniteData<T, P>>;\n}",
17313
+ "doc": "/** Infinite-query state and page controls. */"
17314
+ },
16929
17315
  {
16930
17316
  "name": "UseInfiniteQueryResult",
16931
17317
  "kind": "interface",
@@ -16933,13 +17319,34 @@
16933
17319
  "signature": "export interface UseInfiniteQueryResult<T, P> extends QueryState<InfiniteData<T, P>> {\n readonly isPending: boolean;\n readonly isError: boolean;\n readonly isSuccess: boolean;\n readonly fetchNextPage: () => Promise<InfiniteData<T, P>>;\n readonly fetchPreviousPage: () => Promise<InfiniteData<T, P>>;\n readonly hasNextPage: boolean;\n readonly hasPreviousPage: boolean;\n readonly refetch: () => Promise<InfiniteData<T, P>>;\n}",
16934
17320
  "doc": "/** An infinite query's reactive state + paging controls. */"
16935
17321
  },
17322
+ {
17323
+ "name": "UseInfiniteQueryResult",
17324
+ "kind": "interface",
17325
+ "package": "@nifrajs/web-vue",
17326
+ "signature": "export interface UseInfiniteQueryResult<T, P> {\n readonly state: Readonly<ShallowRef<QueryState<InfiniteData<T, P>>>>;\n readonly isPending: ComputedRef<boolean>;\n readonly isError: ComputedRef<boolean>;\n readonly isSuccess: ComputedRef<boolean>;\n readonly hasNextPage: ComputedRef<boolean>;\n readonly hasPreviousPage: ComputedRef<boolean>;\n readonly fetchNextPage: () => Promise<InfiniteData<T, P>>;\n readonly fetchPreviousPage: () => Promise<InfiniteData<T, P>>;\n readonly refetch: () => Promise<InfiniteData<T, P>>;\n}",
17327
+ "doc": "/** Infinite-query state and page controls as Vue refs/computed values. */"
17328
+ },
17329
+ {
17330
+ "name": "UseMutationResult",
17331
+ "kind": "interface",
17332
+ "package": "@nifrajs/web-preact",
17333
+ "signature": "export interface UseMutationResult<TData, TVariables> extends MutationState<TData, TVariables> {\n readonly isIdle: boolean;\n readonly isPending: boolean;\n readonly isError: boolean;\n readonly isSuccess: boolean;\n readonly mutate: (variables: TVariables) => void;\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n readonly reset: () => void;\n readonly cancel: () => void;\n}",
17334
+ "doc": "/** Observable mutation state and imperative controls. */"
17335
+ },
16936
17336
  {
16937
17337
  "name": "UseMutationResult",
16938
17338
  "kind": "interface",
16939
17339
  "package": "@nifrajs/web-react",
16940
- "signature": "export interface UseMutationResult<TData, TVariables> extends MutationState<TData, TVariables> {\n readonly isIdle: boolean;\n readonly isPending: boolean;\n readonly isError: boolean;\n readonly isSuccess: boolean;\n /** Fire-and-forget: runs the mutation and swallows rejection (read `error`/`isError` for failures). */\n readonly mutate: (variables: TVariables) => void;\n /** Run the mutation and return the promise (rejects on failure) - for `await`. */\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n /** Reset back to idle. */\n readonly reset: () => void;\n}",
17340
+ "signature": "export interface UseMutationResult<TData, TVariables> extends MutationState<TData, TVariables> {\n readonly isIdle: boolean;\n readonly isPending: boolean;\n readonly isError: boolean;\n readonly isSuccess: boolean;\n /** Fire-and-forget: runs the mutation and swallows rejection (read `error`/`isError` for failures). */\n readonly mutate: (variables: TVariables) => void;\n /** Run the mutation and return the promise (rejects on failure) - for `await`. */\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n /** Reset back to idle. */\n readonly reset: () => void;\n /** Cancel pending mutation work. */\n readonly cancel: () => void;\n}",
16941
17341
  "doc": "/** A mutation's reactive state + imperative controls (the TanStack `useMutation` shape). */"
16942
17342
  },
17343
+ {
17344
+ "name": "UseMutationResult",
17345
+ "kind": "interface",
17346
+ "package": "@nifrajs/web-vue",
17347
+ "signature": "export interface UseMutationResult<TData, TVariables> {\n readonly state: Readonly<ShallowRef<MutationState<TData, TVariables>>>;\n readonly isIdle: ComputedRef<boolean>;\n readonly isPending: ComputedRef<boolean>;\n readonly isError: ComputedRef<boolean>;\n readonly isSuccess: ComputedRef<boolean>;\n readonly mutate: (variables: TVariables) => void;\n readonly mutateAsync: (variables: TVariables) => Promise<TData>;\n readonly reset: () => void;\n readonly cancel: () => void;\n}",
17348
+ "doc": "/** A Vue mutation result with reactive state and promise/fire-and-forget controls. */"
17349
+ },
16943
17350
  {
16944
17351
  "name": "UseQueryOptions",
16945
17352
  "kind": "interface",
@@ -16972,14 +17379,14 @@
16972
17379
  "name": "VERSION",
16973
17380
  "kind": "const",
16974
17381
  "package": "@nifrajs/core",
16975
- "signature": "export declare const VERSION: \"5.9.0\";",
17382
+ "signature": "export declare const VERSION: \"5.11.0\";",
16976
17383
  "doc": "/**\n * Current package version. A hardcoded literal on purpose - core runs on the edge (no fs), so it can't\n * read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and\n * `check:publish` asserts it equals `@nifrajs/core`'s package version.\n */"
16977
17384
  },
16978
17385
  {
16979
17386
  "name": "VERSION",
16980
17387
  "kind": "const",
16981
17388
  "package": "nifra",
16982
- "signature": "export declare const VERSION: \"5.9.0\";",
17389
+ "signature": "export declare const VERSION: \"5.11.0\";",
16983
17390
  "doc": "/**\n * Current package version. A hardcoded literal on purpose - core runs on the edge (no fs), so it can't\n * read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and\n * `check:publish` asserts it equals `@nifrajs/core`'s package version.\n */"
16984
17391
  },
16985
17392
  {
@@ -17025,6 +17432,13 @@
17025
17432
  "package": "@nifrajs/web",
17026
17433
  "signature": "export type VercelOptions = ({\n /** `invalidateByTag` from `@vercel/functions`: inside a Vercel Function, no token needed. */\n readonly invalidateByTag: TagPurge;\n /** `dangerouslyDeleteByTag` from `@vercel/functions`, for `mode: \"delete\"`. */\n readonly dangerouslyDeleteByTag?: TagPurge;\n} | {\n /** A Vercel access token for the REST API. Keep it in an env var. */\n readonly token: string;\n readonly projectId: string;\n readonly teamId?: string;\n /** Purge one environment only; default both. */\n readonly target?: \"production\" | \"preview\";\n /** The fetch purge calls go through; tests pass their own. */\n readonly fetch?: typeof fetch;\n}) & {\n /**\n * `invalidate` (default) marks tagged pages stale: the next visitor gets the old page while Vercel\n * refetches. `delete` drops them, so the next visitors wait on the origin together.\n */\n readonly mode?: \"invalidate\" | \"delete\";\n readonly queue?: PurgeQueueOptions;\n};"
17027
17434
  },
17435
+ {
17436
+ "name": "VercelRuntime",
17437
+ "kind": "type",
17438
+ "package": "@nifrajs/web",
17439
+ "signature": "export type VercelRuntime = \"edge\" | \"node\";",
17440
+ "doc": "/** Ordinary Vercel SSR uses Edge unless Node is explicitly selected. */"
17441
+ },
17028
17442
  {
17029
17443
  "name": "VerificationCompletedView",
17030
17444
  "kind": "interface",
@@ -17751,6 +18165,13 @@
17751
18165
  "signature": "export declare function assertTransportTextBounded(text: string, options: TransportDecodeOptions): void;",
17752
18166
  "doc": "/**\n * Enforce the transport byte cap on already-read text - the same limit (and the same error) the\n * streaming reader applies during a bounded read. Exported for callers that read a body through a\n * native, non-streaming path (the typed client's in-process branch) and still owe the cap contract.\n */"
17753
18167
  },
18168
+ {
18169
+ "name": "assertUnauthenticated",
18170
+ "kind": "function",
18171
+ "package": "@nifrajs/core",
18172
+ "signature": "export declare function assertUnauthenticated(options: {\n readonly redirectTo?: string;\n readonly unauthenticated?: UnauthenticatedResponse;\n}, owner: string): void;",
18173
+ "doc": "/**\n * A dev-authored denial that is not an error status, or that competes with a redirect, fails loud.\n * A mutation-taking guard must say one thing, and `unauthenticated.status` must stay an HTTP error\n * status. `owner` names the package in the message: `[nifra/<owner>]`.\n */"
18174
+ },
17754
18175
  {
17755
18176
  "name": "assure",
17756
18177
  "kind": "function",
@@ -17944,6 +18365,13 @@
17944
18365
  "signature": "export declare function boundaryModeKey(mode: BoundaryMode): string;",
17945
18366
  "doc": "/** Stable mode label for adapter registries and diagnostics. */"
17946
18367
  },
18368
+ {
18369
+ "name": "boundedJsonText",
18370
+ "kind": "function",
18371
+ "package": "@nifrajs/core",
18372
+ "signature": "export declare function boundedJsonText(value: unknown, maxBytes: number): {\n readonly text: string;\n readonly byteLength: number;\n} | undefined;",
18373
+ "doc": "/**\n * Serialize a JSON value only when its exact UTF-8 size fits `maxBytes`. The preflight snapshots\n * enumerable values and `toJSON` results while counting, so an oversized output is rejected before\n * constructing the escaped JSON string or its encoded byte buffer. Returns `undefined` for a root\n * value with no JSON representation, matching `JSON.stringify`.\n */"
18374
+ },
17947
18375
  {
17948
18376
  "name": "boundedSqliteQuery",
17949
18377
  "kind": "function",
@@ -17965,6 +18393,13 @@
17965
18393
  "signature": "export declare function browserDenial(classification: Classification, specifier?: string): string | undefined;",
17966
18394
  "doc": "/**\n * Why a classified file may not ship to a browser, or `undefined` when it may. A `drizzle-orm` driver\n * entry is recognized by the import as written (`specifier`) or by the file's path in the package.\n */"
17967
18395
  },
18396
+ {
18397
+ "name": "browserPathSegment",
18398
+ "kind": "function",
18399
+ "package": "@nifrajs/core",
18400
+ "signature": "export declare function browserPathSegment(value: string): string;",
18401
+ "doc": "/**\n * `value` as a browser spells it in a request URL: {@link encodePathSegment} with `; [ ] |` left as\n * written. Used for one thing, registering a public file under the spelling its page links request;\n * it differs from the canonical form on those four characters only.\n */"
18402
+ },
17968
18403
  {
17969
18404
  "name": "buildAssetPaths",
17970
18405
  "kind": "function",
@@ -19051,6 +19486,13 @@
19051
19486
  "signature": "export declare function createHostPolicy(options: HostPolicyOptions): HostPolicy;",
19052
19487
  "doc": "/**\n * Declare which pages and files each host serves. Hand the result to `createWebApp({ hostPolicy })`\n * (or export it as `hostPolicy` from the framework module, which `nifra build`'s server entry reads):\n * it is evaluated before the build's static files, the prerendered pages, the mounts and every page.\n * On Vercel the CDN answers the build's files before the function runs, so there it covers the rest.\n * A hand-written entry calls `check(request, buildAssets)` first, before its own static handler.\n *\n * ```ts\n * export const hostPolicy = createHostPolicy({\n * rules: [{\n * hosts: (host) => !OWN_HOSTS.has(host),\n * pages: [\"/\", \"/p/:id\", \"/share/*\"],\n * paths: [\"/api/submissions/*\"],\n * }],\n * })\n * ```\n */"
19053
19488
  },
19489
+ {
19490
+ "name": "createImageAssets",
19491
+ "kind": "function",
19492
+ "package": "@nifrajs/image",
19493
+ "signature": "export declare function createImageAssets(options?: ImageBuildOptions): ImageAssets;",
19494
+ "doc": "/** Shared builder for client/SSR imports. Processing results depend on bytes, never absolute paths. */"
19495
+ },
19054
19496
  {
19055
19497
  "name": "createImageHandler",
19056
19498
  "kind": "function",
@@ -19058,6 +19500,13 @@
19058
19500
  "signature": "export declare function createImageHandler(options?: ImageHandlerOptions): (req: Request) => Promise<Response>;",
19059
19501
  "doc": "/**\n * Build the resize request handler. Mount its return value at the `selfHostedLoader` endpoint:\n *\n * ```ts\n * const image = createImageHandler({ root: \"./public\", allowedOrigins: [\"https://cdn.example\"] })\n * // inside your router: if (url.pathname === \"/_image\") return image(req)\n * ```\n */"
19060
19502
  },
19503
+ {
19504
+ "name": "createInfiniteQuery",
19505
+ "kind": "function",
19506
+ "package": "@nifrajs/web-solid",
19507
+ "signature": "export declare function createInfiniteQuery<T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: CreateInfiniteQueryOptions<T, P>): CreateInfiniteQueryResult<T, P>;",
19508
+ "doc": "/** Bind a paged query to a Solid owner and fetch its first page on mount. */"
19509
+ },
19061
19510
  {
19062
19511
  "name": "createInvalidator",
19063
19512
  "kind": "function",
@@ -19163,9 +19612,16 @@
19163
19612
  "name": "createMutation",
19164
19613
  "kind": "function",
19165
19614
  "package": "@nifrajs/web",
19166
- "signature": "export declare function createMutation<TData, TVariables>(fn: (variables: TVariables) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): MutationHandle<TData, TVariables>;",
19615
+ "signature": "export declare function createMutation<TData, TVariables>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): MutationHandle<TData, TVariables>;",
19167
19616
  "doc": "/**\n * Create a standalone mutation state machine - framework-agnostic, so a per-adapter `useMutation`\n * binding just subscribes to it. Single-flight by a monotonic token: overlapping `mutate` calls each\n * run their `fn`, but only the latest publishes state (an older, slower response can't clobber a newer\n * one). The callbacks fire in TanStack order: `onMutate` (before), then `onSuccess`/`onError`, then\n * `onSettled`.\n */"
19168
19617
  },
19618
+ {
19619
+ "name": "createMutation",
19620
+ "kind": "function",
19621
+ "package": "@nifrajs/web-solid",
19622
+ "signature": "export declare function createMutation<TData, TVariables = void>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): CreateMutationResult<TData, TVariables>;",
19623
+ "doc": "/** Bind a mutation to a Solid owner. Identity changes discard late results and callbacks. */"
19624
+ },
19169
19625
  {
19170
19626
  "name": "createNativeGatewayModelPort",
19171
19627
  "kind": "function",
@@ -19534,6 +19990,13 @@
19534
19990
  "signature": "export declare function decodeCursor<T = unknown>(cursor: string | null | undefined): T | undefined;",
19535
19991
  "doc": "/** Decode a cursor back to its value. Returns `undefined` for a null/empty/malformed cursor - treat that\n * as \"start from the beginning\" rather than erroring on a client-supplied string. */"
19536
19992
  },
19993
+ {
19994
+ "name": "decodePathSegment",
19995
+ "kind": "function",
19996
+ "package": "@nifrajs/core",
19997
+ "signature": "export declare function decodePathSegment(raw: string): string | undefined;",
19998
+ "doc": "/**\n * `raw` with its percent-escapes decoded, or `undefined` when one is malformed. The inverse of\n * {@link encodePathSegment} and of {@link browserPathSegment}; a segment in any other spelling decodes\n * too. What a malformed escape means is the caller's policy.\n */"
19999
+ },
19537
20000
  {
19538
20001
  "name": "decodeRouteParams",
19539
20002
  "kind": "function",
@@ -20150,6 +20613,13 @@
20150
20613
  "signature": "export declare function encodeCursor(value: unknown): string;",
20151
20614
  "doc": "/** Encode any JSON-serializable value (e.g. the last row's sort key) into an opaque cursor string. */"
20152
20615
  },
20616
+ {
20617
+ "name": "encodePathSegment",
20618
+ "kind": "function",
20619
+ "package": "@nifrajs/core",
20620
+ "signature": "export declare function encodePathSegment(value: string): string;",
20621
+ "doc": "/**\n * `value` as one path segment. Left as written: letters, digits, the at sign and `- . _ ~ ! $ & ' ( ) * + , : =`.\n * Everything else is percent-encoded, UTF-8 and upper-case hex, including `; [ ] | / ? # % \\`.\n *\n * Throws a `RangeError` for a value that no segment can carry: exactly `.` or `..` (a URL parser reads\n * `%2E` and `%2E%2E` as dot segments too) and a lone surrogate (substituting U+FFFD would map distinct\n * values to one URL). The empty string is returned as is; a caller that cannot use it checks for it.\n */"
20622
+ },
20153
20623
  {
20154
20624
  "name": "encodeTransportFrame",
20155
20625
  "kind": "function",
@@ -20387,6 +20857,13 @@
20387
20857
  "package": "@nifrajs/web",
20388
20858
  "signature": "export declare function filePathToPatterns(file: string): string[];"
20389
20859
  },
20860
+ {
20861
+ "name": "fillRoutePath",
20862
+ "kind": "function",
20863
+ "package": "@nifrajs/core",
20864
+ "signature": "export declare function fillRoutePath(pattern: string | CompiledRoutePattern, params: Readonly<Record<string, string | undefined>>): FilledRoutePath;",
20865
+ "doc": "/**\n * The path `pattern` names for `params`, every value spelled by {@link encodePathSegment}. A wildcard\n * value is split on `/` and each part encoded, empty parts dropped; a `.` or `..` part is invalid, as\n * a whole-segment value is. Nothing is thrown for a bad value: the caller decides what a missing or\n * invalid param means. A param inside a mixed segment is invalid when its value holds the literal that ends it (`name` = `a.b` in\n * `:name.:ext`), or when it touches the next param and encodes to more than one character, because the\n * router would split it differently. A param's constraint (`:id{[0-9]+}`) is not checked here.\n */"
20866
+ },
20390
20867
  {
20391
20868
  "name": "filterDevToolsEvents",
20392
20869
  "kind": "function",
@@ -20595,18 +21072,11 @@
20595
21072
  "signature": "export declare function generateRegressionTest(capsule: IncidentCapsule, options?: GenerateRegressionTestOptions): string;",
20596
21073
  "doc": "/**\n * Emit a committable regression test from a capsule. Body strings, query values, header values (bar\n * `content-type`) and the note are redacted BY DEFAULT with a sanitize banner - replace the\n * `<redacted>` placeholders with safe, reproducing values before you commit. The path is kept\n * verbatim because it selects the route, so the file always asks for it to be reviewed. The test\n * asserts the response contract via {@link assertIncidentReplays}.\n */"
20597
21074
  },
20598
- {
20599
- "name": "generateRouteSearchTypes",
20600
- "kind": "function",
20601
- "package": "@nifrajs/web",
20602
- "signature": "export declare function generateRouteSearchTypes(manifest: Manifest, options: GenerateRouteSearchTypesOptions): string;",
20603
- "doc": "/**\n * Codegen: emit a `.d.ts` that types cross-route `navigate({ to, search })` against each route's\n * `searchSchema`. It augments the {@link RouteSearch} map with `\"<pattern>\": SearchOf<typeof import(...)>`\n * for every **static** route (one with no `:param`/`*` segment - a concrete `to` a caller can pass; a\n * dynamic route's concrete path can't match its pattern key, so those keep the loose object form). Written\n * by `nifra sync-routes` next to the route tree and included in the app's `tsconfig`; because it is\n * regenerated from the route files, a `navigate` whose `search` no longer matches the route's schema\n * becomes a `tsc` error - the same drift guarantee as nifra's typed client, no hand-maintained map.\n */"
20604
- },
20605
21075
  {
20606
21076
  "name": "generateServerEntry",
20607
21077
  "kind": "function",
20608
21078
  "package": "@nifrajs/web",
20609
- "signature": "export declare function generateServerEntry(options: {\n readonly target: BuildTarget;\n /** Import specifier for the module exporting `adapter` (e.g. `\"../framework.ts\"`). */\n readonly adapterImport: string;\n /** Import specifier for the module exporting `backend`, or `undefined` for a frontend-only app. */\n readonly backendImport?: string;\n /** Import specifier for the module exporting `use`, or `undefined`. Must resolve to the\n * same edge-safe module as `adapterImport`. */\n readonly useImport?: string;\n /** `createWebApp` options to import by name, each mapped to the specifier of the edge-safe module\n * that exports it. */\n readonly optionImports?: ServerEntryOptionImports;\n /** Document `<title>` passed to `createWebApp`. */\n readonly title?: string;\n /** Encoded root-relative public file paths copied into the deploy directory. */\n readonly publicFiles?: readonly string[];\n /** URL paths of the content-hashed client outputs (the build manifest's `assets`). When given, a\n * self-hosted entry caches only these immutably; otherwise every file under `/assets/` is. */\n readonly hashedFiles?: readonly string[];\n /** Trust the edge platform's client-address header for `c.clientIp`. See {@link ServerEntryClientIp}. */\n readonly clientIp?: ServerEntryClientIp;\n /** How a self-hosted server stops and keeps idle connections. See {@link ServerEntrySelfHost}. */\n readonly selfHost?: ServerEntrySelfHost;\n /** The server manifest exports `copyChunks` (the client build split copy tables by locale). */\n readonly copyChunks?: boolean;\n /** `bun` / `node` only: the pages the build prerendered into `_prerendered/`, by request path, which\n * the app answers from their file (see `createWebApp`'s `prerenderedPages`). */\n readonly prerenderedPages?: Readonly<Record<string, ServerPrerenderedPage>>;\n}): string;",
21079
+ "signature": "export declare function generateServerEntry(options: {\n readonly target: BuildTarget;\n /** Vercel-only runtime selection; Edge remains the default. */\n readonly vercelRuntime?: VercelRuntime;\n /** Import specifier for the module exporting `adapter` (e.g. `\"../framework.ts\"`). */\n readonly adapterImport: string;\n /** Import specifier for the module exporting `backend`, or `undefined` for a frontend-only app. */\n readonly backendImport?: string;\n /** Import specifier for the module exporting `use`, or `undefined`. Must resolve to the\n * same edge-safe module as `adapterImport`. */\n readonly useImport?: string;\n /** `createWebApp` options to import by name, each mapped to the specifier of the edge-safe module\n * that exports it. */\n readonly optionImports?: ServerEntryOptionImports;\n /** Document `<title>` passed to `createWebApp`. */\n readonly title?: string;\n /** Encoded root-relative public file paths copied into the deploy directory. */\n readonly publicFiles?: readonly string[];\n /** URL paths of the content-hashed client outputs (the build manifest's `assets`). When given, a\n * self-hosted entry caches only these immutably; otherwise every file under `/assets/` is. */\n readonly hashedFiles?: readonly string[];\n /** Trust the edge platform's client-address header for `c.clientIp`. See {@link ServerEntryClientIp}. */\n readonly clientIp?: ServerEntryClientIp;\n /** How a self-hosted server stops and keeps idle connections. See {@link ServerEntrySelfHost}. */\n readonly selfHost?: ServerEntrySelfHost;\n /** The server manifest exports `copyChunks` (the client build split copy tables by locale). */\n readonly copyChunks?: boolean;\n /** `bun` / `node` only: the pages the build prerendered into `_prerendered/`, by request path, which\n * the app answers from their file (see `createWebApp`'s `prerenderedPages`). */\n readonly prerenderedPages?: Readonly<Record<string, ServerPrerenderedPage>>;\n}): string;",
20610
21080
  "doc": "/**\n * Codegen the per-target **server entry** module (source text) for `buildServer` to bundle. It imports\n * the app's `adapter` (from `framework.ts`), the optional `backend` (from `backend.ts`), and the\n * generated `{ manifest, clientEntry }` (from `./server-manifest`), builds `createWebApp`, then wires\n * the right host:\n * - `cloudflare` / `vercel`: `export default` the fetch handler (the platform serves /assets/* itself).\n * - `deno`: a `@nifrajs/deno` server that serves the client bundle with Deno's file API.\n * - `bun` / `node`: a self-hosting server that ALSO serves the client bundle from disk (those\n * runtimes have a filesystem; the static `/assets/*` sit next to the entry).\n * `adapterImport`/`backendImport` are the specifiers the entry uses (relative to where it's written) -\n * `buildServer` writes the entry next to `serverEntry`, so they're resolved from there. Pure (string in,\n * string out) so the generation is unit-testable without a real build.\n */"
20611
21081
  },
20612
21082
  {
@@ -20662,6 +21132,18 @@
20662
21132
  "package": "@nifrajs/cli",
20663
21133
  "signature": "export declare function getFixRecipe(id: string): FixRecipe | undefined;"
20664
21134
  },
21135
+ {
21136
+ "name": "getRouteSlotRuntime",
21137
+ "kind": "function",
21138
+ "package": "@nifrajs/web",
21139
+ "signature": "export declare function getRouteSlotRuntime(): RouteSlotRuntime | undefined;"
21140
+ },
21141
+ {
21142
+ "name": "getRouteSlotStore",
21143
+ "kind": "function",
21144
+ "package": "@nifrajs/web",
21145
+ "signature": "export declare function getRouteSlotStore(parentPath: string, name: string): RouteSlotStore;"
21146
+ },
20665
21147
  {
20666
21148
  "name": "getSession",
20667
21149
  "kind": "function",
@@ -20783,6 +21265,13 @@
20783
21265
  "signature": "export declare function hasResidentBody(response: Response): boolean;",
20784
21266
  "doc": "/** Whether {@link markResidentBody} recorded `response`. Another copy of this module did not. */"
20785
21267
  },
21268
+ {
21269
+ "name": "hasRouteSlotsSearch",
21270
+ "kind": "function",
21271
+ "package": "@nifrajs/web",
21272
+ "signature": "export declare function hasRouteSlotsSearch(search: string): boolean;",
21273
+ "doc": "/** Check raw query text for framework-owned slot keys, including percent-encoded names. */"
21274
+ },
20786
21275
  {
20787
21276
  "name": "hash8",
20788
21277
  "kind": "function",
@@ -20809,7 +21298,7 @@
20809
21298
  "kind": "function",
20810
21299
  "package": "@nifrajs/web",
20811
21300
  "signature": "export declare function holeComponents(client: ComponentClientAdapter | undefined): void;",
20812
- "doc": "/**\n * Experimental: how the client islands inside partially prerendered holes that show server\n * components mount, as the adapter's component client, such as `vueComponentClient({ islands })`;\n * `undefined` forgets it. Call it in the client entry before the router mounts. Without one such a\n * hole shows its error slot.\n */"
21301
+ "doc": "/**\n * How the client islands inside partially prerendered holes that show server\n * components mount, as the adapter's component client, such as `vueComponentClient({ islands })`;\n * `undefined` forgets it. Call it in the client entry before the router mounts. Without one such a\n * hole shows its error slot.\n */"
20813
21302
  },
20814
21303
  {
20815
21304
  "name": "hotUpdateNeedsReload",
@@ -20818,6 +21307,48 @@
20818
21307
  "signature": "export declare const hotUpdateNeedsReload = true;",
20819
21308
  "doc": "/**\n * Preact cannot apply Bun's hot updates, so the generated client entry reloads instead.\n *\n * Bun's dev server runs React Fast Refresh over JSX modules. A Preact component compiles to JSX that\n * looks the same, so the update is ACCEPTED - and then dropped, because Preact's refresh runtime\n * (prefresh) is not the one Bun installs. Measured: `bun:beforeUpdate` and `bun:afterUpdate` both fire,\n * the server logs the rebuild, the browser keeps rendering the old component and never reloads. The\n * edit simply appears not to happen.\n *\n * Reloading loses component state, which React keeps here. That is the honest trade until Bun's dev\n * server can install prefresh: a visible reload beats an edit that silently does nothing.\n */"
20820
21309
  },
21310
+ {
21311
+ "name": "href",
21312
+ "kind": "function",
21313
+ "package": "@nifrajs/web",
21314
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21315
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21316
+ },
21317
+ {
21318
+ "name": "href",
21319
+ "kind": "function",
21320
+ "package": "@nifrajs/web-preact",
21321
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21322
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21323
+ },
21324
+ {
21325
+ "name": "href",
21326
+ "kind": "function",
21327
+ "package": "@nifrajs/web-react",
21328
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21329
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21330
+ },
21331
+ {
21332
+ "name": "href",
21333
+ "kind": "function",
21334
+ "package": "@nifrajs/web-solid",
21335
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21336
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21337
+ },
21338
+ {
21339
+ "name": "href",
21340
+ "kind": "function",
21341
+ "package": "@nifrajs/web-svelte",
21342
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21343
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21344
+ },
21345
+ {
21346
+ "name": "href",
21347
+ "kind": "function",
21348
+ "package": "@nifrajs/web-vue",
21349
+ "signature": "export declare function href<K extends Pattern>(options: HrefOptions<K>): Href<K>;",
21350
+ "doc": "/**\n * The in-app URL for a route: the pattern filled with `params` (each value encoded as one path\n * segment), then `search` serialized as the router reads it, then the `hash`. `to` is a key of the\n * generated route table, so a misspelt route, a missing or misspelt param and a `search` that breaks the\n * route's schema are compile errors; the result is an {@link Href}, the only thing `navigate` takes.\n *\n * ```ts\n * navigate(href({ to: \"/users/:id\", params: { id }, search: { tab: \"posts\" }, hash: \"top\" }))\n * ```\n *\n * A param that is missing, empty, or holds a value no path segment can carry (`.`, `..`, an unpaired\n * surrogate) throws a `TypeError` naming it, in production too: a link built from it would go\n * somewhere else. The result is a pure function of its input, so the server and the browser build the\n * same string. A link to a path built elsewhere is {@link rawHref}; one to another site is a plain `<a>`.\n */"
21351
+ },
20821
21352
  {
20822
21353
  "name": "html",
20823
21354
  "kind": "function",
@@ -20933,6 +21464,13 @@
20933
21464
  "signature": "export declare function ifRangeAllowsPartial(ifRange: string | null, etag: string | undefined, lastModified: number | undefined): boolean;",
20934
21465
  "doc": "/**\n * Whether `If-Range` (the header, or `null`) lets a range request be answered partially; otherwise the\n * whole file is the conformant answer, not a fallback. An entity tag must equal the file's strong\n * `etag` (RFC 9110 section 13.1.5). A date must equal `lastModified` to the second, and counts only\n * for a file with no strong tag: a client holding the tag sends it, and a date cannot tell apart two\n * versions dated in the same second - here or on another instance - so resuming by one could splice\n * them.\n */"
20935
21466
  },
21467
+ {
21468
+ "name": "imageBunPlugin",
21469
+ "kind": "function",
21470
+ "package": "@nifrajs/image",
21471
+ "signature": "export declare function imageBunPlugin(options?: ImageBuildOptions): ImageBunPlugin;",
21472
+ "doc": "/** Install in both clientPlugins and serverPlugins; no codec is loaded unless explicitly supplied. */"
21473
+ },
20936
21474
  {
20937
21475
  "name": "imageDimensions",
20938
21476
  "kind": "function",
@@ -20940,6 +21478,13 @@
20940
21478
  "signature": "export declare function imageDimensions(bytes: Uint8Array): ImageInfo | null;",
20941
21479
  "doc": "/** Parse intrinsic dimensions + format from image header bytes, or `null` if unrecognized/too short. */"
20942
21480
  },
21481
+ {
21482
+ "name": "imageVitePlugin",
21483
+ "kind": "function",
21484
+ "package": "@nifrajs/image",
21485
+ "signature": "export declare function imageVitePlugin(options?: ImageBuildOptions): ImageVitePlugin;",
21486
+ "doc": "/** Use in vitePlugins for both development and production; the dev middleware serves hashed bytes. */"
21487
+ },
20943
21488
  {
20944
21489
  "name": "implement",
20945
21490
  "kind": "function",
@@ -21273,14 +21818,14 @@
21273
21818
  "kind": "function",
21274
21819
  "package": "@nifrajs/core",
21275
21820
  "signature": "export declare function isSameOriginPath(value: string): boolean;",
21276
- "doc": "/**\n * Is `value` a destination that stays on this origin?\n *\n * True only for an absolute path: one leading `/`, never `//` (protocol-relative → another origin),\n * and free of any character a URL parser turns into an origin escape. A leading `/` alone is not\n * enough: under a special scheme `\\` parses as `/`, and tab/CR/LF are STRIPPED before parsing, so\n * `/\\evil.example` and `/<TAB>/evil.example` both resolve to the external host `evil.example` while\n * passing a `//` test. Rejecting CR/LF here also keeps a validated destination out of the\n * response-splitting sink it usually flows into.\n *\n * One implementation, because every caller is the same open-redirect gate: `redirect()` in\n * `@nifrajs/web`, the `redirectTo` of the `@nifrajs/auth` and `@nifrajs/better-auth` guards. Three\n * copies of a security predicate is three chances for one of them to be hardened alone.\n *\n * It answers about a PATH, not a URL: an absolute `https://this.host/x` is false even for the\n * current origin, because the whole point is that the value never got to name a host.\n */"
21821
+ "doc": "/**\n * Is `value` a destination that stays on this origin?\n *\n * True only for an absolute path: one leading `/`, never `//` (protocol-relative → another origin),\n * and free of any character a URL parser turns into an origin escape. A leading `/` alone is not\n * enough: under a special scheme `\\` parses as `/`, and tab/CR/LF are STRIPPED before parsing, so\n * `/\\evil.example` and `/<TAB>/evil.example` both resolve to the external host `evil.example` while\n * passing a `//` test. Rejecting CR/LF here also keeps a validated destination out of the\n * response-splitting sink it usually flows into.\n *\n * One implementation, because every caller is the same open-redirect gate: `redirect()` and\n * `rawHref()` in `@nifrajs/web`, the `redirectTo` of the `@nifrajs/auth` and `@nifrajs/better-auth` guards. Three\n * copies of a security predicate is three chances for one of them to be hardened alone.\n *\n * It answers about a PATH, not a URL: an absolute `https://this.host/x` is false even for the\n * current origin, because the whole point is that the value never got to name a host.\n *\n * It sits in a leaf with no imports, so browser code (`rawHref` in `@nifrajs/web`) can use it without\n * the server entry; `@nifrajs/core/server` and `@nifrajs/core/pattern` both export it.\n */"
21277
21822
  },
21278
21823
  {
21279
21824
  "name": "isSameOriginPath",
21280
21825
  "kind": "function",
21281
21826
  "package": "nifra",
21282
21827
  "signature": "export declare function isSameOriginPath(value: string): boolean;",
21283
- "doc": "/**\n * Is `value` a destination that stays on this origin?\n *\n * True only for an absolute path: one leading `/`, never `//` (protocol-relative → another origin),\n * and free of any character a URL parser turns into an origin escape. A leading `/` alone is not\n * enough: under a special scheme `\\` parses as `/`, and tab/CR/LF are STRIPPED before parsing, so\n * `/\\evil.example` and `/<TAB>/evil.example` both resolve to the external host `evil.example` while\n * passing a `//` test. Rejecting CR/LF here also keeps a validated destination out of the\n * response-splitting sink it usually flows into.\n *\n * One implementation, because every caller is the same open-redirect gate: `redirect()` in\n * `@nifrajs/web`, the `redirectTo` of the `@nifrajs/auth` and `@nifrajs/better-auth` guards. Three\n * copies of a security predicate is three chances for one of them to be hardened alone.\n *\n * It answers about a PATH, not a URL: an absolute `https://this.host/x` is false even for the\n * current origin, because the whole point is that the value never got to name a host.\n */"
21828
+ "doc": "/**\n * Is `value` a destination that stays on this origin?\n *\n * True only for an absolute path: one leading `/`, never `//` (protocol-relative → another origin),\n * and free of any character a URL parser turns into an origin escape. A leading `/` alone is not\n * enough: under a special scheme `\\` parses as `/`, and tab/CR/LF are STRIPPED before parsing, so\n * `/\\evil.example` and `/<TAB>/evil.example` both resolve to the external host `evil.example` while\n * passing a `//` test. Rejecting CR/LF here also keeps a validated destination out of the\n * response-splitting sink it usually flows into.\n *\n * One implementation, because every caller is the same open-redirect gate: `redirect()` and\n * `rawHref()` in `@nifrajs/web`, the `redirectTo` of the `@nifrajs/auth` and `@nifrajs/better-auth` guards. Three\n * copies of a security predicate is three chances for one of them to be hardened alone.\n *\n * It answers about a PATH, not a URL: an absolute `https://this.host/x` is false even for the\n * current origin, because the whole point is that the value never got to name a host.\n *\n * It sits in a leaf with no imports, so browser code (`rawHref` in `@nifrajs/web`) can use it without\n * the server entry; `@nifrajs/core/server` and `@nifrajs/core/pattern` both export it.\n */"
21284
21829
  },
21285
21830
  {
21286
21831
  "name": "isSameOriginRequest",
@@ -21515,6 +22060,13 @@
21515
22060
  "signature": "export declare function loadGoogleFont(options: GoogleFontOptions, io: LoadGoogleFontIO): Promise<LoadGoogleFontResult>;",
21516
22061
  "doc": "/**\n * Download a Google font, self-host it, and return a CLS-safe `@font-face` stylesheet + preloads.\n * See the module header for the full flow and security model. I/O (`fetch`, `writeFile`) is injectable\n * so this is unit-testable without the network.\n */"
21517
22062
  },
22063
+ {
22064
+ "name": "loadRouteSlot",
22065
+ "kind": "function",
22066
+ "package": "@nifrajs/web",
22067
+ "signature": "export declare function loadRouteSlot(runtime: RouteSlotRuntime, name: string, parentPath: string, targetValue: string, signal: AbortSignal): Promise<LoadedRouteSlot>;",
22068
+ "doc": "/** Resolve an addressed slot through the current router and its normal authorized route-data path. */"
22069
+ },
21518
22070
  {
21519
22071
  "name": "localeCookie",
21520
22072
  "kind": "function",
@@ -22131,6 +22683,12 @@
22131
22683
  "signature": "export declare function onPageShow(callback: () => void): void;",
22132
22684
  "doc": "/**\n * Run `callback` each time the `keepAlive` page this component renders in is shown again, once it is\n * back in the document with its scroll and focus. Unlike Vue's `onActivated`, not when it first mounts.\n */"
22133
22685
  },
22686
+ {
22687
+ "name": "onRouteSlotIdentityChange",
22688
+ "kind": "function",
22689
+ "package": "@nifrajs/web",
22690
+ "signature": "export declare function onRouteSlotIdentityChange(listener: () => void): () => void;"
22691
+ },
22134
22692
  {
22135
22693
  "name": "openGraph",
22136
22694
  "kind": "function",
@@ -22504,6 +23062,13 @@
22504
23062
  "signature": "export declare function parseReviewReport(input: unknown): Promise<ReviewReport>;",
22505
23063
  "doc": "/** Parse a JSON string or unknown value into a bounded, deeply frozen review report. */"
22506
23064
  },
23065
+ {
23066
+ "name": "parseRouteSlots",
23067
+ "kind": "function",
23068
+ "package": "@nifrajs/web",
23069
+ "signature": "export declare function parseRouteSlots(path: string): RouteSlotTargets;",
23070
+ "doc": "/** Parse and strictly validate flat `slot.<name>=<target>` query values. */"
23071
+ },
22507
23072
  {
22508
23073
  "name": "parseRubricVerdict",
22509
23074
  "kind": "function",
@@ -22624,7 +23189,7 @@
22624
23189
  "kind": "function",
22625
23190
  "package": "@nifrajs/web",
22626
23191
  "signature": "export declare function partialPrerendering(config: PprConfig): PprSetup;",
22627
- "doc": "/**\n * Experimental: partial prerendering for `createWebApp({ experimental: { ppr } })`. Options are\n * checked here, at startup; each app the value is given to gets its own shell cache.\n */"
23192
+ "doc": "/**\n * Partial prerendering for `createWebApp({ ppr })`. Options are\n * checked here, at startup; each app the value is given to gets its own shell cache.\n */"
22628
23193
  },
22629
23194
  {
22630
23195
  "name": "pathTag",
@@ -22683,7 +23248,7 @@
22683
23248
  "name": "planBuildTarget",
22684
23249
  "kind": "function",
22685
23250
  "package": "@nifrajs/web",
22686
- "signature": "export declare function planBuildTarget(target: BuildTarget, outDir: string): BuildTargetPlan;",
23251
+ "signature": "export declare function planBuildTarget(target: BuildTarget, outDir: string, vercelRuntime?: VercelRuntime): BuildTargetPlan;",
22687
23252
  "doc": "/**\n * Resolve the target-specific deploy shape before any bundling starts. Keeping this decision pure\n * means Bun and Vite strategies share the same output filename, server target, and hand-off text;\n * the filesystem emitter only has to execute the plan.\n */"
22688
23253
  },
22689
23254
  {
@@ -22760,7 +23325,7 @@
22760
23325
  "kind": "function",
22761
23326
  "package": "@nifrajs/web",
22762
23327
  "signature": "export declare function pprShells(app: object): PprShells;",
22763
- "doc": "/**\n * The shell cache of an app made with `experimental.ppr`. Pass it in `createInvalidator`'s\n * `dataCaches` so a purge by tag also drops the shells built from the purged data.\n */"
23328
+ "doc": "/**\n * The shell cache of an app made with `ppr`. Pass it in `createInvalidator`'s\n * `dataCaches` so a purge by tag also drops the shells built from the purged data.\n */"
22764
23329
  },
22765
23330
  {
22766
23331
  "name": "preRouteMountPaths",
@@ -22877,6 +23442,20 @@
22877
23442
  "signature": "export declare function proveIdempotency(options: {\n readonly run: () => Promise<EffectLedger> | EffectLedger;\n readonly runs?: number;\n}): Promise<IdempotencyProof>;",
22878
23443
  "doc": "/** Run a token-only effect workload repeatedly and report the first stable replay differences. */"
22879
23444
  },
23445
+ {
23446
+ "name": "provideQueryClient",
23447
+ "kind": "function",
23448
+ "package": "@nifrajs/web-svelte",
23449
+ "signature": "export declare function provideQueryClient(client: QueryClient, state?: DehydratedState): void;",
23450
+ "doc": "/** Set the component-tree client and hydrate it before descendants subscribe to queries. */"
23451
+ },
23452
+ {
23453
+ "name": "provideQueryClient",
23454
+ "kind": "function",
23455
+ "package": "@nifrajs/web-vue",
23456
+ "signature": "export declare function provideQueryClient(client: QueryClient, state?: DehydratedState): void;",
23457
+ "doc": "/** Provide a request-scoped client and optionally hydrate it before child setup runs. */"
23458
+ },
22880
23459
  {
22881
23460
  "name": "publicDocsTools",
22882
23461
  "kind": "function",
@@ -22972,6 +23551,48 @@
22972
23551
  "signature": "export declare function raw(trusted: string): RawHtml;",
22973
23552
  "doc": "/**\n * Mark a string as trusted, pre-escaped markup - it is emitted verbatim. The deliberate escape\n * hatch (CMS-sanitized HTML, pre-rendered markdown): every call site is greppable, exactly like\n * React's dangerouslySetInnerHTML, without the JSX.\n */"
22974
23553
  },
23554
+ {
23555
+ "name": "rawHref",
23556
+ "kind": "function",
23557
+ "package": "@nifrajs/web",
23558
+ "signature": "export declare function rawHref(path: string): Href;",
23559
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23560
+ },
23561
+ {
23562
+ "name": "rawHref",
23563
+ "kind": "function",
23564
+ "package": "@nifrajs/web-preact",
23565
+ "signature": "export declare function rawHref(path: string): Href;",
23566
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23567
+ },
23568
+ {
23569
+ "name": "rawHref",
23570
+ "kind": "function",
23571
+ "package": "@nifrajs/web-react",
23572
+ "signature": "export declare function rawHref(path: string): Href;",
23573
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23574
+ },
23575
+ {
23576
+ "name": "rawHref",
23577
+ "kind": "function",
23578
+ "package": "@nifrajs/web-solid",
23579
+ "signature": "export declare function rawHref(path: string): Href;",
23580
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23581
+ },
23582
+ {
23583
+ "name": "rawHref",
23584
+ "kind": "function",
23585
+ "package": "@nifrajs/web-svelte",
23586
+ "signature": "export declare function rawHref(path: string): Href;",
23587
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23588
+ },
23589
+ {
23590
+ "name": "rawHref",
23591
+ "kind": "function",
23592
+ "package": "@nifrajs/web-vue",
23593
+ "signature": "export declare function rawHref(path: string): Href;",
23594
+ "doc": "/**\n * An {@link Href} for a same-origin path built elsewhere: a CMS link, a `@nifrajs/content` page, a public\n * file such as `/llms.txt`. The path is returned as written, never encoded, after `isSameOriginPath`\n * (the check `redirect()` makes) accepts it: one leading `/`, not `//`, no backslash and no control\n * character. Anything else throws a `TypeError`. A route of this app is {@link href}; another site is a\n * plain `<a href>`.\n */"
23595
+ },
22975
23596
  {
22976
23597
  "name": "reactAdapter",
22977
23598
  "kind": "const",
@@ -23205,8 +23826,7 @@
23205
23826
  "name": "redirect",
23206
23827
  "kind": "function",
23207
23828
  "package": "@nifrajs/web",
23208
- "signature": "export declare function redirect(location: string, options?: RedirectOptions): ResponseResult;",
23209
- "doc": "/**\n * Build a redirect - return it from a route `action` for the Post/Redirect/Get pattern (POST\n * mutates, 303 sends the browser to a fresh GET, so a reload doesn't re-submit). Defaults to 303\n * (See Other); pass `{ status: 307 }` or `{ status: 308 }` to preserve the method.\n *\n * **Secure by default:** `location` must be a same-origin path (begins with `/`, not `//`). An\n * off-origin/absolute destination throws unless you pass `{ external: true }` - this closes the\n * open-redirect footgun of `return redirect(formData.get(\"next\"))` on the no-JS (native-form) path,\n * which serves the action's control-flow value verbatim.\n *\n * Returns a plain render, not a `Response`. A redirect is a status line and one header - the most\n * body-less response there is - and building a `Response` for it costs the whole Web object plus, on\n * Node, a stream drained back out. As data it renders on the same lane a handler's return takes.\n * `redirect(...)` is still returned or thrown from exactly the same places; only `.status` /\n * `.headers` are gone from the value, replaced by `options.headers` and the request's `c.set`.\n *\n * @param options redirect status, extra headers, and whether an off-origin destination is intentional.\n */"
23829
+ "signature": "export declare function redirect(location: string, options: RedirectOptions & {\n readonly external: true;\n}): ResponseResult;"
23210
23830
  },
23211
23831
  {
23212
23832
  "name": "redisLiveBus",
@@ -23574,8 +24194,8 @@
23574
24194
  "name": "resolveImage",
23575
24195
  "kind": "function",
23576
24196
  "package": "@nifrajs/image",
23577
- "signature": "export declare function resolveImage(props: ImageProps, loader?: ImageLoader): ResolvedImage;",
23578
- "doc": "/**\n * Resolve {@link ImageProps} + an {@link ImageLoader} into `<img>` attributes. CLS-safe (`width`/\n * `height` required + > 0, else a dev error), lazy + async-decoding by default, with a responsive\n * `srcSet` built from `widths` via the loader. If every width produces the same URL (e.g.\n * {@link identityLoader}), `srcSet` is omitted (it'd be redundant).\n */"
24197
+ "signature": "export declare function resolveImage(props: ImageInputProps, loader?: ImageLoader): ResolvedImage;",
24198
+ "doc": "/**\n * Resolve a URL or imported asset into CLS-safe attributes. Explicit dimensions override imported\n * metadata; supplying just one scales the other to preserve the source's aspect ratio. Prebuilt\n * variants need no runtime loader. An explicit CDN loader takes precedence over those variants.\n */"
23579
24199
  },
23580
24200
  {
23581
24201
  "name": "resolveLocale",
@@ -23591,13 +24211,6 @@
23591
24211
  "signature": "export declare function resolveMeta(meta: MetaInput | undefined, args: MetaArgs): Meta;",
23592
24212
  "doc": "/** Resolve a route's `meta` export - a static object, or a function of the route's data/params. */"
23593
24213
  },
23594
- {
23595
- "name": "resolveNavigate",
23596
- "kind": "function",
23597
- "package": "@nifrajs/web",
23598
- "signature": "export declare function resolveNavigate(to: string | number | NavigateTargetInput, options?: NavigateOptions): {\n readonly to: string | number;\n readonly options: NavigateOptions | undefined;\n};",
23599
- "doc": "/**\n * Normalize a navigate argument to the bridge's `(to, options)`: a string path or history-delta passes\n * through; an object target has its `search` serialized onto `to` and its `replace` folded into the\n * options. The one place the object form becomes a URL, so every adapter's `navigate` resolves it\n * identically.\n */"
23600
- },
23601
24214
  {
23602
24215
  "name": "resolvePublicPath",
23603
24216
  "kind": "function",
@@ -23819,6 +24432,18 @@
23819
24432
  "signature": "export declare function routePatternOverlap(left: string, right: string): string | undefined;",
23820
24433
  "doc": "/**\n * Return a deterministic path accepted by both patterns, or `undefined` when their path languages are\n * disjoint. A pattern ending in optional params is every concrete path it serves, so `/users/:id?`\n * overlaps `/users` as well as `/users/me`.\n *\n * This is a build/check-time NFA product, never a request-time operation. Route literals are the only\n * input alphabet needed: a literal character is tried verbatim, while `a` is a representative for\n * the unrestricted non-slash character class. No user route text is compiled as a regular expression.\n *\n * A constrained parameter is modelled as its constraint: a value from its list, or a run of its\n * class within its bounds. In a segment that has several parameters the router is stricter than\n * that - it places the literals first and tests the values afterwards - so for such a segment the\n * answer errs towards reporting an overlap that no request can reach, never towards missing one.\n * The state budget is one budget for the whole call, however many concrete paths the two sides have.\n */"
23821
24434
  },
24435
+ {
24436
+ "name": "routeSlotSyncKey",
24437
+ "kind": "function",
24438
+ "package": "@nifrajs/web",
24439
+ "signature": "export declare function routeSlotSyncKey(parentPath: string, name: string, target: string | undefined, error: string | undefined, pending: boolean): string;"
24440
+ },
24441
+ {
24442
+ "name": "routeSlotTargetFromPath",
24443
+ "kind": "function",
24444
+ "package": "@nifrajs/web",
24445
+ "signature": "export declare function routeSlotTargetFromPath(path: string, name: string): {\n readonly target?: string;\n readonly error?: string;\n};"
24446
+ },
23822
24447
  {
23823
24448
  "name": "routeTemplateOf",
23824
24449
  "kind": "function",
@@ -24425,6 +25050,19 @@
24425
25050
  "signature": "export declare function setMountedRouter(router: ClientRouter | undefined): void;",
24426
25051
  "doc": "/** Register (or clear) the router that owns fetchers - called by `mountRouter`. Not for app use. */"
24427
25052
  },
25053
+ {
25054
+ "name": "setRouteSlot",
25055
+ "kind": "function",
25056
+ "package": "@nifrajs/web",
25057
+ "signature": "export declare function setRouteSlot(path: string, name: string, target: string | null): string;",
25058
+ "doc": "/** Change a single slot while retaining the other URL-addressed slots. */"
25059
+ },
25060
+ {
25061
+ "name": "setRouteSlotRuntime",
25062
+ "kind": "function",
25063
+ "package": "@nifrajs/web",
25064
+ "signature": "export declare function setRouteSlotRuntime(runtime: RouteSlotRuntime): void;"
25065
+ },
24428
25066
  {
24429
25067
  "name": "setSsrModuleLoader",
24430
25068
  "kind": "function",
@@ -24843,6 +25481,12 @@
24843
25481
  "signature": "export declare function stripImageMetadata(bytes: Uint8Array, backend: ImageReencoder, options?: StripImageMetadataOptions): Promise<Uint8Array>;",
24844
25482
  "doc": "/**\n * Re-encode an image to its intrinsic size, dropping all embedded metadata. Returns clean bytes.\n * A source over `maxPixels` throws {@link ImagePixelLimitError} without being decoded. Each call\n * holds a full decoded image in memory, so bound how many run at once where uploads arrive.\n */"
24845
25483
  },
25484
+ {
25485
+ "name": "stripRouteSlots",
25486
+ "kind": "function",
25487
+ "package": "@nifrajs/web",
25488
+ "signature": "export declare function stripRouteSlots(path: string): string;"
25489
+ },
24846
25490
  {
24847
25491
  "name": "stripSvgPreamble",
24848
25492
  "kind": "function",
@@ -24979,6 +25623,12 @@
24979
25623
  "signature": "export declare function svgToVueSfc(xml: string): string;",
24980
25624
  "doc": "/** Wrap raw SVG XML in a template-only Vue SFC (single root → Vue inherits attrs onto the `<svg>`). */"
24981
25625
  },
25626
+ {
25627
+ "name": "syncRouteSlotStore",
25628
+ "kind": "function",
25629
+ "package": "@nifrajs/web",
25630
+ "signature": "export declare function syncRouteSlotStore(store: RouteSlotStore, parentPath: string, name: string, target: string | undefined, error: string | undefined, pending: boolean): string;"
25631
+ },
24982
25632
  {
24983
25633
  "name": "systemClock",
24984
25634
  "kind": "const",
@@ -25355,7 +26005,7 @@
25355
26005
  "kind": "function",
25356
26006
  "package": "@nifrajs/web-svelte",
25357
26007
  "signature": "export declare function ui<Props extends Record<string, unknown>>(component: Component<Props>, ...props: Record<string, never> extends Props ? [props?: Props] : [props: Props]): SvelteUI;",
25358
- "doc": "/** Experimental: `component` rendered with `props`, for a partially prerendered hole. */"
26008
+ "doc": "/** `component` rendered with `props`, for a partially prerendered hole. */"
25359
26009
  },
25360
26010
  {
25361
26011
  "name": "uiResourceMeta",
@@ -25364,6 +26014,13 @@
25364
26014
  "signature": "export declare function uiResourceMeta(uri: string): Record<string, unknown>;",
25365
26015
  "doc": "/** The MCP Apps `_meta.ui.resourceUri` link. */"
25366
26016
  },
26017
+ {
26018
+ "name": "unauthenticatedResult",
26019
+ "kind": "function",
26020
+ "package": "@nifrajs/core",
26021
+ "signature": "export declare function unauthenticatedResult(custom: UnauthenticatedResponse | undefined): ResponseResult;",
26022
+ "doc": "/**\n * The response one guard rejection carries: what the options declared, or the default `401` JSON\n * (`{ ok: false, error: \"unauthorized\" }`). An explicit `body` of `undefined` sends no body.\n */"
26023
+ },
25367
26024
  {
25368
26025
  "name": "undiciTransport",
25369
26026
  "kind": "function",
@@ -25537,6 +26194,13 @@
25537
26194
  "signature": "export declare function useFetchers(): Readonly<ShallowRef<readonly Fetcher[]>>;",
25538
26195
  "doc": "/**\n * Subscribe to the whole live fetcher collection - for a global busy view (e.g. \"3 saving…\"). Read\n * each entry's `.snapshot()` for its state. The ref updates whenever any fetcher transitions or a new\n * one is created.\n */"
25539
26196
  },
26197
+ {
26198
+ "name": "useInfiniteQuery",
26199
+ "kind": "function",
26200
+ "package": "@nifrajs/web-preact",
26201
+ "signature": "export declare function useInfiniteQuery<T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: UseInfiniteQueryOptions<T, P>): UseInfiniteQueryResult<T, P>;",
26202
+ "doc": "/** A paged query binding that follows Preact's mount and subscription lifecycle. */"
26203
+ },
25540
26204
  {
25541
26205
  "name": "useInfiniteQuery",
25542
26206
  "kind": "function",
@@ -25544,6 +26208,20 @@
25544
26208
  "signature": "export declare function useInfiniteQuery<T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: UseInfiniteQueryOptions<T, P>): UseInfiniteQueryResult<T, P>;",
25545
26209
  "doc": "/**\n * Subscribe to a paged (infinite-scroll) query. Returns the accumulated `data.pages` plus\n * `fetchNextPage`/`fetchPreviousPage`/`hasNextPage`/`hasPreviousPage`. Fetches the first page on mount.\n * SSR-idle unless a `QueryClientProvider` supplies a hydrated client.\n */"
25546
26210
  },
26211
+ {
26212
+ "name": "useInfiniteQuery",
26213
+ "kind": "function",
26214
+ "package": "@nifrajs/web-svelte",
26215
+ "signature": "export declare function useInfiniteQuery<T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: UseInfiniteQueryOptions<T, P>): InfiniteQueryStore<T, P>;",
26216
+ "doc": "/** Bind a paged query as a Svelte readable store. Fetching starts on the first browser subscription. */"
26217
+ },
26218
+ {
26219
+ "name": "useInfiniteQuery",
26220
+ "kind": "function",
26221
+ "package": "@nifrajs/web-vue",
26222
+ "signature": "export declare function useInfiniteQuery<T, P>(key: unknown, fn: (pageParam: P) => Promise<T>, options: UseInfiniteQueryOptions<T, P>): UseInfiniteQueryResult<T, P>;",
26223
+ "doc": "/** Bind a paged query to Vue's mount and effect-scope lifecycles. */"
26224
+ },
25547
26225
  {
25548
26226
  "name": "useLocale",
25549
26227
  "kind": "function",
@@ -25628,47 +26306,68 @@
25628
26306
  "signature": "export declare function useMatches(): Readonly<Ref<readonly UIMatch[]>>;",
25629
26307
  "doc": "/**\n * The rendered chain - each layout, then the page - with the URL prefix, params and loader data each\n * one owns, plus its `handle` export, as a reactive ref. The same list on the server render and the\n * client mount, so a layout can render breadcrumbs from its children's `handle`s without a hydration\n * mismatch.\n *\n * ```vue\n * // page: export const handle = { crumb: \"Settings\" } (a plain <script> block)\n * const matches = useMatches()\n * const crumbs = computed(() => matches.value.flatMap((m) => (m.handle as { crumb?: string } | undefined)?.crumb ?? []))\n * ```\n */"
25630
26308
  },
26309
+ {
26310
+ "name": "useMutation",
26311
+ "kind": "function",
26312
+ "package": "@nifrajs/web-preact",
26313
+ "signature": "export declare function useMutation<TData, TVariables = void>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): UseMutationResult<TData, TVariables>;",
26314
+ "doc": "/** A mutation binding with Preact state subscriptions and identity-boundary cancellation. */"
26315
+ },
25631
26316
  {
25632
26317
  "name": "useMutation",
25633
26318
  "kind": "function",
25634
26319
  "package": "@nifrajs/web-react",
25635
- "signature": "export declare function useMutation<TData, TVariables = void>(fn: (variables: TVariables) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): UseMutationResult<TData, TVariables>;",
25636
- "doc": "/**\n * A mutation hook (create/update/delete). Returns `{ mutate, mutateAsync, data, error, variables, isIdle,\n * isPending, isError, isSuccess, reset }`. Invalidate affected queries from `onSuccess` via\n * `useQueryClient().invalidateQueries(...)`. The handle is stable across renders; the latest `fn`/\n * callbacks re-bind each render.\n */"
26320
+ "signature": "export declare function useMutation<TData, TVariables = void>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): UseMutationResult<TData, TVariables>;",
26321
+ "doc": "/**\n * A mutation hook (create/update/delete). Returns `{ mutate, mutateAsync, data, error, variables, isIdle,\n * isPending, isError, isSuccess, reset, cancel }`. Invalidate affected queries from `onSuccess` via\n * `useQueryClient().invalidateQueries(...)`. The handle is stable across renders; the latest `fn`/\n * callbacks re-bind each render.\n */"
26322
+ },
26323
+ {
26324
+ "name": "useMutation",
26325
+ "kind": "function",
26326
+ "package": "@nifrajs/web-svelte",
26327
+ "signature": "export declare function useMutation<TData, TVariables = void>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): MutationStore<TData, TVariables>;",
26328
+ "doc": "/** Bind a mutation as a Svelte store. Identity changes discard late results and callbacks. */"
26329
+ },
26330
+ {
26331
+ "name": "useMutation",
26332
+ "kind": "function",
26333
+ "package": "@nifrajs/web-vue",
26334
+ "signature": "export declare function useMutation<TData, TVariables = void>(fn: (variables: TVariables, context: MutationContext) => Promise<TData>, callbacks?: MutationCallbacks<TData, TVariables>): UseMutationResult<TData, TVariables>;",
26335
+ "doc": "/** Bind a mutation to Vue's effect scope. Identity changes discard late results and callbacks. */"
25637
26336
  },
25638
26337
  {
25639
26338
  "name": "useNavigate",
25640
26339
  "kind": "function",
25641
26340
  "package": "@nifrajs/web-preact",
25642
26341
  "signature": "export declare function useNavigate(): NavigateFunction;",
25643
- "doc": "/** Get the {@link NavigateFunction} (a string path, a history delta, or a typed `{ to, search }` object).\n * Stable across renders; resolves the browser navigate at call time, so it works as soon as\n * `installHistory` has run and no-ops before then / on the server. */"
26342
+ "doc": "/** Get the {@link NavigateFunction} (an `Href` from `href()` or `rawHref()`, or a history delta).\n * Stable across renders; resolves the browser navigate at call time, so it works as soon as\n * `installHistory` has run and no-ops before then / on the server. */"
25644
26343
  },
25645
26344
  {
25646
26345
  "name": "useNavigate",
25647
26346
  "kind": "function",
25648
26347
  "package": "@nifrajs/web-react",
25649
26348
  "signature": "export declare function useNavigate(): NavigateFunction;",
25650
- "doc": "/** Get the {@link NavigateFunction} (a string path, a history delta, or a typed `{ to, search }` object;\n * a render-time navigate isn't valid - use {@link Navigate}, which navigates in an effect). Stable across\n * renders; resolves the browser navigate at call time (so it works as soon as `installHistory` has run,\n * and no-ops before then / on the server). */"
26349
+ "doc": "/** Get the {@link NavigateFunction} (an `Href` from `href()` or `rawHref()`, or a history delta;\n * a render-time navigate isn't valid - use {@link Navigate}, which navigates in an effect). Stable across\n * renders; resolves the browser navigate at call time (so it works as soon as `installHistory` has run,\n * and no-ops before then / on the server). */"
25651
26350
  },
25652
26351
  {
25653
26352
  "name": "useNavigate",
25654
26353
  "kind": "function",
25655
26354
  "package": "@nifrajs/web-solid",
25656
26355
  "signature": "export declare function useNavigate(): NavigateFunction;",
25657
- "doc": "/** Get the {@link NavigateFunction} (a string path, a history delta, or a typed `{ to, search }` object).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
26356
+ "doc": "/** Get the {@link NavigateFunction} (an `Href` from `href()` or `rawHref()`, or a history delta).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
25658
26357
  },
25659
26358
  {
25660
26359
  "name": "useNavigate",
25661
26360
  "kind": "function",
25662
26361
  "package": "@nifrajs/web-svelte",
25663
26362
  "signature": "export declare function useNavigate(): NavigateFunction;",
25664
- "doc": "/** Get the {@link NavigateFunction} (a string path, a history delta, or a typed `{ to, search }` object).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
26363
+ "doc": "/** Get the {@link NavigateFunction} (an `Href` from `href()` or `rawHref()`, or a history delta).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
25665
26364
  },
25666
26365
  {
25667
26366
  "name": "useNavigate",
25668
26367
  "kind": "function",
25669
26368
  "package": "@nifrajs/web-vue",
25670
26369
  "signature": "export declare function useNavigate(): NavigateFunction;",
25671
- "doc": "/** Get the {@link NavigateFunction} (a string path, a history delta, or a typed `{ to, search }` object).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
26370
+ "doc": "/** Get the {@link NavigateFunction} (an `Href` from `href()` or `rawHref()`, or a history delta).\n * Resolves the browser navigate at call time, so it works as soon as `installHistory` has run and no-ops\n * before then / on the server. */"
25672
26371
  },
25673
26372
  {
25674
26373
  "name": "useNavigation",
@@ -25789,6 +26488,33 @@
25789
26488
  "signature": "export declare function useQueryClient(): Pick<QueryClient, \"invalidateQueries\">;",
25790
26489
  "doc": "/** Access the query client to imperatively `invalidateQueries(keyOrPrefix)` (e.g. after a mutation). */"
25791
26490
  },
26491
+ {
26492
+ "name": "useRouteSlot",
26493
+ "kind": "function",
26494
+ "package": "@nifrajs/web-preact",
26495
+ "signature": "export declare function useRouteSlot(name: RouteSlotName): RouteSlotController;"
26496
+ },
26497
+ {
26498
+ "name": "useRouteSlot",
26499
+ "kind": "function",
26500
+ "package": "@nifrajs/web-react",
26501
+ "signature": "export declare function useRouteSlot(name: RouteSlotName): RouteSlotController;",
26502
+ "doc": "/** Read or navigate one route slot without changing any sibling slot's URL state or component tree. */"
26503
+ },
26504
+ {
26505
+ "name": "useRouteSlot",
26506
+ "kind": "function",
26507
+ "package": "@nifrajs/web-svelte",
26508
+ "signature": "export declare function useRouteSlot(name: RouteSlotName): RouteSlotController;",
26509
+ "doc": "/** Read or update the URL state for one slot while preserving every sibling slot. */"
26510
+ },
26511
+ {
26512
+ "name": "useRouteSlot",
26513
+ "kind": "function",
26514
+ "package": "@nifrajs/web-vue",
26515
+ "signature": "export declare function useRouteSlot(name: RouteSlotName): RouteSlotController;",
26516
+ "doc": "/** Read or navigate one route slot without changing any sibling slot's URL state or component tree. */"
26517
+ },
25792
26518
  {
25793
26519
  "name": "useSearch",
25794
26520
  "kind": "function",
@@ -25948,6 +26674,13 @@
25948
26674
  "signature": "export declare function validateUpload(input: Uint8Array | ArrayBuffer | Blob, options: ValidateUploadOptions): Promise<UploadResult>;",
25949
26675
  "doc": "/** Validate uploaded bytes/Blob: size cap + magic-byte type sniff against an optional allow-list. */"
25950
26676
  },
26677
+ {
26678
+ "name": "validateVercelRuntime",
26679
+ "kind": "function",
26680
+ "package": "@nifrajs/web",
26681
+ "signature": "export declare function validateVercelRuntime(target: BuildTarget, runtime: unknown): void;",
26682
+ "doc": "/** Validate before any deploy directory is cleared, including untyped config/API callers. */"
26683
+ },
25951
26684
  {
25952
26685
  "name": "vanillaAdapter",
25953
26686
  "kind": "const",
@@ -26185,7 +26918,7 @@
26185
26918
  "name": "withIdleTimeout",
26186
26919
  "kind": "function",
26187
26920
  "package": "@nifrajs/core",
26188
- "signature": "export declare function withIdleTimeout<T>(c: Context, seconds: number, work: () => MaybePromise<T>): MaybePromise<T>;",
26921
+ "signature": "export declare function withIdleTimeout<T>(c: Pick<Context, \"signal\">, seconds: number, work: () => MaybePromise<T>): MaybePromise<T>;",
26189
26922
  "doc": "/**\n * Run `work` with the idle timeout of the request's connection set to `seconds` (`0` turns it off),\n * then put back the listener's.\n *\n * Bun closes a connection that moves no bytes for `listen()`'s `idleTimeoutSec` seconds (10 by\n * default), and a handler that is still working sends none, so an export or a long upstream call is\n * cut mid-flight. Raising `idleTimeoutSec` raises it for every connection, idle keep-alive ones\n * included; this raises it for one request. The listener's value is back before the response goes\n * out because Bun keeps the last value on the socket for the requests that follow on it, so a value\n * left in place would hold an idle connection open.\n *\n * The request's deadline (`requestTimeoutMs`, an inbound deadline) still bounds the response: when it\n * fires, the 503 is sent with the listener's timeout back and `c.signal` aborts, but `work`\n * keeps running unless it stops on that signal. Scopes nest: while several run on one request the\n * longest applies, and `0` outlasts any number. `seconds` runs from 0 to 255, the longest Bun holds\n * an idle connection; work that may idle longer takes `0`.\n *\n * A streamed response is sent after the handler returns, so call this inside the stream's producer\n * to hold it until the last chunk. Off `listen()` - another adapter, `app.fetch` in a test - it runs\n * `work` unchanged.\n *\n * @example\n * ```ts\n * import { withIdleTimeout } from \"@nifrajs/core/idle-timeout\"\n *\n * app.post(\"/exports\", (c) => withIdleTimeout(c, 0, () => buildExport(c.body)))\n * // Every route declared after this one:\n * app.around((c, next) => withIdleTimeout(c, 120, next))\n * ```\n */"
26190
26923
  },
26191
26924
  {
@@ -26202,6 +26935,13 @@
26202
26935
  "signature": "export declare function withRouteAssurance<T extends object>(target: T, declaration: AssuranceDeclaration | readonly AssuranceDeclaration[]): T;",
26203
26936
  "doc": "/** Attach enforcement evidence to the middleware/plugin that installs it. */"
26204
26937
  },
26938
+ {
26939
+ "name": "withRouteSlots",
26940
+ "kind": "function",
26941
+ "package": "@nifrajs/web",
26942
+ "signature": "export declare function withRouteSlots(path: string, targets: RouteSlotTargets): string;",
26943
+ "doc": "/** Replace the slot query values while preserving unrelated query text byte for byte. */"
26944
+ },
26205
26945
  {
26206
26946
  "name": "wrapWebSocketMessageValidation",
26207
26947
  "kind": "function",