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.
- package/README.md +1092 -994
- package/data/common/config/markup +1 -1
- package/data/common/prompts/character/progress_character.json +5 -5
- package/data/common/prompts/illustrator/describe_scene.json +11 -3
- package/data/common/prompts/perceive.json +2 -2
- package/data/common/prompts/room_moderator/moderate.json +34 -34
- package/data/common/prompts/story_moderator/moderate.json +62 -62
- package/data/packs/dnd5e/agents/battle-master.json +6 -0
- package/data/packs/dnd5e/agents/campaign-designer.json +6 -0
- package/data/packs/dnd5e/agents/character-creator.json +6 -0
- package/data/packs/dnd5e/agents/dungeon-master.json +6 -0
- package/data/packs/dnd5e/agents/player.json +13 -0
- package/data/packs/dnd5e/agents/table-moderator.json +6 -0
- package/data/{common/artifacts/dnd5e/dungeon_master-procedure.md → packs/dnd5e/artifacts/battle_master-combat.md} +31 -131
- package/data/packs/dnd5e/artifacts/dungeon_master-procedure.md +192 -0
- package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/manifest.json +8 -2
- package/data/packs/dnd5e/pack.json +6 -0
- package/data/packs/dnd5e/prompts/battle_master/defaults_config.json +23 -0
- package/data/packs/dnd5e/prompts/battle_master/perceive.json +33 -0
- package/data/packs/dnd5e/prompts/battle_master/perceive.prompt +378 -0
- package/data/{common → packs/dnd5e}/prompts/character_creator/defaults_config.json +1 -1
- package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.prompt +29 -0
- package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.prompt +40 -22
- package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.json +34 -34
- package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/moderate.prompt +14 -3
- package/data/{common → packs/dnd5e}/prompts/dungeon_master/defaults_config.json +1 -0
- package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.prompt +122 -115
- package/data/packs/dnd5e/prompts/dungeon_master/system_instruction.prompt +0 -0
- package/data/packs/dnd5e/rooms/table.json +16 -0
- package/dist-sdk/server/src/ai/LLM/base-ai.service.js +4 -13
- package/dist-sdk/server/src/ai/LLM/deepseek.service.d.ts +2 -1
- package/dist-sdk/server/src/ai/LLM/deepseek.service.js +65 -77
- package/dist-sdk/server/src/ai/agent-config.d.ts +2 -0
- package/dist-sdk/server/src/ai/agent-store.service.js +8 -0
- package/dist-sdk/server/src/ai/agent.d.ts +6 -0
- package/dist-sdk/server/src/ai/agent.js +25 -2
- package/dist-sdk/server/src/ai/artifact.service.d.ts +3 -1
- package/dist-sdk/server/src/ai/artifact.service.js +12 -5
- package/dist-sdk/server/src/ai/pack-artifacts.d.ts +3 -3
- package/dist-sdk/server/src/ai/pack-artifacts.js +21 -15
- package/dist-sdk/server/src/app/user-service-factory.js +9 -1
- package/dist-sdk/server/src/app.controller.d.ts +11 -11
- package/dist-sdk/server/src/app.controller.js +178 -88
- package/dist-sdk/server/src/app.service.d.ts +28 -7
- package/dist-sdk/server/src/app.service.js +121 -91
- package/dist-sdk/server/src/common/errors.d.ts +0 -3
- package/dist-sdk/server/src/common/errors.js +1 -11
- package/dist-sdk/server/src/config/prompt-resolver.d.ts +39 -0
- package/dist-sdk/server/src/config/prompt-resolver.js +189 -0
- package/dist-sdk/server/src/config/user-config.service.d.ts +17 -0
- package/dist-sdk/server/src/config/user-config.service.js +103 -0
- package/dist-sdk/server/src/config/user-paths.service.d.ts +4 -4
- package/dist-sdk/server/src/config/user-paths.service.js +12 -16
- package/dist-sdk/server/src/packs/pack-instantiation.service.d.ts +35 -0
- package/dist-sdk/server/src/packs/pack-instantiation.service.js +154 -0
- package/dist-sdk/server/src/packs/pack-manifest.d.ts +52 -0
- package/dist-sdk/server/src/packs/pack-manifest.js +256 -0
- package/dist-sdk/server/src/packs/pack.service.d.ts +24 -0
- package/dist-sdk/server/src/packs/pack.service.js +151 -0
- package/dist-sdk/server/src/room/room-config.d.ts +5 -0
- package/dist-sdk/server/src/room/room-store.service.d.ts +3 -0
- package/dist-sdk/server/src/room/room-store.service.js +41 -5
- package/dist-sdk/server/src/room/room.d.ts +7 -0
- package/dist-sdk/server/src/room/room.js +29 -1
- package/dist-sdk/server/src/sdk/briyah.d.ts +2 -0
- package/dist-sdk/server/src/sdk/briyah.js +45 -8
- package/dist-sdk/server/src/sdk/index.d.ts +6 -1
- package/dist-sdk/server/src/sdk/index.js +6 -2
- package/dist-sdk/server/src/shared/shared.module.js +0 -3
- package/dist-sdk/server/src/story/story.service.d.ts +2 -2
- package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.d.ts +17 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/kits.js +54 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/races.d.ts +3 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/races.js +6 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/data/srd.js +4 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.d.ts +1 -1
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/backgrounds.js +6 -3
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.d.ts +3 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/character.js +45 -5
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.d.ts +27 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/encounter.js +103 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.d.ts +7 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/foes.js +83 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.d.ts +19 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/kits.js +130 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.d.ts +2 -1
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/races.js +13 -2
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.d.ts +6 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/rules.js +16 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.d.ts +10 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/engine/sheet.js +82 -1
- package/dist-sdk/server/src/tools/packs/dnd5e/index.js +2 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/check.tool.js +51 -6
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/dice.tools.js +19 -9
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/encounter.tool.js +134 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/monster.tool.js +31 -13
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.d.ts +2 -0
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/shared.js +25 -8
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/sheet.tools.js +70 -4
- package/dist-sdk/server/src/tools/packs/dnd5e/tools/world.tools.js +27 -0
- package/dist-sdk/server/src/tools/packs/index.d.ts +1 -2
- package/dist-sdk/server/src/tools/packs/index.js +5 -11
- package/dist-sdk/shared/types/app.types.d.ts +72 -13
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/highlight.css +8 -1
- package/docs/assets/icons.js +1 -1
- package/docs/assets/icons.svg +1 -1
- package/docs/assets/main.js +4 -4
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/assets/style.css +18 -3
- package/docs/classes/Agent.html +702 -37
- package/docs/classes/Briyah.html +250 -33
- package/docs/classes/BriyahConfigService.html +117 -10
- package/docs/classes/NativeToolRegistry.html +156 -11
- package/docs/classes/PackInstantiationService.html +146 -0
- package/docs/classes/PackService.html +247 -0
- package/docs/classes/Room.html +1190 -77
- package/docs/classes/RoomMessage.html +260 -29
- package/docs/enums/MessageAction.html +123 -3
- package/docs/functions/availableToolPacks.html +41 -2
- package/docs/functions/dnd5eTools.html +42 -3
- package/docs/functions/installToolPacks.html +48 -0
- package/docs/functions/registerToolPacks.html +54 -6
- package/docs/hierarchy.html +42 -1
- package/docs/index.html +158 -25
- package/docs/interfaces/AgentCreationOptions.html +110 -11
- package/docs/interfaces/AgentInfo.html +188 -3
- package/docs/interfaces/AgentMessagesResponse.html +71 -2
- package/docs/interfaces/AppService.html +2775 -474
- package/docs/interfaces/Artifact.html +81 -4
- package/docs/interfaces/ArtifactMetadata.html +104 -3
- package/docs/interfaces/ArtifactWriteOptions.html +75 -6
- package/docs/interfaces/AttachDocumentResponse.html +61 -2
- package/docs/interfaces/BriyahConfigOptions.html +107 -10
- package/docs/interfaces/ChapterInfo.html +61 -2
- package/docs/interfaces/Character.html +81 -2
- package/docs/interfaces/CreateAgentResponse.html +56 -2
- package/docs/interfaces/CreateRoomResponse.html +61 -2
- package/docs/interfaces/CreateStoryResponse.html +56 -2
- package/docs/interfaces/FileList.html +56 -2
- package/docs/interfaces/FileMetadata.html +84 -3
- package/docs/interfaces/IConfigService.html +76 -3
- package/docs/interfaces/InstantiateModels.html +64 -0
- package/docs/interfaces/InstantiateRoomResult.html +70 -0
- package/docs/interfaces/LoadedPack.html +131 -0
- package/docs/interfaces/LoggingOptions.html +86 -7
- package/docs/interfaces/Message.html +80 -2
- package/docs/interfaces/ModelChoice.html +73 -0
- package/docs/interfaces/ModelInfo.html +71 -2
- package/docs/interfaces/NativeToolDefinition.html +96 -9
- package/docs/interfaces/PackAgentTemplate.html +101 -0
- package/docs/interfaces/PackRoomTemplate.html +108 -0
- package/docs/interfaces/PackView.html +172 -0
- package/docs/interfaces/PreparedPromptResponse.html +61 -2
- package/docs/interfaces/ProcessTextResponse.html +81 -2
- package/docs/interfaces/PromptFile.html +69 -2
- package/docs/interfaces/PromptFileContent.html +75 -2
- package/docs/interfaces/PromptFilesResponse.html +56 -2
- package/docs/interfaces/PromptFolder.html +79 -2
- package/docs/interfaces/PromptFolderDefaults.html +136 -5
- package/docs/interfaces/PromptFolderDefaultsResponse.html +65 -4
- package/docs/interfaces/PromptFoldersResponse.html +56 -2
- package/docs/interfaces/RoomDetails.html +133 -4
- package/docs/interfaces/RoomInfo.html +84 -2
- package/docs/interfaces/RoomMessageUpdate.html +91 -2
- package/docs/interfaces/RoomMessagesResponse.html +61 -2
- package/docs/interfaces/SendMessageResult.html +61 -2
- package/docs/interfaces/StoryErrorEvent.html +76 -4
- package/docs/interfaces/StoryIdea.html +71 -2
- package/docs/interfaces/StoryInfo.html +173 -3
- package/docs/interfaces/StoryIntroduceCharacterEvent.html +71 -4
- package/docs/interfaces/StoryProgressChapterEvent.html +64 -3
- package/docs/interfaces/StoryState.html +99 -6
- package/docs/interfaces/StoryStateEvent.html +69 -3
- package/docs/interfaces/ToolArtifact.html +81 -4
- package/docs/interfaces/ToolCaller.html +75 -6
- package/docs/interfaces/ToolDefinition.html +76 -2
- package/docs/interfaces/ToolHelpers.html +91 -6
- package/docs/interfaces/ToolParameter.html +71 -2
- package/docs/interfaces/ToolRoomAccess.html +200 -24
- package/docs/interfaces/ToolSummary.html +71 -2
- package/docs/interfaces/ToolsResponse.html +66 -2
- package/docs/interfaces/Transaction.html +96 -2
- package/docs/interfaces/TransactionHistoryResponse.html +61 -2
- package/docs/modules.html +53 -1
- package/docs/types/PackOrigin.html +34 -0
- package/docs/types/PromptScope.html +34 -1
- package/docs/types/RoomTurnMode.html +36 -2
- package/docs/types/ToolContext.html +36 -2
- package/docs/types/ToolRunResult.html +34 -1
- package/package.json +139 -139
- package/src/tools/packs/dnd5e/README.md +149 -26
- package/dist-sdk/server/src/library/library.service.d.ts +0 -14
- package/dist-sdk/server/src/library/library.service.js +0 -165
- package/docs/functions/enabledToolPacks.html +0 -2
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/campaign_designer-setting.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/character_creator-basics.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-barbarian.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-bard.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-cleric.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-druid.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-fighter.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-monk.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-paladin.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-ranger.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-rogue.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-sorcerer.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-warlock.md +0 -0
- /package/data/{common/artifacts/dnd5e → packs/dnd5e/artifacts}/class-wizard.md +0 -0
- /package/data/{common/prompts/campaign_designer → packs/dnd5e/prompts/battle_master}/system_instruction.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/campaign_designer/defaults_config.json +0 -0
- /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.json +0 -0
- /package/data/{common → packs/dnd5e}/prompts/campaign_designer/perceive.prompt +0 -0
- /package/data/{common/prompts/character_creator → packs/dnd5e/prompts/campaign_designer}/system_instruction.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/character_creator/perceive.json +0 -0
- /package/data/{common/prompts/dnd_player → packs/dnd5e/prompts/character_creator}/system_instruction.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/dnd_player/defaults_config.json +0 -0
- /package/data/{common → packs/dnd5e}/prompts/dnd_player/perceive.json +0 -0
- /package/data/{common/prompts/dnd_room_moderator → packs/dnd5e/prompts/dnd_player}/system_instruction.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/dnd_room_moderator/defaults_config.json +0 -0
- /package/data/{common/prompts/dungeon_master → packs/dnd5e/prompts/dnd_room_moderator}/system_instruction.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/dungeon_master/compact_agent.prompt +0 -0
- /package/data/{common → packs/dnd5e}/prompts/dungeon_master/perceive.json +0 -0
|
@@ -0,0 +1,146 @@
|
|
|
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>PackInstantiationService | 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">PackInstantiationService</a></li></ul>
|
|
12
|
+
<h1>Class PackInstantiationService</h1></div><aside class="tsd-sources">
|
|
13
|
+
<ul>
|
|
14
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack-instantiation.service.ts#L57">server/src/packs/pack-instantiation.service.ts:57</a></li></ul></aside>
|
|
15
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
16
|
+
<section class="tsd-panel tsd-index-panel">
|
|
17
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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>
|
|
18
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
19
|
+
<div class="tsd-accordion-details">
|
|
20
|
+
<section class="tsd-index-section">
|
|
21
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="constructors">Constructors<a href="#constructors" 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></h3>
|
|
22
|
+
<div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|
23
|
+
</div></section>
|
|
24
|
+
<section class="tsd-index-section">
|
|
25
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="methods">Methods<a href="#methods" 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></h3>
|
|
26
|
+
<div class="tsd-index-list"><a href="#instantiateagent" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Agent</span></a>
|
|
27
|
+
<a href="#instantiateroom" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Room</span></a>
|
|
28
|
+
</div></section></div></details></section></section>
|
|
29
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
30
|
+
<h2 class="tsd-anchor-link" id="constructors-1">Constructors<a href="#constructors-1" 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></h2></summary>
|
|
31
|
+
<section>
|
|
32
|
+
<section class="tsd-panel tsd-member">
|
|
33
|
+
<h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" 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></h3>
|
|
34
|
+
<ul class="tsd-signatures">
|
|
35
|
+
<li class="">
|
|
36
|
+
<div class="tsd-signature tsd-anchor-link" id="constructorpackinstantiationservice"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">PackInstantiationService</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">app</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/AppService.html" class="tsd-signature-type tsd-kind-interface">AppService</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">packs</span><span class="tsd-signature-symbol">:</span> <a href="PackService.html" class="tsd-signature-type tsd-kind-class">PackService</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">roomStore</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">RoomStoreService</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">PackInstantiationService</a><a href="#constructorpackinstantiationservice" 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>
|
|
37
|
+
<div class="tsd-description">
|
|
38
|
+
<div class="tsd-parameters">
|
|
39
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
40
|
+
<ul class="tsd-parameter-list">
|
|
41
|
+
<li><span><span class="tsd-kind-parameter">app</span>: <a href="../interfaces/AppService.html" class="tsd-signature-type tsd-kind-interface">AppService</a></span></li>
|
|
42
|
+
<li><span><span class="tsd-kind-parameter">packs</span>: <a href="PackService.html" class="tsd-signature-type tsd-kind-class">PackService</a></span></li>
|
|
43
|
+
<li><span><span class="tsd-kind-parameter">roomStore</span>: <span class="tsd-signature-type">RoomStoreService</span></span></li></ul></div>
|
|
44
|
+
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">PackInstantiationService</a></h4><aside class="tsd-sources">
|
|
45
|
+
<ul>
|
|
46
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack-instantiation.service.ts#L58">server/src/packs/pack-instantiation.service.ts:58</a></li></ul></aside></div></li></ul></section></section></details>
|
|
47
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
48
|
+
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" 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></h2></summary>
|
|
49
|
+
<section>
|
|
50
|
+
<section class="tsd-panel tsd-member">
|
|
51
|
+
<h3 class="tsd-anchor-link" id="instantiateagent"><span>instantiate<wbr/>Agent</span><a href="#instantiateagent" 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></h3>
|
|
52
|
+
<ul class="tsd-signatures">
|
|
53
|
+
<li class="">
|
|
54
|
+
<div class="tsd-signature tsd-anchor-link" id="instantiateagent-1"><span class="tsd-kind-call-signature">instantiateAgent</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">agentKey</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">models</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">overrides</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/PromptFolderDefaults.html" class="tsd-signature-type tsd-kind-interface">PromptFolderDefaults</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">agentId</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">warnings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span><a href="#instantiateagent-1" 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>
|
|
55
|
+
<div class="tsd-description">
|
|
56
|
+
<div class="tsd-comment tsd-typography"><p>Builds a single free-standing agent from a pack's agent template.</p>
|
|
57
|
+
<p>Free-standing rather than room-owned: this is the "preconfigured witness with
|
|
58
|
+
the right statements attached" case, which has to be usable before any
|
|
59
|
+
courtroom exists.</p>
|
|
60
|
+
</div>
|
|
61
|
+
<div class="tsd-parameters">
|
|
62
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
63
|
+
<ul class="tsd-parameter-list">
|
|
64
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
65
|
+
<div class="tsd-comment tsd-typography"><p>The pack holding the template</p>
|
|
66
|
+
</div></li>
|
|
67
|
+
<li><span><span class="tsd-kind-parameter">agentKey</span>: <span class="tsd-signature-type">string</span></span>
|
|
68
|
+
<div class="tsd-comment tsd-typography"><p>The agent template's key</p>
|
|
69
|
+
</div></li>
|
|
70
|
+
<li><span><span class="tsd-kind-parameter">models</span>: <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a></span>
|
|
71
|
+
<div class="tsd-comment tsd-typography"><p>One model per role</p>
|
|
72
|
+
</div></li>
|
|
73
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">overrides</span>: <span class="tsd-signature-type">Partial</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/PromptFolderDefaults.html" class="tsd-signature-type tsd-kind-interface">PromptFolderDefaults</a><span class="tsd-signature-symbol">></span></span>
|
|
74
|
+
<div class="tsd-comment tsd-typography"><p>Anything the caller wants to change, e.g. the agent's name</p>
|
|
75
|
+
</div></li></ul></div>
|
|
76
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-symbol">{</span> <span class="tsd-kind-property">agentId</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">warnings</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span> <span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol">></span></h4><p>The agent's id and anything that did not go to plan</p>
|
|
77
|
+
|
|
78
|
+
<div class="tsd-comment tsd-typography">
|
|
79
|
+
<div class="tsd-tag-throws">
|
|
80
|
+
<h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" 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></h4><p>If the pack or the template does not exist</p>
|
|
81
|
+
</div>
|
|
82
|
+
<div class="tsd-tag-throws">
|
|
83
|
+
<h4 class="tsd-anchor-link" id="throws-1">Throws<a href="#throws-1" 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></h4><p>If the pack is off</p>
|
|
84
|
+
</div></div><aside class="tsd-sources">
|
|
85
|
+
<ul>
|
|
86
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack-instantiation.service.ts#L182">server/src/packs/pack-instantiation.service.ts:182</a></li></ul></aside></div></li></ul></section>
|
|
87
|
+
<section class="tsd-panel tsd-member">
|
|
88
|
+
<h3 class="tsd-anchor-link" id="instantiateroom"><span>instantiate<wbr/>Room</span><a href="#instantiateroom" 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></h3>
|
|
89
|
+
<ul class="tsd-signatures">
|
|
90
|
+
<li class="">
|
|
91
|
+
<div class="tsd-signature tsd-anchor-link" id="instantiateroom-1"><span class="tsd-kind-call-signature">instantiateRoom</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">roomKey</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">models</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">name</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/InstantiateRoomResult.html" class="tsd-signature-type tsd-kind-interface">InstantiateRoomResult</a><span class="tsd-signature-symbol">></span><a href="#instantiateroom-1" 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>
|
|
92
|
+
<div class="tsd-description">
|
|
93
|
+
<div class="tsd-comment tsd-typography"><p>Builds a room from a pack's room template, with its whole cast.</p>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="tsd-parameters">
|
|
96
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
97
|
+
<ul class="tsd-parameter-list">
|
|
98
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
99
|
+
<div class="tsd-comment tsd-typography"><p>The pack holding the template</p>
|
|
100
|
+
</div></li>
|
|
101
|
+
<li><span><span class="tsd-kind-parameter">roomKey</span>: <span class="tsd-signature-type">string</span></span>
|
|
102
|
+
<div class="tsd-comment tsd-typography"><p>The room template's key</p>
|
|
103
|
+
</div></li>
|
|
104
|
+
<li><span><span class="tsd-kind-parameter">models</span>: <a href="../interfaces/InstantiateModels.html" class="tsd-signature-type tsd-kind-interface">InstantiateModels</a></span>
|
|
105
|
+
<div class="tsd-comment tsd-typography"><p>One model per role the templates ask for</p>
|
|
106
|
+
</div></li>
|
|
107
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">name</span>: <span class="tsd-signature-type">string</span></span>
|
|
108
|
+
<div class="tsd-comment tsd-typography"><p>Overrides the template's room name</p>
|
|
109
|
+
</div></li></ul></div>
|
|
110
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/InstantiateRoomResult.html" class="tsd-signature-type tsd-kind-interface">InstantiateRoomResult</a><span class="tsd-signature-symbol">></span></h4><p>The room, its agents, and anything that did not go to plan</p>
|
|
111
|
+
|
|
112
|
+
<div class="tsd-comment tsd-typography">
|
|
113
|
+
<div class="tsd-tag-throws">
|
|
114
|
+
<h4 class="tsd-anchor-link" id="throws-2">Throws<a href="#throws-2" 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></h4><p>If the pack or the template does not exist</p>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="tsd-tag-throws">
|
|
117
|
+
<h4 class="tsd-anchor-link" id="throws-3">Throws<a href="#throws-3" 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></h4><p>If the pack is off, or the template is inconsistent</p>
|
|
118
|
+
</div></div><aside class="tsd-sources">
|
|
119
|
+
<ul>
|
|
120
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack-instantiation.service.ts#L75">server/src/packs/pack-instantiation.service.ts:75</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
121
|
+
<div class="col-sidebar">
|
|
122
|
+
<div class="page-menu">
|
|
123
|
+
<div class="tsd-navigation settings">
|
|
124
|
+
<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>
|
|
125
|
+
<h3>Settings</h3></summary>
|
|
126
|
+
<div class="tsd-accordion-details">
|
|
127
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
128
|
+
<ul id="tsd-filter-options">
|
|
129
|
+
<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>
|
|
130
|
+
<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>
|
|
131
|
+
<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>
|
|
132
|
+
<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>
|
|
133
|
+
<details open class="tsd-accordion tsd-page-navigation"><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>
|
|
134
|
+
<h3>On This Page</h3></summary>
|
|
135
|
+
<div class="tsd-accordion-details">
|
|
136
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary>
|
|
137
|
+
<div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details>
|
|
138
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary>
|
|
139
|
+
<div><a href="#instantiateagent"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Agent</span></a><a href="#instantiateroom"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>instantiate<wbr/>Room</span></a></div></details></div></details></div>
|
|
140
|
+
<div class="site-menu">
|
|
141
|
+
<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>
|
|
142
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
|
|
143
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
144
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
145
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
146
|
+
<div class="overlay"></div></body></html>
|
|
@@ -0,0 +1,247 @@
|
|
|
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>PackService | 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">PackService</a></li></ul>
|
|
12
|
+
<h1>Class PackService</h1></div><aside class="tsd-sources">
|
|
13
|
+
<ul>
|
|
14
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L50">server/src/packs/pack.service.ts:50</a></li></ul></aside>
|
|
15
|
+
<section class="tsd-panel-group tsd-index-group">
|
|
16
|
+
<section class="tsd-panel tsd-index-panel">
|
|
17
|
+
<details class="tsd-index-content tsd-accordion" open><summary class="tsd-accordion-summary tsd-index-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>
|
|
18
|
+
<h5 class="tsd-index-heading uppercase">Index</h5></summary>
|
|
19
|
+
<div class="tsd-accordion-details">
|
|
20
|
+
<section class="tsd-index-section">
|
|
21
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="constructors">Constructors<a href="#constructors" 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></h3>
|
|
22
|
+
<div class="tsd-index-list"><a href="#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|
23
|
+
</div></section>
|
|
24
|
+
<section class="tsd-index-section">
|
|
25
|
+
<h3 class="tsd-index-heading tsd-anchor-link" id="methods">Methods<a href="#methods" 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></h3>
|
|
26
|
+
<div class="tsd-index-list"><a href="#createuserpack" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>User<wbr/>Pack</span></a>
|
|
27
|
+
<a href="#deleteuserpack" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>User<wbr/>Pack</span></a>
|
|
28
|
+
<a href="#enabledpacks" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enabled<wbr/>Packs</span></a>
|
|
29
|
+
<a href="#getpack" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Pack</span></a>
|
|
30
|
+
<a href="#installedpacknames" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>installed<wbr/>Pack<wbr/>Names</span></a>
|
|
31
|
+
<a href="#isvisible" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Visible</span></a>
|
|
32
|
+
<a href="#listpacks" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>list<wbr/>Packs</span></a>
|
|
33
|
+
<a href="#setenabled" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Enabled</span></a>
|
|
34
|
+
</div></section></div></details></section></section>
|
|
35
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
36
|
+
<h2 class="tsd-anchor-link" id="constructors-1">Constructors<a href="#constructors-1" 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></h2></summary>
|
|
37
|
+
<section>
|
|
38
|
+
<section class="tsd-panel tsd-member">
|
|
39
|
+
<h3 class="tsd-anchor-link" id="constructor"><span>constructor</span><a href="#constructor" 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></h3>
|
|
40
|
+
<ul class="tsd-signatures">
|
|
41
|
+
<li class="">
|
|
42
|
+
<div class="tsd-signature tsd-anchor-link" id="constructorpackservice"><span class="tsd-signature-keyword">new</span> <span class="tsd-kind-constructor-signature">PackService</span><span class="tsd-signature-symbol">(</span><br/> <span class="tsd-kind-parameter">userPaths</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">UserPathsService</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">userConfig</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">UserConfigService</span><span class="tsd-signature-symbol">,</span><br/> <span class="tsd-kind-parameter">registeredToolNames</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">,</span><br/><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="" class="tsd-signature-type tsd-kind-class">PackService</a><a href="#constructorpackservice" 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>
|
|
43
|
+
<div class="tsd-description">
|
|
44
|
+
<div class="tsd-parameters">
|
|
45
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
46
|
+
<ul class="tsd-parameter-list">
|
|
47
|
+
<li><span><span class="tsd-kind-parameter">userPaths</span>: <span class="tsd-signature-type">UserPathsService</span></span></li>
|
|
48
|
+
<li><span><span class="tsd-kind-parameter">userConfig</span>: <span class="tsd-signature-type">UserConfigService</span></span></li>
|
|
49
|
+
<li><span><span class="tsd-kind-parameter">registeredToolNames</span>: <span class="tsd-signature-symbol">()</span> <span class="tsd-signature-symbol">=></span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></span>
|
|
50
|
+
<div class="tsd-comment tsd-typography"><p>Native tool names the process has registered, for the missing-tool warning.</p>
|
|
51
|
+
</div></li></ul></div>
|
|
52
|
+
<h4 class="tsd-returns-title">Returns <a href="" class="tsd-signature-type tsd-kind-class">PackService</a></h4><aside class="tsd-sources">
|
|
53
|
+
<ul>
|
|
54
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L51">server/src/packs/pack.service.ts:51</a></li></ul></aside></div></li></ul></section></section></details>
|
|
55
|
+
<details class="tsd-panel-group tsd-member-group tsd-accordion" open><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>
|
|
56
|
+
<h2 class="tsd-anchor-link" id="methods-1">Methods<a href="#methods-1" 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></h2></summary>
|
|
57
|
+
<section>
|
|
58
|
+
<section class="tsd-panel tsd-member">
|
|
59
|
+
<h3 class="tsd-anchor-link" id="createuserpack"><span>create<wbr/>User<wbr/>Pack</span><a href="#createuserpack" 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></h3>
|
|
60
|
+
<ul class="tsd-signatures">
|
|
61
|
+
<li class="">
|
|
62
|
+
<div class="tsd-signature tsd-anchor-link" id="createuserpack-1"><span class="tsd-kind-call-signature">createUserPack</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">title</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a><a href="#createuserpack-1" 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>
|
|
63
|
+
<div class="tsd-description">
|
|
64
|
+
<div class="tsd-comment tsd-typography"><p>Creates an empty pack owned by this user, and enables it.</p>
|
|
65
|
+
<p>Enabling is part of creating because a pack the user just made and cannot see
|
|
66
|
+
is a bug report. Tool code is never part of this: a user pack can grant tools
|
|
67
|
+
the host has registered, but only the host installs the code.</p>
|
|
68
|
+
</div>
|
|
69
|
+
<div class="tsd-parameters">
|
|
70
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
71
|
+
<ul class="tsd-parameter-list">
|
|
72
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
73
|
+
<div class="tsd-comment tsd-typography"><p>The new pack's name</p>
|
|
74
|
+
</div></li>
|
|
75
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">title</span>: <span class="tsd-signature-type">string</span></span>
|
|
76
|
+
<div class="tsd-comment tsd-typography"><p>Optional display name</p>
|
|
77
|
+
</div></li></ul></div>
|
|
78
|
+
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a></h4><p>The created pack</p>
|
|
79
|
+
|
|
80
|
+
<div class="tsd-comment tsd-typography">
|
|
81
|
+
<div class="tsd-tag-throws">
|
|
82
|
+
<h4 class="tsd-anchor-link" id="throws">Throws<a href="#throws" 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></h4><p>If the name is not a legal pack name</p>
|
|
83
|
+
</div>
|
|
84
|
+
<div class="tsd-tag-throws">
|
|
85
|
+
<h4 class="tsd-anchor-link" id="throws-1">Throws<a href="#throws-1" 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></h4><p>If a pack of that name already exists</p>
|
|
86
|
+
</div></div><aside class="tsd-sources">
|
|
87
|
+
<ul>
|
|
88
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L131">server/src/packs/pack.service.ts:131</a></li></ul></aside></div></li></ul></section>
|
|
89
|
+
<section class="tsd-panel tsd-member">
|
|
90
|
+
<h3 class="tsd-anchor-link" id="deleteuserpack"><span>delete<wbr/>User<wbr/>Pack</span><a href="#deleteuserpack" 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></h3>
|
|
91
|
+
<ul class="tsd-signatures">
|
|
92
|
+
<li class="">
|
|
93
|
+
<div class="tsd-signature tsd-anchor-link" id="deleteuserpack-1"><span class="tsd-kind-call-signature">deleteUserPack</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#deleteuserpack-1" 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>
|
|
94
|
+
<div class="tsd-description">
|
|
95
|
+
<div class="tsd-comment tsd-typography"><p>Deletes a pack this user owns.</p>
|
|
96
|
+
<p>Only ever their own directory. Agents and rooms already created from the pack
|
|
97
|
+
are untouched and stay visible — they carry the pack's <em>name</em>, and a name
|
|
98
|
+
with no pack behind it is treated as visible rather than hidden, so deleting
|
|
99
|
+
a pack never makes a user's own work disappear.</p>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="tsd-parameters">
|
|
102
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
103
|
+
<ul class="tsd-parameter-list">
|
|
104
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
105
|
+
<div class="tsd-comment tsd-typography"><p>The pack to delete</p>
|
|
106
|
+
</div></li></ul></div>
|
|
107
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
108
|
+
<div class="tsd-comment tsd-typography">
|
|
109
|
+
<div class="tsd-tag-throws">
|
|
110
|
+
<h4 class="tsd-anchor-link" id="throws-2">Throws<a href="#throws-2" 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></h4><p>If no such pack is installed</p>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tsd-tag-throws">
|
|
113
|
+
<h4 class="tsd-anchor-link" id="throws-3">Throws<a href="#throws-3" 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></h4><p>If the pack was installed by the host</p>
|
|
114
|
+
</div></div><aside class="tsd-sources">
|
|
115
|
+
<ul>
|
|
116
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L167">server/src/packs/pack.service.ts:167</a></li></ul></aside></div></li></ul></section>
|
|
117
|
+
<section class="tsd-panel tsd-member">
|
|
118
|
+
<h3 class="tsd-anchor-link" id="enabledpacks"><span>enabled<wbr/>Packs</span><a href="#enabledpacks" 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></h3>
|
|
119
|
+
<ul class="tsd-signatures">
|
|
120
|
+
<li class="">
|
|
121
|
+
<div class="tsd-signature tsd-anchor-link" id="enabledpacks-1"><span class="tsd-kind-call-signature">enabledPacks</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><a href="#enabledpacks-1" 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>
|
|
122
|
+
<div class="tsd-description">
|
|
123
|
+
<div class="tsd-comment tsd-typography"><p>The packs this user has enabled, as a thunk-friendly snapshot.</p>
|
|
124
|
+
<p>Filtered to packs that are actually installed, so a name left behind by a
|
|
125
|
+
pack the host removed does not make the resolver stat a directory that will
|
|
126
|
+
never exist. The name stays in the config, so reinstalling brings it back.</p>
|
|
127
|
+
</div>
|
|
128
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-keyword">readonly</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><p>Enabled pack names, sorted</p>
|
|
129
|
+
<aside class="tsd-sources">
|
|
130
|
+
<ul>
|
|
131
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L67">server/src/packs/pack.service.ts:67</a></li></ul></aside></div></li></ul></section>
|
|
132
|
+
<section class="tsd-panel tsd-member">
|
|
133
|
+
<h3 class="tsd-anchor-link" id="getpack"><span>get<wbr/>Pack</span><a href="#getpack" 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></h3>
|
|
134
|
+
<ul class="tsd-signatures">
|
|
135
|
+
<li class="">
|
|
136
|
+
<div class="tsd-signature tsd-anchor-link" id="getpack-1"><span class="tsd-kind-call-signature">getPack</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a><a href="#getpack-1" 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>
|
|
137
|
+
<div class="tsd-description">
|
|
138
|
+
<div class="tsd-comment tsd-typography"><p>Reads one pack.</p>
|
|
139
|
+
</div>
|
|
140
|
+
<div class="tsd-parameters">
|
|
141
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
142
|
+
<ul class="tsd-parameter-list">
|
|
143
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
144
|
+
<div class="tsd-comment tsd-typography"><p>The pack name</p>
|
|
145
|
+
</div></li></ul></div>
|
|
146
|
+
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a></h4><p>The pack</p>
|
|
147
|
+
|
|
148
|
+
<div class="tsd-comment tsd-typography">
|
|
149
|
+
<div class="tsd-tag-throws">
|
|
150
|
+
<h4 class="tsd-anchor-link" id="throws-4">Throws<a href="#throws-4" 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></h4><p>If no such pack is installed</p>
|
|
151
|
+
</div></div><aside class="tsd-sources">
|
|
152
|
+
<ul>
|
|
153
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L99">server/src/packs/pack.service.ts:99</a></li></ul></aside></div></li></ul></section>
|
|
154
|
+
<section class="tsd-panel tsd-member">
|
|
155
|
+
<h3 class="tsd-anchor-link" id="installedpacknames"><span>installed<wbr/>Pack<wbr/>Names</span><a href="#installedpacknames" 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></h3>
|
|
156
|
+
<ul class="tsd-signatures">
|
|
157
|
+
<li class="">
|
|
158
|
+
<div class="tsd-signature tsd-anchor-link" id="installedpacknames-1"><span class="tsd-kind-call-signature">installedPackNames</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="#installedpacknames-1" 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>
|
|
159
|
+
<div class="tsd-description">
|
|
160
|
+
<div class="tsd-comment tsd-typography"><p>Every pack name on disk, host and user, deduped.</p>
|
|
161
|
+
</div>
|
|
162
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span></h4><aside class="tsd-sources">
|
|
163
|
+
<ul>
|
|
164
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L73">server/src/packs/pack.service.ts:73</a></li></ul></aside></div></li></ul></section>
|
|
165
|
+
<section class="tsd-panel tsd-member">
|
|
166
|
+
<h3 class="tsd-anchor-link" id="isvisible"><span>is<wbr/>Visible</span><a href="#isvisible" 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></h3>
|
|
167
|
+
<ul class="tsd-signatures">
|
|
168
|
+
<li class="">
|
|
169
|
+
<div class="tsd-signature tsd-anchor-link" id="isvisible-1"><span class="tsd-kind-call-signature">isVisible</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">?:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><a href="#isvisible-1" 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>
|
|
170
|
+
<div class="tsd-description">
|
|
171
|
+
<div class="tsd-comment tsd-typography"><p>Whether something stamped with this pack name should be listed.</p>
|
|
172
|
+
<p>An item with no pack is always visible, and so is one naming a pack that is
|
|
173
|
+
not installed — otherwise deleting a pack would hide the user's own agents
|
|
174
|
+
and rooms rather than just the templates they came from.</p>
|
|
175
|
+
</div>
|
|
176
|
+
<div class="tsd-parameters">
|
|
177
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
178
|
+
<ul class="tsd-parameter-list">
|
|
179
|
+
<li><span><code class="tsd-tag">Optional</code><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
180
|
+
<div class="tsd-comment tsd-typography"><p>The pack stamped on the item, if any</p>
|
|
181
|
+
</div></li></ul></div>
|
|
182
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><p>True when the item should appear in a listing</p>
|
|
183
|
+
<aside class="tsd-sources">
|
|
184
|
+
<ul>
|
|
185
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L188">server/src/packs/pack.service.ts:188</a></li></ul></aside></div></li></ul></section>
|
|
186
|
+
<section class="tsd-panel tsd-member">
|
|
187
|
+
<h3 class="tsd-anchor-link" id="listpacks"><span>list<wbr/>Packs</span><a href="#listpacks" 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></h3>
|
|
188
|
+
<ul class="tsd-signatures">
|
|
189
|
+
<li class="">
|
|
190
|
+
<div class="tsd-signature tsd-anchor-link" id="listpacks-1"><span class="tsd-kind-call-signature">listPacks</span><span class="tsd-signature-symbol">()</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a><span class="tsd-signature-symbol">[]</span><a href="#listpacks-1" 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>
|
|
191
|
+
<div class="tsd-description">
|
|
192
|
+
<div class="tsd-comment tsd-typography"><p>Lists every installed pack with this user's view of it.</p>
|
|
193
|
+
</div>
|
|
194
|
+
<h4 class="tsd-returns-title">Returns <a href="../interfaces/PackView.html" class="tsd-signature-type tsd-kind-interface">PackView</a><span class="tsd-signature-symbol">[]</span></h4><p>The packs, sorted by title</p>
|
|
195
|
+
<aside class="tsd-sources">
|
|
196
|
+
<ul>
|
|
197
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L85">server/src/packs/pack.service.ts:85</a></li></ul></aside></div></li></ul></section>
|
|
198
|
+
<section class="tsd-panel tsd-member">
|
|
199
|
+
<h3 class="tsd-anchor-link" id="setenabled"><span>set<wbr/>Enabled</span><a href="#setenabled" 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></h3>
|
|
200
|
+
<ul class="tsd-signatures">
|
|
201
|
+
<li class="">
|
|
202
|
+
<div class="tsd-signature tsd-anchor-link" id="setenabled-1"><span class="tsd-kind-call-signature">setEnabled</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">packName</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">,</span> <span class="tsd-kind-parameter">enabled</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">void</span><a href="#setenabled-1" 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>
|
|
203
|
+
<div class="tsd-description">
|
|
204
|
+
<div class="tsd-comment tsd-typography"><p>Turns a pack on or off for this user.</p>
|
|
205
|
+
</div>
|
|
206
|
+
<div class="tsd-parameters">
|
|
207
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
208
|
+
<ul class="tsd-parameter-list">
|
|
209
|
+
<li><span><span class="tsd-kind-parameter">packName</span>: <span class="tsd-signature-type">string</span></span>
|
|
210
|
+
<div class="tsd-comment tsd-typography"><p>The pack to change</p>
|
|
211
|
+
</div></li>
|
|
212
|
+
<li><span><span class="tsd-kind-parameter">enabled</span>: <span class="tsd-signature-type">boolean</span></span>
|
|
213
|
+
<div class="tsd-comment tsd-typography"><p>Whether it should be on</p>
|
|
214
|
+
</div></li></ul></div>
|
|
215
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
216
|
+
<div class="tsd-comment tsd-typography">
|
|
217
|
+
<div class="tsd-tag-throws">
|
|
218
|
+
<h4 class="tsd-anchor-link" id="throws-5">Throws<a href="#throws-5" 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></h4><p>If no such pack is installed</p>
|
|
219
|
+
</div></div><aside class="tsd-sources">
|
|
220
|
+
<ul>
|
|
221
|
+
<li>Defined in <a href="https://github.com/WilhiteSoftwareLLC/briyah/blob/4204ae3bd771e05de4d0706df6517e6d8d95f9a8/server/src/packs/pack.service.ts#L113">server/src/packs/pack.service.ts:113</a></li></ul></aside></div></li></ul></section></section></details></div>
|
|
222
|
+
<div class="col-sidebar">
|
|
223
|
+
<div class="page-menu">
|
|
224
|
+
<div class="tsd-navigation settings">
|
|
225
|
+
<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>
|
|
226
|
+
<h3>Settings</h3></summary>
|
|
227
|
+
<div class="tsd-accordion-details">
|
|
228
|
+
<div class="tsd-filter-visibility"><span class="settings-label">Member Visibility</span>
|
|
229
|
+
<ul id="tsd-filter-options">
|
|
230
|
+
<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>
|
|
231
|
+
<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>
|
|
232
|
+
<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>
|
|
233
|
+
<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>
|
|
234
|
+
<details open class="tsd-accordion tsd-page-navigation"><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>
|
|
235
|
+
<h3>On This Page</h3></summary>
|
|
236
|
+
<div class="tsd-accordion-details">
|
|
237
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Constructors"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Constructors</summary>
|
|
238
|
+
<div><a href="#constructor"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Constructor"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a></div></details>
|
|
239
|
+
<details open class="tsd-accordion tsd-page-navigation-section"><summary class="tsd-accordion-summary" data-key="section-Methods"><svg width="20" height="20" viewBox="0 0 24 24" fill="none" aria-hidden="true"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Methods</summary>
|
|
240
|
+
<div><a href="#createuserpack"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>create<wbr/>User<wbr/>Pack</span></a><a href="#deleteuserpack"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>delete<wbr/>User<wbr/>Pack</span></a><a href="#enabledpacks"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>enabled<wbr/>Packs</span></a><a href="#getpack"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Pack</span></a><a href="#installedpacknames"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>installed<wbr/>Pack<wbr/>Names</span></a><a href="#isvisible"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>is<wbr/>Visible</span></a><a href="#listpacks"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>list<wbr/>Packs</span></a><a href="#setenabled"><svg class="tsd-kind-icon" viewBox="0 0 24 24" aria-label="Method"><use href="../assets/icons.svg#icon-2048"></use></svg><span>set<wbr/>Enabled</span></a></div></details></div></details></div>
|
|
241
|
+
<div class="site-menu">
|
|
242
|
+
<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>
|
|
243
|
+
<nav class="tsd-navigation"><a href="../modules.html">Briyah SDK - v2.0.0</a>
|
|
244
|
+
<ul class="tsd-small-nested-navigation" id="tsd-nav-container">
|
|
245
|
+
<li>Loading...</li></ul></nav></div></div></div><footer>
|
|
246
|
+
<p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer>
|
|
247
|
+
<div class="overlay"></div></body></html>
|