briyah 2.0.0 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (320) hide show
  1. package/README.md +263 -74
  2. package/data/common/config/markup +1 -1
  3. package/data/common/config/model_prices.json +46369 -46361
  4. package/data/common/config/rpg_models.json +60 -0
  5. package/data/common/prompts/narrator/create_chapter.prompt +12 -1
  6. package/data/common/prompts/pdf_converter/convert_pdf_page.prompt +8 -1
  7. package/data/common/prompts/perceive.prompt +287 -291
  8. package/data/packs/acts/agents/character-guide.json +6 -0
  9. package/data/packs/acts/agents/discipleship-mentor.json +6 -0
  10. package/data/packs/acts/agents/mentor-coach.json +6 -0
  11. package/data/packs/acts/agents/student.json +13 -0
  12. package/data/packs/acts/agents/table-moderator.json +6 -0
  13. package/data/packs/acts/artifacts/chapter-01-acts-1.md +405 -0
  14. package/data/packs/acts/artifacts/chapter-02-acts-2.md +443 -0
  15. package/data/packs/acts/artifacts/chapter-03-acts-3.md +409 -0
  16. package/data/packs/acts/artifacts/chapter-04-acts-4.md +438 -0
  17. package/data/packs/acts/artifacts/chapter-05-acts-5.md +434 -0
  18. package/data/packs/acts/artifacts/chapter-06-acts-6.md +441 -0
  19. package/data/packs/acts/artifacts/chapter-07-acts-7.md +472 -0
  20. package/data/packs/acts/artifacts/chapter-08-acts-8.md +512 -0
  21. package/data/packs/acts/artifacts/chapter-09-acts-9.md +346 -0
  22. package/data/packs/acts/artifacts/chapter-10-acts-10.md +367 -0
  23. package/data/packs/acts/artifacts/chapter-11-acts-11.md +391 -0
  24. package/data/packs/acts/artifacts/chapter-12-acts-12.md +390 -0
  25. package/data/packs/acts/artifacts/chapter-13-acts-13.md +388 -0
  26. package/data/packs/acts/artifacts/chapter-14-acts-14.md +466 -0
  27. package/data/packs/acts/artifacts/chapter-15-acts-15.md +413 -0
  28. package/data/packs/acts/artifacts/chapter-16-acts-16.md +585 -0
  29. package/data/packs/acts/artifacts/chapter-17-acts-17.md +428 -0
  30. package/data/packs/acts/artifacts/chapter-18-acts-18.md +486 -0
  31. package/data/packs/acts/artifacts/chapter-19-acts-19.md +461 -0
  32. package/data/packs/acts/artifacts/chapter-20-acts-20.md +389 -0
  33. package/data/packs/acts/artifacts/chapter-21-acts-21.md +452 -0
  34. package/data/packs/acts/artifacts/chapter-22-acts-22.md +424 -0
  35. package/data/packs/acts/artifacts/chapter-23-acts-23.md +395 -0
  36. package/data/packs/acts/artifacts/chapter-24-acts-24.md +446 -0
  37. package/data/packs/acts/artifacts/chapter-25-acts-25.md +391 -0
  38. package/data/packs/acts/artifacts/chapter-26-acts-26.md +431 -0
  39. package/data/packs/acts/artifacts/chapter-27-acts-27.md +530 -0
  40. package/data/packs/acts/artifacts/chapter-28-acts-28.md +1871 -0
  41. package/data/packs/acts/artifacts/chapters.manifest.json +170 -0
  42. package/data/packs/acts/artifacts/character_guide-creation.md +112 -0
  43. package/data/packs/acts/artifacts/discipleship_mentor-procedure.md +154 -0
  44. package/data/packs/acts/artifacts/discipleship_mentor-systems.md +72 -0
  45. package/data/packs/acts/artifacts/manifest.json +197 -0
  46. package/data/packs/acts/artifacts/stage-guide.md +94 -0
  47. package/data/packs/acts/pack.json +6 -0
  48. package/data/packs/acts/prompts/acts_player/defaults_config.json +5 -0
  49. package/data/packs/acts/prompts/acts_player/perceive.json +29 -0
  50. package/data/packs/acts/prompts/acts_player/perceive.prompt +87 -0
  51. package/data/packs/acts/prompts/acts_player/system_instruction.prompt +0 -0
  52. package/data/packs/acts/prompts/acts_room_moderator/defaults_config.json +9 -0
  53. package/data/packs/acts/prompts/acts_room_moderator/moderate.json +34 -0
  54. package/data/packs/acts/prompts/acts_room_moderator/moderate.prompt +70 -0
  55. package/data/packs/acts/prompts/acts_room_moderator/system_instruction.prompt +0 -0
  56. package/data/packs/acts/prompts/character_guide/defaults_config.json +18 -0
  57. package/data/packs/acts/prompts/character_guide/perceive.json +29 -0
  58. package/data/packs/acts/prompts/character_guide/perceive.prompt +140 -0
  59. package/data/packs/acts/prompts/character_guide/system_instruction.prompt +0 -0
  60. package/data/packs/acts/prompts/discipleship_mentor/defaults_config.json +23 -0
  61. package/data/packs/acts/prompts/discipleship_mentor/perceive.json +33 -0
  62. package/data/packs/acts/prompts/discipleship_mentor/perceive.prompt +245 -0
  63. package/data/packs/acts/prompts/discipleship_mentor/system_instruction.prompt +0 -0
  64. package/data/packs/acts/prompts/mentor_coach/defaults_config.json +13 -0
  65. package/data/packs/acts/prompts/mentor_coach/perceive.json +29 -0
  66. package/data/packs/acts/prompts/mentor_coach/perceive.prompt +87 -0
  67. package/data/packs/acts/prompts/mentor_coach/system_instruction.prompt +0 -0
  68. package/data/packs/acts/rooms/session.json +14 -0
  69. package/data/packs/acts/rooms/training.json +58 -0
  70. package/data/packs/dnd5e/artifacts/background-acolyte.md +66 -0
  71. package/data/packs/dnd5e/artifacts/character_creator-basics.md +31 -13
  72. package/data/packs/dnd5e/artifacts/class-barbarian.md +4 -1
  73. package/data/packs/dnd5e/artifacts/class-bard.md +2 -1
  74. package/data/packs/dnd5e/artifacts/class-cleric.md +2 -1
  75. package/data/packs/dnd5e/artifacts/class-druid.md +3 -1
  76. package/data/packs/dnd5e/artifacts/class-fighter.md +3 -1
  77. package/data/packs/dnd5e/artifacts/class-monk.md +2 -1
  78. package/data/packs/dnd5e/artifacts/class-paladin.md +2 -1
  79. package/data/packs/dnd5e/artifacts/class-ranger.md +3 -1
  80. package/data/packs/dnd5e/artifacts/class-rogue.md +3 -1
  81. package/data/packs/dnd5e/artifacts/class-sorcerer.md +2 -1
  82. package/data/packs/dnd5e/artifacts/class-warlock.md +3 -1
  83. package/data/packs/dnd5e/artifacts/class-wizard.md +2 -1
  84. package/data/packs/dnd5e/artifacts/manifest.json +6 -0
  85. package/data/packs/dnd5e/pack.json +1 -1
  86. package/data/packs/dnd5e/prompts/battle_master/perceive.prompt +491 -378
  87. package/data/packs/dnd5e/prompts/campaign_designer/perceive.prompt +24 -7
  88. package/data/packs/dnd5e/prompts/character_creator/defaults_config.json +2 -13
  89. package/data/packs/dnd5e/prompts/character_creator/perceive.prompt +217 -87
  90. package/data/packs/dnd5e/prompts/dnd_player/defaults_config.json +5 -5
  91. package/data/packs/dnd5e/prompts/dnd_player/perceive.prompt +18 -4
  92. package/data/packs/dnd5e/prompts/dnd_room_moderator/defaults_config.json +9 -9
  93. package/data/packs/dnd5e/prompts/dnd_room_moderator/moderate.prompt +13 -10
  94. package/data/packs/dnd5e/prompts/dungeon_master/defaults_config.json +32 -30
  95. package/data/packs/dnd5e/prompts/dungeon_master/perceive.prompt +794 -764
  96. package/data/packs/dnd5e/rooms/campaign.json +15 -0
  97. package/dist-sdk/server/src/ai/LLM/anthropic.service.d.ts +3 -0
  98. package/dist-sdk/server/src/ai/LLM/anthropic.service.js +40 -11
  99. package/dist-sdk/server/src/ai/LLM/base-ai.service.d.ts +1 -0
  100. package/dist-sdk/server/src/ai/LLM/base-ai.service.js +16 -0
  101. package/dist-sdk/server/src/ai/LLM/deepseek.service.js +5 -3
  102. package/dist-sdk/server/src/ai/agent-store.service.js +1 -1
  103. package/dist-sdk/server/src/ai/artifact.service.d.ts +2 -0
  104. package/dist-sdk/server/src/ai/artifact.service.js +6 -0
  105. package/dist-sdk/server/src/ai/pack-artifacts.d.ts +2 -0
  106. package/dist-sdk/server/src/ai/pack-artifacts.js +65 -8
  107. package/dist-sdk/server/src/app/user-service-factory.js +6 -1
  108. package/dist-sdk/server/src/app/user-service-manager.js +1 -1
  109. package/dist-sdk/server/src/app.controller.d.ts +9 -1
  110. package/dist-sdk/server/src/app.controller.js +124 -13
  111. package/dist-sdk/server/src/app.service.d.ts +25 -2
  112. package/dist-sdk/server/src/app.service.js +122 -110
  113. package/dist-sdk/server/src/auth/auth.controller.js +4 -0
  114. package/dist-sdk/server/src/auth/auth.service.d.ts +2 -1
  115. package/dist-sdk/server/src/auth/dto/phone-login.dto.d.ts +2 -1
  116. package/dist-sdk/server/src/config/prompt-resolver.d.ts +2 -0
  117. package/dist-sdk/server/src/config/prompt-resolver.js +14 -7
  118. package/dist-sdk/server/src/documents/pdf-conversion.d.ts +43 -0
  119. package/dist-sdk/server/src/documents/pdf-conversion.js +175 -0
  120. package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +2 -1
  121. package/dist-sdk/server/src/packs/pack-instantiation.service.js +16 -5
  122. package/dist-sdk/server/src/room/room-message.service.d.ts +2 -1
  123. package/dist-sdk/server/src/room/room-message.service.js +3 -2
  124. package/dist-sdk/server/src/room/room-store.service.js +5 -1
  125. package/dist-sdk/server/src/room/room.d.ts +15 -2
  126. package/dist-sdk/server/src/room/room.js +86 -25
  127. package/dist-sdk/server/src/rpg/rpg-models.d.ts +9 -0
  128. package/dist-sdk/server/src/rpg/rpg-models.js +128 -0
  129. package/dist-sdk/server/src/rpg/rpg-roster.d.ts +10 -0
  130. package/dist-sdk/server/src/rpg/rpg-roster.js +71 -0
  131. package/dist-sdk/server/src/rpg/rpg.service.d.ts +29 -0
  132. package/dist-sdk/server/src/rpg/rpg.service.js +199 -0
  133. package/dist-sdk/server/src/sdk/index.d.ts +7 -4
  134. package/dist-sdk/server/src/sdk/index.js +8 -1
  135. package/dist-sdk/server/src/story/story.service.d.ts +2 -1
  136. package/dist-sdk/server/src/story/story.service.js +42 -4
  137. package/dist-sdk/server/src/tools/native-tool.types.d.ts +5 -0
  138. package/dist-sdk/server/src/tools/packs/acts/data/cards.d.ts +53 -0
  139. package/dist-sdk/server/src/tools/packs/acts/data/cards.js +54 -0
  140. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.d.ts +2 -0
  141. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.js +185 -0
  142. package/dist-sdk/server/src/tools/packs/acts/data/encounters.d.ts +12 -0
  143. package/dist-sdk/server/src/tools/packs/acts/data/encounters.js +102 -0
  144. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.d.ts +2 -0
  145. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.js +196 -0
  146. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.d.ts +2 -0
  147. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.js +1311 -0
  148. package/dist-sdk/server/src/tools/packs/acts/engine/cards.d.ts +5 -0
  149. package/dist-sdk/server/src/tools/packs/acts/engine/cards.js +27 -0
  150. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.d.ts +37 -0
  151. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.js +120 -0
  152. package/dist-sdk/server/src/tools/packs/acts/engine/dice.d.ts +20 -0
  153. package/dist-sdk/server/src/tools/packs/acts/engine/dice.js +41 -0
  154. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.d.ts +54 -0
  155. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.js +200 -0
  156. package/dist-sdk/server/src/tools/packs/acts/index.d.ts +2 -0
  157. package/dist-sdk/server/src/tools/packs/acts/index.js +24 -0
  158. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.d.ts +2 -0
  159. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.js +184 -0
  160. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.d.ts +2 -0
  161. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.js +107 -0
  162. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.d.ts +3 -0
  163. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.js +146 -0
  164. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.d.ts +4 -0
  165. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.js +241 -0
  166. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.d.ts +3 -0
  167. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.js +72 -0
  168. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.d.ts +2 -0
  169. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.js +75 -0
  170. package/dist-sdk/server/src/tools/packs/acts/tools/shared.d.ts +20 -0
  171. package/dist-sdk/server/src/tools/packs/acts/tools/shared.js +70 -0
  172. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.d.ts +4 -0
  173. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.js +215 -0
  174. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.d.ts +0 -21
  175. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.js +1 -56
  176. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.d.ts +10 -0
  177. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.js +67 -0
  178. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.d.ts +5 -0
  179. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.js +7 -1
  180. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.js +4 -3
  181. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.d.ts +6 -0
  182. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.js +92 -0
  183. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +32 -5
  184. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +177 -28
  185. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.d.ts +1 -13
  186. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.js +15 -145
  187. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.d.ts +7 -0
  188. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.js +11 -0
  189. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +5 -0
  190. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +45 -2
  191. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +3 -0
  192. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.d.ts +21 -0
  193. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.js +45 -0
  194. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +6 -4
  195. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +17 -0
  196. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +56 -4
  197. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +3 -0
  198. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +117 -15
  199. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.d.ts +2 -0
  200. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.js +96 -0
  201. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +40 -3
  202. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +36 -27
  203. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +7 -4
  204. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +15 -1
  205. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +73 -0
  206. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +40 -12
  207. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.js +68 -2
  208. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.d.ts +1 -0
  209. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +119 -14
  210. package/dist-sdk/server/src/tools/packs/index.d.ts +2 -1
  211. package/dist-sdk/server/src/tools/packs/index.js +4 -1
  212. package/dist-sdk/server/src/tools/shared/coerce.d.ts +13 -0
  213. package/dist-sdk/server/src/tools/shared/coerce.js +147 -0
  214. package/dist-sdk/server/src/tools/tool-execution.service.d.ts +3 -2
  215. package/dist-sdk/server/src/tools/tool-execution.service.js +4 -1
  216. package/dist-sdk/shared/types/app.types.d.ts +73 -0
  217. package/dist-sdk/shared/types/app.types.js +2 -1
  218. package/docs/assets/hierarchy.js +1 -1
  219. package/docs/assets/highlight.css +7 -0
  220. package/docs/assets/navigation.js +1 -1
  221. package/docs/assets/search.js +1 -1
  222. package/docs/classes/Agent.html +73 -73
  223. package/docs/classes/Briyah.html +16 -16
  224. package/docs/classes/BriyahConfigService.html +7 -7
  225. package/docs/classes/NativeToolRegistry.html +10 -10
  226. package/docs/classes/PackInstantiationService.html +20 -9
  227. package/docs/classes/PackService.html +13 -13
  228. package/docs/classes/Room.html +118 -93
  229. package/docs/classes/RoomMessage.html +22 -22
  230. package/docs/enums/MessageAction.html +18 -18
  231. package/docs/functions/actsTools.html +44 -0
  232. package/docs/functions/availableToolPacks.html +4 -4
  233. package/docs/functions/buildMarkdown.html +54 -0
  234. package/docs/functions/dnd5eTools.html +4 -4
  235. package/docs/functions/installToolPacks.html +4 -4
  236. package/docs/functions/pageMarker.html +45 -0
  237. package/docs/functions/registerToolPacks.html +4 -4
  238. package/docs/functions/splitMarkdownIntoPages.html +51 -0
  239. package/docs/functions/stripWrappingFence.html +52 -0
  240. package/docs/hierarchy.html +13 -9
  241. package/docs/index.html +161 -44
  242. package/docs/interfaces/AgentCreationOptions.html +12 -12
  243. package/docs/interfaces/AgentInfo.html +30 -30
  244. package/docs/interfaces/AgentMessagesResponse.html +8 -8
  245. package/docs/interfaces/AppService.html +300 -194
  246. package/docs/interfaces/Artifact.html +9 -9
  247. package/docs/interfaces/ArtifactMetadata.html +13 -13
  248. package/docs/interfaces/ArtifactWriteOptions.html +7 -7
  249. package/docs/interfaces/AttachDocumentResponse.html +6 -6
  250. package/docs/interfaces/BriyahConfigOptions.html +12 -12
  251. package/docs/interfaces/ChapterInfo.html +6 -6
  252. package/docs/interfaces/Character.html +10 -10
  253. package/docs/interfaces/ConversionAgent.html +78 -0
  254. package/docs/interfaces/CreateAgentResponse.html +5 -5
  255. package/docs/interfaces/CreateRoomResponse.html +6 -6
  256. package/docs/interfaces/CreateStoryResponse.html +5 -5
  257. package/docs/interfaces/FileList.html +5 -5
  258. package/docs/interfaces/FileMetadata.html +10 -10
  259. package/docs/interfaces/IConfigService.html +5 -5
  260. package/docs/interfaces/InstantiateModels.html +6 -6
  261. package/docs/interfaces/InstantiateRoomResult.html +7 -7
  262. package/docs/interfaces/LoadedPack.html +16 -16
  263. package/docs/interfaces/LoggingOptions.html +9 -9
  264. package/docs/interfaces/Message.html +9 -9
  265. package/docs/interfaces/ModelChoice.html +7 -7
  266. package/docs/interfaces/ModelInfo.html +8 -8
  267. package/docs/interfaces/NativeToolDefinition.html +10 -10
  268. package/docs/interfaces/PackAgentTemplate.html +9 -9
  269. package/docs/interfaces/PackRoomTemplate.html +11 -11
  270. package/docs/interfaces/PackView.html +20 -20
  271. package/docs/interfaces/PdfConversionOptions.html +102 -0
  272. package/docs/interfaces/PdfConversionResult.html +97 -0
  273. package/docs/interfaces/PdfMarkdownOptions.html +198 -0
  274. package/docs/interfaces/PdfMarkdownResult.html +106 -0
  275. package/docs/interfaces/PdfPageMarkdown.html +94 -0
  276. package/docs/interfaces/PreparedPromptResponse.html +6 -6
  277. package/docs/interfaces/ProcessTextResponse.html +10 -10
  278. package/docs/interfaces/PromptFile.html +7 -7
  279. package/docs/interfaces/PromptFileContent.html +8 -8
  280. package/docs/interfaces/PromptFilesResponse.html +5 -5
  281. package/docs/interfaces/PromptFolder.html +8 -8
  282. package/docs/interfaces/PromptFolderDefaults.html +19 -19
  283. package/docs/interfaces/PromptFolderDefaultsResponse.html +21 -8
  284. package/docs/interfaces/PromptFoldersResponse.html +5 -5
  285. package/docs/interfaces/RoomDetails.html +19 -19
  286. package/docs/interfaces/RoomErrorUpdate.html +82 -0
  287. package/docs/interfaces/RoomInfo.html +10 -10
  288. package/docs/interfaces/RoomMessageUpdate.html +30 -15
  289. package/docs/interfaces/RoomMessagesResponse.html +6 -6
  290. package/docs/interfaces/SendMessageResult.html +6 -6
  291. package/docs/interfaces/StoryErrorEvent.html +8 -8
  292. package/docs/interfaces/StoryIdea.html +8 -8
  293. package/docs/interfaces/StoryInfo.html +28 -28
  294. package/docs/interfaces/StoryIntroduceCharacterEvent.html +7 -7
  295. package/docs/interfaces/StoryProgressChapterEvent.html +6 -6
  296. package/docs/interfaces/StoryState.html +12 -12
  297. package/docs/interfaces/StoryStateEvent.html +7 -7
  298. package/docs/interfaces/ToolArtifact.html +9 -9
  299. package/docs/interfaces/ToolCaller.html +7 -7
  300. package/docs/interfaces/ToolDefinition.html +9 -9
  301. package/docs/interfaces/ToolHelpers.html +17 -8
  302. package/docs/interfaces/ToolPackDocuments.html +100 -0
  303. package/docs/interfaces/ToolParameter.html +8 -8
  304. package/docs/interfaces/ToolRoomAccess.html +14 -14
  305. package/docs/interfaces/ToolSummary.html +8 -8
  306. package/docs/interfaces/ToolsResponse.html +7 -7
  307. package/docs/interfaces/Transaction.html +13 -13
  308. package/docs/interfaces/TransactionHistoryResponse.html +6 -6
  309. package/docs/modules.html +10 -10
  310. package/docs/types/PackOrigin.html +4 -4
  311. package/docs/types/PromptScope.html +4 -4
  312. package/docs/types/RoomTurnMode.html +4 -4
  313. package/docs/types/RoomUpdate.html +36 -0
  314. package/docs/types/RosterOverrides.html +42 -0
  315. package/docs/types/ToolContext.html +4 -4
  316. package/docs/types/ToolRunResult.html +4 -4
  317. package/package.json +1 -1
  318. package/src/tools/packs/dnd5e/README.md +186 -69
  319. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +0 -20
  320. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +0 -112
@@ -0,0 +1,530 @@
1
+ # Acts 27 — The Storm
2
+
3
+ **Theme:** Faith and leadership during overwhelming danger.
4
+ **Length:** 2–3 Sessions
5
+
6
+ ## Quick reference
7
+
8
+ *Read this before the session. The full script follows.*
9
+
10
+ **Scenes, in order**
11
+
12
+ 1. SCENE 1 — BOARDING THE SHIP
13
+ 1. SCENE 2 — SIDON STOP
14
+ 1. SCENE 3 — DIFFICULT SAILING
15
+ 1. SCENE 4 — PAUL'S WARNING
16
+ 1. SCENE 5 — THE STORM BEGINS
17
+ 1. STORM SURVIVAL SYSTEM
18
+ 1. SCENE 6 — PAUL'S ENCOURAGEMENT
19
+ 1. FAITH CHECK
20
+ 1. SCENE 7 — SHIPWRECK APPROACHES
21
+ 1. NAVIGATION CHECK
22
+ 1. SCENE 8 — SOLDIERS' PLAN
23
+ 1. COMPASSION CHECK
24
+ 1. SCENE 9 — THE SHIPWRECK
25
+ 1. FINAL SURVIVAL ROLL
26
+ 1. END OF CHAPTER 27 REWARDS
27
+
28
+ **Attributes and difficulties this chapter uses**
29
+
30
+ | Attribute | DC |
31
+ |---|---|
32
+ | compassion | 12 |
33
+ | wisdom | 11 |
34
+ | knowledge | 12 |
35
+ | knowledge | 13 |
36
+ | wisdom | 14 |
37
+ | wisdom | 13 |
38
+ | courage | 13 |
39
+ | faith | 14 |
40
+ | faith | 13 |
41
+ | wisdom | 12 |
42
+ | knowledge | 14 |
43
+ | compassion | 13 |
44
+ | courage | 14 |
45
+
46
+ Each distinct pairing, once. The script below says where each one falls; roll them with `roll_check`.
47
+
48
+ **Multi-roll scenes** — start each with `challenge`, then roll with `roll_check` and `"challenge": true`.
49
+
50
+ - **Storm Survival** — 4 successes. Attributes: the DM chooses.
51
+ `challenge` with `{"action": "start", "name": "Storm Survival", "successes": 4, "failures": 0}`
52
+
53
+ **Item cards this chapter seeds**
54
+
55
+ - CENTURION PASS
56
+ - ANGEL PROMISE TOKEN
57
+ - SHIPWRECK DRIFTWOOD
58
+
59
+ Award each with `award` when its moment arrives; the tool knows what the printed card does.
60
+
61
+ **Cover the facts.** As each event lands in play, record it with
62
+ `chapter action: "cover"`. Before the session ends, check what is still missing.
63
+
64
+ ---
65
+
66
+ ## The script
67
+
68
+ ## ACTS CAMPAIGN – CHAPTER 27
69
+ **"The Storm"**
70
+
71
+ Level: 16
72
+ Length: 2–3 Sessions
73
+ Theme: Faith and leadership during overwhelming danger.
74
+
75
+ ### BEFORE YOU BEGIN
76
+
77
+ Tell players:
78
+
79
+ "Paul has appealed to Caesar, so he must travel to Rome. But the Mediterranean Sea is dangerous in the winter."
80
+
81
+ Important items that may help:
82
+ - **Aegean Sea Chart**
83
+ - **Ship Rope Coil**
84
+ - **Troas Lantern**
85
+ - **Miletus Prayer Stone**
86
+ - **Travel Provision Pack**
87
+ - **Imperial Transport Order**
88
+
89
+ Abilities that may help:
90
+ - **Promise of Rome**
91
+ - **Witness Before Kings**
92
+ - **Enduring Witness +**
93
+
94
+ ### OPENING SCRIPT
95
+
96
+ Speak calmly.
97
+
98
+ Read:
99
+
100
+ "When it was decided that we would sail for Italy, Paul and some other prisoners were handed over to a centurion named Julius." *(Acts 27:1 NIV)*
101
+
102
+ Pause.
103
+
104
+ Explain:
105
+
106
+ "Julius commands the Roman escort."
107
+
108
+ ---
109
+
110
+ ### SCENE 1 — BOARDING THE SHIP
111
+
112
+ Explain:
113
+
114
+ "The ship travels along the coast of Asia Minor."
115
+
116
+ Read:
117
+
118
+ "We boarded a ship from Adramyttium about to sail for ports along the coast."
119
+
120
+ Pause.
121
+
122
+ Explain:
123
+
124
+ "Paul is still a prisoner but treated respectfully."
125
+
126
+ **INTERACTION CHECK**
127
+ Roll **Compassion DC 12**
128
+
129
+ Success:
130
+ Centurion Julius trusts Paul more.
131
+
132
+ Failure:
133
+ Julius remains cautious.
134
+
135
+ **ITEM SEED — CENTURION PASS**
136
+ Roll **Wisdom DC 11**
137
+
138
+ Success:
139
+ Gain item:
140
+ **Centurion Travel Pass**
141
+
142
+ Future Use:
143
+ Acts 28 Roman protection
144
+ Add +2 to Compassion rolls involving Roman soldiers.
145
+
146
+ ---
147
+
148
+ ### SCENE 2 — SIDON STOP
149
+
150
+ Read:
151
+
152
+ "Julius, in kindness to Paul, allowed him to go to his friends so they might provide for his needs."
153
+
154
+ Pause.
155
+
156
+ Explain:
157
+
158
+ "The believers help prepare supplies."
159
+
160
+ **SUPPLY CHECK**
161
+ Roll **Knowledge DC 12**
162
+
163
+ Success:
164
+ Gain item:
165
+ **Sea Voyage Supply Pack**
166
+
167
+ Contains:
168
+ - dried food
169
+ - water skins
170
+ - bandages
171
+
172
+ Future Use:
173
+ Acts 27 storm survival
174
+ Acts 28 island survival
175
+
176
+ ---
177
+
178
+ ### SCENE 3 — DIFFICULT SAILING
179
+
180
+ Explain:
181
+
182
+ "The wind becomes difficult."
183
+
184
+ Read:
185
+
186
+ "The winds were against us."
187
+
188
+ Pause.
189
+
190
+ Explain:
191
+
192
+ "Navigation becomes slow and dangerous."
193
+
194
+ **NAVIGATION CHECK**
195
+ Roll **Knowledge DC 13**
196
+ If players possess **Aegean Sea Chart**, add +2.
197
+
198
+ Success:
199
+ The ship navigates safely.
200
+
201
+ Failure:
202
+ The journey becomes slower.
203
+
204
+ ---
205
+
206
+ ### SCENE 4 — PAUL'S WARNING
207
+
208
+ Explain:
209
+
210
+ "Paul senses danger in continuing the voyage."
211
+
212
+ Read:
213
+
214
+ "Men, I can see that our voyage is going to be disastrous."
215
+
216
+ Pause.
217
+
218
+ Explain:
219
+
220
+ "Paul warns the crew."
221
+
222
+ **WISDOM CHECK**
223
+ Roll **Wisdom DC 14**
224
+
225
+ Success:
226
+ Some crew members consider Paul's advice.
227
+
228
+ Failure:
229
+ They ignore him completely.
230
+
231
+ ## CREW DECISION
232
+
233
+ Read:
234
+ "But the centurion… followed the advice of the pilot and the owner of the ship."
235
+
236
+ Explain:
237
+ "They continue sailing."
238
+
239
+ ## SCENE 5 — THE STORM BEGINS
240
+
241
+ Shift tone dramatically.
242
+
243
+ Read:
244
+ "Before very long, a wind of hurricane force swept down from the island."
245
+
246
+ Pause.
247
+
248
+ Explain:
249
+ "This storm is called a Northeaster."
250
+
251
+ ## STORM SURVIVAL SYSTEM
252
+
253
+ Explain to players:
254
+ "The storm will last many days."
255
+
256
+ Goal: survive **4 storm phases**.
257
+ Each phase requires one roll.
258
+ Failure increases exhaustion.
259
+
260
+ ## STORM PHASE 1 — LOSS OF CONTROL
261
+
262
+ Read:
263
+ "The ship was caught by the storm and could not head into the wind."
264
+
265
+ Roll **Knowledge DC 13**
266
+
267
+ Success:
268
+ Crew secures the ship.
269
+
270
+ Failure:
271
+ Ship damage increases.
272
+
273
+ ## ITEM USE OPPORTUNITY
274
+
275
+ Players may use **Ship Rope Coil** to gain +2 on the roll.
276
+
277
+ ## STORM PHASE 2 — THROWING CARGO OVERBOARD
278
+
279
+ Read:
280
+ "They began to throw the cargo overboard."
281
+
282
+ Roll **Wisdom DC 13**
283
+
284
+ Success:
285
+ The ship stabilizes slightly.
286
+
287
+ Failure:
288
+ Storm damage increases.
289
+
290
+ ## STORM PHASE 3 — DARKNESS
291
+
292
+ Read:
293
+ "When neither sun nor stars appeared for many days…"
294
+
295
+ Pause.
296
+
297
+ Explain:
298
+ "The crew loses navigation."
299
+
300
+ Roll **Courage DC 13**
301
+
302
+ Success:
303
+ Players remain calm.
304
+
305
+ Failure:
306
+ Fear spreads.
307
+
308
+ ## STORM PHASE 4 — LOSS OF HOPE
309
+
310
+ Read:
311
+ "We finally gave up all hope of being saved."
312
+
313
+ Pause.
314
+
315
+ Explain:
316
+ "The crew is exhausted."
317
+
318
+ Roll **Faith DC 14**
319
+
320
+ Success:
321
+ Players inspire hope.
322
+
323
+ Failure:
324
+ Despair deepens.
325
+
326
+ ## SCENE 6 — PAUL'S ENCOURAGEMENT
327
+
328
+ Read slowly:
329
+ "Last night an angel of the God to whom I belong stood beside me."
330
+
331
+ Pause.
332
+
333
+ Then read:
334
+ "Do not be afraid, Paul."
335
+
336
+ Pause.
337
+
338
+ Then read:
339
+ "You must stand trial before Caesar."
340
+
341
+ Explain:
342
+ "Everyone on the ship will survive."
343
+
344
+ ## FAITH CHECK
345
+
346
+ Roll **Faith DC 13**
347
+
348
+ Success:
349
+ Crew begins trusting Paul.
350
+
351
+ Failure:
352
+ Some remain doubtful.
353
+
354
+ ## ITEM SEED — ANGEL PROMISE TOKEN
355
+
356
+ Roll **Wisdom DC 12**
357
+
358
+ Success:
359
+ Gain item:
360
+ **Angel Promise Token**
361
+
362
+ Future Use:
363
+ Acts 28 danger survival
364
+ Automatically succeed one Courage roll.
365
+
366
+ ## SCENE 7 — SHIPWRECK APPROACHES
367
+
368
+ Explain:
369
+ "The crew senses land nearby."
370
+
371
+ Read:
372
+ "They took soundings and found that the water was 120 feet deep."
373
+
374
+ Pause.
375
+
376
+ Explain:
377
+ "The ship is approaching land."
378
+
379
+ ## NAVIGATION CHECK
380
+
381
+ Roll **Knowledge DC 14**
382
+
383
+ Success:
384
+ They prepare correctly.
385
+
386
+ Failure:
387
+ The ship hits rocks harder.
388
+
389
+ ## SCENE 8 — SOLDIERS' PLAN
390
+
391
+ Read:
392
+ "The soldiers planned to kill the prisoners."
393
+
394
+ Pause.
395
+
396
+ Explain:
397
+ "Roman law held soldiers responsible for escaping prisoners."
398
+
399
+ ## COMPASSION CHECK
400
+
401
+ Roll **Compassion DC 13**
402
+
403
+ Success:
404
+ Centurion Julius protects Paul and the prisoners.
405
+
406
+ Failure:
407
+ Tension rises but Julius still intervenes.
408
+
409
+ ## SCENE 9 — THE SHIPWRECK
410
+
411
+ Read dramatically:
412
+
413
+ "The ship struck a sandbar and ran aground."
414
+
415
+ Pause.
416
+
417
+ Then read:
418
+
419
+ "The bow stuck fast and would not move."
420
+
421
+ Pause again.
422
+
423
+ Then read:
424
+
425
+ "The stern was broken to pieces by the pounding of the surf."
426
+
427
+ ---
428
+
429
+ ## FINAL SURVIVAL ROLL
430
+
431
+ Roll **Courage DC 14**
432
+
433
+ Success:
434
+ Players reach shore safely.
435
+
436
+ Failure:
437
+ Players struggle but still survive.
438
+
439
+ ---
440
+
441
+ ## KEY VERSE
442
+
443
+ Read:
444
+
445
+ "In this way everyone reached land safely."
446
+
447
+ Pause.
448
+
449
+ Explain:
450
+
451
+ "All **276 people** survive the storm."
452
+
453
+ ---
454
+
455
+ ## ITEM SEED — SHIPWRECK DRIFTWOOD
456
+
457
+ Roll **Wisdom DC 11**
458
+
459
+ Success:
460
+ Gain item:
461
+
462
+ **Shipwreck Driftwood Staff**
463
+
464
+ Future Use:
465
+ Acts 28 fire building
466
+ Acts 28 snake encounter
467
+ Add +2 to survival rolls on land.
468
+
469
+ ---
470
+
471
+ ## CLOSING SCRIPT
472
+
473
+ Speak slowly.
474
+
475
+ Say:
476
+
477
+ "The storm is over."
478
+
479
+ Pause.
480
+
481
+ Then read:
482
+
483
+ "Once safely on shore, we found out that the island was called Malta."
484
+
485
+ Pause.
486
+
487
+ Explain:
488
+
489
+ "The final chapter begins here."
490
+
491
+ ---
492
+
493
+ ## END OF CHAPTER 27 REWARDS
494
+
495
+ Possible Gains:
496
+ Centurion Travel Pass
497
+ Sea Voyage Supply Pack
498
+ Angel Promise Token
499
+ Shipwreck Driftwood Staff
500
+ Faith Points: +3–5
501
+
502
+ Ability strengthened:
503
+ Promise of Rome
504
+
505
+ ## CAMPAIGN IMPACT
506
+
507
+ This chapter leads to the **final chapter of Acts**:
508
+ Acts 28 — Malta and Rome
509
+
510
+ Key events coming next:
511
+ - Snake bite survival
512
+ - Healing miracles on Malta
513
+ - Roman house arrest in Rome
514
+ - The final preaching of the gospel
515
+
516
+ Below is **Acts Chapter 28**, the final chapter of the **Acts Campaign**. This chapter concludes the adventure with survival on Malta, miracles, and Paul's arrival in Rome where the gospel continues to spread.
517
+
518
+ This chapter includes:
519
+ - Survival on Malta
520
+ - The famous **snakebite event**
521
+ - Healing miracles on the island
522
+ - The journey to Rome
523
+ - Paul preaching under house arrest
524
+
525
+ Your attributes remain:
526
+ **Faith • Compassion • Knowledge • Wisdom • Courage**
527
+
528
+ This chapter also provides the **campaign ending system** and final rewards.
529
+
530
+ ---