@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
|
@@ -64,6 +64,24 @@ export type TimeoutToolCallPresentation = {
|
|
|
64
64
|
*/
|
|
65
65
|
readonly localDueDateLabel: string | null;
|
|
66
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* Optional localized labels used by timeout chips and friendly modal copy.
|
|
69
|
+
*
|
|
70
|
+
* @private internal utility of `<Chat/>`
|
|
71
|
+
*/
|
|
72
|
+
type TimeoutToolCallTranslations = {
|
|
73
|
+
readonly toolCallTimeoutChipLabel?: string;
|
|
74
|
+
readonly toolCallTimeoutChipCancelledLabel?: string;
|
|
75
|
+
readonly toolCallTimeoutChipInactiveLabel?: string;
|
|
76
|
+
readonly toolCallTimeoutChipUpdatedLabel?: string;
|
|
77
|
+
readonly toolCallTimeoutChipFallbackLabel?: string;
|
|
78
|
+
readonly toolCallTimeoutPrimaryScheduledLabel?: string;
|
|
79
|
+
readonly toolCallTimeoutSecondaryDurationLabel?: string;
|
|
80
|
+
readonly toolCallTimeoutPrimaryCancelledLabel?: string;
|
|
81
|
+
readonly toolCallTimeoutPrimaryInactiveLabel?: string;
|
|
82
|
+
readonly toolCallTimeoutPrimaryUpdatedLabel?: string;
|
|
83
|
+
readonly toolCallTimeoutPrimaryFallbackLabel?: string;
|
|
84
|
+
};
|
|
67
85
|
/**
|
|
68
86
|
* Inputs required to derive timeout presentation metadata.
|
|
69
87
|
*
|
|
@@ -86,6 +104,11 @@ type ResolveTimeoutToolCallPresentationOptions = {
|
|
|
86
104
|
* Current date used to calculate relative labels.
|
|
87
105
|
*/
|
|
88
106
|
readonly currentDate?: Date;
|
|
107
|
+
/**
|
|
108
|
+
* Optional BCP-47 locale string used to format local-time labels.
|
|
109
|
+
* When omitted the browser/OS default locale is used.
|
|
110
|
+
*/
|
|
111
|
+
readonly locale?: string;
|
|
89
112
|
};
|
|
90
113
|
/**
|
|
91
114
|
* Determines whether a tool name belongs to the timeout commitment.
|
|
@@ -104,19 +127,19 @@ export declare function resolveTimeoutToolCallPresentation(options: ResolveTimeo
|
|
|
104
127
|
*
|
|
105
128
|
* @private internal utility of `<Chat/>`
|
|
106
129
|
*/
|
|
107
|
-
export declare function buildTimeoutToolCallChipLabel(presentation: TimeoutToolCallPresentation): string;
|
|
130
|
+
export declare function buildTimeoutToolCallChipLabel(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string;
|
|
108
131
|
/**
|
|
109
132
|
* Builds the primary timeout sentence shown in default modal view.
|
|
110
133
|
*
|
|
111
134
|
* @private internal utility of `<Chat/>`
|
|
112
135
|
*/
|
|
113
|
-
export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToolCallPresentation): string;
|
|
136
|
+
export declare function buildTimeoutToolPrimarySentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string;
|
|
114
137
|
/**
|
|
115
138
|
* Builds one default-view scheduling sentence with local-time and relative context.
|
|
116
139
|
*
|
|
117
140
|
* @private internal utility of `<Chat/>`
|
|
118
141
|
*/
|
|
119
|
-
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation): string | null;
|
|
142
|
+
export declare function buildTimeoutToolScheduleSentence(presentation: TimeoutToolCallPresentation, translations?: TimeoutToolCallTranslations): string | null;
|
|
120
143
|
export {};
|
|
121
144
|
/**
|
|
122
145
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4,6 +4,4 @@
|
|
|
4
4
|
* @private internal utility of Promptbook CLI bootstrap
|
|
5
5
|
*/
|
|
6
6
|
export declare function $runPromptbookCli(): Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
9
|
-
*/
|
|
7
|
+
/** Note: [🟡] Code for CLI bootstrap [$runPromptbookCli](src/cli/$runPromptbookCli.ts) should never be published outside of `@promptbook/cli` */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeBoilerplateCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [_boilerplate](src/cli/cli-commands/_boilerplate.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,9 +8,9 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeAboutCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [about](src/cli/cli-commands/about.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
13
14
|
* TODO: [🗽] Unite branding and make single place for it
|
|
14
15
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
15
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
16
16
|
*/
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderFindFreshEmojiTagCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [find-fresh-emoji-tags](src/cli/cli-commands/coder/find-fresh-emoji-tags.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderFindRefactorCandidatesCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [find-refactor-candidates](src/cli/cli-commands/coder/find-refactor-candidates.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderGenerateBoilerplatesCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [generate-boilerplates](src/cli/cli-commands/coder/generate-boilerplates.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderInitCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [init](src/cli/cli-commands/coder/init.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderRunCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [run](src/cli/cli-commands/coder/run.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeCoderVerifyCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [verify](src/cli/cli-commands/coder/verify.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -16,7 +16,5 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
16
16
|
* @private internal function of `promptbookCli`
|
|
17
17
|
*/
|
|
18
18
|
export declare function $initializeCoderCommand(program: Program): $side_effect;
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
22
|
-
*/
|
|
19
|
+
/** Note: [🟡] Code for CLI command [coder](src/cli/cli-commands/coder.ts) should never be published outside of `@promptbook/cli` */
|
|
20
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,8 +8,8 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeHelloCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [hello](src/cli/cli-commands/hello.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [🧠][🐣] Make here some easter egg with generated hello greeting via LLM models
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
15
15
|
*/
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeListModelsCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [list-models](src/cli/cli-commands/list-models.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeListScrapersCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [list-scrapers](src/cli/cli-commands/list-scrapers.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,8 +8,8 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeLoginCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [login](src/cli/cli-commands/login.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: Implement non-interactive login
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
15
15
|
*/
|
|
@@ -8,10 +8,10 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeMakeCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [make](src/cli/cli-commands/make.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [🥃][main] !!3 Allow `ptbk make` without configuring any llm tools
|
|
13
14
|
* TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
|
|
14
15
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
15
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
16
16
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
17
17
|
*/
|
|
@@ -8,9 +8,9 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializePrettifyCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [prettify](src/cli/cli-commands/prettify.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [😶] Unite folder listing
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
15
15
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
16
16
|
*/
|
|
@@ -8,11 +8,11 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeRunCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [run](src/cli/cli-commands/run.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: !!5 Catch and wrap all errors from CLI
|
|
13
14
|
* TODO: [🧠] Pass `maxExecutionAttempts`, `csvSettings`
|
|
14
15
|
* TODO: [🥃][main] !!3 Allow `ptbk run` without configuring any llm tools
|
|
15
16
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
16
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
17
17
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
18
18
|
*/
|
|
@@ -25,8 +25,8 @@ type RunInteractiveChatbotOptions = {
|
|
|
25
25
|
*/
|
|
26
26
|
export declare function runInteractiveChatbot(options: RunInteractiveChatbotOptions): Promise<void | never>;
|
|
27
27
|
export {};
|
|
28
|
+
/** Note: [🟡] Code for CLI command [runInteractiveChatbot](src/cli/cli-commands/runInteractiveChatbot.ts) should never be published outside of `@promptbook/cli` */
|
|
28
29
|
/**
|
|
29
30
|
* TODO: Saving reports from the chatbot conversation
|
|
30
31
|
* TODO: [⛲️] This is the right place to start implementing INK
|
|
31
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
32
32
|
*/
|
|
@@ -8,7 +8,5 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeStartAgentsServerCommand(program: Program): $side_effect;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟡] Code for CLI command [start-agents-server](src/cli/cli-commands/start-agents-server.ts) should never be published outside of `@promptbook/cli` */
|
|
12
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -8,8 +8,8 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeStartPipelinesServerCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [start-pipelines-server](src/cli/cli-commands/start-pipelines-server.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [🕋] Use here `aboutPromptbookInformation`
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
15
15
|
*/
|
|
@@ -8,10 +8,10 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
|
8
8
|
* @private internal function of `promptbookCli`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $initializeTestCommand(program: Program): $side_effect;
|
|
11
|
+
/** Note: [🟡] Code for CLI command [test-command](src/cli/cli-commands/test-command.ts) should never be published outside of `@promptbook/cli` */
|
|
11
12
|
/**
|
|
12
13
|
* TODO: [😶] Unite folder listing
|
|
13
14
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
14
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
15
15
|
* TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
|
|
16
16
|
* Note: This is named "test-command.ts" to avoid name collision with jest unit test files
|
|
17
17
|
*/
|
package/esm/src/cli/main.d.ts
CHANGED
|
@@ -10,7 +10,5 @@ import { $runPromptbookCli } from './$runPromptbookCli';
|
|
|
10
10
|
export declare const _CLI: {
|
|
11
11
|
_initialize_promptbookCli: typeof $runPromptbookCli;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
16
|
-
*/
|
|
13
|
+
/** Note: [🟡] Code for CLI entrypoint [main](src/cli/main.ts) should never be published outside of `@promptbook/cli` */
|
|
14
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* @private within the `@promptbook/cli`
|
|
5
5
|
*/
|
|
6
6
|
export declare function promptbookCli(): Promise<void>;
|
|
7
|
+
/** Note: [🟡] Code for CLI program [promptbookCli](src/cli/promptbookCli.ts) should never be published outside of `@promptbook/cli` */
|
|
7
8
|
/**
|
|
8
9
|
* TODO: [🧠] Maybe `run` command the default, instead of `ptbk run ./foo.book` -> `ptbk ./foo.book`
|
|
9
10
|
* TODO: [🥠] Do not export, its just for CLI script
|
|
10
11
|
* TODO: [🕌] When more functionalities, rename
|
|
11
12
|
* Note: 11:11
|
|
12
|
-
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
13
13
|
*/
|
|
@@ -17,6 +17,4 @@
|
|
|
17
17
|
* the Agents Server API endpoint at /api/scrape
|
|
18
18
|
*/
|
|
19
19
|
export declare function fetchUrlContent(url: string): Promise<string>;
|
|
20
|
-
/**
|
|
21
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
22
|
-
*/
|
|
20
|
+
/** Note: [🟢] Code for Node browser-fetch helper [fetchUrlContent](src/commitments/USE_BROWSER/fetchUrlContent.ts) should never be published into packages that could be imported into browser environment */
|
|
@@ -11,6 +11,4 @@ import type { string_filename } from '../../types/typeAliases';
|
|
|
11
11
|
* @private utility of Promptbook
|
|
12
12
|
*/
|
|
13
13
|
export declare function loadArchive(filePath: string_filename, fs: FilesystemTools): Promise<ReadonlyArray<PipelineJson>>;
|
|
14
|
-
/**
|
|
15
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
16
|
-
*/
|
|
14
|
+
/** Note: [🟢] Code for Node archive helper [loadArchive](src/conversion/archive/loadArchive.ts) should never be published into packages that could be imported into browser environment */
|
|
@@ -11,8 +11,8 @@ import type { string_filename } from '../../types/typeAliases';
|
|
|
11
11
|
* @private utility of Promptbook
|
|
12
12
|
*/
|
|
13
13
|
export declare function saveArchive(filePath: string_filename, collectionJson: ReadonlyArray<PipelineJson>, fs: FilesystemTools): Promise<void>;
|
|
14
|
+
/** Note: [🟢] Code for Node archive helper [saveArchive](src/conversion/archive/saveArchive.ts) should never be published into packages that could be imported into browser environment */
|
|
14
15
|
/**
|
|
15
16
|
* TODO: Add metadata to zip
|
|
16
17
|
* TODO: Compression level and other zip options from config
|
|
17
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
18
18
|
*/
|
|
@@ -17,7 +17,5 @@ export declare function importPipelineWithoutPreparation(path: `${string}.bookc`
|
|
|
17
17
|
* @private internal function of tests
|
|
18
18
|
*/
|
|
19
19
|
export declare function importPipelineJson(path: `${string}.bookc`): Promise<PipelineJson>;
|
|
20
|
-
/**
|
|
21
|
-
|
|
22
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
23
|
-
*/
|
|
20
|
+
/** Note: [⚫] Code for private pipeline import shim [_importPipeline](src/conversion/validation/_importPipeline.ts) should never be published in any package */
|
|
21
|
+
/** Note: [💞] Ignore a discrepancy between file name and entity name */
|
|
@@ -17,6 +17,4 @@ export declare class SimplePromptInterfaceTools implements UserInterfaceTools {
|
|
|
17
17
|
*/
|
|
18
18
|
promptDialog(options: UserInterfaceToolsPromptDialogOptions): Promise<string>;
|
|
19
19
|
}
|
|
20
|
-
/**
|
|
21
|
-
* Note: [🔵] Code in this file should never be published outside of `@promptbook/browser`
|
|
22
|
-
*/
|
|
20
|
+
/** Note: [🔵] Code for browser dialog helper [SimplePromptInterfaceTools](src/dialogs/simple-prompt/SimplePromptInterfaceTools.ts) should never be published outside of `@promptbook/browser` */
|
|
@@ -6,8 +6,8 @@ import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions
|
|
|
6
6
|
* @public exported from `@promptbook/node`
|
|
7
7
|
*/
|
|
8
8
|
export declare function $provideExecutablesForNode(options?: PrepareAndScrapeOptions): Promise<Executables>;
|
|
9
|
+
/** Note: [🟢] Code for Node executable locator [$provideExecutablesForNode](src/executables/$provideExecutablesForNode.ts) should never be published into packages that could be imported into browser environment */
|
|
9
10
|
/**
|
|
10
11
|
* TODO: [🧠] Allow to override the executables without need to call `locatePandoc` / `locateLibreoffice` in case of provided
|
|
11
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
12
12
|
* TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
|
|
13
13
|
*/
|
|
@@ -6,7 +6,5 @@ import type { string_executable_path } from '../../types/typeAliases';
|
|
|
6
6
|
* @private within the repository
|
|
7
7
|
*/
|
|
8
8
|
export declare function locateLibreoffice(): Promise<string_executable_path | null>;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
12
|
-
*/
|
|
9
|
+
/** Note: [🟢] Code for Node executable locator [locateLibreoffice](src/executables/apps/locateLibreoffice.ts) should never be published into packages that could be imported into browser environment */
|
|
10
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/legacy-documents` */
|
|
@@ -6,7 +6,5 @@ import type { string_executable_path } from '../../types/typeAliases';
|
|
|
6
6
|
* @private within the repository
|
|
7
7
|
*/
|
|
8
8
|
export declare function locatePandoc(): Promise<string_executable_path | null>;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
12
|
-
*/
|
|
9
|
+
/** Note: [🟢] Code for Node executable locator [locatePandoc](src/executables/apps/locatePandoc.ts) should never be published into packages that could be imported into browser environment */
|
|
10
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` OR `@promptbook/documents` */
|
|
@@ -27,7 +27,5 @@ export type LocateAppOptions = {
|
|
|
27
27
|
* @private within the repository
|
|
28
28
|
*/
|
|
29
29
|
export declare function locateApp(options: RequireAtLeastOne<LocateAppOptions, 'linuxWhich' | 'windowsSuffix' | 'macOsName'>): Promise<string_executable_path | null>;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
33
|
-
*/
|
|
30
|
+
/** Note: [🟢] Code for Node executable locator [locateApp](src/executables/locateApp.ts) should never be published into packages that could be imported into browser environment */
|
|
31
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
|
|
@@ -7,7 +7,5 @@ import type { LocateAppOptions } from '../locateApp';
|
|
|
7
7
|
* @private within the repository
|
|
8
8
|
*/
|
|
9
9
|
export declare function locateAppOnLinux({ linuxWhich, }: Pick<Required<LocateAppOptions>, 'linuxWhich'>): Promise<string_executable_path | null>;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
13
|
-
*/
|
|
10
|
+
/** Note: [🟢] Code for Node executable locator [locateAppOnLinux](src/executables/platforms/locateAppOnLinux.ts) should never be published into packages that could be imported into browser environment */
|
|
11
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
|
|
@@ -7,7 +7,5 @@ import type { LocateAppOptions } from '../locateApp';
|
|
|
7
7
|
* @private within the repository
|
|
8
8
|
*/
|
|
9
9
|
export declare function locateAppOnMacOs({ macOsName, }: Pick<Required<LocateAppOptions>, 'macOsName'>): Promise<string_executable_path | null>;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
13
|
-
*/
|
|
10
|
+
/** Note: [🟢] Code for Node executable locator [locateAppOnMacOs](src/executables/platforms/locateAppOnMacOs.ts) should never be published into packages that could be imported into browser environment */
|
|
11
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
|
|
@@ -7,7 +7,5 @@ import type { LocateAppOptions } from '../locateApp';
|
|
|
7
7
|
* @private within the repository
|
|
8
8
|
*/
|
|
9
9
|
export declare function locateAppOnWindows({ appName, windowsSuffix, }: Pick<Required<LocateAppOptions>, 'appName' | 'windowsSuffix'>): Promise<string_executable_path | null>;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
13
|
-
*/
|
|
10
|
+
/** Note: [🟢] Code for Node executable locator [locateAppOnWindows](src/executables/platforms/locateAppOnWindows.ts) should never be published into packages that could be imported into browser environment */
|
|
11
|
+
/** TODO: [🧠][♿] Maybe export through `@promptbook/node` */
|
|
@@ -6,7 +6,5 @@ import type { TranslatorOptions } from './automatic-translators/TranslatorOption
|
|
|
6
6
|
export declare function translateMessages({ automaticTranslator, from, to, }: {
|
|
7
7
|
automaticTranslator: AutomaticTranslator;
|
|
8
8
|
} & TranslatorOptions): Promise<void>;
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
12
|
-
*/
|
|
9
|
+
/** Note: [🟢] Code for Node translation helper [translateMessages](src/execution/translation/automatic-translate/translateMessages.ts) should never be published into packages that could be imported into browser environment */
|
|
10
|
+
/** TODO: [😶] Unite folder listing */
|
|
@@ -8,7 +8,5 @@ import type { ExecutionTools } from '../ExecutionTools';
|
|
|
8
8
|
* @public exported from `@promptbook/node`
|
|
9
9
|
*/
|
|
10
10
|
export declare function $provideExecutionToolsForNode(options?: PrepareAndScrapeOptions): Promise<ExecutionTools>;
|
|
11
|
-
/**
|
|
12
|
-
|
|
13
|
-
* TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming
|
|
14
|
-
*/
|
|
11
|
+
/** Note: [🟢] Code for Node execution helper [$provideExecutionToolsForNode](src/execution/utils/$provideExecutionToolsForNode.ts) should never be published into packages that could be imported into browser environment */
|
|
12
|
+
/** TODO: [🏓] Unite `xxxForServer` and `xxxForNode` naming */
|
|
@@ -7,6 +7,4 @@ import type { string_filename } from '../../../types/typeAliases';
|
|
|
7
7
|
* @private within the repository - for CLI utils
|
|
8
8
|
*/
|
|
9
9
|
export declare function $provideEnvFilename(): Promise<string_filename | null>;
|
|
10
|
-
/**
|
|
11
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
12
|
-
*/
|
|
10
|
+
/** Note: [🟢] Code for Node environment helper [$provideEnvFilename](src/llm-providers/_common/register/$provideEnvFilename.ts) should never be published into packages that could be imported into browser environment */
|
|
@@ -14,6 +14,4 @@ import type { LlmToolsConfiguration } from './LlmToolsConfiguration';
|
|
|
14
14
|
* @public exported from `@promptbook/node`
|
|
15
15
|
*/
|
|
16
16
|
export declare function $provideLlmToolsConfigurationFromEnv(): Promise<LlmToolsConfiguration>;
|
|
17
|
-
/**
|
|
18
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
19
|
-
*/
|
|
17
|
+
/** Note: [🟢] Code for Node environment helper [$provideLlmToolsConfigurationFromEnv](src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.ts) should never be published into packages that could be imported into browser environment */
|
|
@@ -49,8 +49,8 @@ type ProvideLlmToolsForWizardOrCliOptions = {
|
|
|
49
49
|
*/
|
|
50
50
|
export declare function $provideLlmToolsForWizardOrCli(options?: ProvideLlmToolsForWizardOrCliOptions): Promise<LlmExecutionToolsWithTotalUsage>;
|
|
51
51
|
export {};
|
|
52
|
+
/** Note: [🟢] Code for Node environment helper [$provideLlmToolsForWizardOrCli](src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.ts) should never be published into packages that could be imported into browser environment */
|
|
52
53
|
/**
|
|
53
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
54
54
|
* TODO: [👷♂️] Write a comprehensive manual about the construction of LLM tools
|
|
55
55
|
* TODO: [🥃] Allow `ptbk make` without llm tools
|
|
56
56
|
* TODO: This should be maybe not under `_common` but under `utils-internal` / `utils/internal`
|
|
@@ -21,20 +21,18 @@ import type { CreateLlmToolsFromConfigurationOptions } from './createLlmToolsFro
|
|
|
21
21
|
* @public exported from `@promptbook/node`
|
|
22
22
|
*/
|
|
23
23
|
export declare function $provideLlmToolsFromEnv(options?: CreateLlmToolsFromConfigurationOptions): Promise<MultipleLlmExecutionTools>;
|
|
24
|
+
/** Note: [🟢] Code for Node environment helper [$provideLlmToolsFromEnv](src/llm-providers/_common/register/$provideLlmToolsFromEnv.ts) should never be published into packages that could be imported into browser environment */
|
|
24
25
|
/**
|
|
25
26
|
* TODO: The architecture for LLM tools configuration consists of three key functions:
|
|
26
27
|
* 1. `$provideLlmToolsFromEnv` - High-level function that detects available providers from env vars and returns ready-to-use LLM tools
|
|
27
28
|
* 2. `$provideLlmToolsConfigurationFromEnv` - Middle layer that extracts configuration objects from environment variables
|
|
28
29
|
* 3. `createLlmToolsFromConfiguration` - Low-level function that instantiates LLM tools from explicit configuration
|
|
29
|
-
*
|
|
30
30
|
* This layered approach allows flexibility in how tools are configured:
|
|
31
31
|
* - Use $provideLlmToolsFromEnv for automatic detection and setup in Node.js environments
|
|
32
32
|
* - Use $provideLlmToolsConfigurationFromEnv to extract config objects for modification before instantiation
|
|
33
33
|
* - Use createLlmToolsFromConfiguration for explicit control over tool configurations
|
|
34
|
-
*
|
|
35
34
|
* TODO: [🧠][🍛] Which name is better `$provideLlmToolsFromEnv` or `$provideLlmToolsFromEnvironment`?
|
|
36
35
|
* TODO: [🧠] Is there some meaningfull way how to test this util
|
|
37
|
-
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
38
36
|
* TODO: [🥃] Allow `ptbk make` without llm tools
|
|
39
37
|
* TODO: This should be maybe not under `_common` but under `utils`
|
|
40
38
|
* TODO: [®] DRY Register logic
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
-
/**
|
|
4
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
5
|
-
*/
|
|
3
|
+
/** Note: [⚫] Code for playground [_multiple playground](src/llm-providers/_multiple/playground/playground.ts) should never be published in any package */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
+
/** Note: [⚫] Code for playground [agent playground](src/llm-providers/agent/playground/playground.ts) should never be published in any package */
|
|
3
4
|
/**
|
|
4
5
|
* TODO: [🧠] Add more complex agent scenarios
|
|
5
6
|
* TODO: [🧠] Add parameter substitution demo
|
|
6
7
|
* TODO: [🧠] Add multi-turn conversation demo
|
|
7
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
8
8
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
+
/** Note: [⚫] Code for playground [anthropic-claude playground](src/llm-providers/anthropic-claude/playground/playground.ts) should never be published in any package */
|
|
3
4
|
/**
|
|
4
5
|
* TODO: [main] !!3 Playground with WebGPT / Promptbook.studio anonymous server
|
|
5
6
|
* TODO: [main] !!3 Test here that `systemMessage`, `temperature` and `seed` are working correctly
|
|
6
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
7
7
|
*/
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
6
|
-
*/
|
|
3
|
+
/** Note: [⚫] Code for playground [azure-openai playground](src/llm-providers/azure-openai/playground/playground.ts) should never be published in any package */
|
|
4
|
+
/** TODO: Test here that `systemMessage`, `temperature` and `seed` are working correctly */
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
6
|
-
*/
|
|
3
|
+
/** Note: [⚫] Code for playground [ollama playground](src/llm-providers/ollama/playground/playground.ts) should never be published in any package */
|
|
4
|
+
/** TODO: [main] !!3 Test here that `systemMessage`, `temperature` and `seed` are working correctly */
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
export {};
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
6
|
-
*/
|
|
3
|
+
/** Note: [⚫] Code for playground [openai playground](src/llm-providers/openai/playground/playground.ts) should never be published in any package */
|
|
4
|
+
/** TODO: [main] !!3 Test here that `systemMessage`, `temperature` and `seed` are working correctly */
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env ts-node
|
|
2
2
|
import '../../openai/register-constructor';
|
|
3
|
-
/**
|
|
4
|
-
* Note: [⚫] Code in this file should never be published in any package
|
|
5
|
-
*/
|
|
3
|
+
/** Note: [⚫] Code for playground [remote playground](src/llm-providers/remote/playground/playground.ts) should never be published in any package */
|