briyah 2.0.2 → 2.0.4

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 (477) hide show
  1. package/LICENSE +216 -0
  2. package/README.md +43 -7
  3. package/data/common/config/LICENSE-model-prices.md +65 -0
  4. package/data/common/config/markup +1 -1
  5. package/data/common/config/model_prices.json +47443 -46295
  6. package/data/common/prompts/narrator/create_story.prompt +2 -0
  7. package/data/packs/dnd5e/agents/player.json +11 -11
  8. package/data/packs/dnd5e/prompts/character_creator/defaults_config.json +21 -20
  9. package/data/packs/dnd5e/prompts/character_creator/perceive.prompt +19 -12
  10. package/data/packs/dnd5e/prompts/dnd_player/perceive.prompt +10 -6
  11. package/dist-sdk/server/src/ai/LLM/anthropic.service.d.ts +103 -0
  12. package/dist-sdk/server/src/ai/LLM/anthropic.service.js +173 -2
  13. package/dist-sdk/server/src/ai/LLM/base-ai.service.d.ts +172 -3
  14. package/dist-sdk/server/src/ai/LLM/base-ai.service.js +241 -5
  15. package/dist-sdk/server/src/ai/LLM/comfyui-client.d.ts +26 -0
  16. package/dist-sdk/server/src/ai/LLM/comfyui-client.js +25 -0
  17. package/dist-sdk/server/src/ai/LLM/comfyui-workflow.d.ts +54 -0
  18. package/dist-sdk/server/src/ai/LLM/comfyui-workflow.js +59 -1
  19. package/dist-sdk/server/src/ai/LLM/comfyui.service.d.ts +21 -1
  20. package/dist-sdk/server/src/ai/LLM/comfyui.service.js +25 -1
  21. package/dist-sdk/server/src/ai/LLM/deepseek.service.d.ts +52 -0
  22. package/dist-sdk/server/src/ai/LLM/deepseek.service.js +102 -3
  23. package/dist-sdk/server/src/ai/LLM/fal.service.d.ts +25 -0
  24. package/dist-sdk/server/src/ai/LLM/fal.service.js +55 -1
  25. package/dist-sdk/server/src/ai/LLM/googleai.service.d.ts +19 -0
  26. package/dist-sdk/server/src/ai/LLM/googleai.service.js +42 -1
  27. package/dist-sdk/server/src/ai/LLM/grok.service.d.ts +22 -0
  28. package/dist-sdk/server/src/ai/LLM/grok.service.js +54 -2
  29. package/dist-sdk/server/src/ai/LLM/mock.service.js +31 -4
  30. package/dist-sdk/server/src/ai/LLM/openai.service.d.ts +30 -0
  31. package/dist-sdk/server/src/ai/LLM/openai.service.js +80 -2
  32. package/dist-sdk/server/src/ai/LLM/self-hosted.service.d.ts +21 -0
  33. package/dist-sdk/server/src/ai/LLM/self-hosted.service.js +44 -2
  34. package/dist-sdk/server/src/ai/LLM/together.service.d.ts +30 -0
  35. package/dist-sdk/server/src/ai/LLM/together.service.js +60 -2
  36. package/dist-sdk/server/src/ai/agent-config.d.ts +15 -0
  37. package/dist-sdk/server/src/ai/agent-factory.d.ts +16 -0
  38. package/dist-sdk/server/src/ai/agent-factory.js +20 -0
  39. package/dist-sdk/server/src/ai/agent-message.service.d.ts +30 -0
  40. package/dist-sdk/server/src/ai/agent-message.service.js +30 -0
  41. package/dist-sdk/server/src/ai/agent-store.service.d.ts +80 -0
  42. package/dist-sdk/server/src/ai/agent-store.service.js +166 -5
  43. package/dist-sdk/server/src/ai/agent.d.ts +196 -0
  44. package/dist-sdk/server/src/ai/agent.js +224 -11
  45. package/dist-sdk/server/src/ai/ai-debug-logger.d.ts +18 -0
  46. package/dist-sdk/server/src/ai/ai-debug-logger.js +19 -0
  47. package/dist-sdk/server/src/ai/ai-factory.service.d.ts +9 -0
  48. package/dist-sdk/server/src/ai/ai-factory.service.js +9 -0
  49. package/dist-sdk/server/src/ai/artifact.service.d.ts +131 -0
  50. package/dist-sdk/server/src/ai/artifact.service.js +148 -3
  51. package/dist-sdk/server/src/ai/attached-file.service.d.ts +87 -0
  52. package/dist-sdk/server/src/ai/attached-file.service.js +105 -0
  53. package/dist-sdk/server/src/ai/model_prices.d.ts +30 -0
  54. package/dist-sdk/server/src/ai/model_prices.js +91 -5
  55. package/dist-sdk/server/src/ai/pack-artifacts.d.ts +84 -0
  56. package/dist-sdk/server/src/ai/pack-artifacts.js +168 -0
  57. package/dist-sdk/server/src/ai/published-agents.service.d.ts +25 -0
  58. package/dist-sdk/server/src/ai/published-agents.service.js +30 -3
  59. package/dist-sdk/server/src/app/balance-message.service.d.ts +24 -0
  60. package/dist-sdk/server/src/app/balance-message.service.js +24 -0
  61. package/dist-sdk/server/src/app/balance.module.d.ts +4 -0
  62. package/dist-sdk/server/src/app/balance.module.js +4 -0
  63. package/dist-sdk/server/src/app/balance.service.d.ts +37 -0
  64. package/dist-sdk/server/src/app/balance.service.js +54 -0
  65. package/dist-sdk/server/src/app/stripe.controller.d.ts +21 -0
  66. package/dist-sdk/server/src/app/stripe.controller.js +35 -0
  67. package/dist-sdk/server/src/app/stripe.service.d.ts +43 -0
  68. package/dist-sdk/server/src/app/stripe.service.js +62 -0
  69. package/dist-sdk/server/src/app/transaction.service.d.ts +27 -0
  70. package/dist-sdk/server/src/app/transaction.service.js +36 -0
  71. package/dist-sdk/server/src/app/user-service-factory.d.ts +8 -0
  72. package/dist-sdk/server/src/app/user-service-factory.js +38 -1
  73. package/dist-sdk/server/src/app/user-service-manager.d.ts +27 -0
  74. package/dist-sdk/server/src/app/user-service-manager.js +43 -0
  75. package/dist-sdk/server/src/app.controller.d.ts +87 -0
  76. package/dist-sdk/server/src/app.controller.js +272 -12
  77. package/dist-sdk/server/src/app.module.js +28 -6
  78. package/dist-sdk/server/src/app.service.d.ts +1662 -0
  79. package/dist-sdk/server/src/app.service.js +1862 -6
  80. package/dist-sdk/server/src/auth/agent-access.decorator.d.ts +17 -0
  81. package/dist-sdk/server/src/auth/agent-access.decorator.js +17 -0
  82. package/dist-sdk/server/src/auth/auth.controller.js +46 -0
  83. package/dist-sdk/server/src/auth/auth.module.js +3 -2
  84. package/dist-sdk/server/src/auth/auth.service.d.ts +33 -0
  85. package/dist-sdk/server/src/auth/auth.service.js +39 -3
  86. package/dist-sdk/server/src/auth/jwt-auth.guard.js +18 -0
  87. package/dist-sdk/server/src/auth/jwt.strategy.js +2 -2
  88. package/dist-sdk/server/src/auth/owner-only.decorator.d.ts +9 -0
  89. package/dist-sdk/server/src/auth/owner-only.decorator.js +9 -0
  90. package/dist-sdk/server/src/auth/phone-validation.service.d.ts +25 -0
  91. package/dist-sdk/server/src/auth/phone-validation.service.js +30 -0
  92. package/dist-sdk/server/src/auth/rate-limit.service.d.ts +19 -0
  93. package/dist-sdk/server/src/auth/rate-limit.service.js +24 -0
  94. package/dist-sdk/server/src/auth/room-access.decorator.d.ts +8 -0
  95. package/dist-sdk/server/src/auth/room-access.decorator.js +8 -0
  96. package/dist-sdk/server/src/auth/scopes.decorator.d.ts +7 -0
  97. package/dist-sdk/server/src/auth/scopes.decorator.js +7 -0
  98. package/dist-sdk/server/src/auth/scopes.guard.d.ts +16 -0
  99. package/dist-sdk/server/src/auth/scopes.guard.js +30 -0
  100. package/dist-sdk/server/src/auth/session.guard.d.ts +4 -0
  101. package/dist-sdk/server/src/auth/session.guard.js +8 -0
  102. package/dist-sdk/server/src/auth/twilio.service.d.ts +27 -0
  103. package/dist-sdk/server/src/auth/twilio.service.js +30 -4
  104. package/dist-sdk/server/src/auth/users.service.d.ts +30 -0
  105. package/dist-sdk/server/src/auth/users.service.js +42 -0
  106. package/dist-sdk/server/src/common/errors.d.ts +20 -0
  107. package/dist-sdk/server/src/common/errors.js +21 -0
  108. package/dist-sdk/server/src/config/env-config.d.ts +7 -0
  109. package/dist-sdk/server/src/config/prompt-resolver.d.ts +180 -0
  110. package/dist-sdk/server/src/config/prompt-resolver.js +182 -0
  111. package/dist-sdk/server/src/config/user-config.service.d.ts +59 -0
  112. package/dist-sdk/server/src/config/user-config.service.js +57 -0
  113. package/dist-sdk/server/src/config/user-paths.service.d.ts +61 -0
  114. package/dist-sdk/server/src/config/user-paths.service.js +67 -0
  115. package/dist-sdk/server/src/documents/pdf-conversion.d.ts +121 -1
  116. package/dist-sdk/server/src/documents/pdf-conversion.js +94 -0
  117. package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +98 -0
  118. package/dist-sdk/server/src/packs/pack-instantiation.service.js +99 -0
  119. package/dist-sdk/server/src/packs/pack-manifest.d.ts +100 -0
  120. package/dist-sdk/server/src/packs/pack-manifest.js +58 -0
  121. package/dist-sdk/server/src/packs/pack.service.d.ts +99 -1
  122. package/dist-sdk/server/src/packs/pack.service.js +98 -1
  123. package/dist-sdk/server/src/room/artifact-store.service.d.ts +27 -0
  124. package/dist-sdk/server/src/room/artifact-store.service.js +49 -3
  125. package/dist-sdk/server/src/room/artifact.d.ts +18 -0
  126. package/dist-sdk/server/src/room/message.d.ts +64 -0
  127. package/dist-sdk/server/src/room/message.js +77 -2
  128. package/dist-sdk/server/src/room/nickname.d.ts +27 -0
  129. package/dist-sdk/server/src/room/nickname.js +41 -0
  130. package/dist-sdk/server/src/room/published-rooms.service.js +2 -0
  131. package/dist-sdk/server/src/room/room-config.d.ts +26 -0
  132. package/dist-sdk/server/src/room/room-factory.d.ts +12 -0
  133. package/dist-sdk/server/src/room/room-factory.js +14 -0
  134. package/dist-sdk/server/src/room/room-message.service.d.ts +28 -0
  135. package/dist-sdk/server/src/room/room-message.service.js +28 -0
  136. package/dist-sdk/server/src/room/room-store.service.d.ts +177 -0
  137. package/dist-sdk/server/src/room/room-store.service.js +242 -5
  138. package/dist-sdk/server/src/room/room.d.ts +906 -1
  139. package/dist-sdk/server/src/room/room.js +1525 -34
  140. package/dist-sdk/server/src/rpg/rpg-models.d.ts +50 -0
  141. package/dist-sdk/server/src/rpg/rpg-models.js +53 -0
  142. package/dist-sdk/server/src/rpg/rpg-roster.d.ts +38 -3
  143. package/dist-sdk/server/src/rpg/rpg-roster.js +49 -49
  144. package/dist-sdk/server/src/rpg/rpg.service.d.ts +87 -0
  145. package/dist-sdk/server/src/rpg/rpg.service.js +108 -5
  146. package/dist-sdk/server/src/sdk/briyah-config.d.ts +57 -0
  147. package/dist-sdk/server/src/sdk/briyah-config.js +17 -0
  148. package/dist-sdk/server/src/sdk/briyah.d.ts +228 -0
  149. package/dist-sdk/server/src/sdk/briyah.js +285 -7
  150. package/dist-sdk/server/src/sdk/index.d.ts +0 -1
  151. package/dist-sdk/server/src/sdk/index.js +24 -3
  152. package/dist-sdk/server/src/shared/shared.module.d.ts +8 -0
  153. package/dist-sdk/server/src/shared/shared.module.js +13 -5
  154. package/dist-sdk/server/src/story/story-message.service.d.ts +43 -0
  155. package/dist-sdk/server/src/story/story-message.service.js +43 -0
  156. package/dist-sdk/server/src/story/story-progress.service.d.ts +23 -0
  157. package/dist-sdk/server/src/story/story-progress.service.js +23 -0
  158. package/dist-sdk/server/src/story/story-store.service.d.ts +92 -0
  159. package/dist-sdk/server/src/story/story-store.service.js +136 -1
  160. package/dist-sdk/server/src/story/story.service.d.ts +398 -0
  161. package/dist-sdk/server/src/story/story.service.js +829 -25
  162. package/dist-sdk/server/src/tools/core/index.d.ts +25 -0
  163. package/dist-sdk/server/src/tools/core/index.js +31 -0
  164. package/dist-sdk/server/src/tools/core/rename.tool.d.ts +10 -0
  165. package/dist-sdk/server/src/tools/core/rename.tool.js +72 -0
  166. package/dist-sdk/server/src/tools/native-tool-registry.service.d.ts +22 -0
  167. package/dist-sdk/server/src/tools/native-tool-registry.service.js +22 -0
  168. package/dist-sdk/server/src/tools/native-tool.types.d.ts +186 -0
  169. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.d.ts +29 -0
  170. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.js +29 -0
  171. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.d.ts +46 -0
  172. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.js +40 -0
  173. package/dist-sdk/server/src/tools/packs/dnd5e/data/feats.d.ts +33 -0
  174. package/dist-sdk/server/src/tools/packs/dnd5e/data/feats.js +19 -0
  175. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.d.ts +37 -0
  176. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.generated.d.ts +17 -0
  177. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.generated.js +17 -0
  178. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.js +27 -0
  179. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.d.ts +36 -0
  180. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.js +32 -0
  181. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.d.ts +32 -0
  182. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.generated.d.ts +13 -0
  183. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.generated.js +13 -0
  184. package/dist-sdk/server/src/tools/packs/dnd5e/data/magic-items.js +18 -0
  185. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.d.ts +54 -0
  186. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.generated.d.ts +13 -0
  187. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.generated.js +13 -0
  188. package/dist-sdk/server/src/tools/packs/dnd5e/data/monsters.js +20 -0
  189. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.d.ts +36 -0
  190. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.js +18 -0
  191. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.d.ts +29 -0
  192. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.generated.d.ts +13 -0
  193. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.generated.js +13 -0
  194. package/dist-sdk/server/src/tools/packs/dnd5e/data/spells.js +21 -0
  195. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.d.ts +95 -0
  196. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.js +66 -2
  197. package/dist-sdk/server/src/tools/packs/dnd5e/data/weapons.d.ts +50 -0
  198. package/dist-sdk/server/src/tools/packs/dnd5e/data/weapons.js +28 -0
  199. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.d.ts +92 -0
  200. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.js +152 -0
  201. package/dist-sdk/server/src/tools/packs/dnd5e/engine/campaign-items.d.ts +28 -0
  202. package/dist-sdk/server/src/tools/packs/dnd5e/engine/campaign-items.js +29 -0
  203. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.d.ts +31 -0
  204. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.js +36 -2
  205. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +261 -0
  206. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +401 -0
  207. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.d.ts +11 -0
  208. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.js +11 -0
  209. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.d.ts +65 -0
  210. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.js +67 -0
  211. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +73 -0
  212. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +63 -0
  213. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encumbrance.d.ts +66 -0
  214. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encumbrance.js +59 -0
  215. package/dist-sdk/server/src/tools/packs/dnd5e/engine/feats.d.ts +54 -0
  216. package/dist-sdk/server/src/tools/packs/dnd5e/engine/feats.js +49 -0
  217. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.d.ts +42 -0
  218. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +59 -0
  219. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.d.ts +72 -0
  220. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.js +63 -0
  221. package/dist-sdk/server/src/tools/packs/dnd5e/engine/items.d.ts +57 -0
  222. package/dist-sdk/server/src/tools/packs/dnd5e/engine/items.js +54 -0
  223. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.d.ts +81 -0
  224. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.js +85 -0
  225. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.d.ts +60 -0
  226. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +64 -0
  227. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.d.ts +169 -0
  228. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.js +203 -0
  229. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +192 -0
  230. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +144 -0
  231. package/dist-sdk/server/src/tools/packs/dnd5e/engine/spells.d.ts +56 -0
  232. package/dist-sdk/server/src/tools/packs/dnd5e/engine/spells.js +54 -0
  233. package/dist-sdk/server/src/tools/packs/dnd5e/engine/weapons.d.ts +65 -0
  234. package/dist-sdk/server/src/tools/packs/dnd5e/engine/weapons.js +73 -0
  235. package/dist-sdk/server/src/tools/packs/dnd5e/index.d.ts +18 -0
  236. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +18 -0
  237. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.d.ts +4 -0
  238. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +116 -1
  239. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.d.ts +14 -0
  240. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.js +17 -0
  241. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.d.ts +1 -0
  242. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +35 -1
  243. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.d.ts +6 -0
  244. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +25 -0
  245. package/dist-sdk/server/src/tools/packs/dnd5e/tools/item.tool.d.ts +7 -0
  246. package/dist-sdk/server/src/tools/packs/dnd5e/tools/item.tool.js +13 -0
  247. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.d.ts +8 -0
  248. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +55 -0
  249. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +164 -0
  250. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +188 -1
  251. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.d.ts +1 -0
  252. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +125 -1
  253. package/dist-sdk/server/src/tools/packs/dnd5e/tools/spell.tool.d.ts +13 -0
  254. package/dist-sdk/server/src/tools/packs/dnd5e/tools/spell.tool.js +18 -0
  255. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.d.ts +1 -0
  256. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.js +23 -0
  257. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.d.ts +1 -0
  258. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +35 -0
  259. package/dist-sdk/server/src/tools/packs/index.d.ts +52 -2
  260. package/dist-sdk/server/src/tools/packs/index.js +83 -9
  261. package/dist-sdk/server/src/tools/shared/coerce.d.ts +95 -0
  262. package/dist-sdk/server/src/tools/shared/coerce.js +98 -0
  263. package/dist-sdk/server/src/tools/tool-execution.service.d.ts +73 -0
  264. package/dist-sdk/server/src/tools/tool-execution.service.js +74 -0
  265. package/dist-sdk/server/src/tools/tool-store.service.d.ts +11 -0
  266. package/dist-sdk/server/src/tools/tool-store.service.js +13 -1
  267. package/dist-sdk/shared/types/app.types.d.ts +285 -14
  268. package/dist-sdk/shared/types/app.types.js +3 -0
  269. package/package.json +167 -139
  270. package/data/common/config/random_words.txt +0 -2241
  271. package/data/common/story_ideas/biblical.json +0 -122
  272. package/data/common/story_ideas/fantasy.json +0 -82
  273. package/data/common/story_ideas/historical_fiction.json +0 -82
  274. package/data/common/story_ideas/science_fiction.json +0 -82
  275. package/data/packs/acts/agents/character-guide.json +0 -6
  276. package/data/packs/acts/agents/discipleship-mentor.json +0 -6
  277. package/data/packs/acts/agents/mentor-coach.json +0 -6
  278. package/data/packs/acts/agents/student.json +0 -13
  279. package/data/packs/acts/agents/table-moderator.json +0 -6
  280. package/data/packs/acts/artifacts/chapter-01-acts-1.md +0 -405
  281. package/data/packs/acts/artifacts/chapter-02-acts-2.md +0 -443
  282. package/data/packs/acts/artifacts/chapter-03-acts-3.md +0 -409
  283. package/data/packs/acts/artifacts/chapter-04-acts-4.md +0 -438
  284. package/data/packs/acts/artifacts/chapter-05-acts-5.md +0 -434
  285. package/data/packs/acts/artifacts/chapter-06-acts-6.md +0 -441
  286. package/data/packs/acts/artifacts/chapter-07-acts-7.md +0 -472
  287. package/data/packs/acts/artifacts/chapter-08-acts-8.md +0 -512
  288. package/data/packs/acts/artifacts/chapter-09-acts-9.md +0 -346
  289. package/data/packs/acts/artifacts/chapter-10-acts-10.md +0 -367
  290. package/data/packs/acts/artifacts/chapter-11-acts-11.md +0 -391
  291. package/data/packs/acts/artifacts/chapter-12-acts-12.md +0 -390
  292. package/data/packs/acts/artifacts/chapter-13-acts-13.md +0 -388
  293. package/data/packs/acts/artifacts/chapter-14-acts-14.md +0 -466
  294. package/data/packs/acts/artifacts/chapter-15-acts-15.md +0 -413
  295. package/data/packs/acts/artifacts/chapter-16-acts-16.md +0 -585
  296. package/data/packs/acts/artifacts/chapter-17-acts-17.md +0 -428
  297. package/data/packs/acts/artifacts/chapter-18-acts-18.md +0 -486
  298. package/data/packs/acts/artifacts/chapter-19-acts-19.md +0 -461
  299. package/data/packs/acts/artifacts/chapter-20-acts-20.md +0 -389
  300. package/data/packs/acts/artifacts/chapter-21-acts-21.md +0 -452
  301. package/data/packs/acts/artifacts/chapter-22-acts-22.md +0 -424
  302. package/data/packs/acts/artifacts/chapter-23-acts-23.md +0 -395
  303. package/data/packs/acts/artifacts/chapter-24-acts-24.md +0 -446
  304. package/data/packs/acts/artifacts/chapter-25-acts-25.md +0 -391
  305. package/data/packs/acts/artifacts/chapter-26-acts-26.md +0 -431
  306. package/data/packs/acts/artifacts/chapter-27-acts-27.md +0 -530
  307. package/data/packs/acts/artifacts/chapter-28-acts-28.md +0 -1871
  308. package/data/packs/acts/artifacts/chapters.manifest.json +0 -170
  309. package/data/packs/acts/artifacts/character_guide-creation.md +0 -112
  310. package/data/packs/acts/artifacts/discipleship_mentor-procedure.md +0 -154
  311. package/data/packs/acts/artifacts/discipleship_mentor-systems.md +0 -72
  312. package/data/packs/acts/artifacts/manifest.json +0 -197
  313. package/data/packs/acts/artifacts/stage-guide.md +0 -94
  314. package/data/packs/acts/pack.json +0 -6
  315. package/data/packs/acts/prompts/acts_player/defaults_config.json +0 -5
  316. package/data/packs/acts/prompts/acts_player/perceive.json +0 -29
  317. package/data/packs/acts/prompts/acts_player/perceive.prompt +0 -87
  318. package/data/packs/acts/prompts/acts_player/system_instruction.prompt +0 -0
  319. package/data/packs/acts/prompts/acts_room_moderator/defaults_config.json +0 -9
  320. package/data/packs/acts/prompts/acts_room_moderator/moderate.json +0 -34
  321. package/data/packs/acts/prompts/acts_room_moderator/moderate.prompt +0 -70
  322. package/data/packs/acts/prompts/acts_room_moderator/system_instruction.prompt +0 -0
  323. package/data/packs/acts/prompts/character_guide/defaults_config.json +0 -18
  324. package/data/packs/acts/prompts/character_guide/perceive.json +0 -29
  325. package/data/packs/acts/prompts/character_guide/perceive.prompt +0 -140
  326. package/data/packs/acts/prompts/character_guide/system_instruction.prompt +0 -0
  327. package/data/packs/acts/prompts/discipleship_mentor/defaults_config.json +0 -23
  328. package/data/packs/acts/prompts/discipleship_mentor/perceive.json +0 -33
  329. package/data/packs/acts/prompts/discipleship_mentor/perceive.prompt +0 -245
  330. package/data/packs/acts/prompts/discipleship_mentor/system_instruction.prompt +0 -0
  331. package/data/packs/acts/prompts/mentor_coach/defaults_config.json +0 -13
  332. package/data/packs/acts/prompts/mentor_coach/perceive.json +0 -29
  333. package/data/packs/acts/prompts/mentor_coach/perceive.prompt +0 -87
  334. package/data/packs/acts/prompts/mentor_coach/system_instruction.prompt +0 -0
  335. package/data/packs/acts/rooms/session.json +0 -14
  336. package/data/packs/acts/rooms/training.json +0 -58
  337. package/dist-sdk/server/src/tools/packs/acts/data/cards.d.ts +0 -53
  338. package/dist-sdk/server/src/tools/packs/acts/data/cards.js +0 -54
  339. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.d.ts +0 -2
  340. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.js +0 -185
  341. package/dist-sdk/server/src/tools/packs/acts/data/encounters.d.ts +0 -12
  342. package/dist-sdk/server/src/tools/packs/acts/data/encounters.js +0 -102
  343. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.d.ts +0 -2
  344. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.js +0 -196
  345. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.d.ts +0 -2
  346. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.js +0 -1311
  347. package/dist-sdk/server/src/tools/packs/acts/engine/cards.d.ts +0 -5
  348. package/dist-sdk/server/src/tools/packs/acts/engine/cards.js +0 -27
  349. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.d.ts +0 -37
  350. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.js +0 -120
  351. package/dist-sdk/server/src/tools/packs/acts/engine/dice.d.ts +0 -20
  352. package/dist-sdk/server/src/tools/packs/acts/engine/dice.js +0 -41
  353. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.d.ts +0 -54
  354. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.js +0 -200
  355. package/dist-sdk/server/src/tools/packs/acts/index.d.ts +0 -2
  356. package/dist-sdk/server/src/tools/packs/acts/index.js +0 -24
  357. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.d.ts +0 -2
  358. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.js +0 -184
  359. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.d.ts +0 -2
  360. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.js +0 -107
  361. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.d.ts +0 -3
  362. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.js +0 -146
  363. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.d.ts +0 -4
  364. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.js +0 -241
  365. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.d.ts +0 -3
  366. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.js +0 -72
  367. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.d.ts +0 -2
  368. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.js +0 -75
  369. package/dist-sdk/server/src/tools/packs/acts/tools/shared.d.ts +0 -20
  370. package/dist-sdk/server/src/tools/packs/acts/tools/shared.js +0 -70
  371. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.d.ts +0 -4
  372. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.js +0 -215
  373. package/docs/.nojekyll +0 -1
  374. package/docs/assets/hierarchy.js +0 -1
  375. package/docs/assets/highlight.css +0 -113
  376. package/docs/assets/icons.js +0 -18
  377. package/docs/assets/icons.svg +0 -1
  378. package/docs/assets/main.js +0 -60
  379. package/docs/assets/navigation.js +0 -1
  380. package/docs/assets/search.js +0 -1
  381. package/docs/assets/style.css +0 -1648
  382. package/docs/classes/Agent.html +0 -801
  383. package/docs/classes/Briyah.html +0 -296
  384. package/docs/classes/BriyahConfigService.html +0 -119
  385. package/docs/classes/NativeToolRegistry.html +0 -166
  386. package/docs/classes/PackInstantiationService.html +0 -157
  387. package/docs/classes/PackService.html +0 -247
  388. package/docs/classes/Room.html +0 -1338
  389. package/docs/classes/RoomMessage.html +0 -290
  390. package/docs/enums/MessageAction.html +0 -136
  391. package/docs/functions/actsTools.html +0 -44
  392. package/docs/functions/availableToolPacks.html +0 -41
  393. package/docs/functions/buildMarkdown.html +0 -54
  394. package/docs/functions/dnd5eTools.html +0 -44
  395. package/docs/functions/installToolPacks.html +0 -48
  396. package/docs/functions/pageMarker.html +0 -45
  397. package/docs/functions/registerToolPacks.html +0 -54
  398. package/docs/functions/splitMarkdownIntoPages.html +0 -51
  399. package/docs/functions/stripWrappingFence.html +0 -52
  400. package/docs/hierarchy.html +0 -46
  401. package/docs/index.html +0 -595
  402. package/docs/interfaces/AgentCreationOptions.html +0 -125
  403. package/docs/interfaces/AgentInfo.html +0 -218
  404. package/docs/interfaces/AgentMessagesResponse.html +0 -74
  405. package/docs/interfaces/AppService.html +0 -3337
  406. package/docs/interfaces/Artifact.html +0 -95
  407. package/docs/interfaces/ArtifactMetadata.html +0 -112
  408. package/docs/interfaces/ArtifactWriteOptions.html +0 -90
  409. package/docs/interfaces/AttachDocumentResponse.html +0 -62
  410. package/docs/interfaces/BriyahConfigOptions.html +0 -124
  411. package/docs/interfaces/ChapterInfo.html +0 -62
  412. package/docs/interfaces/Character.html +0 -86
  413. package/docs/interfaces/ConversionAgent.html +0 -78
  414. package/docs/interfaces/CreateAgentResponse.html +0 -56
  415. package/docs/interfaces/CreateRoomResponse.html +0 -62
  416. package/docs/interfaces/CreateStoryResponse.html +0 -56
  417. package/docs/interfaces/FileList.html +0 -56
  418. package/docs/interfaces/FileMetadata.html +0 -89
  419. package/docs/interfaces/IConfigService.html +0 -79
  420. package/docs/interfaces/InstantiateModels.html +0 -64
  421. package/docs/interfaces/InstantiateRoomResult.html +0 -70
  422. package/docs/interfaces/LoadedPack.html +0 -131
  423. package/docs/interfaces/LoggingOptions.html +0 -92
  424. package/docs/interfaces/Message.html +0 -84
  425. package/docs/interfaces/ModelChoice.html +0 -73
  426. package/docs/interfaces/ModelInfo.html +0 -74
  427. package/docs/interfaces/NativeToolDefinition.html +0 -107
  428. package/docs/interfaces/PackAgentTemplate.html +0 -101
  429. package/docs/interfaces/PackRoomTemplate.html +0 -108
  430. package/docs/interfaces/PackView.html +0 -172
  431. package/docs/interfaces/PdfConversionOptions.html +0 -102
  432. package/docs/interfaces/PdfConversionResult.html +0 -97
  433. package/docs/interfaces/PdfMarkdownOptions.html +0 -198
  434. package/docs/interfaces/PdfMarkdownResult.html +0 -106
  435. package/docs/interfaces/PdfPageMarkdown.html +0 -94
  436. package/docs/interfaces/PreparedPromptResponse.html +0 -62
  437. package/docs/interfaces/ProcessTextResponse.html +0 -86
  438. package/docs/interfaces/PromptFile.html +0 -70
  439. package/docs/interfaces/PromptFileContent.html +0 -76
  440. package/docs/interfaces/PromptFilesResponse.html +0 -56
  441. package/docs/interfaces/PromptFolder.html +0 -80
  442. package/docs/interfaces/PromptFolderDefaults.html +0 -155
  443. package/docs/interfaces/PromptFolderDefaultsResponse.html +0 -79
  444. package/docs/interfaces/PromptFoldersResponse.html +0 -56
  445. package/docs/interfaces/RoomDetails.html +0 -151
  446. package/docs/interfaces/RoomErrorUpdate.html +0 -82
  447. package/docs/interfaces/RoomInfo.html +0 -88
  448. package/docs/interfaces/RoomMessageUpdate.html +0 -113
  449. package/docs/interfaces/RoomMessagesResponse.html +0 -62
  450. package/docs/interfaces/SendMessageResult.html +0 -62
  451. package/docs/interfaces/StoryErrorEvent.html +0 -84
  452. package/docs/interfaces/StoryIdea.html +0 -74
  453. package/docs/interfaces/StoryInfo.html +0 -198
  454. package/docs/interfaces/StoryIntroduceCharacterEvent.html +0 -79
  455. package/docs/interfaces/StoryProgressChapterEvent.html +0 -72
  456. package/docs/interfaces/StoryState.html +0 -108
  457. package/docs/interfaces/StoryStateEvent.html +0 -76
  458. package/docs/interfaces/ToolArtifact.html +0 -85
  459. package/docs/interfaces/ToolCaller.html +0 -77
  460. package/docs/interfaces/ToolDefinition.html +0 -80
  461. package/docs/interfaces/ToolHelpers.html +0 -105
  462. package/docs/interfaces/ToolPackDocuments.html +0 -100
  463. package/docs/interfaces/ToolParameter.html +0 -74
  464. package/docs/interfaces/ToolRoomAccess.html +0 -227
  465. package/docs/interfaces/ToolSummary.html +0 -74
  466. package/docs/interfaces/ToolsResponse.html +0 -68
  467. package/docs/interfaces/Transaction.html +0 -104
  468. package/docs/interfaces/TransactionHistoryResponse.html +0 -62
  469. package/docs/modules.html +0 -53
  470. package/docs/types/PackOrigin.html +0 -34
  471. package/docs/types/PromptScope.html +0 -34
  472. package/docs/types/RoomTurnMode.html +0 -42
  473. package/docs/types/RoomUpdate.html +0 -36
  474. package/docs/types/RosterOverrides.html +0 -42
  475. package/docs/types/ToolContext.html +0 -40
  476. package/docs/types/ToolRunResult.html +0 -34
  477. package/src/tools/packs/dnd5e/README.md +0 -867
@@ -1,14 +1,42 @@
1
+ /**
2
+ * Feats from the System Reference Document 5.1.
3
+ *
4
+ * There is exactly **one**: Grappler. That is not an oversight in this file — the
5
+ * SRD carries the feats *rule* and a single worked example, and the rest of 5e's
6
+ * feats are outside what Wizards released under CC-BY-4.0, so they must not be
7
+ * added here (see LICENSE-SRD.md).
8
+ *
9
+ * Which makes the shape the point rather than the table. Almost every real table
10
+ * plays with feats beyond this one, so `level_up` accepts a feat by name whether or
11
+ * not it is here: a known feat gets its prerequisite checked and its grants
12
+ * applied, and an unknown one is recorded with a note that `patch_sheet` applies
13
+ * the mechanics. That is the same arrangement class features already have.
14
+ */
1
15
  import { AbilityKey } from './srd';
2
16
  export interface FeatPrerequisite {
17
+ /** Minimum ability scores, e.g. { str: 13 }. */
3
18
  abil?: Partial<Record<AbilityKey, number>>;
19
+ /** Anything not expressible as a number, for the Dungeon Master to judge. */
4
20
  text?: string;
5
21
  }
22
+ /**
23
+ * What a feat grants that a tool can apply.
24
+ *
25
+ * Deliberately narrow. A feat's interesting half is almost always prose — Grappler's
26
+ * advantage on attacks against a creature you are grappling has no field to live in
27
+ * — and inventing structure for it would mean guessing. Anything not here stays in
28
+ * `text` for the table to apply, which is the same call the magic items make.
29
+ */
6
30
  export interface FeatGrants {
7
31
  abil?: Partial<Record<AbilityKey, number>>;
8
32
  skills?: string[];
33
+ /** Weapon proficiencies, by `WEAPONS` key. */
9
34
  weapons?: string[];
35
+ /** Damage types resisted. */
10
36
  resist?: string[];
37
+ /** Feet added to walking speed. */
11
38
  speed?: number;
39
+ /** Limited-use features the feat grants, keyed as `uses` entries are. */
12
40
  uses?: Record<string, {
13
41
  max: number;
14
42
  reset: 'short' | 'long';
@@ -20,5 +48,10 @@ export interface FeatRules {
20
48
  grants?: FeatGrants;
21
49
  text: string;
22
50
  }
51
+ /** The feats in SRD 5.1, keyed by lowercase name. */
23
52
  export declare const SRD_FEATS: Record<string, FeatRules>;
53
+ /**
54
+ * The rule that governs taking one at all, quoted for `rules_lookup` so the DM can
55
+ * settle the question without the document in front of them.
56
+ */
24
57
  export declare const FEATS_RULE = "At the levels where your class grants an Ability Score Improvement, you may forgo it to take a feat instead \u2014 one or the other, never both. You can take each feat only once unless it says otherwise, and you must meet its prerequisite. Losing the prerequisite suspends the feat until you regain it.";
@@ -1,6 +1,21 @@
1
1
  "use strict";
2
+ /**
3
+ * Feats from the System Reference Document 5.1.
4
+ *
5
+ * There is exactly **one**: Grappler. That is not an oversight in this file — the
6
+ * SRD carries the feats *rule* and a single worked example, and the rest of 5e's
7
+ * feats are outside what Wizards released under CC-BY-4.0, so they must not be
8
+ * added here (see LICENSE-SRD.md).
9
+ *
10
+ * Which makes the shape the point rather than the table. Almost every real table
11
+ * plays with feats beyond this one, so `level_up` accepts a feat by name whether or
12
+ * not it is here: a known feat gets its prerequisite checked and its grants
13
+ * applied, and an unknown one is recorded with a note that `patch_sheet` applies
14
+ * the mechanics. That is the same arrangement class features already have.
15
+ */
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
17
  exports.FEATS_RULE = exports.SRD_FEATS = void 0;
18
+ /** The feats in SRD 5.1, keyed by lowercase name. */
4
19
  exports.SRD_FEATS = {
5
20
  grappler: {
6
21
  name: 'Grappler',
@@ -8,4 +23,8 @@ exports.SRD_FEATS = {
8
23
  text: "You have advantage on attack rolls against a creature you are grappling. You can use your action to try to pin a creature grappled by you: make another grapple check, and on a success you and the creature are both restrained until the grapple ends.",
9
24
  },
10
25
  };
26
+ /**
27
+ * The rule that governs taking one at all, quoted for `rules_lookup` so the DM can
28
+ * settle the question without the document in front of them.
29
+ */
11
30
  exports.FEATS_RULE = 'At the levels where your class grants an Ability Score Improvement, you may forgo it to take a feat instead — one or the other, never both. You can take each feat only once unless it says otherwise, and you must meet its prerequisite. Losing the prerequisite suspends the feat until you regain it.';
@@ -1,10 +1,47 @@
1
+ /**
2
+ * What SRD 5.1 equipment weighs.
3
+ *
4
+ * The table itself is generated by `server/scripts/import-srd-gear.js` from the
5
+ * three places the SRD prints a pound figure — the gear, armour and weapon tables.
6
+ * This file owns the shape and the two constants that turn a Strength score into a
7
+ * carrying capacity.
8
+ *
9
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
10
+ */
11
+ /** Pounds by normalized item name. 0 means the SRD prints a dash. */
1
12
  export declare const ITEM_WEIGHTS: Record<string, number>;
13
+ /** Ordinary gear that is spent a use at a time, rather than an item at a time. */
2
14
  export interface GearUses {
15
+ /** How many uses it holds when new. */
3
16
  uses: number;
17
+ /**
18
+ * What spending one actually does.
19
+ *
20
+ * Returned by `spend`, because the tool going quiet is how a rule gets invented.
21
+ * A Dungeon Master handed a healer's kit and no answer restored two hit points
22
+ * with it to a character who was standing at 7 of 12 — the kit does nothing of
23
+ * the sort, and nothing at all for someone who is conscious.
24
+ */
4
25
  note?: string;
5
26
  }
27
+ /**
28
+ * Mundane gear with uses, hand-owned rather than generated.
29
+ *
30
+ * The SRD prints a use count for exactly one piece of ordinary equipment, so this is
31
+ * a short list by nature and not the beginning of a system. Magic items carry their
32
+ * own `charges` in `magic-items.ts` and are read from there.
33
+ */
6
34
  export declare const GEAR_USES: Record<string, GearUses>;
35
+ /** "Your carrying capacity is your Strength score multiplied by 15." */
7
36
  export declare const CARRY_MULTIPLIER = 15;
37
+ /** "You can push, drag, or lift a weight ... up to twice your carrying capacity." */
8
38
  export declare const PUSH_DRAG_LIFT_MULTIPLIER = 30;
39
+ /**
40
+ * The optional encumbrance variant's two thresholds, as multiples of Strength.
41
+ *
42
+ * "If you carry weight in excess of 5 times your Strength score, you are
43
+ * encumbered ... in excess of 10 times your Strength score, up to your maximum
44
+ * carrying capacity, you are instead heavily encumbered."
45
+ */
9
46
  export declare const ENCUMBERED_MULTIPLIER = 5;
10
47
  export declare const HEAVILY_ENCUMBERED_MULTIPLIER = 10;
@@ -1 +1,18 @@
1
+ /**
2
+ * What SRD 5.1 equipment weighs, in pounds, keyed by normalized name.
3
+ *
4
+ * GENERATED FILE — do not edit by hand. Regenerate with:
5
+ *
6
+ * node scripts/import-srd-gear.js <path-to-DND.SRD.Wiki>
7
+ *
8
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
9
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
10
+ *
11
+ * A weight of 0 means the SRD prints a dash — light enough not to bother weighing,
12
+ * as against an item that is simply absent from the table, which is unknown. The
13
+ * difference matters: `engine/encumbrance.ts` reports how many carried items it
14
+ * could not weigh, so a total is never mistaken for the whole truth.
15
+ *
16
+ * Re-exported as `ITEM_WEIGHTS` from `gear.ts`. Import from there.
17
+ */
1
18
  export declare const GENERATED_ITEM_WEIGHTS: Record<string, number>;
@@ -1,4 +1,21 @@
1
1
  "use strict";
2
+ /**
3
+ * What SRD 5.1 equipment weighs, in pounds, keyed by normalized name.
4
+ *
5
+ * GENERATED FILE — do not edit by hand. Regenerate with:
6
+ *
7
+ * node scripts/import-srd-gear.js <path-to-DND.SRD.Wiki>
8
+ *
9
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
10
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
11
+ *
12
+ * A weight of 0 means the SRD prints a dash — light enough not to bother weighing,
13
+ * as against an item that is simply absent from the table, which is unknown. The
14
+ * difference matters: `engine/encumbrance.ts` reports how many carried items it
15
+ * could not weigh, so a total is never mistaken for the whole truth.
16
+ *
17
+ * Re-exported as `ITEM_WEIGHTS` from `gear.ts`. Import from there.
18
+ */
2
19
  Object.defineProperty(exports, "__esModule", { value: true });
3
20
  exports.GENERATED_ITEM_WEIGHTS = void 0;
4
21
  exports.GENERATED_ITEM_WEIGHTS = {
@@ -1,15 +1,42 @@
1
1
  "use strict";
2
+ /**
3
+ * What SRD 5.1 equipment weighs.
4
+ *
5
+ * The table itself is generated by `server/scripts/import-srd-gear.js` from the
6
+ * three places the SRD prints a pound figure — the gear, armour and weapon tables.
7
+ * This file owns the shape and the two constants that turn a Strength score into a
8
+ * carrying capacity.
9
+ *
10
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
11
+ */
2
12
  Object.defineProperty(exports, "__esModule", { value: true });
3
13
  exports.HEAVILY_ENCUMBERED_MULTIPLIER = exports.ENCUMBERED_MULTIPLIER = exports.PUSH_DRAG_LIFT_MULTIPLIER = exports.CARRY_MULTIPLIER = exports.GEAR_USES = exports.ITEM_WEIGHTS = void 0;
4
14
  const gear_generated_1 = require("./gear.generated");
15
+ /** Pounds by normalized item name. 0 means the SRD prints a dash. */
5
16
  exports.ITEM_WEIGHTS = gear_generated_1.GENERATED_ITEM_WEIGHTS;
17
+ /**
18
+ * Mundane gear with uses, hand-owned rather than generated.
19
+ *
20
+ * The SRD prints a use count for exactly one piece of ordinary equipment, so this is
21
+ * a short list by nature and not the beginning of a system. Magic items carry their
22
+ * own `charges` in `magic-items.ts` and are read from there.
23
+ */
6
24
  exports.GEAR_USES = {
7
25
  "healer's kit": {
8
26
  uses: 10,
9
27
  note: 'Spending a use stabilizes a creature at 0 hit points without a Wisdom (Medicine) check. It restores no hit points and does nothing for a conscious creature.',
10
28
  },
11
29
  };
30
+ /** "Your carrying capacity is your Strength score multiplied by 15." */
12
31
  exports.CARRY_MULTIPLIER = 15;
32
+ /** "You can push, drag, or lift a weight ... up to twice your carrying capacity." */
13
33
  exports.PUSH_DRAG_LIFT_MULTIPLIER = 30;
34
+ /**
35
+ * The optional encumbrance variant's two thresholds, as multiples of Strength.
36
+ *
37
+ * "If you carry weight in excess of 5 times your Strength score, you are
38
+ * encumbered ... in excess of 10 times your Strength score, up to your maximum
39
+ * carrying capacity, you are instead heavily encumbered."
40
+ */
14
41
  exports.ENCUMBERED_MULTIPLIER = 5;
15
42
  exports.HEAVILY_ENCUMBERED_MULTIPLIER = 10;
@@ -1,17 +1,53 @@
1
+ /**
2
+ * Tools from the System Reference Document 5.1 — thieves' tools, artisan's tools,
3
+ * gaming sets, musical instruments and vehicles.
4
+ *
5
+ * **Named `kits` rather than `tools`** because this pack already has a `tools/`
6
+ * directory holding the Briyah tool definitions, and a `data/tools.ts` beside it
7
+ * would read as the wrong thing entirely. Everything a rulebook calls a "tool"
8
+ * lives here; everything Briyah calls a tool lives in `tools/`.
9
+ *
10
+ * Hand-written, for the same reason as the races and backgrounds: thirty-nine
11
+ * entries is small enough to check by eye, and the only judgement involved is which
12
+ * category each belongs to.
13
+ *
14
+ * A tool **outside** this table is still accepted wherever one is named. The table
15
+ * canonicalizes spelling and answers "which tools are artisan's tools"; it is not a
16
+ * gate. Tables invent tools, and the SRD's own background customization rule invites
17
+ * it by letting a player choose "any two tool proficiencies".
18
+ *
19
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
20
+ */
21
+ /** Which group of tools an entry belongs to, for a grant that names a category. */
1
22
  export type ToolCategory = 'artisan' | 'gaming' | 'instrument' | 'other' | 'vehicle';
2
23
  export interface ToolKit {
3
24
  name: string;
4
25
  category: ToolCategory;
5
26
  }
27
+ /**
28
+ * A tool proficiency the player picks, rather than one a source grants outright.
29
+ *
30
+ * Either `from` (any tool in these categories — the bard's three instruments) or
31
+ * `options` (a named shortlist — the dwarf's three artisan's tools), never both.
32
+ */
6
33
  export interface ToolChoice {
7
34
  count: number;
8
35
  from?: ToolCategory[];
9
36
  options?: string[];
10
37
  }
38
+ /** What a class, race or background gives a character in the way of tools. */
11
39
  export interface ToolGrant {
40
+ /** Granted outright, needing no decision. */
12
41
  fixed?: string[];
42
+ /** Granted as a decision the player has to make. */
13
43
  choices?: ToolChoice[];
14
44
  }
45
+ /** The rule itself, for a `rules_lookup` asked about tools rather than about one tool. */
15
46
  export declare const TOOLS_RULE: string;
47
+ /** How a category reads in a sentence, singular. */
16
48
  export declare const TOOL_CATEGORY_LABEL: Record<ToolCategory, string>;
49
+ /**
50
+ * The tools in SRD 5.1, keyed the way {@link nameKey} normalizes a name — lowercase
51
+ * with punctuation deleted, so `Thieves' Tools` keys as `thieves tools`.
52
+ */
17
53
  export declare const TOOL_KITS: Record<string, ToolKit>;
@@ -1,9 +1,31 @@
1
1
  "use strict";
2
+ /**
3
+ * Tools from the System Reference Document 5.1 — thieves' tools, artisan's tools,
4
+ * gaming sets, musical instruments and vehicles.
5
+ *
6
+ * **Named `kits` rather than `tools`** because this pack already has a `tools/`
7
+ * directory holding the Briyah tool definitions, and a `data/tools.ts` beside it
8
+ * would read as the wrong thing entirely. Everything a rulebook calls a "tool"
9
+ * lives here; everything Briyah calls a tool lives in `tools/`.
10
+ *
11
+ * Hand-written, for the same reason as the races and backgrounds: thirty-nine
12
+ * entries is small enough to check by eye, and the only judgement involved is which
13
+ * category each belongs to.
14
+ *
15
+ * A tool **outside** this table is still accepted wherever one is named. The table
16
+ * canonicalizes spelling and answers "which tools are artisan's tools"; it is not a
17
+ * gate. Tables invent tools, and the SRD's own background customization rule invites
18
+ * it by letting a player choose "any two tool proficiencies".
19
+ *
20
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
21
+ */
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  exports.TOOL_KITS = exports.TOOL_CATEGORY_LABEL = exports.TOOLS_RULE = void 0;
24
+ /** The rule itself, for a `rules_lookup` asked about tools rather than about one tool. */
4
25
  exports.TOOLS_RULE = 'A tool helps you to do something you could not otherwise do, such as craft or repair an item, forge a document, or pick a lock. Proficiency with a tool adds your proficiency bonus to any ability check you make using it. ' +
5
26
  'Tool use is not tied to a single ability, since proficiency with a tool represents broader knowledge of its use: the DM chooses the ability the check uses from the situation. Picking a lock with thieves\' tools is a Dexterity check; identifying a poison with a poisoner\'s kit is an Intelligence check. ' +
6
27
  'Tools fall into artisan\'s tools, gaming sets, musical instruments, and a handful named on their own — a disguise kit, a forgery kit, a herbalism kit, navigator\'s tools, a poisoner\'s kit and thieves\' tools. Vehicles are a proficiency in a kind of vehicle rather than in a named object.';
28
+ /** How a category reads in a sentence, singular. */
7
29
  exports.TOOL_CATEGORY_LABEL = {
8
30
  artisan: "artisan's tools",
9
31
  gaming: 'gaming set',
@@ -11,7 +33,12 @@ exports.TOOL_CATEGORY_LABEL = {
11
33
  other: 'tool',
12
34
  vehicle: 'vehicle',
13
35
  };
36
+ /**
37
+ * The tools in SRD 5.1, keyed the way {@link nameKey} normalizes a name — lowercase
38
+ * with punctuation deleted, so `Thieves' Tools` keys as `thieves tools`.
39
+ */
14
40
  exports.TOOL_KITS = {
41
+ // Artisan's tools
15
42
  'alchemists supplies': { name: "Alchemist's supplies", category: 'artisan' },
16
43
  'brewers supplies': { name: "Brewer's supplies", category: 'artisan' },
17
44
  'calligraphers supplies': { name: "Calligrapher's supplies", category: 'artisan' },
@@ -29,10 +56,12 @@ exports.TOOL_KITS = {
29
56
  'tinkers tools': { name: "Tinker's tools", category: 'artisan' },
30
57
  'weavers tools': { name: "Weaver's tools", category: 'artisan' },
31
58
  'woodcarvers tools': { name: "Woodcarver's tools", category: 'artisan' },
59
+ // Gaming sets
32
60
  'dice set': { name: 'Dice set', category: 'gaming' },
33
61
  'dragonchess set': { name: 'Dragonchess set', category: 'gaming' },
34
62
  'playing card set': { name: 'Playing card set', category: 'gaming' },
35
63
  'threedragon ante set': { name: 'Three-Dragon Ante set', category: 'gaming' },
64
+ // Musical instruments
36
65
  bagpipes: { name: 'Bagpipes', category: 'instrument' },
37
66
  drum: { name: 'Drum', category: 'instrument' },
38
67
  dulcimer: { name: 'Dulcimer', category: 'instrument' },
@@ -43,12 +72,15 @@ exports.TOOL_KITS = {
43
72
  'pan flute': { name: 'Pan flute', category: 'instrument' },
44
73
  shawm: { name: 'Shawm', category: 'instrument' },
45
74
  viol: { name: 'Viol', category: 'instrument' },
75
+ // Everything else the table lists by name
46
76
  'disguise kit': { name: 'Disguise kit', category: 'other' },
47
77
  'forgery kit': { name: 'Forgery kit', category: 'other' },
48
78
  'herbalism kit': { name: 'Herbalism kit', category: 'other' },
49
79
  'navigators tools': { name: "Navigator's tools", category: 'other' },
50
80
  'poisoners kit': { name: "Poisoner's kit", category: 'other' },
51
81
  'thieves tools': { name: "Thieves' tools", category: 'other' },
82
+ // Vehicles are proficiencies in a *kind* of vehicle rather than a named object,
83
+ // which is why they are two entries and not a list of carts and galleys.
52
84
  'land vehicles': { name: 'Land vehicles', category: 'vehicle' },
53
85
  'water vehicles': { name: 'Water vehicles', category: 'vehicle' },
54
86
  };
@@ -1,20 +1,52 @@
1
+ /**
2
+ * Magic items from the System Reference Document 5.1.
3
+ *
4
+ * A magic item *is* its text — there is no general shape that captures what a bag
5
+ * of beans does — so the prose is the payload and only the fields a tool computes
6
+ * from are structured: what kind of item it is, its rarity, whether it needs
7
+ * attunement, its charges, and the handful of bonuses written plainly enough to
8
+ * trust (`+1 bonus to AC`, `+2 to attack and damage rolls`). Anything conditional
9
+ * stays in the text, because guessing at it is how an item quietly doubles a
10
+ * number nobody asked it to.
11
+ *
12
+ * The table lives in `magic-items.generated.ts` and is written by
13
+ * `server/scripts/import-srd-items.js`. This file owns the shapes.
14
+ *
15
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
16
+ */
1
17
  export interface ItemCharges {
2
18
  max: number;
19
+ /** How it recharges, as the SRD words it: '1d6+1 expended charges daily at dawn'. */
3
20
  recharge?: string;
4
21
  }
5
22
  export interface MagicItem {
6
23
  name: string;
24
+ /** 'weapon', 'armor', 'wondrous item', 'ring', 'potion', 'wand', 'staff', 'rod', 'scroll'. */
7
25
  type: string;
26
+ /** The type's parenthetical, e.g. 'any sword' or 'light, medium, or heavy'. */
8
27
  subtype?: string;
28
+ /** One rarity, or several separated by ' / ' when it varies with the bonus. */
9
29
  rarity?: string;
30
+ /** The rarity clause verbatim when a bonus decides it: 'rare (+1), very rare (+2)'. */
10
31
  rarityNote?: string;
32
+ /**
33
+ * `true` when it simply requires attunement, or the requirement itself —
34
+ * 'a spellcaster', 'a druid, sorcerer, warlock, or wizard'. Absent when none.
35
+ */
11
36
  attunement?: boolean | string;
12
37
  charges?: ItemCharges;
38
+ /** Bonus to armour class while worn. */
13
39
  acBonus?: number;
40
+ /** Bonus to attack rolls with this weapon. */
14
41
  attackBonus?: number;
42
+ /** Bonus to damage rolls with this weapon. */
15
43
  damageBonus?: number;
44
+ /** Bonus to saving throws while worn. */
16
45
  saveBonus?: number;
46
+ /** The item's own rules text. */
17
47
  text: string;
18
48
  }
49
+ /** Every SRD magic item, keyed by lowercase name. */
19
50
  export declare const SRD_MAGIC_ITEMS: Record<string, MagicItem>;
51
+ /** How many items one character may be attuned to at once. */
20
52
  export declare const MAX_ATTUNED_ITEMS = 3;
@@ -1,2 +1,15 @@
1
+ /**
2
+ * SRD 5.1 magic items.
3
+ *
4
+ * GENERATED FILE — do not edit by hand. Regenerate with:
5
+ *
6
+ * node scripts/import-srd-items.js <path-to-DND.SRD.Wiki>
7
+ *
8
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
9
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
10
+ *
11
+ * The shapes live in `magic-items.ts`, which re-exports this table as
12
+ * `SRD_MAGIC_ITEMS`. Import from there, not from here.
13
+ */
1
14
  import type { MagicItem } from './magic-items';
2
15
  export declare const GENERATED_MAGIC_ITEMS: Record<string, MagicItem>;
@@ -1,4 +1,17 @@
1
1
  "use strict";
2
+ /**
3
+ * SRD 5.1 magic items.
4
+ *
5
+ * GENERATED FILE — do not edit by hand. Regenerate with:
6
+ *
7
+ * node scripts/import-srd-items.js <path-to-DND.SRD.Wiki>
8
+ *
9
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
10
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
11
+ *
12
+ * The shapes live in `magic-items.ts`, which re-exports this table as
13
+ * `SRD_MAGIC_ITEMS`. Import from there, not from here.
14
+ */
2
15
  Object.defineProperty(exports, "__esModule", { value: true });
3
16
  exports.GENERATED_MAGIC_ITEMS = void 0;
4
17
  exports.GENERATED_MAGIC_ITEMS = {
@@ -1,6 +1,24 @@
1
1
  "use strict";
2
+ /**
3
+ * Magic items from the System Reference Document 5.1.
4
+ *
5
+ * A magic item *is* its text — there is no general shape that captures what a bag
6
+ * of beans does — so the prose is the payload and only the fields a tool computes
7
+ * from are structured: what kind of item it is, its rarity, whether it needs
8
+ * attunement, its charges, and the handful of bonuses written plainly enough to
9
+ * trust (`+1 bonus to AC`, `+2 to attack and damage rolls`). Anything conditional
10
+ * stays in the text, because guessing at it is how an item quietly doubles a
11
+ * number nobody asked it to.
12
+ *
13
+ * The table lives in `magic-items.generated.ts` and is written by
14
+ * `server/scripts/import-srd-items.js`. This file owns the shapes.
15
+ *
16
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0.
17
+ */
2
18
  Object.defineProperty(exports, "__esModule", { value: true });
3
19
  exports.MAX_ATTUNED_ITEMS = exports.SRD_MAGIC_ITEMS = void 0;
4
20
  const magic_items_generated_1 = require("./magic-items.generated");
21
+ /** Every SRD magic item, keyed by lowercase name. */
5
22
  exports.SRD_MAGIC_ITEMS = magic_items_generated_1.GENERATED_MAGIC_ITEMS;
23
+ /** How many items one character may be attuned to at once. */
6
24
  exports.MAX_ATTUNED_ITEMS = 3;
@@ -1,18 +1,53 @@
1
+ /**
2
+ * Creature statistics from the System Reference Document 5.1.
3
+ *
4
+ * The whole SRD bestiary, so the Dungeon Master needs one cheap tool call for any
5
+ * creature in the book rather than a handoff to another agent. Lookup is a keyed
6
+ * map hit and costs the same here as it did at two dozen creatures; the things
7
+ * that do scale — ambiguous partial names, and the size of a result — are handled
8
+ * in `engine/bestiary.ts`. Anything outside the SRD is campaign-specific and
9
+ * belongs in the room's `Bestiary` artifact, written by whoever designed it.
10
+ *
11
+ * The table itself lives in `monsters.generated.ts` and is written by
12
+ * `server/scripts/import-srd-monsters.js`. This file owns the shapes, which are
13
+ * hand-maintained; regenerating the table must not change them.
14
+ *
15
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0. See
16
+ * LICENSE-SRD.md. Values are transcribed from the SRD into machine-readable form;
17
+ * anything you disagree with can be overridden in the `Bestiary` without touching
18
+ * code — a bestiary entry always wins over this table.
19
+ */
1
20
  import { AbilityKey } from './srd';
2
21
  export interface MonsterAttack {
22
+ /** Attack name, e.g. 'Scimitar'. */
3
23
  n: string;
24
+ /** Attack bonus, already including proficiency and ability. */
4
25
  atk: number;
26
+ /** Damage dice expression, e.g. '1d6+2'. '0' for an attack that only imposes a condition. */
5
27
  dmg: string;
28
+ /** Damage type, e.g. 'slashing'. */
6
29
  type?: string;
30
+ /** Reach or range, e.g. '5 ft' or '80/320 ft'. */
7
31
  reach?: string;
32
+ /** Any rider: a saving throw, a condition, extra damage. */
8
33
  note?: string;
9
34
  }
35
+ /**
36
+ * A named block of rules prose. Used for traits, for actions that are not attack
37
+ * rolls, for reactions and for legendary action options — all four are a name and
38
+ * a paragraph, and one shape for all of them keeps `describeMonster` uniform.
39
+ */
10
40
  export interface MonsterTrait {
11
41
  n: string;
12
42
  text: string;
13
43
  }
14
44
  export interface MonsterLegendary {
45
+ /** Legendary actions per round. Three for every SRD creature that has them. */
15
46
  per: number;
47
+ /**
48
+ * The options. A cost is written into the name as the SRD writes it
49
+ * ('Wing Attack (Costs 2 Actions)'), since nothing consumes it mechanically.
50
+ */
16
51
  options: MonsterTrait[];
17
52
  }
18
53
  export interface MonsterBlock {
@@ -20,25 +55,44 @@ export interface MonsterBlock {
20
55
  size?: string;
21
56
  kind?: string;
22
57
  ac: number;
58
+ /** What the armour class comes from, e.g. 'leather armor, shield'. */
23
59
  acNote?: string;
24
60
  hp: number;
61
+ /** Hit dice, so a group can be given individual totals. */
25
62
  hpDice?: string;
26
63
  speed: string;
27
64
  abil: Record<AbilityKey, number>;
65
+ /**
66
+ * Proficient saving throw bonuses. An ability that is absent uses its own
67
+ * modifier, so only the proficient ones are listed — which is the only way to
68
+ * get them right, since proficiency cannot be derived from the score.
69
+ */
28
70
  saves?: Partial<Record<AbilityKey, number>>;
71
+ /** Skill bonuses worth knowing, e.g. { stealth: 6 }. */
29
72
  skills?: Record<string, number>;
30
73
  senses?: string;
31
74
  languages?: string;
75
+ /** Challenge rating, as written in the SRD. */
32
76
  cr?: string;
33
77
  attacks: MonsterAttack[];
34
78
  traits?: MonsterTrait[];
79
+ /**
80
+ * Actions that are not attack rolls: breath weapons, gaze attacks, summons.
81
+ * Their damage and save DCs stay in the prose rather than being structured —
82
+ * the Dungeon Master reads the dice out and rolls them, and parsing an area,
83
+ * a DC and a half-on-success rider out of free text is where an import gets
84
+ * quietly wrong.
85
+ */
35
86
  actions?: MonsterTrait[];
36
87
  reactions?: MonsterTrait[];
37
88
  legendary?: MonsterLegendary;
38
89
  resist?: string[];
39
90
  immune?: string[];
40
91
  vuln?: string[];
92
+ /** Conditions the creature cannot be subjected to. */
41
93
  condImmune?: string[];
94
+ /** True when the creature makes more than one attack per action. */
42
95
  multiattack?: string;
43
96
  }
97
+ /** Every SRD creature, keyed by lowercase name. */
44
98
  export declare const SRD_MONSTERS: Record<string, MonsterBlock>;
@@ -1,2 +1,15 @@
1
+ /**
2
+ * SRD 5.1 creature statistics.
3
+ *
4
+ * GENERATED FILE — do not edit by hand. Regenerate with:
5
+ *
6
+ * node scripts/import-srd-monsters.js <path-to-DND.SRD.Wiki>
7
+ *
8
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
9
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
10
+ *
11
+ * The shapes live in `monsters.ts`, which re-exports this table as
12
+ * `SRD_MONSTERS`. Import from there, not from here.
13
+ */
1
14
  import type { MonsterBlock } from './monsters';
2
15
  export declare const GENERATED_MONSTERS: Record<string, MonsterBlock>;
@@ -1,4 +1,17 @@
1
1
  "use strict";
2
+ /**
3
+ * SRD 5.1 creature statistics.
4
+ *
5
+ * GENERATED FILE — do not edit by hand. Regenerate with:
6
+ *
7
+ * node scripts/import-srd-monsters.js <path-to-DND.SRD.Wiki>
8
+ *
9
+ * Source: the System Reference Document 5.1 by Wizards of the Coast LLC, under
10
+ * the Creative Commons Attribution 4.0 International License. See LICENSE-SRD.md.
11
+ *
12
+ * The shapes live in `monsters.ts`, which re-exports this table as
13
+ * `SRD_MONSTERS`. Import from there, not from here.
14
+ */
2
15
  Object.defineProperty(exports, "__esModule", { value: true });
3
16
  exports.GENERATED_MONSTERS = void 0;
4
17
  exports.GENERATED_MONSTERS = {
@@ -1,5 +1,25 @@
1
1
  "use strict";
2
+ /**
3
+ * Creature statistics from the System Reference Document 5.1.
4
+ *
5
+ * The whole SRD bestiary, so the Dungeon Master needs one cheap tool call for any
6
+ * creature in the book rather than a handoff to another agent. Lookup is a keyed
7
+ * map hit and costs the same here as it did at two dozen creatures; the things
8
+ * that do scale — ambiguous partial names, and the size of a result — are handled
9
+ * in `engine/bestiary.ts`. Anything outside the SRD is campaign-specific and
10
+ * belongs in the room's `Bestiary` artifact, written by whoever designed it.
11
+ *
12
+ * The table itself lives in `monsters.generated.ts` and is written by
13
+ * `server/scripts/import-srd-monsters.js`. This file owns the shapes, which are
14
+ * hand-maintained; regenerating the table must not change them.
15
+ *
16
+ * Licensing is the same as the rest of `data/`: SRD 5.1 under CC-BY-4.0. See
17
+ * LICENSE-SRD.md. Values are transcribed from the SRD into machine-readable form;
18
+ * anything you disagree with can be overridden in the `Bestiary` without touching
19
+ * code — a bestiary entry always wins over this table.
20
+ */
2
21
  Object.defineProperty(exports, "__esModule", { value: true });
3
22
  exports.SRD_MONSTERS = void 0;
4
23
  const monsters_generated_1 = require("./monsters.generated");
24
+ /** Every SRD creature, keyed by lowercase name. */
5
25
  exports.SRD_MONSTERS = monsters_generated_1.GENERATED_MONSTERS;