@promptbook/javascript 0.112.0-31 → 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 (349) hide show
  1. package/esm/index.es.js +1 -1
  2. package/esm/src/_packages/components.index.d.ts +6 -0
  3. package/esm/src/_packages/types.index.d.ts +55 -49
  4. package/esm/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  5. package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  6. package/esm/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
  7. package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
  8. package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
  9. package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  10. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +18 -15
  11. package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
  12. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
  13. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  14. package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  15. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +290 -0
  16. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -0
  17. package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
  18. package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  19. package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  20. package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +4 -0
  21. package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
  22. package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  23. package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  24. package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  25. package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  26. package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  27. package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  28. package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  29. package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  30. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +10 -1
  31. package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  32. package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  33. package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  34. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  35. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  36. package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  37. package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  38. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
  39. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  40. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
  41. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  42. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
  43. package/esm/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  44. package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
  45. package/esm/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  46. package/esm/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  47. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
  48. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
  49. package/esm/src/cli/$runPromptbookCli.d.ts +1 -3
  50. package/esm/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  51. package/esm/src/cli/cli-commands/about.d.ts +1 -1
  52. package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  53. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  54. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  55. package/esm/src/cli/cli-commands/coder/init.d.ts +2 -4
  56. package/esm/src/cli/cli-commands/coder/run.d.ts +2 -4
  57. package/esm/src/cli/cli-commands/coder/verify.d.ts +2 -4
  58. package/esm/src/cli/cli-commands/coder.d.ts +2 -4
  59. package/esm/src/cli/cli-commands/hello.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/list-models.d.ts +2 -4
  61. package/esm/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  62. package/esm/src/cli/cli-commands/login.d.ts +1 -1
  63. package/esm/src/cli/cli-commands/make.d.ts +1 -1
  64. package/esm/src/cli/cli-commands/prettify.d.ts +1 -1
  65. package/esm/src/cli/cli-commands/run.d.ts +1 -1
  66. package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  67. package/esm/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  68. package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  69. package/esm/src/cli/cli-commands/test-command.d.ts +1 -1
  70. package/esm/src/cli/main.d.ts +2 -4
  71. package/esm/src/cli/promptbookCli.d.ts +1 -1
  72. package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  73. package/esm/src/conversion/archive/loadArchive.d.ts +1 -3
  74. package/esm/src/conversion/archive/saveArchive.d.ts +1 -1
  75. package/esm/src/conversion/validation/_importPipeline.d.ts +2 -4
  76. package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  77. package/esm/src/executables/$provideExecutablesForNode.d.ts +1 -1
  78. package/esm/src/executables/apps/locateLibreoffice.d.ts +2 -4
  79. package/esm/src/executables/apps/locatePandoc.d.ts +2 -4
  80. package/esm/src/executables/locateApp.d.ts +2 -4
  81. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  82. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  83. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  84. package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  85. package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  86. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  87. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  88. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  89. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  90. package/esm/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  91. package/esm/src/llm-providers/agent/playground/playground.d.ts +1 -1
  92. package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  93. package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  94. package/esm/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  95. package/esm/src/llm-providers/openai/playground/playground.d.ts +2 -4
  96. package/esm/src/llm-providers/remote/playground/playground.d.ts +1 -3
  97. package/esm/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  98. package/esm/src/playground/permanent/_boilerplate.d.ts +1 -3
  99. package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  100. package/esm/src/playground/permanent/error-handling-playground.d.ts +1 -3
  101. package/esm/src/playground/playground.d.ts +2 -4
  102. package/esm/src/remote-server/startAgentServer.d.ts +1 -3
  103. package/esm/src/remote-server/startRemoteServer.d.ts +1 -2
  104. package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  105. package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  106. package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  107. package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  108. package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  109. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  110. package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -1
  111. package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  112. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  113. package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  114. package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  115. package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  116. package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  117. package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  118. package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  119. package/esm/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  120. package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  121. package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  122. package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  123. package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  124. package/esm/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  125. package/esm/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  126. package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  127. package/esm/src/types/InputParameters_private.d.ts +11 -0
  128. package/esm/src/types/Parameters_private.d.ts +16 -0
  129. package/esm/src/types/ReservedParameters_private.d.ts +10 -0
  130. package/esm/src/types/number_bytes.d.ts +21 -0
  131. package/esm/src/types/number_id.d.ts +13 -0
  132. package/esm/src/types/number_likeness.d.ts +8 -0
  133. package/esm/src/types/number_milliseconds.d.ts +33 -0
  134. package/esm/src/types/number_percent.d.ts +18 -0
  135. package/esm/src/types/number_positive.d.ts +16 -0
  136. package/esm/src/types/number_usd.d.ts +6 -106
  137. package/esm/src/types/string_agent_hash_private.d.ts +9 -0
  138. package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
  139. package/esm/src/types/string_agent_name_private.d.ts +9 -0
  140. package/esm/src/types/string_agent_permanent_id_private.d.ts +10 -0
  141. package/esm/src/types/string_base64_private.d.ts +17 -0
  142. package/esm/src/types/string_business_category_name_private.d.ts +6 -0
  143. package/esm/src/types/string_char_private.d.ts +8 -0
  144. package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
  145. package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
  146. package/esm/src/types/string_email_private.d.ts +16 -0
  147. package/esm/src/types/string_host_private.d.ts +55 -0
  148. package/esm/src/types/string_mime_type_private.d.ts +17 -0
  149. package/esm/src/types/string_model_description_private.d.ts +8 -0
  150. package/esm/src/types/string_model_name_private.d.ts +8 -0
  151. package/esm/src/types/string_name_private.d.ts +9 -0
  152. package/esm/src/types/string_page_private.d.ts +9 -0
  153. package/esm/src/types/string_parameter_name.d.ts +74 -31
  154. package/esm/src/types/string_parameter_value_private.d.ts +9 -0
  155. package/esm/src/types/string_persona_description_private.d.ts +8 -0
  156. package/esm/src/types/string_prompt_image_private.d.ts +8 -0
  157. package/esm/src/types/string_prompt_private.d.ts +8 -0
  158. package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  159. package/esm/src/types/string_system_message_private.d.ts +9 -0
  160. package/esm/src/types/string_template_private.d.ts +8 -0
  161. package/esm/src/types/string_text_prompt_private.d.ts +9 -0
  162. package/esm/src/types/string_title_private.d.ts +9 -0
  163. package/esm/src/types/string_url.d.ts +50 -46
  164. package/esm/src/types/string_url_private.d.ts +88 -0
  165. package/esm/src/types/typeAliases.d.ts +7 -1
  166. package/esm/src/utils/execCommand/$execCommand.d.ts +1 -3
  167. package/esm/src/utils/execCommand/$execCommands.d.ts +1 -3
  168. package/esm/src/utils/files/$induceBookDownload.d.ts +1 -3
  169. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -3
  170. package/esm/src/utils/files/ObjectUrl.d.ts +1 -3
  171. package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
  172. package/esm/src/version.d.ts +1 -1
  173. package/esm/src/wizard/$getCompiledBook.d.ts +2 -4
  174. package/esm/src/wizard/wizard.d.ts +2 -4
  175. package/package.json +2 -2
  176. package/umd/index.umd.js +1 -1
  177. package/umd/src/_packages/components.index.d.ts +6 -0
  178. package/umd/src/_packages/types.index.d.ts +55 -49
  179. package/umd/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  180. package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  181. package/umd/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
  182. package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
  183. package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
  184. package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  185. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +18 -15
  186. package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
  187. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
  188. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  189. package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  190. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +290 -0
  191. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -0
  192. package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
  193. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  194. package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  195. package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +4 -0
  196. package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
  197. package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  198. package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  199. package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  200. package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  201. package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  202. package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  203. package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  204. package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  205. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +10 -1
  206. package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  207. package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  208. package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  209. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  210. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  211. package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  212. package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  213. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
  214. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  215. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
  216. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  217. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
  218. package/umd/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  219. package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
  220. package/umd/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  221. package/umd/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  222. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
  223. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
  224. package/umd/src/cli/$runPromptbookCli.d.ts +1 -3
  225. package/umd/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  226. package/umd/src/cli/cli-commands/about.d.ts +1 -1
  227. package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  228. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  229. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  230. package/umd/src/cli/cli-commands/coder/init.d.ts +2 -4
  231. package/umd/src/cli/cli-commands/coder/run.d.ts +2 -4
  232. package/umd/src/cli/cli-commands/coder/verify.d.ts +2 -4
  233. package/umd/src/cli/cli-commands/coder.d.ts +2 -4
  234. package/umd/src/cli/cli-commands/hello.d.ts +1 -1
  235. package/umd/src/cli/cli-commands/list-models.d.ts +2 -4
  236. package/umd/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  237. package/umd/src/cli/cli-commands/login.d.ts +1 -1
  238. package/umd/src/cli/cli-commands/make.d.ts +1 -1
  239. package/umd/src/cli/cli-commands/prettify.d.ts +1 -1
  240. package/umd/src/cli/cli-commands/run.d.ts +1 -1
  241. package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  242. package/umd/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  243. package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  244. package/umd/src/cli/cli-commands/test-command.d.ts +1 -1
  245. package/umd/src/cli/main.d.ts +2 -4
  246. package/umd/src/cli/promptbookCli.d.ts +1 -1
  247. package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  248. package/umd/src/conversion/archive/loadArchive.d.ts +1 -3
  249. package/umd/src/conversion/archive/saveArchive.d.ts +1 -1
  250. package/umd/src/conversion/validation/_importPipeline.d.ts +2 -4
  251. package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  252. package/umd/src/executables/$provideExecutablesForNode.d.ts +1 -1
  253. package/umd/src/executables/apps/locateLibreoffice.d.ts +2 -4
  254. package/umd/src/executables/apps/locatePandoc.d.ts +2 -4
  255. package/umd/src/executables/locateApp.d.ts +2 -4
  256. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  257. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  258. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  259. package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  260. package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  261. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  262. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  263. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  264. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  265. package/umd/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  266. package/umd/src/llm-providers/agent/playground/playground.d.ts +1 -1
  267. package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  268. package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  269. package/umd/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  270. package/umd/src/llm-providers/openai/playground/playground.d.ts +2 -4
  271. package/umd/src/llm-providers/remote/playground/playground.d.ts +1 -3
  272. package/umd/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  273. package/umd/src/playground/permanent/_boilerplate.d.ts +1 -3
  274. package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  275. package/umd/src/playground/permanent/error-handling-playground.d.ts +1 -3
  276. package/umd/src/playground/playground.d.ts +2 -4
  277. package/umd/src/remote-server/startAgentServer.d.ts +1 -3
  278. package/umd/src/remote-server/startRemoteServer.d.ts +1 -2
  279. package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  280. package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  281. package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  282. package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  283. package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  284. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  285. package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -1
  286. package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  287. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  288. package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  289. package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  290. package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  291. package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  292. package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  293. package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  294. package/umd/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  295. package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  296. package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  297. package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  298. package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  299. package/umd/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  300. package/umd/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  301. package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  302. package/umd/src/types/InputParameters_private.d.ts +11 -0
  303. package/umd/src/types/Parameters_private.d.ts +16 -0
  304. package/umd/src/types/ReservedParameters_private.d.ts +10 -0
  305. package/umd/src/types/number_bytes.d.ts +21 -0
  306. package/umd/src/types/number_id.d.ts +13 -0
  307. package/umd/src/types/number_likeness.d.ts +8 -0
  308. package/umd/src/types/number_milliseconds.d.ts +33 -0
  309. package/umd/src/types/number_percent.d.ts +18 -0
  310. package/umd/src/types/number_positive.d.ts +16 -0
  311. package/umd/src/types/number_usd.d.ts +6 -106
  312. package/umd/src/types/string_agent_hash_private.d.ts +9 -0
  313. package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
  314. package/umd/src/types/string_agent_name_private.d.ts +9 -0
  315. package/umd/src/types/string_agent_permanent_id_private.d.ts +10 -0
  316. package/umd/src/types/string_base64_private.d.ts +17 -0
  317. package/umd/src/types/string_business_category_name_private.d.ts +6 -0
  318. package/umd/src/types/string_char_private.d.ts +8 -0
  319. package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
  320. package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
  321. package/umd/src/types/string_email_private.d.ts +16 -0
  322. package/umd/src/types/string_host_private.d.ts +55 -0
  323. package/umd/src/types/string_mime_type_private.d.ts +17 -0
  324. package/umd/src/types/string_model_description_private.d.ts +8 -0
  325. package/umd/src/types/string_model_name_private.d.ts +8 -0
  326. package/umd/src/types/string_name_private.d.ts +9 -0
  327. package/umd/src/types/string_page_private.d.ts +9 -0
  328. package/umd/src/types/string_parameter_name.d.ts +74 -31
  329. package/umd/src/types/string_parameter_value_private.d.ts +9 -0
  330. package/umd/src/types/string_persona_description_private.d.ts +8 -0
  331. package/umd/src/types/string_prompt_image_private.d.ts +8 -0
  332. package/umd/src/types/string_prompt_private.d.ts +8 -0
  333. package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  334. package/umd/src/types/string_system_message_private.d.ts +9 -0
  335. package/umd/src/types/string_template_private.d.ts +8 -0
  336. package/umd/src/types/string_text_prompt_private.d.ts +9 -0
  337. package/umd/src/types/string_title_private.d.ts +9 -0
  338. package/umd/src/types/string_url.d.ts +50 -46
  339. package/umd/src/types/string_url_private.d.ts +88 -0
  340. package/umd/src/types/typeAliases.d.ts +7 -1
  341. package/umd/src/utils/execCommand/$execCommand.d.ts +1 -3
  342. package/umd/src/utils/execCommand/$execCommands.d.ts +1 -3
  343. package/umd/src/utils/files/$induceBookDownload.d.ts +1 -3
  344. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -3
  345. package/umd/src/utils/files/ObjectUrl.d.ts +1 -3
  346. package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
  347. package/umd/src/version.d.ts +1 -1
  348. package/umd/src/wizard/$getCompiledBook.d.ts +2 -4
  349. package/umd/src/wizard/wizard.d.ts +2 -4
@@ -24,6 +24,15 @@ export type ChatFeedbackResponse = {
24
24
  * @public exported from `@promptbook/components`
25
25
  */
26
26
  export type ChatFeedbackMode = 'off' | 'stars' | 'report_issue';
27
+ /**
28
+ * Visual presentation mode used for chat messages.
29
+ *
30
+ * - `BUBBLE_MODE`: user and agent messages render as bubbles.
31
+ * - `ARTICLE_MODE`: user messages stay as bubbles; agent messages render as seamless article blocks.
32
+ *
33
+ * @public exported from `@promptbook/components`
34
+ */
35
+ export type ChatVisualMode = 'BUBBLE_MODE' | 'ARTICLE_MODE';
27
36
  /**
28
37
  * Optional text overrides for feedback UI copy.
29
38
  *
@@ -103,6 +112,257 @@ export type ChatFeedbackTranslations = {
103
112
  */
104
113
  readonly feedbackErrorMessage?: string;
105
114
  };
115
+ /**
116
+ * Optional text overrides for general Chat UI strings such as button labels, lifecycle
117
+ * state badges, tool call modal controls, and the default input placeholder.
118
+ *
119
+ * @public exported from `@promptbook/components`
120
+ */
121
+ export type ChatUiTranslations = {
122
+ /**
123
+ * Default placeholder shown in the message input when no custom placeholder is provided.
124
+ * @default "Write a message..."
125
+ */
126
+ readonly inputPlaceholder?: string;
127
+ /**
128
+ * Label for the "Save" button in the chat actions bar.
129
+ * @default "Save"
130
+ */
131
+ readonly saveButtonLabel?: string;
132
+ /**
133
+ * Label for the "New chat" button in the chat actions bar.
134
+ * @default "New chat"
135
+ */
136
+ readonly newChatButtonLabel?: string;
137
+ /**
138
+ * Lifecycle badge label for messages being sent by the user.
139
+ * @default "Sending"
140
+ */
141
+ readonly lifecycleSending?: string;
142
+ /**
143
+ * Lifecycle badge label for queued messages.
144
+ * @default "Queued"
145
+ */
146
+ readonly lifecycleQueued?: string;
147
+ /**
148
+ * Lifecycle badge label for running messages.
149
+ * @default "Running"
150
+ */
151
+ readonly lifecycleRunning?: string;
152
+ /**
153
+ * Lifecycle badge label for failed messages.
154
+ * @default "Failed"
155
+ */
156
+ readonly lifecycleFailed?: string;
157
+ /**
158
+ * Lifecycle badge label for cancelled messages.
159
+ * @default "Cancelled"
160
+ */
161
+ readonly lifecycleCancelled?: string;
162
+ /**
163
+ * Lifecycle badge label for completed messages.
164
+ * @default "Completed"
165
+ */
166
+ readonly lifecycleCompleted?: string;
167
+ /**
168
+ * Accessible label for the tool call details modal dialog.
169
+ * @default "Tool call details"
170
+ */
171
+ readonly toolCallModalTitle?: string;
172
+ /**
173
+ * Accessible label for the close button in the tool call details modal.
174
+ * @default "Close tool call details"
175
+ */
176
+ readonly toolCallModalCloseLabel?: string;
177
+ /**
178
+ * Label for the "Copy" button in the tool call details modal footer.
179
+ * @default "Copy"
180
+ */
181
+ readonly toolCallModalCopyLabel?: string;
182
+ /**
183
+ * Label for the "Save" button in the tool call details modal footer.
184
+ * @default "Save"
185
+ */
186
+ readonly toolCallModalSaveLabel?: string;
187
+ /**
188
+ * Label for switching to the advanced view in the tool call details modal.
189
+ * @default "Advanced"
190
+ */
191
+ readonly toolCallModalAdvancedLabel?: string;
192
+ /**
193
+ * Label for switching back to the simple view in the tool call details modal.
194
+ * @default "Simple"
195
+ */
196
+ readonly toolCallModalSimpleLabel?: string;
197
+ /**
198
+ * Title shown when a timeout has been successfully scheduled.
199
+ * @default "Timeout scheduled"
200
+ */
201
+ readonly toolCallTimeoutTitle?: string;
202
+ /**
203
+ * Title shown when a timeout has been cancelled.
204
+ * @default "Timeout cancelled"
205
+ */
206
+ readonly toolCallTimeoutCancelledTitle?: string;
207
+ /**
208
+ * Title shown when a timeout status update is received.
209
+ * @default "Timeout update"
210
+ */
211
+ readonly toolCallTimeoutUpdateTitle?: string;
212
+ /**
213
+ * Label for the "Cancel" quick-action button inside the timeout modal.
214
+ * @default "Cancel"
215
+ */
216
+ readonly toolCallTimeoutCancelButton?: string;
217
+ /**
218
+ * Label for the "Snooze" quick-action button inside the timeout modal.
219
+ * @default "Snooze"
220
+ */
221
+ readonly toolCallTimeoutSnoozeButton?: string;
222
+ /**
223
+ * Label for the "View advanced" quick-action button inside the timeout modal.
224
+ * @default "View advanced"
225
+ */
226
+ readonly toolCallTimeoutViewAdvancedButton?: string;
227
+ /**
228
+ * Message shown in the timeout modal when presentation data is still loading.
229
+ * @default "Timeout details are still loading."
230
+ */
231
+ readonly toolCallTimeoutLoadingMessage?: string;
232
+ /**
233
+ * Message shown in the timeout modal when the scheduled time is unavailable.
234
+ * @default "Scheduled time is unavailable."
235
+ */
236
+ readonly toolCallTimeoutUnavailableMessage?: string;
237
+ /**
238
+ * Label prefix for the due date line in the timeout modal (e.g. "Date: 1/1/2025").
239
+ * @default "Date:"
240
+ */
241
+ readonly toolCallTimeoutDateLabel?: string;
242
+ /**
243
+ * Label prefix for the message line in the timeout modal.
244
+ * @default "Message:"
245
+ */
246
+ readonly toolCallTimeoutMessageLabel?: string;
247
+ /**
248
+ * Label prefix for the timezone line in the timeout modal.
249
+ * @default "Timezone:"
250
+ */
251
+ readonly toolCallTimeoutTimezoneLabel?: string;
252
+ /**
253
+ * Template used for timeout chips, for example `"Timeout: {time}"`.
254
+ * @default "Timeout: {time}"
255
+ */
256
+ readonly toolCallTimeoutChipLabel?: string;
257
+ /**
258
+ * Chip text used when a timeout has been cancelled.
259
+ * @default "Timeout cancelled"
260
+ */
261
+ readonly toolCallTimeoutChipCancelledLabel?: string;
262
+ /**
263
+ * Chip text used when a timeout is already inactive.
264
+ * @default "Timeout inactive"
265
+ */
266
+ readonly toolCallTimeoutChipInactiveLabel?: string;
267
+ /**
268
+ * Chip text used when a timeout status update is received.
269
+ * @default "Timeout update"
270
+ */
271
+ readonly toolCallTimeoutChipUpdatedLabel?: string;
272
+ /**
273
+ * Chip text used when no specific timeout time is available yet.
274
+ * @default "Timeout scheduled"
275
+ */
276
+ readonly toolCallTimeoutChipFallbackLabel?: string;
277
+ /**
278
+ * Primary timeout summary template shown in the modal, for example `"Scheduled for {time}."`.
279
+ * @default "Scheduled for {time}."
280
+ */
281
+ readonly toolCallTimeoutPrimaryScheduledLabel?: string;
282
+ /**
283
+ * Secondary timeout summary template shown in the modal, for example `"Will retry in {duration}."`.
284
+ * @default "Will retry in {duration}."
285
+ */
286
+ readonly toolCallTimeoutSecondaryDurationLabel?: string;
287
+ /**
288
+ * Primary timeout summary shown after cancellation.
289
+ * @default "The timeout has been cancelled."
290
+ */
291
+ readonly toolCallTimeoutPrimaryCancelledLabel?: string;
292
+ /**
293
+ * Primary timeout summary shown when the timeout is already inactive.
294
+ * @default "This timeout was already inactive."
295
+ */
296
+ readonly toolCallTimeoutPrimaryInactiveLabel?: string;
297
+ /**
298
+ * Primary timeout summary shown for generic timeout updates.
299
+ * @default "The timeout status has been updated."
300
+ */
301
+ readonly toolCallTimeoutPrimaryUpdatedLabel?: string;
302
+ /**
303
+ * Primary timeout summary shown when only limited data is available.
304
+ * @default "The timeout has been scheduled."
305
+ */
306
+ readonly toolCallTimeoutPrimaryFallbackLabel?: string;
307
+ /**
308
+ * Accessible label for the timeout quick-action button group.
309
+ * @default "Timeout quick actions"
310
+ */
311
+ readonly toolCallTimeoutActionGroupLabel?: string;
312
+ /**
313
+ * Accessible label for the "Cancel" timeout quick action.
314
+ * @default "Cancel timeout"
315
+ */
316
+ readonly toolCallTimeoutCancelAriaLabel?: string;
317
+ /**
318
+ * Accessible label for the "Snooze" timeout quick action.
319
+ * @default "Snooze timeout"
320
+ */
321
+ readonly toolCallTimeoutSnoozeAriaLabel?: string;
322
+ /**
323
+ * Accessible label for the "View advanced" timeout quick action.
324
+ * @default "View advanced timeout details"
325
+ */
326
+ readonly toolCallTimeoutViewAdvancedAriaLabel?: string;
327
+ /**
328
+ * Header title shown in the time-check modal.
329
+ * @default "Time at call"
330
+ */
331
+ readonly toolCallTimeTitle?: string;
332
+ /**
333
+ * Shown in the time modal when the time value is unknown.
334
+ * @default "Unknown time"
335
+ */
336
+ readonly toolCallTimeUnknown?: string;
337
+ /**
338
+ * Label prefix for the exact timestamp line in the time modal.
339
+ * @default "Timestamp of call:"
340
+ */
341
+ readonly toolCallTimeTimestampLabel?: string;
342
+ /**
343
+ * Template used for the time chip, for example `"Time: {time}"`.
344
+ * @default "{time}"
345
+ */
346
+ readonly toolCallTimeChipLabel?: string;
347
+ /**
348
+ * Template shown under the time clock panel for relative context.
349
+ * @default "Called {relative}"
350
+ */
351
+ readonly toolCallTimeRelativeLabel?: string;
352
+ };
353
+ /**
354
+ * Optional text overrides for localized timing metadata rendered next to message timestamps.
355
+ *
356
+ * @public exported from `@promptbook/components`
357
+ */
358
+ export type ChatTimingTranslations = {
359
+ /**
360
+ * Template used for assistant response duration metadata.
361
+ *
362
+ * The `{duration}` placeholder is replaced with the compact duration label.
363
+ */
364
+ readonly answerDurationLabel?: string;
365
+ };
106
366
  /**
107
367
  * Interface for sound system that can be passed to Chat component
108
368
  * This allows the chat to trigger sounds without tight coupling
@@ -179,6 +439,12 @@ export type ChatProps = {
179
439
  * to keep the button available for another attempt.
180
440
  */
181
441
  onActionButton?(code: string): Promisable<void>;
442
+ /**
443
+ * Called when user clicks a quick message button parsed from message markdown.
444
+ *
445
+ * When not provided, quick message buttons fall back to `onMessage`.
446
+ */
447
+ onQuickMessageButton?(messageContent: string): Promisable<void>;
182
448
  /**
183
449
  * Optional callback
184
450
  *
@@ -388,6 +654,21 @@ export type ChatProps = {
388
654
  * Optional localized feedback labels for buttons, modal copy, and status toasts.
389
655
  */
390
656
  readonly feedbackTranslations?: ChatFeedbackTranslations;
657
+ /**
658
+ * Optional localized labels used by timestamp metadata shown under messages.
659
+ */
660
+ readonly timingTranslations?: ChatTimingTranslations;
661
+ /**
662
+ * Optional localized labels for general Chat UI elements such as button labels,
663
+ * lifecycle state badges, tool call modal strings, and the default input placeholder.
664
+ */
665
+ readonly chatUiTranslations?: ChatUiTranslations;
666
+ /**
667
+ * Optional moment locale used when formatting message timestamps.
668
+ *
669
+ * When omitted, the current global moment locale is used.
670
+ */
671
+ readonly chatLocale?: string;
391
672
  /**
392
673
  * Optional callback for handling file uploads
393
674
  * When provided, enables file upload functionality via drag-and-drop and file button
@@ -407,6 +688,15 @@ export type ChatProps = {
407
688
  * Called when a tool call chiplet is clicked.
408
689
  */
409
690
  onToolCallClick?: (toolCall: NonNullable<ChatMessage['toolCalls']>[number]) => void;
691
+ /**
692
+ * Visual presentation mode for chat messages.
693
+ *
694
+ * - `BUBBLE_MODE`: keeps the default bubble appearance for all messages.
695
+ * - `ARTICLE_MODE`: keeps user bubbles while rendering assistant replies as borderless article blocks.
696
+ *
697
+ * @default 'BUBBLE_MODE'
698
+ */
699
+ readonly CHAT_VISUAL_MODE?: ChatVisualMode;
410
700
  /**
411
701
  * Visual style of the chat component
412
702
  */
@@ -25,6 +25,22 @@ export type ChatToolCallModalProps = {
25
25
  * Optional cached team agent metadata keyed by TEAM tool name.
26
26
  */
27
27
  teamAgentProfiles?: Record<string, AgentChipData>;
28
+ /**
29
+ * Optional localized labels for the tool call modal UI elements.
30
+ */
31
+ chatUiTranslations?: import('./ChatProps').ChatUiTranslations;
32
+ /**
33
+ * Optional BCP-47 locale string used to format time labels in the modal.
34
+ * When omitted the browser/OS default locale is used.
35
+ */
36
+ locale?: string;
37
+ /**
38
+ * Optional list of tools that were available to the model during the turn that produced this tool call.
39
+ *
40
+ * When provided, the advanced view includes an "Available tools" payload section so developers can
41
+ * inspect what capabilities the model had access to at the exact moment of the request.
42
+ */
43
+ availableTools?: ChatMessage['availableTools'];
28
44
  };
29
45
  /**
30
46
  * Modal that renders rich tool call details for chat chiplets.
@@ -0,0 +1,33 @@
1
+ import type { StreamingFeatureBoundary } from '../utils/sanitizeStreamingMessageContent';
2
+ /**
3
+ * Placeholder types that describe which rich feature is still streaming.
4
+ *
5
+ * @private internal helper of `<ChatMessageItem/>`
6
+ */
7
+ export type StreamingFeaturePlaceholderKind = 'map' | 'image' | 'math' | 'feature';
8
+ /**
9
+ * Resolves which rich feature is still streaming so the UI can render the matching placeholder.
10
+ *
11
+ * @param boundary - Streaming metadata returned by the sanitizer.
12
+ * @param source - Original message content that contains the pending markup.
13
+ * @returns Friendly placeholder kind to render inside the chat bubble.
14
+ * @private internal helper of `<ChatMessageItem/>`
15
+ */
16
+ export declare function resolveStreamingFeaturePlaceholderKind(boundary: StreamingFeatureBoundary, source: string): StreamingFeaturePlaceholderKind;
17
+ /**
18
+ * Props for `<StreamingFeaturePlaceholder/>`.
19
+ *
20
+ * @private internal helper of `<ChatMessageItem/>`
21
+ */
22
+ export type StreamingFeaturePlaceholderProps = {
23
+ /**
24
+ * Kind of the placeholder to render.
25
+ */
26
+ readonly kind: StreamingFeaturePlaceholderKind;
27
+ };
28
+ /**
29
+ * Renders the placeholder UI for streaming rich features.
30
+ *
31
+ * @private internal helper of `<ChatMessageItem/>`
32
+ */
33
+ export declare function StreamingFeaturePlaceholder({ kind }: StreamingFeaturePlaceholderProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,76 @@
1
+ import type { ToolCall } from '../../../types/ToolCall';
2
+ import type { AgentChipData } from '../AgentChip';
3
+ import type { ChatMessage } from '../types/ChatMessage';
4
+ import { type TransitiveCitation } from '../utils/collectTeamToolCallSummary';
5
+ import type { ChatProps } from './ChatProps';
6
+ /**
7
+ * Status variants for tool call chips.
8
+ *
9
+ * @private internal helper of `<ChatMessageItem/>`
10
+ */
11
+ export type ToolCallChipStatus = 'ongoing' | 'done' | 'error';
12
+ /**
13
+ * Metadata rendered inside a single tool call chip.
14
+ *
15
+ * @private internal helper of `<ChatMessageItem/>`
16
+ */
17
+ export type ToolCallChipEntry = {
18
+ /**
19
+ * Stable key for React rendering.
20
+ */
21
+ key: string;
22
+ /**
23
+ * Tool call represented by this chip.
24
+ */
25
+ toolCall: ToolCall;
26
+ /**
27
+ * Chip label text.
28
+ */
29
+ label: string;
30
+ /**
31
+ * Current status of the tool call.
32
+ */
33
+ status: ToolCallChipStatus;
34
+ /**
35
+ * Optional agent metadata for TEAM or transitive tool calls.
36
+ */
37
+ teamAgentData: AgentChipData | null;
38
+ /**
39
+ * Marks entries built for transitive tool calls.
40
+ */
41
+ isTransitive: boolean;
42
+ };
43
+ /**
44
+ * Precomputed tool-call UI data consumed by `<ChatMessageItem/>`.
45
+ *
46
+ * @private internal helper of `<ChatMessageItem/>`
47
+ */
48
+ export type ChatMessageToolCallRenderModel = {
49
+ /**
50
+ * Tool call chips rendered below the message body.
51
+ */
52
+ readonly toolCallChips: ReadonlyArray<ToolCallChipEntry>;
53
+ /**
54
+ * Citations surfaced from nested teammate responses.
55
+ */
56
+ readonly transitiveCitations: ReadonlyArray<TransitiveCitation>;
57
+ };
58
+ /**
59
+ * Inputs used to derive the tool-call UI model for one chat message.
60
+ *
61
+ * @private internal helper of `<ChatMessageItem/>`
62
+ */
63
+ export type CreateChatMessageToolCallRenderModelOptions = {
64
+ readonly message: ChatMessage;
65
+ readonly teammates?: ChatProps['teammates'];
66
+ readonly teamAgentProfiles?: ChatProps['teamAgentProfiles'];
67
+ readonly locale?: string;
68
+ readonly toolTitles?: ChatProps['toolTitles'];
69
+ readonly chatUiTranslations?: ChatProps['chatUiTranslations'];
70
+ };
71
+ /**
72
+ * Builds the tool-call render model used by `<ChatMessageItem/>`.
73
+ *
74
+ * @private internal helper of `<ChatMessageItem/>`
75
+ */
76
+ export declare function createChatMessageToolCallRenderModel(options: CreateChatMessageToolCallRenderModelOptions): ChatMessageToolCallRenderModel;
@@ -0,0 +1,16 @@
1
+ import type { ChatMessage } from '../types/ChatMessage';
2
+ /**
3
+ * Converts one structured progress card payload into markdown checklist content.
4
+ *
5
+ * @param progressCard Structured progress card payload.
6
+ * @returns Markdown checklist rendered through the normal message markdown pipeline.
7
+ *
8
+ * @private internal helper of `<ChatMessageItem/>`
9
+ */
10
+ export declare function createProgressCardChecklistMarkdown(progressCard: NonNullable<ChatMessage['progressCard']>): string;
11
+ /**
12
+ * Returns true when one progress card should currently be rendered.
13
+ *
14
+ * @private internal helper of `<ChatMessageItem/>`
15
+ */
16
+ export declare function isProgressCardVisible(progressCard: ChatMessage['progressCard']): progressCard is NonNullable<ChatMessage['progressCard']>;
@@ -14,6 +14,10 @@ type AdvancedToolCallDetailsOptions = {
14
14
  * Optional mapping of tool titles.
15
15
  */
16
16
  toolTitles?: Record<string, string>;
17
+ /**
18
+ * Optional list of tools that were available to the model during the turn that produced this tool call.
19
+ */
20
+ availableTools?: ChatMessage['availableTools'];
17
21
  };
18
22
  /**
19
23
  * Renders a technical view with raw tool input/output payloads.
@@ -0,0 +1,26 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
3
+ /**
4
+ * Rendering options for email tool calls.
5
+ *
6
+ * @private function of ChatToolCallModal
7
+ */
8
+ type RenderEmailToolCallDetailsOptions = {
9
+ /**
10
+ * Parsed tool call arguments.
11
+ */
12
+ args: Record<string, TODO_any>;
13
+ /**
14
+ * Parsed tool result payload.
15
+ */
16
+ resultRaw: TODO_any;
17
+ };
18
+ /**
19
+ * Renders the email-specific tool call detail view.
20
+ *
21
+ * @param options - Email tool call data.
22
+ * @returns Email preview UI.
23
+ * @private function of ChatToolCallModal
24
+ */
25
+ export declare function renderEmailToolCallDetails(options: RenderEmailToolCallDetailsOptions): ReactElement;
26
+ export {};
@@ -0,0 +1,31 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
3
+ import type { ChatMessage } from '../types/ChatMessage';
4
+ /**
5
+ * Rendering options for the memory-specific tool call view.
6
+ *
7
+ * @private function of ChatToolCallModal
8
+ */
9
+ type RenderMemoryToolCallDetailsOptions = {
10
+ /**
11
+ * Raw tool call payload.
12
+ */
13
+ toolCall: NonNullable<ChatMessage['toolCalls']>[number];
14
+ /**
15
+ * Resolved tool call arguments.
16
+ */
17
+ args: Record<string, TODO_any>;
18
+ /**
19
+ * Parsed tool call result.
20
+ */
21
+ resultRaw: TODO_any;
22
+ };
23
+ /**
24
+ * Renders a friendly memory summary screen when a MEMORY tool call is selected.
25
+ *
26
+ * @param options - View fragments required to render the memory modal.
27
+ * @returns Memory-specific modal JSX or `null` when the tool is unrelated.
28
+ * @private function of ChatToolCallModal
29
+ */
30
+ export declare function renderMemoryToolCallDetails(options: RenderMemoryToolCallDetailsOptions): ReactElement | null;
31
+ export {};
@@ -0,0 +1,32 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
3
+ import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
4
+ import { Color } from '../../../utils/color/Color';
5
+ /**
6
+ * Rendering options for popup tool calls.
7
+ *
8
+ * @private function of ChatToolCallModal
9
+ */
10
+ type RenderPopupToolCallDetailsOptions = {
11
+ /**
12
+ * Parsed tool call arguments.
13
+ */
14
+ args: Record<string, TODO_any>;
15
+ /**
16
+ * Parsed tool result payload.
17
+ */
18
+ resultRaw: TODO_any;
19
+ /**
20
+ * Chat button color used for the CTA.
21
+ */
22
+ buttonColor: WithTake<Color>;
23
+ };
24
+ /**
25
+ * Renders the popup-specific tool call detail view.
26
+ *
27
+ * @param options - Popup tool call data.
28
+ * @returns Popup preview UI.
29
+ * @private function of ChatToolCallModal
30
+ */
31
+ export declare function renderPopupToolCallDetails(options: RenderPopupToolCallDetailsOptions): ReactElement;
32
+ export {};
@@ -0,0 +1,31 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
3
+ import type { ChatMessage } from '../types/ChatMessage';
4
+ /**
5
+ * Rendering options for the browser replay view.
6
+ *
7
+ * @private function of ChatToolCallModal
8
+ */
9
+ type RenderRunBrowserToolCallDetailsOptions = {
10
+ /**
11
+ * Tool call being rendered.
12
+ */
13
+ toolCall: NonNullable<ChatMessage['toolCalls']>[number];
14
+ /**
15
+ * Parsed tool call arguments.
16
+ */
17
+ args: Record<string, TODO_any>;
18
+ /**
19
+ * Parsed tool result payload.
20
+ */
21
+ resultRaw: TODO_any;
22
+ };
23
+ /**
24
+ * Renders a visual replay view for `run_browser` tool calls.
25
+ *
26
+ * @param options - Parsed browser tool details needed by the modal.
27
+ * @returns Visual browser replay content.
28
+ * @private function of ChatToolCallModal
29
+ */
30
+ export declare function renderRunBrowserToolCallDetails(options: RenderRunBrowserToolCallDetailsOptions): ReactElement;
31
+ export {};
@@ -0,0 +1,31 @@
1
+ import { type ReactElement } from 'react';
2
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
3
+ import type { ChatMessage } from '../types/ChatMessage';
4
+ /**
5
+ * Rendering options for search tool calls.
6
+ *
7
+ * @private function of ChatToolCallModal
8
+ */
9
+ type RenderSearchToolCallDetailsOptions = {
10
+ /**
11
+ * Tool call being rendered.
12
+ */
13
+ toolCall: NonNullable<ChatMessage['toolCalls']>[number];
14
+ /**
15
+ * Parsed tool call arguments.
16
+ */
17
+ args: Record<string, TODO_any>;
18
+ /**
19
+ * Parsed tool result payload.
20
+ */
21
+ resultRaw: TODO_any;
22
+ };
23
+ /**
24
+ * Renders the search-specific tool call detail view.
25
+ *
26
+ * @param options - Search tool call data.
27
+ * @returns Search results or pending state UI.
28
+ * @private function of ChatToolCallModal
29
+ */
30
+ export declare function renderSearchToolCallDetails(options: RenderSearchToolCallDetailsOptions): ReactElement;
31
+ export {};
@@ -0,0 +1,38 @@
1
+ import { type ReactElement } from 'react';
2
+ import { Color } from '../../../utils/color/Color';
3
+ import type { TODO_any } from '../../../utils/organization/TODO_any';
4
+ import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
5
+ import type { ChatParticipant } from '../types/ChatParticipant';
6
+ import type { ChatMessage } from '../types/ChatMessage';
7
+ /**
8
+ * Rendering options for self-learning tool calls.
9
+ *
10
+ * @private function of ChatToolCallModal
11
+ */
12
+ type RenderSelfLearningToolCallDetailsOptions = {
13
+ /**
14
+ * Tool call being rendered.
15
+ */
16
+ toolCall: NonNullable<ChatMessage['toolCalls']>[number];
17
+ /**
18
+ * Parsed tool result payload.
19
+ */
20
+ resultRaw: TODO_any;
21
+ /**
22
+ * Optional agent metadata used for the header avatars.
23
+ */
24
+ agentParticipant?: ChatParticipant;
25
+ /**
26
+ * Fallback color used when participant metadata is incomplete.
27
+ */
28
+ buttonColor: WithTake<Color>;
29
+ };
30
+ /**
31
+ * Renders the self-learning-specific tool call detail view.
32
+ *
33
+ * @param options - Self-learning tool call data.
34
+ * @returns Self-learning summary UI.
35
+ * @private function of ChatToolCallModal
36
+ */
37
+ export declare function renderSelfLearningToolCallDetails(options: RenderSelfLearningToolCallDetailsOptions): ReactElement;
38
+ export {};