@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
package/esm/index.es.js CHANGED
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-31';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-34';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -17,7 +17,10 @@ import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChat
17
17
  import { Chat } from '../book-components/Chat/Chat/Chat';
18
18
  import type { ChatFeedbackResponse } from '../book-components/Chat/Chat/ChatProps';
19
19
  import type { ChatFeedbackMode } from '../book-components/Chat/Chat/ChatProps';
20
+ import type { ChatVisualMode } from '../book-components/Chat/Chat/ChatProps';
20
21
  import type { ChatFeedbackTranslations } from '../book-components/Chat/Chat/ChatProps';
22
+ import type { ChatUiTranslations } from '../book-components/Chat/Chat/ChatProps';
23
+ import type { ChatTimingTranslations } from '../book-components/Chat/Chat/ChatProps';
21
24
  import type { ChatSoundSystem } from '../book-components/Chat/Chat/ChatProps';
22
25
  import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
23
26
  import { ChatSoundToggle } from '../book-components/Chat/Chat/ChatSoundToggle';
@@ -95,7 +98,10 @@ export type { AgentChatProps };
95
98
  export { Chat };
96
99
  export type { ChatFeedbackResponse };
97
100
  export type { ChatFeedbackMode };
101
+ export type { ChatVisualMode };
98
102
  export type { ChatFeedbackTranslations };
103
+ export type { ChatUiTranslations };
104
+ export type { ChatTimingTranslations };
99
105
  export type { ChatSoundSystem };
100
106
  export type { ChatProps };
101
107
  export { ChatSoundToggle };
@@ -18,7 +18,10 @@ import type { AgentChipData } from '../book-components/Chat/AgentChip/AgentChip'
18
18
  import type { AgentChipProps } from '../book-components/Chat/AgentChip/AgentChip';
19
19
  import type { ChatFeedbackResponse } from '../book-components/Chat/Chat/ChatProps';
20
20
  import type { ChatFeedbackMode } from '../book-components/Chat/Chat/ChatProps';
21
+ import type { ChatVisualMode } from '../book-components/Chat/Chat/ChatProps';
21
22
  import type { ChatFeedbackTranslations } from '../book-components/Chat/Chat/ChatProps';
23
+ import type { ChatUiTranslations } from '../book-components/Chat/Chat/ChatProps';
24
+ import type { ChatTimingTranslations } from '../book-components/Chat/Chat/ChatProps';
22
25
  import type { ChatSoundSystem } from '../book-components/Chat/Chat/ChatProps';
23
26
  import type { ChatProps } from '../book-components/Chat/Chat/ChatProps';
24
27
  import type { ChatSoundToggleProps } from '../book-components/Chat/Chat/ChatSoundToggle';
@@ -230,31 +233,31 @@ import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
230
233
  import type { ModelVariant } from '../types/ModelVariant';
231
234
  import type { NonEmptyArray } from '../types/NonEmptyArray';
232
235
  import type { NonEmptyReadonlyArray } from '../types/NonEmptyArray';
236
+ import type { number_bytes } from '../types/number_bytes';
237
+ import type { number_kilobytes } from '../types/number_bytes';
238
+ import type { number_megabytes } from '../types/number_bytes';
239
+ import type { number_gigabytes } from '../types/number_bytes';
240
+ import type { number_terabytes } from '../types/number_bytes';
241
+ import type { number_id } from '../types/number_id';
242
+ import type { number_linecol_number } from '../types/number_id';
243
+ import type { number_tokens } from '../types/number_id';
244
+ import type { number_likeness } from '../types/number_likeness';
245
+ import type { number_milliseconds } from '../types/number_milliseconds';
246
+ import type { number_seconds } from '../types/number_milliseconds';
247
+ import type { number_minutes } from '../types/number_milliseconds';
248
+ import type { number_hours } from '../types/number_milliseconds';
249
+ import type { number_days } from '../types/number_milliseconds';
250
+ import type { number_weeks } from '../types/number_milliseconds';
251
+ import type { number_months } from '../types/number_milliseconds';
252
+ import type { number_years } from '../types/number_milliseconds';
253
+ import type { number_percent } from '../types/number_percent';
254
+ import type { number_model_temperature } from '../types/number_percent';
255
+ import type { number_seed } from '../types/number_percent';
256
+ import type { number_positive } from '../types/number_positive';
257
+ import type { number_negative } from '../types/number_positive';
258
+ import type { number_integer } from '../types/number_positive';
259
+ import type { number_port } from '../types/number_positive';
233
260
  import type { number_usd } from '../types/number_usd';
234
- import type { number_id } from '../types/number_usd';
235
- import type { number_linecol_number } from '../types/number_usd';
236
- import type { number_tokens } from '../types/number_usd';
237
- import type { number_positive } from '../types/number_usd';
238
- import type { number_negative } from '../types/number_usd';
239
- import type { number_integer } from '../types/number_usd';
240
- import type { number_port } from '../types/number_usd';
241
- import type { number_percent } from '../types/number_usd';
242
- import type { number_model_temperature } from '../types/number_usd';
243
- import type { number_seed } from '../types/number_usd';
244
- import type { number_likeness } from '../types/number_usd';
245
- import type { number_milliseconds } from '../types/number_usd';
246
- import type { number_seconds } from '../types/number_usd';
247
- import type { number_minutes } from '../types/number_usd';
248
- import type { number_hours } from '../types/number_usd';
249
- import type { number_days } from '../types/number_usd';
250
- import type { number_weeks } from '../types/number_usd';
251
- import type { number_months } from '../types/number_usd';
252
- import type { number_years } from '../types/number_usd';
253
- import type { number_bytes } from '../types/number_usd';
254
- import type { number_kilobytes } from '../types/number_usd';
255
- import type { number_megabytes } from '../types/number_usd';
256
- import type { number_gigabytes } from '../types/number_usd';
257
- import type { number_terabytes } from '../types/number_usd';
258
261
  import type { Prompt } from '../types/Prompt';
259
262
  import type { CompletionPrompt } from '../types/Prompt';
260
263
  import type { ChatPrompt } from '../types/Prompt';
@@ -354,9 +357,15 @@ import type { string_app_id } from '../types/string_token';
354
357
  import type { string_user_id } from '../types/string_token';
355
358
  import type { string_mime_type } from '../types/string_url';
356
359
  import type { string_mime_type_with_wildcard } from '../types/string_url';
360
+ import type { string_base64 } from '../types/string_url';
361
+ import type { string_data_url } from '../types/string_url';
357
362
  import type { string_domain } from '../types/string_url';
358
363
  import type { string_origin } from '../types/string_url';
359
364
  import type { string_tdl } from '../types/string_url';
365
+ import type { string_hostname } from '../types/string_url';
366
+ import type { string_host } from '../types/string_url';
367
+ import type { string_protocol } from '../types/string_url';
368
+ import type { string_ip_address } from '../types/string_url';
360
369
  import type { string_url } from '../types/string_url';
361
370
  import type { string_promptbook_server_url } from '../types/string_url';
362
371
  import type { string_base_url } from '../types/string_url';
@@ -364,16 +373,10 @@ import type { string_pipeline_root_url } from '../types/string_url';
364
373
  import type { string_agent_url } from '../types/string_url';
365
374
  import type { string_pipeline_url } from '../types/string_url';
366
375
  import type { string_pipeline_url_with_task_hash } from '../types/string_url';
367
- import type { string_base64 } from '../types/string_url';
368
- import type { string_data_url } from '../types/string_url';
369
376
  import type { string_href } from '../types/string_url';
370
377
  import type { string_url_image } from '../types/string_url';
371
378
  import type { string_uri } from '../types/string_url';
372
379
  import type { string_uri_part } from '../types/string_url';
373
- import type { string_hostname } from '../types/string_url';
374
- import type { string_host } from '../types/string_url';
375
- import type { string_protocol } from '../types/string_url';
376
- import type { string_ip_address } from '../types/string_url';
377
380
  import type { string_email } from '../types/string_url';
378
381
  import type { string_emails } from '../types/string_url';
379
382
  import type { TaskType } from '../types/TaskType';
@@ -443,7 +446,10 @@ export type { AgentChipData };
443
446
  export type { AgentChipProps };
444
447
  export type { ChatFeedbackResponse };
445
448
  export type { ChatFeedbackMode };
449
+ export type { ChatVisualMode };
446
450
  export type { ChatFeedbackTranslations };
451
+ export type { ChatUiTranslations };
452
+ export type { ChatTimingTranslations };
447
453
  export type { ChatSoundSystem };
448
454
  export type { ChatProps };
449
455
  export type { ChatSoundToggleProps };
@@ -655,17 +661,14 @@ export type { EmbeddingModelRequirements };
655
661
  export type { ModelVariant };
656
662
  export type { NonEmptyArray };
657
663
  export type { NonEmptyReadonlyArray };
658
- export type { number_usd };
664
+ export type { number_bytes };
665
+ export type { number_kilobytes };
666
+ export type { number_megabytes };
667
+ export type { number_gigabytes };
668
+ export type { number_terabytes };
659
669
  export type { number_id };
660
670
  export type { number_linecol_number };
661
671
  export type { number_tokens };
662
- export type { number_positive };
663
- export type { number_negative };
664
- export type { number_integer };
665
- export type { number_port };
666
- export type { number_percent };
667
- export type { number_model_temperature };
668
- export type { number_seed };
669
672
  export type { number_likeness };
670
673
  export type { number_milliseconds };
671
674
  export type { number_seconds };
@@ -675,11 +678,14 @@ export type { number_days };
675
678
  export type { number_weeks };
676
679
  export type { number_months };
677
680
  export type { number_years };
678
- export type { number_bytes };
679
- export type { number_kilobytes };
680
- export type { number_megabytes };
681
- export type { number_gigabytes };
682
- export type { number_terabytes };
681
+ export type { number_percent };
682
+ export type { number_model_temperature };
683
+ export type { number_seed };
684
+ export type { number_positive };
685
+ export type { number_negative };
686
+ export type { number_integer };
687
+ export type { number_port };
688
+ export type { number_usd };
683
689
  export type { Prompt };
684
690
  export type { CompletionPrompt };
685
691
  export type { ChatPrompt };
@@ -779,9 +785,15 @@ export type { string_app_id };
779
785
  export type { string_user_id };
780
786
  export type { string_mime_type };
781
787
  export type { string_mime_type_with_wildcard };
788
+ export type { string_base64 };
789
+ export type { string_data_url };
782
790
  export type { string_domain };
783
791
  export type { string_origin };
784
792
  export type { string_tdl };
793
+ export type { string_hostname };
794
+ export type { string_host };
795
+ export type { string_protocol };
796
+ export type { string_ip_address };
785
797
  export type { string_url };
786
798
  export type { string_promptbook_server_url };
787
799
  export type { string_base_url };
@@ -789,16 +801,10 @@ export type { string_pipeline_root_url };
789
801
  export type { string_agent_url };
790
802
  export type { string_pipeline_url };
791
803
  export type { string_pipeline_url_with_task_hash };
792
- export type { string_base64 };
793
- export type { string_data_url };
794
804
  export type { string_href };
795
805
  export type { string_url_image };
796
806
  export type { string_uri };
797
807
  export type { string_uri_part };
798
- export type { string_hostname };
799
- export type { string_host };
800
- export type { string_protocol };
801
- export type { string_ip_address };
802
808
  export type { string_email };
803
809
  export type { string_emails };
804
810
  export type { TaskType };
@@ -1,4 +1,5 @@
1
1
  import type { BookCommitment } from '../../commitments/_base/BookCommitment';
2
+ import type { TeammateProfile } from './TeammateProfileResolver';
2
3
  /**
3
4
  * Resolves compact agent references that appear inside FROM, IMPORT, and TEAM commitments.
4
5
  *
@@ -15,4 +16,14 @@ export type AgentReferenceResolver = {
15
16
  * @param content - Original payload of the commitment
16
17
  */
17
18
  resolveCommitmentContent(commitmentType: BookCommitment, content: string): Promise<string>;
19
+ /**
20
+ * Optional: returns the actual human-readable name and description for a teammate agent URL.
21
+ *
22
+ * When implemented, this enriches TEAM tool definitions with the agent's real name and
23
+ * persona description instead of technical IDs derived from the URL path.
24
+ *
25
+ * @param url - Canonical teammate URL from the resolved TEAM commitment content.
26
+ * @returns Agent profile or `null` when the URL is not resolvable locally.
27
+ */
28
+ resolveTeammateProfile?: (url: string) => Promise<TeammateProfile | null>;
18
29
  };
@@ -1,5 +1,6 @@
1
1
  import type { AgentReferenceResolver } from './AgentReferenceResolver';
2
2
  import type { InlineKnowledgeSourceUploader } from '../../utils/knowledge/inlineKnowledgeSource';
3
+ import type { TeammateProfileResolver } from './TeammateProfileResolver';
3
4
  /**
4
5
  * Options for `createAgentModelRequirements` and `createAgentModelRequirementsWithCommitments`.
5
6
  *
@@ -14,4 +15,11 @@ export type CreateAgentModelRequirementsOptions = {
14
15
  * Optional hook used to upload inline knowledge files before finalizing the requirements.
15
16
  */
16
17
  readonly inlineKnowledgeSourceUploader?: InlineKnowledgeSourceUploader;
18
+ /**
19
+ * Optional resolver that provides actual agent names and descriptions for teammate URLs.
20
+ *
21
+ * When provided, TEAM tools are created with the agent's real human-readable name and
22
+ * persona description rather than technical IDs derived from URL path segments.
23
+ */
24
+ readonly teammateProfileResolver?: TeammateProfileResolver;
17
25
  };
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Profile data for a teammate agent resolved from its source or backend.
3
+ *
4
+ * @private internal type for TEAM commitment profile enrichment
5
+ */
6
+ export type TeammateProfile = {
7
+ /**
8
+ * The human-readable name of the agent.
9
+ */
10
+ readonly agentName: string;
11
+ /**
12
+ * Short description of what the agent does, from its PERSONA commitment.
13
+ */
14
+ readonly personaDescription: string | null;
15
+ };
16
+ /**
17
+ * Resolves profile data for teammate agents referenced in TEAM commitments.
18
+ *
19
+ * Implementations are expected to return the actual human-readable name and
20
+ * description of each teammate agent identified by URL, so TEAM tools can be
21
+ * created with meaningful labels and descriptions rather than technical IDs.
22
+ *
23
+ * @private internal type for TEAM commitment profile enrichment
24
+ */
25
+ export type TeammateProfileResolver = {
26
+ /**
27
+ * Returns profile data for the given teammate agent URL.
28
+ *
29
+ * @param url - Canonical teammate URL from the resolved TEAM commitment content.
30
+ * @returns Teammate profile or `null` when the URL cannot be resolved locally.
31
+ */
32
+ resolveTeammateProfile(url: string): Promise<TeammateProfile | null>;
33
+ };
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Builds a deterministic TEAM tool name from teammate identity.
2
+ * Builds a deterministic TEAM tool name from the teammate label.
3
3
  *
4
- * The readable part is based on teammate label while the hash suffix
5
- * keeps uniqueness and stable mapping for the underlying teammate URL.
4
+ * The tool name is derived solely from the human-readable label so that it
5
+ * remains stable and predictable regardless of internal technical identifiers.
6
6
  *
7
- * @param teammateUrl - Canonical teammate URL used at runtime.
8
- * @param teammateLabel - Human-readable teammate label.
9
- * @returns Deterministic TEAM tool name.
7
+ * @param _teammateUrl - Canonical teammate URL (kept for API compatibility, not used).
8
+ * @param teammateLabel - Human-readable teammate label used as the basis for the name.
9
+ * @returns TEAM tool name derived from the label.
10
10
  * @private internal utility of TEAM commitments and chat UI mapping
11
11
  */
12
- export declare function createTeamToolName(teammateUrl: string, teammateLabel?: string): string;
12
+ export declare function createTeamToolName(_teammateUrl: string, teammateLabel?: string): string;
@@ -3,6 +3,7 @@ import type { Promisable } from 'type-fest';
3
3
  import type { string_chat_format_name } from '../save/_common/string_chat_format_name';
4
4
  import type { ChatMessage } from '../types/ChatMessage';
5
5
  import type { ChatParticipant } from '../types/ChatParticipant';
6
+ import type { ChatUiTranslations } from './ChatProps';
6
7
  /**
7
8
  * Props for the Chat actions toolbar.
8
9
  *
@@ -25,6 +26,10 @@ export type ChatActionsBarProps = {
25
26
  * Disables action interactions while scroll is active.
26
27
  */
27
28
  shouldDisableActions: boolean;
29
+ /**
30
+ * Optional localized labels for Chat UI strings such as button labels.
31
+ */
32
+ chatUiTranslations?: ChatUiTranslations;
28
33
  onButtonClick: (handler?: (event: MouseEvent<HTMLButtonElement>) => void) => (event: MouseEvent<HTMLButtonElement>) => void;
29
34
  };
30
35
  /**
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Props for `<ChatInputAreaDictationPanel/>`.
3
+ *
4
+ * @private component of `<ChatInputArea/>`
5
+ */
6
+ export type ChatInputAreaDictationPanelProps = {
7
+ bubbleText?: string;
8
+ bubbleTone?: 'neutral' | 'recording' | 'processing' | 'error';
9
+ shouldShowPanel: boolean;
10
+ isExpanded: boolean;
11
+ interimText: string;
12
+ error: {
13
+ code?: string;
14
+ message: string;
15
+ } | null;
16
+ lastFinalChunk: string;
17
+ editableChunk: string;
18
+ canBacktrack: boolean;
19
+ dictationSettings: {
20
+ readonly autoPunctuation: boolean;
21
+ readonly autoCapitalization: boolean;
22
+ readonly removeFillerWords: boolean;
23
+ readonly formatLists: boolean;
24
+ readonly whisperMode: boolean;
25
+ };
26
+ isBrowserSpeechFallbackSupported: boolean;
27
+ canOpenBrowserSettings: boolean;
28
+ onToggleExpanded: () => void;
29
+ onExpand: () => void;
30
+ onEditableChunkChange: (nextValue: string) => void;
31
+ onRetryPermissionRequest: () => void;
32
+ onOpenBrowserSettings: () => void;
33
+ onApplyCorrection: () => void;
34
+ onBacktrackLastChunk: () => void;
35
+ onDictationSettingChange: (settingName: 'autoPunctuation' | 'autoCapitalization' | 'removeFillerWords' | 'formatLists' | 'whisperMode', checked: boolean) => void;
36
+ };
37
+ /**
38
+ * Renders speech-status details, transcript correction controls, and dictation settings.
39
+ *
40
+ * @private component of `<ChatInputArea/>`
41
+ */
42
+ export declare function ChatInputAreaDictationPanel(props: ChatInputAreaDictationPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -9,7 +9,7 @@ import type { ChatProps } from './ChatProps';
9
9
  *
10
10
  * @private props for internal subcomponent
11
11
  */
12
- type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'participants'> & {
12
+ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'onQuickMessageButton' | 'participants'> & {
13
13
  message: ChatMessage;
14
14
  participant: ChatParticipant | undefined;
15
15
  isLastMessage: boolean;
@@ -34,6 +34,14 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'pa
34
34
  * Optional localized labels used by feedback controls.
35
35
  */
36
36
  feedbackTranslations?: ChatProps['feedbackTranslations'];
37
+ /**
38
+ * Optional localized labels used by timestamp metadata.
39
+ */
40
+ timingTranslations?: ChatProps['timingTranslations'];
41
+ /**
42
+ * Optional moment locale used to format message timestamps.
43
+ */
44
+ chatLocale?: ChatProps['chatLocale'];
37
45
  /**
38
46
  * Called when the copy button is pressed.
39
47
  */
@@ -51,11 +59,15 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'pa
51
59
  * Optional metadata about teammates for team tool calls
52
60
  * Maps tool name to agent information
53
61
  */
54
- teammates?: TeammatesMap;
62
+ teammates?: ChatProps['teammates'];
55
63
  /**
56
64
  * Optional cached metadata keyed by TEAM tool names to enrich tool call chips.
57
65
  */
58
66
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
67
+ /**
68
+ * Controls whether assistant replies render as bubbles or article blocks.
69
+ */
70
+ CHAT_VISUAL_MODE?: ChatProps['CHAT_VISUAL_MODE'];
59
71
  /**
60
72
  * Called when a tool call chiplet is clicked.
61
73
  */
@@ -73,20 +85,11 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'pa
73
85
  */
74
86
  isSpeechPlaybackEnabled?: ChatProps['isSpeechPlaybackEnabled'];
75
87
  readonly elevenLabsVoiceId?: ChatProps['elevenLabsVoiceId'];
88
+ /**
89
+ * Optional localized labels for Chat UI elements such as lifecycle badges.
90
+ */
91
+ chatUiTranslations?: ChatProps['chatUiTranslations'];
76
92
  };
77
- /**
78
- * Metadata for a teammate agent tool.
79
- */
80
- type TeammateMetadata = {
81
- url: string;
82
- label?: string;
83
- instructions?: string;
84
- toolName: string;
85
- };
86
- /**
87
- * Lookup map of teammate metadata by tool name.
88
- */
89
- type TeammatesMap = Record<string, TeammateMetadata>;
90
93
  /**
91
94
  * Renders a single chat message item with avatar, content, buttons, and rating.
92
95
  *
@@ -1,2 +1,2 @@
1
1
  /** @jest-environment jsdom */
2
- export {};
2
+ import 'moment/locale/cs';
@@ -28,18 +28,32 @@ export type ChatMessageListProps = {
28
28
  * Optional localized labels used by feedback controls.
29
29
  */
30
30
  feedbackTranslations?: ChatProps['feedbackTranslations'];
31
+ /**
32
+ * Optional localized labels used by timestamp metadata.
33
+ */
34
+ timingTranslations?: ChatProps['timingTranslations'];
35
+ /**
36
+ * Optional moment locale used to format message timestamps.
37
+ */
38
+ chatLocale?: ChatProps['chatLocale'];
31
39
  onCopy?: () => void;
32
40
  onMessage?: (messageContent: string) => Promisable<void>;
33
41
  onActionButton?: ChatProps['onActionButton'];
42
+ onQuickMessageButton?: ChatProps['onQuickMessageButton'];
34
43
  onCreateAgent?: (bookContent: string) => void;
35
44
  toolTitles?: Record<string, string>;
36
45
  teammates?: ChatProps['teammates'];
37
46
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
47
+ CHAT_VISUAL_MODE?: ChatProps['CHAT_VISUAL_MODE'];
38
48
  onToolCallClick?: (toolCall: NonNullable<ChatMessage['toolCalls']>[number]) => void;
39
49
  onCitationClick?: (citation: ParsedCitation) => void;
40
50
  soundSystem?: ChatProps['soundSystem'];
41
51
  isSpeechPlaybackEnabled?: ChatProps['isSpeechPlaybackEnabled'];
42
52
  elevenLabsVoiceId?: ChatProps['elevenLabsVoiceId'];
53
+ /**
54
+ * Optional localized labels for Chat UI elements such as lifecycle badges.
55
+ */
56
+ chatUiTranslations?: ChatProps['chatUiTranslations'];
43
57
  setChatMessagesElement: (element: HTMLDivElement | null) => void;
44
58
  onScroll: (event: UIEvent<HTMLDivElement>) => void;
45
59
  chatMessagesClassName?: string;
@@ -0,0 +1,32 @@
1
+ import type { ChatMessage } from '../types/ChatMessage';
2
+ import type { ChatMessageContentSegment } from '../utils/splitMessageContentIntoSegments';
3
+ import { type StreamingFeaturePlaceholderKind } from './StreamingFeaturePlaceholder';
4
+ /**
5
+ * Props for rendering the rich message-body content area.
6
+ *
7
+ * @private internal component of `<ChatMessageItem/>`
8
+ */
9
+ export type ChatMessageRichContentProps = {
10
+ /**
11
+ * Raw message content used for loading-state detection.
12
+ */
13
+ readonly content: ChatMessage['content'];
14
+ /**
15
+ * Pre-split message content segments in their render order.
16
+ */
17
+ readonly contentSegments: ReadonlyArray<ChatMessageContentSegment>;
18
+ /**
19
+ * Optional placeholder shown while a rich feature is still streaming.
20
+ */
21
+ readonly streamingFeaturePlaceholderKind: StreamingFeaturePlaceholderKind | null;
22
+ /**
23
+ * Optional callback for creating a new agent from a book code block.
24
+ */
25
+ readonly onCreateAgent?: (bookContent: string) => void;
26
+ };
27
+ /**
28
+ * Renders markdown, code blocks, maps, and generated-image placeholders for one message.
29
+ *
30
+ * @private internal component of `<ChatMessageItem/>`
31
+ */
32
+ export declare function ChatMessageRichContent(props: ChatMessageRichContentProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,22 @@
1
+ import type { ToolCallChipEntry } from './createChatMessageToolCallRenderModel';
2
+ /**
3
+ * Props for rendering the tool-call chip list below one chat message.
4
+ *
5
+ * @private internal component of `<ChatMessageItem/>`
6
+ */
7
+ export type ChatMessageToolCallChipsProps = {
8
+ /**
9
+ * Tool-call chip entries to render.
10
+ */
11
+ readonly chips: ReadonlyArray<ToolCallChipEntry>;
12
+ /**
13
+ * Optional click handler for opening tool-call details.
14
+ */
15
+ readonly onToolCallClick?: (toolCall: ToolCallChipEntry['toolCall']) => void;
16
+ };
17
+ /**
18
+ * Renders tool-call chips below one chat message.
19
+ *
20
+ * @private internal component of `<ChatMessageItem/>`
21
+ */
22
+ export declare function ChatMessageToolCallChips({ chips, onToolCallClick }: ChatMessageToolCallChipsProps): import("react/jsx-runtime").JSX.Element | null;