@promptbook/javascript 0.112.0-31 → 0.112.0-34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +1 -1
- package/esm/src/_packages/components.index.d.ts +6 -0
- package/esm/src/_packages/types.index.d.ts +55 -49
- package/esm/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
- package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
- package/esm/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
- package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
- package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +18 -15
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
- 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/ChatProps.d.ts +290 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -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/renderAdvancedToolCallDetails.d.ts +4 -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 +10 -1
- 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/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
- package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
- package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
- package/esm/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
- package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
- package/esm/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
- package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
- 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/utils/toolCalls/mergeToolCalls.d.ts +1 -1
- 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 +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/src/_packages/components.index.d.ts +6 -0
- package/umd/src/_packages/types.index.d.ts +55 -49
- package/umd/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
- package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
- package/umd/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +33 -0
- package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +7 -7
- package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +42 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +18 -15
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +14 -0
- 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/ChatProps.d.ts +290 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +16 -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/renderAdvancedToolCallDetails.d.ts +4 -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 +10 -1
- 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/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -1
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
- package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +18 -0
- package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +77 -1
- package/umd/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
- package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +11 -0
- package/umd/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
- package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +26 -1
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +26 -3
- 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/utils/toolCalls/mergeToolCalls.d.ts +1 -1
- 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
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ToolCall } from '../../../types/ToolCall';
|
|
2
|
+
import type { AgentChipData } from '../AgentChip';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
import { type TransitiveCitation } from '../utils/collectTeamToolCallSummary';
|
|
5
|
+
import type { ChatProps } from './ChatProps';
|
|
6
|
+
/**
|
|
7
|
+
* Status variants for tool call chips.
|
|
8
|
+
*
|
|
9
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
10
|
+
*/
|
|
11
|
+
export type ToolCallChipStatus = 'ongoing' | 'done' | 'error';
|
|
12
|
+
/**
|
|
13
|
+
* Metadata rendered inside a single tool call chip.
|
|
14
|
+
*
|
|
15
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
16
|
+
*/
|
|
17
|
+
export type ToolCallChipEntry = {
|
|
18
|
+
/**
|
|
19
|
+
* Stable key for React rendering.
|
|
20
|
+
*/
|
|
21
|
+
key: string;
|
|
22
|
+
/**
|
|
23
|
+
* Tool call represented by this chip.
|
|
24
|
+
*/
|
|
25
|
+
toolCall: ToolCall;
|
|
26
|
+
/**
|
|
27
|
+
* Chip label text.
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
* Current status of the tool call.
|
|
32
|
+
*/
|
|
33
|
+
status: ToolCallChipStatus;
|
|
34
|
+
/**
|
|
35
|
+
* Optional agent metadata for TEAM or transitive tool calls.
|
|
36
|
+
*/
|
|
37
|
+
teamAgentData: AgentChipData | null;
|
|
38
|
+
/**
|
|
39
|
+
* Marks entries built for transitive tool calls.
|
|
40
|
+
*/
|
|
41
|
+
isTransitive: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* Precomputed tool-call UI data consumed by `<ChatMessageItem/>`.
|
|
45
|
+
*
|
|
46
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
47
|
+
*/
|
|
48
|
+
export type ChatMessageToolCallRenderModel = {
|
|
49
|
+
/**
|
|
50
|
+
* Tool call chips rendered below the message body.
|
|
51
|
+
*/
|
|
52
|
+
readonly toolCallChips: ReadonlyArray<ToolCallChipEntry>;
|
|
53
|
+
/**
|
|
54
|
+
* Citations surfaced from nested teammate responses.
|
|
55
|
+
*/
|
|
56
|
+
readonly transitiveCitations: ReadonlyArray<TransitiveCitation>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Inputs used to derive the tool-call UI model for one chat message.
|
|
60
|
+
*
|
|
61
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
62
|
+
*/
|
|
63
|
+
export type CreateChatMessageToolCallRenderModelOptions = {
|
|
64
|
+
readonly message: ChatMessage;
|
|
65
|
+
readonly teammates?: ChatProps['teammates'];
|
|
66
|
+
readonly teamAgentProfiles?: ChatProps['teamAgentProfiles'];
|
|
67
|
+
readonly locale?: string;
|
|
68
|
+
readonly toolTitles?: ChatProps['toolTitles'];
|
|
69
|
+
readonly chatUiTranslations?: ChatProps['chatUiTranslations'];
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Builds the tool-call render model used by `<ChatMessageItem/>`.
|
|
73
|
+
*
|
|
74
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
75
|
+
*/
|
|
76
|
+
export declare function createChatMessageToolCallRenderModel(options: CreateChatMessageToolCallRenderModelOptions): ChatMessageToolCallRenderModel;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
2
|
+
/**
|
|
3
|
+
* Converts one structured progress card payload into markdown checklist content.
|
|
4
|
+
*
|
|
5
|
+
* @param progressCard Structured progress card payload.
|
|
6
|
+
* @returns Markdown checklist rendered through the normal message markdown pipeline.
|
|
7
|
+
*
|
|
8
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
9
|
+
*/
|
|
10
|
+
export declare function createProgressCardChecklistMarkdown(progressCard: NonNullable<ChatMessage['progressCard']>): string;
|
|
11
|
+
/**
|
|
12
|
+
* Returns true when one progress card should currently be rendered.
|
|
13
|
+
*
|
|
14
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
15
|
+
*/
|
|
16
|
+
export declare function isProgressCardVisible(progressCard: ChatMessage['progressCard']): progressCard is NonNullable<ChatMessage['progressCard']>;
|
|
@@ -14,6 +14,10 @@ type AdvancedToolCallDetailsOptions = {
|
|
|
14
14
|
* Optional mapping of tool titles.
|
|
15
15
|
*/
|
|
16
16
|
toolTitles?: Record<string, string>;
|
|
17
|
+
/**
|
|
18
|
+
* Optional list of tools that were available to the model during the turn that produced this tool call.
|
|
19
|
+
*/
|
|
20
|
+
availableTools?: ChatMessage['availableTools'];
|
|
17
21
|
};
|
|
18
22
|
/**
|
|
19
23
|
* Renders a technical view with raw tool input/output payloads.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
/**
|
|
4
|
+
* Rendering options for email tool calls.
|
|
5
|
+
*
|
|
6
|
+
* @private function of ChatToolCallModal
|
|
7
|
+
*/
|
|
8
|
+
type RenderEmailToolCallDetailsOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Parsed tool call arguments.
|
|
11
|
+
*/
|
|
12
|
+
args: Record<string, TODO_any>;
|
|
13
|
+
/**
|
|
14
|
+
* Parsed tool result payload.
|
|
15
|
+
*/
|
|
16
|
+
resultRaw: TODO_any;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders the email-specific tool call detail view.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Email tool call data.
|
|
22
|
+
* @returns Email preview UI.
|
|
23
|
+
* @private function of ChatToolCallModal
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderEmailToolCallDetails(options: RenderEmailToolCallDetailsOptions): ReactElement;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
/**
|
|
5
|
+
* Rendering options for the memory-specific tool call view.
|
|
6
|
+
*
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
type RenderMemoryToolCallDetailsOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Raw tool call payload.
|
|
12
|
+
*/
|
|
13
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
14
|
+
/**
|
|
15
|
+
* Resolved tool call arguments.
|
|
16
|
+
*/
|
|
17
|
+
args: Record<string, TODO_any>;
|
|
18
|
+
/**
|
|
19
|
+
* Parsed tool call result.
|
|
20
|
+
*/
|
|
21
|
+
resultRaw: TODO_any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders a friendly memory summary screen when a MEMORY tool call is selected.
|
|
25
|
+
*
|
|
26
|
+
* @param options - View fragments required to render the memory modal.
|
|
27
|
+
* @returns Memory-specific modal JSX or `null` when the tool is unrelated.
|
|
28
|
+
* @private function of ChatToolCallModal
|
|
29
|
+
*/
|
|
30
|
+
export declare function renderMemoryToolCallDetails(options: RenderMemoryToolCallDetailsOptions): ReactElement | null;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
4
|
+
import { Color } from '../../../utils/color/Color';
|
|
5
|
+
/**
|
|
6
|
+
* Rendering options for popup tool calls.
|
|
7
|
+
*
|
|
8
|
+
* @private function of ChatToolCallModal
|
|
9
|
+
*/
|
|
10
|
+
type RenderPopupToolCallDetailsOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Parsed tool call arguments.
|
|
13
|
+
*/
|
|
14
|
+
args: Record<string, TODO_any>;
|
|
15
|
+
/**
|
|
16
|
+
* Parsed tool result payload.
|
|
17
|
+
*/
|
|
18
|
+
resultRaw: TODO_any;
|
|
19
|
+
/**
|
|
20
|
+
* Chat button color used for the CTA.
|
|
21
|
+
*/
|
|
22
|
+
buttonColor: WithTake<Color>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Renders the popup-specific tool call detail view.
|
|
26
|
+
*
|
|
27
|
+
* @param options - Popup tool call data.
|
|
28
|
+
* @returns Popup preview UI.
|
|
29
|
+
* @private function of ChatToolCallModal
|
|
30
|
+
*/
|
|
31
|
+
export declare function renderPopupToolCallDetails(options: RenderPopupToolCallDetailsOptions): ReactElement;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
/**
|
|
5
|
+
* Rendering options for the browser replay view.
|
|
6
|
+
*
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
type RenderRunBrowserToolCallDetailsOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Tool call being rendered.
|
|
12
|
+
*/
|
|
13
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
14
|
+
/**
|
|
15
|
+
* Parsed tool call arguments.
|
|
16
|
+
*/
|
|
17
|
+
args: Record<string, TODO_any>;
|
|
18
|
+
/**
|
|
19
|
+
* Parsed tool result payload.
|
|
20
|
+
*/
|
|
21
|
+
resultRaw: TODO_any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders a visual replay view for `run_browser` tool calls.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Parsed browser tool details needed by the modal.
|
|
27
|
+
* @returns Visual browser replay content.
|
|
28
|
+
* @private function of ChatToolCallModal
|
|
29
|
+
*/
|
|
30
|
+
export declare function renderRunBrowserToolCallDetails(options: RenderRunBrowserToolCallDetailsOptions): ReactElement;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
4
|
+
/**
|
|
5
|
+
* Rendering options for search tool calls.
|
|
6
|
+
*
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
type RenderSearchToolCallDetailsOptions = {
|
|
10
|
+
/**
|
|
11
|
+
* Tool call being rendered.
|
|
12
|
+
*/
|
|
13
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
14
|
+
/**
|
|
15
|
+
* Parsed tool call arguments.
|
|
16
|
+
*/
|
|
17
|
+
args: Record<string, TODO_any>;
|
|
18
|
+
/**
|
|
19
|
+
* Parsed tool result payload.
|
|
20
|
+
*/
|
|
21
|
+
resultRaw: TODO_any;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Renders the search-specific tool call detail view.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Search tool call data.
|
|
27
|
+
* @returns Search results or pending state UI.
|
|
28
|
+
* @private function of ChatToolCallModal
|
|
29
|
+
*/
|
|
30
|
+
export declare function renderSearchToolCallDetails(options: RenderSearchToolCallDetailsOptions): ReactElement;
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import { Color } from '../../../utils/color/Color';
|
|
3
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
4
|
+
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
5
|
+
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
6
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
7
|
+
/**
|
|
8
|
+
* Rendering options for self-learning tool calls.
|
|
9
|
+
*
|
|
10
|
+
* @private function of ChatToolCallModal
|
|
11
|
+
*/
|
|
12
|
+
type RenderSelfLearningToolCallDetailsOptions = {
|
|
13
|
+
/**
|
|
14
|
+
* Tool call being rendered.
|
|
15
|
+
*/
|
|
16
|
+
toolCall: NonNullable<ChatMessage['toolCalls']>[number];
|
|
17
|
+
/**
|
|
18
|
+
* Parsed tool result payload.
|
|
19
|
+
*/
|
|
20
|
+
resultRaw: TODO_any;
|
|
21
|
+
/**
|
|
22
|
+
* Optional agent metadata used for the header avatars.
|
|
23
|
+
*/
|
|
24
|
+
agentParticipant?: ChatParticipant;
|
|
25
|
+
/**
|
|
26
|
+
* Fallback color used when participant metadata is incomplete.
|
|
27
|
+
*/
|
|
28
|
+
buttonColor: WithTake<Color>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Renders the self-learning-specific tool call detail view.
|
|
32
|
+
*
|
|
33
|
+
* @param options - Self-learning tool call data.
|
|
34
|
+
* @returns Self-learning summary UI.
|
|
35
|
+
* @private function of ChatToolCallModal
|
|
36
|
+
*/
|
|
37
|
+
export declare function renderSelfLearningToolCallDetails(options: RenderSelfLearningToolCallDetailsOptions): ReactElement;
|
|
38
|
+
export {};
|
|
@@ -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 {};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { TODO_any } from '../../../utils/organization/TODO_any';
|
|
3
|
+
/**
|
|
4
|
+
* Rendering options for timeout tool calls.
|
|
5
|
+
*
|
|
6
|
+
* @private function of ChatToolCallModal
|
|
7
|
+
*/
|
|
8
|
+
type RenderTimeoutToolCallDetailsOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Tool name used to resolve timeout presentation details.
|
|
11
|
+
*/
|
|
12
|
+
toolCallName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Parsed tool call arguments.
|
|
15
|
+
*/
|
|
16
|
+
args: Record<string, TODO_any>;
|
|
17
|
+
/**
|
|
18
|
+
* Parsed tool result payload.
|
|
19
|
+
*/
|
|
20
|
+
resultRaw: TODO_any;
|
|
21
|
+
/**
|
|
22
|
+
* Timestamp of the tool call itself.
|
|
23
|
+
*/
|
|
24
|
+
toolCallDate: Date | null;
|
|
25
|
+
/**
|
|
26
|
+
* Optional callback for switching to advanced mode.
|
|
27
|
+
*/
|
|
28
|
+
onRequestAdvancedView?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Optional locale override used for date formatting.
|
|
31
|
+
*/
|
|
32
|
+
locale?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Optional translation overrides.
|
|
35
|
+
*/
|
|
36
|
+
chatUiTranslations?: import('./ChatProps').ChatUiTranslations;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Renders the timeout-specific tool call detail view.
|
|
40
|
+
*
|
|
41
|
+
* @param options - Timeout tool call data.
|
|
42
|
+
* @returns Timeout visualization UI.
|
|
43
|
+
* @private function of ChatToolCallModal
|
|
44
|
+
*/
|
|
45
|
+
export declare function renderTimeoutToolCallDetails(options: RenderTimeoutToolCallDetailsOptions): ReactElement;
|
|
46
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Configuration for the shared clock panel used by time and timeout popups.
|
|
4
|
+
*
|
|
5
|
+
* @private function of ChatToolCallModal
|
|
6
|
+
*/
|
|
7
|
+
type RenderToolCallClockPanelOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* Date rendered by the analog clock and local labels.
|
|
10
|
+
*/
|
|
11
|
+
date: Date;
|
|
12
|
+
/**
|
|
13
|
+
* Optional relative label.
|
|
14
|
+
*/
|
|
15
|
+
relativeLabel?: string | null;
|
|
16
|
+
/**
|
|
17
|
+
* Optional timezone label shown below the date.
|
|
18
|
+
*/
|
|
19
|
+
timezoneLabel?: string | null;
|
|
20
|
+
/**
|
|
21
|
+
* Optional BCP-47 locale string used to format the local time display.
|
|
22
|
+
*/
|
|
23
|
+
locale?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Renders a shared analog-clock panel used by time and timeout tool views.
|
|
27
|
+
*
|
|
28
|
+
* @param options - Clock panel rendering options.
|
|
29
|
+
* @returns Clock section with local date/time labels.
|
|
30
|
+
* @private function of ChatToolCallModal
|
|
31
|
+
*/
|
|
32
|
+
export declare function renderToolCallClockPanel(options: RenderToolCallClockPanelOptions): ReactElement;
|
|
33
|
+
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type ReactElement } from 'react';
|
|
2
|
-
import { Color } from '../../../utils/color/Color';
|
|
3
2
|
import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
|
|
4
3
|
import type { ChatMessage } from '../types/ChatMessage';
|
|
5
4
|
import type { ChatParticipant } from '../types/ChatParticipant';
|
|
5
|
+
import { Color } from '../../../utils/color/Color';
|
|
6
6
|
/**
|
|
7
7
|
* Options for rendering a tool call detail view.
|
|
8
8
|
*
|
|
@@ -29,11 +29,20 @@ type ToolCallDetailsOptions = {
|
|
|
29
29
|
* Requests switching the modal into advanced technical mode.
|
|
30
30
|
*/
|
|
31
31
|
onRequestAdvancedView?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Optional BCP-47 locale string used to format time labels.
|
|
34
|
+
*/
|
|
35
|
+
locale?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional localized label overrides for the tool call modal UI.
|
|
38
|
+
*/
|
|
39
|
+
chatUiTranslations?: import('./ChatProps').ChatUiTranslations;
|
|
32
40
|
};
|
|
33
41
|
/**
|
|
34
42
|
* Renders the detail view for a single tool call.
|
|
35
43
|
*
|
|
36
44
|
* @param options - Rendering options for the tool call.
|
|
45
|
+
* @returns Simple tool-call detail JSX.
|
|
37
46
|
* @private function of ChatToolCallModal
|
|
38
47
|
*/
|
|
39
48
|
export declare function renderToolCallDetails(options: ToolCallDetailsOptions): ReactElement;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Rendering options for the shared pending-state placeholder card.
|
|
4
|
+
*
|
|
5
|
+
* @private function of ChatToolCallModal
|
|
6
|
+
*/
|
|
7
|
+
type RenderToolCallProgressPlaceholderOptions = {
|
|
8
|
+
/**
|
|
9
|
+
* Title displayed at the top of the placeholder.
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
/**
|
|
13
|
+
* Supporting message explaining the current state.
|
|
14
|
+
*/
|
|
15
|
+
message: string;
|
|
16
|
+
/**
|
|
17
|
+
* Optional badge label shown in the header.
|
|
18
|
+
*/
|
|
19
|
+
badgeLabel?: string;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Renders a shared placeholder card for pending and partial tool-call details.
|
|
23
|
+
*
|
|
24
|
+
* @param options - Placeholder copy and optional badge label.
|
|
25
|
+
* @returns Placeholder JSX.
|
|
26
|
+
* @private function of ChatToolCallModal
|
|
27
|
+
*/
|
|
28
|
+
export declare function renderToolCallProgressPlaceholder(options: RenderToolCallProgressPlaceholderOptions): ReactElement;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { WalletCredentialToolCallResult } from '../utils/walletCredentialToolCall';
|
|
3
|
+
/**
|
|
4
|
+
* Rendering options for wallet credential tool calls.
|
|
5
|
+
*
|
|
6
|
+
* @private function of ChatToolCallModal
|
|
7
|
+
*/
|
|
8
|
+
type RenderWalletCredentialToolCallDetailsOptions = {
|
|
9
|
+
/**
|
|
10
|
+
* Safe credential usage metadata.
|
|
11
|
+
*/
|
|
12
|
+
credential: WalletCredentialToolCallResult;
|
|
13
|
+
/**
|
|
14
|
+
* Optional timestamp of the action.
|
|
15
|
+
*/
|
|
16
|
+
toolCallDate: Date | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Renders a friendly wallet-credential usage summary for non-technical users.
|
|
20
|
+
*
|
|
21
|
+
* @param options - Credential payload and optional timestamp.
|
|
22
|
+
* @returns Credential details section for the tool modal.
|
|
23
|
+
* @private function of ChatToolCallModal
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderWalletCredentialToolCallDetails(options: RenderWalletCredentialToolCallDetailsOptions): ReactElement;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
2
|
+
/**
|
|
3
|
+
* Maps tool-call state into friendly running copy used by simple modal sections.
|
|
4
|
+
*
|
|
5
|
+
* @param toolCall - Tool call currently rendered in the modal.
|
|
6
|
+
* @returns Friendly progress message for the current tool state.
|
|
7
|
+
* @private function of ChatToolCallModal
|
|
8
|
+
*/
|
|
9
|
+
export declare function resolveToolCallProgressMessage(toolCall: NonNullable<ChatMessage['toolCalls']>[number]): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ChangeEvent, type ClipboardEvent, type DragEvent } from 'react';
|
|
2
|
+
import type { ChatInputUploadedFile } from './ChatInputArea';
|
|
3
|
+
import type { ChatProps } from './ChatProps';
|
|
4
|
+
/**
|
|
5
|
+
* Props for `useChatInputAreaAttachments`.
|
|
6
|
+
*
|
|
7
|
+
* @private function of `<ChatInputArea/>`
|
|
8
|
+
*/
|
|
9
|
+
type UseChatInputAreaAttachmentsProps = {
|
|
10
|
+
onFileUpload?: ChatProps['onFileUpload'];
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Handles file-upload state and drag/drop events for the chat composer.
|
|
14
|
+
*
|
|
15
|
+
* @private function of `<ChatInputArea/>`
|
|
16
|
+
*/
|
|
17
|
+
export declare function useChatInputAreaAttachments({ onFileUpload }: UseChatInputAreaAttachmentsProps): {
|
|
18
|
+
fileInputRef: import("react").RefObject<HTMLInputElement | null>;
|
|
19
|
+
uploadedFiles: ChatInputUploadedFile[];
|
|
20
|
+
uploadedFilesRef: import("react").RefObject<ChatInputUploadedFile[]>;
|
|
21
|
+
isDragOver: boolean;
|
|
22
|
+
isUploading: boolean;
|
|
23
|
+
handleDrop: (event: DragEvent) => void;
|
|
24
|
+
handleDragOver: (event: DragEvent) => void;
|
|
25
|
+
handleDragLeave: (event: DragEvent) => void;
|
|
26
|
+
handlePaste: (event: ClipboardEvent) => void;
|
|
27
|
+
handleFileInputChange: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
28
|
+
removeUploadedFile: (fileId: string) => void;
|
|
29
|
+
clearUploadedFiles: () => void;
|
|
30
|
+
openFilePicker: () => void;
|
|
31
|
+
};
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
import type { SpeechRecognitionErrorCode } from '../../../types/SpeechRecognition';
|
|
3
|
+
import type { ChatProps } from './ChatProps';
|
|
4
|
+
/**
|
|
5
|
+
* Voice settings available for lightweight transcript refinement.
|
|
6
|
+
*
|
|
7
|
+
* @private function of `useChatInputAreaDictation`
|
|
8
|
+
*/
|
|
9
|
+
type DictationRefinementSettings = {
|
|
10
|
+
readonly autoPunctuation: boolean;
|
|
11
|
+
readonly autoCapitalization: boolean;
|
|
12
|
+
readonly removeFillerWords: boolean;
|
|
13
|
+
readonly formatLists: boolean;
|
|
14
|
+
readonly whisperMode: boolean;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Visual tone used by the floating speech-status bubble.
|
|
18
|
+
*
|
|
19
|
+
* @private function of `useChatInputAreaDictation`
|
|
20
|
+
*/
|
|
21
|
+
type SpeechStatusBubbleTone = 'neutral' | 'recording' | 'processing' | 'error';
|
|
22
|
+
/**
|
|
23
|
+
* UI metadata derived from the current speech-recognition state.
|
|
24
|
+
*
|
|
25
|
+
* @private function of `useChatInputAreaDictation`
|
|
26
|
+
*/
|
|
27
|
+
type SpeechRecognitionUiDescriptor = {
|
|
28
|
+
readonly buttonTitle: string;
|
|
29
|
+
readonly bubbleText?: string;
|
|
30
|
+
readonly bubbleTone?: SpeechStatusBubbleTone;
|
|
31
|
+
readonly isButtonActive: boolean;
|
|
32
|
+
readonly isButtonDisabled: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Props for `useChatInputAreaDictation`.
|
|
36
|
+
*
|
|
37
|
+
* @private function of `<ChatInputArea/>`
|
|
38
|
+
*/
|
|
39
|
+
type UseChatInputAreaDictationProps = {
|
|
40
|
+
speechRecognition?: ChatProps['speechRecognition'];
|
|
41
|
+
speechRecognitionLanguage?: ChatProps['speechRecognitionLanguage'];
|
|
42
|
+
textareaRef: MutableRefObject<HTMLTextAreaElement | null>;
|
|
43
|
+
messageContentRef: MutableRefObject<string>;
|
|
44
|
+
applyMessageContent: (nextContent: string) => void;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Manages speech-recognition state, transcript refinement, and correction UI.
|
|
48
|
+
*
|
|
49
|
+
* @private function of `<ChatInputArea/>`
|
|
50
|
+
*/
|
|
51
|
+
export declare function useChatInputAreaDictation({ speechRecognition, speechRecognitionLanguage, textareaRef, messageContentRef, applyMessageContent, }: UseChatInputAreaDictationProps): {
|
|
52
|
+
speechRecognitionUiDescriptor: SpeechRecognitionUiDescriptor;
|
|
53
|
+
shouldShowDictationPanel: boolean;
|
|
54
|
+
isDictationPanelExpanded: boolean;
|
|
55
|
+
toggleDictationPanel: () => void;
|
|
56
|
+
expandDictationPanel: () => void;
|
|
57
|
+
dictationInterimText: string;
|
|
58
|
+
dictationError: {
|
|
59
|
+
code?: SpeechRecognitionErrorCode | undefined;
|
|
60
|
+
message: string;
|
|
61
|
+
} | null;
|
|
62
|
+
dictationLastFinalChunk: string;
|
|
63
|
+
dictationEditableChunk: string;
|
|
64
|
+
setDictationEditableChunk: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
65
|
+
canBacktrack: boolean;
|
|
66
|
+
dictationSettings: DictationRefinementSettings;
|
|
67
|
+
handleDictationSettingChange: (settingName: keyof DictationRefinementSettings, checked: boolean) => void;
|
|
68
|
+
handleToggleVoiceInput: () => void;
|
|
69
|
+
handleBacktrackLastChunk: () => void;
|
|
70
|
+
handleApplyCorrection: () => void;
|
|
71
|
+
handleRetryPermissionRequest: () => void;
|
|
72
|
+
handleOpenBrowserSettings: () => void;
|
|
73
|
+
canOpenBrowserSettings: boolean;
|
|
74
|
+
isBrowserSpeechFallbackSupported: boolean;
|
|
75
|
+
};
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Absolute screen position used for the avatar profile tooltip.
|
|
4
|
+
*
|
|
5
|
+
* @private internal helper of `<ChatMessageItem/>`
|
|
6
|
+
*/
|
|
7
|
+
type AvatarTooltipPosition = {
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly left: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* State and handlers used by the avatar profile tooltip behavior.
|
|
13
|
+
*
|
|
14
|
+
* @private internal hook of `<ChatMessageItem/>`
|
|
15
|
+
*/
|
|
16
|
+
export type UseChatMessageAvatarTooltipResult = {
|
|
17
|
+
readonly avatarRef: RefObject<HTMLDivElement | null>;
|
|
18
|
+
readonly tooltipRef: RefObject<HTMLDivElement | null>;
|
|
19
|
+
readonly isAvatarTooltipVisible: boolean;
|
|
20
|
+
readonly avatarTooltipPosition: AvatarTooltipPosition | null;
|
|
21
|
+
readonly showTooltip: () => void;
|
|
22
|
+
readonly handleMouseEnter: () => void;
|
|
23
|
+
readonly handleMouseLeave: () => void;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Manages delayed avatar tooltip display and outside-dismiss behavior.
|
|
27
|
+
*
|
|
28
|
+
* @private internal hook of `<ChatMessageItem/>`
|
|
29
|
+
*/
|
|
30
|
+
export declare function useChatMessageAvatarTooltip(): UseChatMessageAvatarTooltipResult;
|
|
31
|
+
export {};
|