@guren/server 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/dist/{Application-DImeY-VW.d.ts → Application-BvBqgc2k.d.ts} +194 -14
  2. package/dist/{AuthManager-BU8ZvenF.d.ts → AuthManager-C84xF5ks.d.ts} +1 -1
  3. package/dist/{BroadcastManager-CGWl9rUO.d.ts → BroadcastManager-D8KoJxiV.d.ts} +21 -0
  4. package/dist/{CacheManager-BkvHEOZX.d.ts → CacheManager-BmDzUKrF.d.ts} +17 -0
  5. package/dist/{ConsoleKernel-COKndy_V.d.ts → ConsoleKernel-Dw9X9qZY.d.ts} +1 -1
  6. package/dist/{McpServiceProvider-RNTDHZAZ.js → McpServiceProvider-TZWQWXCT.js} +2 -2
  7. package/dist/{Scheduler-BstvSca7.d.ts → Scheduler-pZiT8i57.d.ts} +2 -0
  8. package/dist/{api-token-CB12xnVg.d.ts → api-token-COQHXyM_.d.ts} +68 -1
  9. package/dist/auth/index.d.ts +5 -5
  10. package/dist/auth/index.js +1 -1
  11. package/dist/authorization/index.js +2 -2
  12. package/dist/broadcasting/index.d.ts +2 -2
  13. package/dist/broadcasting/index.js +2 -1
  14. package/dist/cache/index.d.ts +2 -2
  15. package/dist/cache/index.js +2 -1
  16. package/dist/{chunk-EGU5KB7V.js → chunk-4SBGSJNT.js} +31 -1
  17. package/dist/{chunk-THSX7OOR.js → chunk-63SKW5PS.js} +3 -0
  18. package/dist/{chunk-VY2JPS6V.js → chunk-AUXQISW5.js} +83 -11
  19. package/dist/chunk-DCYKSYAT.js +63 -0
  20. package/dist/{chunk-ZRBLZY3M.js → chunk-FZD2AKJI.js} +1 -1
  21. package/dist/{chunk-CSP7W3WY.js → chunk-JIT7QVMJ.js} +2 -2
  22. package/dist/{chunk-HKQSAFSN.js → chunk-MC752CQT.js} +15 -0
  23. package/dist/{chunk-J753UWAY.js → chunk-NQCZQAJL.js} +93 -28
  24. package/dist/{chunk-STZUODC3.js → chunk-NYQGAWDN.js} +44 -1
  25. package/dist/{chunk-44F7JQ7I.js → chunk-XMQZENBP.js} +35 -1
  26. package/dist/{client-CKXJLsTe.d.ts → client-BQwF2b9Y.d.ts} +7 -0
  27. package/dist/{email-verification-D9u7krkn.d.ts → email-verification-H_WlpsVH.d.ts} +1 -1
  28. package/dist/{errors-JOOPDDQ6.js → errors-PUNHAFL2.js} +1 -1
  29. package/dist/index.d.ts +16 -16
  30. package/dist/index.js +181 -85
  31. package/dist/lambda/index.d.ts +7 -7
  32. package/dist/mcp/index.d.ts +53 -19
  33. package/dist/mcp/index.js +2 -2
  34. package/dist/notifications/index.d.ts +7 -7
  35. package/dist/queue/index.d.ts +7 -7
  36. package/dist/redis/index.d.ts +11 -21
  37. package/dist/redis/index.js +42 -6
  38. package/dist/runtime/index.d.ts +7 -7
  39. package/dist/runtime/index.js +1 -1
  40. package/dist/scheduling/index.d.ts +2 -2
  41. package/dist/scheduling/index.js +2 -1
  42. package/package.json +2 -2
@@ -1,18 +1,18 @@
1
1
  import * as hono from 'hono';
2
2
  import { Context, MiddlewareHandler, Hono, Next, ExecutionContext } from 'hono';
3
- import { l as OAuthManager, g as AuthContext, j as ApiToken, C as CreateSessionMiddlewareOptions } from './api-token-CB12xnVg.js';
4
- import { A as AuthManager } from './AuthManager-BU8ZvenF.js';
3
+ import { l as OAuthManager, g as AuthContext, j as ApiToken, C as CreateSessionMiddlewareOptions } from './api-token-COQHXyM_.js';
4
+ import { A as AuthManager } from './AuthManager-C84xF5ks.js';
5
5
  import { InlineConfig, ViteDevServer } from 'vite';
6
6
  import { E as EventManager } from './EventManager-CmIoLt7r.js';
7
- import { C as CacheManager } from './CacheManager-BkvHEOZX.js';
7
+ import { C as CacheManager } from './CacheManager-BmDzUKrF.js';
8
8
  import { M as MailManager } from './MailManager-DpMvYiP9.js';
9
9
  import { L as LogManager } from './LogManager-7mxnkaPM.js';
10
10
  import { I as I18nManager } from './I18nManager-CmUqj6bU.js';
11
- import { B as BroadcastManager } from './BroadcastManager-CGWl9rUO.js';
11
+ import { B as BroadcastManager } from './BroadcastManager-D8KoJxiV.js';
12
12
  import { E as Encrypter, A as AppKeyring } from './app-key-CsBfRC_Q.js';
13
13
  import { S as StorageManager } from './StorageManager-oZTHqaza.js';
14
14
  import { H as HealthManager } from './HealthManager-DUyMIzsZ.js';
15
- import { S as Scheduler } from './Scheduler-BstvSca7.js';
15
+ import { S as Scheduler } from './Scheduler-pZiT8i57.js';
16
16
  import { G as Gate } from './Gate-CynjZCtS.js';
17
17
  import { M as Middleware } from './index-9_Jzj5jo.js';
18
18
 
@@ -52,8 +52,13 @@ interface CsrfOptions {
52
52
  };
53
53
  }
54
54
  /**
55
- * Get the CSRF token from the current session.
56
- * Creates a new token if one doesn't exist.
55
+ * Get the request's CSRF token.
56
+ *
57
+ * Signed token bound to the session when a stable one exists, otherwise a
58
+ * stateless signed double-submit token for guests. Nothing is stored
59
+ * server-side, so anonymous page views cost no session writes. A cookie
60
+ * token that is still valid for this request's mode is reused; otherwise a
61
+ * fresh token is minted and set on the response by the middleware.
57
62
  */
58
63
  declare function getCsrfToken(ctx: Context): string;
59
64
  /**
@@ -61,16 +66,43 @@ declare function getCsrfToken(ctx: Context): string;
61
66
  */
62
67
  declare function csrfField(ctx: Context): string;
63
68
  /**
64
- * Verify that the provided token matches the session's CSRF token.
69
+ * Verify a request token.
70
+ *
71
+ * The token must first carry a valid app-key signature (proving this server
72
+ * minted it). Then, by mode:
73
+ * - **Session-bound** (token carries a `sid`): the id must match the live
74
+ * session. This is immune to cookie injection — a sibling-subdomain
75
+ * attacker can plant a cookie but cannot know the victim's session id.
76
+ * - **Stateless** (guest, no `sid`): the token must match the `XSRF-TOKEN`
77
+ * cookie (double-submit). Guests hold no authenticated state to protect.
78
+ *
79
+ * Legacy fallback: tokens stored in sessions by earlier releases keep
80
+ * verifying against the session until those sessions expire. Remove this
81
+ * branch once all pre-upgrade sessions have aged out (a major release).
65
82
  */
66
83
  declare function verifyCsrfToken(ctx: Context, token: string | undefined): boolean;
67
84
  /**
68
85
  * Creates a CSRF protection middleware.
69
86
  *
70
87
  * This middleware:
71
- * - Generates and stores a CSRF token in the session for GET requests
72
- * - Validates the CSRF token for state-changing HTTP methods (POST, PUT, PATCH, DELETE)
88
+ * - Issues a signed token in the `XSRF-TOKEN` cookie on safe requests.
89
+ * With a logged-in session the token is bound to the session id; for
90
+ * guests it is a stateless double-submit token. Nothing is stored
91
+ * server-side, so anonymous traffic costs no session writes and session
92
+ * middleware is optional.
93
+ * - Validates the token for state-changing HTTP methods (POST, PUT, PATCH,
94
+ * DELETE): always requires a valid app-key signature, then the bound
95
+ * session id or (guest) the cookie match.
73
96
  * - Supports token submission via form field (_token) or header (X-CSRF-TOKEN)
97
+ * - Keeps verifying tokens stored in sessions by earlier releases until
98
+ * those sessions expire
99
+ * - Exempts the dev-only MCP endpoint while it is mounted, since agent
100
+ * clients cannot fetch a token first (it guards local-only access instead)
101
+ *
102
+ * `cookie: false` disables the `XSRF-TOKEN` cookie for apps that deliver the
103
+ * token themselves (meta tag / form field). Session-bound tokens still
104
+ * verify without the cookie; guest (stateless) tokens require the cookie, so
105
+ * disable it only for session-authenticated flows.
74
106
  *
75
107
  * @example
76
108
  * ```ts
@@ -84,7 +116,15 @@ declare function verifyCsrfToken(ctx: Context, token: string | undefined): boole
84
116
  */
85
117
  declare function createCsrfMiddleware(options?: CsrfOptions): MiddlewareHandler;
86
118
 
87
- interface InertiaOptions {
119
+ /**
120
+ * Per-response form of {@link InertiaDocumentOptions}: the same fields, already
121
+ * resolved to strings. Each one overrides the app-wide default registered
122
+ * through {@link setInertiaDocument}.
123
+ */
124
+ type InertiaDocumentOverrides = {
125
+ readonly [K in keyof InertiaDocumentOptions]?: string;
126
+ };
127
+ interface InertiaOptions extends InertiaDocumentOverrides {
88
128
  readonly url?: string;
89
129
  readonly version?: string;
90
130
  readonly status?: number;
@@ -120,6 +160,66 @@ interface InertiaSsrOptions {
120
160
  manifest?: string;
121
161
  render?: InertiaSsrRenderer;
122
162
  }
163
+ interface InertiaDocumentContext {
164
+ /** Page component being rendered, e.g. `"Docs/Show"`. */
165
+ readonly component: string;
166
+ }
167
+ type InertiaDocumentValue = string | ((context: InertiaDocumentContext) => string | undefined);
168
+ interface InertiaDocumentOptions {
169
+ /**
170
+ * Class attribute for the root `<body>` element. Pass a function to vary it
171
+ * per page component — a docs section that needs a light surface while the
172
+ * marketing pages keep a dark one, for instance.
173
+ */
174
+ readonly bodyClass?: InertiaDocumentValue;
175
+ /**
176
+ * CSS inlined into `<head>` ahead of the stylesheet links. Keep it to the
177
+ * few declarations that decide the first paint (surface and text colors);
178
+ * the main stylesheet still wins for everything it defines later.
179
+ */
180
+ readonly criticalCss?: InertiaDocumentValue;
181
+ /**
182
+ * Body of a blocking inline `<script>` executed before the first paint.
183
+ * Use it for theme prepaint logic that has to read `localStorage` or
184
+ * `matchMedia` before React hydrates.
185
+ */
186
+ readonly prepaintScript?: InertiaDocumentValue;
187
+ }
188
+ /**
189
+ * Register app-wide document defaults for server-rendered Inertia responses.
190
+ *
191
+ * Without this, the `<body>` ships without a class and nothing is inlined into
192
+ * `<head>`, so a page whose theme is applied by a client effect flashes the
193
+ * stylesheet's default surface color until React hydrates. Call it at module
194
+ * scope in the app entry so every runtime (Bun, serverless handlers, generated
195
+ * worker bundles) picks it up.
196
+ *
197
+ * Registration is process-wide and not request-scoped: calling this while
198
+ * requests are in flight leaks the new policy into them. Use the matching
199
+ * {@link InertiaOptions} fields for a single response instead.
200
+ *
201
+ * The values are emitted verbatim inside `<style>` / `<script>` elements —
202
+ * they are developer-authored assets, never user input.
203
+ *
204
+ * ```typescript
205
+ * setInertiaDocument({
206
+ * bodyClass: ({ component }) => (component.startsWith('Docs/') ? 'docs-theme' : undefined),
207
+ * })
208
+ * ```
209
+ *
210
+ * Pass `undefined` to clear (test isolation).
211
+ */
212
+ declare function setInertiaDocument(options: InertiaDocumentOptions | undefined): void;
213
+ /**
214
+ * Register a process-wide default SSR renderer.
215
+ *
216
+ * Serverless adapters whose bundlers cannot resolve a runtime file path
217
+ * (Cloudflare Workers has no filesystem for `GUREN_INERTIA_SSR_ENTRY`'s
218
+ * dynamic import) register the statically imported renderer once at module
219
+ * scope. Per-call `ssr.render` still takes precedence; pass `undefined` to
220
+ * clear (test isolation).
221
+ */
222
+ declare function setInertiaSsrRenderer(renderer: InertiaSsrRenderer | undefined): void;
123
223
  declare function inertia(component: string, props: Record<string, unknown>, options?: InertiaOptions): Promise<Response>;
124
224
 
125
225
  /**
@@ -1787,6 +1887,8 @@ type ModelBindingResolver = (value: string) => Promise<unknown>;
1787
1887
  */
1788
1888
  interface BindableModel {
1789
1889
  findOrFail(id: unknown, key?: string): Promise<unknown>;
1890
+ /** Bound values are model classes at runtime; the constructor name is the introspection payload. */
1891
+ readonly name?: string;
1790
1892
  }
1791
1893
  type SchemaLike<T = unknown> = ValidationSchema<T> | undefined;
1792
1894
  type InferSchema<TSchema extends SchemaLike<unknown>> = TSchema extends ValidationSchema<infer TValue> ? TValue : never;
@@ -1848,6 +1950,8 @@ interface RouteDefinition {
1848
1950
  name: string;
1849
1951
  action: string;
1850
1952
  };
1953
+ /** Route model bindings: param name → bound model class name (from `bind`) */
1954
+ bindings?: Record<string, string>;
1851
1955
  summary?: string;
1852
1956
  description?: string;
1853
1957
  tags?: string[];
@@ -1892,6 +1996,8 @@ declare class Router<M extends string = never> {
1892
1996
  private readonly middlewareAliases;
1893
1997
  private readonly middlewareGroups;
1894
1998
  private readonly modelBindings;
1999
+ /** Model class names for router-level bind(param, Model) calls — resolver-only binds carry no name. */
2000
+ private readonly modelBindingNames;
1895
2001
  aliasMiddleware<N extends string>(name: N, handler: MiddlewareHandler): Router<M | N>;
1896
2002
  groupMiddleware<N extends string>(name: N, middlewareNames: M[]): Router<M | N>;
1897
2003
  middleware(...names: M[]): RouterMiddlewareGroupBuilder<M>;
@@ -2046,6 +2152,75 @@ declare class ProviderManager {
2046
2152
  getDeferredServices(): string[];
2047
2153
  }
2048
2154
 
2155
+ /**
2156
+ * Declarative definition of an application module — a self-contained
2157
+ * `modules/<name>/` directory that can register routes and providers, per
2158
+ * RFC 0002. Unlike `definePlugin()`, a module has no config stage and no
2159
+ * register/boot lifecycle of its own: it's a plain descriptor bundling
2160
+ * providers and a route registrar that `Application` folds into its own
2161
+ * provider list and route mounting.
2162
+ */
2163
+ interface ModuleDefinition {
2164
+ /** Diagnostic name; also the expected directory name under `modules/`. */
2165
+ name: string;
2166
+ /**
2167
+ * URL prefix applied to all module routes via `router.group(prefix, ...)`.
2168
+ * Declarative on purpose — tooling can read a module's URL surface
2169
+ * statically without executing the registrar.
2170
+ */
2171
+ prefix?: string;
2172
+ /** Route registrar, invoked after `options.routes` during boot. */
2173
+ routes?: (router: Router) => void | Promise<void>;
2174
+ /** Providers appended to the application's provider list. */
2175
+ providers?: ServiceProviderConstructor[];
2176
+ }
2177
+ /**
2178
+ * A module as `Application` consumes it — `providers` normalized to always
2179
+ * be an array so callers don't repeat the `?? []` fallback.
2180
+ */
2181
+ interface GurenModule {
2182
+ name: string;
2183
+ prefix?: string;
2184
+ routes?: (router: Router) => void | Promise<void>;
2185
+ providers: ServiceProviderConstructor[];
2186
+ }
2187
+ /**
2188
+ * Define a Guren application module without boilerplate.
2189
+ *
2190
+ * @example
2191
+ * ```typescript
2192
+ * // modules/billing/index.ts
2193
+ * export const billingModule = defineModule({
2194
+ * name: 'billing',
2195
+ * prefix: '/billing',
2196
+ * routes: registerBillingRoutes,
2197
+ * providers: [BillingServiceProvider],
2198
+ * })
2199
+ *
2200
+ * // src/app.ts
2201
+ * createApp({ routes, providers, modules: [billingModule] })
2202
+ * ```
2203
+ */
2204
+ declare function defineModule(definition: ModuleDefinition): GurenModule;
2205
+ /**
2206
+ * Runs a module's route registrar against `router`, applying its `prefix`
2207
+ * via `router.group()` when set. Shared by `Application.mountRoutes()` (at
2208
+ * boot) and the CLI's route loader (for `guren codegen`/`audit`/`routes`/
2209
+ * `openapi:generate`, which need the same route set without booting a real
2210
+ * app) so both stay in sync — a bugfix to one path fixes the other.
2211
+ *
2212
+ * `router.group(prefix, callback)`'s callback is synchronous — it pushes
2213
+ * the prefix, invokes the callback, then pops it, with no support for
2214
+ * awaiting inside. Capturing the registrar's return value and awaiting it
2215
+ * after `group()` returns preserves prefixing for the common case (a
2216
+ * synchronous registrar, or an async one that calls `router.get`/`post`/
2217
+ * etc. before its first `await`); route calls after an `await` inside an
2218
+ * async, prefixed module registrar would run with the prefix already
2219
+ * popped. Registrars with no prefix don't go through group() and have no
2220
+ * such limitation.
2221
+ */
2222
+ declare function mountModuleRoutes(router: Router, gurenModule: GurenModule): Promise<void>;
2223
+
2049
2224
  declare const GUREN_ASCII_ART: string;
2050
2225
  interface DevBannerOptions {
2051
2226
  hostname: string;
@@ -2077,6 +2252,12 @@ interface ApplicationOptions {
2077
2252
  readonly auth?: AuthPluginOptions;
2078
2253
  readonly discover?: boolean;
2079
2254
  readonly routes?: RouteRegistration;
2255
+ /**
2256
+ * Application modules (RFC 0002) — each module's providers are appended
2257
+ * to `providers` below, and its route registrar runs after `routes`
2258
+ * (wrapped in `router.group(prefix, ...)` when the module declares one).
2259
+ */
2260
+ readonly modules?: GurenModule[];
2080
2261
  readonly features?: ApplicationFeatures;
2081
2262
  /**
2082
2263
  * Configure or disable the default security headers middleware.
@@ -2152,8 +2333,7 @@ declare class Application {
2152
2333
  private mountSecurityDefaults;
2153
2334
  private mountHostAuthorization;
2154
2335
  /**
2155
- * Mounts the MCP endpoint at /_guren/mcp when explicitly enabled.
2156
- * Requires GUREN_MCP=1 environment variable. Never active in production.
2336
+ * Mounts the MCP endpoint at /_guren/mcp when enabled.
2157
2337
  * This allows AI coding agents to introspect the project.
2158
2338
  */
2159
2339
  private mountMcpEndpoint;
@@ -2183,4 +2363,4 @@ declare class Application {
2183
2363
  }
2184
2364
  declare function createApp(options?: ApplicationOptions): Application;
2185
2365
 
2186
- export { Notification as $, Application as A, type HstsOptions as B, Container as C, type DevBannerOptions as D, type ErrorResponse as E, type FailedJob as F, GUREN_ASCII_ART as G, type HostAuthorizationOptions as H, type InertiaOptions as I, type InertiaPagePayload as J, type InertiaResponse as K, type InertiaSharedProps as L, type InertiaSsrContext as M, NotificationManager as N, type InertiaSsrOptions as O, type Provider as P, QueueManager as Q, type InertiaSsrRenderer as R, ServiceProvider as S, type InertiaSsrResult as T, type InferInertiaProps as U, Job as V, type JobClass as W, type JobFailureHandler as X, type JobHandler as Y, type JobOptions as Z, type Notifiable as _, type StartViteDevServerOptions as a, setExceptionHandler as a$, type NotificationAttachment as a0, type NotificationChannel as a1, type NotificationChannelFactory as a2, type NotificationClass as a3, type NotificationMailMessage as a4, type NotificationManagerOptions as a5, ProviderManager as a6, type QueueConfig as a7, type QueueDriver as a8, type QueueDriverFactory as a9, abortIf as aA, abortUnless as aB, clearJobRegistry as aC, createApp as aD, createContainer as aE, createCsrfMiddleware as aF, createExceptionHandler as aG, createHostAuthorizationMiddleware as aH, createNotificationManager as aI, createQueueManager as aJ, createSecurityHeaders as aK, csrfField as aL, formatValidationErrors as aM, getContainer as aN, getCsrfToken as aO, getExceptionHandler as aP, getInertiaSharedPropsResolver as aQ, getJob as aR, getNotificationManager as aS, getQueueDriver as aT, getRegisteredJobs as aU, getValidatedData as aV, inertia as aW, parseRequestPayload as aX, registerJob as aY, resolve as aZ, setContainer as a_, type QueuedJob as aa, type RendererRegistration as ab, type ResolvedSharedInertiaProps as ac, type ResourceRouteOptions as ad, type RouteBuilder as ae, type RouteContractOptions as af, type RouteDefinition as ag, type RouteOpenApiMetadata as ah, type ResourceAction as ai, Router as aj, type SecurityHeadersOptions as ak, type SentNotification as al, type ServiceBinding as am, type ServiceClass as an, type ServiceFactory as ao, type ServiceProviderClass as ap, type ServiceProviderOptions as aq, type SharedInertiaPropsResolver as ar, type SlackAttachment as as, type SlackBlock as at, type SlackMessage as au, VALIDATED_DATA_KEY as av, type ValidateRequestOptions as aw, type ValidationSchema as ax, type WorkerOptions as ay, abort as az, type StartedViteDevServer as b, setInertiaSharedProps as b0, setNotificationManager as b1, setQueueDriver as b2, shareInertiaProps as b3, validate as b4, validateRequest as b5, validateRequestWith as b6, validateSafe as b7, verifyCsrfToken as b8, type ServiceProviderConstructor as c, type ServiceBindings as d, type ApplicationListenOptions as e, type ApplicationOptions as f, type AuthPayload as g, type AuthPluginOptions as h, CSRF_FORM_FIELD as i, CSRF_HEADER_NAME as j, CSRF_TOKEN_KEY as k, logDevServerBanner as l, type ContextualBinding as m, type ContextualBindingBuilder as n, type ContextualNeedsBuilder as o, Controller as p, type ControllerInertiaProps as q, type CsrfOptions as r, startViteDevServer as s, type DatabaseChannelOptions as t, type DatabaseNotification as u, type ExceptionClass as v, ExceptionHandler as w, type ExceptionHandlerOptions as x, type ExceptionRenderer as y, type ExceptionReporter as z };
2366
+ export { type JobHandler as $, Application as A, type GurenModule as B, Container as C, type DevBannerOptions as D, type ErrorResponse as E, type FailedJob as F, GUREN_ASCII_ART as G, type HostAuthorizationOptions as H, type HstsOptions as I, type InertiaDocumentContext as J, type InertiaDocumentOptions as K, type InertiaOptions as L, type InertiaPagePayload as M, NotificationManager as N, type InertiaResponse as O, type Provider as P, QueueManager as Q, type InertiaSharedProps as R, ServiceProvider as S, type InertiaSsrContext as T, type InertiaSsrOptions as U, type InertiaSsrRenderer as V, type InertiaSsrResult as W, type InferInertiaProps as X, Job as Y, type JobClass as Z, type JobFailureHandler as _, type StartViteDevServerOptions as a, inertia as a$, type JobOptions as a0, type ModuleDefinition as a1, type Notifiable as a2, Notification as a3, type NotificationAttachment as a4, type NotificationChannel as a5, type NotificationChannelFactory as a6, type NotificationClass as a7, type NotificationMailMessage as a8, type NotificationManagerOptions as a9, type ValidateRequestOptions as aA, type ValidationSchema as aB, type WorkerOptions as aC, abort as aD, abortIf as aE, abortUnless as aF, clearJobRegistry as aG, createApp as aH, createContainer as aI, createCsrfMiddleware as aJ, createExceptionHandler as aK, createHostAuthorizationMiddleware as aL, createNotificationManager as aM, createQueueManager as aN, createSecurityHeaders as aO, csrfField as aP, defineModule as aQ, formatValidationErrors as aR, getContainer as aS, getCsrfToken as aT, getExceptionHandler as aU, getInertiaSharedPropsResolver as aV, getJob as aW, getNotificationManager as aX, getQueueDriver as aY, getRegisteredJobs as aZ, getValidatedData as a_, ProviderManager as aa, type QueueConfig as ab, type QueueDriver as ac, type QueueDriverFactory as ad, type QueuedJob as ae, type RendererRegistration as af, type ResolvedSharedInertiaProps as ag, type ResourceRouteOptions as ah, type RouteBuilder as ai, type RouteContractOptions as aj, type RouteDefinition as ak, type RouteOpenApiMetadata as al, type ResourceAction as am, Router as an, type SecurityHeadersOptions as ao, type SentNotification as ap, type ServiceBinding as aq, type ServiceClass as ar, type ServiceFactory as as, type ServiceProviderClass as at, type ServiceProviderOptions as au, type SharedInertiaPropsResolver as av, type SlackAttachment as aw, type SlackBlock as ax, type SlackMessage as ay, VALIDATED_DATA_KEY as az, type StartedViteDevServer as b, mountModuleRoutes as b0, parseRequestPayload as b1, registerJob as b2, resolve as b3, setContainer as b4, setExceptionHandler as b5, setInertiaDocument as b6, setInertiaSharedProps as b7, setInertiaSsrRenderer as b8, setNotificationManager as b9, setQueueDriver as ba, shareInertiaProps as bb, validate as bc, validateRequest as bd, validateRequestWith as be, validateSafe as bf, verifyCsrfToken as bg, type ServiceProviderConstructor as c, type ServiceBindings as d, type ApplicationListenOptions as e, type ApplicationOptions as f, type AuthPayload as g, type AuthPluginOptions as h, CSRF_FORM_FIELD as i, CSRF_HEADER_NAME as j, CSRF_TOKEN_KEY as k, logDevServerBanner as l, type ContextualBinding as m, type ContextualBindingBuilder as n, type ContextualNeedsBuilder as o, Controller as p, type ControllerInertiaProps as q, type CsrfOptions as r, startViteDevServer as s, type DatabaseChannelOptions as t, type DatabaseNotification as u, type ExceptionClass as v, ExceptionHandler as w, type ExceptionHandlerOptions as x, type ExceptionRenderer as y, type ExceptionReporter as z };
@@ -1,6 +1,6 @@
1
1
  import { Context } from 'hono';
2
2
  import { Model } from '@guren/orm';
3
- import { A as Authenticatable, U as UserProvider, a as AuthCredentials, b as AuthManagerContract, c as AuthManagerOptions, G as GuardFactory, P as ProviderFactory, d as GuardContext, e as Guard, f as AttachContextOptions, g as AuthContext } from './api-token-CB12xnVg.js';
3
+ import { A as Authenticatable, U as UserProvider, a as AuthCredentials, b as AuthManagerContract, c as AuthManagerOptions, G as GuardFactory, P as ProviderFactory, d as GuardContext, e as Guard, f as AttachContextOptions, g as AuthContext } from './api-token-COQHXyM_.js';
4
4
 
5
5
  interface PasswordHasher {
6
6
  hash(plain: string): Promise<string>;
@@ -450,6 +450,21 @@ declare class BroadcastManager {
450
450
  * Get clients subscribed to a channel.
451
451
  */
452
452
  getChannelClients(channel: string): SSEClient[];
453
+ /**
454
+ * Close every SSE connection this manager is holding.
455
+ *
456
+ * Each connection owns a ping timer that is only cleared when the stream is
457
+ * cancelled or the request aborts. `Bun.serve().stop()` without forcing waits
458
+ * for in-flight requests instead of cutting them, and an SSE response never
459
+ * finishes — so on a hot reload those connections outlive the manager, and
460
+ * their timers go on pinging a stream nobody reads.
461
+ *
462
+ * `getClients()` returns a snapshot. A `Map` iterator does tolerate an entry
463
+ * deleting itself, which is all `cleanup()` does today — but not a `close()`
464
+ * that reaches another client, which would drop that one from the iteration
465
+ * unvisited and leave its timer running.
466
+ */
467
+ disconnectAll(): void;
453
468
  /**
454
469
  * Generate a unique client ID.
455
470
  */
@@ -465,6 +480,12 @@ declare function setBroadcastManager(manager: BroadcastManager): void;
465
480
  declare function getBroadcastManager(): BroadcastManager;
466
481
  /**
467
482
  * Create a broadcast manager.
483
+ *
484
+ * Under `bun --hot`, the manager this one replaces has its SSE connections
485
+ * closed first, so their ping timers stop with it. Registered from the factory
486
+ * rather than the constructor because the factory is what application code
487
+ * calls: frame 2 of the stack is the provider that built the manager, not this
488
+ * file. A bare `new BroadcastManager()` is left alone.
468
489
  */
469
490
  declare function createBroadcastManager(options?: BroadcastManagerOptions): BroadcastManager;
470
491
 
@@ -200,6 +200,15 @@ declare class CacheManager {
200
200
  private readonly defaultStoreName;
201
201
  private readonly storeFactories;
202
202
  private readonly resolvedStores;
203
+ /**
204
+ * Where this manager was built, for identifying its stores across hot reloads.
205
+ *
206
+ * Captured here rather than in `store()` because stores resolve lazily, from
207
+ * whichever request first asks for one — a call site that says nothing about
208
+ * which manager owns the result. Skipped outside `--hot`, where it would be a
209
+ * formatted stack string held for the manager's lifetime and never read.
210
+ */
211
+ private readonly builtAt;
203
212
  constructor(config?: CacheConfig);
204
213
  private driverFactories;
205
214
  /**
@@ -215,6 +224,14 @@ declare class CacheManager {
215
224
  * Returns the default store if no name is specified.
216
225
  */
217
226
  store(name?: string): TaggableCacheStore;
227
+ /**
228
+ * Under `bun --hot`, stops the sweep timer held by the store this one replaces.
229
+ *
230
+ * Registered from here rather than from `MemoryStore` itself because this is
231
+ * where the store's name is known, and the name is what keeps two memory
232
+ * stores in one config from sharing a slot and cancelling each other's sweep.
233
+ */
234
+ private stopPreviousStore;
218
235
  /**
219
236
  * Register a custom store factory.
220
237
  */
@@ -1,4 +1,4 @@
1
- import { C as Container } from './Application-DImeY-VW.js';
1
+ import { C as Container } from './Application-BvBqgc2k.js';
2
2
 
3
3
  /**
4
4
  * Parsed argument definition.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  McpServiceProvider
3
- } from "./chunk-J753UWAY.js";
4
- import "./chunk-STZUODC3.js";
3
+ } from "./chunk-NQCZQAJL.js";
4
+ import "./chunk-NYQGAWDN.js";
5
5
  export {
6
6
  McpServiceProvider
7
7
  };
@@ -399,6 +399,8 @@ declare class Scheduler {
399
399
  private interval;
400
400
  private isRunning;
401
401
  private lastCheck;
402
+ /** This scheduler's claim on its hot-reload slot while it is running. */
403
+ private hotReloadClaim;
402
404
  constructor(options?: SchedulerOptions);
403
405
  /**
404
406
  * Define schedules using a callback.
@@ -15,6 +15,14 @@ interface SessionStore {
15
15
  * Destroy a session. Implementations must treat repeated calls as safe.
16
16
  */
17
17
  destroy(id: string): Promise<void>;
18
+ /**
19
+ * Optional: refresh an existing session's TTL without rewriting its data.
20
+ * The middleware uses this for unchanged sessions (rolling expiry); stores
21
+ * that omit it fall back to a full `write`. Refreshing a session that no
22
+ * longer exists — including one that has expired but not yet been swept
23
+ * from storage — must be a no-op, not a resurrection.
24
+ */
25
+ touch?(id: string, ttlSeconds: number): Promise<void>;
18
26
  }
19
27
  declare class MemorySessionStore implements SessionStore {
20
28
  private readonly now;
@@ -23,6 +31,7 @@ declare class MemorySessionStore implements SessionStore {
23
31
  read(id: string): Promise<SessionData | undefined>;
24
32
  write(id: string, data: SessionData, ttlSeconds: number): Promise<void>;
25
33
  destroy(id: string): Promise<void>;
34
+ touch(id: string, ttlSeconds: number): Promise<void>;
26
35
  }
27
36
  interface SessionOptions {
28
37
  cookieName?: string;
@@ -44,6 +53,14 @@ interface Session {
44
53
  forget(key: string): void;
45
54
  flush(): void;
46
55
  all(): SessionData;
56
+ /**
57
+ * Rotate the session id (call after login to mitigate session fixation).
58
+ * The new id is persisted and the old one destroyed at request end. Known
59
+ * limitation shared by every multi-process store: a concurrent request
60
+ * still carrying the old cookie can re-persist the old id afterwards; the
61
+ * resurrected row holds only pre-rotation data (no auth state), so
62
+ * fixation does not escalate, but the row can linger until it expires.
63
+ */
47
64
  regenerate(): void;
48
65
  invalidate(): void;
49
66
  flash(key: string, value: unknown): void;
@@ -170,6 +187,35 @@ interface OAuthProviderConfig {
170
187
  tokenAuthMethod?: 'client_secret_post' | 'client_secret_basic';
171
188
  userInfoMethod?: 'GET' | 'POST';
172
189
  mapProfile?: (raw: Record<string, unknown>, token: OAuthTokenResult) => OAuthUserProfile;
190
+ /**
191
+ * Key in the userinfo response carrying the provider's own verification
192
+ * signal for the email address — Discord returns `verified`, for example.
193
+ * Defaults to OIDC's standard `email_verified` claim. Only boolean values
194
+ * are read; anything else leaves `profile.emailVerified` undefined. Ignored
195
+ * when `mapProfile` is set, since that owns the whole mapping.
196
+ */
197
+ emailVerifiedKey?: string;
198
+ /**
199
+ * Fallback used when the userinfo response carries no email — e.g. GitHub
200
+ * returns `email: null` for accounts with a private email even when the
201
+ * `user:email` scope was granted. Returns the email to use, or undefined
202
+ * to leave the profile without one.
203
+ *
204
+ * The signal read via `emailVerifiedKey` does not carry over to a fallback
205
+ * address — it was read against a response that had no email. A bare string
206
+ * therefore makes no verification claim and leaves `profile.emailVerified`
207
+ * undefined; return `{ email, emailVerified: true }` to assert one.
208
+ */
209
+ fetchFallbackEmail?: (token: OAuthTokenResult) => Promise<string | OAuthFallbackEmail | undefined>;
210
+ }
211
+ interface OAuthFallbackEmail {
212
+ email: string;
213
+ /**
214
+ * Whether the provider verified this specific address. Omit it when the
215
+ * lookup cannot tell — the profile then reports `emailVerified: undefined`
216
+ * rather than an unfounded claim.
217
+ */
218
+ emailVerified?: boolean;
173
219
  }
174
220
  interface OAuthTokenResult {
175
221
  accessToken: string;
@@ -184,6 +230,15 @@ interface OAuthUserProfile {
184
230
  email?: string;
185
231
  name?: string;
186
232
  avatar?: string;
233
+ /**
234
+ * Whether the provider itself verified `email`. Tri-state on purpose:
235
+ * `true` — the provider asserts the address is verified; `false` — it
236
+ * asserts it is not; `undefined` — the provider sends no such signal
237
+ * (GitHub's `/user`, for instance), so the consumer decides its own policy.
238
+ * Returning an email is not by itself a claim that it was checked, so
239
+ * treating `undefined` as verified is a decision, not a default.
240
+ */
241
+ emailVerified?: boolean;
187
242
  token: OAuthTokenResult;
188
243
  raw: Record<string, unknown>;
189
244
  }
@@ -196,6 +251,17 @@ interface OAuthStateStore {
196
251
  store(stateHash: string, payload: OAuthStatePayload): Promise<void>;
197
252
  find(stateHash: string): Promise<OAuthStatePayload | null>;
198
253
  delete(stateHash: string): Promise<void>;
254
+ /**
255
+ * Atomically fetch and delete a state in one step. Exactly one caller may
256
+ * receive the payload; every other concurrent caller (and any later call)
257
+ * must get null. Expired states must also return null, mirroring `find`.
258
+ *
259
+ * Optional for backward compatibility: `verifyOAuthState` prefers this
260
+ * when present. Stores that only implement find/delete keep working, but
261
+ * leave a window where two concurrent callbacks with the same state can
262
+ * both pass verification.
263
+ */
264
+ consume?(stateHash: string): Promise<OAuthStatePayload | null>;
199
265
  }
200
266
  interface OAuthStateConfig {
201
267
  expiresIn?: number;
@@ -232,6 +298,7 @@ declare class MemoryOAuthStateStore implements OAuthStateStore {
232
298
  private sweepExpired;
233
299
  find(stateHash: string): Promise<OAuthStatePayload | null>;
234
300
  delete(stateHash: string): Promise<void>;
301
+ consume(stateHash: string): Promise<OAuthStatePayload | null>;
235
302
  clear(): void;
236
303
  }
237
304
  declare class OAuthManager {
@@ -593,4 +660,4 @@ declare function getApiTokenOrFail(ctx: Context): {
593
660
  abilities: string[];
594
661
  };
595
662
 
596
- export { parseApiToken as $, type Authenticatable as A, type BearerTokenMiddlewareOptions as B, type CreateSessionMiddlewareOptions as C, type DefaultSanitizedKeys as D, type Session as E, buildOAuthAuthorizeUrl as F, type GuardFactory as G, buildOAuthRedirectUrl as H, createApiToken as I, createBearerTokenMiddleware as J, createDiscordOAuthProviderConfig as K, createGitHubOAuthProviderConfig as L, MemoryApiTokenStore as M, createGoogleOAuthProviderConfig as N, type OAuthStateStore as O, type ProviderFactory as P, createOAuthManager as Q, createOAuthState as R, type SessionStore as S, createSessionMiddleware as T, type UserProvider as U, exchangeOAuthCode as V, fetchOAuthUserProfile as W, getApiToken as X, getApiTokenOrFail as Y, getSessionFromContext as Z, getUserApiTokens as _, type AuthCredentials as a, parseOAuthRedirectUrl as a0, revokeAllApiTokens as a1, revokeApiToken as a2, sanitizeOAuthRedirect as a3, tokenCan as a4, tokenCanAll as a5, tokenCanAny as a6, verifyApiToken as a7, verifyOAuthState as a8, type AuthManagerContract as b, type AuthManagerOptions as c, type GuardContext as d, type Guard as e, type AttachContextOptions as f, type AuthContext as g, type SessionData as h, type ApiTokenStore as i, type ApiToken as j, type OAuthStatePayload as k, OAuthManager as l, API_TOKEN_KEY as m, type CreateApiTokenOptions as n, type CreateApiTokenResult as o, MemoryOAuthStateStore as p, MemorySessionStore as q, type OAuthAuthorizeOptions as r, type OAuthCallbackPayload as s, type OAuthManagerOptions as t, type OAuthProviderConfig as u, type OAuthProviderFactoryInput as v, type OAuthStateConfig as w, type OAuthTokenResult as x, type OAuthUserProfile as y, type Sanitized as z };
663
+ export { getUserApiTokens as $, type Authenticatable as A, type BearerTokenMiddlewareOptions as B, type CreateSessionMiddlewareOptions as C, type DefaultSanitizedKeys as D, type Sanitized as E, type Session as F, type GuardFactory as G, buildOAuthAuthorizeUrl as H, buildOAuthRedirectUrl as I, createApiToken as J, createBearerTokenMiddleware as K, createDiscordOAuthProviderConfig as L, MemoryApiTokenStore as M, createGitHubOAuthProviderConfig as N, type OAuthStateStore as O, type ProviderFactory as P, createGoogleOAuthProviderConfig as Q, createOAuthManager as R, type SessionStore as S, createOAuthState as T, type UserProvider as U, createSessionMiddleware as V, exchangeOAuthCode as W, fetchOAuthUserProfile as X, getApiToken as Y, getApiTokenOrFail as Z, getSessionFromContext as _, type AuthCredentials as a, parseApiToken as a0, parseOAuthRedirectUrl as a1, revokeAllApiTokens as a2, revokeApiToken as a3, sanitizeOAuthRedirect as a4, tokenCan as a5, tokenCanAll as a6, tokenCanAny as a7, verifyApiToken as a8, verifyOAuthState as a9, type AuthManagerContract as b, type AuthManagerOptions as c, type GuardContext as d, type Guard as e, type AttachContextOptions as f, type AuthContext as g, type SessionData as h, type ApiTokenStore as i, type ApiToken as j, type OAuthStatePayload as k, OAuthManager as l, API_TOKEN_KEY as m, type CreateApiTokenOptions as n, type CreateApiTokenResult as o, MemoryOAuthStateStore as p, MemorySessionStore as q, type OAuthAuthorizeOptions as r, type OAuthCallbackPayload as s, type OAuthFallbackEmail as t, type OAuthManagerOptions as u, type OAuthProviderConfig as v, type OAuthProviderFactoryInput as w, type OAuthStateConfig as x, type OAuthTokenResult as y, type OAuthUserProfile as z };
@@ -1,9 +1,9 @@
1
- import { P as PasswordHasher } from '../AuthManager-BU8ZvenF.js';
2
- export { A as AuthManager, B as BaseUserProvider, M as ModelUserProvider } from '../AuthManager-BU8ZvenF.js';
3
- import { A as Authenticatable, e as Guard, U as UserProvider, E as Session, a as AuthCredentials } from '../api-token-CB12xnVg.js';
4
- export { m as API_TOKEN_KEY, j as ApiToken, i as ApiTokenStore, f as AttachContextOptions, g as AuthContext, b as AuthManagerContract, c as AuthManagerOptions, B as BearerTokenMiddlewareOptions, n as CreateApiTokenOptions, o as CreateApiTokenResult, D as DefaultSanitizedKeys, d as GuardContext, G as GuardFactory, M as MemoryApiTokenStore, p as MemoryOAuthStateStore, r as OAuthAuthorizeOptions, s as OAuthCallbackPayload, l as OAuthManager, t as OAuthManagerOptions, u as OAuthProviderConfig, v as OAuthProviderFactoryInput, w as OAuthStateConfig, k as OAuthStatePayload, O as OAuthStateStore, x as OAuthTokenResult, y as OAuthUserProfile, P as ProviderFactory, z as Sanitized, F as buildOAuthAuthorizeUrl, H as buildOAuthRedirectUrl, I as createApiToken, J as createBearerTokenMiddleware, K as createDiscordOAuthProviderConfig, L as createGitHubOAuthProviderConfig, N as createGoogleOAuthProviderConfig, Q as createOAuthManager, R as createOAuthState, V as exchangeOAuthCode, W as fetchOAuthUserProfile, X as getApiToken, Y as getApiTokenOrFail, _ as getUserApiTokens, $ as parseApiToken, a0 as parseOAuthRedirectUrl, a1 as revokeAllApiTokens, a2 as revokeApiToken, a3 as sanitizeOAuthRedirect, a4 as tokenCan, a5 as tokenCanAll, a6 as tokenCanAny, a7 as verifyApiToken, a8 as verifyOAuthState } from '../api-token-CB12xnVg.js';
1
+ import { P as PasswordHasher } from '../AuthManager-C84xF5ks.js';
2
+ export { A as AuthManager, B as BaseUserProvider, M as ModelUserProvider } from '../AuthManager-C84xF5ks.js';
3
+ import { A as Authenticatable, e as Guard, U as UserProvider, F as Session, a as AuthCredentials } from '../api-token-COQHXyM_.js';
4
+ export { m as API_TOKEN_KEY, j as ApiToken, i as ApiTokenStore, f as AttachContextOptions, g as AuthContext, b as AuthManagerContract, c as AuthManagerOptions, B as BearerTokenMiddlewareOptions, n as CreateApiTokenOptions, o as CreateApiTokenResult, D as DefaultSanitizedKeys, d as GuardContext, G as GuardFactory, M as MemoryApiTokenStore, p as MemoryOAuthStateStore, r as OAuthAuthorizeOptions, s as OAuthCallbackPayload, t as OAuthFallbackEmail, l as OAuthManager, u as OAuthManagerOptions, v as OAuthProviderConfig, w as OAuthProviderFactoryInput, x as OAuthStateConfig, k as OAuthStatePayload, O as OAuthStateStore, y as OAuthTokenResult, z as OAuthUserProfile, P as ProviderFactory, E as Sanitized, H as buildOAuthAuthorizeUrl, I as buildOAuthRedirectUrl, J as createApiToken, K as createBearerTokenMiddleware, L as createDiscordOAuthProviderConfig, N as createGitHubOAuthProviderConfig, Q as createGoogleOAuthProviderConfig, R as createOAuthManager, T as createOAuthState, W as exchangeOAuthCode, X as fetchOAuthUserProfile, Y as getApiToken, Z as getApiTokenOrFail, $ as getUserApiTokens, a0 as parseApiToken, a1 as parseOAuthRedirectUrl, a2 as revokeAllApiTokens, a3 as revokeApiToken, a4 as sanitizeOAuthRedirect, a5 as tokenCan, a6 as tokenCanAll, a7 as tokenCanAny, a8 as verifyApiToken, a9 as verifyOAuthState } from '../api-token-COQHXyM_.js';
5
5
  import { PlainObject, Model } from '@guren/orm';
6
- export { b as EmailVerificationConfig, a as EmailVerificationToken, c as EmailVerificationTokenResult, E as EmailVerificationTokenStore, M as MemoryEmailVerificationStore, d as MemoryPasswordResetStore, e as PasswordResetConfig, f as PasswordResetTokenResult, P as PasswordResetTokenStore, g as buildPasswordResetUrl, q as buildTokenUrl, h as buildVerificationUrl, i as completeEmailVerification, j as completePasswordReset, k as createEmailVerificationToken, l as createPasswordResetToken, s as generateId, t as generateToken, u as hashToken, m as isEmailVerified, p as parsePasswordResetUrl, w as parseTokenUrl, n as parseVerificationUrl, r as requireVerifiedEmail, x as secureCompare, y as secureStringCompare, v as verifyEmailToken, o as verifyPasswordResetToken } from '../email-verification-D9u7krkn.js';
6
+ export { b as EmailVerificationConfig, a as EmailVerificationToken, c as EmailVerificationTokenResult, E as EmailVerificationTokenStore, M as MemoryEmailVerificationStore, d as MemoryPasswordResetStore, e as PasswordResetConfig, f as PasswordResetTokenResult, P as PasswordResetTokenStore, g as buildPasswordResetUrl, q as buildTokenUrl, h as buildVerificationUrl, i as completeEmailVerification, j as completePasswordReset, k as createEmailVerificationToken, l as createPasswordResetToken, s as generateId, t as generateToken, u as hashToken, m as isEmailVerified, p as parsePasswordResetUrl, w as parseTokenUrl, n as parseVerificationUrl, r as requireVerifiedEmail, x as secureCompare, y as secureStringCompare, v as verifyEmailToken, o as verifyPasswordResetToken } from '../email-verification-H_WlpsVH.js';
7
7
  import 'hono';
8
8
 
9
9
  interface SessionGuardOptions {
@@ -55,7 +55,7 @@ import {
55
55
  verifyEmailToken,
56
56
  verifyOAuthState,
57
57
  verifyPasswordResetToken
58
- } from "../chunk-VY2JPS6V.js";
58
+ } from "../chunk-AUXQISW5.js";
59
59
  import "../chunk-DAQKYKLH.js";
60
60
  import "../chunk-ONSDE37A.js";
61
61
  import "../chunk-QQKTH5KX.js";
@@ -14,8 +14,8 @@ import {
14
14
  getGate,
15
15
  setGate,
16
16
  withAuthorization
17
- } from "../chunk-ZRBLZY3M.js";
18
- import "../chunk-THSX7OOR.js";
17
+ } from "../chunk-FZD2AKJI.js";
18
+ import "../chunk-63SKW5PS.js";
19
19
  import "../chunk-DAQKYKLH.js";
20
20
  export {
21
21
  Gate,
@@ -1,5 +1,5 @@
1
- import { B as BroadcastManager, P as PresenceBroadcastDriver, c as BroadcastEvent, j as PresenceMember } from '../BroadcastManager-CGWl9rUO.js';
2
- export { A as AuthMiddlewareOptions, a as BroadcastDriver, b as BroadcastDriverFactory, d as BroadcastManagerOptions, e as BroadcastableEvent, C as Channel, f as ChannelAuthorizer, g as ChannelRegistration, h as PresenceChannel, i as PresenceChannelAuthorizer, k as PrivateChannel, S as SSEClient, l as SSEMiddlewareOptions, W as WebSocketClient, m as createBroadcastManager, n as getBroadcastManager, s as setBroadcastManager } from '../BroadcastManager-CGWl9rUO.js';
1
+ import { B as BroadcastManager, P as PresenceBroadcastDriver, c as BroadcastEvent, j as PresenceMember } from '../BroadcastManager-D8KoJxiV.js';
2
+ export { A as AuthMiddlewareOptions, a as BroadcastDriver, b as BroadcastDriverFactory, d as BroadcastManagerOptions, e as BroadcastableEvent, C as Channel, f as ChannelAuthorizer, g as ChannelRegistration, h as PresenceChannel, i as PresenceChannelAuthorizer, k as PrivateChannel, S as SSEClient, l as SSEMiddlewareOptions, W as WebSocketClient, m as createBroadcastManager, n as getBroadcastManager, s as setBroadcastManager } from '../BroadcastManager-D8KoJxiV.js';
3
3
  import '../index-9_Jzj5jo.js';
4
4
  import 'hono';
5
5
 
@@ -9,7 +9,8 @@ import {
9
9
  createTypedBroadcaster,
10
10
  getBroadcastManager,
11
11
  setBroadcastManager
12
- } from "../chunk-44F7JQ7I.js";
12
+ } from "../chunk-XMQZENBP.js";
13
+ import "../chunk-DCYKSYAT.js";
13
14
  export {
14
15
  BroadcastManager,
15
16
  Channel,
@@ -1,5 +1,5 @@
1
- import { b as CacheStore, M as MemoryStoreOptions, R as RedisStoreOptions, F as FileStoreOptions, T as TaggedCacheStore } from '../CacheManager-BkvHEOZX.js';
2
- export { a as CacheConfig, C as CacheManager, c as CacheStoreFactory, e as CachedItem, S as StoreConfig, f as TaggableCacheStore, d as createCacheManager } from '../CacheManager-BkvHEOZX.js';
1
+ import { b as CacheStore, M as MemoryStoreOptions, R as RedisStoreOptions, F as FileStoreOptions, T as TaggedCacheStore } from '../CacheManager-BmDzUKrF.js';
2
+ export { a as CacheConfig, C as CacheManager, c as CacheStoreFactory, e as CachedItem, S as StoreConfig, f as TaggableCacheStore, d as createCacheManager } from '../CacheManager-BmDzUKrF.js';
3
3
 
4
4
  /**
5
5
  * In-memory cache store.
@@ -5,7 +5,8 @@ import {
5
5
  RedisStore,
6
6
  TaggedCache,
7
7
  createCacheManager
8
- } from "../chunk-EGU5KB7V.js";
8
+ } from "../chunk-4SBGSJNT.js";
9
+ import "../chunk-DCYKSYAT.js";
9
10
  export {
10
11
  CacheManager,
11
12
  FileStore,