@promptbook/node 0.112.0-32 → 0.112.0-34

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 (305) hide show
  1. package/esm/index.es.js +33 -69
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/types.index.d.ts +49 -49
  4. package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  5. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
  6. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  7. package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  8. package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
  9. package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  10. package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  11. package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
  12. package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  13. package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  14. package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  15. package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  16. package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  17. package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  18. package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  19. package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  20. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
  21. package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  22. package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  23. package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  24. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  25. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  26. package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  27. package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  28. package/esm/src/cli/$runPromptbookCli.d.ts +1 -3
  29. package/esm/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  30. package/esm/src/cli/cli-commands/about.d.ts +1 -1
  31. package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  32. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  33. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  34. package/esm/src/cli/cli-commands/coder/init.d.ts +2 -4
  35. package/esm/src/cli/cli-commands/coder/run.d.ts +2 -4
  36. package/esm/src/cli/cli-commands/coder/verify.d.ts +2 -4
  37. package/esm/src/cli/cli-commands/coder.d.ts +2 -4
  38. package/esm/src/cli/cli-commands/hello.d.ts +1 -1
  39. package/esm/src/cli/cli-commands/list-models.d.ts +2 -4
  40. package/esm/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  41. package/esm/src/cli/cli-commands/login.d.ts +1 -1
  42. package/esm/src/cli/cli-commands/make.d.ts +1 -1
  43. package/esm/src/cli/cli-commands/prettify.d.ts +1 -1
  44. package/esm/src/cli/cli-commands/run.d.ts +1 -1
  45. package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  46. package/esm/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  47. package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  48. package/esm/src/cli/cli-commands/test-command.d.ts +1 -1
  49. package/esm/src/cli/main.d.ts +2 -4
  50. package/esm/src/cli/promptbookCli.d.ts +1 -1
  51. package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  52. package/esm/src/conversion/archive/loadArchive.d.ts +1 -3
  53. package/esm/src/conversion/archive/saveArchive.d.ts +1 -1
  54. package/esm/src/conversion/validation/_importPipeline.d.ts +2 -4
  55. package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  56. package/esm/src/executables/$provideExecutablesForNode.d.ts +1 -1
  57. package/esm/src/executables/apps/locateLibreoffice.d.ts +2 -4
  58. package/esm/src/executables/apps/locatePandoc.d.ts +2 -4
  59. package/esm/src/executables/locateApp.d.ts +2 -4
  60. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  61. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  62. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  63. package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  64. package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  65. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  66. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  67. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  68. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  69. package/esm/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  70. package/esm/src/llm-providers/agent/playground/playground.d.ts +1 -1
  71. package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  72. package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  73. package/esm/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  74. package/esm/src/llm-providers/openai/playground/playground.d.ts +2 -4
  75. package/esm/src/llm-providers/remote/playground/playground.d.ts +1 -3
  76. package/esm/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  77. package/esm/src/playground/permanent/_boilerplate.d.ts +1 -3
  78. package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  79. package/esm/src/playground/permanent/error-handling-playground.d.ts +1 -3
  80. package/esm/src/playground/playground.d.ts +2 -4
  81. package/esm/src/remote-server/startAgentServer.d.ts +1 -3
  82. package/esm/src/remote-server/startRemoteServer.d.ts +1 -2
  83. package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  84. package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  85. package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  86. package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  87. package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  88. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  89. package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -1
  90. package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  91. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  92. package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  93. package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  94. package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  95. package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  96. package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  97. package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  98. package/esm/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  99. package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  100. package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  101. package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  102. package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  103. package/esm/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  104. package/esm/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  105. package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  106. package/esm/src/types/InputParameters_private.d.ts +11 -0
  107. package/esm/src/types/Parameters_private.d.ts +16 -0
  108. package/esm/src/types/ReservedParameters_private.d.ts +10 -0
  109. package/esm/src/types/number_bytes.d.ts +21 -0
  110. package/esm/src/types/number_id.d.ts +13 -0
  111. package/esm/src/types/number_likeness.d.ts +8 -0
  112. package/esm/src/types/number_milliseconds.d.ts +33 -0
  113. package/esm/src/types/number_percent.d.ts +18 -0
  114. package/esm/src/types/number_positive.d.ts +16 -0
  115. package/esm/src/types/number_usd.d.ts +6 -106
  116. package/esm/src/types/string_agent_hash_private.d.ts +9 -0
  117. package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
  118. package/esm/src/types/string_agent_name_private.d.ts +9 -0
  119. package/esm/src/types/string_agent_permanent_id_private.d.ts +10 -0
  120. package/esm/src/types/string_base64_private.d.ts +17 -0
  121. package/esm/src/types/string_business_category_name_private.d.ts +6 -0
  122. package/esm/src/types/string_char_private.d.ts +8 -0
  123. package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
  124. package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
  125. package/esm/src/types/string_email_private.d.ts +16 -0
  126. package/esm/src/types/string_host_private.d.ts +55 -0
  127. package/esm/src/types/string_mime_type_private.d.ts +17 -0
  128. package/esm/src/types/string_model_description_private.d.ts +8 -0
  129. package/esm/src/types/string_model_name_private.d.ts +8 -0
  130. package/esm/src/types/string_name_private.d.ts +9 -0
  131. package/esm/src/types/string_page_private.d.ts +9 -0
  132. package/esm/src/types/string_parameter_name.d.ts +74 -31
  133. package/esm/src/types/string_parameter_value_private.d.ts +9 -0
  134. package/esm/src/types/string_persona_description_private.d.ts +8 -0
  135. package/esm/src/types/string_prompt_image_private.d.ts +8 -0
  136. package/esm/src/types/string_prompt_private.d.ts +8 -0
  137. package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  138. package/esm/src/types/string_system_message_private.d.ts +9 -0
  139. package/esm/src/types/string_template_private.d.ts +8 -0
  140. package/esm/src/types/string_text_prompt_private.d.ts +9 -0
  141. package/esm/src/types/string_title_private.d.ts +9 -0
  142. package/esm/src/types/string_url.d.ts +50 -46
  143. package/esm/src/types/string_url_private.d.ts +88 -0
  144. package/esm/src/types/typeAliases.d.ts +7 -1
  145. package/esm/src/utils/execCommand/$execCommand.d.ts +1 -3
  146. package/esm/src/utils/execCommand/$execCommands.d.ts +1 -3
  147. package/esm/src/utils/files/$induceBookDownload.d.ts +1 -3
  148. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -3
  149. package/esm/src/utils/files/ObjectUrl.d.ts +1 -3
  150. package/esm/src/version.d.ts +1 -1
  151. package/esm/src/wizard/$getCompiledBook.d.ts +2 -4
  152. package/esm/src/wizard/wizard.d.ts +2 -4
  153. package/package.json +2 -2
  154. package/umd/index.umd.js +33 -69
  155. package/umd/index.umd.js.map +1 -1
  156. package/umd/src/_packages/types.index.d.ts +49 -49
  157. package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  158. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
  159. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  160. package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  161. package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
  162. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  163. package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  164. package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
  165. package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  166. package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  167. package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  168. package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  169. package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  170. package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  171. package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  172. package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  173. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
  174. package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  175. package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  176. package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  177. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  178. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  179. package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  180. package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  181. package/umd/src/cli/$runPromptbookCli.d.ts +1 -3
  182. package/umd/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  183. package/umd/src/cli/cli-commands/about.d.ts +1 -1
  184. package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  185. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  186. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  187. package/umd/src/cli/cli-commands/coder/init.d.ts +2 -4
  188. package/umd/src/cli/cli-commands/coder/run.d.ts +2 -4
  189. package/umd/src/cli/cli-commands/coder/verify.d.ts +2 -4
  190. package/umd/src/cli/cli-commands/coder.d.ts +2 -4
  191. package/umd/src/cli/cli-commands/hello.d.ts +1 -1
  192. package/umd/src/cli/cli-commands/list-models.d.ts +2 -4
  193. package/umd/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  194. package/umd/src/cli/cli-commands/login.d.ts +1 -1
  195. package/umd/src/cli/cli-commands/make.d.ts +1 -1
  196. package/umd/src/cli/cli-commands/prettify.d.ts +1 -1
  197. package/umd/src/cli/cli-commands/run.d.ts +1 -1
  198. package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  199. package/umd/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  200. package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  201. package/umd/src/cli/cli-commands/test-command.d.ts +1 -1
  202. package/umd/src/cli/main.d.ts +2 -4
  203. package/umd/src/cli/promptbookCli.d.ts +1 -1
  204. package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  205. package/umd/src/conversion/archive/loadArchive.d.ts +1 -3
  206. package/umd/src/conversion/archive/saveArchive.d.ts +1 -1
  207. package/umd/src/conversion/validation/_importPipeline.d.ts +2 -4
  208. package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  209. package/umd/src/executables/$provideExecutablesForNode.d.ts +1 -1
  210. package/umd/src/executables/apps/locateLibreoffice.d.ts +2 -4
  211. package/umd/src/executables/apps/locatePandoc.d.ts +2 -4
  212. package/umd/src/executables/locateApp.d.ts +2 -4
  213. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  214. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  215. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  216. package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  217. package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  218. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  219. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  220. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  221. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  222. package/umd/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  223. package/umd/src/llm-providers/agent/playground/playground.d.ts +1 -1
  224. package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  225. package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  226. package/umd/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  227. package/umd/src/llm-providers/openai/playground/playground.d.ts +2 -4
  228. package/umd/src/llm-providers/remote/playground/playground.d.ts +1 -3
  229. package/umd/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  230. package/umd/src/playground/permanent/_boilerplate.d.ts +1 -3
  231. package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  232. package/umd/src/playground/permanent/error-handling-playground.d.ts +1 -3
  233. package/umd/src/playground/playground.d.ts +2 -4
  234. package/umd/src/remote-server/startAgentServer.d.ts +1 -3
  235. package/umd/src/remote-server/startRemoteServer.d.ts +1 -2
  236. package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  237. package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  238. package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  239. package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  240. package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  241. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  242. package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -1
  243. package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  244. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  245. package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  246. package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  247. package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  248. package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  249. package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  250. package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  251. package/umd/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  252. package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  253. package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  254. package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  255. package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  256. package/umd/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  257. package/umd/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  258. package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  259. package/umd/src/types/InputParameters_private.d.ts +11 -0
  260. package/umd/src/types/Parameters_private.d.ts +16 -0
  261. package/umd/src/types/ReservedParameters_private.d.ts +10 -0
  262. package/umd/src/types/number_bytes.d.ts +21 -0
  263. package/umd/src/types/number_id.d.ts +13 -0
  264. package/umd/src/types/number_likeness.d.ts +8 -0
  265. package/umd/src/types/number_milliseconds.d.ts +33 -0
  266. package/umd/src/types/number_percent.d.ts +18 -0
  267. package/umd/src/types/number_positive.d.ts +16 -0
  268. package/umd/src/types/number_usd.d.ts +6 -106
  269. package/umd/src/types/string_agent_hash_private.d.ts +9 -0
  270. package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
  271. package/umd/src/types/string_agent_name_private.d.ts +9 -0
  272. package/umd/src/types/string_agent_permanent_id_private.d.ts +10 -0
  273. package/umd/src/types/string_base64_private.d.ts +17 -0
  274. package/umd/src/types/string_business_category_name_private.d.ts +6 -0
  275. package/umd/src/types/string_char_private.d.ts +8 -0
  276. package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
  277. package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
  278. package/umd/src/types/string_email_private.d.ts +16 -0
  279. package/umd/src/types/string_host_private.d.ts +55 -0
  280. package/umd/src/types/string_mime_type_private.d.ts +17 -0
  281. package/umd/src/types/string_model_description_private.d.ts +8 -0
  282. package/umd/src/types/string_model_name_private.d.ts +8 -0
  283. package/umd/src/types/string_name_private.d.ts +9 -0
  284. package/umd/src/types/string_page_private.d.ts +9 -0
  285. package/umd/src/types/string_parameter_name.d.ts +74 -31
  286. package/umd/src/types/string_parameter_value_private.d.ts +9 -0
  287. package/umd/src/types/string_persona_description_private.d.ts +8 -0
  288. package/umd/src/types/string_prompt_image_private.d.ts +8 -0
  289. package/umd/src/types/string_prompt_private.d.ts +8 -0
  290. package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  291. package/umd/src/types/string_system_message_private.d.ts +9 -0
  292. package/umd/src/types/string_template_private.d.ts +8 -0
  293. package/umd/src/types/string_text_prompt_private.d.ts +9 -0
  294. package/umd/src/types/string_title_private.d.ts +9 -0
  295. package/umd/src/types/string_url.d.ts +50 -46
  296. package/umd/src/types/string_url_private.d.ts +88 -0
  297. package/umd/src/types/typeAliases.d.ts +7 -1
  298. package/umd/src/utils/execCommand/$execCommand.d.ts +1 -3
  299. package/umd/src/utils/execCommand/$execCommands.d.ts +1 -3
  300. package/umd/src/utils/files/$induceBookDownload.d.ts +1 -3
  301. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -3
  302. package/umd/src/utils/files/ObjectUrl.d.ts +1 -3
  303. package/umd/src/version.d.ts +1 -1
  304. package/umd/src/wizard/$getCompiledBook.d.ts +2 -4
  305. package/umd/src/wizard/wizard.d.ts +2 -4
@@ -8,6 +8,4 @@ import type { $side_effect } from '../organization/$side_effect';
8
8
  * @public exported from `@promptbook/browser`
9
9
  */
10
10
  export declare function $induceFileDownload(fileOrBlobOrUrl: File | Blob | URL | string_url): Promise<$side_effect>;
11
- /**
12
- * Note: [🔵] Code in this file should never be published outside of `@promptbook/browser`
13
- */
11
+ /** Note: [🔵] Code for browser file helper [$induceFileDownload](src/utils/files/$induceFileDownload.ts) should never be published outside of `@promptbook/browser` */
@@ -41,6 +41,4 @@ export declare class ObjectUrl extends Registration implements IDestroyable {
41
41
  */
42
42
  get url(): URL;
43
43
  }
44
- /**
45
- * Note: [🔵] Code in this file should never be published outside of `@promptbook/browser`
46
- */
44
+ /** Note: [🔵] Code for browser file helper [ObjectUrl](src/utils/files/ObjectUrl.ts) should never be published outside of `@promptbook/browser` */
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.112.0-31`).
18
+ * It follows semantic versioning (e.g., `0.112.0-33`).
19
19
  *
20
20
  * @generated
21
21
  */
@@ -9,7 +9,5 @@ import type { string_filename, string_pipeline_url } from '../types/typeAliases'
9
9
  * @private usable through `ptbk run` and `@promptbook/wizard`
10
10
  */
11
11
  export declare function $getCompiledBook(tools: Required<Pick<ExecutionTools, 'fs' | 'fetch'>>, pipelineSource: string_filename | string_pipeline_url | PipelineString, options?: PrepareAndScrapeOptions): Promise<PipelineJson>;
12
- /**
13
- * TODO: Write unit test
14
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
15
- */
12
+ /** Note: [🟢] Code for Node wizard helper [$getCompiledBook](src/wizard/$getCompiledBook.ts) should never be published into packages that could be imported into browser environment */
13
+ /** TODO: Write unit test */
@@ -69,7 +69,5 @@ declare class Wizard {
69
69
  */
70
70
  export declare const wizard: Wizard;
71
71
  export {};
72
- /**
73
- * TODO: [🧠] Maybe some way how to handle the progress and streaming?
74
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
75
- */
72
+ /** Note: [🟢] Code for Node wizard helper [wizard](src/wizard/wizard.ts) should never be published into packages that could be imported into browser environment */
73
+ /** TODO: [🧠] Maybe some way how to handle the progress and streaming? */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/node",
3
- "version": "0.112.0-32",
3
+ "version": "0.112.0-34",
4
4
  "description": "Promptbook: Turn your company's scattered knowledge into AI ready books",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -96,7 +96,7 @@
96
96
  "module": "./esm/index.es.js",
97
97
  "typings": "./esm/typings/src/_packages/node.index.d.ts",
98
98
  "peerDependencies": {
99
- "@promptbook/core": "0.112.0-32"
99
+ "@promptbook/core": "0.112.0-34"
100
100
  },
101
101
  "dependencies": {
102
102
  "@mozilla/readability": "0.6.0",
package/umd/index.umd.js CHANGED
@@ -48,7 +48,7 @@
48
48
  * @generated
49
49
  * @see https://github.com/webgptorg/promptbook
50
50
  */
51
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-32';
51
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-34';
52
52
  /**
53
53
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
54
54
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2178,9 +2178,7 @@
2178
2178
  }
2179
2179
  return collectionJson;
2180
2180
  }
2181
- /**
2182
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
2183
- */
2181
+ /** Note: [🟢] Code for Node archive helper [loadArchive](src/conversion/archive/loadArchive.ts) should never be published into packages that could be imported into browser environment */
2184
2182
 
2185
2183
  var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.book",formfactorName:"GENERIC",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],tasks:[{taskType:"PROMPT_TASK",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",resultingParameterName:"knowledgePieces",dependentParameterNames:["knowledgeContent"]}],personas:[],preparations:[],knowledgeSources:[],knowledgePieces:[],sources:[{type:"BOOK",path:null,content:"# Prepare Knowledge from Markdown\n\n- PIPELINE URL `https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.book`\n- INPUT PARAMETER `{knowledgeContent}` Markdown document content\n- OUTPUT PARAMETER `{knowledgePieces}` The knowledge JSON object\n\n## Knowledge\n\n<!-- TODO: [🍆] -FORMAT JSON -->\n\n```markdown\nYou are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}\n```\n\n`-> {knowledgePieces}`\n"}],sourceFile:"./books/prepare-knowledge-from-markdown.book"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.book",formfactorName:"GENERIC",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],tasks:[{taskType:"PROMPT_TASK",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",resultingParameterName:"keywords",dependentParameterNames:["knowledgePieceContent"]}],personas:[],preparations:[],knowledgeSources:[],knowledgePieces:[],sources:[{type:"BOOK",path:null,content:"# Prepare Keywords\n\n- PIPELINE URL `https://promptbook.studio/promptbook/prepare-knowledge-keywords.book`\n- INPUT PARAMETER `{knowledgePieceContent}` The content\n- OUTPUT PARAMETER `{keywords}` Keywords separated by comma\n\n## Knowledge\n\n<!-- TODO: [🍆] -FORMAT JSON -->\n\n```markdown\nYou are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}\n```\n\n`-> {keywords}`\n"}],sourceFile:"./books/prepare-knowledge-keywords.book"},{title:"Prepare Knowledge-piece Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.book",formfactorName:"GENERIC",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],tasks:[{taskType:"PROMPT_TASK",name:"knowledge",title:"Knowledge",content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",resultingParameterName:"title",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"]}],personas:[],preparations:[],knowledgeSources:[],knowledgePieces:[],sources:[{type:"BOOK",path:null,content:"# Prepare Knowledge-piece Title\n\n- PIPELINE URL `https://promptbook.studio/promptbook/prepare-knowledge-title.book`\n- INPUT PARAMETER `{knowledgePieceContent}` The content\n- OUTPUT PARAMETER `{title}` The title of the document\n\n## Knowledge\n\n- EXPECT MIN 1 WORD\n- EXPECT MAX 8 WORDS\n\n```markdown\nYou are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}\n```\n\n`-> {title}`\n"}],sourceFile:"./books/prepare-knowledge-title.book"},{title:"Prepare Persona",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.book",formfactorName:"GENERIC",parameters:[{name:"availableModels",description:"List of available model names together with their descriptions as JSON",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelsRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],tasks:[{taskType:"PROMPT_TASK",name:"make-model-requirements",title:"Make modelRequirements",content:"You are an experienced AI engineer, you need to find the best models for virtual assistants:\n\n## Example\n\n```json\n[\n {\n \"modelName\": \"gpt-4o\",\n \"systemMessage\": \"You are experienced AI engineer and helpful assistant.\",\n \"temperature\": 0.7\n },\n {\n \"modelName\": \"claude-3-5-sonnet\",\n \"systemMessage\": \"You are a friendly and knowledgeable chatbot.\",\n \"temperature\": 0.5\n }\n]\n```\n\n## Instructions\n\n- Your output format is JSON array\n- Sort best-fitting models first\n- Omit any models that are not suitable\n- Write just the JSON, no other text should be present\n- Array contain items with following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nHere are the available models:\n\n```json\n{availableModels}\n```\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",resultingParameterName:"modelsRequirements",format:"JSON",dependentParameterNames:["availableModels","personaDescription"]}],personas:[],preparations:[],knowledgeSources:[],knowledgePieces:[],sources:[{type:"BOOK",path:null,content:"# Prepare Persona\n\n- PIPELINE URL `https://promptbook.studio/promptbook/prepare-persona.book`\n- INPUT PARAMETER `{availableModels}` List of available model names together with their descriptions as JSON\n- INPUT PARAMETER `{personaDescription}` Description of the persona\n- OUTPUT PARAMETER `{modelsRequirements}` Specific requirements for the model\n\n## Make modelRequirements\n\n- FORMAT JSON\n\n```markdown\nYou are an experienced AI engineer, you need to find the best models for virtual assistants:\n\n## Example\n\n\\`\\`\\`json\n[\n {\n \"modelName\": \"gpt-4o\",\n \"systemMessage\": \"You are experienced AI engineer and helpful assistant.\",\n \"temperature\": 0.7\n },\n {\n \"modelName\": \"claude-3-5-sonnet\",\n \"systemMessage\": \"You are a friendly and knowledgeable chatbot.\",\n \"temperature\": 0.5\n }\n]\n\\`\\`\\`\n\n## Instructions\n\n- Your output format is JSON array\n- Sort best-fitting models first\n- Omit any models that are not suitable\n- Write just the JSON, no other text should be present\n- Array contain items with following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nHere are the available models:\n\n\\`\\`\\`json\n{availableModels}\n\\`\\`\\`\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}\n```\n\n`-> {modelsRequirements}`\n"}],sourceFile:"./books/prepare-persona.book"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-title.book",formfactorName:"GENERIC",parameters:[{name:"book",description:"The book to prepare the title for",isInput:true,isOutput:false},{name:"title",description:"Best title for the book",isInput:false,isOutput:true}],tasks:[{taskType:"PROMPT_TASK",name:"make-title",title:"Make title",content:"Make best title for given text which describes the workflow:\n\n## Rules\n\n- Write just title, nothing else\n- Title should be concise and clear - Write maximum ideally 2 words, maximum 5 words\n- Title starts with emoticon\n- Title should not mention the input and output of the workflow but the main purpose of the workflow\n _For example, not \"✍ Convert Knowledge-piece to title\" but \"✍ Title\"_\n\n## The workflow\n\n> {book}",resultingParameterName:"title",expectations:{words:{min:1,max:8},lines:{min:1,max:1}},dependentParameterNames:["book"]}],personas:[],preparations:[],knowledgeSources:[],knowledgePieces:[],sources:[{type:"BOOK",path:null,content:"# Prepare Title\n\n- PIPELINE URL `https://promptbook.studio/promptbook/prepare-title.book`\n- INPUT PARAMETER `{book}` The book to prepare the title for\n- OUTPUT PARAMETER `{title}` Best title for the book\n\n## Make title\n\n- EXPECT MIN 1 Word\n- EXPECT MAX 8 Words\n- EXPECT EXACTLY 1 Line\n\n```markdown\nMake best title for given text which describes the workflow:\n\n## Rules\n\n- Write just title, nothing else\n- Title should be concise and clear - Write maximum ideally 2 words, maximum 5 words\n- Title starts with emoticon\n- Title should not mention the input and output of the workflow but the main purpose of the workflow\n _For example, not \"✍ Convert Knowledge-piece to title\" but \"✍ Title\"_\n\n## The workflow\n\n> {book}\n```\n\n`-> {title}`\n"}],sourceFile:"./books/prepare-title.book"}];
2186
2184
 
@@ -13286,10 +13284,8 @@
13286
13284
  watch: promises.watch,
13287
13285
  };
13288
13286
  }
13289
- /**
13290
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
13291
- * TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
13292
- */
13287
+ /** Note: [🟢] Code for Node scraper registration helper [$provideFilesystemForNode](src/scrapers/_common/register/$provideFilesystemForNode.ts) should never be published into packages that could be imported into browser environment */
13288
+ /** TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming */
13293
13289
 
13294
13290
  /**
13295
13291
  * Retrieves an intermediate source for a scraper based on the knowledge source.
@@ -13353,12 +13349,12 @@
13353
13349
  };
13354
13350
  return fileHandler;
13355
13351
  }
13352
+ /** Note: [🟢] Code for Node scraper helper [getScraperIntermediateSource](src/scrapers/_common/utils/getScraperIntermediateSource.ts) should never be published into packages that could be imported into browser environment */
13356
13353
  /**
13357
13354
  * Note: Not using `FileCacheStorage` for two reasons:
13358
13355
  * 1) Need to store more than serialized JSONs
13359
13356
  * 2) Need to switch between a `rootDirname` and `cacheDirname` <- TODO: [😡]
13360
13357
  * TODO: [🐱‍🐉][🧠] Make some smart crop
13361
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
13362
13358
  */
13363
13359
 
13364
13360
  /**
@@ -13690,11 +13686,11 @@
13690
13686
  return knowledge;
13691
13687
  }
13692
13688
  }
13689
+ /** Note: [🟢] Code for Node scraper implementation [WebsiteScraper](src/scrapers/website/WebsiteScraper.ts) should never be published into packages that could be imported into browser environment */
13693
13690
  /**
13694
13691
  * TODO: [👣] Scraped website in .md can act as cache item - there is no need to run conversion each time
13695
13692
  * TODO: [🪂] Do it in parallel 11:11
13696
13693
  * Note: No need to aggregate usage here, it is done by intercepting the llmTools
13697
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
13698
13694
  */
13699
13695
 
13700
13696
  /**
@@ -13817,9 +13813,7 @@
13817
13813
  `);
13818
13814
  }
13819
13815
  }
13820
- /**
13821
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
13822
- */
13816
+ /** Note: [🟢] Code for Node browser-fetch helper [fetchUrlContent](src/commitments/USE_BROWSER/fetchUrlContent.ts) should never be published into packages that could be imported into browser environment */
13823
13817
 
13824
13818
  /**
13825
13819
  * Cached implementation of `run_browser` when it can be resolved.
@@ -25426,9 +25420,7 @@
25426
25420
  }
25427
25421
  });
25428
25422
  }
25429
- /**
25430
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25431
- */
25423
+ /** Note: [🟢] Code for Node command-execution helper [$execCommand](src/utils/execCommand/$execCommand.ts) should never be published into packages that could be imported into browser environment */
25432
25424
 
25433
25425
  /**
25434
25426
  * Attempts to locate the specified application on a Linux system using the 'which' command.
@@ -25446,10 +25438,8 @@
25446
25438
  return null;
25447
25439
  }
25448
25440
  }
25449
- /**
25450
- * TODO: [🧠][♿] Maybe export through `@promptbook/node`
25451
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25452
- */
25441
+ /** Note: [🟢] Code for Node executable locator [locateAppOnLinux](src/executables/platforms/locateAppOnLinux.ts) should never be published into packages that could be imported into browser environment */
25442
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
25453
25443
 
25454
25444
  /**
25455
25445
  * Checks if the file is executable
@@ -25502,10 +25492,8 @@
25502
25492
  return null;
25503
25493
  }
25504
25494
  }
25505
- /**
25506
- * TODO: [🧠][♿] Maybe export through `@promptbook/node`
25507
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25508
- */
25495
+ /** Note: [🟢] Code for Node executable locator [locateAppOnMacOs](src/executables/platforms/locateAppOnMacOs.ts) should never be published into packages that could be imported into browser environment */
25496
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
25509
25497
 
25510
25498
  /**
25511
25499
  * Attempts to locate the specified application on a Windows system by searching common installation directories.
@@ -25534,10 +25522,8 @@
25534
25522
  return null;
25535
25523
  }
25536
25524
  }
25537
- /**
25538
- * TODO: [🧠][♿] Maybe export through `@promptbook/node`
25539
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25540
- */
25525
+ /** Note: [🟢] Code for Node executable locator [locateAppOnWindows](src/executables/platforms/locateAppOnWindows.ts) should never be published into packages that could be imported into browser environment */
25526
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
25541
25527
 
25542
25528
  /**
25543
25529
  * Locates an application on the system
@@ -25574,10 +25560,8 @@
25574
25560
  }
25575
25561
  }
25576
25562
  }
25577
- /**
25578
- * TODO: [🧠][♿] Maybe export through `@promptbook/node`
25579
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25580
- */
25563
+ /** Note: [🟢] Code for Node executable locator [locateApp](src/executables/locateApp.ts) should never be published into packages that could be imported into browser environment */
25564
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
25581
25565
 
25582
25566
  /**
25583
25567
  * Locates the LibreOffice executable on the current system by searching platform-specific paths.
@@ -25593,10 +25577,8 @@
25593
25577
  macOsName: 'LibreOffice',
25594
25578
  });
25595
25579
  }
25596
- /**
25597
- * TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/legacy-documents`
25598
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25599
- */
25580
+ /** Note: [🟢] Code for Node executable locator [locateLibreoffice](src/executables/apps/locateLibreoffice.ts) should never be published into packages that could be imported into browser environment */
25581
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/legacy-documents` */
25600
25582
 
25601
25583
  /**
25602
25584
  * Locates the Pandoc executable on the current system by searching platform-specific paths.
@@ -25612,10 +25594,8 @@
25612
25594
  macOsName: 'Pandoc',
25613
25595
  });
25614
25596
  }
25615
- /**
25616
- * TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/documents`
25617
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25618
- */
25597
+ /** Note: [🟢] Code for Node executable locator [locatePandoc](src/executables/apps/locatePandoc.ts) should never be published into packages that could be imported into browser environment */
25598
+ /** TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/documents` */
25619
25599
 
25620
25600
  /**
25621
25601
  * Provides paths to required executables (i.e. as Pandoc and LibreOffice) for Node.js environments.
@@ -25632,9 +25612,9 @@
25632
25612
  // <- TODO: [🧠] `null` vs `undefined`
25633
25613
  };
25634
25614
  }
25615
+ /** Note: [🟢] Code for Node executable locator [$provideExecutablesForNode](src/executables/$provideExecutablesForNode.ts) should never be published into packages that could be imported into browser environment */
25635
25616
  /**
25636
25617
  * TODO: [🧠] Allow to override the executables without need to call `locatePandoc` / `locateLibreoffice` in case of provided
25637
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25638
25618
  * TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
25639
25619
  */
25640
25620
 
@@ -25842,9 +25822,7 @@
25842
25822
  }
25843
25823
  return null;
25844
25824
  }
25845
- /**
25846
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25847
- */
25825
+ /** Note: [🟢] Code for Node environment helper [$provideEnvFilename](src/llm-providers/_common/register/$provideEnvFilename.ts) should never be published into packages that could be imported into browser environment */
25848
25826
 
25849
25827
  /**
25850
25828
  * Provides LLM tools configuration by reading environment variables.
@@ -25874,9 +25852,7 @@
25874
25852
  .filter((configuration) => configuration !== null);
25875
25853
  return llmToolsConfiguration;
25876
25854
  }
25877
- /**
25878
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25879
- */
25855
+ /** Note: [🟢] Code for Node environment helper [$provideLlmToolsConfigurationFromEnv](src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.ts) should never be published into packages that could be imported into browser environment */
25880
25856
 
25881
25857
  /**
25882
25858
  * Creates LLM execution tools from provided configuration objects
@@ -25982,20 +25958,18 @@
25982
25958
  }
25983
25959
  return createLlmToolsFromConfiguration(configuration, options);
25984
25960
  }
25961
+ /** Note: [🟢] Code for Node environment helper [$provideLlmToolsFromEnv](src/llm-providers/_common/register/$provideLlmToolsFromEnv.ts) should never be published into packages that could be imported into browser environment */
25985
25962
  /**
25986
25963
  * TODO: The architecture for LLM tools configuration consists of three key functions:
25987
25964
  * 1. `$provideLlmToolsFromEnv` - High-level function that detects available providers from env vars and returns ready-to-use LLM tools
25988
25965
  * 2. `$provideLlmToolsConfigurationFromEnv` - Middle layer that extracts configuration objects from environment variables
25989
25966
  * 3. `createLlmToolsFromConfiguration` - Low-level function that instantiates LLM tools from explicit configuration
25990
- *
25991
25967
  * This layered approach allows flexibility in how tools are configured:
25992
25968
  * - Use $provideLlmToolsFromEnv for automatic detection and setup in Node.js environments
25993
25969
  * - Use $provideLlmToolsConfigurationFromEnv to extract config objects for modification before instantiation
25994
25970
  * - Use createLlmToolsFromConfiguration for explicit control over tool configurations
25995
- *
25996
25971
  * TODO: [🧠][🍛] Which name is better `$provideLlmToolsFromEnv` or `$provideLlmToolsFromEnvironment`?
25997
25972
  * TODO: [🧠] Is there some meaningfull way how to test this util
25998
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
25999
25973
  * TODO: [🥃] Allow `ptbk make` without llm tools
26000
25974
  * TODO: This should be maybe not under `_common` but under `utils`
26001
25975
  * TODO: [®] DRY Register logic
@@ -26024,10 +25998,8 @@
26024
25998
  }
26025
25999
  return scrapers;
26026
26000
  }
26027
- /**
26028
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
26029
- * TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
26030
- */
26001
+ /** Note: [🟢] Code for Node scraper registration helper [$provideScrapersForNode](src/scrapers/_common/register/$provideScrapersForNode.ts) should never be published into packages that could be imported into browser environment */
26002
+ /** TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming */
26031
26003
 
26032
26004
  /**
26033
26005
  * Extracts code block from markdown.
@@ -26343,10 +26315,8 @@
26343
26315
  };
26344
26316
  return tools;
26345
26317
  }
26346
- /**
26347
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
26348
- * TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
26349
- */
26318
+ /** Note: [🟢] Code for Node execution helper [$provideExecutionToolsForNode](src/execution/utils/$provideExecutionToolsForNode.ts) should never be published into packages that could be imported into browser environment */
26319
+ /** TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming */
26350
26320
 
26351
26321
  /**
26352
26322
  * Checks if the directory exists
@@ -26669,10 +26639,8 @@
26669
26639
  // TODO: [🔱] Do here auto-installation
26670
26640
  return [new JavascriptExecutionTools({ ...options, functions: getAllCommitmentsToolFunctionsForNode() })];
26671
26641
  }
26672
- /**
26673
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
26674
- * TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
26675
- */
26642
+ /** Note: [🟢] Code for Node scraper registration helper [$provideScriptingForNode](src/scrapers/_common/register/$provideScriptingForNode.ts) should never be published into packages that could be imported into browser environment */
26643
+ /** TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming */
26676
26644
 
26677
26645
  /**
26678
26646
  * Stringify the PipelineJson with proper formatting
@@ -26795,10 +26763,8 @@
26795
26763
  // [0] When `setItem` and `removeItem` called, the state of the file system should be the same
26796
26764
  }
26797
26765
  }
26798
- /**
26799
- * TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values
26800
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
26801
- */
26766
+ /** Note: [🟢] Code for Node file-cache storage [FileCacheStorage](src/storage/file-cache-storage/FileCacheStorage.ts) should never be published into packages that could be imported into browser environment */
26767
+ /** TODO: [🌗] Maybe some checkers, not all valid JSONs are desired and valid values */
26802
26768
 
26803
26769
  /**
26804
26770
  * Run multiple commands in a shell in sequence
@@ -26815,9 +26781,7 @@
26815
26781
  await $execCommand({ command, cwd, crashOnError });
26816
26782
  }
26817
26783
  }
26818
- /**
26819
- * Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
26820
- */
26784
+ /** Note: [🟢] Code for Node command-execution helper [$execCommands](src/utils/execCommand/$execCommands.ts) should never be published into packages that could be imported into browser environment */
26821
26785
 
26822
26786
  /**
26823
26787
  * Keep-alive helpers used for streaming chat responses.