briyah 2.0.1 → 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 (313) hide show
  1. package/README.md +19 -10
  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 +123 -12
  111. package/dist-sdk/server/src/app.service.d.ts +23 -2
  112. package/dist-sdk/server/src/app.service.js +97 -106
  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/documents/pdf-conversion.d.ts +43 -0
  117. package/dist-sdk/server/src/documents/pdf-conversion.js +175 -0
  118. package/dist-sdk/server/src/room/room-store.service.js +5 -1
  119. package/dist-sdk/server/src/room/room.d.ts +15 -2
  120. package/dist-sdk/server/src/room/room.js +82 -23
  121. package/dist-sdk/server/src/rpg/rpg-models.d.ts +9 -0
  122. package/dist-sdk/server/src/rpg/rpg-models.js +128 -0
  123. package/dist-sdk/server/src/rpg/rpg-roster.d.ts +10 -0
  124. package/dist-sdk/server/src/rpg/rpg-roster.js +71 -0
  125. package/dist-sdk/server/src/rpg/rpg.service.d.ts +29 -0
  126. package/dist-sdk/server/src/rpg/rpg.service.js +199 -0
  127. package/dist-sdk/server/src/sdk/index.d.ts +5 -2
  128. package/dist-sdk/server/src/sdk/index.js +8 -1
  129. package/dist-sdk/server/src/story/story.service.d.ts +2 -1
  130. package/dist-sdk/server/src/story/story.service.js +42 -4
  131. package/dist-sdk/server/src/tools/native-tool.types.d.ts +5 -0
  132. package/dist-sdk/server/src/tools/packs/acts/data/cards.d.ts +53 -0
  133. package/dist-sdk/server/src/tools/packs/acts/data/cards.js +54 -0
  134. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.d.ts +2 -0
  135. package/dist-sdk/server/src/tools/packs/acts/data/character-cards.generated.js +185 -0
  136. package/dist-sdk/server/src/tools/packs/acts/data/encounters.d.ts +12 -0
  137. package/dist-sdk/server/src/tools/packs/acts/data/encounters.js +102 -0
  138. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.d.ts +2 -0
  139. package/dist-sdk/server/src/tools/packs/acts/data/event-cards.generated.js +196 -0
  140. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.d.ts +2 -0
  141. package/dist-sdk/server/src/tools/packs/acts/data/item-cards.generated.js +1311 -0
  142. package/dist-sdk/server/src/tools/packs/acts/engine/cards.d.ts +5 -0
  143. package/dist-sdk/server/src/tools/packs/acts/engine/cards.js +27 -0
  144. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.d.ts +37 -0
  145. package/dist-sdk/server/src/tools/packs/acts/engine/challenge.js +120 -0
  146. package/dist-sdk/server/src/tools/packs/acts/engine/dice.d.ts +20 -0
  147. package/dist-sdk/server/src/tools/packs/acts/engine/dice.js +41 -0
  148. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.d.ts +54 -0
  149. package/dist-sdk/server/src/tools/packs/acts/engine/sheet.js +200 -0
  150. package/dist-sdk/server/src/tools/packs/acts/index.d.ts +2 -0
  151. package/dist-sdk/server/src/tools/packs/acts/index.js +24 -0
  152. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.d.ts +2 -0
  153. package/dist-sdk/server/src/tools/packs/acts/tools/award.tool.js +184 -0
  154. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.d.ts +2 -0
  155. package/dist-sdk/server/src/tools/packs/acts/tools/challenge.tool.js +107 -0
  156. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.d.ts +3 -0
  157. package/dist-sdk/server/src/tools/packs/acts/tools/chapter.tool.js +146 -0
  158. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.d.ts +4 -0
  159. package/dist-sdk/server/src/tools/packs/acts/tools/check.tool.js +241 -0
  160. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.d.ts +3 -0
  161. package/dist-sdk/server/src/tools/packs/acts/tools/encounter.tool.js +72 -0
  162. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.d.ts +2 -0
  163. package/dist-sdk/server/src/tools/packs/acts/tools/faith.tool.js +75 -0
  164. package/dist-sdk/server/src/tools/packs/acts/tools/shared.d.ts +20 -0
  165. package/dist-sdk/server/src/tools/packs/acts/tools/shared.js +70 -0
  166. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.d.ts +4 -0
  167. package/dist-sdk/server/src/tools/packs/acts/tools/sheet.tools.js +215 -0
  168. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.d.ts +0 -21
  169. package/dist-sdk/server/src/tools/packs/dnd5e/data/backgrounds.js +1 -56
  170. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.d.ts +10 -0
  171. package/dist-sdk/server/src/tools/packs/dnd5e/data/cantrips.js +67 -0
  172. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.d.ts +5 -0
  173. package/dist-sdk/server/src/tools/packs/dnd5e/data/gear.js +7 -1
  174. package/dist-sdk/server/src/tools/packs/dnd5e/engine/bestiary.js +4 -3
  175. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.d.ts +6 -0
  176. package/dist-sdk/server/src/tools/packs/dnd5e/engine/cantrips.js +92 -0
  177. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +32 -5
  178. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +177 -28
  179. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.d.ts +1 -13
  180. package/dist-sdk/server/src/tools/packs/dnd5e/engine/coerce.js +15 -145
  181. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.d.ts +7 -0
  182. package/dist-sdk/server/src/tools/packs/dnd5e/engine/dice.js +11 -0
  183. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +5 -0
  184. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +45 -2
  185. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +3 -0
  186. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.d.ts +21 -0
  187. package/dist-sdk/server/src/tools/packs/dnd5e/engine/guides.js +45 -0
  188. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +6 -4
  189. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +17 -0
  190. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +56 -4
  191. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +3 -0
  192. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +117 -15
  193. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.d.ts +2 -0
  194. package/dist-sdk/server/src/tools/packs/dnd5e/tools/class.tool.js +96 -0
  195. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +40 -3
  196. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +36 -27
  197. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +7 -4
  198. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +15 -1
  199. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +73 -0
  200. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +40 -12
  201. package/dist-sdk/server/src/tools/packs/dnd5e/tools/state.tools.js +68 -2
  202. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.d.ts +1 -0
  203. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +119 -14
  204. package/dist-sdk/server/src/tools/packs/index.d.ts +2 -1
  205. package/dist-sdk/server/src/tools/packs/index.js +4 -1
  206. package/dist-sdk/server/src/tools/shared/coerce.d.ts +13 -0
  207. package/dist-sdk/server/src/tools/shared/coerce.js +147 -0
  208. package/dist-sdk/server/src/tools/tool-execution.service.d.ts +3 -2
  209. package/dist-sdk/server/src/tools/tool-execution.service.js +4 -1
  210. package/dist-sdk/shared/types/app.types.d.ts +64 -0
  211. package/dist-sdk/shared/types/app.types.js +2 -1
  212. package/docs/assets/hierarchy.js +1 -1
  213. package/docs/assets/navigation.js +1 -1
  214. package/docs/assets/search.js +1 -1
  215. package/docs/classes/Agent.html +73 -73
  216. package/docs/classes/Briyah.html +16 -16
  217. package/docs/classes/BriyahConfigService.html +7 -7
  218. package/docs/classes/NativeToolRegistry.html +10 -10
  219. package/docs/classes/PackInstantiationService.html +7 -7
  220. package/docs/classes/PackService.html +13 -13
  221. package/docs/classes/Room.html +118 -93
  222. package/docs/classes/RoomMessage.html +22 -22
  223. package/docs/enums/MessageAction.html +18 -18
  224. package/docs/functions/actsTools.html +44 -0
  225. package/docs/functions/availableToolPacks.html +4 -4
  226. package/docs/functions/buildMarkdown.html +54 -0
  227. package/docs/functions/dnd5eTools.html +4 -4
  228. package/docs/functions/installToolPacks.html +4 -4
  229. package/docs/functions/pageMarker.html +45 -0
  230. package/docs/functions/registerToolPacks.html +4 -4
  231. package/docs/functions/splitMarkdownIntoPages.html +51 -0
  232. package/docs/functions/stripWrappingFence.html +52 -0
  233. package/docs/hierarchy.html +13 -9
  234. package/docs/index.html +11 -8
  235. package/docs/interfaces/AgentCreationOptions.html +12 -12
  236. package/docs/interfaces/AgentInfo.html +30 -30
  237. package/docs/interfaces/AgentMessagesResponse.html +8 -8
  238. package/docs/interfaces/AppService.html +271 -196
  239. package/docs/interfaces/Artifact.html +9 -9
  240. package/docs/interfaces/ArtifactMetadata.html +13 -13
  241. package/docs/interfaces/ArtifactWriteOptions.html +7 -7
  242. package/docs/interfaces/AttachDocumentResponse.html +6 -6
  243. package/docs/interfaces/BriyahConfigOptions.html +12 -12
  244. package/docs/interfaces/ChapterInfo.html +6 -6
  245. package/docs/interfaces/Character.html +10 -10
  246. package/docs/interfaces/ConversionAgent.html +78 -0
  247. package/docs/interfaces/CreateAgentResponse.html +5 -5
  248. package/docs/interfaces/CreateRoomResponse.html +6 -6
  249. package/docs/interfaces/CreateStoryResponse.html +5 -5
  250. package/docs/interfaces/FileList.html +5 -5
  251. package/docs/interfaces/FileMetadata.html +10 -10
  252. package/docs/interfaces/IConfigService.html +5 -5
  253. package/docs/interfaces/InstantiateModels.html +6 -6
  254. package/docs/interfaces/InstantiateRoomResult.html +7 -7
  255. package/docs/interfaces/LoadedPack.html +16 -16
  256. package/docs/interfaces/LoggingOptions.html +9 -9
  257. package/docs/interfaces/Message.html +9 -9
  258. package/docs/interfaces/ModelChoice.html +7 -7
  259. package/docs/interfaces/ModelInfo.html +8 -8
  260. package/docs/interfaces/NativeToolDefinition.html +10 -10
  261. package/docs/interfaces/PackAgentTemplate.html +9 -9
  262. package/docs/interfaces/PackRoomTemplate.html +11 -11
  263. package/docs/interfaces/PackView.html +20 -20
  264. package/docs/interfaces/PdfConversionOptions.html +102 -0
  265. package/docs/interfaces/PdfConversionResult.html +97 -0
  266. package/docs/interfaces/PdfMarkdownOptions.html +198 -0
  267. package/docs/interfaces/PdfMarkdownResult.html +106 -0
  268. package/docs/interfaces/PdfPageMarkdown.html +94 -0
  269. package/docs/interfaces/PreparedPromptResponse.html +6 -6
  270. package/docs/interfaces/ProcessTextResponse.html +10 -10
  271. package/docs/interfaces/PromptFile.html +7 -7
  272. package/docs/interfaces/PromptFileContent.html +8 -8
  273. package/docs/interfaces/PromptFilesResponse.html +5 -5
  274. package/docs/interfaces/PromptFolder.html +8 -8
  275. package/docs/interfaces/PromptFolderDefaults.html +19 -19
  276. package/docs/interfaces/PromptFolderDefaultsResponse.html +7 -7
  277. package/docs/interfaces/PromptFoldersResponse.html +5 -5
  278. package/docs/interfaces/RoomDetails.html +19 -19
  279. package/docs/interfaces/RoomErrorUpdate.html +8 -8
  280. package/docs/interfaces/RoomInfo.html +10 -10
  281. package/docs/interfaces/RoomMessageUpdate.html +13 -13
  282. package/docs/interfaces/RoomMessagesResponse.html +6 -6
  283. package/docs/interfaces/SendMessageResult.html +6 -6
  284. package/docs/interfaces/StoryErrorEvent.html +8 -8
  285. package/docs/interfaces/StoryIdea.html +8 -8
  286. package/docs/interfaces/StoryInfo.html +28 -28
  287. package/docs/interfaces/StoryIntroduceCharacterEvent.html +7 -7
  288. package/docs/interfaces/StoryProgressChapterEvent.html +6 -6
  289. package/docs/interfaces/StoryState.html +12 -12
  290. package/docs/interfaces/StoryStateEvent.html +7 -7
  291. package/docs/interfaces/ToolArtifact.html +9 -9
  292. package/docs/interfaces/ToolCaller.html +7 -7
  293. package/docs/interfaces/ToolDefinition.html +9 -9
  294. package/docs/interfaces/ToolHelpers.html +17 -8
  295. package/docs/interfaces/ToolPackDocuments.html +100 -0
  296. package/docs/interfaces/ToolParameter.html +8 -8
  297. package/docs/interfaces/ToolRoomAccess.html +14 -14
  298. package/docs/interfaces/ToolSummary.html +8 -8
  299. package/docs/interfaces/ToolsResponse.html +7 -7
  300. package/docs/interfaces/Transaction.html +13 -13
  301. package/docs/interfaces/TransactionHistoryResponse.html +6 -6
  302. package/docs/modules.html +8 -8
  303. package/docs/types/PackOrigin.html +4 -4
  304. package/docs/types/PromptScope.html +4 -4
  305. package/docs/types/RoomTurnMode.html +4 -4
  306. package/docs/types/RoomUpdate.html +4 -4
  307. package/docs/types/RosterOverrides.html +4 -4
  308. package/docs/types/ToolContext.html +4 -4
  309. package/docs/types/ToolRunResult.html +4 -4
  310. package/package.json +1 -1
  311. package/src/tools/packs/dnd5e/README.md +147 -66
  312. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +0 -20
  313. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +0 -112
@@ -0,0 +1,389 @@
1
+ # Acts 20
2
+
3
+ **Theme:** ** Leaders must shepherd the church faithfully.
4
+ **Length:** ** 1–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 — ENCOURAGING THE CHURCHES
13
+ 1. SCENE 2 — PLOT DISCOVERED
14
+ 1. SCENE 3 — TROAS GATHERING
15
+ 1. SCENE 4 — EUTYCHUS FALLS
16
+ 1. MIRACLE MOMENT
17
+ 1. SCENE 5 — JOURNEY BY SEA
18
+ 1. NAVIGATION CHECK
19
+ 1. SCENE 6 — FAREWELL AT MILETUS
20
+ 1. LEADERSHIP CHALLENGE
21
+ 1. SCENE 7 — EMOTIONAL FAREWELL
22
+ 1. PRAYER CHECK
23
+
24
+ **Attributes and difficulties this chapter uses**
25
+
26
+ | Attribute | DC |
27
+ |---|---|
28
+ | compassion | 13 |
29
+ | knowledge | 12 |
30
+ | wisdom | 13 |
31
+ | faith | 14 |
32
+ | knowledge | 11 |
33
+ | knowledge | 13 |
34
+ | wisdom | 12 |
35
+ | compassion | 14 |
36
+ | compassion | 12 |
37
+ | faith | 13 |
38
+ | wisdom | 11 |
39
+
40
+ Each distinct pairing, once. The script below says where each one falls; roll them with `roll_check`.
41
+
42
+ **Multi-roll scenes** — start each with `challenge`, then roll with `roll_check` and `"challenge": true`.
43
+
44
+ - **LEADERSHIP CHALLENGE** — 3 successes before 2 failures, DC 14. Attributes: knowledge; wisdom; compassion.
45
+ `challenge` with `{"action": "start", "name": "LEADERSHIP CHALLENGE", "successes": 3, "failures": 2, "dc": 14, "attributes": "knowledge; wisdom; compassion"}`
46
+
47
+ **Item cards this chapter seeds**
48
+
49
+ - ENCOURAGEMENT LETTERS
50
+ - SAFE TRAVEL ROUTE MAP
51
+ - TROAS LANTERN
52
+ - SHIP ROPE COIL
53
+ - EPHESIAN ELDER STAFF
54
+ - MILETUS PRAYER STONE
55
+
56
+ Award each with `award` when its moment arrives; the tool knows what the printed card does.
57
+
58
+ **Cover the facts.** As each event lands in play, record it with
59
+ `chapter action: "cover"`. Before the session ends, check what is still missing.
60
+
61
+ ---
62
+
63
+ ## The script
64
+
65
+ ## ACTS CAMPAIGN – CHAPTER 20
66
+
67
+ ### "Guard the Flock"
68
+
69
+ **Level:** 12–13
70
+ **Length:** 1–2 Sessions
71
+ **Theme:** Leaders must shepherd the church faithfully.
72
+
73
+ ### BEFORE YOU BEGIN
74
+
75
+ Tell players:
76
+
77
+ "This chapter focuses on encouragement, leadership training, and preparation for hardship."
78
+
79
+ Important items that may help:
80
+ - **Tyrannus Teaching Notes**
81
+ - **Mission Journal**
82
+ - **Healing Handkerchief**
83
+ - **Ephesus Prayer Band**
84
+
85
+ Abilities that may help:
86
+ - **Divine Encouragement**
87
+ - **Enduring Witness**
88
+ - **Council Wisdom**
89
+
90
+ ### OPENING SCRIPT
91
+
92
+ Speak calmly:
93
+
94
+ "When the uproar had ended, Paul sent for the disciples and, after encouraging them, said goodbye."
95
+ *(Acts 20:1 NIV)*
96
+
97
+ Pause.
98
+
99
+ Explain:
100
+
101
+ "Paul begins traveling again through Macedonia and Greece."
102
+
103
+ ### SCENE 1 — ENCOURAGING THE CHURCHES
104
+
105
+ Read:
106
+
107
+ "He traveled through that area, speaking many words of encouragement."
108
+
109
+ Pause.
110
+
111
+ Ask players:
112
+
113
+ "What do you say to strengthen believers?"
114
+
115
+ Allow brief responses.
116
+
117
+ **ENCOURAGEMENT CHECK**
118
+ Roll **Compassion DC 13**
119
+ Success:
120
+ Believers are strengthened.
121
+ Failure:
122
+ Encouragement feels limited.
123
+ Gain +1 Faith Point if successful.
124
+
125
+ **ITEM SEED — ENCOURAGEMENT LETTERS**
126
+ If players write messages to churches:
127
+ Roll **Knowledge DC 12**
128
+ Success:
129
+ Gain item:
130
+ **Encouragement Letters**
131
+ Future Use:
132
+ Acts 21 church concerns
133
+ Acts 24 defense speeches
134
+ Add +2 to Compassion rolls encouraging believers.
135
+
136
+ ### SCENE 2 — PLOT DISCOVERED
137
+
138
+ Explain:
139
+
140
+ "Paul plans to sail to Syria."
141
+
142
+ Read:
143
+
144
+ "Because some Jews had plotted against him, he decided to go back through Macedonia."
145
+
146
+ Pause.
147
+
148
+ Explain:
149
+
150
+ "This is strategic thinking."
151
+
152
+ **DISCERNMENT CHECK**
153
+ Roll **Wisdom DC 13**
154
+ Success:
155
+ Players detect danger early.
156
+ Failure:
157
+ Players notice the threat later.
158
+
159
+ **ITEM SEED — SAFE TRAVEL ROUTE MAP**
160
+ Roll **Knowledge DC 12**
161
+ Success:
162
+ Gain item:
163
+ **Safe Travel Route Map**
164
+ Future Use:
165
+ Acts 23 escape planning
166
+ Acts 27 ship navigation
167
+ Add +2 to Knowledge rolls involving travel safety.
168
+
169
+ ### SCENE 3 — TROAS GATHERING
170
+
171
+ Read:
172
+
173
+ "On the first day of the week we came together to break bread."
174
+
175
+ Pause.
176
+
177
+ Explain:
178
+
179
+ "This is a night gathering of believers."
180
+
181
+ **TEACHING MOMENT**
182
+ Read:
183
+
184
+ "Paul spoke to the people and, because he intended to leave the next day, kept on talking until midnight."
185
+
186
+ Pause.
187
+
188
+ Explain:
189
+
190
+ "The room is crowded and warm."
191
+
192
+ ### SCENE 4 — EUTYCHUS FALLS
193
+
194
+ Read slowly:
195
+
196
+ "Seated in a window was a young man named Eutychus."
197
+
198
+ Pause.
199
+
200
+ Then read:
201
+
202
+ "He was sinking into a deep sleep…"
203
+
204
+ Pause.
205
+
206
+ Then read:
207
+
208
+ "He fell to the ground from the third story and was picked up dead."
209
+
210
+ Pause for a moment.
211
+
212
+ **FAITH CHECK**
213
+ Roll **Faith DC 14**
214
+ Purpose: respond to the crisis.
215
+ Success:
216
+ Players react quickly.
217
+ Failure:
218
+ Panic spreads briefly.
219
+
220
+ ## MIRACLE MOMENT
221
+ Read:
222
+ "Paul went down, threw himself on the young man and put his arms around him."
223
+ Pause.
224
+ Then read:
225
+ "Don't be alarmed… he's alive!"
226
+
227
+ ## ITEM SEED — TROAS LANTERN
228
+ After the event:
229
+ Say:
230
+ "Someone hands you the lamp that lit the room."
231
+ Roll Knowledge DC 11
232
+ Success:
233
+ Gain item:
234
+ **Troas Lantern**
235
+ Future Use:
236
+ Acts 27 storm navigation
237
+ Acts 28 cave shelter
238
+ Add +2 to Wisdom rolls involving darkness.
239
+
240
+ ## SCENE 5 — JOURNEY BY SEA
241
+ Explain:
242
+ "Paul continues traveling along the coast."
243
+ Read:
244
+ "We sailed from Philippi after the Festival of Unleavened Bread."
245
+ Pause.
246
+ Explain:
247
+ "The team meets again at Troas."
248
+
249
+ ## NAVIGATION CHECK
250
+ Roll Knowledge DC 13
251
+ If players have **Aegean Sea Chart**, add +2.
252
+ Success:
253
+ Travel is smooth.
254
+ Failure:
255
+ Minor delays occur.
256
+
257
+ ## ITEM SEED — SHIP ROPE COIL
258
+ During the journey:
259
+ Roll Wisdom DC 12
260
+ Success:
261
+ Gain item:
262
+ **Ship Rope Coil**
263
+ Future Use:
264
+ Acts 27 shipwreck survival
265
+ Acts 28 shelter building
266
+ Add +2 to Courage rolls involving climbing or rescue.
267
+
268
+ ## SCENE 6 — FAREWELL AT MILETUS
269
+ Explain:
270
+ "Paul sends for the elders of Ephesus."
271
+ Read:
272
+ "You know how I lived the whole time I was with you."
273
+ Pause.
274
+ Explain:
275
+ "This becomes one of the most important leadership speeches in Acts."
276
+
277
+ ## LEADERSHIP CHALLENGE
278
+ Goal: **3 successes before 2 failures**
279
+ Allowed attributes:
280
+ Knowledge
281
+ Wisdom
282
+ Compassion
283
+
284
+ DC **14**
285
+ Each success represents a leadership principle:
286
+ 1. Serve humbly
287
+ 2. Teach faithfully
288
+ 3. Guard the church
289
+
290
+ ## KEY VERSE
291
+ Read slowly:
292
+ "Keep watch over yourselves and all the flock of which the Holy Spirit has made you overseers."
293
+ Pause.
294
+ Then read:
295
+ "Be shepherds of the church of God."
296
+
297
+ ## SUCCESS RESULT
298
+ Elders are strengthened.
299
+ Gain +2 Faith Points.
300
+
301
+ ## FAILURE RESULT
302
+ Some leaders struggle to understand the responsibility.
303
+
304
+ ## ITEM SEED — EPHESIAN ELDER STAFF
305
+ Roll Compassion DC 12
306
+ Success:
307
+ Gain item:
308
+ **Ephesian Elder Staff**
309
+ Future Use:
310
+ Acts 21 church leadership
311
+ Acts 23 protection among believers
312
+ Add +2 to Compassion rolls involving church leadership.
313
+
314
+ ## SCENE 7 — EMOTIONAL FAREWELL
315
+ Read slowly:
316
+ "When Paul had finished speaking, he knelt down with all of them and prayed."
317
+ Pause.
318
+ Then read:
319
+ "They all wept as they embraced him and kissed him."
320
+ Pause again.
321
+ Then read:
322
+ "What grieved them most was his statement that they would never see his face again."
323
+
324
+ ## PRAYER CHECK
325
+ Roll Faith DC 13
326
+ Success:
327
+ The group feels deep unity.
328
+ Failure:
329
+ The moment still moves them but feels heavy.
330
+
331
+ ## ITEM SEED — MILETUS PRAYER STONE
332
+ After the prayer:
333
+ Roll Wisdom DC 11
334
+ Success:
335
+ Gain item:
336
+ **Miletus Prayer Stone**
337
+ Future Use:
338
+ Acts 27 storm prayer
339
+ Acts 28 healing prayer
340
+ Add +2 to one group Faith roll during prayer.
341
+
342
+ ## CLOSING SCRIPT
343
+ Read slowly:
344
+ "Then they accompanied him to the ship."
345
+ Pause.
346
+
347
+ Explain:
348
+ "Paul now begins the journey toward Jerusalem."
349
+ Look at players and say:
350
+ "He knows danger is coming."
351
+
352
+ ---
353
+
354
+ **END OF CHAPTER 20 REWARDS**
355
+
356
+ Possible Gains:
357
+ - Encouragement Letters
358
+ - Safe Travel Route Map
359
+ - Troas Lantern
360
+ - Ship Rope Coil
361
+ - Shepherd's Staff
362
+ - Miletus Prayer Stone
363
+ - Faith Points: +2–4
364
+
365
+ ---
366
+
367
+ **CAMPAIGN IMPACT**
368
+
369
+ This chapter prepares players for:
370
+ - Acts 21 – Jerusalem conflict
371
+ - Acts 22 – Paul's defense speech
372
+ - Acts 23 – assassination plot
373
+ - Acts 27 – shipwreck survival
374
+
375
+ Below is **Acts Chapter 21** for your Acts campaign. This chapter begins the **final narrative arc of Acts**—Paul's journey toward imprisonment and testimony before rulers. The tone shifts from missionary expansion to **suffering, courage, and legal defense**.
376
+
377
+ This chapter introduces:
378
+ - Prophetic warnings
379
+ - Paul's decision to continue to Jerusalem
380
+ - Temple purification
381
+ - A massive riot
382
+ - Roman intervention
383
+
384
+ Attributes used:
385
+ **Faith • Compassion • Knowledge • Wisdom • Courage**
386
+
387
+ This chapter seeds items and systems important for **Acts 22–26 (Paul's trials)**.
388
+
389
+ ---