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