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,14 +1,26 @@
1
- # The 5e tool pack
1
+ # The 5e pack
2
2
 
3
- A set of native tools that let a Briyah room run a fifth-edition tabletop game. There is
4
- no D&D feature in Briyah: a game is an ordinary room, assembled from agents, prompt
5
- folders, tool grants and a room leader. This pack only supplies the dice and the
6
- arithmetic.
3
+ Everything a Briyah room needs to run a fifth-edition tabletop game. There is no D&D
4
+ feature in Briyah: a game is an ordinary room, assembled from agents, prompt folders,
5
+ tool grants and a room leader. This directory holds the *code* — the dice and the
6
+ arithmetic — and the rest of the pack's content sits in `server/data/packs/dnd5e/`:
7
7
 
8
- The four prompt folders that go with it ship separately, in `server/data/common/prompts/`:
9
- `dungeon_master`, `dnd_player`, `character_creator` and `campaign_designer`.
10
- Set the room's turn mode to **directed** and its leader to the Dungeon Master, so exactly
11
- one agent answers each message and the DM controls the order of play.
8
+ ```
9
+ server/data/packs/dnd5e/
10
+ ├── pack.json
11
+ ├── prompts/ dungeon_master, dnd_player, character_creator,
12
+ │ campaign_designer, battle_master, dnd_room_moderator
13
+ ├── artifacts/ 16 documents: combat procedure, the planes, twelve classes
14
+ ├── agents/ six agent templates
15
+ └── rooms/ table.json — the whole table in one action
16
+ ```
17
+
18
+ The two `packs` directories are different things and it is worth keeping them
19
+ straight: `server/src/tools/packs/dnd5e/` is this pack's tool code, compiled into the
20
+ build; `server/data/packs/dnd5e/` is its content, which a user can override per-file.
21
+
22
+ Prompt folders are referenced pack-qualified — `dnd5e:dungeon_master`, not
23
+ `dungeon_master`.
12
24
 
13
25
  Each folder carries a `defaults_config.json`, so selecting it in the create-agent dialog fills
14
26
  in that role's name, nickname, description, tool grants and cache TTL. The grant table below is
@@ -18,10 +30,77 @@ otherwise show up mid-session as an agent that cannot roll.
18
30
 
19
31
  | Agent | Prompt folder | Tools it is granted |
20
32
  |---|---|---|
21
- | Dungeon Master | `dungeon_master` | all seventeen |
33
+ | Dungeon Master | `dungeon_master` | all eighteen |
22
34
  | Player | `dnd_player` | none — see [Why players get no tools](#why-players-get-no-tools) |
23
35
  | Character creator | `character_creator` | `create_sheet`, `read_sheet`, `patch_sheet`, `level_up`, `roll_dice`, `rules_lookup`, `spell` |
24
36
  | Campaign designer | `campaign_designer` | `stat_block`, `magic_item`, `rules_lookup` |
37
+ | Battle Master | `battle_master` | `roll_initiative`, `encounter`, `roll_dice`, `check`, `apply_hp`, `conditions`, `spend`, `read_sheet`, `stat_block`, `spell`, `magic_item`, `rules_lookup` |
38
+
39
+ ## Why combat is a separate agent
40
+
41
+ The Dungeon Master is the most expensive agent at the table: it carries the whole campaign
42
+ history plus its procedure document in a cached prefix. A fight is a dozen tool calls of
43
+ bookkeeping, and every one of them re-sends all of that. None of the bookkeeping needs the
44
+ campaign history, and none of the narration needs the combat rules — so they are split along
45
+ the agent boundary rather than tuned.
46
+
47
+ The **Battle Master** runs encounters and nothing else. It holds the combat document, a short
48
+ history window (`maxHistoryMessages: 20`), and should be created on a **cheap model** — it does
49
+ arithmetic and reports outcomes, it does not write prose. The Dungeon Master hands over at the
50
+ moment it would have rolled initiative, stays out of the fight entirely, and picks the story back
51
+ up from a single outcome report.
52
+
53
+ A 20-message window is narrower than a real fight, and that is deliberate: the window's job is to
54
+ stop the second encounter carrying the first. What keeps the *current* encounter intact is the
55
+ room's **history pin**, set automatically when the leader hands a specialist a task, which makes
56
+ trimming keep everything since the handoff. See the `rooms` skill; the pack needs to do nothing
57
+ for it beyond having a window at all.
58
+
59
+ ### Monsters are combatants, not prose
60
+
61
+ `stat_block` with **`place: true`** writes each creature as a `Foe: <name>` artifact with its own
62
+ rolled hit points. From then on `check`, `apply_hp`, `conditions` and `spend` all work on it by
63
+ name, because every one of them resolves its target through `loadSheet` — a monster is the same
64
+ shape as a character, with `foe: true`, no class, and its stat block's flat save bonuses in
65
+ `saveBonus`.
66
+
67
+ Three things follow, and each replaces something that went wrong in a played fight:
68
+
69
+ - **`check` compares an attack to armour class.** `roll_dice` returns a number and leaves the
70
+ comparison to whoever reads it; in round one of the first real fight a 15 against AC 16 dealt
71
+ seven damage. A placed monster attacks through `check` with the target's AC in `dc`, and the
72
+ tool answers `passed`.
73
+ - **Hit points are stored, not restated.** They used to live only as arithmetic in the Battle
74
+ Master's `situation` line. Across four rounds that drifted (`25-3 = 19`), then was lost when
75
+ the agent's history window trimmed the early rounds, then was re-read from the stat block —
76
+ restoring the boss to full and erasing three rounds of the party's damage, invisibly.
77
+ - **A monster dies at 0** rather than falling unconscious and rolling death saves.
78
+
79
+ Two invariants worth keeping:
80
+
81
+ - **The `Foe:` prefix is a privacy boundary.** `Party Status` and `read_sheet character: "party"`
82
+ are rebuilt from every `Sheet:` artifact and read by every player. A monster filed under that
83
+ prefix would publish its exact remaining hit points to the table — the one thing the Dungeon
84
+ Master's prompt forbids saying out loud.
85
+ - **`roll_initiative` clears the previous fight's monsters, keeping the ones it names.** Cleared
86
+ on the way in rather than the way out, because a fight ends with a message rather than a tool
87
+ call and the Battle Master did not reliably signal the end at all. Keeping the named ones
88
+ matters just as much: a fight is set up by placing and *then* rolling, so clearing everything
89
+ would delete the combatants placed seconds earlier.
90
+
91
+ This is additive. The DM still grants all eighteen tools, so a table with no Battle Master runs
92
+ exactly as it did before — but its procedure document no longer carries the combat rules, so
93
+ attach `5e · battle_master — combat mechanics` to the DM as well if you run it that way.
94
+
95
+ Two things make the handoff work, and both are prompt-level rather than code-level:
96
+
97
+ - **A non-leader agent can drive turn order.** `Room.selectResponders` resolves a message's
98
+ targets before it falls back to the room leader, so the Battle Master naming a combatant is
99
+ what prompts them. Nothing in the dispatch path cares that it is not the leader.
100
+ - **Players must answer whoever addressed them.** `dnd_player`'s prompt used to hard-code the
101
+ room leader as the reply target. If that regresses, a player answers the DM mid-fight, the DM
102
+ picks up the turn, and combat silently reverts to the old behaviour with no error anywhere.
103
+ `prompt-folders.spec.ts` guards it.
25
104
 
26
105
  ## What the pack knows, and what still needs a document
27
106
 
@@ -40,18 +119,23 @@ throws, skill list, casting progression, subclass level and ASI levels — but n
40
119
  Sneak Attack or Channel Divinity do. That, deeper combat procedure, and anything your table
41
120
  plays with from outside the SRD are what a rule document is still for.
42
121
 
43
- The pack ships fifteen documents distilled from the SRD for exactly those gaps, in
122
+ The pack ships sixteen documents distilled from the SRD for exactly those gaps, in
44
123
  `server/data/common/artifacts/dnd5e/` beside a `manifest.json`. **They need no upload**: they appear
45
124
  on the Artifacts page as read-only artifacts whenever the pack is enabled, and the create-agent
46
125
  dialog pre-ticks the right one as soon as a prompt folder is selected.
47
126
 
48
127
  | Document | For |
49
128
  |---|---|
50
- | `dungeon_master-procedure.md` | The Dungeon Master — round structure, action economy, rulings, travel, traps |
129
+ | `dungeon_master-procedure.md` | The Dungeon Master — DCs, travel, light, objects, traps, resting, downtime |
130
+ | `battle_master-combat.md` | The Battle Master — the round, actions, movement, attacks, damage rulings |
51
131
  | `character_creator-basics.md` | The character creator — what the tools answer, and languages |
52
132
  | `class-<name>.md` ×12 | Whoever needs that class: the creator building one, the agent playing one |
53
133
  | `campaign_designer-setting.md` | The campaign designer — the planes and the SRD pantheons |
54
134
 
135
+ The DC table and the vision rules are deliberately in **both** procedure documents. They are
136
+ cheap, and each agent hits a wall without them: the Battle Master sets DCs for improvised actions
137
+ and resolves a shove as a contest, and the Dungeon Master needs the same table out of combat.
138
+
55
139
  All twelve class documents are pre-ticked on the **character creator**, and nowhere else. It is
56
140
  handed players one at a time and cannot know in advance what any of them will pick, so the twelve
57
141
  travel together or the build is guessed: a played campaign whose creator carried none of them
@@ -157,6 +241,34 @@ five, not a category), and uses the two-handed die for a versatile weapon. There
157
241
  tool: `rules_lookup` answers `topic: "glaive"` and `topic: "chain mail"`, and the pack already
158
242
  has as many tools as a five-call turn can chain.
159
243
 
244
+ **Tools** — the rulebook kind, thieves' tools and artisan's tools — live in `data/kits.ts`,
245
+ named that way because `tools/` next door holds the Briyah tool definitions and a `data/tools.ts`
246
+ beside it would read as the wrong thing. Thirty-nine entries in five categories, hand-written.
247
+
248
+ Tool proficiency is the one proficiency that is **stored** on the sheet, in `toolProf`, rather
249
+ than derived from the class and race the way weapon proficiency is. It has to be: most of it is
250
+ *chosen*. A bard picks three instruments out of ten and a dwarf picks one artisan's tool out of
251
+ three, and there is nothing to derive that from. So `create_sheet` takes the player's picks in
252
+ `spec.tools`, adds what the class, race and background grant outright, and reports the choices
253
+ still owed — a bard who named no instruments is told they owe three. A tool outside the table is
254
+ accepted as written, since the SRD's own background customization rule invites inventing one.
255
+
256
+ The three sources share one *consumed* set, which is the part that is easy to break. Without it a
257
+ dwarf monk — offered an artisan's tool by each — has both choices settled by a single pick and
258
+ quietly loses a proficiency. The race is applied before the class for the same reason: a race
259
+ offers a shortlist and a class offers a whole category, so settling the narrow one first leaves
260
+ the player the wider one to spend.
261
+
262
+ `check` rolls one with `kind: "tool"`. **The ability is the DM's**, because the rules make it so —
263
+ the SRD fixes no ability to a tool and picks one per situation, a Dexterity check to force a lock
264
+ and an Intelligence check to identify a poison. The tool defaults to Dexterity, since traps and
265
+ locks are most of what gets rolled, and every result names the ability it used (`Thieves' tools
266
+ (DEX)`) so a wrong default is visible rather than silent. Proficiency is added only when the
267
+ character has it and doubled from `toolExp`, which is where a rogue's Expertise goes when it is
268
+ spent on thieves' tools rather than on a second skill — `create_sheet` sorts an `expertise` list
269
+ into the skills and the tools rather than dropping what is not a skill. A character without the
270
+ proficiency still rolls and is told no bonus applied: using a tool unproficiently is legal.
271
+
160
272
  `syncWeaponAttacks` only ever touches an entry whose name is **exactly** a table weapon.
161
273
  "Longsword +1", "Claws" and anything hand-written are left alone — a fuzzy match would mistake
162
274
  the first for a plain longsword and quietly strip its bonus.
@@ -375,8 +487,10 @@ secret, and an explicit list of what was left blank. There is no scene sequence
375
487
 
376
488
  Keep the creator in the room afterwards: in directed mode it is never prompted unless
377
489
  addressed, so it costs nothing at rest, and the DM calls it back for every level-up. Give it a
378
- low `maxHistoryMessages` (20) — its history still accumulates public messages through
379
- `hear()` even while it stays silent.
490
+ bounded `maxHistoryMessages` (60) — its history still accumulates public messages through
491
+ `hear()` even while it stays silent. Sixty rather than twenty because an interview with a human
492
+ runs one question per turn and can outgrow a narrow window; the room's history pin protects the
493
+ interview in flight, and the window is the backstop.
380
494
 
381
495
  ### Levelling up
382
496
 
@@ -403,15 +517,23 @@ granted to the creator and mentioned nowhere.
403
517
 
404
518
  ## Turning it on
405
519
 
406
- ```
407
- BRIYAH_TOOL_PACKS=dnd5e
408
- ```
520
+ Enable **D&D 5th Edition** on the Packs page. That is per user: the tools are registered
521
+ process-wide at boot, and enabling is what makes them grantable to *your* agents and puts
522
+ the pack's prompt folders and documents in your lists. `BRIYAH_TOOL_PACKS` no longer does
523
+ anything.
524
+
525
+ Expand the pack's row and press **Create Room** on the *D&D Table* template, or pick it
526
+ from "Copy an Existing Room" in the Create Room dialog. Either builds the room and its six
527
+ agents in one action, already carrying their prompt folders, tool grants and documents, with
528
+ turn mode **directed** and the Dungeon Master as leader. You are asked for two models: the
529
+ primary one runs the Dungeon Master, and the economy one runs everybody else — see
530
+ [Why combat is a separate agent](#why-combat-is-a-separate-agent) for why that split is the
531
+ point.
409
532
 
410
- Nothing is registered without that. Once it is set, all seventeen tools become grantable to any
411
- agent on the Agents page — on the create dialog as well as the edit form — and an agent only sees the
412
- ones it has been granted.
533
+ Disabling the pack later hides its prompts, documents, tools, agents and rooms from your
534
+ pages. It does not stop a room that already exists from working.
413
535
 
414
- An SDK host can register them directly instead:
536
+ An SDK host can register the tools directly instead of relying on the boot path:
415
537
 
416
538
  ```ts
417
539
  import { dnd5eTools } from 'briyah';
@@ -423,8 +545,9 @@ briyah.registerTools(dnd5eTools());
423
545
  | Tool | What it does |
424
546
  |---|---|
425
547
  | `roll_dice` | Rolls dice expressions in a labelled, semicolon-separated batch |
426
- | `roll_initiative` | Rolls a whole encounter's initiative in one call and writes the order to an artifact |
427
- | `check` | Any d20 test, with modifiers read off the character's sheet; rolls damage for attacks |
548
+ | `roll_initiative` | Rolls a whole encounter's initiative in one call and starts the `Encounter` state |
549
+ | `encounter` | Reads and advances the fight: the round, whose turn it is, removing a combatant, ending it |
550
+ | `check` | Any d20 test, with modifiers read off the character's sheet; rolls damage for attacks, and tool checks with the ability the DM names |
428
551
  | `apply_hp` | Damage, healing, temporary hit points, the dying sequence, death saves |
429
552
  | `rest` | Short and long rests, including spending hit dice |
430
553
  | `spend` | Spell slots, hit dice, feature uses, item charges |
@@ -438,7 +561,7 @@ briyah.registerTools(dnd5eTools());
438
561
  | `stat_block` | Looks up a creature, or defines one for this campaign |
439
562
  | `magic_item` | Looks up a magic item, or defines one for this campaign |
440
563
  | `spell` | Looks up a spell, or lists what a class can cast |
441
- | `rules_lookup` | SRD excerpts for conditions, rules, tables and equipment |
564
+ | `rules_lookup` | SRD excerpts for conditions, rules, tables, equipment and tools |
442
565
 
443
566
  **Labels on `roll_dice` use `=`, not `:`.** Expressions are semicolon-separated and each may
444
567
  carry a name, which is what makes a multi-roll result readable:
@@ -457,7 +580,7 @@ Suggested grants:
457
580
 
458
581
  | Agent | Prompt folder | Tools |
459
582
  |---|---|---|
460
- | Dungeon Master | `dungeon_master` | all seventeen |
583
+ | Dungeon Master | `dungeon_master` | all eighteen |
461
584
  | AI player | `dnd_player` | **none** — see below |
462
585
  | Human player | `dnd_player` | none |
463
586
  | Character creator | `character_creator` | `create_sheet`, `read_sheet`, `patch_sheet`, `level_up`, `roll_dice`, `rules_lookup`, `spell` |
@@ -511,7 +634,7 @@ decided and waits for `level_up`.
511
634
  |---|---|---|
512
635
  | `Sheet: <Character>` | that character's agent | The full sheet |
513
636
  | `Party Status` | every agent | One line per character: level, hit points, armour class, conditions |
514
- | `Encounter` | every agent | The current initiative order |
637
+ | `Encounter` | every agent | The round and the initiative order, transient; no monster hit points |
515
638
  | `Campaign` | the Dungeon Master (and its author) | The world: factions, places, people, hooks |
516
639
  | `Bestiary` | its author only | Creature statistics particular to this campaign |
517
640
 
@@ -1,14 +0,0 @@
1
- import { LibraryFile, LibraryPrompt } from '../../../shared/types/app.types';
2
- export declare class LibraryService {
3
- private getLibraryDir;
4
- private assertSafeName;
5
- private normalizeBaseUrl;
6
- listLocalPrompts(): LibraryPrompt[];
7
- listLocalFiles(folder: string): LibraryFile[];
8
- getLocalFileContent(folder: string, file: string): string;
9
- private fetchJson;
10
- listRemotePrompts(baseUrl: string): Promise<LibraryPrompt[]>;
11
- listRemoteFiles(baseUrl: string, folder: string): Promise<LibraryFile[]>;
12
- getRemoteFileContent(baseUrl: string, folder: string, file: string): Promise<string>;
13
- copyFromRemote(baseUrl: string, folder: string, userPromptsDir: string): Promise<void>;
14
- }
@@ -1,165 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
19
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
20
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
21
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
22
- return c > 3 && r && Object.defineProperty(target, key, r), r;
23
- };
24
- var __importStar = (this && this.__importStar) || (function () {
25
- var ownKeys = function(o) {
26
- ownKeys = Object.getOwnPropertyNames || function (o) {
27
- var ar = [];
28
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
- return ar;
30
- };
31
- return ownKeys(o);
32
- };
33
- return function (mod) {
34
- if (mod && mod.__esModule) return mod;
35
- var result = {};
36
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
- __setModuleDefault(result, mod);
38
- return result;
39
- };
40
- })();
41
- Object.defineProperty(exports, "__esModule", { value: true });
42
- exports.LibraryService = void 0;
43
- const common_1 = require("@nestjs/common");
44
- const fs = __importStar(require("fs"));
45
- const path = __importStar(require("path"));
46
- const errors_1 = require("../common/errors");
47
- const REMOTE_TIMEOUT_MS = 10_000;
48
- let LibraryService = class LibraryService {
49
- getLibraryDir() {
50
- const dataPath = process.env.BRIYAH_DATA_PATH || path.resolve(process.cwd(), 'briyah-data');
51
- return path.resolve(dataPath, 'common', 'library');
52
- }
53
- assertSafeName(name) {
54
- if (!name || !/^[A-Za-z0-9_.-]+$/.test(name) || name === '.' || name === '..') {
55
- throw new errors_1.ValidationError(`Invalid name: ${name}`);
56
- }
57
- }
58
- normalizeBaseUrl(baseUrl) {
59
- if (!baseUrl)
60
- throw new errors_1.ValidationError('URL is required');
61
- const trimmed = baseUrl.trim().replace(/\/+$/, '');
62
- if (!/^https?:\/\//i.test(trimmed)) {
63
- throw new errors_1.ValidationError('URL must start with http:// or https://');
64
- }
65
- return trimmed;
66
- }
67
- listLocalPrompts() {
68
- const dir = this.getLibraryDir();
69
- if (!fs.existsSync(dir))
70
- return [];
71
- return fs
72
- .readdirSync(dir, { withFileTypes: true })
73
- .filter((d) => d.isDirectory())
74
- .map((d) => ({ name: d.name }))
75
- .sort((a, b) => a.name.localeCompare(b.name));
76
- }
77
- listLocalFiles(folder) {
78
- this.assertSafeName(folder);
79
- const folderPath = path.join(this.getLibraryDir(), folder);
80
- if (!fs.existsSync(folderPath) || !fs.statSync(folderPath).isDirectory()) {
81
- throw new errors_1.NotFoundError(`Library folder ${folder} not found`);
82
- }
83
- return fs
84
- .readdirSync(folderPath, { withFileTypes: true })
85
- .filter((d) => d.isFile())
86
- .map((d) => ({ name: d.name }))
87
- .sort((a, b) => a.name.localeCompare(b.name));
88
- }
89
- getLocalFileContent(folder, file) {
90
- this.assertSafeName(folder);
91
- this.assertSafeName(file);
92
- const filePath = path.join(this.getLibraryDir(), folder, file);
93
- if (!fs.existsSync(filePath) || !fs.statSync(filePath).isFile()) {
94
- throw new errors_1.NotFoundError(`Library file ${folder}/${file} not found`);
95
- }
96
- return fs.readFileSync(filePath, 'utf8');
97
- }
98
- async fetchJson(url) {
99
- let response;
100
- try {
101
- response = await fetch(url, { signal: AbortSignal.timeout(REMOTE_TIMEOUT_MS) });
102
- }
103
- catch (e) {
104
- throw new errors_1.RemoteFetchError(`Failed to reach ${url}: ${e?.message ?? 'unknown error'}`);
105
- }
106
- if (response.status === 404) {
107
- throw new errors_1.NotFoundError(`Remote returned 404: ${url}`);
108
- }
109
- if (!response.ok) {
110
- throw new errors_1.RemoteFetchError(`Remote returned ${response.status} ${response.statusText}: ${url}`);
111
- }
112
- try {
113
- return (await response.json());
114
- }
115
- catch (e) {
116
- throw new errors_1.RemoteFetchError(`Remote did not return valid JSON: ${url} (${e?.message ?? 'parse error'})`);
117
- }
118
- }
119
- async listRemotePrompts(baseUrl) {
120
- const normalized = this.normalizeBaseUrl(baseUrl);
121
- const data = await this.fetchJson(`${normalized}/api/library/prompts`);
122
- return Array.isArray(data?.prompts) ? data.prompts : [];
123
- }
124
- async listRemoteFiles(baseUrl, folder) {
125
- this.assertSafeName(folder);
126
- const normalized = this.normalizeBaseUrl(baseUrl);
127
- const data = await this.fetchJson(`${normalized}/api/library/prompts/${encodeURIComponent(folder)}/files`);
128
- return Array.isArray(data?.files) ? data.files : [];
129
- }
130
- async getRemoteFileContent(baseUrl, folder, file) {
131
- this.assertSafeName(folder);
132
- this.assertSafeName(file);
133
- const normalized = this.normalizeBaseUrl(baseUrl);
134
- const data = await this.fetchJson(`${normalized}/api/library/prompts/${encodeURIComponent(folder)}/files/${encodeURIComponent(file)}`);
135
- return typeof data?.content === 'string' ? data.content : '';
136
- }
137
- async copyFromRemote(baseUrl, folder, userPromptsDir) {
138
- this.assertSafeName(folder);
139
- const normalized = this.normalizeBaseUrl(baseUrl);
140
- const target = path.join(userPromptsDir, folder);
141
- if (fs.existsSync(target)) {
142
- throw new errors_1.OperationFailedError(`Folder ${folder} already exists`);
143
- }
144
- const files = await this.listRemoteFiles(normalized, folder);
145
- if (files.length === 0) {
146
- throw new errors_1.NotFoundError(`Library folder ${folder} has no files at ${normalized}`);
147
- }
148
- const contents = [];
149
- for (const f of files) {
150
- this.assertSafeName(f.name);
151
- contents.push({
152
- name: f.name,
153
- content: await this.getRemoteFileContent(normalized, folder, f.name),
154
- });
155
- }
156
- fs.mkdirSync(target, { recursive: true });
157
- for (const { name, content } of contents) {
158
- fs.writeFileSync(path.join(target, name), content);
159
- }
160
- }
161
- };
162
- exports.LibraryService = LibraryService;
163
- exports.LibraryService = LibraryService = __decorate([
164
- (0, common_1.Injectable)()
165
- ], LibraryService);
@@ -1,2 +0,0 @@
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>enabledToolPacks | 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">enabledToolPacks</a></li></ul><h1>Function enabledToolPacks</h1></div><section class="tsd-panel"><ul class="tsd-signatures"><li class=""><div class="tsd-signature tsd-anchor-link" id="enabledtoolpacks"><span class="tsd-kind-call-signature">enabledToolPacks</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><a href="#enabledtoolpacks" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24" aria-hidden="true"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></div><div class="tsd-description"><div class="tsd-comment tsd-typography"><p>The names of the packs <a href="registerToolPacks.html" class="tsd-kind-function">registerToolPacks</a> has actually registered.</p>
2
- </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/b15141677fa1585e84a2baa64f121684482dd309/server/src/tools/packs/index.ts#L79">server/src/tools/packs/index.ts:79</a></li></ul></aside></div></li></ul></section></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>