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,346 @@
1
+ # Acts 9
2
+
3
+ **Length:** ** 2 Sessions
4
+
5
+ ## Quick reference
6
+
7
+ *Read this before the session. The full script follows.*
8
+
9
+ **Scenes, in order**
10
+
11
+ 1. SCENE 1 — THE LIGHT
12
+ 1. SCENE 2 — THREE DAYS BLIND
13
+ 1. SCENE 3 — ANANIAS' VISION
14
+ 1. SCENE 4 — HEALING SAUL
15
+ 1. SCENE 5 — SAUL PREACHES
16
+ 1. SCENE 6 — ASSASSINATION PLOT
17
+ 1. SCENE 7 — JERUSALEM SUSPICION
18
+ 1. SCENE 8 — PETER HEALS AENEAS
19
+ 1. SCENE 9 — TABITHA
20
+
21
+ **Attributes and difficulties this chapter uses**
22
+
23
+ | Attribute | DC |
24
+ |---|---|
25
+ | courage | 14 |
26
+ | faith | 13 |
27
+ | wisdom | 12 |
28
+ | compassion | 12 |
29
+ | faith | 14 |
30
+ | knowledge | 14 |
31
+ | faith | 15 |
32
+ | courage | 13 |
33
+ | wisdom | 13 |
34
+ | compassion | 14 |
35
+ | knowledge | 12 |
36
+
37
+ Each distinct pairing, once. The script below says where each one falls; roll them with `roll_check`.
38
+
39
+ **Item cards this chapter seeds**
40
+
41
+ - DESERT TRAVEL SATCHEL
42
+
43
+ Award each with `award` when its moment arrives; the tool knows what the printed card does.
44
+
45
+ **Cover the facts.** As each event lands in play, record it with
46
+ `chapter action: "cover"`. Before the session ends, check what is still missing.
47
+
48
+ ---
49
+
50
+ ## The script
51
+
52
+ ## Acts Campaign – Chapter 9
53
+ ## "Blinded by Glory"
54
+
55
+ **Attributes Used:** Faith, Compassion, Knowledge, Wisdom, Courage
56
+ **Level:** 6–7
57
+ **Length:** 2 Sessions
58
+
59
+ ---
60
+
61
+ ### SESSION OPENING
62
+
63
+ Say:
64
+ "Stephen is dead. The church is scattered. But one man is not running. He is hunting."
65
+
66
+ Read:
67
+ "Meanwhile, Saul was still breathing out murderous threats against the Lord's disciples…" (Acts 9:1–2 NIV)
68
+
69
+ Pause.
70
+
71
+ Say:
72
+ "Saul is coming to Damascus. If he finds believers, he will arrest them."
73
+
74
+ Ask:
75
+ "Where are your characters?"
76
+
77
+ Let them respond briefly.
78
+
79
+ ---
80
+
81
+ ### SCENE 1 — THE LIGHT
82
+
83
+ Read slowly:
84
+ "As he neared Damascus on his journey, suddenly a light from heaven flashed around him."
85
+
86
+ Everyone rolls:
87
+ Courage DC 14
88
+ Failure: Fall prone.
89
+ Success: Shield eyes.
90
+
91
+ Then read:
92
+ "Saul, Saul, why do you persecute me?"
93
+
94
+ Pause.
95
+
96
+ Speak as Saul:
97
+ "Who are you, Lord?"
98
+
99
+ Then firmly:
100
+ "I am Jesus, whom you are persecuting."
101
+
102
+ All players roll:
103
+ Faith DC 13
104
+ Failure: Shaken for 1 round
105
+ Success: Deep reverence
106
+ Award: +1 Faith Point
107
+
108
+ Say:
109
+ "Saul is blind."
110
+
111
+ ---
112
+
113
+ ### ITEM SEED— DESERT TRAVEL SATCHEL
114
+
115
+ Say:
116
+ "As Saul's caravan reorganizes, some supplies fall."
117
+
118
+ Ask:
119
+ "Does anyone check the area?"
120
+
121
+ If yes:
122
+ Roll Wisdom DC 12
123
+
124
+ Success:
125
+ They find:
126
+ **Item: Desert Travel Satchel**
127
+ - Contains dried herbs
128
+ - Basic bandages
129
+ - Small knife
130
+ - Empty vial
131
+
132
+ Explain:
133
+ "These herbs can later be used to attempt a healing roll or create a remedy."
134
+
135
+ Write it down in party inventory.
136
+
137
+ ---
138
+
139
+ ### SCENE 2 — THREE DAYS BLIND
140
+
141
+ Read:
142
+ "For three days he was blind, and did not eat or drink anything."
143
+
144
+ Ask:
145
+ "Do you help him or avoid him?"
146
+
147
+ If someone offers water or comfort:
148
+ Roll Compassion DC 12
149
+
150
+ Success:
151
+ Gain:
152
+ **ITEM SEED: Relational Trust Token (Saul)**
153
+ This may help in Acts 22 when Saul defends himself.
154
+
155
+ ---
156
+
157
+ ### SCENE 3 — ANANIAS' VISION
158
+
159
+ Read:
160
+ "Go to the house of Judas on Straight Street…"
161
+
162
+ Ask players:
163
+ "Do you obey?"
164
+
165
+ Roll Courage DC 14 if hesitant.
166
+
167
+ Success:
168
+ Gain +2 Faith Points
169
+
170
+ Failure:
171
+ Still go, but no bonus.
172
+
173
+ ---
174
+
175
+ ### SCENE 4 — HEALING SAUL
176
+
177
+ Have player lay hands.
178
+ Roll Faith DC 14.
179
+
180
+ Read:
181
+ "Immediately, something like scales fell from Saul's eyes…"
182
+
183
+ Unlock Ability:
184
+ **ABILITY GAINED: Discern Calling**
185
+ Once per chapter, ask the DM:
186
+ "What is God doing here?"
187
+ DM must give a helpful clue.
188
+
189
+ ---
190
+
191
+ ### SCENE 5 — SAUL PREACHES
192
+
193
+ Skill Challenge:
194
+ 3 successes before 2 failures
195
+
196
+ Rolls allowed:
197
+ - Knowledge DC 14
198
+ - Faith DC 15
199
+ - Courage DC 13
200
+
201
+ On success:
202
+ Read:
203
+ "Saul grew more and more powerful…"
204
+
205
+ Reward:
206
+ **ITEM SEED: Letters of Authority (Redeemed)**
207
+ Originally for arrest.
208
+ Now can be used later to:
209
+ - Gain synagogue access
210
+ - Prove identity
211
+ - Influence Roman officials
212
+
213
+ Keep for future chapters (Acts 22–26).
214
+
215
+ ## SCENE 6 — ASSASSINATION PLOT
216
+
217
+ Read:
218
+ "There was a conspiracy among the Jews to kill him."
219
+
220
+ Roll Wisdom DC 13 to detect plot.
221
+
222
+ Escape via basket:
223
+ Group Courage DC 14
224
+
225
+ Success:
226
+ Gain item:
227
+
228
+ **ITEM SEED: Damascus Escape Rope**
229
+ Strong woven rope.
230
+ May be reused for prison escapes later (Acts 16, Acts 27).
231
+
232
+ ---
233
+
234
+ ## SCENE 7 — JERUSALEM SUSPICION
235
+
236
+ Read:
237
+ "They were all afraid of him."
238
+
239
+ Roll Wisdom DC 13 to read room.
240
+
241
+ If players show Compassion:
242
+ Roll Compassion DC 14
243
+
244
+ Success:
245
+ Gain:
246
+
247
+ **ABILITY GAINED: Ministry of Reconciliation**
248
+ Once per session, automatically calm hostile believers.
249
+
250
+ ---
251
+
252
+ ## SCENE 8 — PETER HEALS AENEAS
253
+
254
+ Read:
255
+ "Aeneas, Jesus Christ heals you."
256
+
257
+ Roll Faith DC 13.
258
+
259
+ Success:
260
+ Add to inventory:
261
+
262
+ **ITEM SEED: Anointing Oil Flask**
263
+ Given by grateful believers.
264
+ Can grant +2 to one future Faith roll.
265
+
266
+ ---
267
+
268
+ ## SCENE 9 — TABITHA
269
+
270
+ Read:
271
+ "Tabitha, get up."
272
+
273
+ Roll Faith DC 15 (higher difficulty — resurrection moment)
274
+
275
+ Success:
276
+ Gain:
277
+
278
+ **ABILITY GAINED: Intercessory Unity**
279
+ If entire party prays together, add +2 to Faith rolls.
280
+
281
+ ---
282
+
283
+ ## OPTIONAL ITEM DISCOVERY — HERBAL REMEDY
284
+
285
+ In Joppa, say:
286
+ "Simon the tanner keeps dried medicinal plants."
287
+
288
+ Ask:
289
+ "Does anyone inspect the workshop?"
290
+
291
+ Roll Knowledge DC 12
292
+
293
+ Success:
294
+ They acquire:
295
+
296
+ **ITEM SEED: Medicinal Herb Bundle**
297
+
298
+ Future Use (Acts 28 — Malta):
299
+ If snake bite occurs:
300
+ Roll Knowledge DC 14 using herbs.
301
+ Success reduces poison effect.
302
+
303
+ ---
304
+
305
+ ## INVENTORY SUMMARY (END OF CHAPTER 9)
306
+
307
+ Party May Have:
308
+ • Desert Travel Satchel
309
+ • Relational Trust Token (Saul)
310
+ • Letters of Authority (Redeemed)
311
+ • Damascus Escape Rope
312
+ • Anointing Oil Flask
313
+ • Medicinal Herb Bundle
314
+ • Ability: Discern Calling
315
+ • Ability: Ministry of Reconciliation
316
+ • Ability: Intercessory Unity
317
+
318
+ Tell players:
319
+ "These are not random items. God is preparing you for future trials."
320
+
321
+ ---
322
+
323
+ ## CLOSING SCRIPT
324
+
325
+ Read:
326
+ "Then the church throughout Judea, Galilee and Samaria enjoyed a
327
+ time of peace and was strengthened…"
328
+
329
+ Pause.
330
+
331
+ Say:
332
+ "Persecution did not stop the gospel. It redirected it."
333
+
334
+ End session.
335
+
336
+ Below is **Acts Chapter 10 – Full Beginner DM Script Edition**, built to:
337
+
338
+ - Use your 5 Attributes (Faith, Compassion, Knowledge, Wisdom, Courage)
339
+ - Include direct NIV 2011 quotes
340
+ - Seed future items & mechanics
341
+ - Connect forward to Acts 11, 12, 15, 21
342
+ - Introduce Gentile inclusion mechanics
343
+ - Provide exact DM wording
344
+ - Clearly explain when to roll
345
+
346
+ This chapter is pivotal. Treat it slowly and reverently.
@@ -0,0 +1,367 @@
1
+ # Acts 10
2
+
3
+ **Theme:** God breaks boundaries.
4
+ **Length:** 2 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 — CORNELIUS' VISION
13
+ 1. SCENE 2 — PETER'S VISION
14
+ 1. SCENE 3 — THE ARRIVAL
15
+ 1. SCENE 4 — ENTERING A GENTILE HOME
16
+ 1. SCENE 5 — THE HOLY SPIRIT FALLS
17
+ 1. END OF CHAPTER 10 REWARDS
18
+
19
+ **Attributes and difficulties this chapter uses**
20
+
21
+ | Attribute | DC |
22
+ |---|---|
23
+ | wisdom | 13 |
24
+ | knowledge | 12 |
25
+ | faith | 14 |
26
+ | courage | 13 |
27
+ | knowledge | 11 |
28
+ | faith | 15 |
29
+ | wisdom | 12 |
30
+
31
+ Each distinct pairing, once. The script below says where each one falls; roll them with `roll_check`.
32
+
33
+ **Cover the facts.** As each event lands in play, record it with
34
+ `chapter action: "cover"`. Before the session ends, check what is still missing.
35
+
36
+ ---
37
+
38
+ ## The script
39
+
40
+ ## ACTS CAMPAIGN – CHAPTER 10
41
+ ### "What God Has Made Clean"
42
+
43
+ Level: 7
44
+ Length: 2 Sessions
45
+ Primary Theme: God breaks boundaries.
46
+
47
+ ---
48
+
49
+ ### BEFORE SESSION
50
+
51
+ Remind players:
52
+
53
+ "You are no longer just surviving persecution. You are watching the gospel cross lines no one expected."
54
+
55
+ Have your Item Master List nearby.
56
+
57
+ ---
58
+
59
+ ### OPENING NARRATION
60
+
61
+ Speak calmly:
62
+
63
+ "At Caesarea there was a man named Cornelius, a centurion in what was known as the Italian Regiment."
64
+
65
+ Pause.
66
+
67
+ Explain (if needed):
68
+
69
+ "A centurion commands about 100 Roman soldiers. He is powerful. He is Gentile."
70
+
71
+ Continue:
72
+
73
+ "He and all his family were devout and God-fearing; he gave generously to those in need and prayed to God regularly." (Acts 10:1–2 NIV)
74
+
75
+ Pause.
76
+
77
+ Say:
78
+
79
+ "This is the first time we focus on a Gentile who truly seeks God."
80
+
81
+ ---
82
+
83
+ ### SCENE 1 — CORNELIUS' VISION
84
+
85
+ Read:
86
+
87
+ "One day at about three in the afternoon he had a vision."
88
+
89
+ Speak softer:
90
+
91
+ "Cornelius! … Your prayers and gifts to the poor have come up as a memorial offering before God."
92
+
93
+ Pause.
94
+
95
+ Ask players:
96
+
97
+ "What do you think Cornelius feels right now?"
98
+
99
+ Let brief responses.
100
+
101
+ Continue:
102
+
103
+ "Now send men to Joppa to bring back a man named Simon who is called Peter."
104
+
105
+ **ATTRIBUTE ROLL**
106
+
107
+ Have players roll Wisdom DC 13.
108
+
109
+ Purpose:
110
+
111
+ Discern significance.
112
+
113
+ Success:
114
+
115
+ "You sense this is not just personal salvation. This is history changing."
116
+
117
+ Failure:
118
+
119
+ "You sense something important but unclear."
120
+
121
+ ---
122
+
123
+ ### ITEM SEED 1 — CENTURION'S GIFT POUCH
124
+
125
+ Say:
126
+
127
+ "Cornelius prepares a gift for Peter."
128
+
129
+ Ask:
130
+
131
+ "Does anyone inspect the pouch?"
132
+
133
+ If yes:
134
+
135
+ Roll Knowledge DC 12.
136
+
137
+ Success:
138
+
139
+ Item gained:
140
+
141
+ **Centurion's Gift Pouch**
142
+ - Roman coinage
143
+ - Sealed military insignia token
144
+
145
+ Future Use:
146
+ - Acts 21 temple riot (prove Roman connection)
147
+ - Acts 23 protection from plot
148
+
149
+ ---
150
+
151
+ ### SCENE 2 — PETER'S VISION
152
+
153
+ Switch tone.
154
+
155
+ Say:
156
+
157
+ "Meanwhile…"
158
+
159
+ Read:
160
+
161
+ "Peter went up on the roof to pray."
162
+
163
+ Pause.
164
+
165
+ "He became hungry and wanted something to eat…"
166
+
167
+ Then:
168
+
169
+ "He saw heaven opened and something like a large sheet being let down to earth by its four corners."
170
+
171
+ Slow down here.
172
+
173
+ "It contained all kinds of four-footed animals…"
174
+
175
+ Then read clearly:
176
+
177
+ "Get up, Peter. Kill and eat."
178
+
179
+ Pause.
180
+
181
+ Let that sit.
182
+
183
+ Peter responds:
184
+
185
+ "Surely not, Lord! … I have never eaten anything impure or unclean."
186
+
187
+ Now read the KEY verse slowly:
188
+
189
+ "Do not call anything impure that God has made clean."
190
+
191
+ Pause for 5 seconds.
192
+
193
+ **ATTRIBUTE ROLL — FAITH**
194
+
195
+ Have everyone roll Faith DC 14.
196
+
197
+ Purpose:
198
+
199
+ Can they accept change from God?
200
+
201
+ Success:
202
+
203
+ "You feel boundaries shifting."
204
+
205
+ Failure:
206
+
207
+ "You struggle internally."
208
+
209
+ ---
210
+
211
+ ### GENTILE INCLUSION MECHANIC (NEW CAMPAIGN SYSTEM)
212
+
213
+ From this chapter forward:
214
+
215
+ When interacting cross-culturally:
216
+
217
+ Roll Compassion instead of Courage to build trust.
218
+
219
+ Explain:
220
+
221
+ "The gospel is now crossing ethnic lines. Compassion will matter more than boldness."
222
+
223
+ ---
224
+
225
+ ### SCENE 3 — THE ARRIVAL
226
+
227
+ Read:
228
+
229
+ "The Spirit told him, 'Simon, three men are looking for you… Do not hesitate to go with them.'"
230
+
231
+ Ask:
232
+
233
+ "Do you hesitate?"
234
+
235
+ Roll Courage DC 13.
236
+
237
+ Success:
238
+ Immediate obedience.
239
+ Gain +1 Faith Point.
240
+ Failure:
241
+ Still go, but tension lingers.
242
+
243
+ ## ITEM SEED 2 — LEATHER BINDING STRIPS
244
+
245
+ At Simon the Tanner's house say:
246
+ "Leather tools hang nearby."
247
+ Ask:
248
+ "Does anyone inspect them?"
249
+ Roll Knowledge DC 11.
250
+
251
+ Success:
252
+ Gain:
253
+ **Leather Binding Strips**
254
+ Future Use:
255
+ - Acts 12 prison
256
+ - Acts 27 storm rigging
257
+ - Acts 28 shelter building
258
+
259
+ ## SCENE 4 — ENTERING A GENTILE HOME
260
+
261
+ This is huge culturally.
262
+ Say:
263
+ "Peter enters a Roman home. This would normally defile him."
264
+ Roll Wisdom DC 13.
265
+
266
+ Success:
267
+ "You understand how radical this is."
268
+ Failure:
269
+ "You feel tension but unsure why."
270
+
271
+ ## CORNELIUS BOWS
272
+
273
+ Read:
274
+ "Cornelius met him and fell at his feet in reverence."
275
+ Peter responds:
276
+ "Stand up… I am only a man myself."
277
+ Ask players:
278
+ "How do you respond to misplaced worship?"
279
+ Roll Knowledge DC 12 if needed.
280
+
281
+ ## PETER'S DECLARATION
282
+
283
+ Read clearly:
284
+ "I now realize how true it is that God does not show favoritism…"
285
+ Pause.
286
+ "…but accepts from every nation the one who fears him and does what is right."
287
+ Let silence happen.
288
+ This is theological earthquake.
289
+
290
+ ## GENTILE INCLUSION CHECKPOINT
291
+
292
+ From this moment:
293
+ Add permanent campaign effect:
294
+ Whenever interacting with non-Jews:
295
+ - Compassion DC lowered by 2.
296
+ - Courage DC increased by 1 (because backlash will come).
297
+
298
+ ## SCENE 5 — THE HOLY SPIRIT FALLS
299
+
300
+ Read slowly:
301
+ "While Peter was still speaking these words, the Holy Spirit came on all who heard the message."
302
+ Pause.
303
+ Then:
304
+ "The circumcised believers… were astonished that the gift of the Holy Spirit had been poured out even on Gentiles."
305
+ Have everyone roll Faith DC 15.
306
+
307
+ Success:
308
+ Gain Ability:
309
+ **Spirit Without Borders**
310
+ Once per campaign, remove prejudice effect or cultural barrier automatically.
311
+ Failure:
312
+ Still witness event but do not gain ability.
313
+
314
+ ## BAPTISM
315
+
316
+ Read:
317
+ "Surely no one can stand in the way of their being baptized with water…"
318
+ Pause.
319
+ Say:
320
+ "The wall just fell."
321
+
322
+ ## ITEM SEED 3 — HOUSEHOLD HOSPITALITY TOKEN
323
+
324
+ Say:
325
+ "The household uses large Roman water basins."
326
+ Ask:
327
+ "Does anyone examine them?"
328
+ Roll Wisdom DC 12.
329
+
330
+ Success:
331
+ Gain:
332
+ **Household Hospitality Token**
333
+ Future Use:
334
+ - Acts 16 Lydia
335
+ - Acts 28 Malta islanders
336
+
337
+ Allows automatic success on one Compassion roll involving hospitality.
338
+
339
+ ## FUTURE CONSEQUENCE SEED (ACTS 11)
340
+
341
+ Tell players:
342
+ "Word of this will reach Jerusalem."
343
+ Write in notes:
344
+ Acts 11 challenge coming.
345
+ If players acted boldly and compassionately:
346
+ They gain +2 bonus to upcoming defense roll.
347
+
348
+ ## CLOSING NARRATION
349
+
350
+ Read:
351
+ "Then they asked Peter to stay with them for a few days."
352
+ Pause.
353
+ Say slowly:
354
+ "The gospel has now officially crossed into the Gentile world."
355
+ Look at players.
356
+ "This cannot be undone."
357
+
358
+ ## END OF CHAPTER 10 REWARDS
359
+
360
+ Possible Gains:
361
+ - Centurion's Gift Pouch
362
+ - Leather Binding Strips
363
+ - Household Hospitality Token
364
+ - Ability: Spirit Without Borders
365
+ - Campaign Rule Shift: Compassion emphasized
366
+
367
+ Faith Points: +2 if obedience was immediate.