@dreamboard-games/sdk 0.4.0-alpha.7 → 0.4.0-alpha.8

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 (49) hide show
  1. package/REFERENCE.md +153 -51
  2. package/dist/authoring/index.js +2 -2
  3. package/dist/{chunk-52DH7VQF.js → chunk-2TAKLJJD.js} +5 -2
  4. package/dist/{chunk-52DH7VQF.js.map → chunk-2TAKLJJD.js.map} +1 -1
  5. package/dist/{chunk-TGMXBRKY.js → chunk-3BLN5POZ.js} +5 -3
  6. package/dist/chunk-3BLN5POZ.js.map +1 -0
  7. package/dist/{chunk-RKGJ64UN.js → chunk-44N3T2A5.js} +2 -2
  8. package/dist/{chunk-IU6KGPY7.js → chunk-5CQIJHGF.js} +6 -2
  9. package/dist/{chunk-IU6KGPY7.js.map → chunk-5CQIJHGF.js.map} +1 -1
  10. package/dist/{chunk-5IHU5CUK.js → chunk-IYX5OO2K.js} +12 -22
  11. package/dist/chunk-IYX5OO2K.js.map +1 -0
  12. package/dist/{chunk-Q322XCY2.js → chunk-VTK4TIXC.js} +3 -3
  13. package/dist/{chunk-KYEWGZ2Y.js → chunk-VTNEWMWJ.js} +2 -2
  14. package/dist/{chunk-KYEWGZ2Y.js.map → chunk-VTNEWMWJ.js.map} +1 -1
  15. package/dist/{chunk-3QIZKXJ2.js → chunk-XV27IQHA.js} +3 -3
  16. package/dist/{chunk-NO537WSS.js → chunk-YGQTL63W.js} +2 -2
  17. package/dist/{chunk-VLG4YST5.js → chunk-ZYONCTZ2.js} +2 -2
  18. package/dist/codegen.js +1 -1
  19. package/dist/{index.d-DMASeF6M.d.ts → index.d-C0PKOVbh.d.ts} +25 -4
  20. package/dist/index.js +2 -2
  21. package/dist/package-set.d.ts +2 -2
  22. package/dist/package-set.js +2 -2
  23. package/dist/{protocol-835hEGne.d.ts → protocol-nS2ojsGr.d.ts} +5 -0
  24. package/dist/reducer/advanced.d.ts +2 -2
  25. package/dist/reducer-contract.d.ts +1 -1
  26. package/dist/reducer-contract.js +2 -2
  27. package/dist/reducer.d.ts +23 -20
  28. package/dist/reducer.js +131 -84
  29. package/dist/reducer.js.map +1 -1
  30. package/dist/runtime/primitives.js +3 -3
  31. package/dist/runtime/workspace-contract.js +4 -4
  32. package/dist/runtime.d.ts +3 -3
  33. package/dist/runtime.js +9 -9
  34. package/dist/testing-runtime.d.ts +2 -2
  35. package/dist/testing-runtime.js +2 -2
  36. package/dist/testing.d.ts +5 -5
  37. package/dist/testing.js +4 -4
  38. package/dist/{types-DcADVHe9.d.ts → types-B_3pObUV.d.ts} +1 -1
  39. package/dist/{types-aI4V9CWe.d.ts → types-CTeN_QAk.d.ts} +1 -1
  40. package/dist/types.d.ts +4 -0
  41. package/dist/{views-32rSsfeU.d.ts → views-Qx-EHBP8.d.ts} +27 -10
  42. package/package.json +1 -2
  43. package/dist/chunk-5IHU5CUK.js.map +0 -1
  44. package/dist/chunk-TGMXBRKY.js.map +0 -1
  45. /package/dist/{chunk-RKGJ64UN.js.map → chunk-44N3T2A5.js.map} +0 -0
  46. /package/dist/{chunk-Q322XCY2.js.map → chunk-VTK4TIXC.js.map} +0 -0
  47. /package/dist/{chunk-3QIZKXJ2.js.map → chunk-XV27IQHA.js.map} +0 -0
  48. /package/dist/{chunk-NO537WSS.js.map → chunk-YGQTL63W.js.map} +0 -0
  49. /package/dist/{chunk-VLG4YST5.js.map → chunk-ZYONCTZ2.js.map} +0 -0
package/dist/codegen.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  materializeManifestTable,
19
19
  materializePresetCardSet,
20
20
  validateManifestAuthoring
21
- } from "./chunk-52DH7VQF.js";
21
+ } from "./chunk-2TAKLJJD.js";
22
22
  import "./chunk-PZ5AY32C.js";
23
23
  export {
24
24
  AUTHORITATIVE_GENERATED_FILES,
@@ -239,13 +239,20 @@ type SeatProjectionBundle = {
239
239
  "currentStage"?: string | null;
240
240
  "stageSeats"?: Array<string>;
241
241
  "simultaneousPhase"?: SimultaneousPhaseProjection | null;
242
+ "sharedView"?: JsonValue;
242
243
  "interactionsByRef"?: JsonValue;
243
244
  "seats": Record<string, SeatProjection>;
245
+ "timing"?: ProjectionTimingMetadata;
246
+ };
247
+ type ProjectionTimingMetadata = {
248
+ "resolveAvailableInteractionsMs": number;
249
+ "resolveViewMs": number;
250
+ "resolveZoneHandlesMs": number;
251
+ "descriptorHashMs": number;
244
252
  };
245
253
  type ProjectSeatsDynamicRequest = {
246
254
  "state": ReducerSessionState;
247
255
  "playerIds": Array<string>;
248
- "viewId"?: string;
249
256
  "projectionMode"?: "full" | "actionsOnly" | null;
250
257
  };
251
258
  type BoardStaticProjection = {
@@ -285,6 +292,7 @@ type wire_OutcomeScoreComponent = OutcomeScoreComponent;
285
292
  type wire_OutcomeStanding = OutcomeStanding;
286
293
  type wire_OutcomeTieBreak = OutcomeTieBreak;
287
294
  type wire_ProjectSeatsDynamicRequest = ProjectSeatsDynamicRequest;
295
+ type wire_ProjectionTimingMetadata = ProjectionTimingMetadata;
288
296
  type wire_ReduceRequest = ReduceRequest;
289
297
  type wire_ReduceResult = ReduceResult;
290
298
  type wire_ReduceResultAccept = ReduceResultAccept;
@@ -313,7 +321,7 @@ type wire_SystemActionEvent = SystemActionEvent;
313
321
  type wire_TransitionRecord = TransitionRecord;
314
322
  type wire_ValidateInputRequest = ValidateInputRequest;
315
323
  declare namespace wire {
316
- export type { wire_BoardStaticProjection as BoardStaticProjection, wire_ContinuationMap as ContinuationMap, wire_ContinuationToken as ContinuationToken, wire_DispatchRequest as DispatchRequest, wire_DispatchResult as DispatchResult, wire_DispatchResultAccept as DispatchResultAccept, wire_DispatchResultReject as DispatchResultReject, wire_DispatchTrace as DispatchTrace, wire_DispatchTraceAcceptedClientInput as DispatchTraceAcceptedClientInput, wire_DispatchTraceAppliedEffect as DispatchTraceAppliedEffect, wire_DispatchTraceRngConsumption as DispatchTraceRngConsumption, wire_Effect as Effect, wire_EffectId as EffectId, wire_EffectRollDie as EffectRollDie, wire_EffectShufflePlayerZone as EffectShufflePlayerZone, wire_EffectShuffleSharedZone as EffectShuffleSharedZone, wire_EffectTransition as EffectTransition, wire_GameEvent as GameEvent, wire_GameEventDetail as GameEventDetail, wire_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_GameOutcome as GameOutcome, wire_GameOutcomeReason as GameOutcomeReason, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, wire_OutcomeResult as OutcomeResult, wire_OutcomeScoreComponent as OutcomeScoreComponent, wire_OutcomeStanding as OutcomeStanding, wire_OutcomeTieBreak as OutcomeTieBreak, wire_ProjectSeatsDynamicRequest as ProjectSeatsDynamicRequest, wire_ReduceRequest as ReduceRequest, wire_ReduceResult as ReduceResult, wire_ReduceResultAccept as ReduceResultAccept, wire_ReduceResultReject as ReduceResultReject, wire_ReducerContractVersion as ReducerContractVersion, wire_ReducerDomainState as ReducerDomainState, wire_ReducerFlowState as ReducerFlowState, wire_ReducerInputValidationResult as ReducerInputValidationResult, wire_ReducerRuntimeLogEntry as ReducerRuntimeLogEntry, wire_ReducerRuntimeLogEntryAcceptedClientInput as ReducerRuntimeLogEntryAcceptedClientInput, wire_ReducerRuntimeLogEntryAppliedEffect as ReducerRuntimeLogEntryAppliedEffect, wire_ReducerRuntimeLogEntryRngConsumption as ReducerRuntimeLogEntryRngConsumption, wire_ReducerRuntimeLogEntryStateCommit as ReducerRuntimeLogEntryStateCommit, wire_ReducerRuntimeState as ReducerRuntimeState, wire_ReducerSessionMeta as ReducerSessionMeta, wire_ReducerSessionState as ReducerSessionState, wire_ReducerSetupSelection as ReducerSetupSelection, wire_RngState as RngState, wire_RuntimeSimultaneousCurrent as RuntimeSimultaneousCurrent, wire_RuntimeSimultaneousState as RuntimeSimultaneousState, wire_RuntimeSimultaneousSubmission as RuntimeSimultaneousSubmission, wire_SeatProjection as SeatProjection, wire_SeatProjectionBundle as SeatProjectionBundle, wire_SimultaneousPhaseProjection as SimultaneousPhaseProjection, wire_SystemActionEvent as SystemActionEvent, wire_TransitionRecord as TransitionRecord, wire_ValidateInputRequest as ValidateInputRequest };
324
+ export type { wire_BoardStaticProjection as BoardStaticProjection, wire_ContinuationMap as ContinuationMap, wire_ContinuationToken as ContinuationToken, wire_DispatchRequest as DispatchRequest, wire_DispatchResult as DispatchResult, wire_DispatchResultAccept as DispatchResultAccept, wire_DispatchResultReject as DispatchResultReject, wire_DispatchTrace as DispatchTrace, wire_DispatchTraceAcceptedClientInput as DispatchTraceAcceptedClientInput, wire_DispatchTraceAppliedEffect as DispatchTraceAppliedEffect, wire_DispatchTraceRngConsumption as DispatchTraceRngConsumption, wire_Effect as Effect, wire_EffectId as EffectId, wire_EffectRollDie as EffectRollDie, wire_EffectShufflePlayerZone as EffectShufflePlayerZone, wire_EffectShuffleSharedZone as EffectShuffleSharedZone, wire_EffectTransition as EffectTransition, wire_GameEvent as GameEvent, wire_GameEventDetail as GameEventDetail, wire_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_GameOutcome as GameOutcome, wire_GameOutcomeReason as GameOutcomeReason, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, wire_OutcomeResult as OutcomeResult, wire_OutcomeScoreComponent as OutcomeScoreComponent, wire_OutcomeStanding as OutcomeStanding, wire_OutcomeTieBreak as OutcomeTieBreak, wire_ProjectSeatsDynamicRequest as ProjectSeatsDynamicRequest, wire_ProjectionTimingMetadata as ProjectionTimingMetadata, wire_ReduceRequest as ReduceRequest, wire_ReduceResult as ReduceResult, wire_ReduceResultAccept as ReduceResultAccept, wire_ReduceResultReject as ReduceResultReject, wire_ReducerContractVersion as ReducerContractVersion, wire_ReducerDomainState as ReducerDomainState, wire_ReducerFlowState as ReducerFlowState, wire_ReducerInputValidationResult as ReducerInputValidationResult, wire_ReducerRuntimeLogEntry as ReducerRuntimeLogEntry, wire_ReducerRuntimeLogEntryAcceptedClientInput as ReducerRuntimeLogEntryAcceptedClientInput, wire_ReducerRuntimeLogEntryAppliedEffect as ReducerRuntimeLogEntryAppliedEffect, wire_ReducerRuntimeLogEntryRngConsumption as ReducerRuntimeLogEntryRngConsumption, wire_ReducerRuntimeLogEntryStateCommit as ReducerRuntimeLogEntryStateCommit, wire_ReducerRuntimeState as ReducerRuntimeState, wire_ReducerSessionMeta as ReducerSessionMeta, wire_ReducerSessionState as ReducerSessionState, wire_ReducerSetupSelection as ReducerSetupSelection, wire_RngState as RngState, wire_RuntimeSimultaneousCurrent as RuntimeSimultaneousCurrent, wire_RuntimeSimultaneousState as RuntimeSimultaneousState, wire_RuntimeSimultaneousSubmission as RuntimeSimultaneousSubmission, wire_SeatProjection as SeatProjection, wire_SeatProjectionBundle as SeatProjectionBundle, wire_SimultaneousPhaseProjection as SimultaneousPhaseProjection, wire_SystemActionEvent as SystemActionEvent, wire_TransitionRecord as TransitionRecord, wire_ValidateInputRequest as ValidateInputRequest };
317
325
  }
318
326
 
319
327
  declare const ReducerContractVersionSchema: z.ZodString;
@@ -1539,6 +1547,12 @@ declare const SimultaneousPhaseProjectionSchema: z.ZodObject<{
1539
1547
  sealedPlayerIds: z.ZodArray<z.ZodString>;
1540
1548
  pendingPlayerIds: z.ZodArray<z.ZodString>;
1541
1549
  }, z.core.$strict>;
1550
+ declare const ProjectionTimingMetadataSchema: z.ZodObject<{
1551
+ resolveAvailableInteractionsMs: z.ZodNumber;
1552
+ resolveViewMs: z.ZodNumber;
1553
+ resolveZoneHandlesMs: z.ZodNumber;
1554
+ descriptorHashMs: z.ZodNumber;
1555
+ }, z.core.$strict>;
1542
1556
  declare const SeatProjectionBundleSchema: z.ZodObject<{
1543
1557
  currentStage: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNull]>>;
1544
1558
  stageSeats: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -1549,12 +1563,19 @@ declare const SeatProjectionBundleSchema: z.ZodObject<{
1549
1563
  sealedPlayerIds: z.ZodArray<z.ZodString>;
1550
1564
  pendingPlayerIds: z.ZodArray<z.ZodString>;
1551
1565
  }, z.core.$strict>, z.ZodNull]>>;
1566
+ sharedView: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1552
1567
  interactionsByRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1553
1568
  seats: z.ZodRecord<z.ZodString, z.ZodObject<{
1554
1569
  view: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1555
1570
  availableInteractionRefs: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1556
1571
  zones: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
1557
1572
  }, z.core.$strict>>;
1573
+ timing: z.ZodOptional<z.ZodObject<{
1574
+ resolveAvailableInteractionsMs: z.ZodNumber;
1575
+ resolveViewMs: z.ZodNumber;
1576
+ resolveZoneHandlesMs: z.ZodNumber;
1577
+ descriptorHashMs: z.ZodNumber;
1578
+ }, z.core.$strict>>;
1558
1579
  }, z.core.$strict>;
1559
1580
  declare const ProjectSeatsDynamicRequestSchema: z.ZodObject<{
1560
1581
  state: z.ZodObject<{
@@ -1601,7 +1622,6 @@ declare const ProjectSeatsDynamicRequestSchema: z.ZodObject<{
1601
1622
  }, z.core.$strict>;
1602
1623
  }, z.core.$strict>;
1603
1624
  playerIds: z.ZodArray<z.ZodString>;
1604
- viewId: z.ZodOptional<z.ZodString>;
1605
1625
  projectionMode: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1606
1626
  full: "full";
1607
1627
  actionsOnly: "actionsOnly";
@@ -1644,6 +1664,7 @@ declare const zod_OutcomeScoreComponentSchema: typeof OutcomeScoreComponentSchem
1644
1664
  declare const zod_OutcomeStandingSchema: typeof OutcomeStandingSchema;
1645
1665
  declare const zod_OutcomeTieBreakSchema: typeof OutcomeTieBreakSchema;
1646
1666
  declare const zod_ProjectSeatsDynamicRequestSchema: typeof ProjectSeatsDynamicRequestSchema;
1667
+ declare const zod_ProjectionTimingMetadataSchema: typeof ProjectionTimingMetadataSchema;
1647
1668
  declare const zod_ReduceRequestSchema: typeof ReduceRequestSchema;
1648
1669
  declare const zod_ReduceResultAcceptSchema: typeof ReduceResultAcceptSchema;
1649
1670
  declare const zod_ReduceResultRejectSchema: typeof ReduceResultRejectSchema;
@@ -1672,7 +1693,7 @@ declare const zod_SystemActionEventSchema: typeof SystemActionEventSchema;
1672
1693
  declare const zod_TransitionRecordSchema: typeof TransitionRecordSchema;
1673
1694
  declare const zod_ValidateInputRequestSchema: typeof ValidateInputRequestSchema;
1674
1695
  declare namespace zod {
1675
- export { zod_BoardStaticProjectionSchema as BoardStaticProjectionSchema, zod_ContinuationMapSchema as ContinuationMapSchema, zod_ContinuationTokenSchema as ContinuationTokenSchema, zod_DispatchRequestSchema as DispatchRequestSchema, zod_DispatchResultAcceptSchema as DispatchResultAcceptSchema, zod_DispatchResultRejectSchema as DispatchResultRejectSchema, zod_DispatchResultSchema as DispatchResultSchema, zod_DispatchTraceAcceptedClientInputSchema as DispatchTraceAcceptedClientInputSchema, zod_DispatchTraceAppliedEffectSchema as DispatchTraceAppliedEffectSchema, zod_DispatchTraceRngConsumptionSchema as DispatchTraceRngConsumptionSchema, zod_DispatchTraceSchema as DispatchTraceSchema, zod_EffectIdSchema as EffectIdSchema, zod_EffectRollDieSchema as EffectRollDieSchema, zod_EffectSchema as EffectSchema, zod_EffectShufflePlayerZoneSchema as EffectShufflePlayerZoneSchema, zod_EffectShuffleSharedZoneSchema as EffectShuffleSharedZoneSchema, zod_EffectTransitionSchema as EffectTransitionSchema, zod_GameEventDetailSchema as GameEventDetailSchema, zod_GameEventSchema as GameEventSchema, zod_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_GameOutcomeReasonSchema as GameOutcomeReasonSchema, zod_GameOutcomeSchema as GameOutcomeSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, zod_OutcomeResultSchema as OutcomeResultSchema, zod_OutcomeScoreComponentSchema as OutcomeScoreComponentSchema, zod_OutcomeStandingSchema as OutcomeStandingSchema, zod_OutcomeTieBreakSchema as OutcomeTieBreakSchema, zod_ProjectSeatsDynamicRequestSchema as ProjectSeatsDynamicRequestSchema, zod_ReduceRequestSchema as ReduceRequestSchema, zod_ReduceResultAcceptSchema as ReduceResultAcceptSchema, zod_ReduceResultRejectSchema as ReduceResultRejectSchema, zod_ReduceResultSchema as ReduceResultSchema, zod_ReducerContractVersionSchema as ReducerContractVersionSchema, zod_ReducerDomainStateSchema as ReducerDomainStateSchema, zod_ReducerFlowStateSchema as ReducerFlowStateSchema, zod_ReducerInputValidationResultSchema as ReducerInputValidationResultSchema, zod_ReducerRuntimeLogEntryAcceptedClientInputSchema as ReducerRuntimeLogEntryAcceptedClientInputSchema, zod_ReducerRuntimeLogEntryAppliedEffectSchema as ReducerRuntimeLogEntryAppliedEffectSchema, zod_ReducerRuntimeLogEntryRngConsumptionSchema as ReducerRuntimeLogEntryRngConsumptionSchema, zod_ReducerRuntimeLogEntrySchema as ReducerRuntimeLogEntrySchema, zod_ReducerRuntimeLogEntryStateCommitSchema as ReducerRuntimeLogEntryStateCommitSchema, zod_ReducerRuntimeStateSchema as ReducerRuntimeStateSchema, zod_ReducerSessionMetaSchema as ReducerSessionMetaSchema, zod_ReducerSessionStateSchema as ReducerSessionStateSchema, zod_ReducerSetupSelectionSchema as ReducerSetupSelectionSchema, zod_RngStateSchema as RngStateSchema, zod_RuntimeSimultaneousCurrentSchema as RuntimeSimultaneousCurrentSchema, zod_RuntimeSimultaneousStateSchema as RuntimeSimultaneousStateSchema, zod_RuntimeSimultaneousSubmissionSchema as RuntimeSimultaneousSubmissionSchema, zod_SeatProjectionBundleSchema as SeatProjectionBundleSchema, zod_SeatProjectionSchema as SeatProjectionSchema, zod_SimultaneousPhaseProjectionSchema as SimultaneousPhaseProjectionSchema, zod_SystemActionEventSchema as SystemActionEventSchema, zod_TransitionRecordSchema as TransitionRecordSchema, zod_ValidateInputRequestSchema as ValidateInputRequestSchema };
1696
+ export { zod_BoardStaticProjectionSchema as BoardStaticProjectionSchema, zod_ContinuationMapSchema as ContinuationMapSchema, zod_ContinuationTokenSchema as ContinuationTokenSchema, zod_DispatchRequestSchema as DispatchRequestSchema, zod_DispatchResultAcceptSchema as DispatchResultAcceptSchema, zod_DispatchResultRejectSchema as DispatchResultRejectSchema, zod_DispatchResultSchema as DispatchResultSchema, zod_DispatchTraceAcceptedClientInputSchema as DispatchTraceAcceptedClientInputSchema, zod_DispatchTraceAppliedEffectSchema as DispatchTraceAppliedEffectSchema, zod_DispatchTraceRngConsumptionSchema as DispatchTraceRngConsumptionSchema, zod_DispatchTraceSchema as DispatchTraceSchema, zod_EffectIdSchema as EffectIdSchema, zod_EffectRollDieSchema as EffectRollDieSchema, zod_EffectSchema as EffectSchema, zod_EffectShufflePlayerZoneSchema as EffectShufflePlayerZoneSchema, zod_EffectShuffleSharedZoneSchema as EffectShuffleSharedZoneSchema, zod_EffectTransitionSchema as EffectTransitionSchema, zod_GameEventDetailSchema as GameEventDetailSchema, zod_GameEventSchema as GameEventSchema, zod_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_GameOutcomeReasonSchema as GameOutcomeReasonSchema, zod_GameOutcomeSchema as GameOutcomeSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, zod_OutcomeResultSchema as OutcomeResultSchema, zod_OutcomeScoreComponentSchema as OutcomeScoreComponentSchema, zod_OutcomeStandingSchema as OutcomeStandingSchema, zod_OutcomeTieBreakSchema as OutcomeTieBreakSchema, zod_ProjectSeatsDynamicRequestSchema as ProjectSeatsDynamicRequestSchema, zod_ProjectionTimingMetadataSchema as ProjectionTimingMetadataSchema, zod_ReduceRequestSchema as ReduceRequestSchema, zod_ReduceResultAcceptSchema as ReduceResultAcceptSchema, zod_ReduceResultRejectSchema as ReduceResultRejectSchema, zod_ReduceResultSchema as ReduceResultSchema, zod_ReducerContractVersionSchema as ReducerContractVersionSchema, zod_ReducerDomainStateSchema as ReducerDomainStateSchema, zod_ReducerFlowStateSchema as ReducerFlowStateSchema, zod_ReducerInputValidationResultSchema as ReducerInputValidationResultSchema, zod_ReducerRuntimeLogEntryAcceptedClientInputSchema as ReducerRuntimeLogEntryAcceptedClientInputSchema, zod_ReducerRuntimeLogEntryAppliedEffectSchema as ReducerRuntimeLogEntryAppliedEffectSchema, zod_ReducerRuntimeLogEntryRngConsumptionSchema as ReducerRuntimeLogEntryRngConsumptionSchema, zod_ReducerRuntimeLogEntrySchema as ReducerRuntimeLogEntrySchema, zod_ReducerRuntimeLogEntryStateCommitSchema as ReducerRuntimeLogEntryStateCommitSchema, zod_ReducerRuntimeStateSchema as ReducerRuntimeStateSchema, zod_ReducerSessionMetaSchema as ReducerSessionMetaSchema, zod_ReducerSessionStateSchema as ReducerSessionStateSchema, zod_ReducerSetupSelectionSchema as ReducerSetupSelectionSchema, zod_RngStateSchema as RngStateSchema, zod_RuntimeSimultaneousCurrentSchema as RuntimeSimultaneousCurrentSchema, zod_RuntimeSimultaneousStateSchema as RuntimeSimultaneousStateSchema, zod_RuntimeSimultaneousSubmissionSchema as RuntimeSimultaneousSubmissionSchema, zod_SeatProjectionBundleSchema as SeatProjectionBundleSchema, zod_SeatProjectionSchema as SeatProjectionSchema, zod_SimultaneousPhaseProjectionSchema as SimultaneousPhaseProjectionSchema, zod_SystemActionEventSchema as SystemActionEventSchema, zod_TransitionRecordSchema as TransitionRecordSchema, zod_ValidateInputRequestSchema as ValidateInputRequestSchema };
1676
1697
  }
1677
1698
 
1678
1699
  /**
package/dist/index.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DREAMBOARD_SDK_PACKAGES,
3
3
  DREAMBOARD_SDK_PACKAGE_SET,
4
4
  DREAMBOARD_SDK_VERSION
5
- } from "./chunk-NO537WSS.js";
6
- import "./chunk-KYEWGZ2Y.js";
5
+ } from "./chunk-YGQTL63W.js";
6
+ import "./chunk-VTNEWMWJ.js";
7
7
  import "./chunk-PZ5AY32C.js";
8
8
  export {
9
9
  DREAMBOARD_SDK_PACKAGES,
@@ -1,6 +1,6 @@
1
- declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.7";
1
+ declare const DREAMBOARD_SDK_VERSION: "0.4.0-alpha.8";
2
2
  declare const DREAMBOARD_SDK_PACKAGES: {
3
- readonly "@dreamboard-games/sdk": "0.4.0-alpha.7";
3
+ readonly "@dreamboard-games/sdk": "0.4.0-alpha.8";
4
4
  };
5
5
  type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;
6
6
  type DreamboardSdkPackageSet = {
@@ -2,8 +2,8 @@ import {
2
2
  DREAMBOARD_SDK_PACKAGES,
3
3
  DREAMBOARD_SDK_PACKAGE_SET,
4
4
  DREAMBOARD_SDK_VERSION
5
- } from "./chunk-NO537WSS.js";
6
- import "./chunk-KYEWGZ2Y.js";
5
+ } from "./chunk-YGQTL63W.js";
6
+ import "./chunk-VTNEWMWJ.js";
7
7
  import "./chunk-PZ5AY32C.js";
8
8
  export {
9
9
  DREAMBOARD_SDK_PACKAGES,
@@ -171,6 +171,10 @@ interface PluginGameplayFrame<View = unknown, Phase extends string = string, Sta
171
171
  readonly gameVersion: number;
172
172
  readonly actionSetVersion: string;
173
173
  readonly perspectivePlayerId: PlayerId | null;
174
+ readonly sharedView: {
175
+ readonly boardStatic: RuntimeJson | null;
176
+ readonly dynamicView: RuntimeJson | null;
177
+ };
174
178
  readonly view: View | null;
175
179
  readonly flow: {
176
180
  readonly currentPhase: Phase | null;
@@ -189,6 +193,7 @@ interface ReducerSeatProjectionBundle {
189
193
  readonly simultaneousPhase?: SimultaneousPhaseSnapshot | null;
190
194
  readonly guidance?: GameGuidanceProjection | null;
191
195
  readonly recentEvents?: readonly ProjectedGameEvent[];
196
+ readonly sharedView?: unknown;
192
197
  readonly interactionsByRef?: unknown;
193
198
  readonly seats: Readonly<Record<string, {
194
199
  readonly view?: unknown;
@@ -1,7 +1,7 @@
1
1
  import { bQ as RuntimeTableRecord, bD as RuntimeRngState, c6 as SetupBootstrapStep, V as GeneratedManifestContractLike, bZ as SetupBootstrapContainerRef, c1 as SetupBootstrapPerPlayerContainerTemplateRef, aD as PlayerIdOfManifest, b_ as SetupBootstrapDestinationRef, n as CardIdOfManifest, aB as PieceIdOfManifest, I as DieIdOfManifest } from '../runtime-Dkfm1x2r.js';
2
2
  export { A as AnyContinuationToken, a as AnySchema, B as BoardBaseIdOfManifest, b as BoardContainerIdOfManifest, c as BoardContainerIdOfTable, d as BoardIdOfManifest, e as BoardIdOfTable, f as BoardLayoutOfManifest, g as BoardMapOfTable, i as BoardStateOfTable, j as BoardTypeIdOfManifest, k as BoardTypeIdOfTable, l as Brand, C as CardIdOfDeck, m as CardIdOfHand, o as CardIdOfState, p as CardIdOfTable, q as CardTypeOfState, r as CardTypeOfTable, s as ChoiceOption, t as CompatibleCardIdForHandAndDeck, u as CompatibleCardIdForTwoPlayerZones, v as CompatibleHandIdForDeck, w as ComponentDataOfTable, x as ComponentIdOfTable, y as ComponentLocationByTypeOfTable, z as ComponentLocationOfTable, D as ContinuationResponseOf, E as ContinuationToken, F as DeckCardsOfTable, G as DeckIdOfState, H as DeckIdOfTable, J as EdgeTypeIdOfManifest, K as EffectInvokeOptions, L as EffectSpecLike, M as EffectTypeTag, N as ErrorCodeOfContract, O as ExactManifestContractOf, P as FlowState, Q as FrameworkErrorCode, R as FrameworkErrorCodes, S as GameEvent, T as GameEventDetail, U as GameOutcome, W as HandCardsOfTable, X as HandIdOfState, Y as HandIdOfTable, Z as HexBoardIdOfTable, _ as HexBoardStateOfTable, $ as HexEdgeIdOfTable, a0 as HexEdgeStateOfTable, a1 as HexEdgeTypeIdOfTable, a2 as HexSpaceIdOfTable, a3 as HexSpaceTypeIdOfTable, a4 as HexVertexIdOfTable, a5 as HexVertexStateOfTable, a6 as HexVertexTypeIdOfTable, a7 as HiddenSchemaOfContract, a8 as HiddenStateOfState, a9 as InitContext, aa as InitSetupSelectionInput, ab as ManifestContract, ac as ManifestContractOf, ad as ManifestDefaults, ae as ManifestIdSchema, af as ManifestIds, ag as ManifestLiterals, ah as ManifestOf, ai as NonEmptyReadonlyArray, aj as OutcomeResult, ak as OutcomeScoreComponent, al as OutcomeStanding, am as OutcomeTieBreak, aq as PhaseAccessor, ar as PhaseMapOfState, as as PhaseNameOf, at as PhaseNameOfContract, au as PhaseNameOfManifest, av as PhaseNameOfState, aw as PhasePayload, ax as PhaseSchemasOfContract, ay as PhaseStateMapOfContract, az as PhaseStateOfState, aA as PhaseStepOfState, aE as PlayerIdOfState, aF as PlayerIdOfTable, aG as PlayerZoneIdOfManifest, aH as PlayerZoneIdOfState, aI as PlayerZoneIdOfTable, aJ as PrivateSchemaOfContract, aK as PrivateStateOfState, aL as PublicSchemaOfContract, aM as PublicStateOfState, aN as ReducerAccept, aO as ReducerAcceptOptions, aP as ReducerFx, aQ as ReducerGameState, aR as ReducerManifestContract, aS as ReducerReject, aT as ReducerResult, aU as ReducerRuntimeStateForState, aV as ReducerSessionState, aW as ReducerValidationResult, aX as RelationTypeIdOfManifest, aY as RelationTypeIdOfTable, aZ as ResolvedContainerLocation, a_ as ResolvedDeckLocation, a$ as ResolvedEdgeLocation, b0 as ResolvedHandLocation, b1 as ResolvedSlotLocation, b2 as ResolvedSpaceLocation, b3 as ResolvedVertexLocation, b4 as ResolvedZoneLocation, b5 as ResourceAmountsOfTable, b6 as ResourceBalancesOfState, b7 as ResourceBalancesOfTable, b8 as ResourceIdOfManifest, b9 as ResourceIdOfState, ba as ResourceIdOfTable, bb as RuntimeBoardBaseState, bc as RuntimeBoardCollections, bd as RuntimeBoardCompatibilityState, be as RuntimeBoardContainerState, bf as RuntimeBoardRelationState, bg as RuntimeBoardSpaceState, bh as RuntimeBoardState, bi as RuntimeCardData, bj as RuntimeCardVisibility, bk as RuntimeComponentLocation, bl as RuntimeComponentLocationMap, bm as RuntimeDeckMap, bn as RuntimeDieData, bo as RuntimeGenericBoardState, bp as RuntimeHandMap, bq as RuntimeHandVisibilityMode, br as RuntimeHexBoardState, bs as RuntimeHexEdgeState, bt as RuntimeHexOrientation, bu as RuntimeHexSpaceState, bv as RuntimeHexVertexState, bw as RuntimeOwnerMap, bx as RuntimeParams, by as RuntimePayload, bz as RuntimePhaseState, bA as RuntimePieceData, bB as RuntimeRecord, bC as RuntimeResourceMap, bE as RuntimeScalar, bF as RuntimeSetupSelection, bG as RuntimeSetupSelectionInput, bH as RuntimeSetupSelectionOverride, bI as RuntimeSimultaneousState, bJ as RuntimeSimultaneousSubmission, bK as RuntimeSlotHostRef, bL as RuntimeSquareBoardState, bM as RuntimeSquareEdgeState, bN as RuntimeSquareSpaceState, bO as RuntimeSquareVertexState, bP as RuntimeState, bR as RuntimeTiledBoardBaseState, bS as RuntimeTiledBoardState, bT as RuntimeTiledEdgeState, bU as RuntimeTiledSpaceState, bV as RuntimeTiledVertexState, bW as RuntimeVisibilityMap, bX as RuntimeZoneMap, bY as SchemaLike, b$ as SetupBootstrapPerPlayerBoardContainerRef, c0 as SetupBootstrapPerPlayerBoardSpaceRef, c2 as SetupBootstrapPerPlayerZoneRef, c3 as SetupBootstrapSharedBoardContainerRef, c4 as SetupBootstrapSharedBoardSpaceRef, c5 as SetupBootstrapSharedZoneRef, c7 as SetupOptionChoiceMetadata, c8 as SetupOptionIdOfManifest, c9 as SetupOptionMetadata, ca as SetupProfileDefinition, cb as SetupProfileIdOfManifest, cc as SetupProfileMetadata, cd as SetupSelectionInputOfManifest, ce as SetupSelectionOfManifest, cg as SharedZoneIdOfManifest, ch as SharedZoneIdOfState, ci as SharedZoneIdOfTable, cj as SpaceIdOfManifest, ck as SpaceIdOfTable, cl as SpaceTypeIdOfManifest, cm as SpaceTypeIdOfTable, cn as SquareBoardIdOfTable, co as SquareBoardStateOfTable, cp as SquareEdgeIdOfTable, cq as SquareEdgeStateOfTable, cr as SquareEdgeTypeIdOfTable, cs as SquareSpaceIdOfTable, ct as SquareSpaceTypeIdOfTable, cu as SquareVertexIdOfTable, cv as SquareVertexStateOfTable, cw as SquareVertexTypeIdOfTable, cx as StateDefinition, cy as StateDefinitionOfContract, cz as StaticBoards, cA as StaticBoardsJsonEnvelope, cB as StringKeyOf, cC as SystemActionEvent, cD as TableOfManifest, cE as TableOfState, cF as TableQueries, cG as TableQueriesOfState, cH as TiledBoardIdOfTable, cI as TiledBoardStateOfTable, cJ as TiledEdgeIdOfTable, cK as TiledEdgeMap, cL as TiledEdgeStateOfTable, cM as TiledEdgeTypeIdOfTable, cN as TiledSpaceIdOfTable, cO as TiledSpaceMap, cP as TiledVertexIdOfTable, cQ as TiledVertexMap, cR as TiledVertexStateOfTable, cS as TiledVertexTypeIdOfTable, cT as VertexTypeIdOfManifest, cV as assumeManifestSchema, cZ as cloneManifestDefault, c_ as createManifestGameStateSchema, c$ as createManifestRuntimeSchema, d0 as createManifestStringLiteralSchema, d1 as isManifestScopedSchema, d6 as markManifestScopedSchema, dk as resolveManifestPlayerIds } from '../runtime-Dkfm1x2r.js';
3
- import { aF as ReducerGameContractLike, at as PhaseMapOf, ba as ViewMapOf, aG as ReducerGameDefinition } from '../views-32rSsfeU.js';
4
- export { A as ActionContext, a as ActorSelection, b as ActorSelector, c as ActorSelectorArgs, d as AnyCardActionSpec, e as AnyContinuationCallable, f as AnyInteractionSpec, g as AnyPhaseDefinitionForContract, h as AnyReducerGameDefinition, i as AutoPhaseDefinition, B as BaseGameSessionOfContract, j as BaseGameStateOfContract, k as BoardInputCollectorKind, l as BoardInputCollectorMeta, m as BoardInteractionKeyOfDefinition, n as BoardTargetDomainDescriptor, o as BoundedNumberDomainDescriptor, C as CardActionMap, p as CardActionSpec, q as CardInputCollectorMeta, r as CardInputZoneIdsOfDefinition, s as CardInteractionKeyOfDefinition, t as CardTargetDomainDescriptor, u as ChoiceDomainDescriptor, v as ChoiceListDomainDescriptor, w as ClientParamsOf, x as ClientParamsOfInteractionOfDefinition, y as CollectorState, z as ContinuationCallable, D as ContinuationInput, E as ContinuationInputForSource, F as ContinuationKind, G as ContinuationReduceArgs, H as ContinuationSourceKind, I as DefaultedClientParamKeysOfInteractionOfDefinition, L as EagerInputDomainDependencies, M as EffectContinuationCallable, N as EffectContinuationInput, O as EffectContinuationResponse, P as EffectDefinition, Q as EffectIdsOfDefinition, R as EffectMap, S as EffectRegistryOfPhase, T as EffectRollDieDefinition, U as EffectShuffleDefinition, V as EffectShufflePlayerZoneDefinition, W as GameStateOf, X as InitialStateCallbacks, Y as InputCollector, Z as InputCollectorKind, _ as InputCollectorMetaForKind, $ as InputDomainDependencyCase, a0 as InputDomainDescriptor, a1 as InputDomainResolverDescriptor, a2 as InputKeysWithCollectorKindOfDefinition, a3 as InputSelectionDescriptor, a4 as InteractionAvailabilityArgs, a5 as InteractionCommitPolicy, a6 as InteractionIdOfDefinition, a7 as InteractionIdOfDefinitionPhase, a8 as InteractionKind, a9 as InteractionMap, aa as InteractionReduceArgs, ab as InteractionReduceInput, ac as InteractionRule, ad as InteractionRuleValidationResult, ae as InteractionSpec, af as InteractionSpecByNameOfDefinitionPhase, ag as InteractionToArgs, ah as InteractionValidateArgs, ai as LazyBoardTargetDomainDescriptor, aj as LazyCardTargetDomainDescriptor, ak as LazyInputDomainDependencies, al as MutationRuntimeHelpers, an as ParamsOf, ao as ParamsOfInteractionOfDefinition, ap as PhaseDefinition, aq as PhaseDefinitionByName, ar as PhaseEnterArgs, as as PhaseEnterContext, au as PhaseNamesOfDefinition, av as PhaseStateMapOfDefinitions, aw as PhaseStateOfDefinitions, ax as PhaseZoneList, ay as PlayableInteractionsOfZoneOfDefinition, az as PlayerPhaseDefinition, aA as PromptInputCollectorMeta, aB as PromptInteractionKeyOfDefinition, aC as RandomHelpers, aE as ReducerGameContract, aI as ReducerSessionForConfig, aK as ReducerStateForConfig, aM as ResolvedBoardTargetDomainDescriptor, aN as ResolvedCardTargetDomainDescriptor, aO as ResolvedGameSessionOf, aP as ResolvedGameStateOf, aQ as ResourceMapDomainDescriptor, aR as ResumableEffectKind, aS as RngInputCollectorMeta, aT as RollDieContinuationResponse, aV as RuntimeHelpers, aW as ScopedPhaseState, aX as ShufflePlayerZoneContinuationResponse, aY as ShuffleSharedZoneContinuationResponse, aZ as SimultaneousPlayerPhaseDefinition, a_ as SimultaneousResolveArgs, a$ as SimultaneousSubmission, b0 as SimultaneousSubmitSpec, b1 as StageMap, b2 as StageNamesOfDefinitionPhase, b3 as StageSpec, b4 as StaticViewDefinition, b5 as StaticViewQueries, b6 as TargetKind, b7 as ValidationIssue, b8 as ViewDefinition, b9 as ViewDefinitionByName, bb as ViewNamesOfDefinition, bc as ViewOfDefinition, bd as ViewsOfDefinition, be as ZoneIdsOfDefinition } from '../views-32rSsfeU.js';
3
+ import { aH as ReducerGameContractLike, au as PhaseMapOf, bc as ViewMapOf, aI as ReducerGameDefinition } from '../views-Qx-EHBP8.js';
4
+ export { A as ActionContext, a as ActorSelection, b as ActorSelector, c as ActorSelectorArgs, d as AnyCardActionSpec, e as AnyContinuationCallable, f as AnyInteractionSpec, g as AnyPhaseDefinitionForContract, h as AnyReducerGameDefinition, i as AutoPhaseDefinition, B as BaseGameSessionOfContract, j as BaseGameStateOfContract, k as BoardInputCollectorKind, l as BoardInputCollectorMeta, m as BoardInteractionKeyOfDefinition, n as BoardTargetDomainDescriptor, o as BoundedNumberDomainDescriptor, C as CardActionMap, p as CardActionSpec, q as CardInputCollectorMeta, r as CardInputZoneIdsOfDefinition, s as CardInteractionKeyOfDefinition, t as CardTargetDomainDescriptor, u as ChoiceDomainDescriptor, v as ChoiceListDomainDescriptor, w as ClientParamsOf, x as ClientParamsOfInteractionOfDefinition, y as CollectorState, z as ContinuationCallable, D as ContinuationInput, E as ContinuationInputForSource, F as ContinuationKind, G as ContinuationReduceArgs, H as ContinuationSourceKind, I as DefaultedClientParamKeysOfInteractionOfDefinition, L as EagerInputDomainDependencies, M as EffectContinuationCallable, N as EffectContinuationInput, O as EffectContinuationResponse, P as EffectDefinition, Q as EffectIdsOfDefinition, R as EffectMap, S as EffectRegistryOfPhase, T as EffectRollDieDefinition, U as EffectShuffleDefinition, V as EffectShufflePlayerZoneDefinition, W as EmptyViewDefinition, X as GameStateOf, Y as InitialStateCallbacks, Z as InputCollector, _ as InputCollectorKind, $ as InputCollectorMetaForKind, a0 as InputDomainDependencyCase, a1 as InputDomainDescriptor, a2 as InputDomainResolverDescriptor, a3 as InputKeysWithCollectorKindOfDefinition, a4 as InputSelectionDescriptor, a5 as InteractionAvailabilityArgs, a6 as InteractionCommitPolicy, a7 as InteractionIdOfDefinition, a8 as InteractionIdOfDefinitionPhase, a9 as InteractionKind, aa as InteractionMap, ab as InteractionReduceArgs, ac as InteractionReduceInput, ad as InteractionRule, ae as InteractionRuleValidationResult, af as InteractionSpec, ag as InteractionSpecByNameOfDefinitionPhase, ah as InteractionToArgs, ai as InteractionValidateArgs, aj as LazyBoardTargetDomainDescriptor, ak as LazyCardTargetDomainDescriptor, al as LazyInputDomainDependencies, am as MutationRuntimeHelpers, ao as ParamsOf, ap as ParamsOfInteractionOfDefinition, aq as PhaseDefinition, ar as PhaseDefinitionByName, as as PhaseEnterArgs, at as PhaseEnterContext, av as PhaseNamesOfDefinition, aw as PhaseStateMapOfDefinitions, ax as PhaseStateOfDefinitions, ay as PhaseZoneList, az as PlayableInteractionsOfZoneOfDefinition, aA as PlayerPhaseDefinition, aB as PlayerViewDefinition, aC as PromptInputCollectorMeta, aD as PromptInteractionKeyOfDefinition, aE as RandomHelpers, aG as ReducerGameContract, aK as ReducerSessionForConfig, aM as ReducerStateForConfig, aO as ResolvedBoardTargetDomainDescriptor, aP as ResolvedCardTargetDomainDescriptor, aQ as ResolvedGameSessionOf, aR as ResolvedGameStateOf, aS as ResourceMapDomainDescriptor, aT as ResumableEffectKind, aU as RngInputCollectorMeta, aV as RollDieContinuationResponse, aX as RuntimeHelpers, aY as ScopedPhaseState, aZ as SharedViewDefinition, a_ as ShufflePlayerZoneContinuationResponse, a$ as ShuffleSharedZoneContinuationResponse, b0 as SimultaneousPlayerPhaseDefinition, b1 as SimultaneousResolveArgs, b2 as SimultaneousSubmission, b3 as SimultaneousSubmitSpec, b4 as StageMap, b5 as StageNamesOfDefinitionPhase, b6 as StageSpec, b7 as StaticViewDefinition, b8 as StaticViewQueries, b9 as TargetKind, ba as ValidationIssue, bb as ViewDefinitionByName, bd as ViewNamesOfDefinition, be as ViewOfDefinition, bf as ViewsOfDefinition, bg as ZoneIdsOfDefinition } from '../views-Qx-EHBP8.js';
5
5
  import 'zod';
6
6
  import '../types.js';
7
7
 
@@ -1,3 +1,3 @@
1
- export { M as MaybePromise, R as REDUCER_CONTRACT_VERSION, a as ReducerBundleContract, w as ReducerWire, z as ReducerWireZod } from './index.d-DMASeF6M.js';
1
+ export { M as MaybePromise, R as REDUCER_CONTRACT_VERSION, a as ReducerBundleContract, w as ReducerWire, z as ReducerWireZod } from './index.d-C0PKOVbh.js';
2
2
  export { materializeManifestTable } from './codegen.js';
3
3
  import 'zod';
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  materializeManifestTable
3
- } from "./chunk-52DH7VQF.js";
3
+ } from "./chunk-2TAKLJJD.js";
4
4
  import {
5
5
  REDUCER_CONTRACT_VERSION,
6
6
  zod_exports
7
- } from "./chunk-TGMXBRKY.js";
7
+ } from "./chunk-3BLN5POZ.js";
8
8
  import "./chunk-PZ5AY32C.js";
9
9
  export {
10
10
  REDUCER_CONTRACT_VERSION,
package/dist/reducer.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { V as GeneratedManifestContractLike, bQ as RuntimeTableRecord, cx as StateDefinition, bY as SchemaLike, ac as ManifestContractOf, N as ErrorCodeOfContract, ae as ManifestIdSchema, aR as ReducerManifestContract, aE as PlayerIdOfState, cG as TableQueriesOfState, o as CardIdOfState, ab as ManifestContract, cE as TableOfState, ce as SetupSelectionOfManifest, cP as TiledVertexIdOfTable, cD as TableOfManifest, cH as TiledBoardIdOfTable, cJ as TiledEdgeIdOfTable, cN as TiledSpaceIdOfTable, n as CardIdOfManifest, O as ExactManifestContractOf, at as PhaseNameOfContract, aG as PlayerZoneIdOfManifest, ax as PhaseSchemasOfContract, a as AnySchema, cC as SystemActionEvent, cF as TableQueries, e as BoardIdOfTable, c as BoardContainerIdOfTable } from './runtime-Dkfm1x2r.js';
3
3
  export { h as BoardRef, R as FrameworkErrorCodes, S as GameEvent, T as GameEventDetail, U as GameOutcome, aj as OutcomeResult, ak as OutcomeScoreComponent, al as OutcomeStanding, am as OutcomeTieBreak, an as PerPlayer, ao as PerPlayerBoardRef, ap as PerPlayerSchemaOptions, aC as PlayerId, aN as ReducerAccept, aO as ReducerAcceptOptions, aS as ReducerReject, aT as ReducerResult, aW as ReducerValidationResult, cf as SharedBoardRef, cU as asPlayerId, cW as boardRef, cX as boardRefKey, cY as boardRefSchema, d2 as isPerPlayer, d3 as isPerPlayerBoardRef, d4 as isPlayerId, d5 as isSharedBoardRef, d7 as parseBoardRefKey, d8 as perPlayer, d9 as perPlayerBoardRef, da as perPlayerEntries, db as perPlayerGet, dc as perPlayerHas, dd as perPlayerKeys, de as perPlayerMap, df as perPlayerRequire, dg as perPlayerSchema, dh as perPlayerSet, di as perPlayerSize, dj as perPlayerValues, dl as sharedBoardRef } from './runtime-Dkfm1x2r.js';
4
- import { j as BaseGameStateOfContract, ap as PhaseDefinition, b8 as ViewDefinition, aE as ReducerGameContract, Y as InputCollector, y as CollectorState, K as DerivedResolver, b7 as ValidationIssue, b6 as TargetKind, a3 as InputSelectionDescriptor, a0 as InputDomainDescriptor, n as BoardTargetDomainDescriptor, l as BoardInputCollectorMeta, f as AnyInteractionSpec, d as AnyCardActionSpec, R as EffectMap, aW as ScopedPhaseState, b1 as StageMap, ax as PhaseZoneList, C as CardActionMap, at as PhaseMapOf, ba as ViewMapOf, aG as ReducerGameDefinition, b4 as StaticViewDefinition, ae as InteractionSpec, p as CardActionSpec, ac as InteractionRule, a9 as InteractionMap, z as ContinuationCallable, T as EffectRollDieDefinition, U as EffectShuffleDefinition, V as EffectShufflePlayerZoneDefinition, b3 as StageSpec, aF as ReducerGameContractLike } from './views-32rSsfeU.js';
5
- export { J as DerivedDefinition, W as GameStateOf, X as InitialStateCallbacks, am as Op, aD as ReducerEdit, aH as ReducerOps, aJ as ReducerStateBase, aL as ReducerTransaction, aU as RotatePlayerZoneArgs, bf as createDerivedResolver, bg as createReducerEdit, bh as createReducerOps, bi as createReducerTransaction, bj as defineDerived, bk as pipe } from './views-32rSsfeU.js';
6
- import { a as ReducerBundleContract } from './index.d-DMASeF6M.js';
4
+ import { j as BaseGameStateOfContract, aq as PhaseDefinition, aB as PlayerViewDefinition, aZ as SharedViewDefinition, aG as ReducerGameContract, Z as InputCollector, y as CollectorState, K as DerivedResolver, ba as ValidationIssue, b9 as TargetKind, a4 as InputSelectionDescriptor, a1 as InputDomainDescriptor, n as BoardTargetDomainDescriptor, l as BoardInputCollectorMeta, f as AnyInteractionSpec, d as AnyCardActionSpec, R as EffectMap, aY as ScopedPhaseState, b4 as StageMap, ay as PhaseZoneList, C as CardActionMap, au as PhaseMapOf, bc as ViewMapOf, aI as ReducerGameDefinition, W as EmptyViewDefinition, b7 as StaticViewDefinition, af as InteractionSpec, p as CardActionSpec, ad as InteractionRule, aa as InteractionMap, z as ContinuationCallable, T as EffectRollDieDefinition, U as EffectShuffleDefinition, V as EffectShufflePlayerZoneDefinition, b6 as StageSpec, aH as ReducerGameContractLike } from './views-Qx-EHBP8.js';
5
+ export { J as DerivedDefinition, X as GameStateOf, Y as InitialStateCallbacks, an as Op, aF as ReducerEdit, aJ as ReducerOps, aL as ReducerStateBase, aN as ReducerTransaction, aW as RotatePlayerZoneArgs, bh as createDerivedResolver, bi as createReducerEdit, bj as createReducerOps, bk as createReducerTransaction, bl as defineDerived, bm as pipe } from './views-Qx-EHBP8.js';
6
+ import { a as ReducerBundleContract } from './index.d-C0PKOVbh.js';
7
7
  import { a as ReducerDiagnosticsSink } from './diagnostics-1BWjRo6-.js';
8
8
  export { D as DispatchTraceSummaryEntry, R as ReducerDiagnosticEvent, n as noopDiagnosticsSink } from './diagnostics-1BWjRo6-.js';
9
9
  export { S as StaleContractArtifactError, a as StaleContractArtifactErrorOptions, b as StaleContractArtifactKind, i as isStaleContractArtifactError } from './stale-contract-artifact-error-C5AaZPJ8.js';
@@ -19,7 +19,8 @@ type ContractState<Contract extends AnyReducerGameContract> = BaseGameStateOfCon
19
19
  type ContractManifest<Contract extends AnyReducerGameContract> = ManifestContractOf<Contract>;
20
20
  type ContractErrorCode<Contract extends AnyReducerGameContract> = ErrorCodeOfContract<Contract>;
21
21
  type ReducerPhaseDefinition<Contract extends AnyReducerGameContract, PhaseStateSchema extends SchemaLike<object>> = PhaseDefinition<PhaseStateSchema, ContractState<Contract>, ContractManifest<Contract>>;
22
- type ReducerViewDefinition<Contract extends AnyReducerGameContract, Projection = unknown> = ViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>;
22
+ type ReducerSharedViewDefinition<Contract extends AnyReducerGameContract, Projection = unknown> = SharedViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>;
23
+ type ReducerPlayerViewDefinition<Contract extends AnyReducerGameContract, SharedProjection = unknown, Projection = unknown> = PlayerViewDefinition<ContractState<Contract>, ContractManifest<Contract>, SharedProjection, Projection>;
23
24
 
24
25
  type ManifestIdSchemasOf<Ids extends Record<string, SchemaLike<unknown>>> = {
25
26
  readonly [Key in keyof Ids]: Ids[Key] extends SchemaLike<infer Output> ? Ids[Key] & ManifestIdSchema<Output> : Ids[Key];
@@ -684,8 +685,10 @@ type PhaseAuthoring<Contract extends ContractWithPhases, PhaseStateSchema extend
684
685
  };
685
686
  type ContractAuthoring<Contract extends ContractWithPhases> = {
686
687
  readonly contract: Contract;
687
- game<Definitions extends PhaseMapOf<Contract>, Views extends ViewMapOf<Contract> = Record<string, never>>(definition: Omit<ReducerGameDefinition<Contract, Definitions, Views>, "contract">): ReducerGameDefinition<Contract, Definitions, Views>;
688
- view<Projection>(definition: ViewDefinition<BoundState<Contract>, BoundManifest<Contract>, Projection>): ViewDefinition<BoundState<Contract>, BoundManifest<Contract>, Projection>;
688
+ game<Definitions extends PhaseMapOf<Contract>, Views extends ViewMapOf<Contract>>(definition: Omit<ReducerGameDefinition<Contract, Definitions, Views>, "contract">): ReducerGameDefinition<Contract, Definitions, Views>;
689
+ sharedView<Projection>(definition: SharedViewDefinition<BoundState<Contract>, BoundManifest<Contract>, Projection>): SharedViewDefinition<BoundState<Contract>, BoundManifest<Contract>, Projection>;
690
+ playerView<SharedProjection = unknown, Projection = unknown>(definition: PlayerViewDefinition<BoundState<Contract>, BoundManifest<Contract>, SharedProjection, Projection>): PlayerViewDefinition<BoundState<Contract>, BoundManifest<Contract>, SharedProjection, Projection>;
691
+ emptyView(): EmptyViewDefinition<BoundState<Contract>, BoundManifest<Contract>>;
689
692
  staticView<Projection>(definition: StaticViewDefinition<ExactManifestContractOf<Contract>, Projection>): StaticViewDefinition<ExactManifestContractOf<Contract>, Projection>;
690
693
  phase<Name extends PhaseNameOfContract<Contract>>(name: Name): PhaseAuthoring<Contract, PhaseSchemasOfContract<Contract>[Name]>;
691
694
  };
@@ -715,7 +718,7 @@ declare function defineEffect<Contract extends AnyReducerGameContract>(): {
715
718
  <Id extends string, ContextSchema extends AnySchema = z.ZodObject<Record<string, never>, z.core.$strip>>(definition: EffectShufflePlayerZoneInput<Contract, Id, ContextSchema>): EffectShufflePlayerZoneDefinition<Id, ContextSchema, ContractState<Contract>, ContractManifest<Contract>>;
716
719
  };
717
720
 
718
- declare function defineGame<const Contract extends AnyReducerGameContract, Definitions extends PhaseMapOf<Contract>, Views extends ViewMapOf<Contract> = Record<string, never>>(definition: {
721
+ declare function defineGame<const Contract extends AnyReducerGameContract, Definitions extends PhaseMapOf<Contract>, Views extends ViewMapOf<Contract>>(definition: {
719
722
  contract: Contract;
720
723
  } & Omit<ReducerGameDefinition<NoInfer<Contract>, Definitions, Views>, "contract">): ReducerGameDefinition<Contract, Definitions, Views>;
721
724
 
@@ -723,10 +726,12 @@ declare function defineInteraction<Contract extends AnyReducerGameContract, Phas
723
726
  declare function defineInteractionRule<Contract extends AnyReducerGameContract, PhaseState extends PhaseStateInput = SchemaLike<object>>(): <Collectors extends Record<string, InputCollector> = Record<string, InputCollector>>(definition: InteractionRule<Collectors, ScopedPhaseState<ContractState<Contract>, InferPhaseState<PhaseState>>, ContractManifest<Contract>, ContractErrorCode<Contract>>) => InteractionRule<Collectors, ScopedPhaseState<ContractState<Contract>, InferPhaseState<PhaseState>>, ContractManifest<Contract>, ContractErrorCode<Contract>>;
724
727
  declare function defineCardAction<Contract extends AnyReducerGameContract, PhaseState extends PhaseStateInput>(): <Collectors extends Record<string, InputCollector> = Record<string, never>, const PlayFrom extends PlayerZoneIdOfManifest<ContractManifest<Contract>> = PlayerZoneIdOfManifest<ContractManifest<Contract>>>(definition: CardActionSpec<Collectors, ScopedPhaseState<ContractState<Contract>, InferPhaseState<PhaseState>>, ContractManifest<Contract>, PlayFrom, ContractErrorCode<Contract>>) => CardActionSpec<Collectors, ScopedPhaseState<ContractState<Contract>, InferPhaseState<PhaseState>>, ContractManifest<Contract>, PlayFrom, ContractErrorCode<Contract>>;
725
728
 
726
- declare function defineView<Contract extends AnyReducerGameContract>(): <Projection>(definition: ViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>) => ViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>;
729
+ declare function defineSharedView<Contract extends AnyReducerGameContract>(): <Projection>(definition: SharedViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>) => SharedViewDefinition<ContractState<Contract>, ContractManifest<Contract>, Projection>;
730
+ declare function definePlayerView<Contract extends AnyReducerGameContract>(): <SharedProjection = unknown, Projection = unknown>(definition: PlayerViewDefinition<ContractState<Contract>, ContractManifest<Contract>, SharedProjection, Projection>) => PlayerViewDefinition<ContractState<Contract>, ContractManifest<Contract>, SharedProjection, Projection>;
731
+ declare function defineEmptyView<Contract extends AnyReducerGameContract>(): EmptyViewDefinition<ContractState<Contract>, ContractManifest<Contract>>;
727
732
  /**
728
733
  * Factory for the session-scoped static view (see {@link StaticViewDefinition}).
729
- * Kept separate from {@link defineView} because the argument shape is
734
+ * Kept separate from dynamic view helpers because the argument shape is
730
735
  * structurally different: it exposes only the manifest and generated static
731
736
  * queries, with no `state`, `playerId`, `runtime`, `fx`, `ops`, or
732
737
  * `accept/reject`. That shape is what prevents authors from accidentally
@@ -785,6 +790,12 @@ type ReducerBundleOptions = {
785
790
  diagnostics?: ReducerDiagnosticsSink | InteractionDiagnosticsMode;
786
791
  descriptorDiagnostics?: InteractionDiagnosticsMode;
787
792
  };
793
+ type ProjectionTimingMetadata = {
794
+ resolveAvailableInteractionsMs: number;
795
+ resolveViewMs: number;
796
+ resolveZoneHandlesMs: number;
797
+ descriptorHashMs: number;
798
+ };
788
799
  type ReducerBundle = ReducerBundleContract & {
789
800
  createInProcessRuntime(): {
790
801
  initialize(input: {
@@ -809,13 +820,8 @@ type ReducerBundle = ReducerBundleContract & {
809
820
  errorCode: string;
810
821
  message?: string;
811
822
  }>;
812
- projectSeatViewDynamic(input: {
813
- playerId: unknown;
814
- viewId?: string;
815
- }): unknown;
816
823
  projectSeatsDynamic(input: {
817
824
  playerIds: unknown[];
818
- viewId?: string;
819
825
  projectionMode?: "full" | "actionsOnly";
820
826
  }): {
821
827
  currentStage: string | null;
@@ -827,12 +833,14 @@ type ReducerBundle = ReducerBundleContract & {
827
833
  sealedPlayerIds: string[];
828
834
  pendingPlayerIds: string[];
829
835
  } | null;
836
+ sharedView?: unknown;
830
837
  seats: Record<string, {
831
838
  view?: unknown;
832
839
  availableInteractionRefs: unknown;
833
840
  zones?: unknown;
834
841
  }>;
835
842
  interactionsByRef: Record<string, unknown>;
843
+ timing: ProjectionTimingMetadata;
836
844
  };
837
845
  explainInteraction(input: {
838
846
  playerId: unknown;
@@ -841,11 +849,6 @@ type ReducerBundle = ReducerBundleContract & {
841
849
  snapshot(): unknown;
842
850
  unsafeState(): unknown;
843
851
  };
844
- projectSeatViewDynamic(input: {
845
- state: unknown;
846
- playerId: unknown;
847
- viewId?: string;
848
- }): unknown;
849
852
  explainInteraction(input: {
850
853
  state: unknown;
851
854
  playerId: unknown;
@@ -896,4 +899,4 @@ declare function setActivePlayers<State extends {
896
899
  };
897
900
  }>(state: State, activePlayers: PlayerIdOfState<State>[]): State;
898
901
 
899
- export { type BoardTargetBuilder, type BoardTargetPredicate, type BoardTargetRule, type BoundInputBuilders, type BoundTargetRule, type CardTargetBuilder, type CardTargetPredicate, type CardTargetRule, type ChoiceOptionsFactory, type ChoiceTargetBuilder, type ChoiceTargetOption, type ChoiceTargetPredicate, type ChoiceTargetRule, type ContractAuthoring, type ContractFingerprint, type ContractWithPhases, type DefinedInputs, type DependencyValues, DerivedResolver, ErrorCodeOfContract, type InputFieldRef, InteractionRule, type ManyOptions, type PhaseAuthoring, PhaseMapOf, type PlayerBoardSpaceTarget, type ReducerBundle, type ReducerBundleOptions, ReducerDiagnosticsSink, ReducerGameContract, ReducerGameDefinition, type ReducerPhaseDefinition, type ReducerViewDefinition, type SparseCounts, type SparseMap, SystemActionEvent, TableQueries, TableQueriesOfState, type TargetContext, type TargetPredicate, type TargetPredicateArgs, type TargetRule, type TargetRuleBuilder, ValidationIssue, assertCardAllowedInContainer, boardInput, boardTarget, cardInput, cardTarget, choiceTarget, contractFingerprint, createContractAuthoring, createReducerBundle, createStateQueries, createTableQueries, defineCardAction, defineEffect, defineGame, defineGameContract, defineInputs, defineInteraction, defineInteractionRule, definePhase, definePhaseStage, defineStage, defineStaticView, defineStepPhase, defineView, formInput, gameEvent, many, normalizeCommandParams, promptInput, rngInput, setActivePlayers, sparseCounts, sparseMap };
902
+ export { type BoardTargetBuilder, type BoardTargetPredicate, type BoardTargetRule, type BoundInputBuilders, type BoundTargetRule, type CardTargetBuilder, type CardTargetPredicate, type CardTargetRule, type ChoiceOptionsFactory, type ChoiceTargetBuilder, type ChoiceTargetOption, type ChoiceTargetPredicate, type ChoiceTargetRule, type ContractAuthoring, type ContractFingerprint, type ContractWithPhases, type DefinedInputs, type DependencyValues, DerivedResolver, ErrorCodeOfContract, type InputFieldRef, InteractionRule, type ManyOptions, type PhaseAuthoring, PhaseMapOf, type PlayerBoardSpaceTarget, type ReducerBundle, type ReducerBundleOptions, ReducerDiagnosticsSink, ReducerGameContract, ReducerGameDefinition, type ReducerPhaseDefinition, type ReducerPlayerViewDefinition, type ReducerSharedViewDefinition, type SparseCounts, type SparseMap, SystemActionEvent, TableQueries, TableQueriesOfState, type TargetContext, type TargetPredicate, type TargetPredicateArgs, type TargetRule, type TargetRuleBuilder, ValidationIssue, assertCardAllowedInContainer, boardInput, boardTarget, cardInput, cardTarget, choiceTarget, contractFingerprint, createContractAuthoring, createReducerBundle, createStateQueries, createTableQueries, defineCardAction, defineEffect, defineEmptyView, defineGame, defineGameContract, defineInputs, defineInteraction, defineInteractionRule, definePhase, definePhaseStage, definePlayerView, defineSharedView, defineStage, defineStaticView, defineStepPhase, formInput, gameEvent, many, normalizeCommandParams, promptInput, rngInput, setActivePlayers, sparseCounts, sparseMap };