briyah 1.5.0 → 2.0.0

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 (226) hide show
  1. package/README.md +1092 -994
  2. package/data/common/config/markup +1 -1
  3. package/data/common/prompts/character/progress_character.json +5 -5
  4. package/data/common/prompts/illustrator/describe_scene.json +11 -3
  5. package/data/common/prompts/perceive.json +2 -2
  6. package/data/common/prompts/room_moderator/moderate.json +34 -34
  7. package/data/common/prompts/story_moderator/moderate.json +62 -62
  8. package/data/packs/dnd5e/agents/battle-master.json +6 -0
  9. package/data/packs/dnd5e/agents/campaign-designer.json +6 -0
  10. package/data/packs/dnd5e/agents/character-creator.json +6 -0
  11. package/data/packs/dnd5e/agents/dungeon-master.json +6 -0
  12. package/data/packs/dnd5e/agents/player.json +13 -0
  13. package/data/packs/dnd5e/agents/table-moderator.json +6 -0
  14. package/data/{common/artifacts/dnd5e/dungeon_master-procedure.md → packs/dnd5e/artifacts/battle_master-combat.md} +31 -131
  15. package/data/packs/dnd5e/artifacts/dungeon_master-procedure.md +192 -0
  16. package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/manifest.json +8 -2
  17. package/data/packs/dnd5e/pack.json +6 -0
  18. package/data/packs/dnd5e/prompts/battle_master/defaults_config.json +23 -0
  19. package/data/packs/dnd5e/prompts/battle_master/perceive.json +33 -0
  20. package/data/packs/dnd5e/prompts/battle_master/perceive.prompt +378 -0
  21. package/data/{common → packs/dnd5e}/prompts/character_creator/defaults_config.json +1 -1
  22. package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.prompt +29 -0
  23. package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.prompt +40 -22
  24. package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.json +34 -34
  25. package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.prompt +14 -3
  26. package/data/{common → packs/dnd5e}/prompts/dungeon_master/defaults_config.json +1 -0
  27. package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.prompt +122 -115
  28. package/data/packs/dnd5e/prompts/dungeon_master/system_instruction.prompt +0 -0
  29. package/data/packs/dnd5e/rooms/table.json +16 -0
  30. package/dist-sdk/server/src/ai/LLM/base-ai.service.js +4 -13
  31. package/dist-sdk/server/src/ai/LLM/deepseek.service.d.ts +2 -1
  32. package/dist-sdk/server/src/ai/LLM/deepseek.service.js +65 -77
  33. package/dist-sdk/server/src/ai/agent-config.d.ts +2 -0
  34. package/dist-sdk/server/src/ai/agent-store.service.js +8 -0
  35. package/dist-sdk/server/src/ai/agent.d.ts +6 -0
  36. package/dist-sdk/server/src/ai/agent.js +25 -2
  37. package/dist-sdk/server/src/ai/artifact.service.d.ts +3 -1
  38. package/dist-sdk/server/src/ai/artifact.service.js +12 -5
  39. package/dist-sdk/server/src/ai/pack-artifacts.d.ts +3 -3
  40. package/dist-sdk/server/src/ai/pack-artifacts.js +21 -15
  41. package/dist-sdk/server/src/app/user-service-factory.js +9 -1
  42. package/dist-sdk/server/src/app.controller.d.ts +11 -11
  43. package/dist-sdk/server/src/app.controller.js +178 -88
  44. package/dist-sdk/server/src/app.service.d.ts +28 -7
  45. package/dist-sdk/server/src/app.service.js +121 -91
  46. package/dist-sdk/server/src/common/errors.d.ts +0 -3
  47. package/dist-sdk/server/src/common/errors.js +1 -11
  48. package/dist-sdk/server/src/config/prompt-resolver.d.ts +39 -0
  49. package/dist-sdk/server/src/config/prompt-resolver.js +189 -0
  50. package/dist-sdk/server/src/config/user-config.service.d.ts +17 -0
  51. package/dist-sdk/server/src/config/user-config.service.js +103 -0
  52. package/dist-sdk/server/src/config/user-paths.service.d.ts +4 -4
  53. package/dist-sdk/server/src/config/user-paths.service.js +12 -16
  54. package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +35 -0
  55. package/dist-sdk/server/src/packs/pack-instantiation.service.js +154 -0
  56. package/dist-sdk/server/src/packs/pack-manifest.d.ts +52 -0
  57. package/dist-sdk/server/src/packs/pack-manifest.js +256 -0
  58. package/dist-sdk/server/src/packs/pack.service.d.ts +24 -0
  59. package/dist-sdk/server/src/packs/pack.service.js +151 -0
  60. package/dist-sdk/server/src/room/room-config.d.ts +5 -0
  61. package/dist-sdk/server/src/room/room-store.service.d.ts +3 -0
  62. package/dist-sdk/server/src/room/room-store.service.js +41 -5
  63. package/dist-sdk/server/src/room/room.d.ts +7 -0
  64. package/dist-sdk/server/src/room/room.js +29 -1
  65. package/dist-sdk/server/src/sdk/briyah.d.ts +2 -0
  66. package/dist-sdk/server/src/sdk/briyah.js +45 -8
  67. package/dist-sdk/server/src/sdk/index.d.ts +6 -1
  68. package/dist-sdk/server/src/sdk/index.js +6 -2
  69. package/dist-sdk/server/src/shared/shared.module.js +0 -3
  70. package/dist-sdk/server/src/story/story.service.d.ts +2 -2
  71. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.d.ts +17 -0
  72. package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.js +54 -0
  73. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.d.ts +3 -0
  74. package/dist-sdk/server/src/tools/packs/dnd5e/data/races.js +6 -0
  75. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.d.ts +2 -0
  76. package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.js +4 -0
  77. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +1 -1
  78. package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +6 -3
  79. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +3 -0
  80. package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +45 -5
  81. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +27 -0
  82. package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +103 -0
  83. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.d.ts +7 -0
  84. package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +83 -0
  85. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.d.ts +19 -0
  86. package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.js +130 -0
  87. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.d.ts +2 -1
  88. package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +13 -2
  89. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.d.ts +6 -0
  90. package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.js +16 -0
  91. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +10 -0
  92. package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +82 -1
  93. package/dist-sdk/server/src/tools/packs/dnd5e/index.js +2 -0
  94. package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +51 -6
  95. package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +19 -9
  96. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.d.ts +2 -0
  97. package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +134 -0
  98. package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +31 -13
  99. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +2 -0
  100. package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +25 -8
  101. package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +70 -4
  102. package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +27 -0
  103. package/dist-sdk/server/src/tools/packs/index.d.ts +1 -2
  104. package/dist-sdk/server/src/tools/packs/index.js +5 -11
  105. package/dist-sdk/shared/types/app.types.d.ts +72 -13
  106. package/docs/assets/hierarchy.js +1 -1
  107. package/docs/assets/highlight.css +8 -1
  108. package/docs/assets/icons.js +1 -1
  109. package/docs/assets/icons.svg +1 -1
  110. package/docs/assets/main.js +4 -4
  111. package/docs/assets/navigation.js +1 -1
  112. package/docs/assets/search.js +1 -1
  113. package/docs/assets/style.css +18 -3
  114. package/docs/classes/Agent.html +702 -37
  115. package/docs/classes/Briyah.html +250 -33
  116. package/docs/classes/BriyahConfigService.html +117 -10
  117. package/docs/classes/NativeToolRegistry.html +156 -11
  118. package/docs/classes/PackInstantiationService.html +146 -0
  119. package/docs/classes/PackService.html +247 -0
  120. package/docs/classes/Room.html +1190 -77
  121. package/docs/classes/RoomMessage.html +260 -29
  122. package/docs/enums/MessageAction.html +123 -3
  123. package/docs/functions/availableToolPacks.html +41 -2
  124. package/docs/functions/dnd5eTools.html +42 -3
  125. package/docs/functions/installToolPacks.html +48 -0
  126. package/docs/functions/registerToolPacks.html +54 -6
  127. package/docs/hierarchy.html +42 -1
  128. package/docs/index.html +158 -25
  129. package/docs/interfaces/AgentCreationOptions.html +110 -11
  130. package/docs/interfaces/AgentInfo.html +188 -3
  131. package/docs/interfaces/AgentMessagesResponse.html +71 -2
  132. package/docs/interfaces/AppService.html +2775 -474
  133. package/docs/interfaces/Artifact.html +81 -4
  134. package/docs/interfaces/ArtifactMetadata.html +104 -3
  135. package/docs/interfaces/ArtifactWriteOptions.html +75 -6
  136. package/docs/interfaces/AttachDocumentResponse.html +61 -2
  137. package/docs/interfaces/BriyahConfigOptions.html +107 -10
  138. package/docs/interfaces/ChapterInfo.html +61 -2
  139. package/docs/interfaces/Character.html +81 -2
  140. package/docs/interfaces/CreateAgentResponse.html +56 -2
  141. package/docs/interfaces/CreateRoomResponse.html +61 -2
  142. package/docs/interfaces/CreateStoryResponse.html +56 -2
  143. package/docs/interfaces/FileList.html +56 -2
  144. package/docs/interfaces/FileMetadata.html +84 -3
  145. package/docs/interfaces/IConfigService.html +76 -3
  146. package/docs/interfaces/InstantiateModels.html +64 -0
  147. package/docs/interfaces/InstantiateRoomResult.html +70 -0
  148. package/docs/interfaces/LoadedPack.html +131 -0
  149. package/docs/interfaces/LoggingOptions.html +86 -7
  150. package/docs/interfaces/Message.html +80 -2
  151. package/docs/interfaces/ModelChoice.html +73 -0
  152. package/docs/interfaces/ModelInfo.html +71 -2
  153. package/docs/interfaces/NativeToolDefinition.html +96 -9
  154. package/docs/interfaces/PackAgentTemplate.html +101 -0
  155. package/docs/interfaces/PackRoomTemplate.html +108 -0
  156. package/docs/interfaces/PackView.html +172 -0
  157. package/docs/interfaces/PreparedPromptResponse.html +61 -2
  158. package/docs/interfaces/ProcessTextResponse.html +81 -2
  159. package/docs/interfaces/PromptFile.html +69 -2
  160. package/docs/interfaces/PromptFileContent.html +75 -2
  161. package/docs/interfaces/PromptFilesResponse.html +56 -2
  162. package/docs/interfaces/PromptFolder.html +79 -2
  163. package/docs/interfaces/PromptFolderDefaults.html +136 -5
  164. package/docs/interfaces/PromptFolderDefaultsResponse.html +65 -4
  165. package/docs/interfaces/PromptFoldersResponse.html +56 -2
  166. package/docs/interfaces/RoomDetails.html +133 -4
  167. package/docs/interfaces/RoomInfo.html +84 -2
  168. package/docs/interfaces/RoomMessageUpdate.html +91 -2
  169. package/docs/interfaces/RoomMessagesResponse.html +61 -2
  170. package/docs/interfaces/SendMessageResult.html +61 -2
  171. package/docs/interfaces/StoryErrorEvent.html +76 -4
  172. package/docs/interfaces/StoryIdea.html +71 -2
  173. package/docs/interfaces/StoryInfo.html +173 -3
  174. package/docs/interfaces/StoryIntroduceCharacterEvent.html +71 -4
  175. package/docs/interfaces/StoryProgressChapterEvent.html +64 -3
  176. package/docs/interfaces/StoryState.html +99 -6
  177. package/docs/interfaces/StoryStateEvent.html +69 -3
  178. package/docs/interfaces/ToolArtifact.html +81 -4
  179. package/docs/interfaces/ToolCaller.html +75 -6
  180. package/docs/interfaces/ToolDefinition.html +76 -2
  181. package/docs/interfaces/ToolHelpers.html +91 -6
  182. package/docs/interfaces/ToolParameter.html +71 -2
  183. package/docs/interfaces/ToolRoomAccess.html +200 -24
  184. package/docs/interfaces/ToolSummary.html +71 -2
  185. package/docs/interfaces/ToolsResponse.html +66 -2
  186. package/docs/interfaces/Transaction.html +96 -2
  187. package/docs/interfaces/TransactionHistoryResponse.html +61 -2
  188. package/docs/modules.html +53 -1
  189. package/docs/types/PackOrigin.html +34 -0
  190. package/docs/types/PromptScope.html +34 -1
  191. package/docs/types/RoomTurnMode.html +36 -2
  192. package/docs/types/ToolContext.html +36 -2
  193. package/docs/types/ToolRunResult.html +34 -1
  194. package/package.json +139 -139
  195. package/src/tools/packs/dnd5e/README.md +149 -26
  196. package/dist-sdk/server/src/library/library.service.d.ts +0 -14
  197. package/dist-sdk/server/src/library/library.service.js +0 -165
  198. package/docs/functions/enabledToolPacks.html +0 -2
  199. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/campaign_designer-setting.md +0 -0
  200. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/character_creator-basics.md +0 -0
  201. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-barbarian.md +0 -0
  202. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-bard.md +0 -0
  203. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-cleric.md +0 -0
  204. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-druid.md +0 -0
  205. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-fighter.md +0 -0
  206. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-monk.md +0 -0
  207. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-paladin.md +0 -0
  208. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-ranger.md +0 -0
  209. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-rogue.md +0 -0
  210. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-sorcerer.md +0 -0
  211. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-warlock.md +0 -0
  212. /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-wizard.md +0 -0
  213. /package/data/{common/prompts/campaign_designer → packs/dnd5e/prompts/battle_master}/system_instruction.prompt +0 -0
  214. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/defaults_config.json +0 -0
  215. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.json +0 -0
  216. /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.prompt +0 -0
  217. /package/data/{common/prompts/character_creator → packs/dnd5e/prompts/campaign_designer}/system_instruction.prompt +0 -0
  218. /package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.json +0 -0
  219. /package/data/{common/prompts/dnd_player → packs/dnd5e/prompts/character_creator}/system_instruction.prompt +0 -0
  220. /package/data/{common → packs/dnd5e}/prompts/dnd_player/defaults_config.json +0 -0
  221. /package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.json +0 -0
  222. /package/data/{common/prompts/dnd_room_moderator → packs/dnd5e/prompts/dnd_player}/system_instruction.prompt +0 -0
  223. /package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/defaults_config.json +0 -0
  224. /package/data/{common/prompts/dungeon_master → packs/dnd5e/prompts/dnd_room_moderator}/system_instruction.prompt +0 -0
  225. /package/data/{common → packs/dnd5e}/prompts/dungeon_master/compact_agent.prompt +0 -0
  226. /package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.json +0 -0
@@ -1 +1,34 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PromptScope | Briyah SDK - v1.5.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v1.5.0</a><div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">PromptScope</a></li></ul><h1>Type Alias PromptScope</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">PromptScope</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;common&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;user&quot;</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/b15141677fa1585e84a2baa64f121684482dd309/shared/types/app.types.ts#L319">shared/types/app.types.ts:319</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav><nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v1.5.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>PromptScope | Briyah SDK - v2.0.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.0</a>
3
+ <div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
4
+ <ul role="listbox" id="tsd-search-results"></ul>
5
+ <div id="tsd-search-status" aria-live="polite" aria-atomic="true">
6
+ <div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
7
+ <div class="container container-main">
8
+ <div class="col-content">
9
+ <div class="tsd-page-title">
10
+ <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
+ <li><a href="" aria-current="page">PromptScope</a></li></ul>
12
+ <h1>Type Alias PromptScope</h1></div>
13
+ <div class="tsd-signature"><span class="tsd-kind-type-alias">PromptScope</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;common&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;user&quot;</span></div><aside class="tsd-sources">
14
+ <ul>
15
+ <li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/shared/types/app.types.ts#L332">shared/types/app.types.ts:332</a></li></ul></aside></div>
16
+ <div class="col-sidebar">
17
+ <div class="page-menu">
18
+ <div class="tsd-navigation settings">
19
+ <details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
20
+ <h3>Settings</h3></summary>
21
+ <div class="tsd-accordion-details">
22
+ <div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
23
+ <ul id="tsd-filter-options">
24
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
25
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
26
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
27
+ <div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
28
+ <div class="site-menu">
29
+ <nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
30
+ <nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
31
+ <ul class="tsd-small-nested-navigation" id="tsd-nav-container">
32
+ <li>Loading...</li></ul></nav></div></div></div><footer>
33
+ <p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
34
+ <div class="overlay"></div></body></html>
@@ -1,8 +1,42 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>RoomTurnMode | Briyah SDK - v1.5.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v1.5.0</a><div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">RoomTurnMode</a></li></ul><h1>Type Alias RoomTurnMode</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">RoomTurnMode</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;broadcast&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;directed&quot;</span></div><div class="tsd-comment tsd-typography"><p>How a room decides which agents respond to a message.</p>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>RoomTurnMode | Briyah SDK - v2.0.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.0</a>
3
+ <div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
4
+ <ul role="listbox" id="tsd-search-results"></ul>
5
+ <div id="tsd-search-status" aria-live="polite" aria-atomic="true">
6
+ <div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
7
+ <div class="container container-main">
8
+ <div class="col-content">
9
+ <div class="tsd-page-title">
10
+ <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
+ <li><a href="" aria-current="page">RoomTurnMode</a></li></ul>
12
+ <h1>Type Alias RoomTurnMode</h1></div>
13
+ <div class="tsd-signature"><span class="tsd-kind-type-alias">RoomTurnMode</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;broadcast&quot;</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-type">&quot;directed&quot;</span></div>
14
+ <div class="tsd-comment tsd-typography"><p>How a room decides which agents respond to a message.</p>
2
15
  <ul>
3
16
  <li>'broadcast': every agent responds and one reply is selected. The default.</li>
4
17
  <li>'directed': only the message's targets respond (the room leader when there
5
18
  are none). Other agents still hear the message without generating a reply,
6
19
  which is what lets a leader agent control the order of a turn-based room.</li>
7
20
  </ul>
8
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/b15141677fa1585e84a2baa64f121684482dd309/shared/types/app.types.ts#L167">shared/types/app.types.ts:167</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav><nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v1.5.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
21
+ </div><aside class="tsd-sources">
22
+ <ul>
23
+ <li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/shared/types/app.types.ts#L178">shared/types/app.types.ts:178</a></li></ul></aside></div>
24
+ <div class="col-sidebar">
25
+ <div class="page-menu">
26
+ <div class="tsd-navigation settings">
27
+ <details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
28
+ <h3>Settings</h3></summary>
29
+ <div class="tsd-accordion-details">
30
+ <div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
31
+ <ul id="tsd-filter-options">
32
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
33
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
34
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
35
+ <div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
36
+ <div class="site-menu">
37
+ <nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
38
+ <nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
39
+ <ul class="tsd-small-nested-navigation" id="tsd-nav-container">
40
+ <li>Loading...</li></ul></nav></div></div></div><footer>
41
+ <p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
42
+ <div class="overlay"></div></body></html>
@@ -1,6 +1,40 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToolContext | Briyah SDK - v1.5.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v1.5.0</a><div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">ToolContext</a></li></ul><h1>Type Alias ToolContext</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">ToolContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span></div><div class="tsd-comment tsd-typography"><p>An opaque, per-invocation value supplied by the host when it starts an
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToolContext | Briyah SDK - v2.0.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.0</a>
3
+ <div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
4
+ <ul role="listbox" id="tsd-search-results"></ul>
5
+ <div id="tsd-search-status" aria-live="polite" aria-atomic="true">
6
+ <div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
7
+ <div class="container container-main">
8
+ <div class="col-content">
9
+ <div class="tsd-page-title">
10
+ <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
+ <li><a href="" aria-current="page">ToolContext</a></li></ul>
12
+ <h1>Type Alias ToolContext</h1></div>
13
+ <div class="tsd-signature"><span class="tsd-kind-type-alias">ToolContext</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">unknown</span></div>
14
+ <div class="tsd-comment tsd-typography"><p>An opaque, per-invocation value supplied by the host when it starts an
2
15
  interaction (see AppService.sendRoomMessage). Briyah never inspects it — it
3
16
  is threaded verbatim to the tool handler. Hosts use it to scope a tool call
4
17
  to trusted data the LLM cannot influence (e.g. a database handle and the
5
18
  record the user currently has selected).</p>
6
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/b15141677fa1585e84a2baa64f121684482dd309/server/src/tools/native-tool.types.ts#L145">server/src/tools/native-tool.types.ts:145</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav><nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v1.5.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
19
+ </div><aside class="tsd-sources">
20
+ <ul>
21
+ <li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/tools/native-tool.types.ts#L145">server/src/tools/native-tool.types.ts:145</a></li></ul></aside></div>
22
+ <div class="col-sidebar">
23
+ <div class="page-menu">
24
+ <div class="tsd-navigation settings">
25
+ <details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
26
+ <h3>Settings</h3></summary>
27
+ <div class="tsd-accordion-details">
28
+ <div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
29
+ <ul id="tsd-filter-options">
30
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
31
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
32
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
33
+ <div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
34
+ <div class="site-menu">
35
+ <nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
36
+ <nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
37
+ <ul class="tsd-small-nested-navigation" id="tsd-nav-container">
38
+ <li>Loading...</li></ul></nav></div></div></div><footer>
39
+ <p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
40
+ <div class="overlay"></div></body></html>
@@ -1 +1,34 @@
1
- <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToolRunResult | Briyah SDK - v1.5.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v1.5.0</a><div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/><ul role="listbox" id="tsd-search-results"></ul><div id="tsd-search-status" aria-live="polite" aria-atomic="true"><div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb" aria-label="Breadcrumb"><li><a href="" aria-current="page">ToolRunResult</a></li></ul><h1>Type Alias ToolRunResult</h1></div><div class="tsd-signature"><span class="tsd-kind-type-alias">ToolRunResult</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">ok</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">result</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">ok</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/b15141677fa1585e84a2baa64f121684482dd309/shared/types/app.types.ts#L142">shared/types/app.types.ts:142</a></li></ul></aside></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg><h3>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div><div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div><div class="site-menu"><nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav><nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v1.5.0</a><ul class="tsd-small-nested-navigation" id="tsd-nav-container"><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div></body></html>
1
+ <!DOCTYPE html><html class="default" lang="en" data-base="../"><head><meta charset="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToolRunResult | Briyah SDK - v2.0.0</title><meta name="description" content="Documentation for Briyah SDK"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><script async src="../assets/hierarchy.js" id="tsd-hierarchy-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => window.app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container"><a href="../index.html" class="title">Briyah SDK - v2.0.0</a>
3
+ <div id="tsd-toolbar-links"><a href="https://github.com/your-org/briyah">GitHub</a><a href="https://www.npmjs.com/package/briyah">npm</a></div><button id="tsd-search-trigger" class="tsd-widget" aria-label="Search"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-search"></use></svg></button><dialog id="tsd-search" aria-label="Search"><input role="combobox" id="tsd-search-input" aria-controls="tsd-search-results" aria-autocomplete="list" aria-expanded="true" autocapitalize="off" autocomplete="off" placeholder="Search the docs" maxLength="100"/>
4
+ <ul role="listbox" id="tsd-search-results"></ul>
5
+ <div id="tsd-search-status" aria-live="polite" aria-atomic="true">
6
+ <div>Preparing search index...</div></div></dialog><a href="#" class="tsd-widget menu" id="tsd-toolbar-menu-trigger" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></header>
7
+ <div class="container container-main">
8
+ <div class="col-content">
9
+ <div class="tsd-page-title">
10
+ <ul class="tsd-breadcrumb" aria-label="Breadcrumb">
11
+ <li><a href="" aria-current="page">ToolRunResult</a></li></ul>
12
+ <h1>Type Alias ToolRunResult</h1></div>
13
+ <div class="tsd-signature"><span class="tsd-kind-type-alias">ToolRunResult</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">ok</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">true</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">result</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span> <span class="tsd-signature-symbol">}</span> <span class="tsd-signature-symbol">|</span> <span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">error</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">;</span> <span class="tsd-kind-property">ok</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">false</span> <span class="tsd-signature-symbol">}</span></div><aside class="tsd-sources">
14
+ <ul>
15
+ <li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/shared/types/app.types.ts#L151">shared/types/app.types.ts:151</a></li></ul></aside></div>
16
+ <div class="col-sidebar">
17
+ <div class="page-menu">
18
+ <div class="tsd-navigation settings">
19
+ <details class="tsd-accordion"><summary class="tsd-accordion-summary"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
20
+ <h3>Settings</h3></summary>
21
+ <div class="tsd-accordion-details">
22
+ <div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
23
+ <ul id="tsd-filter-options">
24
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
25
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
26
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></div>
27
+ <div class="tsd-theme-toggle"><label class="settings-label" for="tsd-theme">Theme</label><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
28
+ <div class="site-menu">
29
+ <nav id="tsd-sidebar-links" class="tsd-navigation"><a href="https://github.com/your-org/briyah" class="tsd-nav-link">GitHub</a><a href="https://www.npmjs.com/package/briyah" class="tsd-nav-link">npm</a></nav>
30
+ <nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
31
+ <ul class="tsd-small-nested-navigation" id="tsd-nav-container">
32
+ <li>Loading...</li></ul></nav></div></div></div><footer>
33
+ <p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
34
+ <div class="overlay"></div></body></html>
package/package.json CHANGED
@@ -1,139 +1,139 @@
1
- {
2
- "name": "briyah",
3
- "version": "1.5.0",
4
- "description": "Briyah multi-agent AI SDK",
5
- "private": false,
6
- "main": "dist-sdk/server/src/sdk/index.js",
7
- "types": "dist-sdk/server/src/sdk/index.d.ts",
8
- "files": [
9
- "dist-sdk/",
10
- "docs/",
11
- "data/common/artifacts",
12
- "data/common/config",
13
- "data/common/prompts",
14
- "data/common/story_ideas",
15
- "README.md",
16
- "src/tools/packs/dnd5e/README.md"
17
- ],
18
- "exports": {
19
- ".": {
20
- "import": "./dist-sdk/server/src/sdk/index.js",
21
- "require": "./dist-sdk/server/src/sdk/index.js",
22
- "types": "./dist-sdk/server/src/sdk/index.d.ts"
23
- },
24
- "./package.json": "./package.json"
25
- },
26
- "scripts": {
27
- "prebuild": "rimraf dist",
28
- "build": "nest build",
29
- "build:sdk": "rimraf dist-sdk && tsc -p tsconfig.build.json",
30
- "docs": "typedoc",
31
- "build:local": "npm run build:sdk && npm run docs",
32
- "prepublishOnly": "npm run build:local",
33
- "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
34
- "start": "nest start",
35
- "dev": "nest start --watch",
36
- "start:dev": "nest start --watch",
37
- "start:debug": "nest start --debug --watch",
38
- "start:prod": "node dist/main",
39
- "debug": "nest start --debug",
40
- "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
41
- "test": "jest",
42
- "test:watch": "jest --watch",
43
- "test:cov": "jest --coverage",
44
- "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
45
- "test:e2e": "jest --silent --detectOpenHandles --config ./test/jest-e2e.json",
46
- "test:e2e:watch": "jest --config ./test/jest-e2e.json --watch",
47
- "test:e2e:cheap": "jest --silent --detectOpenHandles --config ./test/jest-e2e.json --testPathIgnorePatterns=\"llm\" --testPathIgnorePatterns=\"conversation\" --testPathIgnorePatterns=\"stories\" --testPathIgnorePatterns=\"sse\" --testPathIgnorePatterns=\"workflow\"",
48
- "test:e2e:cov": "jest --silent --config ./test/jest-e2e.json --coverage"
49
- },
50
- "dependencies": {
51
- "@ai-sdk/deepseek": "^2.0.28",
52
- "@ai-sdk/google": "^3.0.59",
53
- "@ai-sdk/openai": "^3.0.51",
54
- "@ai-sdk/xai": "^3.0.79",
55
- "@anthropic-ai/sdk": "^0.82.0",
56
- "@fal-ai/client": "^1.9.5",
57
- "@google/genai": "^1.48.0",
58
- "@nestjs/common": "^11.1.18",
59
- "@nestjs/config": "^4.0.3",
60
- "@nestjs/core": "^11.1.18",
61
- "@nestjs/jwt": "^11.0.2",
62
- "@nestjs/passport": "^11.0.5",
63
- "@nestjs/platform-express": "^11.1.18",
64
- "@nestjs/serve-static": "^5.0.4",
65
- "@types/yauzl": "^2.10.3",
66
- "ai": "^6.0.149",
67
- "archiver": "^7.0.1",
68
- "bcrypt": "^6.0.0",
69
- "body-parser": "^2.2.2",
70
- "cookie-parser": "^1.4.7",
71
- "dotenv": "^17.4.1",
72
- "handlebars": "^4.7.9",
73
- "jsonrepair": "^3.14.0",
74
- "multer": "^2.1.1",
75
- "openai": "^6.33.0",
76
- "passport": "^0.7.0",
77
- "passport-jwt": "^4.0.1",
78
- "pdf-data-parser": "^1.2.20",
79
- "pdf-lib": "^1.17.1",
80
- "reflect-metadata": "^0.2.2",
81
- "rxjs": "^7.8.2",
82
- "save": "^2.9.0",
83
- "stripe": "^22.0.0",
84
- "together-ai": "^0.39.0",
85
- "yauzl": "^3.3.0",
86
- "zod": "^4.3.6"
87
- },
88
- "devDependencies": {
89
- "@nestjs/cli": "^11.0.17",
90
- "@nestjs/schematics": "^11.0.10",
91
- "@nestjs/testing": "^11.1.18",
92
- "@types/bcrypt": "^6.0.0",
93
- "@types/cookie-parser": "^1.4.10",
94
- "@types/eventsource": "^3.0.0",
95
- "@types/express": "^5.0.6",
96
- "@types/jest": "^30.0.0",
97
- "@types/multer": "^2.1.0",
98
- "@types/node": "^25.5.2",
99
- "@types/passport-jwt": "^4.0.1",
100
- "@types/supertest": "^7.2.0",
101
- "@typescript-eslint/eslint-plugin": "^8.58.0",
102
- "@typescript-eslint/parser": "^8.58.0",
103
- "copyfiles": "^2.4.1",
104
- "eslint": "^10.2.0",
105
- "eslint-config-prettier": "^10.1.8",
106
- "eslint-plugin-prettier": "^5.5.5",
107
- "eventsource": "^4.1.0",
108
- "jest": "^30.3.0",
109
- "prettier": "^3.8.1",
110
- "rimraf": "^6.1.3",
111
- "sharp": "^0.35.3",
112
- "source-map-support": "^0.5.21",
113
- "supertest": "^7.2.2",
114
- "ts-jest": "^29.4.9",
115
- "ts-loader": "^9.5.7",
116
- "ts-node": "^10.9.2",
117
- "tsc-alias": "^1.8.16",
118
- "tsconfig-paths": "^4.2.0",
119
- "typedoc": "^0.28.18",
120
- "typescript": "^5.8.3"
121
- },
122
- "jest": {
123
- "moduleFileExtensions": [
124
- "ts",
125
- "js",
126
- "json"
127
- ],
128
- "rootDir": "src",
129
- "testRegex": ".*\\.spec\\.ts$",
130
- "transform": {
131
- "^.+\\.(t|j)s$": "ts-jest"
132
- },
133
- "collectCoverageFrom": [
134
- "**/*.(t|j)s"
135
- ],
136
- "coverageDirectory": "../coverage",
137
- "testEnvironment": "node"
138
- }
139
- }
1
+ {
2
+ "name": "briyah",
3
+ "version": "2.0.0",
4
+ "description": "Multi-agent AI SDK with interactive storytelling and D&D 5e support.",
5
+ "private": false,
6
+ "main": "dist-sdk/server/src/sdk/index.js",
7
+ "types": "dist-sdk/server/src/sdk/index.d.ts",
8
+ "files": [
9
+ "dist-sdk/",
10
+ "docs/",
11
+ "data/common/config",
12
+ "data/common/prompts",
13
+ "data/common/story_ideas",
14
+ "data/packs",
15
+ "README.md",
16
+ "src/tools/packs/dnd5e/README.md"
17
+ ],
18
+ "exports": {
19
+ ".": {
20
+ "import": "./dist-sdk/server/src/sdk/index.js",
21
+ "require": "./dist-sdk/server/src/sdk/index.js",
22
+ "types": "./dist-sdk/server/src/sdk/index.d.ts"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "scripts": {
27
+ "prebuild": "rimraf dist",
28
+ "build": "nest build",
29
+ "build:sdk": "rimraf dist-sdk && tsc -p tsconfig.build.json",
30
+ "docs": "typedoc",
31
+ "build:local": "npm run build:sdk && npm run docs",
32
+ "prepublishOnly": "npm run build:local",
33
+ "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
34
+ "start": "nest start",
35
+ "dev": "nest start --watch",
36
+ "start:dev": "nest start --watch",
37
+ "start:debug": "nest start --debug --watch",
38
+ "start:prod": "node dist/main",
39
+ "debug": "nest start --debug",
40
+ "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
41
+ "test": "jest",
42
+ "test:watch": "jest --watch",
43
+ "test:cov": "jest --coverage",
44
+ "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
45
+ "test:e2e": "jest --silent --detectOpenHandles --config ./test/jest-e2e.json",
46
+ "test:e2e:watch": "jest --config ./test/jest-e2e.json --watch",
47
+ "test:e2e:cheap": "jest --silent --detectOpenHandles --config ./test/jest-e2e.json --testPathIgnorePatterns=\"llm\" --testPathIgnorePatterns=\"conversation\" --testPathIgnorePatterns=\"stories\" --testPathIgnorePatterns=\"sse\" --testPathIgnorePatterns=\"workflow\"",
48
+ "test:e2e:cov": "jest --silent --config ./test/jest-e2e.json --coverage"
49
+ },
50
+ "dependencies": {
51
+ "@ai-sdk/deepseek": "^2.0.52",
52
+ "@ai-sdk/google": "^3.0.104",
53
+ "@ai-sdk/openai": "^3.0.91",
54
+ "@ai-sdk/xai": "^3.0.115",
55
+ "@anthropic-ai/sdk": "^0.116.0",
56
+ "@fal-ai/client": "^1.10.1",
57
+ "@google/genai": "^2.16.0",
58
+ "@nestjs/common": "^11.1.28",
59
+ "@nestjs/config": "^4.0.4",
60
+ "@nestjs/core": "^11.1.28",
61
+ "@nestjs/jwt": "^11.0.2",
62
+ "@nestjs/passport": "^11.0.5",
63
+ "@nestjs/platform-express": "^11.1.28",
64
+ "@nestjs/serve-static": "^5.0.5",
65
+ "@types/yauzl": "^3.4.0",
66
+ "ai": "^6.0.246",
67
+ "archiver": "^7.0.1",
68
+ "bcrypt": "^6.0.0",
69
+ "body-parser": "^2.3.0",
70
+ "cookie-parser": "^1.4.7",
71
+ "dotenv": "^17.4.2",
72
+ "handlebars": "^4.7.9",
73
+ "jsonrepair": "^3.15.0",
74
+ "multer": "^2.2.0",
75
+ "openai": "^7.4.0",
76
+ "passport": "^0.7.0",
77
+ "passport-jwt": "^4.0.1",
78
+ "pdf-data-parser": "^1.2.22",
79
+ "pdf-lib": "^1.17.1",
80
+ "reflect-metadata": "^0.2.2",
81
+ "rxjs": "^7.8.2",
82
+ "save": "^2.9.0",
83
+ "stripe": "~22.0.0",
84
+ "together-ai": "^0.47.0",
85
+ "yauzl": "^3.4.0",
86
+ "zod": "^4.4.3"
87
+ },
88
+ "devDependencies": {
89
+ "@nestjs/cli": "^11.0.24",
90
+ "@nestjs/schematics": "^11.1.0",
91
+ "@nestjs/testing": "^11.1.28",
92
+ "@types/bcrypt": "^6.0.0",
93
+ "@types/cookie-parser": "^1.4.10",
94
+ "@types/eventsource": "^3.0.0",
95
+ "@types/express": "^5.0.6",
96
+ "@types/jest": "^30.0.0",
97
+ "@types/multer": "^2.2.0",
98
+ "@types/node": "~24.x",
99
+ "@types/passport-jwt": "^4.0.1",
100
+ "@types/supertest": "^7.2.1",
101
+ "@typescript-eslint/eslint-plugin": "^8.66.0",
102
+ "@typescript-eslint/parser": "^8.66.0",
103
+ "copyfiles": "^2.4.1",
104
+ "eslint": "^10.8.1",
105
+ "eslint-config-prettier": "^10.1.8",
106
+ "eslint-plugin-prettier": "^5.5.6",
107
+ "eventsource": "^4.1.1",
108
+ "jest": "^30.4.2",
109
+ "prettier": "^3.9.6",
110
+ "rimraf": "^6.1.3",
111
+ "sharp": "^0.35.3",
112
+ "source-map-support": "^0.5.21",
113
+ "supertest": "^7.2.2",
114
+ "ts-jest": "^29.4.12",
115
+ "ts-loader": "^9.6.2",
116
+ "ts-node": "^10.9.2",
117
+ "tsc-alias": "^1.9.1",
118
+ "tsconfig-paths": "^4.2.0",
119
+ "typedoc": "^0.28.20",
120
+ "typescript": "^5.9.3"
121
+ },
122
+ "jest": {
123
+ "moduleFileExtensions": [
124
+ "ts",
125
+ "js",
126
+ "json"
127
+ ],
128
+ "rootDir": "src",
129
+ "testRegex": ".*\\.spec\\.ts$",
130
+ "transform": {
131
+ "^.+\\.(t|j)s$": "ts-jest"
132
+ },
133
+ "collectCoverageFrom": [
134
+ "**/*.(t|j)s"
135
+ ],
136
+ "coverageDirectory": "../coverage",
137
+ "testEnvironment": "node"
138
+ }
139
+ }