@promptbook/markdown-utils 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.
- package/esm/index.es.js +1 -1
- package/esm/src/_packages/types.index.d.ts +49 -49
- package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
- package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
- package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
- package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
- package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
- package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
- package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
- package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
- package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
- package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
- package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
- package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
- package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
- package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
- package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
- package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
- package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
- package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
- package/esm/src/cli/$runPromptbookCli.d.ts +1 -3
- package/esm/src/cli/cli-commands/_boilerplate.d.ts +2 -4
- package/esm/src/cli/cli-commands/about.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder/init.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder/run.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder/verify.d.ts +2 -4
- package/esm/src/cli/cli-commands/coder.d.ts +2 -4
- package/esm/src/cli/cli-commands/hello.d.ts +1 -1
- package/esm/src/cli/cli-commands/list-models.d.ts +2 -4
- package/esm/src/cli/cli-commands/list-scrapers.d.ts +2 -4
- package/esm/src/cli/cli-commands/login.d.ts +1 -1
- package/esm/src/cli/cli-commands/make.d.ts +1 -1
- package/esm/src/cli/cli-commands/prettify.d.ts +1 -1
- package/esm/src/cli/cli-commands/run.d.ts +1 -1
- package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
- package/esm/src/cli/cli-commands/start-agents-server.d.ts +2 -4
- package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
- package/esm/src/cli/cli-commands/test-command.d.ts +1 -1
- package/esm/src/cli/main.d.ts +2 -4
- package/esm/src/cli/promptbookCli.d.ts +1 -1
- package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
- package/esm/src/conversion/archive/loadArchive.d.ts +1 -3
- package/esm/src/conversion/archive/saveArchive.d.ts +1 -1
- package/esm/src/conversion/validation/_importPipeline.d.ts +2 -4
- package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
- package/esm/src/executables/$provideExecutablesForNode.d.ts +1 -1
- package/esm/src/executables/apps/locateLibreoffice.d.ts +2 -4
- package/esm/src/executables/apps/locatePandoc.d.ts +2 -4
- package/esm/src/executables/locateApp.d.ts +2 -4
- package/esm/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
- package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
- package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
- package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
- package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
- package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
- package/esm/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
- package/esm/src/llm-providers/agent/playground/playground.d.ts +1 -1
- package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
- package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
- package/esm/src/llm-providers/ollama/playground/playground.d.ts +2 -4
- package/esm/src/llm-providers/openai/playground/playground.d.ts +2 -4
- package/esm/src/llm-providers/remote/playground/playground.d.ts +1 -3
- package/esm/src/llm-providers/vercel/playground/playground.d.ts +2 -4
- package/esm/src/playground/permanent/_boilerplate.d.ts +1 -3
- package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
- package/esm/src/playground/permanent/error-handling-playground.d.ts +1 -3
- package/esm/src/playground/playground.d.ts +2 -4
- package/esm/src/remote-server/startAgentServer.d.ts +1 -3
- package/esm/src/remote-server/startRemoteServer.d.ts +1 -2
- package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
- package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
- package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
- package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
- package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
- package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -1
- package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
- package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
- package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -1
- package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
- package/esm/src/scrapers/website/WebsiteScraper.d.ts +1 -1
- package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
- package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
- package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
- package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
- package/esm/src/storage/local-storage/getLocalStorage.d.ts +1 -3
- package/esm/src/storage/local-storage/getSessionStorage.d.ts +1 -3
- package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
- package/esm/src/types/InputParameters_private.d.ts +11 -0
- package/esm/src/types/Parameters_private.d.ts +16 -0
- package/esm/src/types/ReservedParameters_private.d.ts +10 -0
- package/esm/src/types/number_bytes.d.ts +21 -0
- package/esm/src/types/number_id.d.ts +13 -0
- package/esm/src/types/number_likeness.d.ts +8 -0
- package/esm/src/types/number_milliseconds.d.ts +33 -0
- package/esm/src/types/number_percent.d.ts +18 -0
- package/esm/src/types/number_positive.d.ts +16 -0
- package/esm/src/types/number_usd.d.ts +6 -106
- package/esm/src/types/string_agent_hash_private.d.ts +9 -0
- package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
- package/esm/src/types/string_agent_name_private.d.ts +9 -0
- package/esm/src/types/string_agent_permanent_id_private.d.ts +10 -0
- package/esm/src/types/string_base64_private.d.ts +17 -0
- package/esm/src/types/string_business_category_name_private.d.ts +6 -0
- package/esm/src/types/string_char_private.d.ts +8 -0
- package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
- package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
- package/esm/src/types/string_email_private.d.ts +16 -0
- package/esm/src/types/string_host_private.d.ts +55 -0
- package/esm/src/types/string_mime_type_private.d.ts +17 -0
- package/esm/src/types/string_model_description_private.d.ts +8 -0
- package/esm/src/types/string_model_name_private.d.ts +8 -0
- package/esm/src/types/string_name_private.d.ts +9 -0
- package/esm/src/types/string_page_private.d.ts +9 -0
- package/esm/src/types/string_parameter_name.d.ts +74 -31
- package/esm/src/types/string_parameter_value_private.d.ts +9 -0
- package/esm/src/types/string_persona_description_private.d.ts +8 -0
- package/esm/src/types/string_prompt_image_private.d.ts +8 -0
- package/esm/src/types/string_prompt_private.d.ts +8 -0
- package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
- package/esm/src/types/string_system_message_private.d.ts +9 -0
- package/esm/src/types/string_template_private.d.ts +8 -0
- package/esm/src/types/string_text_prompt_private.d.ts +9 -0
- package/esm/src/types/string_title_private.d.ts +9 -0
- package/esm/src/types/string_url.d.ts +50 -46
- package/esm/src/types/string_url_private.d.ts +88 -0
- package/esm/src/types/typeAliases.d.ts +7 -1
- package/esm/src/utils/execCommand/$execCommand.d.ts +1 -3
- package/esm/src/utils/execCommand/$execCommands.d.ts +1 -3
- package/esm/src/utils/files/$induceBookDownload.d.ts +1 -3
- package/esm/src/utils/files/$induceFileDownload.d.ts +1 -3
- package/esm/src/utils/files/ObjectUrl.d.ts +1 -3
- package/esm/src/version.d.ts +1 -1
- package/esm/src/wizard/$getCompiledBook.d.ts +2 -4
- package/esm/src/wizard/wizard.d.ts +2 -4
- package/package.json +1 -1
- package/umd/index.umd.js +1 -1
- package/umd/src/_packages/types.index.d.ts +49 -49
- package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -14
- package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +32 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
- package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +33 -0
- package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
- package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
- package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +26 -0
- package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +31 -0
- package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +32 -0
- package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +31 -0
- package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +31 -0
- package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +38 -0
- package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +38 -0
- package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +46 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +33 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +2 -2
- package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +29 -0
- package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +26 -0
- package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +9 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +76 -0
- package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
- package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
- package/umd/src/cli/$runPromptbookCli.d.ts +1 -3
- package/umd/src/cli/cli-commands/_boilerplate.d.ts +2 -4
- package/umd/src/cli/cli-commands/about.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder/init.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder/run.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder/verify.d.ts +2 -4
- package/umd/src/cli/cli-commands/coder.d.ts +2 -4
- package/umd/src/cli/cli-commands/hello.d.ts +1 -1
- package/umd/src/cli/cli-commands/list-models.d.ts +2 -4
- package/umd/src/cli/cli-commands/list-scrapers.d.ts +2 -4
- package/umd/src/cli/cli-commands/login.d.ts +1 -1
- package/umd/src/cli/cli-commands/make.d.ts +1 -1
- package/umd/src/cli/cli-commands/prettify.d.ts +1 -1
- package/umd/src/cli/cli-commands/run.d.ts +1 -1
- package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -1
- package/umd/src/cli/cli-commands/start-agents-server.d.ts +2 -4
- package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +1 -1
- package/umd/src/cli/cli-commands/test-command.d.ts +1 -1
- package/umd/src/cli/main.d.ts +2 -4
- package/umd/src/cli/promptbookCli.d.ts +1 -1
- package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +1 -3
- package/umd/src/conversion/archive/loadArchive.d.ts +1 -3
- package/umd/src/conversion/archive/saveArchive.d.ts +1 -1
- package/umd/src/conversion/validation/_importPipeline.d.ts +2 -4
- package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -3
- package/umd/src/executables/$provideExecutablesForNode.d.ts +1 -1
- package/umd/src/executables/apps/locateLibreoffice.d.ts +2 -4
- package/umd/src/executables/apps/locatePandoc.d.ts +2 -4
- package/umd/src/executables/locateApp.d.ts +2 -4
- package/umd/src/executables/platforms/locateAppOnLinux.d.ts +2 -4
- package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +2 -4
- package/umd/src/executables/platforms/locateAppOnWindows.d.ts +2 -4
- package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +2 -4
- package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
- package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -3
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
- package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -3
- package/umd/src/llm-providers/_multiple/playground/playground.d.ts +1 -3
- package/umd/src/llm-providers/agent/playground/playground.d.ts +1 -1
- package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +1 -1
- package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +2 -4
- package/umd/src/llm-providers/ollama/playground/playground.d.ts +2 -4
- package/umd/src/llm-providers/openai/playground/playground.d.ts +2 -4
- package/umd/src/llm-providers/remote/playground/playground.d.ts +1 -3
- package/umd/src/llm-providers/vercel/playground/playground.d.ts +2 -4
- package/umd/src/playground/permanent/_boilerplate.d.ts +1 -3
- package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +1 -3
- package/umd/src/playground/permanent/error-handling-playground.d.ts +1 -3
- package/umd/src/playground/playground.d.ts +2 -4
- package/umd/src/remote-server/startAgentServer.d.ts +1 -3
- package/umd/src/remote-server/startRemoteServer.d.ts +1 -2
- package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +4 -6
- package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +2 -4
- package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +2 -4
- package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +2 -4
- package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
- package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -1
- package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
- package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -1
- package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -1
- package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +1 -3
- package/umd/src/scrapers/website/WebsiteScraper.d.ts +1 -1
- package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +1 -3
- package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +2 -4
- package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +2 -4
- package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +1 -3
- package/umd/src/storage/local-storage/getLocalStorage.d.ts +1 -3
- package/umd/src/storage/local-storage/getSessionStorage.d.ts +1 -3
- package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +1 -3
- package/umd/src/types/InputParameters_private.d.ts +11 -0
- package/umd/src/types/Parameters_private.d.ts +16 -0
- package/umd/src/types/ReservedParameters_private.d.ts +10 -0
- package/umd/src/types/number_bytes.d.ts +21 -0
- package/umd/src/types/number_id.d.ts +13 -0
- package/umd/src/types/number_likeness.d.ts +8 -0
- package/umd/src/types/number_milliseconds.d.ts +33 -0
- package/umd/src/types/number_percent.d.ts +18 -0
- package/umd/src/types/number_positive.d.ts +16 -0
- package/umd/src/types/number_usd.d.ts +6 -106
- package/umd/src/types/string_agent_hash_private.d.ts +9 -0
- package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
- package/umd/src/types/string_agent_name_private.d.ts +9 -0
- package/umd/src/types/string_agent_permanent_id_private.d.ts +10 -0
- package/umd/src/types/string_base64_private.d.ts +17 -0
- package/umd/src/types/string_business_category_name_private.d.ts +6 -0
- package/umd/src/types/string_char_private.d.ts +8 -0
- package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
- package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
- package/umd/src/types/string_email_private.d.ts +16 -0
- package/umd/src/types/string_host_private.d.ts +55 -0
- package/umd/src/types/string_mime_type_private.d.ts +17 -0
- package/umd/src/types/string_model_description_private.d.ts +8 -0
- package/umd/src/types/string_model_name_private.d.ts +8 -0
- package/umd/src/types/string_name_private.d.ts +9 -0
- package/umd/src/types/string_page_private.d.ts +9 -0
- package/umd/src/types/string_parameter_name.d.ts +74 -31
- package/umd/src/types/string_parameter_value_private.d.ts +9 -0
- package/umd/src/types/string_persona_description_private.d.ts +8 -0
- package/umd/src/types/string_prompt_image_private.d.ts +8 -0
- package/umd/src/types/string_prompt_private.d.ts +8 -0
- package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
- package/umd/src/types/string_system_message_private.d.ts +9 -0
- package/umd/src/types/string_template_private.d.ts +8 -0
- package/umd/src/types/string_text_prompt_private.d.ts +9 -0
- package/umd/src/types/string_title_private.d.ts +9 -0
- package/umd/src/types/string_url.d.ts +50 -46
- package/umd/src/types/string_url_private.d.ts +88 -0
- package/umd/src/types/typeAliases.d.ts +7 -1
- package/umd/src/utils/execCommand/$execCommand.d.ts +1 -3
- package/umd/src/utils/execCommand/$execCommands.d.ts +1 -3
- package/umd/src/utils/files/$induceBookDownload.d.ts +1 -3
- package/umd/src/utils/files/$induceFileDownload.d.ts +1 -3
- package/umd/src/utils/files/ObjectUrl.d.ts +1 -3
- package/umd/src/version.d.ts +1 -1
- package/umd/src/wizard/$getCompiledBook.d.ts +2 -4
- package/umd/src/wizard/wizard.d.ts +2 -4
package/esm/index.es.js
CHANGED
|
@@ -23,7 +23,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-34';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -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 {
|
|
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 {
|
|
685
|
-
export type {
|
|
686
|
-
export type {
|
|
687
|
-
export type {
|
|
688
|
-
export type {
|
|
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?:
|
|
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 {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
/**
|
|
5
|
+
* Rendering options for the browser replay view.
|
|
6
|
+
*
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
type RenderRunBrowserToolCallDetailsOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Tool call being rendered.
|
|
12
|
+
*/
|
|
13
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
14
|
+
/**
|
|
15
|
+
* Parsed tool call arguments.
|
|
16
|
+
*/
|
|
17
|
+
args: Record<string, TODO_any>;
|
|
18
|
+
/**
|
|
19
|
+
* Parsed tool result payload.
|
|
20
|
+
*/
|
|
21
|
+
resultRaw: TODO_any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders a visual replay view for `run_browser` tool calls.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Parsed browser tool details needed by the modal.
|
|
27
|
+
* @returns Visual browser replay content.
|
|
28
|
+
* @private function of ChatToolCallModal
|
|
29
|
+
*/
|
|
30
|
+
export declare function renderRunBrowserToolCallDetails(options: RenderRunBrowserToolCallDetailsOptions): ReactElement;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
/**
|
|
5
|
+
* Rendering options for search tool calls.
|
|
6
|
+
*
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
type RenderSearchToolCallDetailsOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Tool call being rendered.
|
|
12
|
+
*/
|
|
13
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
14
|
+
/**
|
|
15
|
+
* Parsed tool call arguments.
|
|
16
|
+
*/
|
|
17
|
+
args: Record<string, TODO_any>;
|
|
18
|
+
/**
|
|
19
|
+
* Parsed tool result payload.
|
|
20
|
+
*/
|
|
21
|
+
resultRaw: TODO_any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders the search-specific tool call detail view.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Search tool call data.
|
|
27
|
+
* @returns Search results or pending state UI.
|
|
28
|
+
* @private function of ChatToolCallModal
|
|
29
|
+
*/
|
|
30
|
+
export declare function renderSearchToolCallDetails(options: RenderSearchToolCallDetailsOptions): ReactElement;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import { Color } from '../../../utils/color/Color';
|
|
3
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
4
|
+
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
5
|
+
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
6
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
7
|
+
/**
|
|
8
|
+
* Rendering options for self-learning tool calls.
|
|
9
|
+
*
|
|
10
|
+
* @private function of ChatToolCallModal
|
|
11
|
+
*/
|
|
12
|
+
type RenderSelfLearningToolCallDetailsOptions = {
|
|
13
|
+
/**
|
|
14
|
+
* Tool call being rendered.
|
|
15
|
+
*/
|
|
16
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
17
|
+
/**
|
|
18
|
+
* Parsed tool result payload.
|
|
19
|
+
*/
|
|
20
|
+
resultRaw: TODO_any;
|
|
21
|
+
/**
|
|
22
|
+
* Optional agent metadata used for the header avatars.
|
|
23
|
+
*/
|
|
24
|
+
agentParticipant?: ChatParticipant;
|
|
25
|
+
/**
|
|
26
|
+
* Fallback color used when participant metadata is incomplete.
|
|
27
|
+
*/
|
|
28
|
+
buttonColor: WithTake<Color>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Renders the self-learning-specific tool call detail view.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Self-learning tool call data.
|
|
34
|
+
* @returns Self-learning summary UI.
|
|
35
|
+
* @private function of ChatToolCallModal
|
|
36
|
+
*/
|
|
37
|
+
export declare function renderSelfLearningToolCallDetails(options: RenderSelfLearningToolCallDetailsOptions): ReactElement;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
/**
|
|
4
|
+
* Rendering options for time tool calls.
|
|
5
|
+
*
|
|
6
|
+
* @private function of ChatToolCallModal
|
|
7
|
+
*/
|
|
8
|
+
type RenderTimeToolCallDetailsOptions = {
|
|
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
|
+
* Timestamp of the tool call itself.
|
|
19
|
+
*/
|
|
20
|
+
toolCallDate: Date | null;
|
|
21
|
+
/**
|
|
22
|
+
* Optional locale override used for date formatting.
|
|
23
|
+
*/
|
|
24
|
+
locale?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Optional translation overrides.
|
|
27
|
+
*/
|
|
28
|
+
chatUiTranslations?: import('./ChatProps').ChatUiTranslations;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Renders the time-specific tool call detail view.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Time tool call data.
|
|
34
|
+
* @returns Time visualization UI.
|
|
35
|
+
* @private function of ChatToolCallModal
|
|
36
|
+
*/
|
|
37
|
+
export declare function renderTimeToolCallDetails(options: RenderTimeToolCallDetailsOptions): ReactElement;
|
|
38
|
+
export {};
|