@dreamboard-games/sdk 0.3.0-alpha.1 → 0.4.0-alpha.0

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 (56) hide show
  1. package/REFERENCE.md +19935 -0
  2. package/dist/{chunk-3RQEICD3.js → chunk-2LDZ5C3T.js} +2 -2
  3. package/dist/chunk-3OZMHZK3.js +40 -0
  4. package/dist/chunk-3OZMHZK3.js.map +1 -0
  5. package/dist/{chunk-TXXLS3OI.js → chunk-4G7552LO.js} +3 -3
  6. package/dist/{chunk-P7VMTJ5D.js → chunk-MNKDSGIA.js} +2 -2
  7. package/dist/{chunk-P7VMTJ5D.js.map → chunk-MNKDSGIA.js.map} +1 -1
  8. package/dist/{chunk-W6SGFWXH.js → chunk-NBAEEHAU.js} +101 -60
  9. package/dist/chunk-NBAEEHAU.js.map +1 -0
  10. package/dist/{chunk-ADYH6PVT.js → chunk-P7F4L2FF.js} +49 -25
  11. package/dist/chunk-P7F4L2FF.js.map +1 -0
  12. package/dist/{chunk-QZ6X4B5P.js → chunk-Q5O7GPVY.js} +1 -1
  13. package/dist/{chunk-QZ6X4B5P.js.map → chunk-Q5O7GPVY.js.map} +1 -1
  14. package/dist/chunk-U5KBV2BA.js +2654 -0
  15. package/dist/chunk-U5KBV2BA.js.map +1 -0
  16. package/dist/{chunk-Y2AFYBMB.js → chunk-Y6Y2YABD.js} +9 -5
  17. package/dist/chunk-Y6Y2YABD.js.map +1 -0
  18. package/dist/codegen.d.ts +44 -51
  19. package/dist/codegen.js +1 -1
  20. package/dist/{index.d-BGqVifr_.d.ts → index.d-BL3bT5lt.d.ts} +82 -3
  21. package/dist/index.js +1 -1
  22. package/dist/package-set.d.ts +2 -2
  23. package/dist/package-set.js +1 -1
  24. package/dist/reducer/advanced.d.ts +78 -0
  25. package/dist/reducer/advanced.js +139 -0
  26. package/dist/reducer/advanced.js.map +1 -0
  27. package/dist/reducer-contract.d.ts +1 -1
  28. package/dist/reducer-contract.js +2 -2
  29. package/dist/reducer.d.ts +363 -3263
  30. package/dist/reducer.js +2778 -4081
  31. package/dist/reducer.js.map +1 -1
  32. package/dist/runtime/primitives.d.ts +3 -3
  33. package/dist/runtime/primitives.js +3 -3
  34. package/dist/runtime/runtime-api.d.ts +1 -1
  35. package/dist/runtime/workspace-contract.d.ts +18 -4
  36. package/dist/runtime/workspace-contract.js +4 -4
  37. package/dist/{runtime-api-tGL3ArsB.d.ts → runtime-api-BXd70c2e.d.ts} +6 -0
  38. package/dist/runtime.d.ts +2 -2
  39. package/dist/runtime.js +85 -20
  40. package/dist/runtime.js.map +1 -1
  41. package/dist/stale-contract-artifact-error-BelRiIDR.d.ts +66 -0
  42. package/dist/testing.d.ts +59 -5
  43. package/dist/testing.js +170 -6
  44. package/dist/testing.js.map +1 -1
  45. package/dist/types.d.ts +112 -119
  46. package/dist/ui/components.js +1 -1
  47. package/dist/ui/plugin-styles.css +2 -250
  48. package/dist/{ui-contract-SctM4ibF.d.ts → ui-contract-BUC6iS3s.d.ts} +1 -1
  49. package/dist/ui.js +2 -2
  50. package/dist/views-B0hlW6IT.d.ts +3153 -0
  51. package/package.json +18 -10
  52. package/dist/chunk-ADYH6PVT.js.map +0 -1
  53. package/dist/chunk-W6SGFWXH.js.map +0 -1
  54. package/dist/chunk-Y2AFYBMB.js.map +0 -1
  55. /package/dist/{chunk-3RQEICD3.js.map → chunk-2LDZ5C3T.js.map} +0 -0
  56. /package/dist/{chunk-TXXLS3OI.js.map → chunk-4G7552LO.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../reducer-contract/generated/zod.ts","../../reducer-contract/generated/version.ts","../../reducer-contract/generated/builders.ts"],"sourcesContent":["// @generated by packages/reducer-contract/scripts/generate-ts.mjs\n// DO NOT EDIT BY HAND. Edit schema/reducer-runtime.schema.json and rerun `pnpm generate`.\n\n/* eslint-disable */\nimport { z } from \"zod\";\n\nexport const ReducerContractVersionSchema = z.string().regex(new RegExp(\"^[0-9]+\\\\.[0-9]+\\\\.[0-9]+$\"));\n\nexport const EffectIdSchema = z.string().min(1);\n\nlet JsonValueSchemaInternal: z.ZodType<unknown>;\nJsonValueSchemaInternal = z.lazy(() => z.union([z.record(z.string(), JsonValueSchemaInternal), z.array(JsonValueSchemaInternal), z.string(), z.number(), z.boolean(), z.null()]));\nexport const JsonValueSchema = JsonValueSchemaInternal;\n\nexport const ContinuationTokenSchema = z.object({ \"id\": z.string().min(1), \"data\": JsonValueSchema }).strict();\n\nexport const ContinuationMapSchema = z.record(z.string(), ContinuationTokenSchema);\n\nexport const ReducerSetupSelectionSchema = z.object({ \"profileId\": z.string().min(1), \"optionValues\": z.record(z.string(), z.union([z.string(), z.null()])) }).strict();\n\nexport const RngStateSchema = z.object({ \"seed\": z.union([z.number().refine(Number.isInteger, { message: \"Expected integer\" }), z.null()]), \"cursor\": z.number().int(), \"trace\": z.array(z.string()) }).strict();\n\nexport const ReducerFlowStateSchema = z.object({ \"currentPhase\": z.string().min(1), \"turn\": z.number().int(), \"round\": z.number().int(), \"activePlayers\": z.array(z.string().min(1)) }).strict();\n\nexport const RuntimeSimultaneousSubmissionSchema = z.object({ \"interactionId\": z.string().min(1), \"params\": JsonValueSchema }).strict();\n\nexport const RuntimeSimultaneousCurrentSchema = z.object({ \"phaseName\": z.string().min(1), \"actors\": z.array(z.string().min(1)), \"submissions\": z.record(z.string(), RuntimeSimultaneousSubmissionSchema) }).strict();\n\nexport const RuntimeSimultaneousStateSchema = z.object({ \"current\": z.union([RuntimeSimultaneousCurrentSchema, z.null()]) }).strict();\n\nexport const TransitionRecordSchema = z.object({ \"from\": z.string().min(1), \"to\": z.string().min(1) }).strict();\n\nexport const ReducerRuntimeStateSchema = z.object({ \"rng\": RngStateSchema, \"setup\": z.union([ReducerSetupSelectionSchema, z.null()]), \"simultaneous\": RuntimeSimultaneousStateSchema, \"lastTransition\": z.union([TransitionRecordSchema, z.null()]) }).strict();\n\nexport const ReducerDomainStateSchema = z.object({ \"table\": JsonValueSchema, \"publicState\": JsonValueSchema, \"privateState\": z.record(z.string(), JsonValueSchema), \"hiddenState\": JsonValueSchema, \"flow\": ReducerFlowStateSchema, \"phase\": JsonValueSchema }).strict();\n\nexport const ReducerSessionMetaSchema = z.object({ \"contractFingerprint\": z.string().regex(new RegExp(\"^cfp[0-9]+:[a-f0-9]{16}$\")) }).strict();\n\nexport const ReducerSessionStateSchema = z.object({ \"meta\": ReducerSessionMetaSchema.optional(), \"domain\": ReducerDomainStateSchema, \"runtime\": ReducerRuntimeStateSchema }).strict();\n\nexport const GameInputInteractionSchema = z.object({ \"kind\": z.literal(\"interaction\"), \"playerId\": z.string().min(1), \"interactionId\": z.string().min(1), \"params\": JsonValueSchema }).strict();\n\nexport const GameInputSchema = z.discriminatedUnion(\"kind\", [GameInputInteractionSchema]);\n\nexport const EffectTransitionSchema = z.object({ \"effectId\": EffectIdSchema, \"type\": z.literal(\"transition\"), \"to\": z.string().min(1) }).strict();\n\nexport const EffectRollDieSchema = z.object({ \"effectId\": EffectIdSchema, \"type\": z.literal(\"rollDie\"), \"dieId\": z.string().min(1) }).strict();\n\nexport const EffectShuffleSharedZoneSchema = z.object({ \"effectId\": EffectIdSchema, \"type\": z.literal(\"shuffleSharedZone\"), \"zoneId\": z.string().min(1) }).strict();\n\nexport const EffectShufflePlayerZoneSchema = z.object({ \"effectId\": EffectIdSchema, \"type\": z.literal(\"shufflePlayerZone\"), \"zoneId\": z.string().min(1), \"playerId\": z.string().min(1) }).strict();\n\nexport const EffectSchema = z.discriminatedUnion(\"type\", [EffectTransitionSchema, EffectRollDieSchema, EffectShuffleSharedZoneSchema, EffectShufflePlayerZoneSchema]);\n\nexport const ReducerInputValidationResultSchema = z.object({ \"valid\": z.boolean(), \"errorCode\": z.string().optional(), \"message\": z.string().optional() }).strict();\n\nexport const InitializeRequestSchema = z.object({ \"table\": JsonValueSchema, \"playerIds\": z.array(z.string().min(1)), \"rngSeed\": z.union([z.number().refine(Number.isInteger, { message: \"Expected integer\" }), z.null()]).optional(), \"setup\": z.union([ReducerSetupSelectionSchema, z.null()]).optional() }).strict();\n\nexport const InitializePhaseRequestSchema = z.object({ \"state\": ReducerSessionStateSchema, \"to\": z.string().min(1) }).strict();\n\nexport const ValidateInputRequestSchema = z.object({ \"state\": ReducerSessionStateSchema, \"input\": GameInputSchema }).strict();\n\nexport const ReduceRequestSchema = z.object({ \"state\": ReducerSessionStateSchema, \"input\": GameInputSchema }).strict();\n\nexport const DispatchRequestSchema = z.object({ \"state\": ReducerSessionStateSchema, \"input\": GameInputSchema }).strict();\n\nexport const ReduceResultRejectSchema = z.object({ \"kind\": z.literal(\"reject\"), \"errorCode\": z.string().min(1), \"message\": z.string().optional() }).strict();\n\nexport const TerminalOutcomeSchema = z.object({ \"winnerPlayerId\": z.string().min(1).optional(), \"finalScores\": z.record(z.string(), z.number().int()).optional(), \"reason\": z.string().min(1) }).strict();\n\nexport const ReduceResultAcceptSchema = z.object({ \"kind\": z.literal(\"accept\"), \"state\": ReducerSessionStateSchema, \"terminal\": TerminalOutcomeSchema.optional(), \"effects\": z.array(EffectSchema), \"continuations\": ContinuationMapSchema }).strict();\n\nexport const ReduceResultSchema = z.discriminatedUnion(\"kind\", [ReduceResultRejectSchema, ReduceResultAcceptSchema]);\n\nexport const DispatchTraceAcceptedClientInputSchema = z.object({ \"kind\": z.literal(\"acceptedClientInput\"), \"input\": GameInputSchema }).strict();\n\nexport const DispatchTraceAppliedEffectSchema = z.object({ \"kind\": z.literal(\"appliedEffect\"), \"effect\": EffectSchema, \"continuation\": ContinuationTokenSchema.optional() }).strict();\n\nexport const DispatchTraceRngConsumptionSchema = z.object({ \"kind\": z.literal(\"rngConsumption\"), \"operation\": z.string().min(1), \"traceEntry\": z.string() }).strict();\n\nexport const DispatchTraceSchema = z.discriminatedUnion(\"kind\", [DispatchTraceAcceptedClientInputSchema, DispatchTraceAppliedEffectSchema, DispatchTraceRngConsumptionSchema]);\n\nexport const DispatchResultRejectSchema = z.object({ \"kind\": z.literal(\"reject\"), \"errorCode\": z.string().min(1), \"message\": z.string().optional() }).strict();\n\nexport const DispatchResultAcceptSchema = z.object({ \"kind\": z.literal(\"accept\"), \"state\": ReducerSessionStateSchema, \"terminal\": TerminalOutcomeSchema.optional(), \"trace\": z.array(DispatchTraceSchema) }).strict();\n\nexport const DispatchResultSchema = z.discriminatedUnion(\"kind\", [DispatchResultRejectSchema, DispatchResultAcceptSchema]);\n\nexport const ReducerRuntimeLogEntryAcceptedClientInputSchema = z.object({ \"kind\": z.literal(\"acceptedClientInput\"), \"version\": z.number().int(), \"input\": GameInputSchema }).strict();\n\nexport const ReducerRuntimeLogEntryAppliedEffectSchema = z.object({ \"kind\": z.literal(\"appliedEffect\"), \"version\": z.number().int(), \"effect\": EffectSchema, \"continuation\": z.union([ContinuationTokenSchema, z.null()]) }).strict();\n\nexport const ReducerRuntimeLogEntryRngConsumptionSchema = z.object({ \"kind\": z.literal(\"rngConsumption\"), \"version\": z.number().int(), \"operation\": z.string().min(1), \"traceEntry\": z.string() }).strict();\n\nexport const ReducerRuntimeLogEntryStateCommitSchema = z.object({ \"kind\": z.literal(\"stateCommit\"), \"version\": z.number().int(), \"state\": ReducerSessionStateSchema }).strict();\n\nexport const ReducerRuntimeLogEntrySchema = z.discriminatedUnion(\"kind\", [ReducerRuntimeLogEntryAcceptedClientInputSchema, ReducerRuntimeLogEntryAppliedEffectSchema, ReducerRuntimeLogEntryRngConsumptionSchema, ReducerRuntimeLogEntryStateCommitSchema]);\n\nexport const SeatProjectionSchema = z.object({ \"view\": JsonValueSchema.optional(), \"availableInteractionRefs\": JsonValueSchema.optional(), \"zones\": JsonValueSchema.optional() }).strict();\n\nexport const SimultaneousPhaseProjectionSchema = z.object({ \"phaseName\": z.string().min(1), \"interactionId\": z.string().min(1), \"actorIds\": z.array(z.string().min(1)), \"sealedPlayerIds\": z.array(z.string().min(1)), \"pendingPlayerIds\": z.array(z.string().min(1)) }).strict();\n\nexport const SeatProjectionBundleSchema = z.object({ \"currentStage\": z.union([z.string().min(1), z.null()]).optional(), \"stageSeats\": z.array(z.string().min(1)).optional(), \"simultaneousPhase\": z.union([SimultaneousPhaseProjectionSchema, z.null()]).optional(), \"interactionsByRef\": JsonValueSchema.optional(), \"seats\": z.record(z.string(), SeatProjectionSchema) }).strict();\n\nexport const ProjectSeatsDynamicRequestSchema = z.object({ \"state\": ReducerSessionStateSchema, \"playerIds\": z.array(z.string().min(1)), \"viewId\": z.string().min(1).optional(), \"projectionMode\": z.union([z.enum([\"full\", \"actionsOnly\"]), z.null()]).optional() }).strict();\n\nexport const BoardStaticProjectionSchema = z.object({ \"view\": JsonValueSchema, \"hash\": z.string().min(1), \"manifestVersion\": z.string() }).strict();\n","// @generated by packages/reducer-contract/scripts/generate-ts.mjs\n// DO NOT EDIT BY HAND. Edit schema/reducer-runtime.schema.json and rerun `pnpm generate`.\n\n/**\n * The wire-protocol version this package implements. Bumped in lockstep with\n * any breaking change to schema/reducer-runtime.schema.json. At bundle load\n * time hosts refuse bundles whose major version differs.\n */\nexport const REDUCER_CONTRACT_VERSION = \"0.2.1\" as const;\n","// @generated by packages/reducer-contract/scripts/generate-ts.mjs\n// DO NOT EDIT BY HAND. Edit schema/reducer-runtime.schema.json and rerun `pnpm generate`.\n\n/* eslint-disable */\nimport type * as Wire from \"./wire\";\n\n/**\n * Typed effect constructors. Authors MUST go through these; hand-constructing\n * Wire.Effect objects is banned by convention because it's how wire drift\n * re-enters the codebase.\n *\n * The `effectId` is minted by the runtime (see createEffectIdMinter below),\n * not by the author. Each builder returns a `PendingEffect` that carries\n * the optional continuation; the reducer bundle's accept materializer splits\n * pending effects into the wire's `effects[]` + `continuations` map.\n */\n\nexport type PendingEffect = Wire.Effect & {\n readonly __continuation?: Wire.ContinuationToken;\n};\n\nexport type EffectIdMinter = () => Wire.EffectId;\n\n/**\n * Produces sequential, deterministic effect ids scoped to a single accept\n * payload: \"ef0\", \"ef1\", ... . Uniqueness only needs to be local to the\n * payload because the host consumes and discards them per dispatch.\n */\nexport function createEffectIdMinter(): EffectIdMinter {\n let i = 0;\n return () => `ef${i++}` as Wire.EffectId;\n}\n\nexport type EffectBuilders = {\n transition(args: { to: string }, continuation?: Wire.ContinuationToken): PendingEffect;\n rollDie(args: { dieId: string }, continuation?: Wire.ContinuationToken): PendingEffect;\n shuffleSharedZone(args: { zoneId: string }, continuation?: Wire.ContinuationToken): PendingEffect;\n shufflePlayerZone(args: { zoneId: string; playerId: string }, continuation?: Wire.ContinuationToken): PendingEffect;\n};\n\nexport function createEffectBuilders(mint: EffectIdMinter): EffectBuilders {\n return {\n transition(args, continuation) {\n const effect = { effectId: mint(), type: \"transition\" as const, to: args.to };\n return continuation === undefined\n ? (effect as PendingEffect)\n : Object.assign(effect, { __continuation: continuation });\n },\n rollDie(args, continuation) {\n const effect = { effectId: mint(), type: \"rollDie\" as const, dieId: args.dieId };\n return continuation === undefined\n ? (effect as PendingEffect)\n : Object.assign(effect, { __continuation: continuation });\n },\n shuffleSharedZone(args, continuation) {\n const effect = { effectId: mint(), type: \"shuffleSharedZone\" as const, zoneId: args.zoneId };\n return continuation === undefined\n ? (effect as PendingEffect)\n : Object.assign(effect, { __continuation: continuation });\n },\n shufflePlayerZone(args, continuation) {\n const effect = { effectId: mint(), type: \"shufflePlayerZone\" as const, zoneId: args.zoneId, playerId: args.playerId };\n return continuation === undefined\n ? (effect as PendingEffect)\n : Object.assign(effect, { __continuation: continuation });\n },\n };\n}\n\n/**\n * Takes a list of PendingEffects and splits them into the canonical wire\n * shape: `effects[]` (stripped of `__continuation`) + `continuations` map\n * keyed by effectId. Use at the boundary where reduce/dispatch results leave\n * author code and enter the wire.\n */\nexport function materializeAccept(pending: ReadonlyArray<PendingEffect>): {\n effects: Wire.Effect[];\n continuations: Wire.ContinuationMap;\n} {\n const effects: Wire.Effect[] = [];\n const continuations: Wire.ContinuationMap = {};\n for (const pe of pending) {\n const { __continuation, ...effect } = pe as PendingEffect & { __continuation?: Wire.ContinuationToken };\n effects.push(effect as Wire.Effect);\n if (__continuation !== undefined) {\n continuations[(effect as Wire.Effect).effectId] = __continuation;\n }\n }\n return { effects, continuations };\n}\n"],"mappings":";;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,SAAS,SAAS;AAEX,IAAM,+BAA+B,EAAE,OAAO,EAAE,MAAM,IAAI,OAAO,4BAA4B,CAAC;AAE9F,IAAM,iBAAiB,EAAE,OAAO,EAAE,IAAI,CAAC;AAE9C,IAAI;AACJ,0BAA0B,EAAE,KAAK,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,OAAO,GAAG,uBAAuB,GAAG,EAAE,MAAM,uBAAuB,GAAG,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,QAAQ,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;AACzK,IAAM,kBAAkB;AAExB,IAAM,0BAA0B,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,QAAQ,gBAAgB,CAAC,EAAE,OAAO;AAEtG,IAAM,wBAAwB,EAAE,OAAO,EAAE,OAAO,GAAG,uBAAuB;AAE1E,IAAM,8BAA8B,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO;AAE/J,IAAM,iBAAiB,EAAE,OAAO,EAAE,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,GAAG,MAAM,cAAuB,IAAI,KAAK,GAAG;AAC5E,aAAO,iBAAiB,SACnB,SACD,OAAO,OAAO,QAAQ,EAAE,gBAAgB,aAAa,CAAC;AAAA,IAC5D;AAAA,IACA,QAAQ,MAAM,cAAc;AAC1B,YAAM,SAAS,EAAE,UAAU,KAAK,GAAG,MAAM,WAAoB,OAAO,KAAK,MAAM;AAC/E,aAAO,iBAAiB,SACnB,SACD,OAAO,OAAO,QAAQ,EAAE,gBAAgB,aAAa,CAAC;AAAA,IAC5D;AAAA,IACA,kBAAkB,MAAM,cAAc;AACpC,YAAM,SAAS,EAAE,UAAU,KAAK,GAAG,MAAM,qBAA8B,QAAQ,KAAK,OAAO;AAC3F,aAAO,iBAAiB,SACnB,SACD,OAAO,OAAO,QAAQ,EAAE,gBAAgB,aAAa,CAAC;AAAA,IAC5D;AAAA,IACA,kBAAkB,MAAM,cAAc;AACpC,YAAM,SAAS,EAAE,UAAU,KAAK,GAAG,MAAM,qBAA8B,QAAQ,KAAK,QAAQ,UAAU,KAAK,SAAS;AACpH,aAAO,iBAAiB,SACnB,SACD,OAAO,OAAO,QAAQ,EAAE,gBAAgB,aAAa,CAAC;AAAA,IAC5D;AAAA,EACF;AACF;AAQO,SAAS,kBAAkB,SAGhC;AACA,QAAM,UAAyB,CAAC;AAChC,QAAM,gBAAsC,CAAC;AAC7C,aAAW,MAAM,SAAS;AACxB,UAAM,EAAE,gBAAgB,GAAG,OAAO,IAAI;AACtC,YAAQ,KAAK,MAAqB;AAClC,QAAI,mBAAmB,QAAW;AAChC,oBAAe,OAAuB,QAAQ,IAAI;AAAA,IACpD;AAAA,EACF;AACA,SAAO,EAAE,SAAS,cAAc;AAClC;","names":[]}
package/dist/codegen.d.ts CHANGED
@@ -22,7 +22,7 @@ type PresetCardSetDefinition = {
22
22
  /**
23
23
  * Type of card set source
24
24
  */
25
- type: 'preset';
25
+ type: "preset";
26
26
  };
27
27
  /**
28
28
  * Arbitrary authored JSON value.
@@ -34,7 +34,7 @@ type PropertySchema = {
34
34
  /**
35
35
  * The data type of the property.
36
36
  */
37
- type: 'string' | 'integer' | 'number' | 'boolean' | 'zoneId' | 'cardId' | 'playerId' | 'boardId' | 'edgeId' | 'vertexId' | 'spaceId' | 'pieceId' | 'dieId' | 'resourceId' | 'array' | 'object' | 'record' | 'enum';
37
+ type: "string" | "integer" | "number" | "boolean" | "zoneId" | "cardId" | "playerId" | "boardId" | "edgeId" | "vertexId" | "spaceId" | "pieceId" | "dieId" | "resourceId" | "array" | "object" | "record" | "enum";
38
38
  /**
39
39
  * Optional description of the property's purpose and usage.
40
40
  */
@@ -97,19 +97,19 @@ type CardPropertySchemaVariants = {
97
97
  };
98
98
  type CardPropertySchema = ObjectSchema | CardPropertySchemaVariants;
99
99
  type DetachedHomeSpec = {
100
- type: 'detached';
100
+ type: "detached";
101
101
  };
102
102
  type ZoneHomeSpec = {
103
- type: 'zone';
103
+ type: "zone";
104
104
  zoneId: string;
105
105
  };
106
106
  type SpaceHomeSpec = {
107
- type: 'space';
107
+ type: "space";
108
108
  boardId: string;
109
109
  spaceId: string;
110
110
  };
111
111
  type ContainerHomeSpec = {
112
- type: 'container';
112
+ type: "container";
113
113
  boardId: string;
114
114
  containerId: string;
115
115
  };
@@ -120,7 +120,7 @@ type BoardEdgeRef = {
120
120
  spaces: Array<string>;
121
121
  };
122
122
  type EdgeHomeSpec = {
123
- type: 'edge';
123
+ type: "edge";
124
124
  boardId: string;
125
125
  ref: BoardEdgeRef;
126
126
  };
@@ -131,42 +131,42 @@ type BoardVertexRef = {
131
131
  spaces: Array<string>;
132
132
  };
133
133
  type VertexHomeSpec = {
134
- type: 'vertex';
134
+ type: "vertex";
135
135
  boardId: string;
136
136
  ref: BoardVertexRef;
137
137
  };
138
138
  type PieceSlotHostRef = {
139
- kind: 'piece';
139
+ kind: "piece";
140
140
  id: string;
141
141
  };
142
142
  type DieSlotHostRef = {
143
- kind: 'die';
143
+ kind: "die";
144
144
  id: string;
145
145
  };
146
146
  type SlotHostRef = ({
147
- kind: 'piece';
147
+ kind: "piece";
148
148
  } & PieceSlotHostRef) | ({
149
- kind: 'die';
149
+ kind: "die";
150
150
  } & DieSlotHostRef);
151
151
  type SlotHomeSpec = {
152
- type: 'slot';
152
+ type: "slot";
153
153
  host: SlotHostRef;
154
154
  slotId: string;
155
155
  };
156
156
  type ComponentHomeSpec = ({
157
- type: 'detached';
157
+ type: "detached";
158
158
  } & DetachedHomeSpec) | ({
159
- type: 'zone';
159
+ type: "zone";
160
160
  } & ZoneHomeSpec) | ({
161
- type: 'space';
161
+ type: "space";
162
162
  } & SpaceHomeSpec) | ({
163
- type: 'container';
163
+ type: "container";
164
164
  } & ContainerHomeSpec) | ({
165
- type: 'edge';
165
+ type: "edge";
166
166
  } & EdgeHomeSpec) | ({
167
- type: 'vertex';
167
+ type: "vertex";
168
168
  } & VertexHomeSpec) | ({
169
- type: 'slot';
169
+ type: "slot";
170
170
  } & SlotHomeSpec);
171
171
  /**
172
172
  * Default authored visibility for a component instance
@@ -230,7 +230,7 @@ type ManualCardSetDefinition = {
230
230
  /**
231
231
  * Type of card set source
232
232
  */
233
- type: 'manual';
233
+ type: "manual";
234
234
  /**
235
235
  * Schema definition for authored card properties in this card set
236
236
  */
@@ -241,18 +241,18 @@ type ManualCardSetDefinition = {
241
241
  cards: Array<BoardCard>;
242
242
  };
243
243
  type CardSetDefinition = ({
244
- type: 'preset';
244
+ type: "preset";
245
245
  } & PresetCardSetDefinition) | ({
246
- type: 'manual';
246
+ type: "manual";
247
247
  } & ManualCardSetDefinition);
248
248
  /**
249
249
  * Whether authored topology exists once for the table or once per player
250
250
  */
251
- type TopologyScope = 'shared' | 'perPlayer';
251
+ type TopologyScope = "shared" | "perPlayer";
252
252
  /**
253
253
  * Default topology visibility for a zone or slot
254
254
  */
255
- type ZoneVisibility = 'ownerOnly' | 'public' | 'hidden';
255
+ type ZoneVisibility = "ownerOnly" | "public" | "hidden";
256
256
  /**
257
257
  * Generic authored container that can hold cards, pieces, or dice
258
258
  */
@@ -318,16 +318,16 @@ type BoardRelationSpec = {
318
318
  };
319
319
  };
320
320
  type BoardHostSpec = {
321
- type: 'board';
321
+ type: "board";
322
322
  };
323
323
  type SpaceHostSpec = {
324
- type: 'space';
324
+ type: "space";
325
325
  spaceId: string;
326
326
  };
327
327
  type BoardContainerHostSpec = ({
328
- type: 'board';
328
+ type: "board";
329
329
  } & BoardHostSpec) | ({
330
- type: 'space';
330
+ type: "space";
331
331
  } & SpaceHostSpec);
332
332
  /**
333
333
  * Authored board-attached or space-attached container/slot
@@ -359,7 +359,7 @@ type GenericBoardTemplateSpec = {
359
359
  */
360
360
  id: string;
361
361
  name: string;
362
- layout: 'generic';
362
+ layout: "generic";
363
363
  /**
364
364
  * Optional authored board type identifier such as track, map, tableau, or grid
365
365
  */
@@ -375,7 +375,7 @@ type GenericBoardTemplateSpec = {
375
375
  /**
376
376
  * Visual orientation for authored hex coordinates
377
377
  */
378
- type HexOrientation = 'pointy-top' | 'flat-top';
378
+ type HexOrientation = "pointy-top" | "flat-top";
379
379
  /**
380
380
  * One authored hex space in axial coordinates
381
381
  */
@@ -411,10 +411,7 @@ type HexSpaceSpec = {
411
411
  * Hex edge identified by two adjacent hex spaces
412
412
  */
413
413
  type HexEdgeRef = {
414
- spaces: [
415
- string,
416
- string
417
- ];
414
+ spaces: [string, string];
418
415
  };
419
416
  /**
420
417
  * Authored metadata attached to one derived hex edge
@@ -441,11 +438,7 @@ type HexEdgeSpec = {
441
438
  * Hex vertex identified by three touching hex spaces
442
439
  */
443
440
  type HexVertexRef = {
444
- spaces: [
445
- string,
446
- string,
447
- string
448
- ];
441
+ spaces: [string, string, string];
449
442
  };
450
443
  /**
451
444
  * Authored metadata attached to one derived hex vertex
@@ -477,7 +470,7 @@ type HexBoardTemplateSpec = {
477
470
  */
478
471
  id: string;
479
472
  name: string;
480
- layout: 'hex';
473
+ layout: "hex";
481
474
  /**
482
475
  * Optional authored board type identifier
483
476
  */
@@ -573,7 +566,7 @@ type SquareBoardTemplateSpec = {
573
566
  */
574
567
  id: string;
575
568
  name: string;
576
- layout: 'square';
569
+ layout: "square";
577
570
  /**
578
571
  * Optional authored board type identifier
579
572
  */
@@ -591,11 +584,11 @@ type SquareBoardTemplateSpec = {
591
584
  vertices?: Array<SquareVertexSpec>;
592
585
  };
593
586
  type BoardTemplateSpec = ({
594
- layout: 'generic';
587
+ layout: "generic";
595
588
  } & GenericBoardTemplateSpec) | ({
596
- layout: 'hex';
589
+ layout: "hex";
597
590
  } & HexBoardTemplateSpec) | ({
598
- layout: 'square';
591
+ layout: "square";
599
592
  } & SquareBoardTemplateSpec);
600
593
  /**
601
594
  * Shared or per-player authored board instance shell
@@ -606,7 +599,7 @@ type GenericBoardSpec = {
606
599
  */
607
600
  id: string;
608
601
  name: string;
609
- layout: 'generic';
602
+ layout: "generic";
610
603
  /**
611
604
  * Optional authored board type identifier such as track, map, tableau, or grid
612
605
  */
@@ -639,7 +632,7 @@ type HexBoardSpec = {
639
632
  */
640
633
  id: string;
641
634
  name: string;
642
- layout: 'hex';
635
+ layout: "hex";
643
636
  /**
644
637
  * Optional authored board type identifier
645
638
  */
@@ -673,7 +666,7 @@ type SquareBoardSpec = {
673
666
  */
674
667
  id: string;
675
668
  name: string;
676
- layout: 'square';
669
+ layout: "square";
677
670
  /**
678
671
  * Optional authored board type identifier
679
672
  */
@@ -702,11 +695,11 @@ type SquareBoardSpec = {
702
695
  vertices?: Array<SquareVertexSpec>;
703
696
  };
704
697
  type BoardSpec = ({
705
- layout: 'generic';
698
+ layout: "generic";
706
699
  } & GenericBoardSpec) | ({
707
- layout: 'hex';
700
+ layout: "hex";
708
701
  } & HexBoardSpec) | ({
709
- layout: 'square';
702
+ layout: "square";
710
703
  } & SquareBoardSpec);
711
704
  /**
712
705
  * Named authored slot exposed by a piece or die type
package/dist/codegen.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  materializeManifestTable,
19
19
  materializePresetCardSet,
20
20
  validateManifestAuthoring
21
- } from "./chunk-W6SGFWXH.js";
21
+ } from "./chunk-NBAEEHAU.js";
22
22
  import "./chunk-PZ5AY32C.js";
23
23
  export {
24
24
  AUTHORITATIVE_GENERATED_FILES,
@@ -55,7 +55,11 @@ type ReducerDomainState = {
55
55
  "flow": ReducerFlowState;
56
56
  "phase": JsonValue;
57
57
  };
58
+ type ReducerSessionMeta = {
59
+ "contractFingerprint": string;
60
+ };
58
61
  type ReducerSessionState = {
62
+ "meta"?: ReducerSessionMeta;
59
63
  "domain": ReducerDomainState;
60
64
  "runtime": ReducerRuntimeState;
61
65
  };
@@ -124,6 +128,7 @@ type ReduceResultReject = {
124
128
  type ReduceResultAccept = {
125
129
  "kind": "accept";
126
130
  "state": ReducerSessionState;
131
+ "terminal"?: TerminalOutcome;
127
132
  "effects": Array<Effect>;
128
133
  "continuations": ContinuationMap;
129
134
  };
@@ -151,8 +156,14 @@ type DispatchResultReject = {
151
156
  type DispatchResultAccept = {
152
157
  "kind": "accept";
153
158
  "state": ReducerSessionState;
159
+ "terminal"?: TerminalOutcome;
154
160
  "trace": Array<DispatchTrace>;
155
161
  };
162
+ type TerminalOutcome = {
163
+ "winnerPlayerId"?: string;
164
+ "finalScores"?: Record<string, number>;
165
+ "reason": string;
166
+ };
156
167
  type ReducerRuntimeLogEntry = ReducerRuntimeLogEntryAcceptedClientInput | ReducerRuntimeLogEntryAppliedEffect | ReducerRuntimeLogEntryRngConsumption | ReducerRuntimeLogEntryStateCommit;
157
168
  type ReducerRuntimeLogEntryAcceptedClientInput = {
158
169
  "kind": "acceptedClientInput";
@@ -244,6 +255,7 @@ type wire_ReducerRuntimeLogEntryAppliedEffect = ReducerRuntimeLogEntryAppliedEff
244
255
  type wire_ReducerRuntimeLogEntryRngConsumption = ReducerRuntimeLogEntryRngConsumption;
245
256
  type wire_ReducerRuntimeLogEntryStateCommit = ReducerRuntimeLogEntryStateCommit;
246
257
  type wire_ReducerRuntimeState = ReducerRuntimeState;
258
+ type wire_ReducerSessionMeta = ReducerSessionMeta;
247
259
  type wire_ReducerSessionState = ReducerSessionState;
248
260
  type wire_ReducerSetupSelection = ReducerSetupSelection;
249
261
  type wire_RngState = RngState;
@@ -253,10 +265,11 @@ type wire_RuntimeSimultaneousSubmission = RuntimeSimultaneousSubmission;
253
265
  type wire_SeatProjection = SeatProjection;
254
266
  type wire_SeatProjectionBundle = SeatProjectionBundle;
255
267
  type wire_SimultaneousPhaseProjection = SimultaneousPhaseProjection;
268
+ type wire_TerminalOutcome = TerminalOutcome;
256
269
  type wire_TransitionRecord = TransitionRecord;
257
270
  type wire_ValidateInputRequest = ValidateInputRequest;
258
271
  declare namespace wire {
259
- 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_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, 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_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_TransitionRecord as TransitionRecord, wire_ValidateInputRequest as ValidateInputRequest };
272
+ 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_GameInput as GameInput, wire_GameInputInteraction as GameInputInteraction, wire_InitializePhaseRequest as InitializePhaseRequest, wire_InitializeRequest as InitializeRequest, wire_JsonValue as JsonValue, 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_TerminalOutcome as TerminalOutcome, wire_TransitionRecord as TransitionRecord, wire_ValidateInputRequest as ValidateInputRequest };
260
273
  }
261
274
 
262
275
  declare const ReducerContractVersionSchema: z.ZodString;
@@ -349,7 +362,13 @@ declare const ReducerDomainStateSchema: z.ZodObject<{
349
362
  }, z.core.$strict>;
350
363
  phase: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
351
364
  }, z.core.$strict>;
365
+ declare const ReducerSessionMetaSchema: z.ZodObject<{
366
+ contractFingerprint: z.ZodString;
367
+ }, z.core.$strict>;
352
368
  declare const ReducerSessionStateSchema: z.ZodObject<{
369
+ meta: z.ZodOptional<z.ZodObject<{
370
+ contractFingerprint: z.ZodString;
371
+ }, z.core.$strict>>;
353
372
  domain: z.ZodObject<{
354
373
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
355
374
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -456,6 +475,9 @@ declare const InitializeRequestSchema: z.ZodObject<{
456
475
  }, z.core.$strict>;
457
476
  declare const InitializePhaseRequestSchema: z.ZodObject<{
458
477
  state: z.ZodObject<{
478
+ meta: z.ZodOptional<z.ZodObject<{
479
+ contractFingerprint: z.ZodString;
480
+ }, z.core.$strict>>;
459
481
  domain: z.ZodObject<{
460
482
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
461
483
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -499,6 +521,9 @@ declare const InitializePhaseRequestSchema: z.ZodObject<{
499
521
  }, z.core.$strict>;
500
522
  declare const ValidateInputRequestSchema: z.ZodObject<{
501
523
  state: z.ZodObject<{
524
+ meta: z.ZodOptional<z.ZodObject<{
525
+ contractFingerprint: z.ZodString;
526
+ }, z.core.$strict>>;
502
527
  domain: z.ZodObject<{
503
528
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
504
529
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -547,6 +572,9 @@ declare const ValidateInputRequestSchema: z.ZodObject<{
547
572
  }, z.core.$strict>;
548
573
  declare const ReduceRequestSchema: z.ZodObject<{
549
574
  state: z.ZodObject<{
575
+ meta: z.ZodOptional<z.ZodObject<{
576
+ contractFingerprint: z.ZodString;
577
+ }, z.core.$strict>>;
550
578
  domain: z.ZodObject<{
551
579
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
552
580
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -595,6 +623,9 @@ declare const ReduceRequestSchema: z.ZodObject<{
595
623
  }, z.core.$strict>;
596
624
  declare const DispatchRequestSchema: z.ZodObject<{
597
625
  state: z.ZodObject<{
626
+ meta: z.ZodOptional<z.ZodObject<{
627
+ contractFingerprint: z.ZodString;
628
+ }, z.core.$strict>>;
598
629
  domain: z.ZodObject<{
599
630
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
600
631
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -646,9 +677,17 @@ declare const ReduceResultRejectSchema: z.ZodObject<{
646
677
  errorCode: z.ZodString;
647
678
  message: z.ZodOptional<z.ZodString>;
648
679
  }, z.core.$strict>;
680
+ declare const TerminalOutcomeSchema: z.ZodObject<{
681
+ winnerPlayerId: z.ZodOptional<z.ZodString>;
682
+ finalScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
683
+ reason: z.ZodString;
684
+ }, z.core.$strict>;
649
685
  declare const ReduceResultAcceptSchema: z.ZodObject<{
650
686
  kind: z.ZodLiteral<"accept">;
651
687
  state: z.ZodObject<{
688
+ meta: z.ZodOptional<z.ZodObject<{
689
+ contractFingerprint: z.ZodString;
690
+ }, z.core.$strict>>;
652
691
  domain: z.ZodObject<{
653
692
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
654
693
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -688,6 +727,11 @@ declare const ReduceResultAcceptSchema: z.ZodObject<{
688
727
  }, z.core.$strict>, z.ZodNull]>;
689
728
  }, z.core.$strict>;
690
729
  }, z.core.$strict>;
730
+ terminal: z.ZodOptional<z.ZodObject<{
731
+ winnerPlayerId: z.ZodOptional<z.ZodString>;
732
+ finalScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
733
+ reason: z.ZodString;
734
+ }, z.core.$strict>>;
691
735
  effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
692
736
  effectId: z.ZodString;
693
737
  type: z.ZodLiteral<"transition">;
@@ -718,6 +762,9 @@ declare const ReduceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
718
762
  }, z.core.$strict>, z.ZodObject<{
719
763
  kind: z.ZodLiteral<"accept">;
720
764
  state: z.ZodObject<{
765
+ meta: z.ZodOptional<z.ZodObject<{
766
+ contractFingerprint: z.ZodString;
767
+ }, z.core.$strict>>;
721
768
  domain: z.ZodObject<{
722
769
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
723
770
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -757,6 +804,11 @@ declare const ReduceResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
757
804
  }, z.core.$strict>, z.ZodNull]>;
758
805
  }, z.core.$strict>;
759
806
  }, z.core.$strict>;
807
+ terminal: z.ZodOptional<z.ZodObject<{
808
+ winnerPlayerId: z.ZodOptional<z.ZodString>;
809
+ finalScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
810
+ reason: z.ZodString;
811
+ }, z.core.$strict>>;
760
812
  effects: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
761
813
  effectId: z.ZodString;
762
814
  type: z.ZodLiteral<"transition">;
@@ -864,6 +916,9 @@ declare const DispatchResultRejectSchema: z.ZodObject<{
864
916
  declare const DispatchResultAcceptSchema: z.ZodObject<{
865
917
  kind: z.ZodLiteral<"accept">;
866
918
  state: z.ZodObject<{
919
+ meta: z.ZodOptional<z.ZodObject<{
920
+ contractFingerprint: z.ZodString;
921
+ }, z.core.$strict>>;
867
922
  domain: z.ZodObject<{
868
923
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
869
924
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -903,6 +958,11 @@ declare const DispatchResultAcceptSchema: z.ZodObject<{
903
958
  }, z.core.$strict>, z.ZodNull]>;
904
959
  }, z.core.$strict>;
905
960
  }, z.core.$strict>;
961
+ terminal: z.ZodOptional<z.ZodObject<{
962
+ winnerPlayerId: z.ZodOptional<z.ZodString>;
963
+ finalScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
964
+ reason: z.ZodString;
965
+ }, z.core.$strict>>;
906
966
  trace: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
907
967
  kind: z.ZodLiteral<"acceptedClientInput">;
908
968
  input: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -948,6 +1008,9 @@ declare const DispatchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
948
1008
  }, z.core.$strict>, z.ZodObject<{
949
1009
  kind: z.ZodLiteral<"accept">;
950
1010
  state: z.ZodObject<{
1011
+ meta: z.ZodOptional<z.ZodObject<{
1012
+ contractFingerprint: z.ZodString;
1013
+ }, z.core.$strict>>;
951
1014
  domain: z.ZodObject<{
952
1015
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
953
1016
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -987,6 +1050,11 @@ declare const DispatchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
987
1050
  }, z.core.$strict>, z.ZodNull]>;
988
1051
  }, z.core.$strict>;
989
1052
  }, z.core.$strict>;
1053
+ terminal: z.ZodOptional<z.ZodObject<{
1054
+ winnerPlayerId: z.ZodOptional<z.ZodString>;
1055
+ finalScores: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1056
+ reason: z.ZodString;
1057
+ }, z.core.$strict>>;
990
1058
  trace: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
991
1059
  kind: z.ZodLiteral<"acceptedClientInput">;
992
1060
  input: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -1071,6 +1139,9 @@ declare const ReducerRuntimeLogEntryStateCommitSchema: z.ZodObject<{
1071
1139
  kind: z.ZodLiteral<"stateCommit">;
1072
1140
  version: z.ZodNumber;
1073
1141
  state: z.ZodObject<{
1142
+ meta: z.ZodOptional<z.ZodObject<{
1143
+ contractFingerprint: z.ZodString;
1144
+ }, z.core.$strict>>;
1074
1145
  domain: z.ZodObject<{
1075
1146
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1076
1147
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -1154,6 +1225,9 @@ declare const ReducerRuntimeLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject
1154
1225
  kind: z.ZodLiteral<"stateCommit">;
1155
1226
  version: z.ZodNumber;
1156
1227
  state: z.ZodObject<{
1228
+ meta: z.ZodOptional<z.ZodObject<{
1229
+ contractFingerprint: z.ZodString;
1230
+ }, z.core.$strict>>;
1157
1231
  domain: z.ZodObject<{
1158
1232
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1159
1233
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -1225,6 +1299,9 @@ declare const SeatProjectionBundleSchema: z.ZodObject<{
1225
1299
  }, z.core.$strict>;
1226
1300
  declare const ProjectSeatsDynamicRequestSchema: z.ZodObject<{
1227
1301
  state: z.ZodObject<{
1302
+ meta: z.ZodOptional<z.ZodObject<{
1303
+ contractFingerprint: z.ZodString;
1304
+ }, z.core.$strict>>;
1228
1305
  domain: z.ZodObject<{
1229
1306
  table: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
1230
1307
  publicState: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
@@ -1314,6 +1391,7 @@ declare const zod_ReducerRuntimeLogEntryRngConsumptionSchema: typeof ReducerRunt
1314
1391
  declare const zod_ReducerRuntimeLogEntrySchema: typeof ReducerRuntimeLogEntrySchema;
1315
1392
  declare const zod_ReducerRuntimeLogEntryStateCommitSchema: typeof ReducerRuntimeLogEntryStateCommitSchema;
1316
1393
  declare const zod_ReducerRuntimeStateSchema: typeof ReducerRuntimeStateSchema;
1394
+ declare const zod_ReducerSessionMetaSchema: typeof ReducerSessionMetaSchema;
1317
1395
  declare const zod_ReducerSessionStateSchema: typeof ReducerSessionStateSchema;
1318
1396
  declare const zod_ReducerSetupSelectionSchema: typeof ReducerSetupSelectionSchema;
1319
1397
  declare const zod_RngStateSchema: typeof RngStateSchema;
@@ -1323,10 +1401,11 @@ declare const zod_RuntimeSimultaneousSubmissionSchema: typeof RuntimeSimultaneou
1323
1401
  declare const zod_SeatProjectionBundleSchema: typeof SeatProjectionBundleSchema;
1324
1402
  declare const zod_SeatProjectionSchema: typeof SeatProjectionSchema;
1325
1403
  declare const zod_SimultaneousPhaseProjectionSchema: typeof SimultaneousPhaseProjectionSchema;
1404
+ declare const zod_TerminalOutcomeSchema: typeof TerminalOutcomeSchema;
1326
1405
  declare const zod_TransitionRecordSchema: typeof TransitionRecordSchema;
1327
1406
  declare const zod_ValidateInputRequestSchema: typeof ValidateInputRequestSchema;
1328
1407
  declare namespace zod {
1329
- 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_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, 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_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_TransitionRecordSchema as TransitionRecordSchema, zod_ValidateInputRequestSchema as ValidateInputRequestSchema };
1408
+ 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_GameInputInteractionSchema as GameInputInteractionSchema, zod_GameInputSchema as GameInputSchema, zod_InitializePhaseRequestSchema as InitializePhaseRequestSchema, zod_InitializeRequestSchema as InitializeRequestSchema, zod_JsonValueSchema as JsonValueSchema, 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_TerminalOutcomeSchema as TerminalOutcomeSchema, zod_TransitionRecordSchema as TransitionRecordSchema, zod_ValidateInputRequestSchema as ValidateInputRequestSchema };
1330
1409
  }
1331
1410
 
1332
1411
  /**
@@ -1334,7 +1413,7 @@ declare namespace zod {
1334
1413
  * any breaking change to schema/reducer-runtime.schema.json. At bundle load
1335
1414
  * time hosts refuse bundles whose major version differs.
1336
1415
  */
1337
- declare const REDUCER_CONTRACT_VERSION: "0.2.0";
1416
+ declare const REDUCER_CONTRACT_VERSION: "0.2.1";
1338
1417
 
1339
1418
  type MaybePromise<T> = T | Promise<T>;
1340
1419
  /**
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  DREAMBOARD_SDK_PACKAGES,
3
3
  DREAMBOARD_SDK_PACKAGE_SET,
4
4
  DREAMBOARD_SDK_VERSION
5
- } from "./chunk-P7VMTJ5D.js";
5
+ } from "./chunk-MNKDSGIA.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
  export {
8
8
  DREAMBOARD_SDK_PACKAGES,
@@ -1,6 +1,6 @@
1
- declare const DREAMBOARD_SDK_VERSION = "0.3.0-alpha.1";
1
+ declare const DREAMBOARD_SDK_VERSION = "0.4.0-alpha.0";
2
2
  declare const DREAMBOARD_SDK_PACKAGES: {
3
- readonly "@dreamboard-games/sdk": "0.3.0-alpha.1";
3
+ readonly "@dreamboard-games/sdk": "0.4.0-alpha.0";
4
4
  };
5
5
  type DreamboardSdkPackageName = keyof typeof DREAMBOARD_SDK_PACKAGES;
6
6
  type DreamboardSdkPackageSet = {
@@ -2,7 +2,7 @@ import {
2
2
  DREAMBOARD_SDK_PACKAGES,
3
3
  DREAMBOARD_SDK_PACKAGE_SET,
4
4
  DREAMBOARD_SDK_VERSION
5
- } from "./chunk-P7VMTJ5D.js";
5
+ } from "./chunk-MNKDSGIA.js";
6
6
  import "./chunk-PZ5AY32C.js";
7
7
  export {
8
8
  DREAMBOARD_SDK_PACKAGES,