@dreamboard-games/sdk 0.5.0-alpha.1 → 0.5.0-alpha.2

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 (87) hide show
  1. package/README.md +9 -4
  2. package/dist/browser-interaction.d.ts +22 -22
  3. package/dist/chunk-5YV2WHJ4.js +25 -0
  4. package/dist/chunk-5YV2WHJ4.js.map +1 -0
  5. package/dist/{chunk-K2JGSRMD.js → chunk-ANRB4XKA.js} +1 -1
  6. package/dist/chunk-ANRB4XKA.js.map +1 -0
  7. package/dist/{chunk-XRS4AZFK.js → chunk-BI4G3PM2.js} +6 -6
  8. package/dist/chunk-BI4G3PM2.js.map +1 -0
  9. package/dist/{chunk-MIKC4Y67.js → chunk-EVCLTY4Q.js} +19 -6
  10. package/dist/chunk-EVCLTY4Q.js.map +1 -0
  11. package/dist/{chunk-EHPEMPRZ.js → chunk-H6VDGFL5.js} +1 -1
  12. package/dist/chunk-H6VDGFL5.js.map +1 -0
  13. package/dist/{chunk-4ZKTGZZK.js → chunk-LR3ZTWQF.js} +1 -1
  14. package/dist/chunk-LR3ZTWQF.js.map +1 -0
  15. package/dist/{chunk-VZ7N6WAQ.js → chunk-PN5O6GG2.js} +2 -2
  16. package/dist/{chunk-7M3N5DFJ.js → chunk-S2JEDVWH.js} +2 -2
  17. package/dist/{chunk-M2S3QC32.js → chunk-Y75CFE77.js} +2 -6
  18. package/dist/chunk-Y75CFE77.js.map +1 -0
  19. package/dist/chunk-Z7QCREWI.js +3435 -0
  20. package/dist/chunk-Z7QCREWI.js.map +1 -0
  21. package/dist/{chunk-MYKS6MTR.js → chunk-ZZGN2ATS.js} +601 -7
  22. package/dist/chunk-ZZGN2ATS.js.map +1 -0
  23. package/dist/{components-CuBO6rev.d.ts → components-gAbIz7hK.d.ts} +1 -1
  24. package/dist/{definitions-1Hj-pQU8.d.ts → definitions-BgmV_GhC.d.ts} +3 -3
  25. package/dist/{game-g9dDFYyU.d.ts → game-CsZScpcn.d.ts} +221 -4
  26. package/dist/{index-Bxbv3c9W.d.ts → index-CcT9Q7N7.d.ts} +1 -1
  27. package/dist/index.js +1 -2
  28. package/dist/package-set.js +1 -2
  29. package/dist/reducer/advanced.d.ts +11 -11
  30. package/dist/reducer/advanced.js +8 -6
  31. package/dist/reducer-contract.d.ts +9 -1
  32. package/dist/reducer-contract.js +3 -3
  33. package/dist/reducer.d.ts +10 -7
  34. package/dist/reducer.js +14 -10
  35. package/dist/reducer.js.map +1 -1
  36. package/dist/runtime/primitives.d.ts +4 -3
  37. package/dist/runtime/primitives.js +2 -2
  38. package/dist/runtime/runtime-api.d.ts +2 -1
  39. package/dist/runtime/workspace-contract.d.ts +38 -9
  40. package/dist/runtime/workspace-contract.js +11 -7
  41. package/dist/{runtime-DksMTWtC.d.ts → runtime-RJ5orDJU.d.ts} +22 -29
  42. package/dist/{runtime-api-C9bDgp63.d.ts → runtime-api-Bz5pwNU_.d.ts} +4 -1
  43. package/dist/runtime.d.ts +5 -5
  44. package/dist/runtime.js +13 -12
  45. package/dist/runtime.js.map +1 -1
  46. package/dist/testing-compiler.d.ts +3 -3
  47. package/dist/testing-runtime.d.ts +5 -5
  48. package/dist/testing-runtime.js +5 -5
  49. package/dist/testing.d.ts +14 -14
  50. package/dist/testing.js +12 -12
  51. package/dist/{types-Dlh4GsNp.d.ts → types-JWCYHmu7.d.ts} +1 -1
  52. package/dist/types.js +6 -18
  53. package/dist/types.js.map +1 -1
  54. package/dist/ui/components.d.ts +2 -2
  55. package/dist/{ui-contract-Mgx_k9gm.d.ts → ui-contract-GTUPkf8z.d.ts} +175 -175
  56. package/dist/ui.d.ts +3 -3
  57. package/dist/{views-B4lD4fT0.d.ts → views-BpuWcOyN.d.ts} +2 -2
  58. package/package.json +2 -21
  59. package/dist/authoring/index.d.ts +0 -59
  60. package/dist/authoring/index.js +0 -24
  61. package/dist/authoring/index.js.map +0 -1
  62. package/dist/authoring-compiler.d.ts +0 -27
  63. package/dist/authoring-compiler.js +0 -11
  64. package/dist/authoring-compiler.js.map +0 -1
  65. package/dist/authoring-generate-cli.d.ts +0 -1
  66. package/dist/authoring-generate-cli.js +0 -45
  67. package/dist/authoring-generate-cli.js.map +0 -1
  68. package/dist/chunk-2WJSQQT7.js +0 -166
  69. package/dist/chunk-2WJSQQT7.js.map +0 -1
  70. package/dist/chunk-4ZKTGZZK.js.map +0 -1
  71. package/dist/chunk-EHPEMPRZ.js.map +0 -1
  72. package/dist/chunk-EY2LL5WD.js +0 -9
  73. package/dist/chunk-EY2LL5WD.js.map +0 -1
  74. package/dist/chunk-JUGQ6F3N.js +0 -7538
  75. package/dist/chunk-JUGQ6F3N.js.map +0 -1
  76. package/dist/chunk-K2JGSRMD.js.map +0 -1
  77. package/dist/chunk-M2S3QC32.js.map +0 -1
  78. package/dist/chunk-MIKC4Y67.js.map +0 -1
  79. package/dist/chunk-MYKS6MTR.js.map +0 -1
  80. package/dist/chunk-QLSK3DYO.js +0 -532
  81. package/dist/chunk-QLSK3DYO.js.map +0 -1
  82. package/dist/chunk-XRS4AZFK.js.map +0 -1
  83. package/dist/codegen.d.ts +0 -939
  84. package/dist/codegen.js +0 -40
  85. package/dist/codegen.js.map +0 -1
  86. /package/dist/{chunk-VZ7N6WAQ.js.map → chunk-PN5O6GG2.js.map} +0 -0
  87. /package/dist/{chunk-7M3N5DFJ.js.map → chunk-S2JEDVWH.js.map} +0 -0
package/README.md CHANGED
@@ -57,8 +57,10 @@ from; `tx.state` is the current draft.
57
57
  ```ts
58
58
  // app/game-model.ts — the model, bound once
59
59
  import { z } from "zod";
60
- import { createGame } from "@dreamboard-games/sdk/reducer";
61
- import { ids, manifestContract } from "../shared/manifest-contract";
60
+ import { compileManifest, createGame } from "@dreamboard-games/sdk/reducer";
61
+ import manifest from "../manifest";
62
+ const manifestContract = compileManifest(manifest);
63
+ const { ids } = manifestContract;
62
64
 
63
65
  export const game = createGame({
64
66
  manifest: manifestContract,
@@ -155,8 +157,11 @@ or at `game.phase(name)`. Rules, views, and tests import `GameState` and
155
157
  imports the assembled game, so there is no import cycle.
156
158
 
157
159
  New workspaces keep authored starter code in `app/game.ts` and `ui/App.tsx`.
158
- Run the package-local `pnpm generate` command to refresh framework-owned
159
- manifest and UI contracts; generated files are not authoring surfaces.
160
+ Import the manifest directly. `compileManifest(manifest)` provides inferred ID schemas,
161
+ table schemas, fresh initial tables, and board metadata in memory. `createGame`
162
+ also accepts the authored manifest directly. Bind UI primitives with
163
+ `createGameUi(game)` from `@dreamboard-games/sdk/runtime/workspace-contract`.
164
+ No authoring generation step or shared workspace files are needed.
160
165
 
161
166
  ## Reducer runner contract
162
167
 
@@ -29,7 +29,7 @@ declare function gameplayCommitEffect(): GameplaySemanticEffect;
29
29
  declare function gameplayInvokeEffect(): GameplaySemanticEffect;
30
30
 
31
31
  declare function defineBrowserInteractionSurface<Surface extends BrowserInteractionSurface, Intent extends BrowserInteractionIntent>(definition: BrowserInteractionSurfaceDefinition<Surface, Intent>): BrowserInteractionSurfaceDefinition<Surface, Intent>;
32
- declare const gameplayBrowserInteractionSurface: BrowserInteractionSurfaceDefinition<"gameplay", "fill" | "arm" | "reveal" | "invoke" | "select" | "toggle" | "increment" | "decrement" | "submit", string>;
32
+ declare const gameplayBrowserInteractionSurface: BrowserInteractionSurfaceDefinition<"gameplay", "arm" | "reveal" | "invoke" | "select" | "toggle" | "increment" | "decrement" | "fill" | "submit", string>;
33
33
  declare function createBrowserInteractionRegistry(definitions?: readonly BrowserInteractionSurfaceDefinition[]): BrowserInteractionRegistry;
34
34
  declare const defaultBrowserInteractionRegistry: BrowserInteractionRegistry;
35
35
 
@@ -111,8 +111,8 @@ declare const gameplaySemanticEffectSchema: z.ZodUnion<readonly [z.ZodObject<{
111
111
  declare const browserInteractionDiagnosticSchema: z.ZodObject<{
112
112
  code: z.ZodString;
113
113
  severity: z.ZodEnum<{
114
- warning: "warning";
115
114
  error: "error";
115
+ warning: "warning";
116
116
  }>;
117
117
  message: z.ZodString;
118
118
  surface: z.ZodOptional<z.ZodString>;
@@ -190,8 +190,8 @@ declare const browserInteractionActuatorSchema: z.ZodObject<{
190
190
  diagnostics: z.ZodArray<z.ZodObject<{
191
191
  code: z.ZodString;
192
192
  severity: z.ZodEnum<{
193
- warning: "warning";
194
193
  error: "error";
194
+ warning: "warning";
195
195
  }>;
196
196
  message: z.ZodString;
197
197
  surface: z.ZodOptional<z.ZodString>;
@@ -225,8 +225,8 @@ declare const browserInteractionPointerTargetSchema: z.ZodObject<{
225
225
  diagnostics: z.ZodArray<z.ZodObject<{
226
226
  code: z.ZodString;
227
227
  severity: z.ZodEnum<{
228
- warning: "warning";
229
228
  error: "error";
229
+ warning: "warning";
230
230
  }>;
231
231
  message: z.ZodString;
232
232
  surface: z.ZodOptional<z.ZodString>;
@@ -315,8 +315,8 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
315
315
  diagnostics: z.ZodArray<z.ZodObject<{
316
316
  code: z.ZodString;
317
317
  severity: z.ZodEnum<{
318
- warning: "warning";
319
318
  error: "error";
319
+ warning: "warning";
320
320
  }>;
321
321
  message: z.ZodString;
322
322
  surface: z.ZodOptional<z.ZodString>;
@@ -350,8 +350,8 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
350
350
  diagnostics: z.ZodArray<z.ZodObject<{
351
351
  code: z.ZodString;
352
352
  severity: z.ZodEnum<{
353
- warning: "warning";
354
353
  error: "error";
354
+ warning: "warning";
355
355
  }>;
356
356
  message: z.ZodString;
357
357
  surface: z.ZodOptional<z.ZodString>;
@@ -365,8 +365,8 @@ declare const browserGameplayInteractionSchema: z.ZodObject<{
365
365
  diagnostics: z.ZodArray<z.ZodObject<{
366
366
  code: z.ZodString;
367
367
  severity: z.ZodEnum<{
368
- warning: "warning";
369
368
  error: "error";
369
+ warning: "warning";
370
370
  }>;
371
371
  message: z.ZodString;
372
372
  surface: z.ZodOptional<z.ZodString>;
@@ -458,8 +458,8 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
458
458
  diagnostics: z.ZodArray<z.ZodObject<{
459
459
  code: z.ZodString;
460
460
  severity: z.ZodEnum<{
461
- warning: "warning";
462
461
  error: "error";
462
+ warning: "warning";
463
463
  }>;
464
464
  message: z.ZodString;
465
465
  surface: z.ZodOptional<z.ZodString>;
@@ -493,8 +493,8 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
493
493
  diagnostics: z.ZodArray<z.ZodObject<{
494
494
  code: z.ZodString;
495
495
  severity: z.ZodEnum<{
496
- warning: "warning";
497
496
  error: "error";
497
+ warning: "warning";
498
498
  }>;
499
499
  message: z.ZodString;
500
500
  surface: z.ZodOptional<z.ZodString>;
@@ -508,8 +508,8 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
508
508
  diagnostics: z.ZodArray<z.ZodObject<{
509
509
  code: z.ZodString;
510
510
  severity: z.ZodEnum<{
511
- warning: "warning";
512
511
  error: "error";
512
+ warning: "warning";
513
513
  }>;
514
514
  message: z.ZodString;
515
515
  surface: z.ZodOptional<z.ZodString>;
@@ -523,8 +523,8 @@ declare const browserGameplaySurfaceSnapshotSchema: z.ZodObject<{
523
523
  diagnostics: z.ZodArray<z.ZodObject<{
524
524
  code: z.ZodString;
525
525
  severity: z.ZodEnum<{
526
- warning: "warning";
527
526
  error: "error";
527
+ warning: "warning";
528
528
  }>;
529
529
  message: z.ZodString;
530
530
  surface: z.ZodOptional<z.ZodString>;
@@ -616,8 +616,8 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
616
616
  diagnostics: z.ZodArray<z.ZodObject<{
617
617
  code: z.ZodString;
618
618
  severity: z.ZodEnum<{
619
- warning: "warning";
620
619
  error: "error";
620
+ warning: "warning";
621
621
  }>;
622
622
  message: z.ZodString;
623
623
  surface: z.ZodOptional<z.ZodString>;
@@ -651,8 +651,8 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
651
651
  diagnostics: z.ZodArray<z.ZodObject<{
652
652
  code: z.ZodString;
653
653
  severity: z.ZodEnum<{
654
- warning: "warning";
655
654
  error: "error";
655
+ warning: "warning";
656
656
  }>;
657
657
  message: z.ZodString;
658
658
  surface: z.ZodOptional<z.ZodString>;
@@ -666,8 +666,8 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
666
666
  diagnostics: z.ZodArray<z.ZodObject<{
667
667
  code: z.ZodString;
668
668
  severity: z.ZodEnum<{
669
- warning: "warning";
670
669
  error: "error";
670
+ warning: "warning";
671
671
  }>;
672
672
  message: z.ZodString;
673
673
  surface: z.ZodOptional<z.ZodString>;
@@ -681,8 +681,8 @@ declare const browserSemanticSurfaceSnapshotSchema: z.ZodObject<{
681
681
  diagnostics: z.ZodArray<z.ZodObject<{
682
682
  code: z.ZodString;
683
683
  severity: z.ZodEnum<{
684
- warning: "warning";
685
684
  error: "error";
685
+ warning: "warning";
686
686
  }>;
687
687
  message: z.ZodString;
688
688
  surface: z.ZodOptional<z.ZodString>;
@@ -699,8 +699,8 @@ declare const browserUnknownSurfaceSnapshotSchema: z.ZodObject<{
699
699
  diagnostics: z.ZodArray<z.ZodObject<{
700
700
  code: z.ZodString;
701
701
  severity: z.ZodEnum<{
702
- warning: "warning";
703
702
  error: "error";
703
+ warning: "warning";
704
704
  }>;
705
705
  message: z.ZodString;
706
706
  surface: z.ZodOptional<z.ZodString>;
@@ -797,8 +797,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
797
797
  diagnostics: z.ZodArray<z.ZodObject<{
798
798
  code: z.ZodString;
799
799
  severity: z.ZodEnum<{
800
- warning: "warning";
801
800
  error: "error";
801
+ warning: "warning";
802
802
  }>;
803
803
  message: z.ZodString;
804
804
  surface: z.ZodOptional<z.ZodString>;
@@ -832,8 +832,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
832
832
  diagnostics: z.ZodArray<z.ZodObject<{
833
833
  code: z.ZodString;
834
834
  severity: z.ZodEnum<{
835
- warning: "warning";
836
835
  error: "error";
836
+ warning: "warning";
837
837
  }>;
838
838
  message: z.ZodString;
839
839
  surface: z.ZodOptional<z.ZodString>;
@@ -847,8 +847,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
847
847
  diagnostics: z.ZodArray<z.ZodObject<{
848
848
  code: z.ZodString;
849
849
  severity: z.ZodEnum<{
850
- warning: "warning";
851
850
  error: "error";
851
+ warning: "warning";
852
852
  }>;
853
853
  message: z.ZodString;
854
854
  surface: z.ZodOptional<z.ZodString>;
@@ -862,8 +862,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
862
862
  diagnostics: z.ZodArray<z.ZodObject<{
863
863
  code: z.ZodString;
864
864
  severity: z.ZodEnum<{
865
- warning: "warning";
866
865
  error: "error";
866
+ warning: "warning";
867
867
  }>;
868
868
  message: z.ZodString;
869
869
  surface: z.ZodOptional<z.ZodString>;
@@ -879,8 +879,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
879
879
  diagnostics: z.ZodArray<z.ZodObject<{
880
880
  code: z.ZodString;
881
881
  severity: z.ZodEnum<{
882
- warning: "warning";
883
882
  error: "error";
883
+ warning: "warning";
884
884
  }>;
885
885
  message: z.ZodString;
886
886
  surface: z.ZodOptional<z.ZodString>;
@@ -894,8 +894,8 @@ declare const browserInteractionSnapshotSchema: z.ZodObject<{
894
894
  diagnostics: z.ZodArray<z.ZodObject<{
895
895
  code: z.ZodString;
896
896
  severity: z.ZodEnum<{
897
- warning: "warning";
898
897
  error: "error";
898
+ warning: "warning";
899
899
  }>;
900
900
  message: z.ZodString;
901
901
  surface: z.ZodOptional<z.ZodString>;
@@ -0,0 +1,25 @@
1
+ // ../sdk-types/dist/index.js
2
+ function defineTopologyManifest(manifest) {
3
+ return manifest;
4
+ }
5
+ function buildTypedRecord(ids, initial) {
6
+ const createValue = typeof initial === "function" ? initial : () => initial;
7
+ return Object.fromEntries(ids.map((id) => [id, createValue(id)]));
8
+ }
9
+ function isTypedId(ids, value) {
10
+ return ids.includes(value);
11
+ }
12
+ function expectTypedId(ids, value, description) {
13
+ if (isTypedId(ids, value)) {
14
+ return value;
15
+ }
16
+ throw new Error(`Unknown ${description} '${value}'.`);
17
+ }
18
+
19
+ export {
20
+ defineTopologyManifest,
21
+ buildTypedRecord,
22
+ isTypedId,
23
+ expectTypedId
24
+ };
25
+ //# sourceMappingURL=chunk-5YV2WHJ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../sdk-types/dist/index.js"],"sourcesContent":["// src/authoring.ts\nfunction defineTopologyManifest(manifest) {\n return manifest;\n}\n\n// src/generated-helpers.ts\nfunction buildTypedRecord(ids, initial) {\n const createValue = typeof initial === \"function\" ? initial : () => initial;\n return Object.fromEntries(ids.map((id) => [id, createValue(id)]));\n}\nfunction isTypedId(ids, value) {\n return ids.includes(value);\n}\nfunction expectTypedId(ids, value, description) {\n if (isTypedId(ids, value)) {\n return value;\n }\n throw new Error(`Unknown ${description} '${value}'.`);\n}\nexport {\n buildTypedRecord,\n defineTopologyManifest,\n expectTypedId,\n isTypedId\n};\n"],"mappings":";AACA,SAAS,uBAAuB,UAAU;AACxC,SAAO;AACT;AAGA,SAAS,iBAAiB,KAAK,SAAS;AACtC,QAAM,cAAc,OAAO,YAAY,aAAa,UAAU,MAAM;AACpE,SAAO,OAAO,YAAY,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,YAAY,EAAE,CAAC,CAAC,CAAC;AAClE;AACA,SAAS,UAAU,KAAK,OAAO;AAC7B,SAAO,IAAI,SAAS,KAAK;AAC3B;AACA,SAAS,cAAc,KAAK,OAAO,aAAa;AAC9C,MAAI,UAAU,KAAK,KAAK,GAAG;AACzB,WAAO;AAAA,EACT;AACA,QAAM,IAAI,MAAM,WAAW,WAAW,KAAK,KAAK,IAAI;AACtD;","names":[]}
@@ -87,4 +87,4 @@ export {
87
87
  seedSharedBoardContainer,
88
88
  seedSharedBoardSpace
89
89
  };
90
- //# sourceMappingURL=chunk-K2JGSRMD.js.map
90
+ //# sourceMappingURL=chunk-ANRB4XKA.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/reducer/setup-bootstrap-helpers.ts"],"sourcesContent":["import type {\n CardIdOfManifest,\n DieIdOfManifest,\n ReducerManifestContractLike,\n PieceIdOfManifest,\n PlayerIdOfManifest,\n SetupBootstrapContainerRef,\n SetupBootstrapPerPlayerContainerTemplateRef,\n SetupBootstrapStep,\n SetupBootstrapDestinationRef,\n} from \"./model\";\n\nexport function shuffle<\n Manifest extends ReducerManifestContractLike = ReducerManifestContractLike,\n>(\n container: SetupBootstrapContainerRef<Manifest>,\n): SetupBootstrapStep<Manifest> {\n return {\n type: \"shuffle\",\n container,\n };\n}\n\nexport function dealToPlayerZone<\n Manifest extends ReducerManifestContractLike = ReducerManifestContractLike,\n>({\n from,\n zoneId,\n count,\n playerIds,\n}: {\n from: Extract<\n SetupBootstrapContainerRef<Manifest>,\n { type: \"sharedZone\" | \"sharedBoardContainer\" }\n >;\n zoneId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerZone\" }\n >[\"zoneId\"];\n count: number;\n playerIds?: readonly PlayerIdOfManifest<Manifest>[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"deal\",\n from,\n to: {\n type: \"playerZone\",\n zoneId,\n } as SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n count,\n playerIds,\n };\n}\n\nexport function dealToPlayerBoardContainer<\n Manifest extends ReducerManifestContractLike = ReducerManifestContractLike,\n>({\n from,\n boardId,\n containerId,\n count,\n playerIds,\n}: {\n from: Extract<\n SetupBootstrapContainerRef<Manifest>,\n { type: \"sharedZone\" | \"sharedBoardContainer\" }\n >;\n boardId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerBoardContainer\" }\n >[\"boardId\"];\n containerId: Extract<\n SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n { type: \"playerBoardContainer\" }\n >[\"containerId\"];\n count: number;\n playerIds?: readonly PlayerIdOfManifest<Manifest>[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"deal\",\n from,\n to: {\n type: \"playerBoardContainer\",\n boardId,\n containerId,\n } as SetupBootstrapPerPlayerContainerTemplateRef<Manifest>,\n count,\n playerIds,\n };\n}\n\nexport function seedSharedBoardContainer<\n Manifest extends ReducerManifestContractLike = ReducerManifestContractLike,\n>({\n from,\n boardId,\n containerId,\n count,\n componentIds,\n}: {\n from: SetupBootstrapContainerRef<Manifest>;\n boardId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardContainer\" }\n >[\"boardId\"];\n containerId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardContainer\" }\n >[\"containerId\"];\n count?: number;\n componentIds?: readonly (\n | CardIdOfManifest<Manifest>\n | PieceIdOfManifest<Manifest>\n | DieIdOfManifest<Manifest>\n )[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"move\",\n from,\n to: {\n type: \"sharedBoardContainer\",\n boardId,\n containerId,\n } as SetupBootstrapDestinationRef<Manifest>,\n count,\n componentIds,\n };\n}\n\nexport function seedSharedBoardSpace<\n Manifest extends ReducerManifestContractLike = ReducerManifestContractLike,\n>({\n from,\n boardId,\n spaceId,\n count,\n componentIds,\n}: {\n from: SetupBootstrapContainerRef<Manifest>;\n boardId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardSpace\" }\n >[\"boardId\"];\n spaceId: Extract<\n SetupBootstrapDestinationRef<Manifest>,\n { type: \"sharedBoardSpace\" }\n >[\"spaceId\"];\n count?: number;\n componentIds?: readonly (\n | CardIdOfManifest<Manifest>\n | PieceIdOfManifest<Manifest>\n | DieIdOfManifest<Manifest>\n )[];\n}): SetupBootstrapStep<Manifest> {\n return {\n type: \"move\",\n from,\n to: {\n type: \"sharedBoardSpace\",\n boardId,\n spaceId,\n } as SetupBootstrapDestinationRef<Manifest>,\n count,\n componentIds,\n };\n}\n"],"mappings":";AAYO,SAAS,QAGd,WAC8B;AAC9B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,EACF;AACF;AAEO,SAAS,iBAEd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAWiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,2BAEd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAeiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,yBAEd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAgBiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,SAAS,qBAEd;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAgBiC;AAC/B,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,IAAI;AAAA,MACF,MAAM;AAAA,MACN;AAAA,MACA;AAAA,IACF;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;","names":[]}
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  createReducerTestingBundle
3
- } from "./chunk-7M3N5DFJ.js";
3
+ } from "./chunk-S2JEDVWH.js";
4
4
  import {
5
5
  createClientParamSchemasByPhase
6
- } from "./chunk-VZ7N6WAQ.js";
7
- import {
8
- manifestSchemaFamily
9
- } from "./chunk-EHPEMPRZ.js";
6
+ } from "./chunk-PN5O6GG2.js";
10
7
  import {
11
8
  digestPluginRuntimeJson,
12
9
  encodeCanonicalPluginRuntimeJson
13
10
  } from "./chunk-VCDWP5VL.js";
11
+ import {
12
+ manifestSchemaFamily
13
+ } from "./chunk-H6VDGFL5.js";
14
14
 
15
15
  // src/testing/scenario-schema.ts
16
16
  import { z } from "zod";
@@ -1861,4 +1861,4 @@ export {
1861
1861
  digestScenarioJson,
1862
1862
  compareCanonicalScenarioJson
1863
1863
  };
1864
- //# sourceMappingURL=chunk-XRS4AZFK.js.map
1864
+ //# sourceMappingURL=chunk-BI4G3PM2.js.map