@promptbook/cli 0.112.0-32 → 0.112.0-34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. package/esm/index.es.js +571 -538
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/scripts/find-fresh-emoji-tags/find-fresh-emoji-tags.d.ts +1 -3
  4. package/esm/scripts/find-refactor-candidates/analyzeSourceFileForRefactorCandidate.d.ts +27 -0
  5. package/esm/scripts/find-refactor-candidates/buildPromptContent.d.ts +8 -0
  6. package/esm/scripts/find-refactor-candidates/find-refactor-candidates.d.ts +1 -3
  7. package/esm/scripts/find-refactor-candidates/findRefactorCandidatesInProject.d.ts +8 -0
  8. package/esm/scripts/find-refactor-candidates/loadExistingPromptTargets.d.ts +7 -0
  9. package/esm/scripts/find-refactor-candidates/normalizeRefactorCandidatePath.d.ts +7 -0
  10. package/esm/scripts/find-refactor-candidates/writeRefactorCandidatePrompts.d.ts +27 -0
  11. package/esm/scripts/utils/autocommit/isWorkingTreeClean.d.ts +1 -3
  12. package/esm/src/_packages/types.index.d.ts +49 -49
  13. package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  14. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
  15. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  16. package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -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/renderEmailToolCallDetails.d.ts +26 -0
  21. package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  22. package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  23. package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  24. package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  25. package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  26. package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  27. package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  28. package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  29. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
  30. package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  31. package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  32. package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  33. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  34. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  35. package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  36. package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  37. package/esm/src/cli/$runPromptbookCli.d.ts +1 -3
  38. package/esm/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  39. package/esm/src/cli/cli-commands/about.d.ts +1 -1
  40. package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  41. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  42. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  43. package/esm/src/cli/cli-commands/coder/init.d.ts +2 -4
  44. package/esm/src/cli/cli-commands/coder/run.d.ts +2 -4
  45. package/esm/src/cli/cli-commands/coder/verify.d.ts +2 -4
  46. package/esm/src/cli/cli-commands/coder.d.ts +2 -4
  47. package/esm/src/cli/cli-commands/hello.d.ts +1 -1
  48. package/esm/src/cli/cli-commands/list-models.d.ts +2 -4
  49. package/esm/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  50. package/esm/src/cli/cli-commands/login.d.ts +1 -1
  51. package/esm/src/cli/cli-commands/make.d.ts +1 -1
  52. package/esm/src/cli/cli-commands/prettify.d.ts +1 -1
  53. package/esm/src/cli/cli-commands/run.d.ts +1 -1
  54. package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  55. package/esm/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  56. package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  57. package/esm/src/cli/cli-commands/test-command.d.ts +1 -1
  58. package/esm/src/cli/main.d.ts +2 -4
  59. package/esm/src/cli/promptbookCli.d.ts +1 -1
  60. package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  61. package/esm/src/conversion/archive/loadArchive.d.ts +1 -3
  62. package/esm/src/conversion/archive/saveArchive.d.ts +1 -1
  63. package/esm/src/conversion/validation/_importPipeline.d.ts +2 -4
  64. package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  65. package/esm/src/executables/$provideExecutablesForNode.d.ts +1 -1
  66. package/esm/src/executables/apps/locateLibreoffice.d.ts +2 -4
  67. package/esm/src/executables/apps/locatePandoc.d.ts +2 -4
  68. package/esm/src/executables/locateApp.d.ts +2 -4
  69. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  70. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  71. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  72. package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  73. package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  74. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  75. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  76. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  77. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  78. package/esm/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  79. package/esm/src/llm-providers/agent/playground/playground.d.ts +1 -1
  80. package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  81. package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  82. package/esm/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  83. package/esm/src/llm-providers/openai/playground/playground.d.ts +2 -4
  84. package/esm/src/llm-providers/remote/playground/playground.d.ts +1 -3
  85. package/esm/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  86. package/esm/src/playground/permanent/_boilerplate.d.ts +1 -3
  87. package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  88. package/esm/src/playground/permanent/error-handling-playground.d.ts +1 -3
  89. package/esm/src/playground/playground.d.ts +2 -4
  90. package/esm/src/remote-server/startAgentServer.d.ts +1 -3
  91. package/esm/src/remote-server/startRemoteServer.d.ts +1 -2
  92. package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  93. package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  94. package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  95. package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  96. package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  97. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  98. package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -1
  99. package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  100. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  101. package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  102. package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  103. package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  104. package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  105. package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  106. package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  107. package/esm/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  108. package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  109. package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  110. package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  111. package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  112. package/esm/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  113. package/esm/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  114. package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  115. package/esm/src/types/InputParameters_private.d.ts +11 -0
  116. package/esm/src/types/Parameters_private.d.ts +16 -0
  117. package/esm/src/types/ReservedParameters_private.d.ts +10 -0
  118. package/esm/src/types/number_bytes.d.ts +21 -0
  119. package/esm/src/types/number_id.d.ts +13 -0
  120. package/esm/src/types/number_likeness.d.ts +8 -0
  121. package/esm/src/types/number_milliseconds.d.ts +33 -0
  122. package/esm/src/types/number_percent.d.ts +18 -0
  123. package/esm/src/types/number_positive.d.ts +16 -0
  124. package/esm/src/types/number_usd.d.ts +6 -106
  125. package/esm/src/types/string_agent_hash_private.d.ts +9 -0
  126. package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
  127. package/esm/src/types/string_agent_name_private.d.ts +9 -0
  128. package/esm/src/types/string_agent_permanent_id_private.d.ts +10 -0
  129. package/esm/src/types/string_base64_private.d.ts +17 -0
  130. package/esm/src/types/string_business_category_name_private.d.ts +6 -0
  131. package/esm/src/types/string_char_private.d.ts +8 -0
  132. package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
  133. package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
  134. package/esm/src/types/string_email_private.d.ts +16 -0
  135. package/esm/src/types/string_host_private.d.ts +55 -0
  136. package/esm/src/types/string_mime_type_private.d.ts +17 -0
  137. package/esm/src/types/string_model_description_private.d.ts +8 -0
  138. package/esm/src/types/string_model_name_private.d.ts +8 -0
  139. package/esm/src/types/string_name_private.d.ts +9 -0
  140. package/esm/src/types/string_page_private.d.ts +9 -0
  141. package/esm/src/types/string_parameter_name.d.ts +74 -31
  142. package/esm/src/types/string_parameter_value_private.d.ts +9 -0
  143. package/esm/src/types/string_persona_description_private.d.ts +8 -0
  144. package/esm/src/types/string_prompt_image_private.d.ts +8 -0
  145. package/esm/src/types/string_prompt_private.d.ts +8 -0
  146. package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  147. package/esm/src/types/string_system_message_private.d.ts +9 -0
  148. package/esm/src/types/string_template_private.d.ts +8 -0
  149. package/esm/src/types/string_text_prompt_private.d.ts +9 -0
  150. package/esm/src/types/string_title_private.d.ts +9 -0
  151. package/esm/src/types/string_url.d.ts +50 -46
  152. package/esm/src/types/string_url_private.d.ts +88 -0
  153. package/esm/src/types/typeAliases.d.ts +7 -1
  154. package/esm/src/utils/execCommand/$execCommand.d.ts +1 -3
  155. package/esm/src/utils/execCommand/$execCommands.d.ts +1 -3
  156. package/esm/src/utils/files/$induceBookDownload.d.ts +1 -3
  157. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -3
  158. package/esm/src/utils/files/ObjectUrl.d.ts +1 -3
  159. package/esm/src/version.d.ts +1 -1
  160. package/esm/src/wizard/$getCompiledBook.d.ts +2 -4
  161. package/esm/src/wizard/wizard.d.ts +2 -4
  162. package/package.json +1 -1
  163. package/umd/index.umd.js +571 -538
  164. package/umd/index.umd.js.map +1 -1
  165. package/umd/scripts/find-fresh-emoji-tags/find-fresh-emoji-tags.d.ts +1 -3
  166. package/umd/scripts/find-refactor-candidates/analyzeSourceFileForRefactorCandidate.d.ts +27 -0
  167. package/umd/scripts/find-refactor-candidates/buildPromptContent.d.ts +8 -0
  168. package/umd/scripts/find-refactor-candidates/find-refactor-candidates.d.ts +1 -3
  169. package/umd/scripts/find-refactor-candidates/findRefactorCandidatesInProject.d.ts +8 -0
  170. package/umd/scripts/find-refactor-candidates/loadExistingPromptTargets.d.ts +7 -0
  171. package/umd/scripts/find-refactor-candidates/normalizeRefactorCandidatePath.d.ts +7 -0
  172. package/umd/scripts/find-refactor-candidates/writeRefactorCandidatePrompts.d.ts +27 -0
  173. package/umd/scripts/utils/autocommit/isWorkingTreeClean.d.ts +1 -3
  174. package/umd/src/_packages/types.index.d.ts +49 -49
  175. package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
  176. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
  177. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
  178. package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  179. package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
  180. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  181. package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  182. package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
  183. package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
  184. package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
  185. package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
  186. package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
  187. package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
  188. package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
  189. package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
  190. package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
  191. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
  192. package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
  193. package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
  194. package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
  195. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  196. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
  197. package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  198. package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  199. package/umd/src/cli/$runPromptbookCli.d.ts +1 -3
  200. package/umd/src/cli/cli-commands/_boilerplate.d.ts +2 -4
  201. package/umd/src/cli/cli-commands/about.d.ts +1 -1
  202. package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
  203. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
  204. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
  205. package/umd/src/cli/cli-commands/coder/init.d.ts +2 -4
  206. package/umd/src/cli/cli-commands/coder/run.d.ts +2 -4
  207. package/umd/src/cli/cli-commands/coder/verify.d.ts +2 -4
  208. package/umd/src/cli/cli-commands/coder.d.ts +2 -4
  209. package/umd/src/cli/cli-commands/hello.d.ts +1 -1
  210. package/umd/src/cli/cli-commands/list-models.d.ts +2 -4
  211. package/umd/src/cli/cli-commands/list-scrapers.d.ts +2 -4
  212. package/umd/src/cli/cli-commands/login.d.ts +1 -1
  213. package/umd/src/cli/cli-commands/make.d.ts +1 -1
  214. package/umd/src/cli/cli-commands/prettify.d.ts +1 -1
  215. package/umd/src/cli/cli-commands/run.d.ts +1 -1
  216. package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
  217. package/umd/src/cli/cli-commands/start-agents-server.d.ts +2 -4
  218. package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
  219. package/umd/src/cli/cli-commands/test-command.d.ts +1 -1
  220. package/umd/src/cli/main.d.ts +2 -4
  221. package/umd/src/cli/promptbookCli.d.ts +1 -1
  222. package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
  223. package/umd/src/conversion/archive/loadArchive.d.ts +1 -3
  224. package/umd/src/conversion/archive/saveArchive.d.ts +1 -1
  225. package/umd/src/conversion/validation/_importPipeline.d.ts +2 -4
  226. package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
  227. package/umd/src/executables/$provideExecutablesForNode.d.ts +1 -1
  228. package/umd/src/executables/apps/locateLibreoffice.d.ts +2 -4
  229. package/umd/src/executables/apps/locatePandoc.d.ts +2 -4
  230. package/umd/src/executables/locateApp.d.ts +2 -4
  231. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
  232. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
  233. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
  234. package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
  235. package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
  236. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
  237. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  238. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
  239. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
  240. package/umd/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
  241. package/umd/src/llm-providers/agent/playground/playground.d.ts +1 -1
  242. package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
  243. package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
  244. package/umd/src/llm-providers/ollama/playground/playground.d.ts +2 -4
  245. package/umd/src/llm-providers/openai/playground/playground.d.ts +2 -4
  246. package/umd/src/llm-providers/remote/playground/playground.d.ts +1 -3
  247. package/umd/src/llm-providers/vercel/playground/playground.d.ts +2 -4
  248. package/umd/src/playground/permanent/_boilerplate.d.ts +1 -3
  249. package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
  250. package/umd/src/playground/permanent/error-handling-playground.d.ts +1 -3
  251. package/umd/src/playground/playground.d.ts +2 -4
  252. package/umd/src/remote-server/startAgentServer.d.ts +1 -3
  253. package/umd/src/remote-server/startRemoteServer.d.ts +1 -2
  254. package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
  255. package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
  256. package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
  257. package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
  258. package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
  259. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  260. package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -1
  261. package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
  262. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  263. package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
  264. package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
  265. package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
  266. package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
  267. package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  268. package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
  269. package/umd/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  270. package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
  271. package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
  272. package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
  273. package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
  274. package/umd/src/storage/local-storage/getLocalStorage.d.ts +1 -3
  275. package/umd/src/storage/local-storage/getSessionStorage.d.ts +1 -3
  276. package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
  277. package/umd/src/types/InputParameters_private.d.ts +11 -0
  278. package/umd/src/types/Parameters_private.d.ts +16 -0
  279. package/umd/src/types/ReservedParameters_private.d.ts +10 -0
  280. package/umd/src/types/number_bytes.d.ts +21 -0
  281. package/umd/src/types/number_id.d.ts +13 -0
  282. package/umd/src/types/number_likeness.d.ts +8 -0
  283. package/umd/src/types/number_milliseconds.d.ts +33 -0
  284. package/umd/src/types/number_percent.d.ts +18 -0
  285. package/umd/src/types/number_positive.d.ts +16 -0
  286. package/umd/src/types/number_usd.d.ts +6 -106
  287. package/umd/src/types/string_agent_hash_private.d.ts +9 -0
  288. package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
  289. package/umd/src/types/string_agent_name_private.d.ts +9 -0
  290. package/umd/src/types/string_agent_permanent_id_private.d.ts +10 -0
  291. package/umd/src/types/string_base64_private.d.ts +17 -0
  292. package/umd/src/types/string_business_category_name_private.d.ts +6 -0
  293. package/umd/src/types/string_char_private.d.ts +8 -0
  294. package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
  295. package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
  296. package/umd/src/types/string_email_private.d.ts +16 -0
  297. package/umd/src/types/string_host_private.d.ts +55 -0
  298. package/umd/src/types/string_mime_type_private.d.ts +17 -0
  299. package/umd/src/types/string_model_description_private.d.ts +8 -0
  300. package/umd/src/types/string_model_name_private.d.ts +8 -0
  301. package/umd/src/types/string_name_private.d.ts +9 -0
  302. package/umd/src/types/string_page_private.d.ts +9 -0
  303. package/umd/src/types/string_parameter_name.d.ts +74 -31
  304. package/umd/src/types/string_parameter_value_private.d.ts +9 -0
  305. package/umd/src/types/string_persona_description_private.d.ts +8 -0
  306. package/umd/src/types/string_prompt_image_private.d.ts +8 -0
  307. package/umd/src/types/string_prompt_private.d.ts +8 -0
  308. package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  309. package/umd/src/types/string_system_message_private.d.ts +9 -0
  310. package/umd/src/types/string_template_private.d.ts +8 -0
  311. package/umd/src/types/string_text_prompt_private.d.ts +9 -0
  312. package/umd/src/types/string_title_private.d.ts +9 -0
  313. package/umd/src/types/string_url.d.ts +50 -46
  314. package/umd/src/types/string_url_private.d.ts +88 -0
  315. package/umd/src/types/typeAliases.d.ts +7 -1
  316. package/umd/src/utils/execCommand/$execCommand.d.ts +1 -3
  317. package/umd/src/utils/execCommand/$execCommands.d.ts +1 -3
  318. package/umd/src/utils/files/$induceBookDownload.d.ts +1 -3
  319. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -3
  320. package/umd/src/utils/files/ObjectUrl.d.ts +1 -3
  321. package/umd/src/version.d.ts +1 -1
  322. package/umd/src/wizard/$getCompiledBook.d.ts +2 -4
  323. package/umd/src/wizard/wizard.d.ts +2 -4
@@ -4,6 +4,4 @@
4
4
  * @public exported from `@promptbook/cli`
5
5
  */
6
6
  export declare function findFreshEmojiTag(): Promise<void>;
7
- /**
8
- * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
9
- */
7
+ /** Note: [🟡] Code for CLI support script [find-fresh-emoji-tags](scripts/find-fresh-emoji-tags/find-fresh-emoji-tags.ts) should never be published outside of `@promptbook/cli` */
@@ -0,0 +1,27 @@
1
+ import type { RefactorCandidate } from './RefactorCandidate';
2
+ /**
3
+ * Input required to analyze one source file for refactor candidacy.
4
+ *
5
+ * @private type of findRefactorCandidates
6
+ */
7
+ export type AnalyzeSourceFileForRefactorCandidateOptions = {
8
+ /**
9
+ * Absolute path to the source file.
10
+ */
11
+ readonly filePath: string;
12
+ /**
13
+ * Repository root used for relative path generation.
14
+ */
15
+ readonly rootDir: string;
16
+ /**
17
+ * Normalized absolute paths exempt from line-count checks.
18
+ */
19
+ readonly lineCountExemptPaths: ReadonlySet<string>;
20
+ };
21
+ /**
22
+ * Resolves whether a source file should produce a refactor candidate entry.
23
+ *
24
+ * @private function of findRefactorCandidates
25
+ */
26
+ export declare function analyzeSourceFileForRefactorCandidate(options: AnalyzeSourceFileForRefactorCandidateOptions): Promise<RefactorCandidate | null>;
27
+ /** Note: [🟡] Code for repository script [analyzeSourceFileForRefactorCandidate](scripts/find-refactor-candidates/analyzeSourceFileForRefactorCandidate.ts) should never be published outside of `@promptbook/cli` */
@@ -0,0 +1,8 @@
1
+ import type { RefactorCandidate } from './RefactorCandidate';
2
+ /**
3
+ * Builds prompt content for a refactor candidate.
4
+ *
5
+ * @private function of findRefactorCandidates
6
+ */
7
+ export declare function buildPromptContent(candidate: RefactorCandidate, emojiTag: string): string;
8
+ /** Note: [🟡] Code for repository script [buildPromptContent](scripts/find-refactor-candidates/buildPromptContent.ts) should never be published outside of `@promptbook/cli` */
@@ -4,6 +4,4 @@
4
4
  * @public exported from `@promptbook/cli`
5
5
  */
6
6
  export declare function findRefactorCandidates(): Promise<void>;
7
- /**
8
- * Note: [?] Code in this file should never be published in any package
9
- */
7
+ /** Note: [🟡] Code for repository script [find-refactor-candidates](scripts/find-refactor-candidates/find-refactor-candidates.ts) should never be published outside of `@promptbook/cli` */
@@ -0,0 +1,8 @@
1
+ import type { RefactorCandidate } from './RefactorCandidate';
2
+ /**
3
+ * Scans the repository and returns all files that qualify as refactor candidates.
4
+ *
5
+ * @private function of findRefactorCandidates
6
+ */
7
+ export declare function findRefactorCandidatesInProject(rootDir: string): Promise<ReadonlyArray<RefactorCandidate>>;
8
+ /** Note: [🟡] Code for repository script [findRefactorCandidatesInProject](scripts/find-refactor-candidates/findRefactorCandidatesInProject.ts) should never be published outside of `@promptbook/cli` */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Collects all repo-relative target paths already referenced in prompts.
3
+ *
4
+ * @private function of findRefactorCandidates
5
+ */
6
+ export declare function loadExistingPromptTargets(promptsDir: string): Promise<Set<string>>;
7
+ /** Note: [🟡] Code for repository script [loadExistingPromptTargets](scripts/find-refactor-candidates/loadExistingPromptTargets.ts) should never be published outside of `@promptbook/cli` */
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Normalizes a repo-relative path to use forward slashes.
3
+ *
4
+ * @private function of findRefactorCandidates
5
+ */
6
+ export declare function normalizeRefactorCandidatePath(pathValue: string): string;
7
+ /** Note: [🟡] Code for repository script [normalizeRefactorCandidatePath](scripts/find-refactor-candidates/normalizeRefactorCandidatePath.ts) should never be published outside of `@promptbook/cli`*/
@@ -0,0 +1,27 @@
1
+ import type { RefactorCandidate } from './RefactorCandidate';
2
+ /**
3
+ * Input required to create prompt files for refactor candidates.
4
+ *
5
+ * @private type of findRefactorCandidates
6
+ */
7
+ export type WriteRefactorCandidatePromptsOptions = {
8
+ /**
9
+ * Candidates that still need prompt files.
10
+ */
11
+ readonly candidates: ReadonlyArray<RefactorCandidate>;
12
+ /**
13
+ * Repository root used for fresh emoji scanning.
14
+ */
15
+ readonly rootDir: string;
16
+ /**
17
+ * Prompts directory where files should be written.
18
+ */
19
+ readonly promptsDir: string;
20
+ };
21
+ /**
22
+ * Creates prompt files for each refactor candidate and returns written filenames.
23
+ *
24
+ * @private function of findRefactorCandidates
25
+ */
26
+ export declare function writeRefactorCandidatePrompts(options: WriteRefactorCandidatePromptsOptions): Promise<ReadonlyArray<string>>;
27
+ /** Note: [🟡] Code for repository script [writeRefactorCandidatePrompts](scripts/find-refactor-candidates/writeRefactorCandidatePrompts.ts) should never be published outside of `@promptbook/cli` */
@@ -1,4 +1,2 @@
1
1
  export declare function isWorkingTreeClean(path: string): Promise<boolean>;
2
- /**
3
- * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
4
- */
2
+ /** Note: [🟡] Code for CLI support script [isWorkingTreeClean](scripts/utils/autocommit/isWorkingTreeClean.ts) should never be published outside of `@promptbook/cli` */
@@ -233,31 +233,31 @@ import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
233
233
  import type { ModelVariant } from '../types/ModelVariant';
234
234
  import type { NonEmptyArray } from '../types/NonEmptyArray';
235
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';
236
260
  import type { number_usd } from '../types/number_usd';
237
- import type { number_id } from '../types/number_usd';
238
- import type { number_linecol_number } from '../types/number_usd';
239
- import type { number_tokens } from '../types/number_usd';
240
- import type { number_positive } from '../types/number_usd';
241
- import type { number_negative } from '../types/number_usd';
242
- import type { number_integer } from '../types/number_usd';
243
- import type { number_port } from '../types/number_usd';
244
- import type { number_percent } from '../types/number_usd';
245
- import type { number_model_temperature } from '../types/number_usd';
246
- import type { number_seed } from '../types/number_usd';
247
- import type { number_likeness } from '../types/number_usd';
248
- import type { number_milliseconds } from '../types/number_usd';
249
- import type { number_seconds } from '../types/number_usd';
250
- import type { number_minutes } from '../types/number_usd';
251
- import type { number_hours } from '../types/number_usd';
252
- import type { number_days } from '../types/number_usd';
253
- import type { number_weeks } from '../types/number_usd';
254
- import type { number_months } from '../types/number_usd';
255
- import type { number_years } from '../types/number_usd';
256
- import type { number_bytes } from '../types/number_usd';
257
- import type { number_kilobytes } from '../types/number_usd';
258
- import type { number_megabytes } from '../types/number_usd';
259
- import type { number_gigabytes } from '../types/number_usd';
260
- import type { number_terabytes } from '../types/number_usd';
261
261
  import type { Prompt } from '../types/Prompt';
262
262
  import type { CompletionPrompt } from '../types/Prompt';
263
263
  import type { ChatPrompt } from '../types/Prompt';
@@ -357,9 +357,15 @@ import type { string_app_id } from '../types/string_token';
357
357
  import type { string_user_id } from '../types/string_token';
358
358
  import type { string_mime_type } from '../types/string_url';
359
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';
360
362
  import type { string_domain } from '../types/string_url';
361
363
  import type { string_origin } from '../types/string_url';
362
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';
363
369
  import type { string_url } from '../types/string_url';
364
370
  import type { string_promptbook_server_url } from '../types/string_url';
365
371
  import type { string_base_url } from '../types/string_url';
@@ -367,16 +373,10 @@ import type { string_pipeline_root_url } from '../types/string_url';
367
373
  import type { string_agent_url } from '../types/string_url';
368
374
  import type { string_pipeline_url } from '../types/string_url';
369
375
  import type { string_pipeline_url_with_task_hash } from '../types/string_url';
370
- import type { string_base64 } from '../types/string_url';
371
- import type { string_data_url } from '../types/string_url';
372
376
  import type { string_href } from '../types/string_url';
373
377
  import type { string_url_image } from '../types/string_url';
374
378
  import type { string_uri } from '../types/string_url';
375
379
  import type { string_uri_part } from '../types/string_url';
376
- import type { string_hostname } from '../types/string_url';
377
- import type { string_host } from '../types/string_url';
378
- import type { string_protocol } from '../types/string_url';
379
- import type { string_ip_address } from '../types/string_url';
380
380
  import type { string_email } from '../types/string_url';
381
381
  import type { string_emails } from '../types/string_url';
382
382
  import type { TaskType } from '../types/TaskType';
@@ -661,17 +661,14 @@ export type { EmbeddingModelRequirements };
661
661
  export type { ModelVariant };
662
662
  export type { NonEmptyArray };
663
663
  export type { NonEmptyReadonlyArray };
664
- 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 };
665
669
  export type { number_id };
666
670
  export type { number_linecol_number };
667
671
  export type { number_tokens };
668
- export type { number_positive };
669
- export type { number_negative };
670
- export type { number_integer };
671
- export type { number_port };
672
- export type { number_percent };
673
- export type { number_model_temperature };
674
- export type { number_seed };
675
672
  export type { number_likeness };
676
673
  export type { number_milliseconds };
677
674
  export type { number_seconds };
@@ -681,11 +678,14 @@ export type { number_days };
681
678
  export type { number_weeks };
682
679
  export type { number_months };
683
680
  export type { number_years };
684
- export type { number_bytes };
685
- export type { number_kilobytes };
686
- export type { number_megabytes };
687
- export type { number_gigabytes };
688
- 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 };
689
689
  export type { Prompt };
690
690
  export type { CompletionPrompt };
691
691
  export type { ChatPrompt };
@@ -785,9 +785,15 @@ export type { string_app_id };
785
785
  export type { string_user_id };
786
786
  export type { string_mime_type };
787
787
  export type { string_mime_type_with_wildcard };
788
+ export type { string_base64 };
789
+ export type { string_data_url };
788
790
  export type { string_domain };
789
791
  export type { string_origin };
790
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 };
791
797
  export type { string_url };
792
798
  export type { string_promptbook_server_url };
793
799
  export type { string_base_url };
@@ -795,16 +801,10 @@ export type { string_pipeline_root_url };
795
801
  export type { string_agent_url };
796
802
  export type { string_pipeline_url };
797
803
  export type { string_pipeline_url_with_task_hash };
798
- export type { string_base64 };
799
- export type { string_data_url };
800
804
  export type { string_href };
801
805
  export type { string_url_image };
802
806
  export type { string_uri };
803
807
  export type { string_uri_part };
804
- export type { string_hostname };
805
- export type { string_host };
806
- export type { string_protocol };
807
- export type { string_ip_address };
808
808
  export type { string_email };
809
809
  export type { string_emails };
810
810
  export type { TaskType };
@@ -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;
@@ -59,7 +59,7 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'on
59
59
  * Optional metadata about teammates for team tool calls
60
60
  * Maps tool name to agent information
61
61
  */
62
- teammates?: TeammatesMap;
62
+ teammates?: ChatProps['teammates'];
63
63
  /**
64
64
  * Optional cached metadata keyed by TEAM tool names to enrich tool call chips.
65
65
  */
@@ -90,19 +90,6 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'on
90
90
  */
91
91
  chatUiTranslations?: ChatProps['chatUiTranslations'];
92
92
  };
93
- /**
94
- * Metadata for a teammate agent tool.
95
- */
96
- type TeammateMetadata = {
97
- url: string;
98
- label?: string;
99
- instructions?: string;
100
- toolName: string;
101
- };
102
- /**
103
- * Lookup map of teammate metadata by tool name.
104
- */
105
- type TeammatesMap = Record<string, TeammateMetadata>;
106
93
  /**
107
94
  * Renders a single chat message item with avatar, content, buttons, and rating.
108
95
  *
@@ -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;
@@ -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']>;
@@ -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 {};