@promptbook/markitdown 0.103.0-8 → 0.103.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 (273) hide show
  1. package/README.md +59 -39
  2. package/esm/index.es.js +260 -171
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/typings/books/index.d.ts +0 -81
  5. package/esm/typings/servers.d.ts +9 -7
  6. package/esm/typings/src/_packages/browser.index.d.ts +6 -0
  7. package/esm/typings/src/_packages/cli.index.d.ts +4 -0
  8. package/esm/typings/src/_packages/components.index.d.ts +22 -8
  9. package/esm/typings/src/_packages/core.index.d.ts +58 -18
  10. package/esm/typings/src/_packages/node.index.d.ts +2 -2
  11. package/esm/typings/src/_packages/remote-server.index.d.ts +2 -0
  12. package/esm/typings/src/_packages/types.index.d.ts +70 -8
  13. package/esm/typings/src/_packages/utils.index.d.ts +6 -0
  14. package/esm/typings/src/_packages/wizard.index.d.ts +4 -0
  15. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +20 -5
  16. package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +17 -1
  17. package/esm/typings/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +3 -2
  18. package/esm/typings/src/book-2.0/agent-source/computeAgentHash.d.ts +8 -0
  19. package/esm/typings/src/book-2.0/agent-source/createCommitmentRegex.d.ts +3 -3
  20. package/esm/typings/src/book-2.0/agent-source/createDefaultAgentName.d.ts +8 -0
  21. package/esm/typings/src/book-2.0/agent-source/normalizeAgentName.d.ts +9 -0
  22. package/esm/typings/src/book-2.0/agent-source/padBook.d.ts +18 -0
  23. package/esm/typings/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +1 -1
  24. package/esm/typings/src/book-2.0/agent-source/string_book.d.ts +3 -0
  25. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +6 -1
  26. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +85 -14
  27. package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +18 -0
  28. package/esm/typings/src/book-components/BookEditor/BookEditorMonaco.d.ts +5 -0
  29. package/esm/typings/src/book-components/Chat/AgentChat/AgentChat.d.ts +17 -0
  30. package/esm/typings/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +13 -0
  31. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +16 -0
  32. package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +5 -0
  33. package/esm/typings/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +15 -0
  34. package/esm/typings/src/book-components/Chat/MockedChat/MockedChat.d.ts +5 -0
  35. package/esm/typings/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +1 -1
  36. package/esm/typings/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +1 -0
  37. package/esm/typings/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +4 -0
  38. package/esm/typings/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  39. package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +52 -0
  40. package/esm/typings/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +14 -0
  41. package/esm/typings/src/book-components/Qr/BrandedQrCode.d.ts +18 -0
  42. package/esm/typings/src/book-components/Qr/GenericQrCode.d.ts +10 -0
  43. package/esm/typings/src/book-components/Qr/PromptbookQrCode.d.ts +18 -0
  44. package/esm/typings/src/book-components/Qr/useQrCode.d.ts +15 -0
  45. package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +15 -0
  46. package/esm/typings/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +12 -0
  47. package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +2 -2
  48. package/esm/typings/src/book-components/_common/Tooltip/Tooltip.d.ts +47 -0
  49. package/esm/typings/src/book-components/icons/AboutIcon.d.ts +9 -0
  50. package/esm/typings/src/book-components/icons/CameraIcon.d.ts +11 -0
  51. package/esm/typings/src/book-components/icons/CloseIcon.d.ts +4 -8
  52. package/esm/typings/src/book-components/icons/DownloadIcon.d.ts +9 -0
  53. package/esm/typings/src/book-components/icons/ExitFullscreenIcon.d.ts +7 -0
  54. package/esm/typings/src/book-components/icons/FullscreenIcon.d.ts +7 -0
  55. package/esm/typings/src/book-components/icons/MenuIcon.d.ts +12 -0
  56. package/esm/typings/src/book-components/icons/MicIcon.d.ts +8 -0
  57. package/esm/typings/src/book-components/icons/SendIcon.d.ts +3 -0
  58. package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +2 -1
  59. package/esm/typings/src/cli/cli-commands/about.d.ts +3 -1
  60. package/esm/typings/src/cli/cli-commands/hello.d.ts +2 -1
  61. package/esm/typings/src/cli/cli-commands/list-models.d.ts +2 -1
  62. package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +2 -1
  63. package/esm/typings/src/cli/cli-commands/login.d.ts +2 -1
  64. package/esm/typings/src/cli/cli-commands/make.d.ts +2 -1
  65. package/esm/typings/src/cli/cli-commands/prettify.d.ts +2 -1
  66. package/esm/typings/src/cli/cli-commands/run.d.ts +2 -1
  67. package/esm/typings/src/cli/cli-commands/{start-server.d.ts → start-agents-server.d.ts} +3 -2
  68. package/esm/typings/src/cli/cli-commands/start-pipelines-server.d.ts +15 -0
  69. package/esm/typings/src/cli/cli-commands/test-command.d.ts +2 -1
  70. package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +2 -1
  71. package/esm/typings/src/collection/agent-collection/AgentCollection.d.ts +12 -0
  72. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +75 -0
  73. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +10 -0
  74. package/esm/typings/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +154 -0
  75. package/esm/typings/src/collection/{PipelineCollection.d.ts → pipeline-collection/PipelineCollection.d.ts} +7 -3
  76. package/esm/typings/src/collection/{SimplePipelineCollection.d.ts → pipeline-collection/SimplePipelineCollection.d.ts} +5 -5
  77. package/esm/typings/src/collection/{constructors/createCollectionFromDirectory.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts} +8 -11
  78. package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +13 -0
  79. package/esm/typings/src/collection/{constructors/createCollectionFromPromise.d.ts → pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts} +6 -5
  80. package/esm/typings/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.test.d.ts +1 -0
  81. package/esm/typings/src/collection/{constructors/createCollectionFromUrl.d.ts → pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts} +3 -3
  82. package/esm/typings/src/collection/{constructors/createSubcollection.d.ts → pipeline-collection/constructors/createPipelineSubcollection.d.ts} +3 -3
  83. package/esm/typings/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +13 -0
  84. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +4 -5
  85. package/esm/typings/src/{book-2.0/commitments → commitments}/ACTION/ACTION.d.ts +5 -1
  86. package/esm/typings/src/commitments/CLOSED/CLOSED.d.ts +39 -0
  87. package/esm/typings/src/commitments/CLOSED/CLOSED.test.d.ts +4 -0
  88. package/esm/typings/src/commitments/COMPONENT/COMPONENT.d.ts +28 -0
  89. package/esm/typings/src/{book-2.0/commitments → commitments}/DELETE/DELETE.d.ts +5 -1
  90. package/esm/typings/src/{book-2.0/commitments → commitments}/FORMAT/FORMAT.d.ts +5 -1
  91. package/esm/typings/src/commitments/FROM/FROM.d.ts +34 -0
  92. package/esm/typings/src/{book-2.0/commitments → commitments}/GOAL/GOAL.d.ts +5 -1
  93. package/esm/typings/src/{book-2.0/commitments → commitments}/KNOWLEDGE/KNOWLEDGE.d.ts +5 -5
  94. package/esm/typings/src/commitments/LANGUAGE/LANGUAGE.d.ts +35 -0
  95. package/esm/typings/src/{book-2.0/commitments → commitments}/MEMORY/MEMORY.d.ts +5 -1
  96. package/esm/typings/src/commitments/MESSAGE/AgentMessageCommitmentDefinition.d.ts +32 -0
  97. package/esm/typings/src/commitments/MESSAGE/InitialMessageCommitmentDefinition.d.ts +32 -0
  98. package/esm/typings/src/{book-2.0/commitments → commitments}/MESSAGE/MESSAGE.d.ts +5 -1
  99. package/esm/typings/src/commitments/MESSAGE/UserMessageCommitmentDefinition.d.ts +32 -0
  100. package/esm/typings/src/{book-2.0/commitments → commitments}/META/META.d.ts +5 -1
  101. package/esm/typings/src/commitments/META_COLOR/META_COLOR.d.ts +48 -0
  102. package/esm/typings/src/commitments/META_FONT/META_FONT.d.ts +42 -0
  103. package/esm/typings/src/{book-2.0/commitments → commitments}/META_IMAGE/META_IMAGE.d.ts +5 -1
  104. package/esm/typings/src/{book-2.0/commitments → commitments}/META_LINK/META_LINK.d.ts +5 -1
  105. package/esm/typings/src/{book-2.0/commitments → commitments}/MODEL/MODEL.d.ts +5 -1
  106. package/esm/typings/src/{book-2.0/commitments → commitments}/NOTE/NOTE.d.ts +5 -1
  107. package/esm/typings/src/commitments/OPEN/OPEN.d.ts +35 -0
  108. package/esm/typings/src/{book-2.0/commitments → commitments}/PERSONA/PERSONA.d.ts +5 -1
  109. package/esm/typings/src/{book-2.0/commitments → commitments}/RULE/RULE.d.ts +5 -1
  110. package/esm/typings/src/{book-2.0/commitments → commitments}/SAMPLE/SAMPLE.d.ts +5 -1
  111. package/esm/typings/src/{book-2.0/commitments → commitments}/SCENARIO/SCENARIO.d.ts +5 -1
  112. package/esm/typings/src/{book-2.0/commitments → commitments}/STYLE/STYLE.d.ts +5 -1
  113. package/esm/typings/src/commitments/USE/USE.d.ts +53 -0
  114. package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +42 -0
  115. package/esm/typings/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts +1 -0
  116. package/esm/typings/src/commitments/USE_MCP/USE_MCP.d.ts +37 -0
  117. package/esm/typings/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +38 -0
  118. package/esm/typings/src/{book-2.0/commitments → commitments}/_base/BaseCommitmentDefinition.d.ts +14 -2
  119. package/esm/typings/src/{book-2.0/commitments → commitments}/_base/CommitmentDefinition.d.ts +6 -1
  120. package/esm/typings/src/{book-2.0/commitments → commitments}/_base/NotYetImplementedCommitmentDefinition.d.ts +5 -1
  121. package/esm/typings/src/{book-2.0/commitments → commitments}/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  122. package/esm/typings/src/commitments/index.d.ts +93 -0
  123. package/esm/typings/src/config.d.ts +24 -3
  124. package/esm/typings/src/conversion/validation/validatePipeline.d.ts +2 -0
  125. package/esm/typings/src/errors/0-index.d.ts +6 -0
  126. package/esm/typings/src/errors/DatabaseError.d.ts +12 -0
  127. package/esm/typings/src/errors/NotAllowed.d.ts +9 -0
  128. package/esm/typings/src/errors/WrappedError.d.ts +2 -2
  129. package/esm/typings/src/execution/AvailableModel.d.ts +1 -0
  130. package/esm/typings/src/execution/Executables.d.ts +3 -0
  131. package/esm/typings/src/execution/ExecutionTask.d.ts +12 -3
  132. package/esm/typings/src/execution/ExecutionTools.d.ts +5 -0
  133. package/esm/typings/src/execution/FilesystemTools.d.ts +1 -1
  134. package/esm/typings/src/execution/LlmExecutionTools.d.ts +26 -2
  135. package/esm/typings/src/execution/PromptResult.d.ts +7 -1
  136. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +5 -0
  137. package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +5 -0
  138. package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +5 -0
  139. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +5 -0
  140. package/esm/typings/src/execution/utils/usage-constants.d.ts +4 -124
  141. package/esm/typings/src/execution/utils/validatePromptResult.d.ts +2 -0
  142. package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +2 -1
  143. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +2 -2
  144. package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
  145. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +1 -1
  146. package/esm/typings/src/llm-providers/_common/utils/assertUniqueModels.d.ts +12 -0
  147. package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +1 -0
  148. package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +1 -0
  149. package/esm/typings/src/llm-providers/agent/Agent.d.ts +72 -0
  150. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +26 -4
  151. package/esm/typings/src/llm-providers/agent/AgentOptions.d.ts +19 -0
  152. package/esm/typings/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +17 -0
  153. package/esm/typings/src/llm-providers/agent/RemoteAgent.d.ts +50 -0
  154. package/esm/typings/src/llm-providers/agent/RemoteAgentOptions.d.ts +11 -0
  155. package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +1 -19
  156. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  157. package/esm/typings/src/llm-providers/google/google-models.d.ts +1 -1
  158. package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +4 -0
  159. package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +60 -2
  160. package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +7 -1
  161. package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +13 -1
  162. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +4 -0
  163. package/esm/typings/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +6 -6
  164. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -1
  165. package/esm/typings/src/llm-providers/openai/openai-models.test.d.ts +4 -0
  166. package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +1 -1
  167. package/esm/typings/src/pipeline/validatePipelineString.d.ts +2 -0
  168. package/esm/typings/src/playground/permanent/_boilerplate.d.ts +5 -0
  169. package/esm/typings/src/playground/permanent/agent-with-browser-playground.d.ts +5 -0
  170. package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +1 -0
  171. package/esm/typings/src/remote-server/startAgentServer.d.ts +26 -0
  172. package/esm/typings/src/remote-server/startRemoteServer.d.ts +4 -1
  173. package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +3 -8
  174. package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -12
  175. package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -9
  176. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -12
  177. package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -9
  178. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +1 -12
  179. package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -9
  180. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +1 -12
  181. package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -9
  182. package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +1 -12
  183. package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +1 -9
  184. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -12
  185. package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -9
  186. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +1 -12
  187. package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -9
  188. package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +1 -0
  189. package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +2 -1
  190. package/esm/typings/src/transpilers/_common/BookTranspiler.d.ts +33 -0
  191. package/esm/typings/src/transpilers/_common/BookTranspilerOptions.d.ts +18 -0
  192. package/esm/typings/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +15 -0
  193. package/esm/typings/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +16 -0
  194. package/esm/typings/src/transpilers/formatted-book-in-markdown/register.d.ts +15 -0
  195. package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +16 -0
  196. package/esm/typings/src/transpilers/openai-sdk/OpenAiSdkTranspiler.test.d.ts +1 -0
  197. package/esm/typings/src/transpilers/openai-sdk/playground/playground.d.ts +5 -0
  198. package/esm/typings/src/transpilers/openai-sdk/register.d.ts +15 -0
  199. package/esm/typings/src/types/LlmCall.d.ts +20 -0
  200. package/esm/typings/src/types/ModelRequirements.d.ts +13 -1
  201. package/esm/typings/src/types/ModelVariant.d.ts +1 -1
  202. package/esm/typings/src/types/Prompt.d.ts +13 -1
  203. package/esm/typings/src/types/Updatable.d.ts +19 -0
  204. package/esm/typings/src/types/typeAliases.d.ts +38 -2
  205. package/esm/typings/src/utils/color/$randomColor.d.ts +1 -0
  206. package/esm/typings/src/utils/color/Color.d.ts +16 -1
  207. package/esm/typings/src/utils/color/Color.test.d.ts +1 -0
  208. package/esm/typings/src/utils/color/css-colors.d.ts +1 -0
  209. package/esm/typings/src/utils/color/internal-utils/checkChannelValue.d.ts +0 -3
  210. package/esm/typings/src/utils/color/operators/darken.d.ts +1 -1
  211. package/esm/typings/src/utils/color/operators/grayscale.d.ts +1 -1
  212. package/esm/typings/src/utils/color/operators/lighten.d.ts +1 -1
  213. package/esm/typings/src/utils/color/operators/mixWithColor.d.ts +1 -1
  214. package/esm/typings/src/utils/color/operators/saturate.d.ts +1 -1
  215. package/esm/typings/src/utils/environment/$detectRuntimeEnvironment.d.ts +16 -0
  216. package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +2 -2
  217. package/esm/typings/src/utils/execCommand/$execCommand.d.ts +2 -1
  218. package/esm/typings/src/utils/execCommand/$execCommands.d.ts +2 -1
  219. package/esm/typings/src/utils/files/$induceBookDownload.d.ts +13 -0
  220. package/esm/typings/src/utils/files/$induceFileDownload.d.ts +13 -0
  221. package/esm/typings/src/utils/files/ObjectUrl.d.ts +46 -0
  222. package/esm/typings/src/utils/files/listAllFiles.d.ts +2 -3
  223. package/esm/typings/src/utils/misc/aboutPromptbookInformation.d.ts +27 -0
  224. package/esm/typings/src/utils/misc/computeHash.d.ts +11 -0
  225. package/esm/typings/src/utils/misc/computeHash.test.d.ts +1 -0
  226. package/esm/typings/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +1 -0
  227. package/esm/typings/src/utils/misc/xAboutPromptbookInformation.d.ts +13 -0
  228. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -0
  229. package/esm/typings/src/utils/normalization/normalizeMessageText.d.ts +9 -0
  230. package/esm/typings/src/utils/normalization/normalizeMessageText.test.d.ts +1 -0
  231. package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +3 -0
  232. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -0
  233. package/esm/typings/src/utils/normalization/titleToName.d.ts +2 -0
  234. package/esm/typings/src/utils/organization/$sideEffect.d.ts +2 -2
  235. package/esm/typings/src/utils/organization/$side_effect.d.ts +7 -0
  236. package/esm/typings/src/utils/organization/TODO_USE.d.ts +2 -2
  237. package/esm/typings/src/utils/organization/keepUnused.d.ts +2 -2
  238. package/esm/typings/src/utils/organization/preserve.d.ts +3 -3
  239. package/esm/typings/src/utils/organization/really_any.d.ts +7 -0
  240. package/esm/typings/src/utils/random/$generateBookBoilerplate.d.ts +31 -0
  241. package/esm/typings/src/utils/random/$randomAgentPersona.d.ts +9 -0
  242. package/esm/typings/src/utils/random/$randomFullnameWithColor.d.ts +13 -0
  243. package/esm/typings/src/utils/random/$randomItem.d.ts +9 -0
  244. package/esm/typings/src/utils/random/$randomSeed.d.ts +3 -0
  245. package/esm/typings/src/utils/random/$randomToken.d.ts +2 -0
  246. package/esm/typings/src/utils/random/CzechNamePool.d.ts +7 -0
  247. package/esm/typings/src/utils/random/EnglishNamePool.d.ts +7 -0
  248. package/esm/typings/src/utils/random/NamePool.d.ts +17 -0
  249. package/esm/typings/src/utils/random/getNamePool.d.ts +10 -0
  250. package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +2 -1
  251. package/esm/typings/src/utils/serialization/asSerializable.d.ts +2 -2
  252. package/esm/typings/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -2
  253. package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +2 -0
  254. package/esm/typings/src/version.d.ts +1 -1
  255. package/esm/typings/src/wizard/$getCompiledBook.d.ts +1 -2
  256. package/package.json +8 -8
  257. package/umd/index.umd.js +285 -196
  258. package/umd/index.umd.js.map +1 -1
  259. package/esm/typings/src/book-2.0/commitments/index.d.ts +0 -60
  260. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +0 -5
  261. package/esm/typings/src/book-components/BookEditor/BookEditorWrapper.d.ts +0 -9
  262. package/esm/typings/src/book-components/BookEditor/config.d.ts +0 -10
  263. package/esm/typings/src/book-components/Chat/utils/renderMarkdown.d.ts +0 -21
  264. package/esm/typings/src/collection/collectionToJson.d.ts +0 -13
  265. package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +0 -13
  266. /package/esm/typings/src/{book-components/Chat/utils/renderMarkdown.test.d.ts → book-2.0/agent-source/computeAgentHash.test.d.ts} +0 -0
  267. /package/esm/typings/src/{collection/constructors/createCollectionFromDirectory.test.d.ts → book-2.0/agent-source/normalizeAgentName.test.d.ts} +0 -0
  268. /package/esm/typings/src/{collection/constructors/createCollectionFromJson.test.d.ts → book-components/Chat/AgentChat/AgentChat.test.d.ts} +0 -0
  269. /package/esm/typings/src/collection/{constructors/createCollectionFromPromise.test.d.ts → pipeline-collection/constructors/createPipelineCollectionFromDirectory.test.d.ts} +0 -0
  270. /package/esm/typings/src/{commands/_common/parseCommand.test.d.ts → collection/pipeline-collection/constructors/createPipelineCollectionFromJson.test.d.ts} +0 -0
  271. /package/esm/typings/src/collection/{collectionToJson.test.d.ts → pipeline-collection/pipelineCollectionToJson.test.d.ts} +0 -0
  272. /package/esm/typings/src/{book-2.0/commitments → commitments}/_base/BookCommitment.d.ts +0 -0
  273. /package/esm/typings/src/{book-2.0/commitments → commitments}/_base/ParsedCommitment.d.ts +0 -0
@@ -127,86 +127,5 @@ declare const _default: ({
127
127
  content: string;
128
128
  }[];
129
129
  sourceFile: string;
130
- } | {
131
- title: string;
132
- pipelineUrl: string;
133
- formfactorName: string;
134
- parameters: {
135
- name: string;
136
- isInput: boolean;
137
- isOutput: boolean;
138
- }[];
139
- tasks: {
140
- taskType: string;
141
- name: string;
142
- title: string;
143
- content: string;
144
- resultingParameterName: string;
145
- dependentParameterNames: never[];
146
- }[];
147
- personas: never[];
148
- preparations: {
149
- id: number;
150
- promptbookVersion: string;
151
- usage: {
152
- price: {
153
- value: number;
154
- };
155
- input: {
156
- tokensCount: {
157
- value: number;
158
- };
159
- charactersCount: {
160
- value: number;
161
- };
162
- wordsCount: {
163
- value: number;
164
- };
165
- sentencesCount: {
166
- value: number;
167
- };
168
- linesCount: {
169
- value: number;
170
- };
171
- paragraphsCount: {
172
- value: number;
173
- };
174
- pagesCount: {
175
- value: number;
176
- };
177
- };
178
- output: {
179
- tokensCount: {
180
- value: number;
181
- };
182
- charactersCount: {
183
- value: number;
184
- };
185
- wordsCount: {
186
- value: number;
187
- };
188
- sentencesCount: {
189
- value: number;
190
- };
191
- linesCount: {
192
- value: number;
193
- };
194
- paragraphsCount: {
195
- value: number;
196
- };
197
- pagesCount: {
198
- value: number;
199
- };
200
- };
201
- };
202
- }[];
203
- knowledgeSources: never[];
204
- knowledgePieces: never[];
205
- sources: {
206
- type: string;
207
- path: null;
208
- content: string;
209
- }[];
210
- sourceFile: string;
211
130
  })[];
212
131
  export default _default;
@@ -1,6 +1,4 @@
1
- import type { string_legal_entity } from './src/types/typeAliases';
2
- import type { string_promptbook_server_url } from './src/types/typeAliases';
3
- import type { string_title } from './src/types/typeAliases';
1
+ import type { string_legal_entity, string_promptbook_server_url, string_title } from './src/types/typeAliases';
4
2
  /**
5
3
  * Open Promptbook server usable for public
6
4
  */
@@ -13,10 +11,6 @@ type ServerConfiguration = {
13
11
  * Who is the owner of the server
14
12
  */
15
13
  owner: string_legal_entity;
16
- /**
17
- * Is the server open for public and anonymous usage
18
- */
19
- isAnonymousModeAllowed: boolean;
20
14
  /**
21
15
  * Description of the server, link to registration, user agreement, privacy policy, etc.
22
16
  */
@@ -34,6 +28,14 @@ type ServerConfiguration = {
34
28
  * @public exported from `@promptbook/core`
35
29
  */
36
30
  export declare const REMOTE_SERVER_URLS: Array<ServerConfiguration>;
31
+ /**
32
+ * Remote servers that are auto-federated by the Agents Server.
33
+ *
34
+ * These servers are always added in addition to the `FEDERATED_SERVERS` metadata.
35
+ *
36
+ * @public exported from `@promptbook/core`
37
+ */
38
+ export declare const AUTO_FEDERATED_AGENT_SERVER_URLS: Array<string_promptbook_server_url>;
37
39
  export {};
38
40
  /**
39
41
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -4,9 +4,15 @@ import { $provideScrapersForBrowser } from '../scrapers/_common/register/$provid
4
4
  import { getIndexedDbStorage } from '../storage/local-storage/getIndexedDbStorage';
5
5
  import { getLocalStorage } from '../storage/local-storage/getLocalStorage';
6
6
  import { getSessionStorage } from '../storage/local-storage/getSessionStorage';
7
+ import { $induceBookDownload } from '../utils/files/$induceBookDownload';
8
+ import { $induceFileDownload } from '../utils/files/$induceFileDownload';
9
+ import { ObjectUrl } from '../utils/files/ObjectUrl';
7
10
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
8
11
  export { SimplePromptInterfaceTools };
9
12
  export { $provideScrapersForBrowser };
10
13
  export { getIndexedDbStorage };
11
14
  export { getLocalStorage };
12
15
  export { getSessionStorage };
16
+ export { $induceBookDownload };
17
+ export { $induceFileDownload };
18
+ export { ObjectUrl };
@@ -30,6 +30,8 @@ import { _PdfScraperRegistration } from '../scrapers/pdf/register-constructor';
30
30
  import { _PdfScraperMetadataRegistration } from '../scrapers/pdf/register-metadata';
31
31
  import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
32
32
  import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/register-metadata';
33
+ import { _FormattedBookInMarkdownTranspilerRegistration } from '../transpilers/formatted-book-in-markdown/register';
34
+ import { _OpenAiSdkTranspilerRegistration } from '../transpilers/openai-sdk/register';
33
35
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
34
36
  export { _CLI };
35
37
  export { _AnthropicClaudeMetadataRegistration };
@@ -62,3 +64,5 @@ export { _PdfScraperRegistration };
62
64
  export { _PdfScraperMetadataRegistration };
63
65
  export { _WebsiteScraperRegistration };
64
66
  export { _WebsiteScraperMetadataRegistration };
67
+ export { _FormattedBookInMarkdownTranspilerRegistration };
68
+ export { _OpenAiSdkTranspilerRegistration };
@@ -7,9 +7,11 @@ import type { AvatarProfileProps } from '../book-components/AvatarProfile/Avatar
7
7
  import { AvatarProfile } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfile';
8
8
  import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
9
9
  import { AvatarProfileFromSource } from '../book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource';
10
+ import { DEFAULT_BOOK_EDITOR_HEIGHT } from '../book-components/BookEditor/BookEditor';
10
11
  import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
11
12
  import { BookEditor } from '../book-components/BookEditor/BookEditor';
12
- import { DEFAULT_BOOK_FONT_CLASS } from '../book-components/BookEditor/config';
13
+ import { AgentChat } from '../book-components/Chat/AgentChat/AgentChat';
14
+ import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
13
15
  import { Chat } from '../book-components/Chat/Chat/Chat';
14
16
  import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
15
17
  import { useChatAutoScroll } from '../book-components/Chat/hooks/useChatAutoScroll';
@@ -17,6 +19,7 @@ import type { SendMessageToLlmChatFunction } from '../book-components/Chat/hooks
17
19
  import { useSendMessageToLlmChat } from '../book-components/Chat/hooks/useSendMessageToLlmChat';
18
20
  import { LlmChat } from '../book-components/Chat/LlmChat/LlmChat';
19
21
  import type { LlmChatProps } from '../book-components/Chat/LlmChat/LlmChatProps';
22
+ import { MarkdownContent } from '../book-components/Chat/MarkdownContent/MarkdownContent';
20
23
  import { NORMAL_FLOW } from '../book-components/Chat/MockedChat/constants';
21
24
  import { FAST_FLOW } from '../book-components/Chat/MockedChat/constants';
22
25
  import { SLOW_FLOW } from '../book-components/Chat/MockedChat/constants';
@@ -40,18 +43,22 @@ import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
40
43
  import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
41
44
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
42
45
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
43
- import { renderMarkdown } from '../book-components/Chat/utils/renderMarkdown';
44
- import { isMarkdownContent } from '../book-components/Chat/utils/renderMarkdown';
45
46
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
46
47
  import { AttachmentIcon } from '../book-components/icons/AttachmentIcon';
47
- import { CloseIcon } from '../book-components/icons/CloseIcon';
48
+ import { CameraIcon } from '../book-components/icons/CameraIcon';
49
+ import { MicIcon } from '../book-components/icons/MicIcon';
48
50
  import { PauseIcon } from '../book-components/icons/PauseIcon';
49
51
  import { PlayIcon } from '../book-components/icons/PlayIcon';
50
52
  import { ResetIcon } from '../book-components/icons/ResetIcon';
51
53
  import { SaveIcon } from '../book-components/icons/SaveIcon';
52
54
  import { SendIcon } from '../book-components/icons/SendIcon';
53
55
  import { TemplateIcon } from '../book-components/icons/TemplateIcon';
56
+ import { PromptbookAgentIntegration } from '../book-components/PromptbookAgent/PromptbookAgentIntegration';
57
+ import { BrandedQrCode } from '../book-components/Qr/BrandedQrCode';
58
+ import { GenericQrCode } from '../book-components/Qr/GenericQrCode';
59
+ import { PromptbookQrCode } from '../book-components/Qr/PromptbookQrCode';
54
60
  import { injectCssModuleIntoShadowRoot } from '../utils/misc/injectCssModuleIntoShadowRoot';
61
+ import { AboutPromptbookInformation } from '../utils/misc/xAboutPromptbookInformation';
55
62
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
56
63
  export type { AvatarChipProps };
57
64
  export { AvatarChip };
@@ -61,9 +68,11 @@ export type { AvatarProfileProps };
61
68
  export { AvatarProfile };
62
69
  export type { AvatarProfileFromSourceProps };
63
70
  export { AvatarProfileFromSource };
71
+ export { DEFAULT_BOOK_EDITOR_HEIGHT };
64
72
  export type { BookEditorProps };
65
73
  export { BookEditor };
66
- export { DEFAULT_BOOK_FONT_CLASS };
74
+ export { AgentChat };
75
+ export type { AgentChatProps };
67
76
  export { Chat };
68
77
  export type { ChatProps };
69
78
  export { useChatAutoScroll };
@@ -71,6 +80,7 @@ export type { SendMessageToLlmChatFunction };
71
80
  export { useSendMessageToLlmChat };
72
81
  export { LlmChat };
73
82
  export type { LlmChatProps };
83
+ export { MarkdownContent };
74
84
  export { NORMAL_FLOW };
75
85
  export { FAST_FLOW };
76
86
  export { SLOW_FLOW };
@@ -94,15 +104,19 @@ export type { ChatMessage };
94
104
  export type { ChatParticipant };
95
105
  export type { MessageButton };
96
106
  export { parseMessageButtons };
97
- export { renderMarkdown };
98
- export { isMarkdownContent };
99
107
  export { ArrowIcon };
100
108
  export { AttachmentIcon };
101
- export { CloseIcon };
109
+ export { CameraIcon };
110
+ export { MicIcon };
102
111
  export { PauseIcon };
103
112
  export { PlayIcon };
104
113
  export { ResetIcon };
105
114
  export { SaveIcon };
106
115
  export { SendIcon };
107
116
  export { TemplateIcon };
117
+ export { PromptbookAgentIntegration };
118
+ export { BrandedQrCode };
119
+ export { GenericQrCode };
120
+ export { PromptbookQrCode };
108
121
  export { injectCssModuleIntoShadowRoot };
122
+ export { AboutPromptbookInformation };
@@ -1,29 +1,38 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
+ import { computeAgentHash } from '../book-2.0/agent-source/computeAgentHash';
2
3
  import { createAgentModelRequirements } from '../book-2.0/agent-source/createAgentModelRequirements';
3
4
  import { createAgentModelRequirementsWithCommitments } from '../book-2.0/agent-source/createAgentModelRequirementsWithCommitments';
5
+ import { createDefaultAgentName } from '../book-2.0/agent-source/createDefaultAgentName';
6
+ import { normalizeAgentName } from '../book-2.0/agent-source/normalizeAgentName';
7
+ import { PADDING_LINES } from '../book-2.0/agent-source/padBook';
8
+ import { padBook } from '../book-2.0/agent-source/padBook';
4
9
  import { parseAgentSource } from '../book-2.0/agent-source/parseAgentSource';
5
10
  import { parseParameters } from '../book-2.0/agent-source/parseParameters';
6
11
  import { isValidBook } from '../book-2.0/agent-source/string_book';
7
12
  import { validateBook } from '../book-2.0/agent-source/string_book';
8
13
  import { DEFAULT_BOOK } from '../book-2.0/agent-source/string_book';
9
- import { createEmptyAgentModelRequirements } from '../book-2.0/commitments/_base/createEmptyAgentModelRequirements';
10
- import { createBasicAgentModelRequirements } from '../book-2.0/commitments/_base/createEmptyAgentModelRequirements';
11
- import { NotYetImplementedCommitmentDefinition } from '../book-2.0/commitments/_base/NotYetImplementedCommitmentDefinition';
12
- import { getCommitmentDefinition } from '../book-2.0/commitments/index';
13
- import { getAllCommitmentDefinitions } from '../book-2.0/commitments/index';
14
- import { getAllCommitmentTypes } from '../book-2.0/commitments/index';
15
- import { isCommitmentSupported } from '../book-2.0/commitments/index';
16
14
  import { generatePlaceholderAgentProfileImageUrl } from '../book-2.0/utils/generatePlaceholderAgentProfileImageUrl';
17
- import { collectionToJson } from '../collection/collectionToJson';
18
- import { createCollectionFromJson } from '../collection/constructors/createCollectionFromJson';
19
- import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
20
- import { createCollectionFromUrl } from '../collection/constructors/createCollectionFromUrl';
21
- import { createSubcollection } from '../collection/constructors/createSubcollection';
15
+ import { AgentCollectionInSupabase } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase';
16
+ import { createPipelineCollectionFromJson } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromJson';
17
+ import { createPipelineCollectionFromPromise } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromPromise';
18
+ import { createPipelineCollectionFromUrl } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromUrl';
19
+ import { createPipelineSubcollection } from '../collection/pipeline-collection/constructors/createPipelineSubcollection';
20
+ import { pipelineCollectionToJson } from '../collection/pipeline-collection/pipelineCollectionToJson';
21
+ import { createEmptyAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
22
+ import { createBasicAgentModelRequirements } from '../commitments/_base/createEmptyAgentModelRequirements';
23
+ import { NotYetImplementedCommitmentDefinition } from '../commitments/_base/NotYetImplementedCommitmentDefinition';
24
+ import { getCommitmentDefinition } from '../commitments/index';
25
+ import { getAllCommitmentDefinitions } from '../commitments/index';
26
+ import { getAllCommitmentTypes } from '../commitments/index';
27
+ import { isCommitmentSupported } from '../commitments/index';
28
+ import type { GroupedCommitmentDefinition } from '../commitments/index';
29
+ import { getGroupedCommitmentDefinitions } from '../commitments/index';
22
30
  import { NAME } from '../config';
23
31
  import { ADMIN_EMAIL } from '../config';
24
32
  import { ADMIN_GITHUB_NAME } from '../config';
25
33
  import { CLAIM } from '../config';
26
34
  import { PROMPTBOOK_COLOR } from '../config';
35
+ import { PROMPTBOOK_SYNTAX_COLORS } from '../config';
27
36
  import { PROMPTBOOK_CHAT_COLOR } from '../config';
28
37
  import { USER_CHAT_COLOR } from '../config';
29
38
  import { DEFAULT_BOOK_TITLE } from '../config';
@@ -41,6 +50,7 @@ import { DEFAULT_MAX_EXECUTION_ATTEMPTS } from '../config';
41
50
  import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH } from '../config';
42
51
  import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL } from '../config';
43
52
  import { DEFAULT_BOOKS_DIRNAME } from '../config';
53
+ import { DEFAULT_AGENTS_DIRNAME } from '../config';
44
54
  import { DEFAULT_DOWNLOAD_CACHE_DIRNAME } from '../config';
45
55
  import { DEFAULT_EXECUTION_CACHE_DIRNAME } from '../config';
46
56
  import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config';
@@ -74,11 +84,13 @@ import { PROMPTBOOK_ERRORS } from '../errors/0-index';
74
84
  import { AbstractFormatError } from '../errors/AbstractFormatError';
75
85
  import { AuthenticationError } from '../errors/AuthenticationError';
76
86
  import { CollectionError } from '../errors/CollectionError';
87
+ import { DatabaseError } from '../errors/DatabaseError';
77
88
  import { EnvironmentMismatchError } from '../errors/EnvironmentMismatchError';
78
89
  import { ExpectError } from '../errors/ExpectError';
79
90
  import { KnowledgeScrapeError } from '../errors/KnowledgeScrapeError';
80
91
  import { LimitReachedError } from '../errors/LimitReachedError';
81
92
  import { MissingToolsError } from '../errors/MissingToolsError';
93
+ import { NotAllowed } from '../errors/NotAllowed';
82
94
  import { NotFoundError } from '../errors/NotFoundError';
83
95
  import { NotYetImplementedError } from '../errors/NotYetImplementedError';
84
96
  import { ParseError } from '../errors/ParseError';
@@ -126,10 +138,12 @@ import { limitTotalUsage } from '../llm-providers/_common/utils/count-total-usag
126
138
  import { getSingleLlmExecutionTools } from '../llm-providers/_multiple/getSingleLlmExecutionTools';
127
139
  import { joinLlmExecutionTools } from '../llm-providers/_multiple/joinLlmExecutionTools';
128
140
  import { MultipleLlmExecutionTools } from '../llm-providers/_multiple/MultipleLlmExecutionTools';
141
+ import { Agent } from '../llm-providers/agent/Agent';
129
142
  import { AgentLlmExecutionTools } from '../llm-providers/agent/AgentLlmExecutionTools';
130
143
  import { createAgentLlmExecutionTools } from '../llm-providers/agent/createAgentLlmExecutionTools';
131
144
  import { _AgentMetadata } from '../llm-providers/agent/register-configuration';
132
145
  import { _AgentRegistration } from '../llm-providers/agent/register-constructor';
146
+ import { RemoteAgent } from '../llm-providers/agent/RemoteAgent';
133
147
  import { _AnthropicClaudeMetadataRegistration } from '../llm-providers/anthropic-claude/register-configuration';
134
148
  import { _AzureOpenAiMetadataRegistration } from '../llm-providers/azure-openai/register-configuration';
135
149
  import { _DeepseekMetadataRegistration } from '../llm-providers/deepseek/register-configuration';
@@ -168,19 +182,37 @@ import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/registe
168
182
  import { BlackholeStorage } from '../storage/blackhole/BlackholeStorage';
169
183
  import { MemoryStorage } from '../storage/memory/MemoryStorage';
170
184
  import { PrefixStorage } from '../storage/utils/PrefixStorage';
185
+ import { $bookTranspilersRegister } from '../transpilers/_common/register/$bookTranspilersRegister';
186
+ import { FormattedBookInMarkdownTranspiler } from '../transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler';
187
+ import { OpenAiSdkTranspiler } from '../transpilers/openai-sdk/OpenAiSdkTranspiler';
171
188
  import { MODEL_VARIANTS } from '../types/ModelVariant';
172
189
  import { NonTaskSectionTypes } from '../types/SectionType';
173
190
  import { SectionTypes } from '../types/SectionType';
174
191
  import { TaskTypes } from '../types/TaskType';
192
+ import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
193
+ import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
175
194
  import { REMOTE_SERVER_URLS } from '../../servers';
195
+ import { AUTO_FEDERATED_AGENT_SERVER_URLS } from '../../servers';
176
196
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
197
+ export { computeAgentHash };
177
198
  export { createAgentModelRequirements };
178
199
  export { createAgentModelRequirementsWithCommitments };
200
+ export { createDefaultAgentName };
201
+ export { normalizeAgentName };
202
+ export { PADDING_LINES };
203
+ export { padBook };
179
204
  export { parseAgentSource };
180
205
  export { parseParameters };
181
206
  export { isValidBook };
182
207
  export { validateBook };
183
208
  export { DEFAULT_BOOK };
209
+ export { generatePlaceholderAgentProfileImageUrl };
210
+ export { AgentCollectionInSupabase };
211
+ export { createPipelineCollectionFromJson };
212
+ export { createPipelineCollectionFromPromise };
213
+ export { createPipelineCollectionFromUrl };
214
+ export { createPipelineSubcollection };
215
+ export { pipelineCollectionToJson };
184
216
  export { createEmptyAgentModelRequirements };
185
217
  export { createBasicAgentModelRequirements };
186
218
  export { NotYetImplementedCommitmentDefinition };
@@ -188,17 +220,14 @@ export { getCommitmentDefinition };
188
220
  export { getAllCommitmentDefinitions };
189
221
  export { getAllCommitmentTypes };
190
222
  export { isCommitmentSupported };
191
- export { generatePlaceholderAgentProfileImageUrl };
192
- export { collectionToJson };
193
- export { createCollectionFromJson };
194
- export { createCollectionFromPromise };
195
- export { createCollectionFromUrl };
196
- export { createSubcollection };
223
+ export type { GroupedCommitmentDefinition };
224
+ export { getGroupedCommitmentDefinitions };
197
225
  export { NAME };
198
226
  export { ADMIN_EMAIL };
199
227
  export { ADMIN_GITHUB_NAME };
200
228
  export { CLAIM };
201
229
  export { PROMPTBOOK_COLOR };
230
+ export { PROMPTBOOK_SYNTAX_COLORS };
202
231
  export { PROMPTBOOK_CHAT_COLOR };
203
232
  export { USER_CHAT_COLOR };
204
233
  export { DEFAULT_BOOK_TITLE };
@@ -216,6 +245,7 @@ export { DEFAULT_MAX_EXECUTION_ATTEMPTS };
216
245
  export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH };
217
246
  export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL };
218
247
  export { DEFAULT_BOOKS_DIRNAME };
248
+ export { DEFAULT_AGENTS_DIRNAME };
219
249
  export { DEFAULT_DOWNLOAD_CACHE_DIRNAME };
220
250
  export { DEFAULT_EXECUTION_CACHE_DIRNAME };
221
251
  export { DEFAULT_SCRAPE_CACHE_DIRNAME };
@@ -249,11 +279,13 @@ export { PROMPTBOOK_ERRORS };
249
279
  export { AbstractFormatError };
250
280
  export { AuthenticationError };
251
281
  export { CollectionError };
282
+ export { DatabaseError };
252
283
  export { EnvironmentMismatchError };
253
284
  export { ExpectError };
254
285
  export { KnowledgeScrapeError };
255
286
  export { LimitReachedError };
256
287
  export { MissingToolsError };
288
+ export { NotAllowed };
257
289
  export { NotFoundError };
258
290
  export { NotYetImplementedError };
259
291
  export { ParseError };
@@ -301,10 +333,12 @@ export { limitTotalUsage };
301
333
  export { getSingleLlmExecutionTools };
302
334
  export { joinLlmExecutionTools };
303
335
  export { MultipleLlmExecutionTools };
336
+ export { Agent };
304
337
  export { AgentLlmExecutionTools };
305
338
  export { createAgentLlmExecutionTools };
306
339
  export { _AgentMetadata };
307
340
  export { _AgentRegistration };
341
+ export { RemoteAgent };
308
342
  export { _AnthropicClaudeMetadataRegistration };
309
343
  export { _AzureOpenAiMetadataRegistration };
310
344
  export { _DeepseekMetadataRegistration };
@@ -343,8 +377,14 @@ export { _WebsiteScraperMetadataRegistration };
343
377
  export { BlackholeStorage };
344
378
  export { MemoryStorage };
345
379
  export { PrefixStorage };
380
+ export { $bookTranspilersRegister };
381
+ export { FormattedBookInMarkdownTranspiler };
382
+ export { OpenAiSdkTranspiler };
346
383
  export { MODEL_VARIANTS };
347
384
  export { NonTaskSectionTypes };
348
385
  export { SectionTypes };
349
386
  export { TaskTypes };
387
+ export { aboutPromptbookInformation };
388
+ export { $generateBookBoilerplate };
350
389
  export { REMOTE_SERVER_URLS };
390
+ export { AUTO_FEDERATED_AGENT_SERVER_URLS };
@@ -1,5 +1,5 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
- import { createCollectionFromDirectory } from '../collection/constructors/createCollectionFromDirectory';
2
+ import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
3
3
  import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
4
4
  import { $provideExecutionToolsForNode } from '../execution/utils/$provideExecutionToolsForNode';
5
5
  import { $provideLlmToolsConfigurationFromEnv } from '../llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv';
@@ -11,7 +11,7 @@ import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage
11
11
  import { $execCommand } from '../utils/execCommand/$execCommand';
12
12
  import { $execCommands } from '../utils/execCommand/$execCommands';
13
13
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
14
- export { createCollectionFromDirectory };
14
+ export { createPipelineCollectionFromDirectory };
15
15
  export { $provideExecutablesForNode };
16
16
  export { $provideExecutionToolsForNode };
17
17
  export { $provideLlmToolsConfigurationFromEnv };
@@ -2,11 +2,13 @@ import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
2
  import type { Identification } from '../remote-server/socket-types/_subtypes/Identification';
3
3
  import type { ApplicationModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
4
4
  import type { AnonymousModeIdentification } from '../remote-server/socket-types/_subtypes/Identification';
5
+ import { startAgentServer } from '../remote-server/startAgentServer';
5
6
  import { startRemoteServer } from '../remote-server/startRemoteServer';
6
7
  import type { RemoteServerOptions } from '../remote-server/types/RemoteServerOptions';
7
8
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
8
9
  export type { Identification };
9
10
  export type { ApplicationModeIdentification };
10
11
  export type { AnonymousModeIdentification };
12
+ export { startAgentServer };
11
13
  export { startRemoteServer };
12
14
  export type { RemoteServerOptions };