@bct-app/game-model 0.1.0 → 0.1.1

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 (43) hide show
  1. package/README.md +14 -10
  2. package/dist/index.d.ts +1172 -30
  3. package/dist/json-schema/ability-execution-timing.schema.json +8 -0
  4. package/dist/json-schema/ability.schema.json +2268 -0
  5. package/dist/json-schema/alignment-enum.schema.json +8 -0
  6. package/dist/json-schema/base-source.schema.json +64 -0
  7. package/dist/{schemas → json-schema}/character-basic-kind.schema.json +1 -1
  8. package/dist/{schemas → json-schema}/character-kind.schema.json +1 -1
  9. package/dist/json-schema/character.schema.json +123 -0
  10. package/dist/json-schema/chat-message-content.schema.json +65 -0
  11. package/dist/json-schema/chat-message-group.schema.json +37 -0
  12. package/dist/json-schema/chat-message-operation.schema.json +30 -0
  13. package/dist/json-schema/chat-message.schema.json +133 -0
  14. package/dist/json-schema/conversation.schema.json +252 -0
  15. package/dist/{schemas → json-schema}/effect.schema.json +375 -133
  16. package/dist/{schemas → json-schema}/game.schema.json +3 -16
  17. package/dist/json-schema/index.json +36 -0
  18. package/dist/{schemas → json-schema}/input.schema.json +108 -89
  19. package/dist/{schemas → json-schema}/message.schema.json +259 -35
  20. package/dist/json-schema/nomination.schema.json +29 -0
  21. package/dist/json-schema/operation.schema.json +28 -0
  22. package/dist/json-schema/player-display-format.schema.json +13 -0
  23. package/dist/json-schema/player-reminder.schema.json +19 -0
  24. package/dist/json-schema/player.schema.json +104 -0
  25. package/dist/json-schema/populated-character.schema.json +2344 -0
  26. package/dist/json-schema/populated-script.schema.json +2397 -0
  27. package/dist/json-schema/reminder.schema.json +24 -0
  28. package/dist/json-schema/room-create.schema.json +23 -0
  29. package/dist/json-schema/room-defaults.schema.json +72 -0
  30. package/dist/json-schema/room.schema.json +24 -0
  31. package/dist/json-schema/runtime-game.schema.json +162 -0
  32. package/dist/json-schema/script.schema.json +57 -0
  33. package/dist/json-schema/seat-side-enum.schema.json +9 -0
  34. package/dist/json-schema/special-message-kind.schema.json +7 -0
  35. package/dist/json-schema/target.schema.json +305 -0
  36. package/dist/json-schema/timeline.schema.json +87 -0
  37. package/dist/{schemas → json-schema}/view.schema.json +68 -42
  38. package/dist/zod.d.mts +4038 -0
  39. package/dist/zod.d.ts +4038 -0
  40. package/dist/zod.js +1129 -0
  41. package/dist/zod.mjs +1058 -0
  42. package/package.json +30 -15
  43. package/dist/schemas/index.json +0 -9
package/README.md CHANGED
@@ -2,19 +2,23 @@
2
2
 
3
3
  `@bct-app/game-model` uses Zod models as source of truth and generates:
4
4
 
5
- - JSON Schema files in `dist/schemas`
6
5
  - Pure declaration output in `dist/index.d.ts`
6
+ - Runtime Zod entry in `dist/zod.mjs` / `dist/zod.js`
7
+ - JSON Schema files in `dist/json-schema`
7
8
 
8
- Schema files are exported via package subpaths:
9
+ Exports:
9
10
 
10
- - `@bct-app/game-model/schemas` -> schema index map
11
- - `@bct-app/game-model/schemas/game`
12
- - `@bct-app/game-model/schemas/effect`
13
- - `@bct-app/game-model/schemas/input`
14
- - `@bct-app/game-model/schemas/view`
15
- - `@bct-app/game-model/schemas/message`
16
- - `@bct-app/game-model/schemas/character-kind`
17
- - `@bct-app/game-model/schemas/character-basic-kind`
11
+ - `@bct-app/game-model` -> type-only entry (for `import type`)
12
+ - `@bct-app/game-model/zod` -> runtime Zod schemas
13
+ - `@bct-app/game-model/json-schema` -> schema index map
14
+ - `@bct-app/game-model/json-schema/*` -> individual JSON schema files
15
+
16
+ Usage:
17
+
18
+ ```ts
19
+ import type { TGame } from '@bct-app/game-model';
20
+ import { Game } from '@bct-app/game-model/zod';
21
+ ```
18
22
 
19
23
  ## Build
20
24