@promptbook/utils 0.112.0-34 → 0.112.0-35
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/README.md +18 -0
- package/esm/index.es.js +198 -186
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/types.index.d.ts +45 -45
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -4
- package/esm/src/book-2.0/agent-source/AgentModelRequirements.d.ts +0 -4
- package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/padBook.d.ts +1 -4
- package/esm/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
- package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/parseTeamCommitment.d.ts +0 -3
- package/esm/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +8 -3
- package/esm/src/book-2.0/agent-source/string_book.d.ts +1 -0
- package/esm/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +0 -3
- package/esm/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +0 -3
- package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +0 -3
- package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +0 -3
- package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +4 -0
- package/esm/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +1 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +7 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +3 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
- package/esm/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
- package/esm/src/book-components/Chat/AgentChip/AgentChip.d.ts +6 -5
- package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +4 -8
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +2 -3
- package/esm/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
- package/esm/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +0 -3
- package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/chatCssClassNames.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/constants.d.ts +4 -3
- package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
- package/esm/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
- package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
- package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +3 -0
- package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
- package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +7 -30
- package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
- package/esm/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +3 -3
- package/esm/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
- package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +4 -3
- package/esm/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
- package/esm/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
- package/esm/src/book-components/Chat/effects/index.d.ts +0 -4
- package/esm/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
- package/esm/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
- package/esm/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
- package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +0 -3
- package/esm/src/book-components/Chat/save/index.d.ts +0 -3
- package/esm/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +1 -0
- package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +0 -4
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +3 -5
- package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +0 -3
- package/esm/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
- package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +4 -3
- package/esm/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
- package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +2 -1
- package/esm/src/book-components/Chat/utils/loadAgentProfile.d.ts +12 -0
- package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
- package/esm/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
- package/esm/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +14 -0
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +3 -0
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +0 -3
- package/esm/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +3 -3
- package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +3 -5
- package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -5
- package/esm/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
- package/esm/src/book-components/Qr/GenericQrCode.d.ts +5 -0
- package/esm/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
- package/esm/src/book-components/Qr/useQrCode.d.ts +4 -1
- package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
- package/esm/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
- package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
- package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -3
- package/esm/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
- package/esm/src/book-components/icons/AboutIcon.d.ts +1 -0
- package/esm/src/book-components/icons/AttachmentIcon.d.ts +4 -0
- package/esm/src/book-components/icons/CameraIcon.d.ts +4 -0
- package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -0
- package/esm/src/book-components/icons/EmailIcon.d.ts +1 -0
- package/esm/src/book-components/icons/MenuIcon.d.ts +1 -3
- package/esm/src/book-components/icons/SaveIcon.d.ts +1 -0
- package/esm/src/book-components/icons/SendIcon.d.ts +0 -3
- package/esm/src/book-components/icons/TeacherIcon.d.ts +1 -0
- package/esm/src/cli/$runPromptbookCli.d.ts +0 -1
- package/esm/src/cli/cli-commands/_boilerplate.d.ts +0 -2
- package/esm/src/cli/cli-commands/about.d.ts +0 -6
- package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
- package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +0 -2
- package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +0 -2
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +0 -2
- package/esm/src/cli/cli-commands/coder/init.d.ts +0 -2
- package/esm/src/cli/cli-commands/coder/run.d.ts +1 -3
- package/esm/src/cli/cli-commands/coder/run.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/verify.d.ts +0 -2
- package/esm/src/cli/cli-commands/coder.d.ts +0 -2
- package/esm/src/cli/cli-commands/common/handleActionErrors.d.ts +4 -0
- package/esm/src/cli/cli-commands/hello.d.ts +0 -5
- package/esm/src/cli/cli-commands/list-models.d.ts +0 -2
- package/esm/src/cli/cli-commands/list-scrapers.d.ts +0 -2
- package/esm/src/cli/cli-commands/login.d.ts +0 -5
- package/esm/src/cli/cli-commands/prettify.d.ts +0 -6
- package/esm/src/cli/cli-commands/run.d.ts +0 -8
- package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
- package/esm/src/cli/cli-commands/start-agents-server.d.ts +0 -2
- package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
- package/esm/src/cli/cli-commands/test-command.d.ts +0 -7
- package/esm/src/cli/common/$provideLlmToolsForCli.d.ts +5 -0
- package/esm/src/cli/main.d.ts +0 -2
- package/esm/src/cli/promptbookCli.d.ts +0 -7
- package/esm/src/collection/agent-collection/AgentCollection.d.ts +0 -3
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +2 -6
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
- package/esm/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +2 -1
- package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +2 -5
- package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
- package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
- package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +2 -3
- package/esm/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +1 -0
- package/esm/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
- package/esm/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +1 -0
- package/esm/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
- package/esm/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
- package/esm/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
- package/esm/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
- package/esm/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
- package/esm/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
- package/esm/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
- package/esm/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
- package/esm/src/commands/JOKER/JokerCommand.d.ts +1 -0
- package/esm/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
- package/esm/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +1 -0
- package/esm/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
- package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +0 -3
- package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
- package/esm/src/commands/MODEL/ModelCommand.d.ts +1 -0
- package/esm/src/commands/MODEL/modelCommandParser.d.ts +1 -0
- package/esm/src/commands/PARAMETER/ParameterCommand.d.ts +1 -0
- package/esm/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
- package/esm/src/commands/PERSONA/PersonaCommand.d.ts +1 -0
- package/esm/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
- package/esm/src/commands/POSTPROCESS/PostprocessCommand.d.ts +1 -0
- package/esm/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
- package/esm/src/commands/SECTION/SectionCommand.d.ts +1 -0
- package/esm/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
- package/esm/src/commands/URL/UrlCommand.d.ts +1 -0
- package/esm/src/commands/URL/urlCommandParser.d.ts +1 -0
- package/esm/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
- package/esm/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
- package/esm/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
- package/esm/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
- package/esm/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
- package/esm/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
- package/esm/src/commands/_common/stringifyCommand.d.ts +1 -1
- package/esm/src/commands/_common/types/CommandParser.d.ts +0 -4
- package/esm/src/commands/index.d.ts +0 -3
- package/esm/src/commitments/ACTION/ACTION.d.ts +0 -3
- package/esm/src/commitments/CLOSED/CLOSED.d.ts +0 -3
- package/esm/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
- package/esm/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
- package/esm/src/commitments/DELETE/DELETE.d.ts +0 -3
- package/esm/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
- package/esm/src/commitments/FORMAT/FORMAT.d.ts +0 -3
- package/esm/src/commitments/FROM/FROM.d.ts +0 -3
- package/esm/src/commitments/GOAL/GOAL.d.ts +0 -3
- package/esm/src/commitments/IMPORT/IMPORT.d.ts +0 -3
- package/esm/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
- package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -3
- package/esm/src/commitments/MESSAGE/MESSAGE.d.ts +0 -3
- package/esm/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
- package/esm/src/commitments/META/META.d.ts +0 -3
- package/esm/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
- package/esm/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
- package/esm/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
- package/esm/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +0 -3
- package/esm/src/commitments/META_FONT/META_FONT.d.ts +0 -3
- package/esm/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
- package/esm/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +0 -3
- package/esm/src/commitments/META_LINK/META_LINK.d.ts +0 -3
- package/esm/src/commitments/META_VOICE/META_VOICE.d.ts +0 -3
- package/esm/src/commitments/MODEL/MODEL.d.ts +0 -3
- package/esm/src/commitments/OPEN/OPEN.d.ts +0 -3
- package/esm/src/commitments/PERSONA/PERSONA.d.ts +0 -3
- package/esm/src/commitments/RULE/RULE.d.ts +0 -3
- package/esm/src/commitments/SAMPLE/SAMPLE.d.ts +0 -3
- package/esm/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
- package/esm/src/commitments/TEAM/TEAM.d.ts +0 -3
- package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +0 -3
- package/esm/src/commitments/USE/USE.d.ts +0 -3
- package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +2 -0
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -3
- package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -5
- package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +0 -3
- package/esm/src/commitments/USE_CALENDAR/calendarReference.d.ts +0 -3
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -3
- package/esm/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
- package/esm/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
- package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +0 -3
- package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +0 -3
- package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +0 -3
- package/esm/src/commitments/USE_PROJECT/projectReference.d.ts +0 -3
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -3
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -3
- package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -3
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -3
- package/esm/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +0 -3
- package/esm/src/commitments/WALLET/WALLET.d.ts +0 -3
- package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +0 -3
- package/esm/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +0 -3
- package/esm/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
- package/esm/src/commitments/_common/commitmentToolFunctions.d.ts +2 -3
- package/esm/src/commitments/_common/createWritingCommitmentSections.d.ts +2 -3
- package/esm/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
- package/esm/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
- package/esm/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +0 -4
- package/esm/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
- package/esm/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
- package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +0 -3
- package/esm/src/commitments/_common/toolRuntimeContext.d.ts +3 -3
- package/esm/src/commitments/index.d.ts +0 -4
- package/esm/src/config.test.d.ts +0 -3
- package/esm/src/constants/streaming.d.ts +0 -3
- package/esm/src/constants.d.ts +0 -3
- package/esm/src/conversion/archive/loadArchive.d.ts +0 -1
- package/esm/src/conversion/archive/saveArchive.d.ts +0 -5
- package/esm/src/conversion/compilePipeline.d.ts +2 -7
- package/esm/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
- package/esm/src/conversion/parsePipeline.d.ts +1 -11
- package/esm/src/conversion/pipelineJsonToString.d.ts +1 -7
- package/esm/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
- package/esm/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +0 -7
- package/esm/src/conversion/utils/extractParameterNamesFromTask.d.ts +1 -3
- package/esm/src/conversion/validation/_importPipeline.d.ts +6 -2
- package/esm/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
- package/esm/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
- package/esm/src/conversion/validation/validatePipeline.d.ts +3 -9
- package/esm/src/conversion/validation/validatePipeline.test.d.ts +0 -3
- package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -2
- package/esm/src/errors/0-BoilerplateError.d.ts +0 -3
- package/esm/src/errors/0-index.d.ts +0 -3
- package/esm/src/errors/DatabaseError.d.ts +0 -3
- package/esm/src/errors/ExpectError.d.ts +2 -1
- package/esm/src/errors/ParseError.d.ts +0 -3
- package/esm/src/errors/PipelineExecutionError.d.ts +0 -3
- package/esm/src/executables/$provideExecutablesForNode.d.ts +0 -5
- package/esm/src/executables/apps/locateLibreoffice.d.ts +0 -2
- package/esm/src/executables/apps/locatePandoc.d.ts +0 -2
- package/esm/src/executables/browsers/locateBrowser.d.ts +0 -1
- package/esm/src/executables/browsers/locateDefaultSystemBrowser.d.ts +0 -1
- package/esm/src/executables/locateApp.d.ts +0 -2
- package/esm/src/executables/platforms/locateAppOnLinux.d.ts +0 -2
- package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +0 -2
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +0 -2
- package/esm/src/execution/AbstractTaskResult.d.ts +0 -4
- package/esm/src/execution/AvailableModel.d.ts +0 -4
- package/esm/src/execution/CommonToolsOptions.d.ts +0 -5
- package/esm/src/execution/ExecutionTask.d.ts +4 -4
- package/esm/src/execution/FilesystemTools.d.ts +0 -3
- package/esm/src/execution/LlmExecutionTools.d.ts +3 -9
- package/esm/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
- package/esm/src/execution/PipelineExecutor.d.ts +0 -3
- package/esm/src/execution/PipelineExecutorResult.d.ts +0 -3
- package/esm/src/execution/PromptResult.d.ts +1 -9
- package/esm/src/execution/PromptbookFetch.test-type.d.ts +0 -4
- package/esm/src/execution/ScriptExecutionTools.d.ts +0 -4
- package/esm/src/execution/Usage.d.ts +0 -3
- package/esm/src/execution/UserInterfaceTools.d.ts +3 -0
- package/esm/src/execution/assertsTaskSuccessful.d.ts +1 -3
- package/esm/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
- package/esm/src/execution/createPipelineExecutor/20-executeTask.d.ts +0 -3
- package/esm/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -3
- package/esm/src/execution/createPipelineExecutor/getContextForTask.d.ts +1 -0
- package/esm/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +0 -4
- package/esm/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
- package/esm/src/execution/execution-report/ExecutionReportJson.d.ts +1 -0
- package/esm/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
- package/esm/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
- package/esm/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
- package/esm/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
- package/esm/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
- package/esm/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
- package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -3
- package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
- package/esm/src/execution/utils/checkExpectations.d.ts +2 -5
- package/esm/src/execution/utils/forEachAsync.d.ts +5 -1
- package/esm/src/execution/utils/usage-constants.d.ts +0 -3
- package/esm/src/execution/utils/usageToHuman.d.ts +0 -8
- package/esm/src/execution/utils/validatePromptResult.d.ts +1 -0
- package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +1 -0
- package/esm/src/formats/_common/FormatParser.d.ts +2 -9
- package/esm/src/formats/_common/FormatSubvalueParser.d.ts +0 -3
- package/esm/src/formats/csv/CsvFormatParser.d.ts +2 -8
- package/esm/src/formats/index.d.ts +0 -3
- package/esm/src/formats/json/JsonFormatParser.d.ts +0 -11
- package/esm/src/formats/text/TextFormatParser.d.ts +0 -9
- package/esm/src/formats/xml/XmlFormatParser.d.ts +0 -11
- package/esm/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +1 -3
- package/esm/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
- package/esm/src/formfactors/index.d.ts +0 -3
- package/esm/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
- package/esm/src/high-level-abstractions/index.d.ts +0 -4
- package/esm/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
- package/esm/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
- package/esm/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
- package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +0 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
- package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +3 -7
- package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -16
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +0 -4
- package/esm/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +0 -5
- package/esm/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +0 -6
- package/esm/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
- package/esm/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +1 -0
- package/esm/src/llm-providers/_common/utils/assertUniqueModels.d.ts +0 -3
- package/esm/src/llm-providers/_common/utils/cache/CacheItem.d.ts +0 -3
- package/esm/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
- package/esm/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
- package/esm/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
- package/esm/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
- package/esm/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
- package/esm/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +1 -0
- package/esm/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +3 -7
- package/esm/src/llm-providers/_multiple/playground/playground.d.ts +0 -1
- package/esm/src/llm-providers/agent/Agent.d.ts +0 -3
- package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/agent/RemoteAgent.d.ts +0 -4
- package/esm/src/llm-providers/agent/playground/playground.d.ts +0 -6
- package/esm/src/llm-providers/agent/register-configuration.d.ts +0 -5
- package/esm/src/llm-providers/agent/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -10
- package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
- package/esm/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -8
- package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +1 -3
- package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
- package/esm/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
- package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
- package/esm/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
- package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +0 -6
- package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +1 -0
- package/esm/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +0 -2
- package/esm/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
- package/esm/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
- package/esm/src/llm-providers/deepseek/deepseek-models.d.ts +1 -6
- package/esm/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
- package/esm/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/google/google-models.d.ts +1 -6
- package/esm/src/llm-providers/google/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/google/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -5
- package/esm/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +0 -3
- package/esm/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
- package/esm/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
- package/esm/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
- package/esm/src/llm-providers/ollama/OllamaExecutionTools.d.ts +0 -3
- package/esm/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
- package/esm/src/llm-providers/ollama/ollama-models.d.ts +1 -4
- package/esm/src/llm-providers/ollama/playground/playground.d.ts +0 -2
- package/esm/src/llm-providers/ollama/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/ollama/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +10 -0
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +1 -8
- package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +0 -7
- package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
- package/esm/src/llm-providers/openai/computeOpenAiUsage.d.ts +1 -3
- package/esm/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
- package/esm/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
- package/esm/src/llm-providers/openai/openai-models.d.ts +1 -0
- package/esm/src/llm-providers/openai/openai-models.test.d.ts +0 -3
- package/esm/src/llm-providers/openai/playground/playground.d.ts +0 -2
- package/esm/src/llm-providers/openai/register-configuration.d.ts +0 -3
- package/esm/src/llm-providers/openai/register-constructor.d.ts +0 -4
- package/esm/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -9
- package/esm/src/llm-providers/remote/playground/playground.d.ts +0 -1
- package/esm/src/llm-providers/vercel/playground/playground.d.ts +0 -2
- package/esm/src/other/templates/getBookTemplates.d.ts +2 -5
- package/esm/src/personas/preparePersona.d.ts +1 -7
- package/esm/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
- package/esm/src/pipeline/PipelineInterface/constants.d.ts +0 -3
- package/esm/src/pipeline/PipelineJson/CommonTaskJson.d.ts +0 -4
- package/esm/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
- package/esm/src/pipeline/PipelineJson/Expectations.d.ts +4 -3
- package/esm/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +0 -4
- package/esm/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +0 -3
- package/esm/src/pipeline/PipelineJson/PersonaJson.d.ts +0 -3
- package/esm/src/pipeline/PipelineJson/PreparationJson.d.ts +3 -5
- package/esm/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
- package/esm/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
- package/esm/src/pipeline/book-notation.d.ts +1 -4
- package/esm/src/pipeline/isValidPipelineString.d.ts +1 -3
- package/esm/src/pipeline/isValidPipelineString.test.d.ts +0 -3
- package/esm/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
- package/esm/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
- package/esm/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
- package/esm/src/pipeline/prompt-notation.d.ts +2 -5
- package/esm/src/pipeline/prompt-notation.test.d.ts +0 -3
- package/esm/src/pipeline/validatePipelineString.d.ts +1 -3
- package/esm/src/playground/permanent/_boilerplate.d.ts +0 -1
- package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +0 -1
- package/esm/src/playground/permanent/error-handling-playground.d.ts +0 -1
- package/esm/src/playground/playground.d.ts +0 -2
- package/esm/src/postprocessing/utils/extractBlock.d.ts +2 -1
- package/esm/src/postprocessing/utils/extractJsonBlock.d.ts +2 -5
- package/esm/src/prepare/PrepareAndScrapeOptions.d.ts +0 -4
- package/esm/src/prepare/preparePipeline.d.ts +3 -2
- package/esm/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
- package/esm/src/prepare/prepareTasks.d.ts +6 -10
- package/esm/src/prepare/unpreparePipeline.d.ts +1 -5
- package/esm/src/remote-server/RemoteServer.d.ts +3 -0
- package/esm/src/remote-server/openapi.d.ts +3 -4
- package/esm/src/remote-server/socket-types/_subtypes/Identification.d.ts +1 -5
- package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
- package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
- package/esm/src/remote-server/startAgentServer.d.ts +6 -2
- package/esm/src/remote-server/startRemoteServer.d.ts +1 -15
- package/esm/src/remote-server/types/RemoteClientOptions.d.ts +0 -5
- package/esm/src/remote-server/types/RemoteServerOptions.d.ts +10 -4
- package/esm/src/remote-server/ui/ServerApp.d.ts +1 -0
- package/esm/src/remote-server/ui/types.d.ts +3 -0
- package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +1 -4
- package/esm/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
- package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/_common/Scraper.d.ts +0 -5
- package/esm/src/scrapers/_common/ScraperIntermediateSource.d.ts +0 -3
- package/esm/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
- package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -2
- package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -2
- package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -2
- package/esm/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +0 -3
- package/esm/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
- package/esm/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
- package/esm/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
- package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +0 -7
- package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
- package/esm/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
- package/esm/src/scrapers/document/DocumentScraper.d.ts +1 -6
- package/esm/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
- package/esm/src/scrapers/document/createDocumentScraper.d.ts +0 -3
- package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/document/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/document/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -6
- package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
- package/esm/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
- package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
- package/esm/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
- package/esm/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
- package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/markdown/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/markdown/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
- package/esm/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
- package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/markitdown/register-constructor.d.ts +0 -5
- package/esm/src/scrapers/markitdown/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -6
- package/esm/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
- package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/pdf/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/pdf/register-metadata.d.ts +0 -3
- package/esm/src/scrapers/website/WebsiteScraper.d.ts +1 -6
- package/esm/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
- package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -1
- package/esm/src/scrapers/website/register-constructor.d.ts +0 -4
- package/esm/src/scrapers/website/register-metadata.d.ts +0 -3
- package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
- package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
- package/esm/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
- package/esm/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +0 -3
- package/esm/src/scripting/javascript/postprocessing-functions.d.ts +0 -4
- package/esm/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +1 -3
- package/esm/src/search-engines/SearchEngine.d.ts +3 -0
- package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -2
- package/esm/src/speech-recognition/OpenAiSpeechRecognition.d.ts +2 -2
- package/esm/src/storage/_common/PromptbookStorage.d.ts +0 -4
- package/esm/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
- package/esm/src/storage/env-storage/$EnvStorage.d.ts +0 -3
- package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -2
- package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -1
- package/esm/src/storage/local-storage/getLocalStorage.d.ts +0 -1
- package/esm/src/storage/local-storage/getSessionStorage.d.ts +0 -1
- package/esm/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
- package/esm/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
- package/esm/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
- package/esm/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
- package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +0 -1
- package/esm/src/transpilers/openai-sdk/register.d.ts +2 -5
- package/esm/src/types/Arrayable.d.ts +1 -0
- package/esm/src/types/InputParameters_private.d.ts +4 -2
- package/esm/src/types/IntermediateFilesStrategy.d.ts +0 -3
- package/esm/src/types/LlmCall.d.ts +0 -3
- package/esm/src/types/ModelRequirements.d.ts +1 -0
- package/esm/src/types/ModelVariant.d.ts +3 -0
- package/esm/src/types/Parameters.d.ts +31 -0
- package/esm/src/types/Parameters_private.d.ts +4 -2
- package/esm/src/types/Prompt.d.ts +1 -6
- package/esm/src/types/ReservedParameters_private.d.ts +2 -1
- package/esm/src/types/ToolCall.d.ts +0 -2
- package/esm/src/types/Updatable.d.ts +1 -3
- package/esm/src/types/string_agent_hash_private.d.ts +1 -1
- package/esm/src/types/string_agent_name.d.ts +32 -0
- package/esm/src/types/string_agent_name_in_book_private.d.ts +1 -1
- package/esm/src/types/string_agent_name_private.d.ts +2 -1
- package/esm/src/types/string_agent_permanent_id_private.d.ts +2 -1
- package/esm/src/types/string_business_category_name.d.ts +5 -0
- package/esm/src/types/string_business_category_name_private.d.ts +1 -1
- package/esm/src/types/string_char_private.d.ts +1 -1
- package/esm/src/types/string_chat_prompt_private.d.ts +1 -1
- package/esm/src/types/string_completion_prompt_private.d.ts +1 -1
- package/esm/src/types/string_markdown.d.ts +0 -1
- package/esm/src/types/string_mime_type_private.d.ts +1 -0
- package/esm/src/types/string_model_description_private.d.ts +1 -1
- package/esm/src/types/string_model_name.d.ts +7 -0
- package/esm/src/types/string_model_name_private.d.ts +1 -1
- package/esm/src/types/string_name.d.ts +31 -0
- package/esm/src/types/string_name_private.d.ts +1 -1
- package/esm/src/types/string_page.d.ts +15 -0
- package/esm/src/types/string_page_private.d.ts +1 -1
- package/esm/src/types/string_parameter_name.d.ts +11 -210
- package/esm/src/types/string_parameter_value_private.d.ts +1 -1
- package/esm/src/types/string_persona_description.d.ts +14 -0
- package/esm/src/types/string_persona_description_private.d.ts +1 -1
- package/esm/src/types/string_prompt.d.ts +49 -0
- package/esm/src/types/string_prompt_image_private.d.ts +1 -1
- package/esm/src/types/string_prompt_private.d.ts +1 -1
- package/esm/src/types/string_reserved_parameter_name_private.d.ts +1 -1
- package/esm/src/types/string_sha256.d.ts +2 -2
- package/esm/src/types/string_system_message_private.d.ts +1 -1
- package/esm/src/types/string_template_private.d.ts +1 -1
- package/esm/src/types/string_text_prompt_private.d.ts +1 -1
- package/esm/src/types/string_title.d.ts +8 -0
- package/esm/src/types/string_title_private.d.ts +1 -1
- package/esm/src/types/typeAliasEmoji.d.ts +0 -3
- package/esm/src/types/typeAliases.d.ts +0 -6
- package/esm/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
- package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +1 -0
- package/esm/src/utils/chat/chatAttachments.d.ts +0 -3
- package/esm/src/utils/chat/constants.d.ts +0 -3
- package/esm/src/utils/clientVersion.d.ts +0 -3
- package/esm/src/utils/color/$randomColor.d.ts +0 -5
- package/esm/src/utils/color/css-colors.d.ts +0 -3
- package/esm/src/utils/color/internal-utils/hslToRgb.d.ts +0 -3
- package/esm/src/utils/color/internal-utils/rgbToHsl.d.ts +0 -3
- package/esm/src/utils/color/operators/ColorTransformer.d.ts +2 -0
- package/esm/src/utils/color/operators/lighten.d.ts +0 -3
- package/esm/src/utils/color/operators/saturate.d.ts +0 -3
- package/esm/src/utils/color/utils/areColorsEqual.d.ts +0 -3
- package/esm/src/utils/color/utils/colorDistance.d.ts +2 -2
- package/esm/src/utils/color/utils/colorHue.d.ts +0 -1
- package/esm/src/utils/color/utils/colorHueDistance.d.ts +0 -1
- package/esm/src/utils/color/utils/colorToDataUrl.d.ts +0 -3
- package/esm/src/utils/database/uniqueConstraint.d.ts +1 -3
- package/esm/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +3 -4
- package/esm/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
- package/esm/src/utils/editable/types/PipelineEditableSerialized.d.ts +2 -2
- package/esm/src/utils/editable/utils/renamePipelineParameter.d.ts +4 -3
- package/esm/src/utils/editable/utils/stringifyPipelineJson.d.ts +0 -6
- package/esm/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
- package/esm/src/utils/environment/$getGlobalScope.d.ts +1 -1
- package/esm/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
- package/esm/src/utils/environment/$isRunningInJest.d.ts +0 -3
- package/esm/src/utils/environment/$isRunningInNode.d.ts +0 -3
- package/esm/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
- package/esm/src/utils/execCommand/$execCommand.d.ts +0 -2
- package/esm/src/utils/execCommand/$execCommands.d.ts +0 -1
- package/esm/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
- package/esm/src/utils/expectation-counters/constants.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countCharacters.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countLines.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countPages.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countSentences.d.ts +0 -4
- package/esm/src/utils/expectation-counters/countWords.d.ts +0 -5
- package/esm/src/utils/expectation-counters/index.d.ts +0 -4
- package/esm/src/utils/files/$induceBookDownload.d.ts +0 -1
- package/esm/src/utils/files/$induceFileDownload.d.ts +0 -1
- package/esm/src/utils/files/ObjectUrl.d.ts +0 -1
- package/esm/src/utils/files/isDirectoryExisting.d.ts +0 -6
- package/esm/src/utils/files/isExecutable.d.ts +0 -4
- package/esm/src/utils/files/isFileExisting.d.ts +0 -5
- package/esm/src/utils/files/listAllFiles.d.ts +1 -5
- package/esm/src/utils/files/readResponseBytes.d.ts +1 -0
- package/esm/src/utils/knowledge/inlineKnowledgeSource.d.ts +11 -6
- package/esm/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
- package/esm/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
- package/esm/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
- package/esm/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
- package/esm/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
- package/esm/src/utils/markdown/addAutoGeneratedSection.d.ts +0 -3
- package/esm/src/utils/markdown/createMarkdownTable.d.ts +0 -3
- package/esm/src/utils/markdown/escapeMarkdownBlock.d.ts +0 -3
- package/esm/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -3
- package/esm/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -0
- package/esm/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +2 -4
- package/esm/src/utils/markdown/humanizeAiText.d.ts +0 -3
- package/esm/src/utils/markdown/humanizeAiTextEllipsis.d.ts +0 -3
- package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +0 -3
- package/esm/src/utils/markdown/humanizeAiTextQuotes.d.ts +0 -3
- package/esm/src/utils/markdown/humanizeAiTextSources.d.ts +0 -3
- package/esm/src/utils/markdown/humanizeAiTextWhitespace.d.ts +0 -3
- package/esm/src/utils/markdown/prettifyMarkdown.d.ts +4 -2
- package/esm/src/utils/markdown/promptbookifyAiText.d.ts +0 -3
- package/esm/src/utils/markdown/removeMarkdownComments.d.ts +1 -0
- package/esm/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -0
- package/esm/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
- package/esm/src/utils/markdown/trimCodeBlock.d.ts +1 -1
- package/esm/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
- package/esm/src/utils/misc/$getCurrentDate.d.ts +1 -0
- package/esm/src/utils/misc/aboutPromptbookInformation.d.ts +3 -3
- package/esm/src/utils/misc/computeHash.d.ts +0 -3
- package/esm/src/utils/misc/debounce.d.ts +2 -0
- package/esm/src/utils/misc/emojis.d.ts +3 -8
- package/esm/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +7 -2
- package/esm/src/utils/misc/parseNumber.d.ts +0 -4
- package/esm/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
- package/esm/src/utils/normalization/IKeywords.d.ts +0 -3
- package/esm/src/utils/normalization/nameToUriPart.d.ts +1 -0
- package/esm/src/utils/normalization/nameToUriParts.d.ts +1 -0
- package/esm/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
- package/esm/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
- package/esm/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
- package/esm/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
- package/esm/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
- package/esm/src/utils/normalization/orderJson.d.ts +1 -0
- package/esm/src/utils/normalization/orderJson.test.d.ts +0 -3
- package/esm/src/utils/normalization/parseKeywords.d.ts +1 -4
- package/esm/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
- package/esm/src/utils/normalization/removeDiacritics.d.ts +1 -3
- package/esm/src/utils/normalization/removeEmojis.d.ts +1 -0
- package/esm/src/utils/normalization/removeQuotes.d.ts +1 -0
- package/esm/src/utils/normalization/searchKeywords.d.ts +1 -3
- package/esm/src/utils/normalization/titleToName.d.ts +1 -0
- package/esm/src/utils/normalization/unwrapResult.d.ts +1 -3
- package/esm/src/utils/organization/$sideEffect.d.ts +1 -0
- package/esm/src/utils/organization/TODO_USE.d.ts +1 -0
- package/esm/src/utils/organization/just.d.ts +1 -0
- package/esm/src/utils/organization/keepImported.d.ts +1 -0
- package/esm/src/utils/organization/keepTypeImported.d.ts +1 -0
- package/esm/src/utils/organization/keepUnused.d.ts +1 -0
- package/esm/src/utils/organization/preserve.d.ts +1 -3
- package/esm/src/utils/organization/really_any.d.ts +1 -0
- package/esm/src/utils/organization/spaceTrim.d.ts +3 -2
- package/esm/src/utils/parameters/extractParameterNames.d.ts +1 -0
- package/esm/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -0
- package/esm/src/utils/parameters/templateParameters.d.ts +2 -1
- package/esm/src/utils/parameters/valueToString.d.ts +2 -2
- package/esm/src/utils/random/$generateBookBoilerplate.d.ts +3 -3
- package/esm/src/utils/random/$randomAgentPersona.d.ts +1 -3
- package/esm/src/utils/random/$randomAgentRule.d.ts +1 -3
- package/esm/src/utils/random/$randomFullnameWithColor.d.ts +4 -3
- package/esm/src/utils/random/$randomItem.d.ts +0 -3
- package/esm/src/utils/random/$randomSeed.d.ts +0 -3
- package/esm/src/utils/random/$randomToken.d.ts +2 -5
- package/esm/src/utils/random/EnglishNamePool.d.ts +1 -0
- package/esm/src/utils/serialization/$deepFreeze.d.ts +1 -3
- package/esm/src/utils/serialization/checkSerializableAsJson.d.ts +1 -5
- package/esm/src/utils/serialization/clonePipeline.d.ts +1 -3
- package/esm/src/utils/serialization/deepClone.d.ts +1 -3
- package/esm/src/utils/serialization/exportJson.d.ts +1 -3
- package/esm/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
- package/esm/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
- package/esm/src/utils/serialization/serializeToPromptbookJavascript.d.ts +3 -3
- package/esm/src/utils/sets/difference.d.ts +1 -3
- package/esm/src/utils/sets/intersection.d.ts +1 -0
- package/esm/src/utils/sets/union.d.ts +1 -0
- package/esm/src/utils/take/classes/TakeChain.d.ts +4 -1
- package/esm/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
- package/esm/src/utils/take/interfaces/Takeable.d.ts +2 -1
- package/esm/src/utils/take/take.d.ts +1 -1
- package/esm/src/utils/validators/filePath/isRootPath.d.ts +1 -3
- package/esm/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
- package/esm/src/utils/validators/filePath/isValidFilePath.d.ts +1 -3
- package/esm/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +1 -0
- package/esm/src/utils/validators/parameterName/validateParameterName.d.ts +1 -0
- package/esm/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
- package/esm/src/utils/validators/url/extractUrlsFromText.d.ts +1 -0
- package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +1 -0
- package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +0 -3
- package/esm/src/utils/validators/url/isValidPipelineUrl.d.ts +0 -3
- package/esm/src/utils/validators/url/normalizeDomainForMatching.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/esm/src/wizard/$getCompiledBook.d.ts +0 -2
- package/esm/src/wizard/wizard.d.ts +1 -2
- package/package.json +1 -1
- package/umd/index.umd.js +198 -186
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/types.index.d.ts +45 -45
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -4
- package/umd/src/book-2.0/agent-source/AgentModelRequirements.d.ts +0 -4
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/padBook.d.ts +1 -4
- package/umd/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
- package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/parseTeamCommitment.d.ts +0 -3
- package/umd/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +8 -3
- package/umd/src/book-2.0/agent-source/string_book.d.ts +1 -0
- package/umd/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +0 -3
- package/umd/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +0 -3
- package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +0 -3
- package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +0 -3
- package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +4 -0
- package/umd/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +1 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +7 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +3 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
- package/umd/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
- package/umd/src/book-components/Chat/AgentChip/AgentChip.d.ts +6 -5
- package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +4 -8
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +2 -3
- package/umd/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
- package/umd/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +0 -3
- package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/chatCssClassNames.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/constants.d.ts +4 -3
- package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
- package/umd/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
- package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
- package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +3 -0
- package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
- package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +7 -30
- package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
- package/umd/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +3 -3
- package/umd/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
- package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +4 -3
- package/umd/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
- package/umd/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
- package/umd/src/book-components/Chat/effects/index.d.ts +0 -4
- package/umd/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
- package/umd/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
- package/umd/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
- package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +0 -3
- package/umd/src/book-components/Chat/save/index.d.ts +0 -3
- package/umd/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +1 -0
- package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +0 -4
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +3 -5
- package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +0 -3
- package/umd/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
- package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +4 -3
- package/umd/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
- package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +2 -1
- package/umd/src/book-components/Chat/utils/loadAgentProfile.d.ts +12 -0
- package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
- package/umd/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
- package/umd/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +14 -0
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +3 -0
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +0 -3
- package/umd/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +3 -3
- package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +3 -5
- package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -5
- package/umd/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
- package/umd/src/book-components/Qr/GenericQrCode.d.ts +5 -0
- package/umd/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
- package/umd/src/book-components/Qr/useQrCode.d.ts +4 -1
- package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
- package/umd/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
- package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
- package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -3
- package/umd/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
- package/umd/src/book-components/icons/AboutIcon.d.ts +1 -0
- package/umd/src/book-components/icons/AttachmentIcon.d.ts +4 -0
- package/umd/src/book-components/icons/CameraIcon.d.ts +4 -0
- package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -0
- package/umd/src/book-components/icons/EmailIcon.d.ts +1 -0
- package/umd/src/book-components/icons/MenuIcon.d.ts +1 -3
- package/umd/src/book-components/icons/SaveIcon.d.ts +1 -0
- package/umd/src/book-components/icons/SendIcon.d.ts +0 -3
- package/umd/src/book-components/icons/TeacherIcon.d.ts +1 -0
- package/umd/src/cli/$runPromptbookCli.d.ts +0 -1
- package/umd/src/cli/cli-commands/_boilerplate.d.ts +0 -2
- package/umd/src/cli/cli-commands/about.d.ts +0 -6
- package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
- package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +0 -2
- package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +0 -2
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +0 -2
- package/umd/src/cli/cli-commands/coder/init.d.ts +0 -2
- package/umd/src/cli/cli-commands/coder/run.d.ts +1 -3
- package/umd/src/cli/cli-commands/coder/run.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/verify.d.ts +0 -2
- package/umd/src/cli/cli-commands/coder.d.ts +0 -2
- package/umd/src/cli/cli-commands/common/handleActionErrors.d.ts +4 -0
- package/umd/src/cli/cli-commands/hello.d.ts +0 -5
- package/umd/src/cli/cli-commands/list-models.d.ts +0 -2
- package/umd/src/cli/cli-commands/list-scrapers.d.ts +0 -2
- package/umd/src/cli/cli-commands/login.d.ts +0 -5
- package/umd/src/cli/cli-commands/prettify.d.ts +0 -6
- package/umd/src/cli/cli-commands/run.d.ts +0 -8
- package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
- package/umd/src/cli/cli-commands/start-agents-server.d.ts +0 -2
- package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
- package/umd/src/cli/cli-commands/test-command.d.ts +0 -7
- package/umd/src/cli/common/$provideLlmToolsForCli.d.ts +5 -0
- package/umd/src/cli/main.d.ts +0 -2
- package/umd/src/cli/promptbookCli.d.ts +0 -7
- package/umd/src/collection/agent-collection/AgentCollection.d.ts +0 -3
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +2 -6
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
- package/umd/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +2 -1
- package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +2 -5
- package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
- package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
- package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +2 -3
- package/umd/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +1 -0
- package/umd/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
- package/umd/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +1 -0
- package/umd/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
- package/umd/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
- package/umd/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
- package/umd/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
- package/umd/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
- package/umd/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
- package/umd/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
- package/umd/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
- package/umd/src/commands/JOKER/JokerCommand.d.ts +1 -0
- package/umd/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
- package/umd/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +1 -0
- package/umd/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
- package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +0 -3
- package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
- package/umd/src/commands/MODEL/ModelCommand.d.ts +1 -0
- package/umd/src/commands/MODEL/modelCommandParser.d.ts +1 -0
- package/umd/src/commands/PARAMETER/ParameterCommand.d.ts +1 -0
- package/umd/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
- package/umd/src/commands/PERSONA/PersonaCommand.d.ts +1 -0
- package/umd/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
- package/umd/src/commands/POSTPROCESS/PostprocessCommand.d.ts +1 -0
- package/umd/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
- package/umd/src/commands/SECTION/SectionCommand.d.ts +1 -0
- package/umd/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
- package/umd/src/commands/URL/UrlCommand.d.ts +1 -0
- package/umd/src/commands/URL/urlCommandParser.d.ts +1 -0
- package/umd/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
- package/umd/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
- package/umd/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
- package/umd/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
- package/umd/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
- package/umd/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
- package/umd/src/commands/_common/stringifyCommand.d.ts +1 -1
- package/umd/src/commands/_common/types/CommandParser.d.ts +0 -4
- package/umd/src/commands/index.d.ts +0 -3
- package/umd/src/commitments/ACTION/ACTION.d.ts +0 -3
- package/umd/src/commitments/CLOSED/CLOSED.d.ts +0 -3
- package/umd/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
- package/umd/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
- package/umd/src/commitments/DELETE/DELETE.d.ts +0 -3
- package/umd/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
- package/umd/src/commitments/FORMAT/FORMAT.d.ts +0 -3
- package/umd/src/commitments/FROM/FROM.d.ts +0 -3
- package/umd/src/commitments/GOAL/GOAL.d.ts +0 -3
- package/umd/src/commitments/IMPORT/IMPORT.d.ts +0 -3
- package/umd/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
- package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -3
- package/umd/src/commitments/MESSAGE/MESSAGE.d.ts +0 -3
- package/umd/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
- package/umd/src/commitments/META/META.d.ts +0 -3
- package/umd/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
- package/umd/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
- package/umd/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
- package/umd/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +0 -3
- package/umd/src/commitments/META_FONT/META_FONT.d.ts +0 -3
- package/umd/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
- package/umd/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +0 -3
- package/umd/src/commitments/META_LINK/META_LINK.d.ts +0 -3
- package/umd/src/commitments/META_VOICE/META_VOICE.d.ts +0 -3
- package/umd/src/commitments/MODEL/MODEL.d.ts +0 -3
- package/umd/src/commitments/OPEN/OPEN.d.ts +0 -3
- package/umd/src/commitments/PERSONA/PERSONA.d.ts +0 -3
- package/umd/src/commitments/RULE/RULE.d.ts +0 -3
- package/umd/src/commitments/SAMPLE/SAMPLE.d.ts +0 -3
- package/umd/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
- package/umd/src/commitments/TEAM/TEAM.d.ts +0 -3
- package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +0 -3
- package/umd/src/commitments/USE/USE.d.ts +0 -3
- package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +2 -0
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -3
- package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -5
- package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +0 -3
- package/umd/src/commitments/USE_CALENDAR/calendarReference.d.ts +0 -3
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -3
- package/umd/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
- package/umd/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
- package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +0 -3
- package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +0 -3
- package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +0 -3
- package/umd/src/commitments/USE_PROJECT/projectReference.d.ts +0 -3
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -3
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -3
- package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -3
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -3
- package/umd/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +0 -3
- package/umd/src/commitments/WALLET/WALLET.d.ts +0 -3
- package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +0 -3
- package/umd/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +0 -3
- package/umd/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
- package/umd/src/commitments/_common/commitmentToolFunctions.d.ts +2 -3
- package/umd/src/commitments/_common/createWritingCommitmentSections.d.ts +2 -3
- package/umd/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
- package/umd/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
- package/umd/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +0 -4
- package/umd/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
- package/umd/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
- package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +0 -3
- package/umd/src/commitments/_common/toolRuntimeContext.d.ts +3 -3
- package/umd/src/commitments/index.d.ts +0 -4
- package/umd/src/config.test.d.ts +0 -3
- package/umd/src/constants/streaming.d.ts +0 -3
- package/umd/src/constants.d.ts +0 -3
- package/umd/src/conversion/archive/loadArchive.d.ts +0 -1
- package/umd/src/conversion/archive/saveArchive.d.ts +0 -5
- package/umd/src/conversion/compilePipeline.d.ts +2 -7
- package/umd/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
- package/umd/src/conversion/parsePipeline.d.ts +1 -11
- package/umd/src/conversion/pipelineJsonToString.d.ts +1 -7
- package/umd/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
- package/umd/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +0 -7
- package/umd/src/conversion/utils/extractParameterNamesFromTask.d.ts +1 -3
- package/umd/src/conversion/validation/_importPipeline.d.ts +6 -2
- package/umd/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
- package/umd/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
- package/umd/src/conversion/validation/validatePipeline.d.ts +3 -9
- package/umd/src/conversion/validation/validatePipeline.test.d.ts +0 -3
- package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -2
- package/umd/src/errors/0-BoilerplateError.d.ts +0 -3
- package/umd/src/errors/0-index.d.ts +0 -3
- package/umd/src/errors/DatabaseError.d.ts +0 -3
- package/umd/src/errors/ExpectError.d.ts +2 -1
- package/umd/src/errors/ParseError.d.ts +0 -3
- package/umd/src/errors/PipelineExecutionError.d.ts +0 -3
- package/umd/src/executables/$provideExecutablesForNode.d.ts +0 -5
- package/umd/src/executables/apps/locateLibreoffice.d.ts +0 -2
- package/umd/src/executables/apps/locatePandoc.d.ts +0 -2
- package/umd/src/executables/browsers/locateBrowser.d.ts +0 -1
- package/umd/src/executables/browsers/locateDefaultSystemBrowser.d.ts +0 -1
- package/umd/src/executables/locateApp.d.ts +0 -2
- package/umd/src/executables/platforms/locateAppOnLinux.d.ts +0 -2
- package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +0 -2
- package/umd/src/executables/platforms/locateAppOnWindows.d.ts +0 -2
- package/umd/src/execution/AbstractTaskResult.d.ts +0 -4
- package/umd/src/execution/AvailableModel.d.ts +0 -4
- package/umd/src/execution/CommonToolsOptions.d.ts +0 -5
- package/umd/src/execution/ExecutionTask.d.ts +4 -4
- package/umd/src/execution/FilesystemTools.d.ts +0 -3
- package/umd/src/execution/LlmExecutionTools.d.ts +3 -9
- package/umd/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
- package/umd/src/execution/PipelineExecutor.d.ts +0 -3
- package/umd/src/execution/PipelineExecutorResult.d.ts +0 -3
- package/umd/src/execution/PromptResult.d.ts +1 -9
- package/umd/src/execution/PromptbookFetch.test-type.d.ts +0 -4
- package/umd/src/execution/ScriptExecutionTools.d.ts +0 -4
- package/umd/src/execution/Usage.d.ts +0 -3
- package/umd/src/execution/UserInterfaceTools.d.ts +3 -0
- package/umd/src/execution/assertsTaskSuccessful.d.ts +1 -3
- package/umd/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
- package/umd/src/execution/createPipelineExecutor/20-executeTask.d.ts +0 -3
- package/umd/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -3
- package/umd/src/execution/createPipelineExecutor/getContextForTask.d.ts +1 -0
- package/umd/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +0 -4
- package/umd/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
- package/umd/src/execution/execution-report/ExecutionReportJson.d.ts +1 -0
- package/umd/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
- package/umd/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
- package/umd/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
- package/umd/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
- package/umd/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
- package/umd/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
- package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -3
- package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -4
- package/umd/src/execution/utils/checkExpectations.d.ts +2 -5
- package/umd/src/execution/utils/forEachAsync.d.ts +5 -1
- package/umd/src/execution/utils/usage-constants.d.ts +0 -3
- package/umd/src/execution/utils/usageToHuman.d.ts +0 -8
- package/umd/src/execution/utils/validatePromptResult.d.ts +1 -0
- package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +1 -0
- package/umd/src/formats/_common/FormatParser.d.ts +2 -9
- package/umd/src/formats/_common/FormatSubvalueParser.d.ts +0 -3
- package/umd/src/formats/csv/CsvFormatParser.d.ts +2 -8
- package/umd/src/formats/index.d.ts +0 -3
- package/umd/src/formats/json/JsonFormatParser.d.ts +0 -11
- package/umd/src/formats/text/TextFormatParser.d.ts +0 -9
- package/umd/src/formats/xml/XmlFormatParser.d.ts +0 -11
- package/umd/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +1 -3
- package/umd/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
- package/umd/src/formfactors/index.d.ts +0 -3
- package/umd/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
- package/umd/src/high-level-abstractions/index.d.ts +0 -4
- package/umd/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
- package/umd/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
- package/umd/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
- package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +0 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/umd/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
- package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +3 -7
- package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -16
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +0 -4
- package/umd/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +0 -5
- package/umd/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +0 -6
- package/umd/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
- package/umd/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +1 -0
- package/umd/src/llm-providers/_common/utils/assertUniqueModels.d.ts +0 -3
- package/umd/src/llm-providers/_common/utils/cache/CacheItem.d.ts +0 -3
- package/umd/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
- package/umd/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
- package/umd/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
- package/umd/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
- package/umd/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
- package/umd/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +1 -0
- package/umd/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +3 -7
- package/umd/src/llm-providers/_multiple/playground/playground.d.ts +0 -1
- package/umd/src/llm-providers/agent/Agent.d.ts +0 -3
- package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/agent/RemoteAgent.d.ts +0 -4
- package/umd/src/llm-providers/agent/playground/playground.d.ts +0 -6
- package/umd/src/llm-providers/agent/register-configuration.d.ts +0 -5
- package/umd/src/llm-providers/agent/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -10
- package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
- package/umd/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -8
- package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +1 -3
- package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
- package/umd/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
- package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
- package/umd/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
- package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +0 -6
- package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +1 -0
- package/umd/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +0 -2
- package/umd/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
- package/umd/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
- package/umd/src/llm-providers/deepseek/deepseek-models.d.ts +1 -6
- package/umd/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
- package/umd/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/google/google-models.d.ts +1 -6
- package/umd/src/llm-providers/google/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/google/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -5
- package/umd/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +0 -3
- package/umd/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
- package/umd/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
- package/umd/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
- package/umd/src/llm-providers/ollama/OllamaExecutionTools.d.ts +0 -3
- package/umd/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
- package/umd/src/llm-providers/ollama/ollama-models.d.ts +1 -4
- package/umd/src/llm-providers/ollama/playground/playground.d.ts +0 -2
- package/umd/src/llm-providers/ollama/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/ollama/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +10 -0
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +1 -8
- package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +0 -7
- package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
- package/umd/src/llm-providers/openai/computeOpenAiUsage.d.ts +1 -3
- package/umd/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
- package/umd/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
- package/umd/src/llm-providers/openai/openai-models.d.ts +1 -0
- package/umd/src/llm-providers/openai/openai-models.test.d.ts +0 -3
- package/umd/src/llm-providers/openai/playground/playground.d.ts +0 -2
- package/umd/src/llm-providers/openai/register-configuration.d.ts +0 -3
- package/umd/src/llm-providers/openai/register-constructor.d.ts +0 -4
- package/umd/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -9
- package/umd/src/llm-providers/remote/playground/playground.d.ts +0 -1
- package/umd/src/llm-providers/vercel/playground/playground.d.ts +0 -2
- package/umd/src/other/templates/getBookTemplates.d.ts +2 -5
- package/umd/src/personas/preparePersona.d.ts +1 -7
- package/umd/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
- package/umd/src/pipeline/PipelineInterface/constants.d.ts +0 -3
- package/umd/src/pipeline/PipelineJson/CommonTaskJson.d.ts +0 -4
- package/umd/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
- package/umd/src/pipeline/PipelineJson/Expectations.d.ts +4 -3
- package/umd/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +0 -4
- package/umd/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +0 -3
- package/umd/src/pipeline/PipelineJson/PersonaJson.d.ts +0 -3
- package/umd/src/pipeline/PipelineJson/PreparationJson.d.ts +3 -5
- package/umd/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
- package/umd/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
- package/umd/src/pipeline/book-notation.d.ts +1 -4
- package/umd/src/pipeline/isValidPipelineString.d.ts +1 -3
- package/umd/src/pipeline/isValidPipelineString.test.d.ts +0 -3
- package/umd/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
- package/umd/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
- package/umd/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
- package/umd/src/pipeline/prompt-notation.d.ts +2 -5
- package/umd/src/pipeline/prompt-notation.test.d.ts +0 -3
- package/umd/src/pipeline/validatePipelineString.d.ts +1 -3
- package/umd/src/playground/permanent/_boilerplate.d.ts +0 -1
- package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +0 -1
- package/umd/src/playground/permanent/error-handling-playground.d.ts +0 -1
- package/umd/src/playground/playground.d.ts +0 -2
- package/umd/src/postprocessing/utils/extractBlock.d.ts +2 -1
- package/umd/src/postprocessing/utils/extractJsonBlock.d.ts +2 -5
- package/umd/src/prepare/PrepareAndScrapeOptions.d.ts +0 -4
- package/umd/src/prepare/preparePipeline.d.ts +3 -2
- package/umd/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
- package/umd/src/prepare/prepareTasks.d.ts +6 -10
- package/umd/src/prepare/unpreparePipeline.d.ts +1 -5
- package/umd/src/remote-server/RemoteServer.d.ts +3 -0
- package/umd/src/remote-server/openapi.d.ts +3 -4
- package/umd/src/remote-server/socket-types/_subtypes/Identification.d.ts +1 -5
- package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
- package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
- package/umd/src/remote-server/startAgentServer.d.ts +6 -2
- package/umd/src/remote-server/startRemoteServer.d.ts +1 -15
- package/umd/src/remote-server/types/RemoteClientOptions.d.ts +0 -5
- package/umd/src/remote-server/types/RemoteServerOptions.d.ts +10 -4
- package/umd/src/remote-server/ui/ServerApp.d.ts +1 -0
- package/umd/src/remote-server/ui/types.d.ts +3 -0
- package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +1 -4
- package/umd/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
- package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/_common/Scraper.d.ts +0 -5
- package/umd/src/scrapers/_common/ScraperIntermediateSource.d.ts +0 -3
- package/umd/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
- package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -2
- package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -2
- package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -2
- package/umd/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +0 -3
- package/umd/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
- package/umd/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
- package/umd/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
- package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +0 -7
- package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
- package/umd/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
- package/umd/src/scrapers/document/DocumentScraper.d.ts +1 -6
- package/umd/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
- package/umd/src/scrapers/document/createDocumentScraper.d.ts +0 -3
- package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/document/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/document/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -6
- package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
- package/umd/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
- package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
- package/umd/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
- package/umd/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
- package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/markdown/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/markdown/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
- package/umd/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
- package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/markitdown/register-constructor.d.ts +0 -5
- package/umd/src/scrapers/markitdown/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -6
- package/umd/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
- package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/pdf/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/pdf/register-metadata.d.ts +0 -3
- package/umd/src/scrapers/website/WebsiteScraper.d.ts +1 -6
- package/umd/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
- package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -1
- package/umd/src/scrapers/website/register-constructor.d.ts +0 -4
- package/umd/src/scrapers/website/register-metadata.d.ts +0 -3
- package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
- package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
- package/umd/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
- package/umd/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +0 -3
- package/umd/src/scripting/javascript/postprocessing-functions.d.ts +0 -4
- package/umd/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +1 -3
- package/umd/src/search-engines/SearchEngine.d.ts +3 -0
- package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -2
- package/umd/src/speech-recognition/OpenAiSpeechRecognition.d.ts +2 -2
- package/umd/src/storage/_common/PromptbookStorage.d.ts +0 -4
- package/umd/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
- package/umd/src/storage/env-storage/$EnvStorage.d.ts +0 -3
- package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -2
- package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -1
- package/umd/src/storage/local-storage/getLocalStorage.d.ts +0 -1
- package/umd/src/storage/local-storage/getSessionStorage.d.ts +0 -1
- package/umd/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
- package/umd/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
- package/umd/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
- package/umd/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
- package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +0 -1
- package/umd/src/transpilers/openai-sdk/register.d.ts +2 -5
- package/umd/src/types/Arrayable.d.ts +1 -0
- package/umd/src/types/InputParameters_private.d.ts +4 -2
- package/umd/src/types/IntermediateFilesStrategy.d.ts +0 -3
- package/umd/src/types/LlmCall.d.ts +0 -3
- package/umd/src/types/ModelRequirements.d.ts +1 -0
- package/umd/src/types/ModelVariant.d.ts +3 -0
- package/umd/src/types/Parameters.d.ts +31 -0
- package/umd/src/types/Parameters_private.d.ts +4 -2
- package/umd/src/types/Prompt.d.ts +1 -6
- package/umd/src/types/ReservedParameters_private.d.ts +2 -1
- package/umd/src/types/ToolCall.d.ts +0 -2
- package/umd/src/types/Updatable.d.ts +1 -3
- package/umd/src/types/string_agent_hash_private.d.ts +1 -1
- package/umd/src/types/string_agent_name.d.ts +32 -0
- package/umd/src/types/string_agent_name_in_book_private.d.ts +1 -1
- package/umd/src/types/string_agent_name_private.d.ts +2 -1
- package/umd/src/types/string_agent_permanent_id_private.d.ts +2 -1
- package/umd/src/types/string_business_category_name.d.ts +5 -0
- package/umd/src/types/string_business_category_name_private.d.ts +1 -1
- package/umd/src/types/string_char_private.d.ts +1 -1
- package/umd/src/types/string_chat_prompt_private.d.ts +1 -1
- package/umd/src/types/string_completion_prompt_private.d.ts +1 -1
- package/umd/src/types/string_markdown.d.ts +0 -1
- package/umd/src/types/string_mime_type_private.d.ts +1 -0
- package/umd/src/types/string_model_description_private.d.ts +1 -1
- package/umd/src/types/string_model_name.d.ts +7 -0
- package/umd/src/types/string_model_name_private.d.ts +1 -1
- package/umd/src/types/string_name.d.ts +31 -0
- package/umd/src/types/string_name_private.d.ts +1 -1
- package/umd/src/types/string_page.d.ts +15 -0
- package/umd/src/types/string_page_private.d.ts +1 -1
- package/umd/src/types/string_parameter_name.d.ts +11 -210
- package/umd/src/types/string_parameter_value_private.d.ts +1 -1
- package/umd/src/types/string_persona_description.d.ts +14 -0
- package/umd/src/types/string_persona_description_private.d.ts +1 -1
- package/umd/src/types/string_prompt.d.ts +49 -0
- package/umd/src/types/string_prompt_image_private.d.ts +1 -1
- package/umd/src/types/string_prompt_private.d.ts +1 -1
- package/umd/src/types/string_reserved_parameter_name_private.d.ts +1 -1
- package/umd/src/types/string_sha256.d.ts +2 -2
- package/umd/src/types/string_system_message_private.d.ts +1 -1
- package/umd/src/types/string_template_private.d.ts +1 -1
- package/umd/src/types/string_text_prompt_private.d.ts +1 -1
- package/umd/src/types/string_title.d.ts +8 -0
- package/umd/src/types/string_title_private.d.ts +1 -1
- package/umd/src/types/typeAliasEmoji.d.ts +0 -3
- package/umd/src/types/typeAliases.d.ts +0 -6
- package/umd/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
- package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +1 -0
- package/umd/src/utils/chat/chatAttachments.d.ts +0 -3
- package/umd/src/utils/chat/constants.d.ts +0 -3
- package/umd/src/utils/clientVersion.d.ts +0 -3
- package/umd/src/utils/color/$randomColor.d.ts +0 -5
- package/umd/src/utils/color/css-colors.d.ts +0 -3
- package/umd/src/utils/color/internal-utils/hslToRgb.d.ts +0 -3
- package/umd/src/utils/color/internal-utils/rgbToHsl.d.ts +0 -3
- package/umd/src/utils/color/operators/ColorTransformer.d.ts +2 -0
- package/umd/src/utils/color/operators/lighten.d.ts +0 -3
- package/umd/src/utils/color/operators/saturate.d.ts +0 -3
- package/umd/src/utils/color/utils/areColorsEqual.d.ts +0 -3
- package/umd/src/utils/color/utils/colorDistance.d.ts +2 -2
- package/umd/src/utils/color/utils/colorHue.d.ts +0 -1
- package/umd/src/utils/color/utils/colorHueDistance.d.ts +0 -1
- package/umd/src/utils/color/utils/colorToDataUrl.d.ts +0 -3
- package/umd/src/utils/database/uniqueConstraint.d.ts +1 -3
- package/umd/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +3 -4
- package/umd/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
- package/umd/src/utils/editable/types/PipelineEditableSerialized.d.ts +2 -2
- package/umd/src/utils/editable/utils/renamePipelineParameter.d.ts +4 -3
- package/umd/src/utils/editable/utils/stringifyPipelineJson.d.ts +0 -6
- package/umd/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
- package/umd/src/utils/environment/$getGlobalScope.d.ts +1 -1
- package/umd/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
- package/umd/src/utils/environment/$isRunningInJest.d.ts +0 -3
- package/umd/src/utils/environment/$isRunningInNode.d.ts +0 -3
- package/umd/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
- package/umd/src/utils/execCommand/$execCommand.d.ts +0 -2
- package/umd/src/utils/execCommand/$execCommands.d.ts +0 -1
- package/umd/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
- package/umd/src/utils/expectation-counters/constants.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countCharacters.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countLines.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countPages.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countSentences.d.ts +0 -4
- package/umd/src/utils/expectation-counters/countWords.d.ts +0 -5
- package/umd/src/utils/expectation-counters/index.d.ts +0 -4
- package/umd/src/utils/files/$induceBookDownload.d.ts +0 -1
- package/umd/src/utils/files/$induceFileDownload.d.ts +0 -1
- package/umd/src/utils/files/ObjectUrl.d.ts +0 -1
- package/umd/src/utils/files/isDirectoryExisting.d.ts +0 -6
- package/umd/src/utils/files/isExecutable.d.ts +0 -4
- package/umd/src/utils/files/isFileExisting.d.ts +0 -5
- package/umd/src/utils/files/listAllFiles.d.ts +1 -5
- package/umd/src/utils/files/readResponseBytes.d.ts +1 -0
- package/umd/src/utils/knowledge/inlineKnowledgeSource.d.ts +11 -6
- package/umd/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
- package/umd/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
- package/umd/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
- package/umd/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
- package/umd/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
- package/umd/src/utils/markdown/addAutoGeneratedSection.d.ts +0 -3
- package/umd/src/utils/markdown/createMarkdownTable.d.ts +0 -3
- package/umd/src/utils/markdown/escapeMarkdownBlock.d.ts +0 -3
- package/umd/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -3
- package/umd/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -0
- package/umd/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +2 -4
- package/umd/src/utils/markdown/humanizeAiText.d.ts +0 -3
- package/umd/src/utils/markdown/humanizeAiTextEllipsis.d.ts +0 -3
- package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +0 -3
- package/umd/src/utils/markdown/humanizeAiTextQuotes.d.ts +0 -3
- package/umd/src/utils/markdown/humanizeAiTextSources.d.ts +0 -3
- package/umd/src/utils/markdown/humanizeAiTextWhitespace.d.ts +0 -3
- package/umd/src/utils/markdown/prettifyMarkdown.d.ts +4 -2
- package/umd/src/utils/markdown/promptbookifyAiText.d.ts +0 -3
- package/umd/src/utils/markdown/removeMarkdownComments.d.ts +1 -0
- package/umd/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -0
- package/umd/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
- package/umd/src/utils/markdown/trimCodeBlock.d.ts +1 -1
- package/umd/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
- package/umd/src/utils/misc/$getCurrentDate.d.ts +1 -0
- package/umd/src/utils/misc/aboutPromptbookInformation.d.ts +3 -3
- package/umd/src/utils/misc/computeHash.d.ts +0 -3
- package/umd/src/utils/misc/debounce.d.ts +2 -0
- package/umd/src/utils/misc/emojis.d.ts +3 -8
- package/umd/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +7 -2
- package/umd/src/utils/misc/parseNumber.d.ts +0 -4
- package/umd/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
- package/umd/src/utils/normalization/IKeywords.d.ts +0 -3
- package/umd/src/utils/normalization/nameToUriPart.d.ts +1 -0
- package/umd/src/utils/normalization/nameToUriParts.d.ts +1 -0
- package/umd/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
- package/umd/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
- package/umd/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
- package/umd/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
- package/umd/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
- package/umd/src/utils/normalization/orderJson.d.ts +1 -0
- package/umd/src/utils/normalization/orderJson.test.d.ts +0 -3
- package/umd/src/utils/normalization/parseKeywords.d.ts +1 -4
- package/umd/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
- package/umd/src/utils/normalization/removeDiacritics.d.ts +1 -3
- package/umd/src/utils/normalization/removeEmojis.d.ts +1 -0
- package/umd/src/utils/normalization/removeQuotes.d.ts +1 -0
- package/umd/src/utils/normalization/searchKeywords.d.ts +1 -3
- package/umd/src/utils/normalization/titleToName.d.ts +1 -0
- package/umd/src/utils/normalization/unwrapResult.d.ts +1 -3
- package/umd/src/utils/organization/$sideEffect.d.ts +1 -0
- package/umd/src/utils/organization/TODO_USE.d.ts +1 -0
- package/umd/src/utils/organization/just.d.ts +1 -0
- package/umd/src/utils/organization/keepImported.d.ts +1 -0
- package/umd/src/utils/organization/keepTypeImported.d.ts +1 -0
- package/umd/src/utils/organization/keepUnused.d.ts +1 -0
- package/umd/src/utils/organization/preserve.d.ts +1 -3
- package/umd/src/utils/organization/really_any.d.ts +1 -0
- package/umd/src/utils/organization/spaceTrim.d.ts +3 -2
- package/umd/src/utils/parameters/extractParameterNames.d.ts +1 -0
- package/umd/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -0
- package/umd/src/utils/parameters/templateParameters.d.ts +2 -1
- package/umd/src/utils/parameters/valueToString.d.ts +2 -2
- package/umd/src/utils/random/$generateBookBoilerplate.d.ts +3 -3
- package/umd/src/utils/random/$randomAgentPersona.d.ts +1 -3
- package/umd/src/utils/random/$randomAgentRule.d.ts +1 -3
- package/umd/src/utils/random/$randomFullnameWithColor.d.ts +4 -3
- package/umd/src/utils/random/$randomItem.d.ts +0 -3
- package/umd/src/utils/random/$randomSeed.d.ts +0 -3
- package/umd/src/utils/random/$randomToken.d.ts +2 -5
- package/umd/src/utils/random/EnglishNamePool.d.ts +1 -0
- package/umd/src/utils/serialization/$deepFreeze.d.ts +1 -3
- package/umd/src/utils/serialization/checkSerializableAsJson.d.ts +1 -5
- package/umd/src/utils/serialization/clonePipeline.d.ts +1 -3
- package/umd/src/utils/serialization/deepClone.d.ts +1 -3
- package/umd/src/utils/serialization/exportJson.d.ts +1 -3
- package/umd/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
- package/umd/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
- package/umd/src/utils/serialization/serializeToPromptbookJavascript.d.ts +3 -3
- package/umd/src/utils/sets/difference.d.ts +1 -3
- package/umd/src/utils/sets/intersection.d.ts +1 -0
- package/umd/src/utils/sets/union.d.ts +1 -0
- package/umd/src/utils/take/classes/TakeChain.d.ts +4 -1
- package/umd/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
- package/umd/src/utils/take/interfaces/Takeable.d.ts +2 -1
- package/umd/src/utils/take/take.d.ts +1 -1
- package/umd/src/utils/validators/filePath/isRootPath.d.ts +1 -3
- package/umd/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
- package/umd/src/utils/validators/filePath/isValidFilePath.d.ts +1 -3
- package/umd/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +1 -0
- package/umd/src/utils/validators/parameterName/validateParameterName.d.ts +1 -0
- package/umd/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
- package/umd/src/utils/validators/url/extractUrlsFromText.d.ts +1 -0
- package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +1 -0
- package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +0 -3
- package/umd/src/utils/validators/url/isValidPipelineUrl.d.ts +0 -3
- package/umd/src/utils/validators/url/normalizeDomainForMatching.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- package/umd/src/wizard/$getCompiledBook.d.ts +0 -2
- package/umd/src/wizard/wizard.d.ts +1 -2
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-35';
|
|
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
|
|
@@ -28,16 +28,20 @@ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-34';
|
|
|
28
28
|
* Trims string from all 4 sides
|
|
29
29
|
*
|
|
30
30
|
* Note: This is a re-exported function from the `spacetrim` package which is
|
|
31
|
-
*
|
|
31
|
+
* Developed by same author @hejny as this package
|
|
32
32
|
*
|
|
33
|
-
* @public exported from `@promptbook/utils`
|
|
34
33
|
* @see https://github.com/hejny/spacetrim#usage
|
|
34
|
+
*
|
|
35
|
+
* @public exported from `@promptbook/utils`
|
|
35
36
|
*/
|
|
36
37
|
const spaceTrim = spaceTrim$1;
|
|
37
38
|
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Class implementing take chain.
|
|
41
|
+
*
|
|
40
42
|
* @de
|
|
43
|
+
*
|
|
44
|
+
* @private util of `@promptbook/color`
|
|
41
45
|
*/
|
|
42
46
|
class TakeChain {
|
|
43
47
|
constructor(value) {
|
|
@@ -54,9 +58,9 @@ class TakeChain {
|
|
|
54
58
|
*
|
|
55
59
|
* @param {*} initialValue - The initial value.
|
|
56
60
|
* @returns {Proxy<WithTake<TValue>>} - A proxy object with a `take` method.
|
|
61
|
+
* @deprecated [🤡] Use some better functional library instead of `TakeChain`
|
|
57
62
|
*
|
|
58
63
|
* @private util of `@promptbook/color`
|
|
59
|
-
* @deprecated [🤡] Use some better functional library instead of `TakeChain`
|
|
60
64
|
*/
|
|
61
65
|
function take(initialValue) {
|
|
62
66
|
if (initialValue instanceof TakeChain) {
|
|
@@ -234,9 +238,7 @@ const CSS_COLORS = {
|
|
|
234
238
|
yellow: '#ffff00',
|
|
235
239
|
yellowgreen: '#9acd32',
|
|
236
240
|
};
|
|
237
|
-
|
|
238
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
239
|
-
*/
|
|
241
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
240
242
|
|
|
241
243
|
/**
|
|
242
244
|
* Validates that a channel value is a valid number within the range of 0 to 255.
|
|
@@ -266,7 +268,13 @@ function checkChannelValue(channelName, value) {
|
|
|
266
268
|
}
|
|
267
269
|
}
|
|
268
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Constant for short hex lengths.
|
|
273
|
+
*/
|
|
269
274
|
const SHORT_HEX_LENGTHS = new Set([3, 4]);
|
|
275
|
+
/**
|
|
276
|
+
* Constant for long hex lengths.
|
|
277
|
+
*/
|
|
270
278
|
const LONG_HEX_LENGTHS = new Set([6, 8]);
|
|
271
279
|
/**
|
|
272
280
|
* Parses a hex string into RGBA channel values.
|
|
@@ -299,6 +307,9 @@ function parseHexColor(hex) {
|
|
|
299
307
|
}
|
|
300
308
|
return throwInvalidHex();
|
|
301
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Parses short hex channel.
|
|
312
|
+
*/
|
|
302
313
|
function parseShortHexChannel(char, onError) {
|
|
303
314
|
if (!char) {
|
|
304
315
|
return onError();
|
|
@@ -309,6 +320,9 @@ function parseShortHexChannel(char, onError) {
|
|
|
309
320
|
}
|
|
310
321
|
return parsed * 16;
|
|
311
322
|
}
|
|
323
|
+
/**
|
|
324
|
+
* Parses long hex channel.
|
|
325
|
+
*/
|
|
312
326
|
function parseLongHexChannel(hex, start, onError) {
|
|
313
327
|
const segment = hex.substr(start, 2);
|
|
314
328
|
if (segment.length < 2) {
|
|
@@ -321,6 +335,9 @@ function parseLongHexChannel(hex, start, onError) {
|
|
|
321
335
|
return parsed;
|
|
322
336
|
}
|
|
323
337
|
|
|
338
|
+
/**
|
|
339
|
+
* Pattern matching hsl.
|
|
340
|
+
*/
|
|
324
341
|
const HSL_REGEX = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
|
|
325
342
|
/**
|
|
326
343
|
* Parses an HSL string into RGBA channel values.
|
|
@@ -346,6 +363,9 @@ function parseHslColor(hsl) {
|
|
|
346
363
|
alpha: 255,
|
|
347
364
|
};
|
|
348
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Handles convert hsl to Rgb.
|
|
368
|
+
*/
|
|
349
369
|
function convertHslToRgb(h, s, l) {
|
|
350
370
|
const c = (1 - Math.abs(2 * l - 1)) * s;
|
|
351
371
|
const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
|
|
@@ -384,7 +404,13 @@ function convertHslToRgb(h, s, l) {
|
|
|
384
404
|
};
|
|
385
405
|
}
|
|
386
406
|
|
|
407
|
+
/**
|
|
408
|
+
* Pattern matching RGB.
|
|
409
|
+
*/
|
|
387
410
|
const RGB_REGEX = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
411
|
+
/**
|
|
412
|
+
* Pattern matching rgba.
|
|
413
|
+
*/
|
|
388
414
|
const RGBA_REGEX = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
389
415
|
/**
|
|
390
416
|
* Parses an RGB string into RGBA channel values.
|
|
@@ -426,6 +452,9 @@ function parseRgbaColor(rgba) {
|
|
|
426
452
|
alpha: parseAlphaValue(match[4]),
|
|
427
453
|
};
|
|
428
454
|
}
|
|
455
|
+
/**
|
|
456
|
+
* Parses channel value.
|
|
457
|
+
*/
|
|
429
458
|
function parseChannelValue(value) {
|
|
430
459
|
if (value.endsWith('%')) {
|
|
431
460
|
const percent = parseFloat(value);
|
|
@@ -433,6 +462,9 @@ function parseChannelValue(value) {
|
|
|
433
462
|
}
|
|
434
463
|
return Math.round(parseFloat(value));
|
|
435
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Parses alpha value.
|
|
467
|
+
*/
|
|
436
468
|
function parseAlphaValue(value) {
|
|
437
469
|
if (value.endsWith('%')) {
|
|
438
470
|
const percent = parseFloat(value);
|
|
@@ -445,8 +477,17 @@ function parseAlphaValue(value) {
|
|
|
445
477
|
return Math.round(parsed);
|
|
446
478
|
}
|
|
447
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Pattern matching hsl regex.
|
|
482
|
+
*/
|
|
448
483
|
const HSL_REGEX_PATTERN = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
|
|
484
|
+
/**
|
|
485
|
+
* Pattern matching RGB regex.
|
|
486
|
+
*/
|
|
449
487
|
const RGB_REGEX_PATTERN = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
488
|
+
/**
|
|
489
|
+
* Pattern matching rgba regex.
|
|
490
|
+
*/
|
|
450
491
|
const RGBA_REGEX_PATTERN = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
451
492
|
/**
|
|
452
493
|
* Color object represents an RGB color with alpha channel
|
|
@@ -812,9 +853,7 @@ function hslToRgb(hue, saturation, lightness) {
|
|
|
812
853
|
}
|
|
813
854
|
return [Math.round(red * 255), Math.round(green * 255), Math.round(blue * 255)];
|
|
814
855
|
}
|
|
815
|
-
|
|
816
|
-
* TODO: Properly name all used internal variables
|
|
817
|
-
*/
|
|
856
|
+
// TODO: Properly name all used internal variables
|
|
818
857
|
|
|
819
858
|
/**
|
|
820
859
|
* Converts RGB values to HSL values
|
|
@@ -860,9 +899,7 @@ function rgbToHsl(red, green, blue) {
|
|
|
860
899
|
}
|
|
861
900
|
return [hue, saturation, lightness];
|
|
862
901
|
}
|
|
863
|
-
|
|
864
|
-
* TODO: Properly name all used internal variables
|
|
865
|
-
*/
|
|
902
|
+
// TODO: Properly name all used internal variables
|
|
866
903
|
|
|
867
904
|
/**
|
|
868
905
|
* Makes color transformer which lighten the given color
|
|
@@ -880,9 +917,7 @@ function lighten(amount) {
|
|
|
880
917
|
return Color.fromValues(r, g, b, alpha);
|
|
881
918
|
};
|
|
882
919
|
}
|
|
883
|
-
|
|
884
|
-
* TODO: Maybe implement by mix+hsl
|
|
885
|
-
*/
|
|
920
|
+
// TODO: Maybe implement by mix+hsl
|
|
886
921
|
|
|
887
922
|
/**
|
|
888
923
|
* Makes color transformer which saturate the given color
|
|
@@ -900,9 +935,7 @@ function saturate(amount) {
|
|
|
900
935
|
return Color.fromValues(r, g, b, alpha);
|
|
901
936
|
};
|
|
902
937
|
}
|
|
903
|
-
|
|
904
|
-
* TODO: Maybe implement by mix+hsl
|
|
905
|
-
*/
|
|
938
|
+
// TODO: Maybe implement by mix+hsl
|
|
906
939
|
|
|
907
940
|
/**
|
|
908
941
|
* Name for the Promptbook
|
|
@@ -1026,6 +1059,7 @@ parseInt(process.env.API_REQUEST_TIMEOUT || '90000');
|
|
|
1026
1059
|
* Orders JSON object by keys
|
|
1027
1060
|
*
|
|
1028
1061
|
* @returns The same type of object as the input re-ordered
|
|
1062
|
+
*
|
|
1029
1063
|
* @public exported from `@promptbook/utils`
|
|
1030
1064
|
*/
|
|
1031
1065
|
function orderJson(options) {
|
|
@@ -1044,6 +1078,7 @@ function orderJson(options) {
|
|
|
1044
1078
|
* Note: This function mutates the object and returns the original (but mutated-deep-freezed) object
|
|
1045
1079
|
*
|
|
1046
1080
|
* @returns The same object as the input, but deeply frozen
|
|
1081
|
+
*
|
|
1047
1082
|
* @public exported from `@promptbook/utils`
|
|
1048
1083
|
*/
|
|
1049
1084
|
function $deepFreeze(objectValue) {
|
|
@@ -1060,9 +1095,7 @@ function $deepFreeze(objectValue) {
|
|
|
1060
1095
|
Object.freeze(objectValue);
|
|
1061
1096
|
return objectValue;
|
|
1062
1097
|
}
|
|
1063
|
-
|
|
1064
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1065
|
-
*/
|
|
1098
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1066
1099
|
|
|
1067
1100
|
/**
|
|
1068
1101
|
* Make error report URL for the given error
|
|
@@ -1198,6 +1231,7 @@ function assertsError(whatWasThrown) {
|
|
|
1198
1231
|
* - And much more...
|
|
1199
1232
|
*
|
|
1200
1233
|
* @throws UnexpectedError if the value is not serializable as JSON
|
|
1234
|
+
*
|
|
1201
1235
|
* @public exported from `@promptbook/utils`
|
|
1202
1236
|
*/
|
|
1203
1237
|
function checkSerializableAsJson(options) {
|
|
@@ -1312,11 +1346,9 @@ function checkSerializableAsJson(options) {
|
|
|
1312
1346
|
`));
|
|
1313
1347
|
}
|
|
1314
1348
|
}
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
* Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
|
|
1319
|
-
*/
|
|
1349
|
+
// TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
|
|
1350
|
+
// TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
|
|
1351
|
+
// Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
|
|
1320
1352
|
|
|
1321
1353
|
/**
|
|
1322
1354
|
* Creates a deep clone of the given object
|
|
@@ -1326,6 +1358,7 @@ function checkSerializableAsJson(options) {
|
|
|
1326
1358
|
*
|
|
1327
1359
|
* @param objectValue The object to clone.
|
|
1328
1360
|
* @returns A deep, writable clone of the input object.
|
|
1361
|
+
*
|
|
1329
1362
|
* @public exported from `@promptbook/utils`
|
|
1330
1363
|
*/
|
|
1331
1364
|
function deepClone(objectValue) {
|
|
@@ -1342,9 +1375,7 @@ function deepClone(objectValue) {
|
|
|
1342
1375
|
> return Object.assign({}, objectValue);
|
|
1343
1376
|
*/
|
|
1344
1377
|
}
|
|
1345
|
-
|
|
1346
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1347
|
-
*/
|
|
1378
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1348
1379
|
|
|
1349
1380
|
/**
|
|
1350
1381
|
* Utility to export a JSON object from a function
|
|
@@ -1357,6 +1388,7 @@ function deepClone(objectValue) {
|
|
|
1357
1388
|
* Note: This function does not mutates the given object
|
|
1358
1389
|
*
|
|
1359
1390
|
* @returns The same type of object as the input but read-only and re-ordered
|
|
1391
|
+
*
|
|
1360
1392
|
* @public exported from `@promptbook/utils`
|
|
1361
1393
|
*/
|
|
1362
1394
|
function exportJson(options) {
|
|
@@ -1376,9 +1408,7 @@ function exportJson(options) {
|
|
|
1376
1408
|
$deepFreeze(orderedValue);
|
|
1377
1409
|
return orderedValue;
|
|
1378
1410
|
}
|
|
1379
|
-
|
|
1380
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1381
|
-
*/
|
|
1411
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1382
1412
|
|
|
1383
1413
|
/**
|
|
1384
1414
|
* Nonce which is used for replacing things in strings
|
|
@@ -1418,9 +1448,7 @@ const RESERVED_PARAMETER_NAMES = exportJson({
|
|
|
1418
1448
|
// <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
|
|
1419
1449
|
],
|
|
1420
1450
|
});
|
|
1421
|
-
|
|
1422
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1423
|
-
*/
|
|
1451
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1424
1452
|
|
|
1425
1453
|
/**
|
|
1426
1454
|
* Normalizes a given text to camelCase format.
|
|
@@ -1432,6 +1460,7 @@ const RESERVED_PARAMETER_NAMES = exportJson({
|
|
|
1432
1460
|
* @returns The camelCase formatted string.
|
|
1433
1461
|
* @example 'helloWorld'
|
|
1434
1462
|
* @example 'iLovePromptbook'
|
|
1463
|
+
*
|
|
1435
1464
|
* @public exported from `@promptbook/utils`
|
|
1436
1465
|
*/
|
|
1437
1466
|
function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
|
|
@@ -1472,14 +1501,13 @@ function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
|
|
|
1472
1501
|
}
|
|
1473
1502
|
return normalizedName;
|
|
1474
1503
|
}
|
|
1475
|
-
|
|
1476
|
-
* TODO: [🌺] Use some intermediate util splitWords
|
|
1477
|
-
*/
|
|
1504
|
+
// TODO: [🌺] Use some intermediate util splitWords
|
|
1478
1505
|
|
|
1479
1506
|
/**
|
|
1480
1507
|
* Tests if given string is valid file path.
|
|
1481
1508
|
*
|
|
1482
1509
|
* Note: This does not check if the file exists only if the path is valid
|
|
1510
|
+
*
|
|
1483
1511
|
* @public exported from `@promptbook/utils`
|
|
1484
1512
|
*/
|
|
1485
1513
|
function isValidFilePath(filename) {
|
|
@@ -1528,9 +1556,7 @@ function isValidFilePath(filename) {
|
|
|
1528
1556
|
}
|
|
1529
1557
|
return false;
|
|
1530
1558
|
}
|
|
1531
|
-
|
|
1532
|
-
* TODO: [🍏] Implement for MacOs
|
|
1533
|
-
*/
|
|
1559
|
+
// TODO: [🍏] Implement for MacOs
|
|
1534
1560
|
|
|
1535
1561
|
/**
|
|
1536
1562
|
* Tests if given string is valid URL.
|
|
@@ -1563,6 +1589,9 @@ function isValidUrl(url) {
|
|
|
1563
1589
|
}
|
|
1564
1590
|
}
|
|
1565
1591
|
|
|
1592
|
+
/**
|
|
1593
|
+
* Collection of default diacritics removal map.
|
|
1594
|
+
*/
|
|
1566
1595
|
const defaultDiacriticsRemovalMap = [
|
|
1567
1596
|
{
|
|
1568
1597
|
base: 'A',
|
|
@@ -1814,6 +1843,7 @@ for (let i = 0; i < defaultDiacriticsRemovalMap.length; i++) {
|
|
|
1814
1843
|
*
|
|
1815
1844
|
* @param input The string containing diacritics to be normalized.
|
|
1816
1845
|
* @returns The string with diacritics removed or normalized.
|
|
1846
|
+
*
|
|
1817
1847
|
* @public exported from `@promptbook/utils`
|
|
1818
1848
|
*/
|
|
1819
1849
|
function removeDiacritics(input) {
|
|
@@ -1822,9 +1852,7 @@ function removeDiacritics(input) {
|
|
|
1822
1852
|
return DIACRITIC_VARIANTS_LETTERS[character] || character;
|
|
1823
1853
|
});
|
|
1824
1854
|
}
|
|
1825
|
-
|
|
1826
|
-
* TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
|
|
1827
|
-
*/
|
|
1855
|
+
// TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
|
|
1828
1856
|
|
|
1829
1857
|
/**
|
|
1830
1858
|
* Converts a given text to kebab-case format.
|
|
@@ -1835,6 +1863,7 @@ function removeDiacritics(input) {
|
|
|
1835
1863
|
* @returns The kebab-case formatted string.
|
|
1836
1864
|
* @example 'hello-world'
|
|
1837
1865
|
* @example 'i-love-promptbook'
|
|
1866
|
+
*
|
|
1838
1867
|
* @public exported from `@promptbook/utils`
|
|
1839
1868
|
*/
|
|
1840
1869
|
function normalizeToKebabCase(text) {
|
|
@@ -1875,9 +1904,7 @@ function normalizeToKebabCase(text) {
|
|
|
1875
1904
|
normalizedName = normalizedName.replace(/-$/, '');
|
|
1876
1905
|
return normalizedName;
|
|
1877
1906
|
}
|
|
1878
|
-
|
|
1879
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1880
|
-
*/
|
|
1907
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1881
1908
|
|
|
1882
1909
|
/**
|
|
1883
1910
|
* Removes emojis from a string and fix whitespaces
|
|
@@ -1886,6 +1913,7 @@ function normalizeToKebabCase(text) {
|
|
|
1886
1913
|
*
|
|
1887
1914
|
* @param text with emojis
|
|
1888
1915
|
* @returns text without emojis
|
|
1916
|
+
*
|
|
1889
1917
|
* @public exported from `@promptbook/utils`
|
|
1890
1918
|
*/
|
|
1891
1919
|
function removeEmojis(text) {
|
|
@@ -1905,6 +1933,7 @@ function removeEmojis(text) {
|
|
|
1905
1933
|
* @param value The title string to be converted to a name.
|
|
1906
1934
|
* @returns A normalized name derived from the input title.
|
|
1907
1935
|
* @example 'Hello World!' -> 'hello-world'
|
|
1936
|
+
*
|
|
1908
1937
|
* @public exported from `@promptbook/utils`
|
|
1909
1938
|
*/
|
|
1910
1939
|
function titleToName(value) {
|
|
@@ -2023,13 +2052,11 @@ function renderPromptbookMermaid(pipelineJson, options) {
|
|
|
2023
2052
|
`);
|
|
2024
2053
|
return promptbookMermaid;
|
|
2025
2054
|
}
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
* TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
2032
|
-
*/
|
|
2055
|
+
// TODO: [🧠] FOREACH in mermaid graph
|
|
2056
|
+
// TODO: [🧠] Knowledge in mermaid graph
|
|
2057
|
+
// TODO: [🧠] Personas in mermaid graph
|
|
2058
|
+
// TODO: Maybe use some Mermaid package instead of string templating
|
|
2059
|
+
// TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
2033
2060
|
|
|
2034
2061
|
/**
|
|
2035
2062
|
* This error indicates problems parsing the format value
|
|
@@ -2112,9 +2139,7 @@ class DatabaseError extends Error {
|
|
|
2112
2139
|
Object.setPrototypeOf(this, DatabaseError.prototype);
|
|
2113
2140
|
}
|
|
2114
2141
|
}
|
|
2115
|
-
|
|
2116
|
-
* TODO: [🐱🚀] Explain that NotFoundError ([🐱🚀] and other specific errors) has priority over DatabaseError in some contexts
|
|
2117
|
-
*/
|
|
2142
|
+
// TODO: [🐱🚀] Explain that NotFoundError ([🐱🚀] and other specific errors) has priority over DatabaseError in some contexts
|
|
2118
2143
|
|
|
2119
2144
|
/**
|
|
2120
2145
|
* This error type indicates that you try to use a feature that is not available in the current environment
|
|
@@ -2132,10 +2157,11 @@ class EnvironmentMismatchError extends Error {
|
|
|
2132
2157
|
/**
|
|
2133
2158
|
* This error occurs when some expectation is not met in the execution of the pipeline
|
|
2134
2159
|
*
|
|
2135
|
-
* @public exported from `@promptbook/core`
|
|
2136
2160
|
* Note: Do not throw this error, its reserved for `checkExpectations` and `createPipelineExecutor` and public ONLY to be serializable through remote server
|
|
2137
2161
|
* Note: Always thrown in `checkExpectations` and catched in `createPipelineExecutor` and rethrown as `PipelineExecutionError`
|
|
2138
2162
|
* Note: This is a kindof subtype of PipelineExecutionError
|
|
2163
|
+
*
|
|
2164
|
+
* @public exported from `@promptbook/core`
|
|
2139
2165
|
*/
|
|
2140
2166
|
class ExpectError extends Error {
|
|
2141
2167
|
constructor(message) {
|
|
@@ -2250,9 +2276,7 @@ class ParseError extends Error {
|
|
|
2250
2276
|
Object.setPrototypeOf(this, ParseError.prototype);
|
|
2251
2277
|
}
|
|
2252
2278
|
}
|
|
2253
|
-
|
|
2254
|
-
* TODO: Maybe split `ParseError` and `ApplyError`
|
|
2255
|
-
*/
|
|
2279
|
+
// TODO: Maybe split `ParseError` and `ApplyError`
|
|
2256
2280
|
|
|
2257
2281
|
/**
|
|
2258
2282
|
* Generates random token
|
|
@@ -2260,16 +2284,15 @@ class ParseError extends Error {
|
|
|
2260
2284
|
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
|
|
2261
2285
|
* Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
|
|
2262
2286
|
*
|
|
2263
|
-
* @private internal helper function
|
|
2264
2287
|
* @returns secure random token
|
|
2288
|
+
*
|
|
2289
|
+
* @private internal helper function
|
|
2265
2290
|
*/
|
|
2266
2291
|
function $randomToken(randomness) {
|
|
2267
2292
|
return randomBytes(randomness).toString('hex');
|
|
2268
2293
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2272
|
-
*/
|
|
2294
|
+
// TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
2295
|
+
// TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2273
2296
|
|
|
2274
2297
|
/**
|
|
2275
2298
|
* This error indicates errors during the execution of the pipeline
|
|
@@ -2286,9 +2309,7 @@ class PipelineExecutionError extends Error {
|
|
|
2286
2309
|
Object.setPrototypeOf(this, PipelineExecutionError.prototype);
|
|
2287
2310
|
}
|
|
2288
2311
|
}
|
|
2289
|
-
|
|
2290
|
-
* TODO: [🧠][🌂] Add id to all errors
|
|
2291
|
-
*/
|
|
2312
|
+
// TODO: [🧠][🌂] Add id to all errors
|
|
2292
2313
|
|
|
2293
2314
|
/**
|
|
2294
2315
|
* This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
|
|
@@ -2390,9 +2411,7 @@ const ALL_ERRORS = {
|
|
|
2390
2411
|
...PROMPTBOOK_ERRORS,
|
|
2391
2412
|
...COMMON_JAVASCRIPT_ERRORS,
|
|
2392
2413
|
};
|
|
2393
|
-
|
|
2394
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2395
|
-
*/
|
|
2414
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2396
2415
|
|
|
2397
2416
|
/**
|
|
2398
2417
|
* Deserializes the error object
|
|
@@ -2455,8 +2474,9 @@ function serializeError(error) {
|
|
|
2455
2474
|
* @param array - Array to iterate over
|
|
2456
2475
|
* @param options - Options for the function
|
|
2457
2476
|
* @param callbackfunction - Function to call for each item
|
|
2458
|
-
* @public exported from `@promptbook/utils`
|
|
2459
2477
|
* @deprecated [🪂] Use queues instead
|
|
2478
|
+
*
|
|
2479
|
+
* @public exported from `@promptbook/utils`
|
|
2460
2480
|
*/
|
|
2461
2481
|
async function forEachAsync(array, options, callbackfunction) {
|
|
2462
2482
|
const { maxParallelCount = Infinity } = options;
|
|
@@ -2615,8 +2635,8 @@ function numberToString(value) {
|
|
|
2615
2635
|
* This is useful and used in the `templateParameters` function
|
|
2616
2636
|
*
|
|
2617
2637
|
* Note: This function is not just calling `toString` method
|
|
2618
|
-
*
|
|
2619
|
-
*
|
|
2638
|
+
* It's more complex and can handle this conversion specifically for LLM models
|
|
2639
|
+
* See `VALUE_STRINGS`
|
|
2620
2640
|
*
|
|
2621
2641
|
* Note: There are 2 similar functions
|
|
2622
2642
|
* - `valueToString` converts value to string for LLM models as human-readable string
|
|
@@ -2667,12 +2687,13 @@ function valueToString(value) {
|
|
|
2667
2687
|
* Replaces parameters in template with values from parameters object
|
|
2668
2688
|
*
|
|
2669
2689
|
* Note: This function is not places strings into string,
|
|
2670
|
-
*
|
|
2690
|
+
* It's more complex and can handle this operation specifically for LLM models
|
|
2671
2691
|
*
|
|
2672
2692
|
* @param template the template with parameters in {curly} braces
|
|
2673
2693
|
* @param parameters the object with parameters
|
|
2674
2694
|
* @returns the template with replaced parameters
|
|
2675
2695
|
* @throws {PipelineExecutionError} if parameter is not defined, not closed, or not opened
|
|
2696
|
+
*
|
|
2676
2697
|
* @public exported from `@promptbook/utils`
|
|
2677
2698
|
*/
|
|
2678
2699
|
function templateParameters(template, parameters) {
|
|
@@ -2756,6 +2777,7 @@ const PROMPT_PARAMETER_ESCAPE_WITH_BRACES_PATTERN = /[{}$`]/g;
|
|
|
2756
2777
|
* Normalizes a JSON string so it can be safely rendered without double escaping.
|
|
2757
2778
|
*
|
|
2758
2779
|
* @param value Candidate JSON string.
|
|
2780
|
+
*
|
|
2759
2781
|
* @private function of ParameterEscaping
|
|
2760
2782
|
*/
|
|
2761
2783
|
function normalizeJsonString(value) {
|
|
@@ -2770,6 +2792,7 @@ function normalizeJsonString(value) {
|
|
|
2770
2792
|
* Hides brackets in a string to avoid confusion with template parameters.
|
|
2771
2793
|
*
|
|
2772
2794
|
* @param value Input string with literal brackets.
|
|
2795
|
+
*
|
|
2773
2796
|
* @private function of ParameterEscaping
|
|
2774
2797
|
*/
|
|
2775
2798
|
function hideBrackets(value) {
|
|
@@ -2779,6 +2802,7 @@ function hideBrackets(value) {
|
|
|
2779
2802
|
* Restores hidden brackets.
|
|
2780
2803
|
*
|
|
2781
2804
|
* @param value String with hidden brackets.
|
|
2805
|
+
*
|
|
2782
2806
|
* @private function of ParameterEscaping
|
|
2783
2807
|
*/
|
|
2784
2808
|
function restoreBrackets(value) {
|
|
@@ -2788,6 +2812,7 @@ function restoreBrackets(value) {
|
|
|
2788
2812
|
* Decides whether a parameter can be inlined safely.
|
|
2789
2813
|
*
|
|
2790
2814
|
* @param value Parameter rendered as string.
|
|
2815
|
+
*
|
|
2791
2816
|
* @private function of ParameterEscaping
|
|
2792
2817
|
*/
|
|
2793
2818
|
function shouldInlineParameterValue(value) {
|
|
@@ -2801,6 +2826,7 @@ function shouldInlineParameterValue(value) {
|
|
|
2801
2826
|
*
|
|
2802
2827
|
* @param value Parameter value to escape.
|
|
2803
2828
|
* @param options Escape options for additional characters.
|
|
2829
|
+
*
|
|
2804
2830
|
* @private function of ParameterEscaping
|
|
2805
2831
|
*/
|
|
2806
2832
|
function escapePromptParameterValue(value, options) {
|
|
@@ -2826,6 +2852,7 @@ const ParameterEscaping = {
|
|
|
2826
2852
|
* Builds numeric parameter names (1, 2, ...).
|
|
2827
2853
|
*
|
|
2828
2854
|
* @param index Zero-based parameter index.
|
|
2855
|
+
*
|
|
2829
2856
|
* @private function of ParameterNaming
|
|
2830
2857
|
*/
|
|
2831
2858
|
function buildNumericParameterName(index) {
|
|
@@ -2835,6 +2862,7 @@ function buildNumericParameterName(index) {
|
|
|
2835
2862
|
* Builds alphabetic parameter names (a, b, ..., aa).
|
|
2836
2863
|
*
|
|
2837
2864
|
* @param index Zero-based parameter index.
|
|
2865
|
+
*
|
|
2838
2866
|
* @private function of ParameterNaming
|
|
2839
2867
|
*/
|
|
2840
2868
|
function buildAlphabeticParameterName(index) {
|
|
@@ -2851,6 +2879,7 @@ function buildAlphabeticParameterName(index) {
|
|
|
2851
2879
|
* Converts a positive integer into a Roman numeral string.
|
|
2852
2880
|
*
|
|
2853
2881
|
* @param value Positive integer value.
|
|
2882
|
+
*
|
|
2854
2883
|
* @private function of ParameterNaming
|
|
2855
2884
|
*/
|
|
2856
2885
|
function toRomanNumeral(value) {
|
|
@@ -2883,6 +2912,7 @@ function toRomanNumeral(value) {
|
|
|
2883
2912
|
* Builds Roman numeral parameter names (I, II, ...).
|
|
2884
2913
|
*
|
|
2885
2914
|
* @param index Zero-based parameter index.
|
|
2915
|
+
*
|
|
2886
2916
|
* @private function of ParameterNaming
|
|
2887
2917
|
*/
|
|
2888
2918
|
function buildRomanParameterName(index) {
|
|
@@ -2893,6 +2923,7 @@ function buildRomanParameterName(index) {
|
|
|
2893
2923
|
*
|
|
2894
2924
|
* @param prefix Prefix string.
|
|
2895
2925
|
* @param builder Base builder function.
|
|
2926
|
+
*
|
|
2896
2927
|
* @private function of ParameterNaming
|
|
2897
2928
|
*/
|
|
2898
2929
|
function buildPrefixedParameterName(prefix, builder) {
|
|
@@ -2914,6 +2945,7 @@ const PARAMETER_NAME_STRATEGIES = [
|
|
|
2914
2945
|
* Collects bracketed tokens from parameter values to avoid placeholder collisions.
|
|
2915
2946
|
*
|
|
2916
2947
|
* @param values Parameter values to scan.
|
|
2948
|
+
*
|
|
2917
2949
|
* @private function of ParameterNaming
|
|
2918
2950
|
*/
|
|
2919
2951
|
function collectBracketedParameterTokens(values) {
|
|
@@ -2934,6 +2966,7 @@ function collectBracketedParameterTokens(values) {
|
|
|
2934
2966
|
* Builds placeholder names while avoiding collisions with parameter content.
|
|
2935
2967
|
*
|
|
2936
2968
|
* @param values Parameter values to scan for conflicting tokens.
|
|
2969
|
+
*
|
|
2937
2970
|
* @private function of ParameterNaming
|
|
2938
2971
|
*/
|
|
2939
2972
|
function buildParameterNames(values) {
|
|
@@ -2964,6 +2997,7 @@ const ParameterNaming = {
|
|
|
2964
2997
|
* Formats the placeholder used in the prompt body for a parameter.
|
|
2965
2998
|
*
|
|
2966
2999
|
* @param name Parameter placeholder name.
|
|
3000
|
+
*
|
|
2967
3001
|
* @private function of ParameterSection
|
|
2968
3002
|
*/
|
|
2969
3003
|
function formatParameterPlaceholder(name) {
|
|
@@ -2973,6 +3007,7 @@ function formatParameterPlaceholder(name) {
|
|
|
2973
3007
|
* Formats a single line entry for structured parameters.
|
|
2974
3008
|
*
|
|
2975
3009
|
* @param item Parameter entry data.
|
|
3010
|
+
*
|
|
2976
3011
|
* @private function of ParameterSection
|
|
2977
3012
|
*/
|
|
2978
3013
|
function formatParameterListItem(item) {
|
|
@@ -2984,6 +3019,7 @@ function formatParameterListItem(item) {
|
|
|
2984
3019
|
* Builds the structured parameters section appended to the prompt.
|
|
2985
3020
|
*
|
|
2986
3021
|
* @param items Parameter entries to include.
|
|
3022
|
+
*
|
|
2987
3023
|
* @private function of ParameterSection
|
|
2988
3024
|
*/
|
|
2989
3025
|
function buildParametersSection(items) {
|
|
@@ -3059,6 +3095,7 @@ function isPromptString(value) {
|
|
|
3059
3095
|
* @param strings
|
|
3060
3096
|
* @param values
|
|
3061
3097
|
* @returns prompt content wrapped as a PromptString
|
|
3098
|
+
*
|
|
3062
3099
|
* @public exported from `@promptbook/utils`
|
|
3063
3100
|
*/
|
|
3064
3101
|
function prompt(strings, ...values) {
|
|
@@ -3152,14 +3189,13 @@ function prompt(strings, ...values) {
|
|
|
3152
3189
|
* 3) `book` for notating and validating entire books exported from `@promptbook/utils`
|
|
3153
3190
|
*
|
|
3154
3191
|
* @alias prompt
|
|
3192
|
+
*
|
|
3155
3193
|
* @public exported from `@promptbook/utils`
|
|
3156
3194
|
*/
|
|
3157
3195
|
const promptTemplate = prompt;
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3162
|
-
*/
|
|
3196
|
+
// TODO: Maybe split into multiple files
|
|
3197
|
+
// TODO: [🧠][🈴] Where is the best location for this file
|
|
3198
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3163
3199
|
|
|
3164
3200
|
/**
|
|
3165
3201
|
* @@@
|
|
@@ -3255,9 +3291,7 @@ function getClientVersionFromHeaders(headers) {
|
|
|
3255
3291
|
const value = normalizedHeaders.get(CLIENT_VERSION_HEADER);
|
|
3256
3292
|
return value ? value.trim() : null;
|
|
3257
3293
|
}
|
|
3258
|
-
|
|
3259
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3260
|
-
*/
|
|
3294
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3261
3295
|
|
|
3262
3296
|
/**
|
|
3263
3297
|
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
@@ -3274,9 +3308,7 @@ function $isRunningInBrowser() {
|
|
|
3274
3308
|
return false;
|
|
3275
3309
|
}
|
|
3276
3310
|
}
|
|
3277
|
-
|
|
3278
|
-
* TODO: [🎺]
|
|
3279
|
-
*/
|
|
3311
|
+
// TODO: [🎺]
|
|
3280
3312
|
|
|
3281
3313
|
/**
|
|
3282
3314
|
* Detects if the code is running in jest environment
|
|
@@ -3294,9 +3326,7 @@ function $isRunningInJest() {
|
|
|
3294
3326
|
return false;
|
|
3295
3327
|
}
|
|
3296
3328
|
}
|
|
3297
|
-
|
|
3298
|
-
* TODO: [🎺]
|
|
3299
|
-
*/
|
|
3329
|
+
// TODO: [🎺]
|
|
3300
3330
|
|
|
3301
3331
|
/**
|
|
3302
3332
|
* Detects if the code is running in a Node.js environment
|
|
@@ -3313,9 +3343,7 @@ function $isRunningInNode() {
|
|
|
3313
3343
|
return false;
|
|
3314
3344
|
}
|
|
3315
3345
|
}
|
|
3316
|
-
|
|
3317
|
-
* TODO: [🎺]
|
|
3318
|
-
*/
|
|
3346
|
+
// TODO: [🎺]
|
|
3319
3347
|
|
|
3320
3348
|
/**
|
|
3321
3349
|
* Detects if the code is running in a web worker
|
|
@@ -3335,9 +3363,7 @@ function $isRunningInWebWorker() {
|
|
|
3335
3363
|
return false;
|
|
3336
3364
|
}
|
|
3337
3365
|
}
|
|
3338
|
-
|
|
3339
|
-
* TODO: [🎺]
|
|
3340
|
-
*/
|
|
3366
|
+
// TODO: [🎺]
|
|
3341
3367
|
|
|
3342
3368
|
/**
|
|
3343
3369
|
* Returns information about the current runtime environment
|
|
@@ -3354,9 +3380,7 @@ function $detectRuntimeEnvironment() {
|
|
|
3354
3380
|
isRunningInWebWorker: $isRunningInWebWorker(),
|
|
3355
3381
|
};
|
|
3356
3382
|
}
|
|
3357
|
-
|
|
3358
|
-
* TODO: [🎺] Also detect and report node version here
|
|
3359
|
-
*/
|
|
3383
|
+
// TODO: [🎺] Also detect and report node version here
|
|
3360
3384
|
|
|
3361
3385
|
/**
|
|
3362
3386
|
* Number of characters per standard line with 11pt Arial font size.
|
|
@@ -3370,10 +3394,8 @@ const CHARACTERS_PER_STANDARD_LINE = 63;
|
|
|
3370
3394
|
* @public exported from `@promptbook/utils`
|
|
3371
3395
|
*/
|
|
3372
3396
|
const LINES_PER_STANDARD_PAGE = 44;
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3376
|
-
*/
|
|
3397
|
+
// TODO: [🧠] Should be this `constants.ts` or `config.ts`?
|
|
3398
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3377
3399
|
|
|
3378
3400
|
/**
|
|
3379
3401
|
* Counts number of characters in the text
|
|
@@ -3389,10 +3411,8 @@ function countCharacters(text) {
|
|
|
3389
3411
|
text = text.replace(/\p{Extended_Pictographic}(\u{200D}\p{Extended_Pictographic})*/gu, '-');
|
|
3390
3412
|
return text.length;
|
|
3391
3413
|
}
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3395
|
-
*/
|
|
3414
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3415
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3396
3416
|
|
|
3397
3417
|
/**
|
|
3398
3418
|
* Counts number of lines in the text
|
|
@@ -3410,10 +3430,8 @@ function countLines(text) {
|
|
|
3410
3430
|
const lines = text.split(/\r?\n/);
|
|
3411
3431
|
return lines.reduce((count, line) => count + Math.max(Math.ceil(line.length / CHARACTERS_PER_STANDARD_LINE), 1), 0);
|
|
3412
3432
|
}
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3416
|
-
*/
|
|
3433
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3434
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3417
3435
|
|
|
3418
3436
|
/**
|
|
3419
3437
|
* Counts number of pages in the text
|
|
@@ -3425,10 +3443,8 @@ function countLines(text) {
|
|
|
3425
3443
|
function countPages(text) {
|
|
3426
3444
|
return Math.ceil(countLines(text) / LINES_PER_STANDARD_PAGE);
|
|
3427
3445
|
}
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3431
|
-
*/
|
|
3446
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3447
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3432
3448
|
|
|
3433
3449
|
/**
|
|
3434
3450
|
* Counts number of paragraphs in the text
|
|
@@ -3438,10 +3454,8 @@ function countPages(text) {
|
|
|
3438
3454
|
function countParagraphs(text) {
|
|
3439
3455
|
return text.split(/\n\s*\n/).filter((paragraph) => paragraph.trim() !== '').length;
|
|
3440
3456
|
}
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3444
|
-
*/
|
|
3457
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3458
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3445
3459
|
|
|
3446
3460
|
/**
|
|
3447
3461
|
* Split text into sentences
|
|
@@ -3459,10 +3473,8 @@ function splitIntoSentences(text) {
|
|
|
3459
3473
|
function countSentences(text) {
|
|
3460
3474
|
return splitIntoSentences(text).length;
|
|
3461
3475
|
}
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3465
|
-
*/
|
|
3476
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3477
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3466
3478
|
|
|
3467
3479
|
/**
|
|
3468
3480
|
* Counts number of words in the text
|
|
@@ -3476,11 +3488,9 @@ function countWords(text) {
|
|
|
3476
3488
|
text = text.replace(/([a-z])([A-Z])/g, '$1 $2');
|
|
3477
3489
|
return text.split(/[^a-zа-я0-9]+/i).filter((word) => word.length > 0).length;
|
|
3478
3490
|
}
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
3483
|
-
*/
|
|
3491
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3492
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3493
|
+
// TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
3484
3494
|
|
|
3485
3495
|
/**
|
|
3486
3496
|
* Index of all counter functions
|
|
@@ -3495,10 +3505,8 @@ const CountUtils = {
|
|
|
3495
3505
|
LINES: countLines,
|
|
3496
3506
|
PAGES: countPages,
|
|
3497
3507
|
};
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3501
|
-
*/
|
|
3508
|
+
// TODO: [🧠][🤠] This should be probably as part of `TextFormatParser`
|
|
3509
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3502
3510
|
|
|
3503
3511
|
/**
|
|
3504
3512
|
* Computes SHA-256 hash of the given object
|
|
@@ -3508,9 +3516,7 @@ const CountUtils = {
|
|
|
3508
3516
|
function computeHash(value) {
|
|
3509
3517
|
return SHA256(hexEncoder.parse(spaceTrim$1(valueToString(value)))).toString( /* hex */);
|
|
3510
3518
|
}
|
|
3511
|
-
|
|
3512
|
-
* TODO: [🥬][🥬] Use this ACRY
|
|
3513
|
-
*/
|
|
3519
|
+
// TODO: [🥬][🥬] Use this ACRY
|
|
3514
3520
|
|
|
3515
3521
|
/**
|
|
3516
3522
|
* Makes first letter of a string uppercase
|
|
@@ -3687,6 +3693,9 @@ const ADJECTIVES$1 = [
|
|
|
3687
3693
|
'prvotní',
|
|
3688
3694
|
'hbitý',
|
|
3689
3695
|
];
|
|
3696
|
+
/**
|
|
3697
|
+
* Collection of nouns.
|
|
3698
|
+
*/
|
|
3690
3699
|
const NOUNS$1 = [
|
|
3691
3700
|
'jablko',
|
|
3692
3701
|
'nebe',
|
|
@@ -3900,6 +3909,9 @@ const NOUNS$1 = [
|
|
|
3900
3909
|
'okno',
|
|
3901
3910
|
'chodba',
|
|
3902
3911
|
];
|
|
3912
|
+
/**
|
|
3913
|
+
* Collection of verbs.
|
|
3914
|
+
*/
|
|
3903
3915
|
const VERBS$1 = [
|
|
3904
3916
|
'skáče',
|
|
3905
3917
|
'tančí',
|
|
@@ -4072,9 +4084,7 @@ const LINGUISTIC_HASH_WORD_LISTS_CS = {
|
|
|
4072
4084
|
noun: NOUNS$1,
|
|
4073
4085
|
verb: VERBS$1,
|
|
4074
4086
|
};
|
|
4075
|
-
|
|
4076
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4077
|
-
*/
|
|
4087
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4078
4088
|
|
|
4079
4089
|
/**
|
|
4080
4090
|
* @@@
|
|
@@ -4330,6 +4340,9 @@ const ADJECTIVES = [
|
|
|
4330
4340
|
'macro',
|
|
4331
4341
|
'mini',
|
|
4332
4342
|
];
|
|
4343
|
+
/**
|
|
4344
|
+
* Collection of nouns.
|
|
4345
|
+
*/
|
|
4333
4346
|
const NOUNS = [
|
|
4334
4347
|
'apple',
|
|
4335
4348
|
'sky',
|
|
@@ -4569,6 +4582,9 @@ const NOUNS = [
|
|
|
4569
4582
|
'roof',
|
|
4570
4583
|
'floor',
|
|
4571
4584
|
];
|
|
4585
|
+
/**
|
|
4586
|
+
* Collection of verbs.
|
|
4587
|
+
*/
|
|
4572
4588
|
const VERBS = [
|
|
4573
4589
|
'jumping',
|
|
4574
4590
|
'dancing',
|
|
@@ -4764,9 +4780,7 @@ const LINGUISTIC_HASH_WORD_LISTS_EN = {
|
|
|
4764
4780
|
noun: NOUNS,
|
|
4765
4781
|
verb: VERBS,
|
|
4766
4782
|
};
|
|
4767
|
-
|
|
4768
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4769
|
-
*/
|
|
4783
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4770
4784
|
|
|
4771
4785
|
/**
|
|
4772
4786
|
* Default language used for linguistic hashes.
|
|
@@ -4941,8 +4955,9 @@ function normalizeLinguisticHashWordCount(wordCount) {
|
|
|
4941
4955
|
/**
|
|
4942
4956
|
* Creates a human-readable hash as a short, story-like phrase.
|
|
4943
4957
|
*
|
|
4944
|
-
* @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
|
|
4945
4958
|
* {@link MIN_LINGUISTIC_HASH_WORD_COUNT}..{@link MAX_LINGUISTIC_HASH_WORD_COUNT})
|
|
4959
|
+
*
|
|
4960
|
+
* @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
|
|
4946
4961
|
* @param language optional language code (defaults to {@link DEFAULT_LINGUISTIC_HASH_LANGUAGE})
|
|
4947
4962
|
*
|
|
4948
4963
|
* @public exported from `@promptbook/utils`
|
|
@@ -4961,6 +4976,7 @@ async function linguisticHash(input, wordCount, language) {
|
|
|
4961
4976
|
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic because it depends on the current time
|
|
4962
4977
|
*
|
|
4963
4978
|
* @returns string_date branded type
|
|
4979
|
+
*
|
|
4964
4980
|
* @public exported from `@promptbook/utils`
|
|
4965
4981
|
*/
|
|
4966
4982
|
function $getCurrentDate() {
|
|
@@ -4968,6 +4984,8 @@ function $getCurrentDate() {
|
|
|
4968
4984
|
}
|
|
4969
4985
|
|
|
4970
4986
|
/**
|
|
4987
|
+
* Handles debounce.
|
|
4988
|
+
*
|
|
4971
4989
|
* @public exported from `@promptbook/utils`
|
|
4972
4990
|
*/
|
|
4973
4991
|
function debounce(fn, delay) {
|
|
@@ -5046,10 +5064,8 @@ function parseNumber(value) {
|
|
|
5046
5064
|
}
|
|
5047
5065
|
return num;
|
|
5048
5066
|
}
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
* TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
|
|
5052
|
-
*/
|
|
5067
|
+
// TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
|
|
5068
|
+
// TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
|
|
5053
5069
|
|
|
5054
5070
|
/**
|
|
5055
5071
|
* Makes first letter of a string lowercase
|
|
@@ -5071,6 +5087,7 @@ function decapitalize(word) {
|
|
|
5071
5087
|
* @returns The normalized text in SCREAMING_CASE format.
|
|
5072
5088
|
* @example 'HELLO_WORLD'
|
|
5073
5089
|
* @example 'I_LOVE_PROMPTBOOK'
|
|
5090
|
+
*
|
|
5074
5091
|
* @public exported from `@promptbook/utils`
|
|
5075
5092
|
*/
|
|
5076
5093
|
function normalizeTo_SCREAMING_CASE(text) {
|
|
@@ -5124,6 +5141,7 @@ function normalizeTo_SCREAMING_CASE(text) {
|
|
|
5124
5141
|
*
|
|
5125
5142
|
* @param {string} input
|
|
5126
5143
|
* @returns {Set} of keywords without diacritics in lowercase
|
|
5144
|
+
*
|
|
5127
5145
|
* @public exported from `@promptbook/utils`
|
|
5128
5146
|
*/
|
|
5129
5147
|
function parseKeywordsFromString(input) {
|
|
@@ -5158,6 +5176,7 @@ function isValidKeyword(keyword) {
|
|
|
5158
5176
|
* @param name The string to be converted to a URI-compatible format.
|
|
5159
5177
|
* @returns A URI-compatible string derived from the input name.
|
|
5160
5178
|
* @example 'Hello World' -> 'hello-world'
|
|
5179
|
+
*
|
|
5161
5180
|
* @public exported from `@promptbook/utils`
|
|
5162
5181
|
*/
|
|
5163
5182
|
function nameToUriPart(name) {
|
|
@@ -5176,6 +5195,7 @@ function nameToUriPart(name) {
|
|
|
5176
5195
|
* @param name The name to be converted into URI parts.
|
|
5177
5196
|
* @returns An array of URI-compatible parts derived from the name.
|
|
5178
5197
|
* @example 'Example Name' -> ['example', 'name']
|
|
5198
|
+
*
|
|
5179
5199
|
* @public exported from `@promptbook/utils`
|
|
5180
5200
|
*/
|
|
5181
5201
|
function nameToUriParts(name) {
|
|
@@ -5205,6 +5225,7 @@ function normalizeMessageText(text) {
|
|
|
5205
5225
|
* @returns
|
|
5206
5226
|
* @example 'HelloWorld'
|
|
5207
5227
|
* @example 'ILovePromptbook'
|
|
5228
|
+
*
|
|
5208
5229
|
* @public exported from `@promptbook/utils`
|
|
5209
5230
|
*/
|
|
5210
5231
|
function normalizeTo_PascalCase(text) {
|
|
@@ -5220,6 +5241,7 @@ function normalizeTo_PascalCase(text) {
|
|
|
5220
5241
|
* @returns The normalized text in snake_case format.
|
|
5221
5242
|
* @example 'hello_world'
|
|
5222
5243
|
* @example 'i_love_promptbook'
|
|
5244
|
+
*
|
|
5223
5245
|
* @public exported from `@promptbook/utils`
|
|
5224
5246
|
*/
|
|
5225
5247
|
function normalizeTo_snake_case(text) {
|
|
@@ -5244,6 +5266,7 @@ function normalizeWhitespaces(sentence) {
|
|
|
5244
5266
|
*
|
|
5245
5267
|
* @param input of any kind
|
|
5246
5268
|
* @returns {Set} of keywords without diacritics in lowercase
|
|
5269
|
+
*
|
|
5247
5270
|
* @public exported from `@promptbook/utils`
|
|
5248
5271
|
*/
|
|
5249
5272
|
function parseKeywords(input) {
|
|
@@ -5265,10 +5288,8 @@ function parseKeywords(input) {
|
|
|
5265
5288
|
return new Set();
|
|
5266
5289
|
}
|
|
5267
5290
|
}
|
|
5268
|
-
|
|
5269
|
-
|
|
5270
|
-
* TODO: [🌺] Use some intermediate util splitWords
|
|
5271
|
-
*/
|
|
5291
|
+
// Note: Not using spread in input param because of keeping second parameter for options
|
|
5292
|
+
// TODO: [🌺] Use some intermediate util splitWords
|
|
5272
5293
|
|
|
5273
5294
|
/**
|
|
5274
5295
|
* Removes quotes from a string
|
|
@@ -5282,6 +5303,7 @@ function parseKeywords(input) {
|
|
|
5282
5303
|
*
|
|
5283
5304
|
* @param text optionally quoted text
|
|
5284
5305
|
* @returns text without quotes
|
|
5306
|
+
*
|
|
5285
5307
|
* @public exported from `@promptbook/utils`
|
|
5286
5308
|
*/
|
|
5287
5309
|
function removeQuotes(text) {
|
|
@@ -5300,6 +5322,7 @@ function removeQuotes(text) {
|
|
|
5300
5322
|
* @param haystack
|
|
5301
5323
|
* @param needle
|
|
5302
5324
|
* @returns
|
|
5325
|
+
*
|
|
5303
5326
|
* @public exported from `@promptbook/utils`
|
|
5304
5327
|
*/
|
|
5305
5328
|
function searchKeywords(haystack, needle) {
|
|
@@ -5310,9 +5333,7 @@ function searchKeywords(haystack, needle) {
|
|
|
5310
5333
|
}
|
|
5311
5334
|
return true;
|
|
5312
5335
|
}
|
|
5313
|
-
|
|
5314
|
-
* TODO: Rename to `isKeywordInKeywords`
|
|
5315
|
-
*/
|
|
5336
|
+
// TODO: Rename to `isKeywordInKeywords`
|
|
5316
5337
|
|
|
5317
5338
|
/**
|
|
5318
5339
|
* Adds suffix to the URL
|
|
@@ -5336,6 +5357,7 @@ function suffixUrl(value, suffix) {
|
|
|
5336
5357
|
*
|
|
5337
5358
|
* @param text optionally quoted text
|
|
5338
5359
|
* @returns text without quotes
|
|
5360
|
+
*
|
|
5339
5361
|
* @public exported from `@promptbook/utils`
|
|
5340
5362
|
*/
|
|
5341
5363
|
function unwrapResult(text, options) {
|
|
@@ -5410,15 +5432,14 @@ function unwrapResult(text, options) {
|
|
|
5410
5432
|
return processedText;
|
|
5411
5433
|
}
|
|
5412
5434
|
}
|
|
5413
|
-
|
|
5414
|
-
* TODO: [🧠] Should this also unwrap the (parenthesis)
|
|
5415
|
-
*/
|
|
5435
|
+
// TODO: [🧠] Should this also unwrap the (parenthesis)
|
|
5416
5436
|
|
|
5417
5437
|
/**
|
|
5418
5438
|
* Parses the task and returns the list of all parameter names
|
|
5419
5439
|
*
|
|
5420
5440
|
* @param template the string template with parameters in {curly} braces
|
|
5421
5441
|
* @returns the list of parameter names
|
|
5442
|
+
*
|
|
5422
5443
|
* @public exported from `@promptbook/utils`
|
|
5423
5444
|
*/
|
|
5424
5445
|
function extractParameterNames(template) {
|
|
@@ -5438,6 +5459,7 @@ function extractParameterNames(template) {
|
|
|
5438
5459
|
*
|
|
5439
5460
|
* @param pipeline The pipeline to clone.
|
|
5440
5461
|
* @returns A new PipelineJson object with the same properties as the input.
|
|
5462
|
+
*
|
|
5441
5463
|
* @public exported from `@promptbook/utils`
|
|
5442
5464
|
*/
|
|
5443
5465
|
function clonePipeline(pipeline) {
|
|
@@ -5459,9 +5481,7 @@ function clonePipeline(pipeline) {
|
|
|
5459
5481
|
sources,
|
|
5460
5482
|
};
|
|
5461
5483
|
}
|
|
5462
|
-
|
|
5463
|
-
* TODO: [🍙] Make some standard order of json properties
|
|
5464
|
-
*/
|
|
5484
|
+
// TODO: [🍙] Make some standard order of json properties
|
|
5465
5485
|
|
|
5466
5486
|
// <- TODO: Auto convert to type `import { ... } from 'type-fest';`
|
|
5467
5487
|
/**
|
|
@@ -5480,7 +5500,6 @@ function clonePipeline(pipeline) {
|
|
|
5480
5500
|
* - `Symbol` objects are not serializable
|
|
5481
5501
|
* - And much more...
|
|
5482
5502
|
*
|
|
5483
|
-
*
|
|
5484
5503
|
* @public exported from `@promptbook/utils`
|
|
5485
5504
|
*/
|
|
5486
5505
|
function isSerializableAsJson(value) {
|
|
@@ -5492,14 +5511,12 @@ function isSerializableAsJson(value) {
|
|
|
5492
5511
|
return false;
|
|
5493
5512
|
}
|
|
5494
5513
|
}
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
* TODO: [🧠][💺] Can be done this on type-level?
|
|
5498
|
-
*/
|
|
5514
|
+
// TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
|
|
5515
|
+
// TODO: [🧠][💺] Can be done this on type-level?
|
|
5499
5516
|
|
|
5500
5517
|
/**
|
|
5501
5518
|
* Recursively converts JSON strings to JSON objects
|
|
5502
|
-
|
|
5519
|
+
*
|
|
5503
5520
|
* @public exported from `@promptbook/utils`
|
|
5504
5521
|
*/
|
|
5505
5522
|
function jsonStringsToJsons(object) {
|
|
@@ -5523,9 +5540,7 @@ function jsonStringsToJsons(object) {
|
|
|
5523
5540
|
}
|
|
5524
5541
|
return newObject;
|
|
5525
5542
|
}
|
|
5526
|
-
|
|
5527
|
-
* TODO: Type the return type correctly
|
|
5528
|
-
*/
|
|
5543
|
+
// TODO: Type the return type correctly
|
|
5529
5544
|
|
|
5530
5545
|
/**
|
|
5531
5546
|
* Function `serializeToPromptbookJavascript` will serialize a value to a javascript representation using `@promptbook/*` entities where possible.
|
|
@@ -5585,14 +5600,13 @@ function serializeToPromptbookJavascript(value) {
|
|
|
5585
5600
|
const uniqueImports = Array.from(new Set(imports)).filter((importStatement) => !!importStatement && importStatement.trim().length > 0);
|
|
5586
5601
|
return { imports: uniqueImports, value: serializedValue };
|
|
5587
5602
|
}
|
|
5588
|
-
|
|
5589
|
-
* TODO: Dynamic indentation passable through options in a second argument
|
|
5590
|
-
*/
|
|
5603
|
+
// TODO: Dynamic indentation passable through options in a second argument
|
|
5591
5604
|
|
|
5592
5605
|
/**
|
|
5593
5606
|
* Create difference set of two sets.
|
|
5594
5607
|
*
|
|
5595
5608
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5609
|
+
*
|
|
5596
5610
|
* @public exported from `@promptbook/utils`
|
|
5597
5611
|
*/
|
|
5598
5612
|
function difference(a, b, isEqual = (a, b) => a === b) {
|
|
@@ -5604,14 +5618,13 @@ function difference(a, b, isEqual = (a, b) => a === b) {
|
|
|
5604
5618
|
}
|
|
5605
5619
|
return diff;
|
|
5606
5620
|
}
|
|
5607
|
-
|
|
5608
|
-
* TODO: [🧠][💯] Maybe also implement symmetricDifference
|
|
5609
|
-
*/
|
|
5621
|
+
// TODO: [🧠][💯] Maybe also implement symmetricDifference
|
|
5610
5622
|
|
|
5611
5623
|
/**
|
|
5612
5624
|
* Creates a new set with all elements that are present in all sets
|
|
5613
5625
|
*
|
|
5614
5626
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5627
|
+
*
|
|
5615
5628
|
* @public exported from `@promptbook/utils`
|
|
5616
5629
|
*/
|
|
5617
5630
|
function intersection(...sets) {
|
|
@@ -5637,6 +5650,7 @@ function intersection(...sets) {
|
|
|
5637
5650
|
* Creates a new set with all elements that are present in either set
|
|
5638
5651
|
*
|
|
5639
5652
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5653
|
+
*
|
|
5640
5654
|
* @public exported from `@promptbook/utils`
|
|
5641
5655
|
*/
|
|
5642
5656
|
function union(...sets) {
|
|
@@ -5668,6 +5682,7 @@ function isValidEmail(email) {
|
|
|
5668
5682
|
* Determines if the given path is a root path.
|
|
5669
5683
|
*
|
|
5670
5684
|
* Note: This does not check if the file exists only if the path is valid
|
|
5685
|
+
*
|
|
5671
5686
|
* @public exported from `@promptbook/utils`
|
|
5672
5687
|
*/
|
|
5673
5688
|
function isRootPath(value) {
|
|
@@ -5679,15 +5694,14 @@ function isRootPath(value) {
|
|
|
5679
5694
|
}
|
|
5680
5695
|
return false;
|
|
5681
5696
|
}
|
|
5682
|
-
|
|
5683
|
-
* TODO: [🍏] Make for MacOS paths
|
|
5684
|
-
*/
|
|
5697
|
+
// TODO: [🍏] Make for MacOS paths
|
|
5685
5698
|
|
|
5686
5699
|
/**
|
|
5687
5700
|
* Checks if the given value is a valid JavaScript identifier name.
|
|
5688
5701
|
*
|
|
5689
5702
|
* @param javascriptName The value to check for JavaScript identifier validity.
|
|
5690
5703
|
* @returns `true` if the value is a valid JavaScript name, false otherwise.
|
|
5704
|
+
*
|
|
5691
5705
|
* @public exported from `@promptbook/utils`
|
|
5692
5706
|
*/
|
|
5693
5707
|
function isValidJavascriptName(javascriptName) {
|
|
@@ -5720,12 +5734,13 @@ function isValidSemanticVersion(version) {
|
|
|
5720
5734
|
* Tests if given string is valid promptbook version
|
|
5721
5735
|
* It looks into list of known promptbook versions.
|
|
5722
5736
|
*
|
|
5723
|
-
* @see https://www.npmjs.com/package/promptbook?activeTab=versions
|
|
5724
5737
|
* Note: When you are using for example promptbook 2.0.0 and there already is promptbook 3.0.0 it don`t know about it.
|
|
5725
5738
|
* Note: There are two similar functions:
|
|
5726
5739
|
* - `isValidSemanticVersion` which tests any semantic version
|
|
5727
5740
|
* - `isValidPromptbookVersion` *(this one)* which tests just Promptbook versions
|
|
5728
5741
|
*
|
|
5742
|
+
* @see https://www.npmjs.com/package/promptbook?activeTab=versions
|
|
5743
|
+
*
|
|
5729
5744
|
* @public exported from `@promptbook/utils`
|
|
5730
5745
|
*/
|
|
5731
5746
|
function isValidPromptbookVersion(version) {
|
|
@@ -5783,6 +5798,7 @@ function isHostnameOnPrivateNetwork(hostname, options = {}) {
|
|
|
5783
5798
|
* @param {string} url - The URL to check.
|
|
5784
5799
|
* @param {IsUrlOnPrivateNetworkOptions} options - Options for the check.
|
|
5785
5800
|
* @returns {boolean} Returns true if the IP address is reserved for private networks or localhost, otherwise false.
|
|
5801
|
+
*
|
|
5786
5802
|
* @public exported from `@promptbook/utils`
|
|
5787
5803
|
*/
|
|
5788
5804
|
function isUrlOnPrivateNetwork(url, options = {}) {
|
|
@@ -5821,9 +5837,7 @@ function isValidAgentUrl(url) {
|
|
|
5821
5837
|
*/
|
|
5822
5838
|
return true;
|
|
5823
5839
|
}
|
|
5824
|
-
|
|
5825
|
-
* TODO: [🐠] Maybe more info why the URL is invalid
|
|
5826
|
-
*/
|
|
5840
|
+
// TODO: [🐠] Maybe more info why the URL is invalid
|
|
5827
5841
|
|
|
5828
5842
|
/**
|
|
5829
5843
|
* Tests if given string is valid pipeline URL URL.
|
|
@@ -5854,9 +5868,7 @@ function isValidPipelineUrl(url) {
|
|
|
5854
5868
|
*/
|
|
5855
5869
|
return true;
|
|
5856
5870
|
}
|
|
5857
|
-
|
|
5858
|
-
* TODO: [🐠] Maybe more info why the URL is invalid
|
|
5859
|
-
*/
|
|
5871
|
+
// TODO: [🐠] Maybe more info why the URL is invalid
|
|
5860
5872
|
|
|
5861
5873
|
/**
|
|
5862
5874
|
* Checks if value is valid uuid
|