@air-jam/sdk 0.9.2 → 0.9.3

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 (245) hide show
  1. package/README.md +25 -45
  2. package/dist/{agent-tooling-BSMGBix9.d.cts → agent-contract-CD2QnbBJ.d.cts} +1 -1
  3. package/dist/{agent-tooling-BSMGBix9.d.ts → agent-contract-CD2QnbBJ.d.ts} +1 -1
  4. package/dist/agent-tooling.cjs +139 -0
  5. package/dist/agent-tooling.cjs.map +1 -1
  6. package/dist/agent-tooling.d.cts +25 -1
  7. package/dist/agent-tooling.d.ts +25 -1
  8. package/dist/agent-tooling.js +138 -0
  9. package/dist/agent-tooling.js.map +1 -1
  10. package/dist/air-jam-context-BlLPvCup.d.cts +175 -0
  11. package/dist/air-jam-context-DTsxF-tP.d.ts +175 -0
  12. package/dist/arcade/bridge/controller.cjs +214 -194
  13. package/dist/arcade/bridge/controller.cjs.map +1 -1
  14. package/dist/arcade/bridge/controller.d.cts +2 -2
  15. package/dist/arcade/bridge/controller.d.ts +2 -2
  16. package/dist/arcade/bridge/controller.js +6 -4
  17. package/dist/arcade/bridge/host.cjs +1 -1
  18. package/dist/arcade/bridge/host.cjs.map +1 -1
  19. package/dist/arcade/bridge/host.d.cts +3 -3
  20. package/dist/arcade/bridge/host.d.ts +3 -3
  21. package/dist/arcade/bridge/host.js +4 -3
  22. package/dist/arcade/bridge/iframe.cjs +1 -1
  23. package/dist/arcade/bridge/iframe.cjs.map +1 -1
  24. package/dist/arcade/bridge/iframe.d.cts +2 -2
  25. package/dist/arcade/bridge/iframe.d.ts +2 -2
  26. package/dist/arcade/bridge/iframe.js +4 -4
  27. package/dist/arcade/bridge.cjs +251 -231
  28. package/dist/arcade/bridge.cjs.map +1 -1
  29. package/dist/arcade/bridge.d.cts +4 -4
  30. package/dist/arcade/bridge.d.ts +4 -4
  31. package/dist/arcade/bridge.js +9 -7
  32. package/dist/arcade/host.cjs +145 -122
  33. package/dist/arcade/host.cjs.map +1 -1
  34. package/dist/arcade/host.d.cts +5 -4
  35. package/dist/arcade/host.d.ts +5 -4
  36. package/dist/arcade/host.js +6 -5
  37. package/dist/arcade/runtime.cjs +6499 -0
  38. package/dist/arcade/runtime.cjs.map +1 -0
  39. package/dist/arcade/runtime.d.cts +22 -0
  40. package/dist/arcade/runtime.d.ts +22 -0
  41. package/dist/arcade/runtime.js +32 -0
  42. package/dist/arcade/runtime.js.map +1 -0
  43. package/dist/arcade/surface.cjs +9 -0
  44. package/dist/arcade/surface.cjs.map +1 -1
  45. package/dist/arcade/surface.d.cts +6 -1
  46. package/dist/arcade/surface.d.ts +6 -1
  47. package/dist/arcade/surface.js +6 -2
  48. package/dist/arcade/url.d.cts +4 -4
  49. package/dist/arcade/url.d.ts +4 -4
  50. package/dist/arcade/url.js +5 -5
  51. package/dist/arcade.cjs +322 -292
  52. package/dist/arcade.cjs.map +1 -1
  53. package/dist/arcade.d.cts +6 -6
  54. package/dist/arcade.d.ts +6 -6
  55. package/dist/arcade.js +35 -29
  56. package/dist/{chunk-Q4UALQO4.js → chunk-2SZ2YYGJ.js} +8 -16
  57. package/dist/chunk-2SZ2YYGJ.js.map +1 -0
  58. package/dist/{chunk-KOB73SPD.js → chunk-32RSSFSF.js} +10 -12
  59. package/dist/chunk-32RSSFSF.js.map +1 -0
  60. package/dist/chunk-3YMUAKPU.js +10 -0
  61. package/dist/chunk-3YMUAKPU.js.map +1 -0
  62. package/dist/chunk-56DM2KEW.js +14 -0
  63. package/dist/chunk-56DM2KEW.js.map +1 -0
  64. package/dist/chunk-CM53YLT5.js +59 -0
  65. package/dist/chunk-CM53YLT5.js.map +1 -0
  66. package/dist/{chunk-DY67S3LR.js → chunk-CV3PBXPT.js} +3 -3
  67. package/dist/chunk-D4VDEVTZ.js +80 -0
  68. package/dist/chunk-D4VDEVTZ.js.map +1 -0
  69. package/dist/{chunk-E5PVHEAX.js → chunk-FUA6EMSJ.js} +24 -60
  70. package/dist/chunk-FUA6EMSJ.js.map +1 -0
  71. package/dist/chunk-GMLU7RI5.js +70 -0
  72. package/dist/chunk-GMLU7RI5.js.map +1 -0
  73. package/dist/{chunk-NCL6WJCL.js → chunk-IG6GZZSS.js} +32 -1
  74. package/dist/chunk-IG6GZZSS.js.map +1 -0
  75. package/dist/{chunk-EDRQIOCV.js → chunk-ITMQSBTH.js} +3 -2
  76. package/dist/chunk-ITMQSBTH.js.map +1 -0
  77. package/dist/{chunk-32NYL7XI.js → chunk-J5MCII33.js} +189 -108
  78. package/dist/chunk-J5MCII33.js.map +1 -0
  79. package/dist/{chunk-ZLPL2R3R.js → chunk-K4OZ54UD.js} +7 -34
  80. package/dist/chunk-K4OZ54UD.js.map +1 -0
  81. package/dist/{chunk-6CMB356F.js → chunk-LIHEEAVE.js} +9 -11
  82. package/dist/chunk-LIHEEAVE.js.map +1 -0
  83. package/dist/{chunk-7OTQTT6H.js → chunk-MIMPMB7O.js} +2 -2
  84. package/dist/{chunk-NUJBMV3O.js → chunk-O6X7FJ6N.js} +29 -32
  85. package/dist/chunk-O6X7FJ6N.js.map +1 -0
  86. package/dist/chunk-PSUYTD2L.js +16 -0
  87. package/dist/chunk-PSUYTD2L.js.map +1 -0
  88. package/dist/{chunk-M4DKOI42.js → chunk-QO4KFUEI.js} +2 -2
  89. package/dist/chunk-QTLYZADF.js +125 -0
  90. package/dist/chunk-QTLYZADF.js.map +1 -0
  91. package/dist/chunk-TTQDHKXL.js +3017 -0
  92. package/dist/chunk-TTQDHKXL.js.map +1 -0
  93. package/dist/chunk-UCPY7UJC.js +8 -0
  94. package/dist/chunk-UCPY7UJC.js.map +1 -0
  95. package/dist/{chunk-JO2HR5PV.js → chunk-UPV6YWT5.js} +4 -4
  96. package/dist/chunk-X35LLCWV.js +65 -0
  97. package/dist/chunk-X35LLCWV.js.map +1 -0
  98. package/dist/{controller-DxVchfiA.d.ts → controller-PZEM_1cH.d.ts} +6 -2
  99. package/dist/{controller-Bod8YYr1.d.cts → controller-vj82tKm4.d.cts} +6 -2
  100. package/dist/{dev-log-events-CVAM29hx.d.cts → dev-log-events-BCJKmygo.d.cts} +0 -3
  101. package/dist/{dev-log-events-CVAM29hx.d.ts → dev-log-events-BCJKmygo.d.ts} +0 -3
  102. package/dist/{host-8hmq_Sgc.d.cts → host-B9pRy0Aa.d.cts} +20 -7
  103. package/dist/{host-Cw-N6e-5.d.ts → host-DylGsX7p.d.ts} +20 -7
  104. package/dist/index.cjs +4260 -3870
  105. package/dist/index.cjs.map +1 -1
  106. package/dist/index.d.cts +40 -649
  107. package/dist/index.d.ts +40 -649
  108. package/dist/index.js +1030 -3727
  109. package/dist/index.js.map +1 -1
  110. package/dist/metadata.cjs.map +1 -1
  111. package/dist/metadata.d.cts +2 -3
  112. package/dist/metadata.d.ts +2 -3
  113. package/dist/metadata.js.map +1 -1
  114. package/dist/{notices-CnGaaS8B.d.ts → notices-C4bao3oi.d.ts} +1 -1
  115. package/dist/{notices-NyDM5Mtz.d.cts → notices-DNdOjwtj.d.cts} +1 -1
  116. package/dist/platform-machine.cjs +115 -15
  117. package/dist/platform-machine.cjs.map +1 -1
  118. package/dist/platform-machine.d.cts +1338 -65
  119. package/dist/platform-machine.d.ts +1338 -65
  120. package/dist/platform-machine.js +88 -15
  121. package/dist/platform-machine.js.map +1 -1
  122. package/dist/{platform-settings-cuor3i11.d.cts → platform-settings-DUWs4JTy.d.cts} +1 -1
  123. package/dist/{platform-settings-cuor3i11.d.ts → platform-settings-DUWs4JTy.d.ts} +1 -1
  124. package/dist/preview.cjs +301 -253
  125. package/dist/preview.cjs.map +1 -1
  126. package/dist/preview.d.cts +6 -4
  127. package/dist/preview.d.ts +6 -4
  128. package/dist/preview.js +31 -21
  129. package/dist/preview.js.map +1 -1
  130. package/dist/protocol.cjs +282 -167
  131. package/dist/protocol.cjs.map +1 -1
  132. package/dist/protocol.d.cts +74 -21
  133. package/dist/protocol.d.ts +74 -21
  134. package/dist/protocol.js +28 -10
  135. package/dist/release.cjs +37 -0
  136. package/dist/release.cjs.map +1 -1
  137. package/dist/release.d.cts +27 -1
  138. package/dist/release.d.ts +27 -1
  139. package/dist/release.js +13 -1
  140. package/dist/runtime-control.cjs +46 -0
  141. package/dist/runtime-control.cjs.map +1 -0
  142. package/dist/runtime-control.d.cts +17 -0
  143. package/dist/runtime-control.d.ts +17 -0
  144. package/dist/runtime-control.js +8 -0
  145. package/dist/runtime-control.js.map +1 -0
  146. package/dist/runtime-inspection.cjs +655 -0
  147. package/dist/runtime-inspection.cjs.map +1 -0
  148. package/dist/runtime-inspection.d.cts +47 -0
  149. package/dist/runtime-inspection.d.ts +47 -0
  150. package/dist/runtime-inspection.js +30 -0
  151. package/dist/runtime-inspection.js.map +1 -0
  152. package/dist/runtime-reporting-pe-eryVz.d.cts +27 -0
  153. package/dist/runtime-reporting-pe-eryVz.d.ts +27 -0
  154. package/dist/signals-ZHftIKuc.d.cts +33 -0
  155. package/dist/signals-ZHftIKuc.d.ts +33 -0
  156. package/dist/{standard-match-phase-BucA5dYo.d.ts → standard-match-phase-BzSgBYFg.d.ts} +2 -2
  157. package/dist/{standard-match-phase-U2ra8J-0.d.cts → standard-match-phase-CvJUW8Oe.d.cts} +2 -2
  158. package/dist/{sync-B6QsNrXz.d.cts → sync-xtPfWhif.d.cts} +1 -45
  159. package/dist/{sync-B6QsNrXz.d.ts → sync-xtPfWhif.d.ts} +1 -45
  160. package/dist/ui.cjs +593 -610
  161. package/dist/ui.cjs.map +1 -1
  162. package/dist/ui.d.cts +3 -3
  163. package/dist/ui.d.ts +3 -3
  164. package/dist/ui.js +16 -11
  165. package/dist/ui.js.map +1 -1
  166. package/dist/use-air-jam-host-COLy8t4s.d.ts +403 -0
  167. package/dist/use-air-jam-host-DM-ybB3C.d.cts +403 -0
  168. package/package.json +55 -21
  169. package/src/agent/agent-contract-conformance.ts +201 -0
  170. package/src/agent-tooling.ts +5 -0
  171. package/src/arcade/runtime.ts +6 -0
  172. package/src/arcade/surface.ts +1 -0
  173. package/src/context/air-jam-context.tsx +8 -8
  174. package/src/context/socket-manager.ts +0 -7
  175. package/src/dev/browser-log-sink.ts +12 -15
  176. package/src/events.ts +0 -5
  177. package/src/hooks/internal/use-controller-runtime-api.ts +110 -21
  178. package/src/hooks/internal/use-host-runtime-api.ts +306 -49
  179. package/src/hooks/use-air-jam-controller.ts +9 -9
  180. package/src/hooks/use-air-jam-host.ts +7 -7
  181. package/src/hooks/use-get-input.ts +1 -1
  182. package/src/hooks/use-host-arcade-restore.ts +6 -1
  183. package/src/index.ts +6 -25
  184. package/src/metadata/manifest.ts +2 -3
  185. package/src/platform-machine.ts +109 -12
  186. package/src/preview/workspace.tsx +48 -29
  187. package/src/protocol/arcade-platform-actions.ts +19 -1
  188. package/src/protocol/controller.ts +8 -2
  189. package/src/protocol/dev-log-events.ts +0 -3
  190. package/src/protocol/host-grant.ts +58 -140
  191. package/src/protocol/host.ts +21 -9
  192. package/src/protocol/runtime-reporting.ts +32 -0
  193. package/src/protocol/signed-envelope.ts +176 -0
  194. package/src/protocol/socket-events.ts +8 -10
  195. package/src/protocol/sync.ts +0 -16
  196. package/src/protocol.ts +2 -0
  197. package/src/release.ts +32 -0
  198. package/src/runtime/admission-retry.ts +62 -0
  199. package/src/runtime/air-jam-config.ts +6 -16
  200. package/src/runtime/air-jam-error-boundary.tsx +46 -2
  201. package/src/runtime/bridge-envelope-args.ts +21 -0
  202. package/src/runtime/connected-runtime-error-boundary.tsx +31 -0
  203. package/src/runtime/contracts/control.ts +107 -59
  204. package/src/runtime/controller-bridge.ts +12 -24
  205. package/src/runtime/controller-identity.ts +55 -27
  206. package/src/runtime/controller-realtime-client.ts +8 -47
  207. package/src/runtime/create-air-jam-app.tsx +21 -13
  208. package/src/runtime/host-bridge.ts +16 -24
  209. package/src/runtime/local-reference-game-identity.ts +13 -0
  210. package/src/runtime/runtime-session-params.ts +4 -64
  211. package/src/runtime-control.ts +3 -8
  212. package/src/settings/platform-settings-runtime.tsx +1 -6
  213. package/src/settings/platform-settings.ts +7 -38
  214. package/src/state/connection-store.ts +13 -6
  215. package/src/store/create-air-jam-store.ts +59 -7
  216. package/src/utils/ids.ts +32 -5
  217. package/dist/capabilities.cjs +0 -39
  218. package/dist/capabilities.cjs.map +0 -1
  219. package/dist/capabilities.d.cts +0 -31
  220. package/dist/capabilities.d.ts +0 -31
  221. package/dist/capabilities.js +0 -12
  222. package/dist/capabilities.js.map +0 -1
  223. package/dist/chunk-32NYL7XI.js.map +0 -1
  224. package/dist/chunk-6CMB356F.js.map +0 -1
  225. package/dist/chunk-CVYR5RJT.js +0 -184
  226. package/dist/chunk-CVYR5RJT.js.map +0 -1
  227. package/dist/chunk-E5PVHEAX.js.map +0 -1
  228. package/dist/chunk-EDRQIOCV.js.map +0 -1
  229. package/dist/chunk-KOB73SPD.js.map +0 -1
  230. package/dist/chunk-NCL6WJCL.js.map +0 -1
  231. package/dist/chunk-NUJBMV3O.js.map +0 -1
  232. package/dist/chunk-Q4UALQO4.js.map +0 -1
  233. package/dist/chunk-ZLPL2R3R.js.map +0 -1
  234. package/dist/chunk-ZTQ5SP4H.js +0 -9
  235. package/dist/chunk-ZTQ5SP4H.js.map +0 -1
  236. package/src/capabilities/manifest.ts +0 -71
  237. package/src/capabilities.ts +0 -12
  238. package/src/hooks/internal/use-runtime-control-contract.ts +0 -15
  239. package/src/hooks/internal/use-runtime-observability-contract.ts +0 -24
  240. package/src/runtime/contracts/observability.ts +0 -94
  241. package/src/runtime-observability.ts +0 -9
  242. /package/dist/{chunk-DY67S3LR.js.map → chunk-CV3PBXPT.js.map} +0 -0
  243. /package/dist/{chunk-7OTQTT6H.js.map → chunk-MIMPMB7O.js.map} +0 -0
  244. /package/dist/{chunk-M4DKOI42.js.map → chunk-QO4KFUEI.js.map} +0 -0
  245. /package/dist/{chunk-JO2HR5PV.js.map → chunk-UPV6YWT5.js.map} +0 -0
@@ -0,0 +1,22 @@
1
+ import { ReactNode, JSX } from 'react';
2
+ import { z } from 'zod';
3
+ import { A as AirJamProviderProps } from '../air-jam-context-BlLPvCup.cjs';
4
+ import { A as AirJamControllerOptions, a as AirJamHostOptions } from '../use-air-jam-host-DM-ybB3C.cjs';
5
+ import '../host-B9pRy0Aa.cjs';
6
+ import '../controller-vj82tKm4.cjs';
7
+ import '../platform-settings-DUWs4JTy.cjs';
8
+ import '../notices-DNdOjwtj.cjs';
9
+ import '../runtime-topology.cjs';
10
+ import '../realtime-client-Cu8yVJFw.cjs';
11
+ import '../signals-ZHftIKuc.cjs';
12
+
13
+ type AirJamHostRuntimeProps<TSchema extends z.ZodSchema = z.ZodSchema> = AirJamProviderProps<TSchema> & AirJamHostOptions & {
14
+ children: ReactNode;
15
+ };
16
+ type AirJamControllerRuntimeProps = AirJamProviderProps & AirJamControllerOptions & {
17
+ children: ReactNode;
18
+ };
19
+ declare const AirJamHostRuntime: <TSchema extends z.ZodSchema = z.ZodSchema>({ children, roomId, onPlayerJoin, onPlayerLeave, ...providerProps }: AirJamHostRuntimeProps<TSchema>) => JSX.Element;
20
+ declare const AirJamControllerRuntime: ({ children, roomId, nickname, avatarId, controllerId, capabilityToken, onState, ...providerProps }: AirJamControllerRuntimeProps) => JSX.Element;
21
+
22
+ export { AirJamControllerRuntime, type AirJamControllerRuntimeProps, AirJamHostRuntime, type AirJamHostRuntimeProps };
@@ -0,0 +1,22 @@
1
+ import { ReactNode, JSX } from 'react';
2
+ import { z } from 'zod';
3
+ import { A as AirJamProviderProps } from '../air-jam-context-DTsxF-tP.js';
4
+ import { A as AirJamControllerOptions, a as AirJamHostOptions } from '../use-air-jam-host-COLy8t4s.js';
5
+ import '../host-DylGsX7p.js';
6
+ import '../controller-PZEM_1cH.js';
7
+ import '../platform-settings-DUWs4JTy.js';
8
+ import '../notices-C4bao3oi.js';
9
+ import '../runtime-topology.js';
10
+ import '../realtime-client-Cu8yVJFw.js';
11
+ import '../signals-ZHftIKuc.js';
12
+
13
+ type AirJamHostRuntimeProps<TSchema extends z.ZodSchema = z.ZodSchema> = AirJamProviderProps<TSchema> & AirJamHostOptions & {
14
+ children: ReactNode;
15
+ };
16
+ type AirJamControllerRuntimeProps = AirJamProviderProps & AirJamControllerOptions & {
17
+ children: ReactNode;
18
+ };
19
+ declare const AirJamHostRuntime: <TSchema extends z.ZodSchema = z.ZodSchema>({ children, roomId, onPlayerJoin, onPlayerLeave, ...providerProps }: AirJamHostRuntimeProps<TSchema>) => JSX.Element;
20
+ declare const AirJamControllerRuntime: ({ children, roomId, nickname, avatarId, controllerId, capabilityToken, onState, ...providerProps }: AirJamControllerRuntimeProps) => JSX.Element;
21
+
22
+ export { AirJamControllerRuntime, type AirJamControllerRuntimeProps, AirJamHostRuntime, type AirJamHostRuntimeProps };
@@ -0,0 +1,32 @@
1
+ import {
2
+ AirJamControllerRuntime,
3
+ AirJamHostRuntime
4
+ } from "../chunk-TTQDHKXL.js";
5
+ import "../chunk-GMLU7RI5.js";
6
+ import "../chunk-D4VDEVTZ.js";
7
+ import "../chunk-X35LLCWV.js";
8
+ import "../chunk-YXHH3MQT.js";
9
+ import "../chunk-LIHEEAVE.js";
10
+ import "../chunk-32RSSFSF.js";
11
+ import "../chunk-56DM2KEW.js";
12
+ import "../chunk-X24K52DG.js";
13
+ import "../chunk-FUA6EMSJ.js";
14
+ import "../chunk-CM53YLT5.js";
15
+ import "../chunk-2SZ2YYGJ.js";
16
+ import "../chunk-3YMUAKPU.js";
17
+ import "../chunk-BE6Z4SIT.js";
18
+ import "../chunk-MIMPMB7O.js";
19
+ import "../chunk-CV3PBXPT.js";
20
+ import "../chunk-O6X7FJ6N.js";
21
+ import "../chunk-W2VK36RO.js";
22
+ import "../chunk-UWJOIVON.js";
23
+ import "../chunk-LIXPF4P6.js";
24
+ import "../chunk-J5MCII33.js";
25
+ import "../chunk-3USU7GY2.js";
26
+ import "../chunk-K4OZ54UD.js";
27
+ import "../chunk-UCPY7UJC.js";
28
+ export {
29
+ AirJamControllerRuntime,
30
+ AirJamHostRuntime
31
+ };
32
+ //# sourceMappingURL=runtime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -26,6 +26,8 @@ __export(surface_exports, {
26
26
  arcadeSurfaceRuntimeUrlParams: () => arcadeSurfaceRuntimeUrlParams,
27
27
  embeddedReplicatedStoreDomainFromArcadeIdentity: () => embeddedReplicatedStoreDomainFromArcadeIdentity,
28
28
  isArcadeSurfaceMismatch: () => isArcadeSurfaceMismatch,
29
+ localReferenceGameId: () => localReferenceGameId,
30
+ localReferenceSourceGameId: () => localReferenceSourceGameId,
29
31
  parseOptionalArcadeSurfaceFromSearchParams: () => parseOptionalArcadeSurfaceFromSearchParams,
30
32
  resolveImplicitReplicatedStoreDomainFromSearchParams: () => resolveImplicitReplicatedStoreDomainFromSearchParams,
31
33
  resolveImplicitReplicatedStoreDomainFromWindow: () => resolveImplicitReplicatedStoreDomainFromWindow
@@ -98,6 +100,11 @@ var arcadeSurfaceRuntimeIdentitySchema = import_zod.z.object({
98
100
  kind: import_zod.z.enum(["browser", "game"]),
99
101
  gameId: import_zod.z.string().nullable()
100
102
  }).strict();
103
+
104
+ // src/runtime/local-reference-game-identity.ts
105
+ var LOCAL_REFERENCE_GAME_PREFIX = "local-reference-";
106
+ var localReferenceGameId = (sourceGameId) => `${LOCAL_REFERENCE_GAME_PREFIX}${sourceGameId}`;
107
+ var localReferenceSourceGameId = (runtimeGameId) => runtimeGameId.startsWith(LOCAL_REFERENCE_GAME_PREFIX) ? runtimeGameId.slice(LOCAL_REFERENCE_GAME_PREFIX.length) || null : null;
101
108
  // Annotate the CommonJS export names for ESM import in node:
102
109
  0 && (module.exports = {
103
110
  AIRJAM_STORE_DOMAIN_URL_PARAM,
@@ -106,6 +113,8 @@ var arcadeSurfaceRuntimeIdentitySchema = import_zod.z.object({
106
113
  arcadeSurfaceRuntimeUrlParams,
107
114
  embeddedReplicatedStoreDomainFromArcadeIdentity,
108
115
  isArcadeSurfaceMismatch,
116
+ localReferenceGameId,
117
+ localReferenceSourceGameId,
109
118
  parseOptionalArcadeSurfaceFromSearchParams,
110
119
  resolveImplicitReplicatedStoreDomainFromSearchParams,
111
120
  resolveImplicitReplicatedStoreDomainFromWindow
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/arcade/surface.ts","../../src/runtime/arcade-bridge-request-surface.ts","../../src/store/air-jam-store-domain-constants.ts","../../src/runtime/arcade-runtime-url.ts","../../src/runtime/arcade-surface-identity.ts"],"sourcesContent":["export * from \"../runtime/arcade-bridge-request-surface\";\nexport * from \"../runtime/arcade-runtime-url\";\nexport * from \"../runtime/arcade-surface-identity\";\nexport { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN } from \"../store/air-jam-store-domain-constants\";\n","import type { ArcadeSurfaceRuntimeIdentity } from \"./arcade-surface-identity\";\n\n/**\n * Returns true when the iframe surface identity does not match the parent's active surface.\n */\nexport const isArcadeSurfaceMismatch = (\n active: ArcadeSurfaceRuntimeIdentity,\n request: ArcadeSurfaceRuntimeIdentity,\n): boolean => {\n return (\n request.epoch !== active.epoch ||\n request.kind !== active.kind ||\n request.gameId !== active.gameId\n );\n};\n","/** Replicated game / app state when a single default store is used (standalone or non-embedded). */\nexport const AIR_JAM_DEFAULT_STORE_DOMAIN = \"default\";\n/** Arcade platform shell (`ArcadeSurfaceState`) — isolates from game `default` domain in the same room. */\nexport const AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN = \"arcade.surface\";\n","import { AIR_JAM_DEFAULT_STORE_DOMAIN } from \"../store/air-jam-store-domain-constants\";\nimport type { ArcadeSurfaceRuntimeIdentity } from \"./arcade-surface-identity\";\n\n/**\n * Query param for the canonical replicated store domain in embedded runtimes.\n * When set, {@link resolveImplicitReplicatedStoreDomainFromSearchParams} prefers it over derivation from `aj_arcade_*`.\n */\nexport const AIRJAM_STORE_DOMAIN_URL_PARAM = \"aj_store_domain\";\n\nconst clampStoreDomain = (value: string): string =>\n value.length > 128 ? value.slice(0, 128) : value;\n\n/**\n * Stable replicated store domain for an embedded Arcade surface identity (epoch-bound).\n * Used for host/controller `createAirJamStore` in iframes so shell `default` and prior runs do not collide.\n */\nexport const embeddedReplicatedStoreDomainFromArcadeIdentity = (\n identity: ArcadeSurfaceRuntimeIdentity,\n): string => {\n if (identity.kind === \"game\") {\n const gameKey = identity.gameId ?? \"_\";\n return clampStoreDomain(`aj.embedded.game:${identity.epoch}:${gameKey}`);\n }\n return clampStoreDomain(`aj.embedded.browser:${identity.epoch}`);\n};\n\n/**\n * Query params used to pass {@link ArcadeSurfaceRuntimeIdentity} and replicated store domain into embedded iframes.\n */\nexport const arcadeSurfaceRuntimeUrlParams = (\n identity: ArcadeSurfaceRuntimeIdentity,\n): Record<string, string> => ({\n aj_arcade_epoch: String(identity.epoch),\n aj_arcade_kind: identity.kind,\n ...(identity.gameId != null ? { aj_arcade_game_id: identity.gameId } : {}),\n [AIRJAM_STORE_DOMAIN_URL_PARAM]:\n embeddedReplicatedStoreDomainFromArcadeIdentity(identity),\n});\n\nexport const parseOptionalArcadeSurfaceFromSearchParams = (\n params: URLSearchParams,\n): ArcadeSurfaceRuntimeIdentity | undefined => {\n const epochStr = params.get(\"aj_arcade_epoch\");\n const kind = params.get(\"aj_arcade_kind\");\n if (epochStr === null || (kind !== \"browser\" && kind !== \"game\")) {\n return undefined;\n }\n\n const epoch = Number(epochStr);\n if (!Number.isFinite(epoch) || epoch < 0 || !Number.isInteger(epoch)) {\n return undefined;\n }\n\n const gameIdRaw = params.get(\"aj_arcade_game_id\");\n const gameId =\n kind === \"browser\"\n ? null\n : gameIdRaw && gameIdRaw.length > 0\n ? gameIdRaw\n : null;\n\n return { epoch, kind, gameId };\n};\n\n/**\n * Resolves the implicit networked store domain from the current URL (embedded) or {@link AIR_JAM_DEFAULT_STORE_DOMAIN}.\n * Prefer {@link AIRJAM_STORE_DOMAIN_URL_PARAM} when present; otherwise derive from `aj_arcade_*` when valid.\n */\nexport const resolveImplicitReplicatedStoreDomainFromSearchParams = (\n params: URLSearchParams,\n): string => {\n const explicit = params.get(AIRJAM_STORE_DOMAIN_URL_PARAM)?.trim();\n if (explicit && explicit.length > 0) {\n return clampStoreDomain(explicit);\n }\n\n const surface = parseOptionalArcadeSurfaceFromSearchParams(params);\n if (surface) {\n return embeddedReplicatedStoreDomainFromArcadeIdentity(surface);\n }\n\n return AIR_JAM_DEFAULT_STORE_DOMAIN;\n};\n\n/**\n * Browser-only resolver for implicit store domain (SSR-safe: returns default without `window`).\n */\nexport const resolveImplicitReplicatedStoreDomainFromWindow = (): string => {\n if (typeof window === \"undefined\") {\n return AIR_JAM_DEFAULT_STORE_DOMAIN;\n }\n return resolveImplicitReplicatedStoreDomainFromSearchParams(\n new URLSearchParams(window.location.search),\n );\n};\n","import { z } from \"zod\";\n\n/**\n * Minimum Arcade surface identity for embedded runtime bridge attach (see docs/systems/arcade-surface-contract.md).\n */\nexport const arcadeSurfaceRuntimeIdentitySchema = z\n .object({\n epoch: z.number().int().nonnegative(),\n kind: z.enum([\"browser\", \"game\"]),\n gameId: z.string().nullable(),\n })\n .strict();\n\nexport type ArcadeSurfaceRuntimeIdentity = z.infer<\n typeof arcadeSurfaceRuntimeIdentitySchema\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,IAAM,0BAA0B,CACrC,QACA,YACY;AACZ,SACE,QAAQ,UAAU,OAAO,SACzB,QAAQ,SAAS,OAAO,QACxB,QAAQ,WAAW,OAAO;AAE9B;;;ACbO,IAAM,+BAA+B;AAErC,IAAM,sCAAsC;;;ACI5C,IAAM,gCAAgC;AAE7C,IAAM,mBAAmB,CAAC,UACxB,MAAM,SAAS,MAAM,MAAM,MAAM,GAAG,GAAG,IAAI;AAMtC,IAAM,kDAAkD,CAC7D,aACW;AACX,MAAI,SAAS,SAAS,QAAQ;AAC5B,UAAM,UAAU,SAAS,UAAU;AACnC,WAAO,iBAAiB,oBAAoB,SAAS,KAAK,IAAI,OAAO,EAAE;AAAA,EACzE;AACA,SAAO,iBAAiB,uBAAuB,SAAS,KAAK,EAAE;AACjE;AAKO,IAAM,gCAAgC,CAC3C,cAC4B;AAAA,EAC5B,iBAAiB,OAAO,SAAS,KAAK;AAAA,EACtC,gBAAgB,SAAS;AAAA,EACzB,GAAI,SAAS,UAAU,OAAO,EAAE,mBAAmB,SAAS,OAAO,IAAI,CAAC;AAAA,EACxE,CAAC,6BAA6B,GAC5B,gDAAgD,QAAQ;AAC5D;AAEO,IAAM,6CAA6C,CACxD,WAC6C;AAC7C,QAAM,WAAW,OAAO,IAAI,iBAAiB;AAC7C,QAAM,OAAO,OAAO,IAAI,gBAAgB;AACxC,MAAI,aAAa,QAAS,SAAS,aAAa,SAAS,QAAS;AAChE,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,OAAO,QAAQ;AAC7B,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,QAAQ,KAAK,CAAC,OAAO,UAAU,KAAK,GAAG;AACpE,WAAO;AAAA,EACT;AAEA,QAAM,YAAY,OAAO,IAAI,mBAAmB;AAChD,QAAM,SACJ,SAAS,YACL,OACA,aAAa,UAAU,SAAS,IAC9B,YACA;AAER,SAAO,EAAE,OAAO,MAAM,OAAO;AAC/B;AAMO,IAAM,uDAAuD,CAClE,WACW;AACX,QAAM,WAAW,OAAO,IAAI,6BAA6B,GAAG,KAAK;AACjE,MAAI,YAAY,SAAS,SAAS,GAAG;AACnC,WAAO,iBAAiB,QAAQ;AAAA,EAClC;AAEA,QAAM,UAAU,2CAA2C,MAAM;AACjE,MAAI,SAAS;AACX,WAAO,gDAAgD,OAAO;AAAA,EAChE;AAEA,SAAO;AACT;AAKO,IAAM,iDAAiD,MAAc;AAC1E,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AACA,SAAO;AAAA,IACL,IAAI,gBAAgB,OAAO,SAAS,MAAM;AAAA,EAC5C;AACF;;;AC9FA,iBAAkB;AAKX,IAAM,qCAAqC,aAC/C,OAAO;AAAA,EACN,OAAO,aAAE,OAAO,EAAE,IAAI,EAAE,YAAY;AAAA,EACpC,MAAM,aAAE,KAAK,CAAC,WAAW,MAAM,CAAC;AAAA,EAChC,QAAQ,aAAE,OAAO,EAAE,SAAS;AAC9B,CAAC,EACA,OAAO;","names":[]}
1
+ {"version":3,"sources":["../../src/arcade/surface.ts","../../src/runtime/arcade-bridge-request-surface.ts","../../src/store/air-jam-store-domain-constants.ts","../../src/runtime/arcade-runtime-url.ts","../../src/runtime/arcade-surface-identity.ts","../../src/runtime/local-reference-game-identity.ts"],"sourcesContent":["export * from \"../runtime/arcade-bridge-request-surface\";\nexport * from \"../runtime/arcade-runtime-url\";\nexport * from \"../runtime/arcade-surface-identity\";\nexport * from \"../runtime/local-reference-game-identity\";\nexport { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN } from \"../store/air-jam-store-domain-constants\";\n","import type { ArcadeSurfaceRuntimeIdentity } from \"./arcade-surface-identity\";\n\n/**\n * Returns true when the iframe surface identity does not match the parent's active surface.\n */\nexport const isArcadeSurfaceMismatch = (\n active: ArcadeSurfaceRuntimeIdentity,\n request: ArcadeSurfaceRuntimeIdentity,\n): boolean => {\n return (\n request.epoch !== active.epoch ||\n request.kind !== active.kind ||\n request.gameId !== active.gameId\n );\n};\n","/** Replicated game / app state when a single default store is used (standalone or non-embedded). */\nexport const AIR_JAM_DEFAULT_STORE_DOMAIN = \"default\";\n/** Arcade platform shell (`ArcadeSurfaceState`) — isolates from game `default` domain in the same room. */\nexport const AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN = \"arcade.surface\";\n","import { AIR_JAM_DEFAULT_STORE_DOMAIN } from \"../store/air-jam-store-domain-constants\";\nimport type { ArcadeSurfaceRuntimeIdentity } from \"./arcade-surface-identity\";\n\n/**\n * Query param for the canonical replicated store domain in embedded runtimes.\n * When set, {@link resolveImplicitReplicatedStoreDomainFromSearchParams} prefers it over derivation from `aj_arcade_*`.\n */\nexport const AIRJAM_STORE_DOMAIN_URL_PARAM = \"aj_store_domain\";\n\nconst clampStoreDomain = (value: string): string =>\n value.length > 128 ? value.slice(0, 128) : value;\n\n/**\n * Stable replicated store domain for an embedded Arcade surface identity (epoch-bound).\n * Used for host/controller `createAirJamStore` in iframes so shell `default` and prior runs do not collide.\n */\nexport const embeddedReplicatedStoreDomainFromArcadeIdentity = (\n identity: ArcadeSurfaceRuntimeIdentity,\n): string => {\n if (identity.kind === \"game\") {\n const gameKey = identity.gameId ?? \"_\";\n return clampStoreDomain(`aj.embedded.game:${identity.epoch}:${gameKey}`);\n }\n return clampStoreDomain(`aj.embedded.browser:${identity.epoch}`);\n};\n\n/**\n * Query params used to pass {@link ArcadeSurfaceRuntimeIdentity} and replicated store domain into embedded iframes.\n */\nexport const arcadeSurfaceRuntimeUrlParams = (\n identity: ArcadeSurfaceRuntimeIdentity,\n): Record<string, string> => ({\n aj_arcade_epoch: String(identity.epoch),\n aj_arcade_kind: identity.kind,\n ...(identity.gameId != null ? { aj_arcade_game_id: identity.gameId } : {}),\n [AIRJAM_STORE_DOMAIN_URL_PARAM]:\n embeddedReplicatedStoreDomainFromArcadeIdentity(identity),\n});\n\nexport const parseOptionalArcadeSurfaceFromSearchParams = (\n params: URLSearchParams,\n): ArcadeSurfaceRuntimeIdentity | undefined => {\n const epochStr = params.get(\"aj_arcade_epoch\");\n const kind = params.get(\"aj_arcade_kind\");\n if (epochStr === null || (kind !== \"browser\" && kind !== \"game\")) {\n return undefined;\n }\n\n const epoch = Number(epochStr);\n if (!Number.isFinite(epoch) || epoch < 0 || !Number.isInteger(epoch)) {\n return undefined;\n }\n\n const gameIdRaw = params.get(\"aj_arcade_game_id\");\n const gameId =\n kind === \"browser\"\n ? null\n : gameIdRaw && gameIdRaw.length > 0\n ? gameIdRaw\n : null;\n\n return { epoch, kind, gameId };\n};\n\n/**\n * Resolves the implicit networked store domain from the current URL (embedded) or {@link AIR_JAM_DEFAULT_STORE_DOMAIN}.\n * Prefer {@link AIRJAM_STORE_DOMAIN_URL_PARAM} when present; otherwise derive from `aj_arcade_*` when valid.\n */\nexport const resolveImplicitReplicatedStoreDomainFromSearchParams = (\n params: URLSearchParams,\n): string => {\n const explicit = params.get(AIRJAM_STORE_DOMAIN_URL_PARAM)?.trim();\n if (explicit && explicit.length > 0) {\n return clampStoreDomain(explicit);\n }\n\n const surface = parseOptionalArcadeSurfaceFromSearchParams(params);\n if (surface) {\n return embeddedReplicatedStoreDomainFromArcadeIdentity(surface);\n }\n\n return AIR_JAM_DEFAULT_STORE_DOMAIN;\n};\n\n/**\n * Browser-only resolver for implicit store domain (SSR-safe: returns default without `window`).\n */\nexport const resolveImplicitReplicatedStoreDomainFromWindow = (): string => {\n if (typeof window === \"undefined\") {\n return AIR_JAM_DEFAULT_STORE_DOMAIN;\n }\n return resolveImplicitReplicatedStoreDomainFromSearchParams(\n new URLSearchParams(window.location.search),\n );\n};\n","import { z } from \"zod\";\n\n/**\n * Minimum Arcade surface identity for embedded runtime bridge attach (see docs/systems/arcade-surface-contract.md).\n */\nexport const arcadeSurfaceRuntimeIdentitySchema = z\n .object({\n epoch: z.number().int().nonnegative(),\n kind: z.enum([\"browser\", \"game\"]),\n gameId: z.string().nullable(),\n })\n .strict();\n\nexport type ArcadeSurfaceRuntimeIdentity = z.infer<\n typeof arcadeSurfaceRuntimeIdentitySchema\n>;\n","const LOCAL_REFERENCE_GAME_PREFIX = \"local-reference-\";\n\n/** Namespaces a local workspace game in the development Arcade catalog. */\nexport const localReferenceGameId = (sourceGameId: string): string =>\n `${LOCAL_REFERENCE_GAME_PREFIX}${sourceGameId}`;\n\n/** Returns the workspace game ID only for a local-reference catalog identity. */\nexport const localReferenceSourceGameId = (\n runtimeGameId: string,\n): string | null =>\n runtimeGameId.startsWith(LOCAL_REFERENCE_GAME_PREFIX)\n ? runtimeGameId.slice(LOCAL_REFERENCE_GAME_PREFIX.length) || null\n : null;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACKO,IAAM,0BAA0B,CACrC,QACA,YACY;AACZ,SACE,QAAQ,UAAU,OAAO,SACzB,QAAQ,SAAS,OAAO,QACxB,QAAQ,WAAW,OAAO;AAE9B;;;ACbO,IAAM,+BAA+B;AAErC,IAAM,sCAAsC;;;ACI5C,IAAM,gCAAgC;AAE7C,IAAM,mBAAmB,CAAC,UACxB,MAAM,SAAS,MAAM,MAAM,MAAM,GAAG,GAAG,IAAI;AAMtC,IAAM,kDAAkD,CAC7D,aACW;AACX,MAAI,SAAS,SAAS,QAAQ;AAC5B,UAAM,UAAU,SAAS,UAAU;AACnC,WAAO,iBAAiB,oBAAoB,SAAS,KAAK,IAAI,OAAO,EAAE;AAAA,EACzE;AACA,SAAO,iBAAiB,uBAAuB,SAAS,KAAK,EAAE;AACjE;AAKO,IAAM,gCAAgC,CAC3C,cAC4B;AAAA,EAC5B,iBAAiB,OAAO,SAAS,KAAK;AAAA,EACtC,gBAAgB,SAAS;AAAA,EACzB,GAAI,SAAS,UAAU,OAAO,EAAE,mBAAmB,SAAS,OAAO,IAAI,CAAC;AAAA,EACxE,CAAC,6BAA6B,GAC5B,gDAAgD,QAAQ;AAC5D;AAEO,IAAM,6CAA6C,CACxD,WAC6C;AAC7C,QAAM,WAAW,OAAO,IAAI,iBAAiB;AAC7C,QAAM,OAAO,OAAO,IAAI,gBAAgB;AACxC,MAAI,aAAa,QAAS,SAAS,aAAa,SAAS,QAAS;AAChE,WAAO;AAAA,EACT;AAEA,QAAM,QAAQ,OAAO,QAAQ;AAC7B,MAAI,CAAC,OAAO,SAAS,KAAK,KAAK,QAAQ,KAAK,CAAC,OAAO,UAAU,KAAK,GAAG;AACpE,WAAO;AAAA,EACT;AAEA,QAAM,YAAY,OAAO,IAAI,mBAAmB;AAChD,QAAM,SACJ,SAAS,YACL,OACA,aAAa,UAAU,SAAS,IAC9B,YACA;AAER,SAAO,EAAE,OAAO,MAAM,OAAO;AAC/B;AAMO,IAAM,uDAAuD,CAClE,WACW;AACX,QAAM,WAAW,OAAO,IAAI,6BAA6B,GAAG,KAAK;AACjE,MAAI,YAAY,SAAS,SAAS,GAAG;AACnC,WAAO,iBAAiB,QAAQ;AAAA,EAClC;AAEA,QAAM,UAAU,2CAA2C,MAAM;AACjE,MAAI,SAAS;AACX,WAAO,gDAAgD,OAAO;AAAA,EAChE;AAEA,SAAO;AACT;AAKO,IAAM,iDAAiD,MAAc;AAC1E,MAAI,OAAO,WAAW,aAAa;AACjC,WAAO;AAAA,EACT;AACA,SAAO;AAAA,IACL,IAAI,gBAAgB,OAAO,SAAS,MAAM;AAAA,EAC5C;AACF;;;AC9FA,iBAAkB;AAKX,IAAM,qCAAqC,aAC/C,OAAO;AAAA,EACN,OAAO,aAAE,OAAO,EAAE,IAAI,EAAE,YAAY;AAAA,EACpC,MAAM,aAAE,KAAK,CAAC,WAAW,MAAM,CAAC;AAAA,EAChC,QAAQ,aAAE,OAAO,EAAE,SAAS;AAC9B,CAAC,EACA,OAAO;;;ACXV,IAAM,8BAA8B;AAG7B,IAAM,uBAAuB,CAAC,iBACnC,GAAG,2BAA2B,GAAG,YAAY;AAGxC,IAAM,6BAA6B,CACxC,kBAEA,cAAc,WAAW,2BAA2B,IAChD,cAAc,MAAM,4BAA4B,MAAM,KAAK,OAC3D;","names":[]}
@@ -8,7 +8,12 @@ import 'zod';
8
8
  */
9
9
  declare const isArcadeSurfaceMismatch: (active: ArcadeSurfaceRuntimeIdentity, request: ArcadeSurfaceRuntimeIdentity) => boolean;
10
10
 
11
+ /** Namespaces a local workspace game in the development Arcade catalog. */
12
+ declare const localReferenceGameId: (sourceGameId: string) => string;
13
+ /** Returns the workspace game ID only for a local-reference catalog identity. */
14
+ declare const localReferenceSourceGameId: (runtimeGameId: string) => string | null;
15
+
11
16
  /** Arcade platform shell (`ArcadeSurfaceState`) — isolates from game `default` domain in the same room. */
12
17
  declare const AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN = "arcade.surface";
13
18
 
14
- export { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN, ArcadeSurfaceRuntimeIdentity, isArcadeSurfaceMismatch };
19
+ export { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN, ArcadeSurfaceRuntimeIdentity, isArcadeSurfaceMismatch, localReferenceGameId, localReferenceSourceGameId };
@@ -8,7 +8,12 @@ import 'zod';
8
8
  */
9
9
  declare const isArcadeSurfaceMismatch: (active: ArcadeSurfaceRuntimeIdentity, request: ArcadeSurfaceRuntimeIdentity) => boolean;
10
10
 
11
+ /** Namespaces a local workspace game in the development Arcade catalog. */
12
+ declare const localReferenceGameId: (sourceGameId: string) => string;
13
+ /** Returns the workspace game ID only for a local-reference catalog identity. */
14
+ declare const localReferenceSourceGameId: (runtimeGameId: string) => string | null;
15
+
11
16
  /** Arcade platform shell (`ArcadeSurfaceState`) — isolates from game `default` domain in the same room. */
12
17
  declare const AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN = "arcade.surface";
13
18
 
14
- export { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN, ArcadeSurfaceRuntimeIdentity, isArcadeSurfaceMismatch };
19
+ export { AIR_JAM_ARCADE_SURFACE_STORE_DOMAIN, ArcadeSurfaceRuntimeIdentity, isArcadeSurfaceMismatch, localReferenceGameId, localReferenceSourceGameId };
@@ -1,6 +1,8 @@
1
1
  import {
2
- isArcadeSurfaceMismatch
3
- } from "../chunk-ZTQ5SP4H.js";
2
+ isArcadeSurfaceMismatch,
3
+ localReferenceGameId,
4
+ localReferenceSourceGameId
5
+ } from "../chunk-PSUYTD2L.js";
4
6
  import {
5
7
  arcadeSurfaceRuntimeIdentitySchema
6
8
  } from "../chunk-X24K52DG.js";
@@ -20,6 +22,8 @@ export {
20
22
  arcadeSurfaceRuntimeUrlParams,
21
23
  embeddedReplicatedStoreDomainFromArcadeIdentity,
22
24
  isArcadeSurfaceMismatch,
25
+ localReferenceGameId,
26
+ localReferenceSourceGameId,
23
27
  parseOptionalArcadeSurfaceFromSearchParams,
24
28
  resolveImplicitReplicatedStoreDomainFromSearchParams,
25
29
  resolveImplicitReplicatedStoreDomainFromWindow
@@ -1,12 +1,12 @@
1
1
  import { ResolvedAirJamRuntimeTopology } from '../runtime-topology.cjs';
2
- import { C as ChildHostCapability } from '../host-8hmq_Sgc.cjs';
2
+ import { C as ChildHostCapability } from '../host-B9pRy0Aa.cjs';
3
3
  export { a as appendRuntimeQueryParams, g as getRuntimeUrlOrigin, n as normalizeRuntimeUrl } from '../url-policy-C89zxgw9.cjs';
4
4
  import { A as ArcadeSurfaceRuntimeIdentity } from '../arcade-surface-identity-CQxDpn_w.cjs';
5
5
  export { a as arcadeSurfaceRuntimeUrlParams } from '../arcade-runtime-url-BW-MUAOY.cjs';
6
- import { R as RoomCode } from '../controller-Bod8YYr1.cjs';
6
+ import { R as RoomCode } from '../controller-vj82tKm4.cjs';
7
7
  import 'zod';
8
- import '../notices-NyDM5Mtz.cjs';
9
- import '../platform-settings-cuor3i11.cjs';
8
+ import '../notices-DNdOjwtj.cjs';
9
+ import '../platform-settings-DUWs4JTy.cjs';
10
10
 
11
11
  /**
12
12
  * Centralized URL builder service for Air Jam.
@@ -1,12 +1,12 @@
1
1
  import { ResolvedAirJamRuntimeTopology } from '../runtime-topology.js';
2
- import { C as ChildHostCapability } from '../host-Cw-N6e-5.js';
2
+ import { C as ChildHostCapability } from '../host-DylGsX7p.js';
3
3
  export { a as appendRuntimeQueryParams, g as getRuntimeUrlOrigin, n as normalizeRuntimeUrl } from '../url-policy-C89zxgw9.js';
4
4
  import { A as ArcadeSurfaceRuntimeIdentity } from '../arcade-surface-identity-CQxDpn_w.js';
5
5
  export { a as arcadeSurfaceRuntimeUrlParams } from '../arcade-runtime-url-l8qj01Pg.js';
6
- import { R as RoomCode } from '../controller-DxVchfiA.js';
6
+ import { R as RoomCode } from '../controller-PZEM_1cH.js';
7
7
  import 'zod';
8
- import '../notices-CnGaaS8B.js';
9
- import '../platform-settings-cuor3i11.js';
8
+ import '../notices-C4bao3oi.js';
9
+ import '../platform-settings-DUWs4JTy.js';
10
10
 
11
11
  /**
12
12
  * Centralized URL builder service for Air Jam.
@@ -1,12 +1,15 @@
1
1
  import {
2
2
  buildArcadeControllerRuntimeUrl,
3
3
  buildArcadeGameIframeSrc
4
- } from "../chunk-JO2HR5PV.js";
5
- import "../chunk-ZTQ5SP4H.js";
4
+ } from "../chunk-UPV6YWT5.js";
5
+ import "../chunk-PSUYTD2L.js";
6
6
  import {
7
7
  urlBuilder
8
8
  } from "../chunk-YXHH3MQT.js";
9
9
  import "../chunk-X24K52DG.js";
10
+ import {
11
+ arcadeSurfaceRuntimeUrlParams
12
+ } from "../chunk-BE6Z4SIT.js";
10
13
  import "../chunk-W2VK36RO.js";
11
14
  import "../chunk-UWJOIVON.js";
12
15
  import {
@@ -14,9 +17,6 @@ import {
14
17
  getRuntimeUrlOrigin,
15
18
  normalizeRuntimeUrl
16
19
  } from "../chunk-3USU7GY2.js";
17
- import {
18
- arcadeSurfaceRuntimeUrlParams
19
- } from "../chunk-BE6Z4SIT.js";
20
20
  export {
21
21
  appendRuntimeQueryParams,
22
22
  arcadeSurfaceRuntimeUrlParams,