@teamscala/service-boot 0.23.425 → 0.23.427

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.
@@ -87,6 +87,7 @@ export async function buildMinimalApp(
87
87
  serviceSlug: string,
88
88
  databaseUrl: string,
89
89
  upgradeWebSocket: import("./register-ws-routes.ts").UpgradeWebSocket,
90
+ getSharedDb?: () => unknown,
90
91
  ): Promise<MinimalAppResult> {
91
92
  const log = getAppLogger();
92
93
  const blockPackages = ((config as { block_packages?: string[] })
@@ -226,7 +227,7 @@ export async function buildMinimalApp(
226
227
  // serial compilation). Route registration happens HERE (after the auth gate),
227
228
  // preserving the gate-vs-daemon-route ordering.
228
229
  const mountRegistry = await runStep("mount-server-packages", () =>
229
- mountServerPackages(app, config, serviceSlug),
230
+ mountServerPackages(app, config, serviceSlug, getSharedDb),
230
231
  );
231
232
  // Ensure the speculative preload finished before proceeding (it populates
232
233
  // the same cache mountServerPackages just consumed; awaiting now is a no-op
package/src/ui-service.ts CHANGED
@@ -42,6 +42,8 @@ export interface UiServiceBootResult {
42
42
  export interface PageServerDeps {
43
43
  createPageHandler: import("./types.ts").CreatePageHandler;
44
44
  upgradeWebSocket?: UpgradeWebSocket;
45
+ /** Shared Prisma client threaded to mounts via ctx.getSharedDb (optional). */
46
+ getSharedDb?: () => unknown;
45
47
  }
46
48
 
47
49
  /**
@@ -72,6 +74,7 @@ export async function bootUiService(
72
74
  serviceSlug,
73
75
  databaseUrl,
74
76
  deps.upgradeWebSocket!,
77
+ deps.getSharedDb,
75
78
  );
76
79
 
77
80
  // Resolve the listen port through the SHARED resolver (`resolveServicePort`),