@playcademy/sandbox 0.1.0-beta.11 → 0.1.0-beta.13

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.
@@ -21,9 +21,9 @@ export declare function seedCurrentProjectGame(db: Awaited<ReturnType<typeof set
21
21
  id: string;
22
22
  createdAt: Date | null;
23
23
  updatedAt: Date | null;
24
- displayName: string;
25
24
  developerId: string | null;
26
25
  slug: string;
26
+ displayName: string;
27
27
  version: string;
28
28
  assetBundleBase: string;
29
29
  platform: "web" | "godot" | "unity";
@@ -0,0 +1,16 @@
1
+ import { createRealtimeServer } from '@playcademy/realtime/server';
2
+ import type { ServerOptions } from '../types';
3
+ /**
4
+ * Starts the realtime server with sandbox-specific configuration.
5
+ *
6
+ * This function handles:
7
+ * - Conditional startup based on options
8
+ * - Sandbox-specific authentication secrets
9
+ * - Quiet mode for clean embedded logging
10
+ * - Error handling with graceful degradation
11
+ *
12
+ * @param realtimeOptions - Realtime configuration from ServerOptions
13
+ * @param betterAuthSecret - Authentication secret for realtime server
14
+ * @returns Promise resolving to realtime server instance or null
15
+ */
16
+ export declare function startRealtimeServer(realtimeOptions: NonNullable<ServerOptions['realtime']>, betterAuthSecret: string): Promise<Awaited<ReturnType<typeof createRealtimeServer>> | null>;
package/dist/pglite.data CHANGED
Binary file
package/dist/pglite.wasm CHANGED
Binary file
@@ -0,0 +1,3 @@
1
+ import { Hono } from 'hono';
2
+ import type { HonoEnv } from '../types';
3
+ export declare const characterRouter: Hono<HonoEnv, import("hono/types").BlankSchema, "/">;
@@ -10,3 +10,7 @@ export { mapRouter, mapsRouter } from './maps';
10
10
  export { shopListingsRouter } from './shop-listings';
11
11
  export { devRouter } from './dev';
12
12
  export { levelsRouter } from './levels';
13
+ export { leaderboardRouter } from './leaderboard';
14
+ export { realtimeRouter } from './realtime';
15
+ export { characterRouter } from './character';
16
+ export { spriteRouter } from './sprite';
@@ -0,0 +1,3 @@
1
+ import { Hono } from 'hono';
2
+ import type { HonoEnv } from '../types';
3
+ export declare const leaderboardRouter: Hono<HonoEnv, import("hono/types").BlankSchema, "/">;
@@ -0,0 +1,3 @@
1
+ import { Hono } from 'hono';
2
+ import type { HonoEnv } from '../types';
3
+ export declare const realtimeRouter: Hono<HonoEnv, import("hono/types").BlankSchema, "/">;
@@ -0,0 +1,3 @@
1
+ import { Hono } from 'hono';
2
+ import type { HonoEnv } from '../types';
3
+ export declare const spriteRouter: Hono<HonoEnv, import("hono/types").BlankSchema, "/">;
package/dist/server.d.ts CHANGED
@@ -1,3 +1,7 @@
1
1
  import type { ServerOptions } from './types';
2
- export declare function startServer(options: ServerOptions): Promise<import("@hono/node-server").ServerType>;
2
+ export declare function startServer(options: ServerOptions): Promise<{
3
+ main: import("@hono/node-server").ServerType;
4
+ realtime: Bun.Server | null;
5
+ stop: () => void;
6
+ }>;
3
7
  export declare const version: string;