@promptbook/utils 0.112.0-34 → 0.112.0-36
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 +115 -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/boilerplateTemplates.d.ts +127 -0
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -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 +10 -2
- package/esm/src/cli/cli-commands/coder/init.d.ts +38 -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/boilerplateTemplates.d.ts +127 -0
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -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 +10 -2
- package/umd/src/cli/cli-commands/coder/init.d.ts +38 -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/umd/index.umd.js
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @generated
|
|
23
23
|
* @see https://github.com/webgptorg/promptbook
|
|
24
24
|
*/
|
|
25
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-
|
|
25
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.112.0-36';
|
|
26
26
|
/**
|
|
27
27
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
28
28
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -32,16 +32,20 @@
|
|
|
32
32
|
* Trims string from all 4 sides
|
|
33
33
|
*
|
|
34
34
|
* Note: This is a re-exported function from the `spacetrim` package which is
|
|
35
|
-
*
|
|
35
|
+
* Developed by same author @hejny as this package
|
|
36
36
|
*
|
|
37
|
-
* @public exported from `@promptbook/utils`
|
|
38
37
|
* @see https://github.com/hejny/spacetrim#usage
|
|
38
|
+
*
|
|
39
|
+
* @public exported from `@promptbook/utils`
|
|
39
40
|
*/
|
|
40
41
|
const spaceTrim = spacetrim.spaceTrim;
|
|
41
42
|
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Class implementing take chain.
|
|
45
|
+
*
|
|
44
46
|
* @de
|
|
47
|
+
*
|
|
48
|
+
* @private util of `@promptbook/color`
|
|
45
49
|
*/
|
|
46
50
|
class TakeChain {
|
|
47
51
|
constructor(value) {
|
|
@@ -58,9 +62,9 @@
|
|
|
58
62
|
*
|
|
59
63
|
* @param {*} initialValue - The initial value.
|
|
60
64
|
* @returns {Proxy<WithTake<TValue>>} - A proxy object with a `take` method.
|
|
65
|
+
* @deprecated [🤡] Use some better functional library instead of `TakeChain`
|
|
61
66
|
*
|
|
62
67
|
* @private util of `@promptbook/color`
|
|
63
|
-
* @deprecated [🤡] Use some better functional library instead of `TakeChain`
|
|
64
68
|
*/
|
|
65
69
|
function take(initialValue) {
|
|
66
70
|
if (initialValue instanceof TakeChain) {
|
|
@@ -238,9 +242,7 @@
|
|
|
238
242
|
yellow: '#ffff00',
|
|
239
243
|
yellowgreen: '#9acd32',
|
|
240
244
|
};
|
|
241
|
-
|
|
242
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
243
|
-
*/
|
|
245
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
244
246
|
|
|
245
247
|
/**
|
|
246
248
|
* Validates that a channel value is a valid number within the range of 0 to 255.
|
|
@@ -270,7 +272,13 @@
|
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
|
|
275
|
+
/**
|
|
276
|
+
* Constant for short hex lengths.
|
|
277
|
+
*/
|
|
273
278
|
const SHORT_HEX_LENGTHS = new Set([3, 4]);
|
|
279
|
+
/**
|
|
280
|
+
* Constant for long hex lengths.
|
|
281
|
+
*/
|
|
274
282
|
const LONG_HEX_LENGTHS = new Set([6, 8]);
|
|
275
283
|
/**
|
|
276
284
|
* Parses a hex string into RGBA channel values.
|
|
@@ -303,6 +311,9 @@
|
|
|
303
311
|
}
|
|
304
312
|
return throwInvalidHex();
|
|
305
313
|
}
|
|
314
|
+
/**
|
|
315
|
+
* Parses short hex channel.
|
|
316
|
+
*/
|
|
306
317
|
function parseShortHexChannel(char, onError) {
|
|
307
318
|
if (!char) {
|
|
308
319
|
return onError();
|
|
@@ -313,6 +324,9 @@
|
|
|
313
324
|
}
|
|
314
325
|
return parsed * 16;
|
|
315
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Parses long hex channel.
|
|
329
|
+
*/
|
|
316
330
|
function parseLongHexChannel(hex, start, onError) {
|
|
317
331
|
const segment = hex.substr(start, 2);
|
|
318
332
|
if (segment.length < 2) {
|
|
@@ -325,6 +339,9 @@
|
|
|
325
339
|
return parsed;
|
|
326
340
|
}
|
|
327
341
|
|
|
342
|
+
/**
|
|
343
|
+
* Pattern matching hsl.
|
|
344
|
+
*/
|
|
328
345
|
const HSL_REGEX = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
|
|
329
346
|
/**
|
|
330
347
|
* Parses an HSL string into RGBA channel values.
|
|
@@ -350,6 +367,9 @@
|
|
|
350
367
|
alpha: 255,
|
|
351
368
|
};
|
|
352
369
|
}
|
|
370
|
+
/**
|
|
371
|
+
* Handles convert hsl to Rgb.
|
|
372
|
+
*/
|
|
353
373
|
function convertHslToRgb(h, s, l) {
|
|
354
374
|
const c = (1 - Math.abs(2 * l - 1)) * s;
|
|
355
375
|
const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
|
|
@@ -388,7 +408,13 @@
|
|
|
388
408
|
};
|
|
389
409
|
}
|
|
390
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Pattern matching RGB.
|
|
413
|
+
*/
|
|
391
414
|
const RGB_REGEX = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
415
|
+
/**
|
|
416
|
+
* Pattern matching rgba.
|
|
417
|
+
*/
|
|
392
418
|
const RGBA_REGEX = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
393
419
|
/**
|
|
394
420
|
* Parses an RGB string into RGBA channel values.
|
|
@@ -430,6 +456,9 @@
|
|
|
430
456
|
alpha: parseAlphaValue(match[4]),
|
|
431
457
|
};
|
|
432
458
|
}
|
|
459
|
+
/**
|
|
460
|
+
* Parses channel value.
|
|
461
|
+
*/
|
|
433
462
|
function parseChannelValue(value) {
|
|
434
463
|
if (value.endsWith('%')) {
|
|
435
464
|
const percent = parseFloat(value);
|
|
@@ -437,6 +466,9 @@
|
|
|
437
466
|
}
|
|
438
467
|
return Math.round(parseFloat(value));
|
|
439
468
|
}
|
|
469
|
+
/**
|
|
470
|
+
* Parses alpha value.
|
|
471
|
+
*/
|
|
440
472
|
function parseAlphaValue(value) {
|
|
441
473
|
if (value.endsWith('%')) {
|
|
442
474
|
const percent = parseFloat(value);
|
|
@@ -449,8 +481,17 @@
|
|
|
449
481
|
return Math.round(parsed);
|
|
450
482
|
}
|
|
451
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Pattern matching hsl regex.
|
|
486
|
+
*/
|
|
452
487
|
const HSL_REGEX_PATTERN = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
|
|
488
|
+
/**
|
|
489
|
+
* Pattern matching RGB regex.
|
|
490
|
+
*/
|
|
453
491
|
const RGB_REGEX_PATTERN = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
492
|
+
/**
|
|
493
|
+
* Pattern matching rgba regex.
|
|
494
|
+
*/
|
|
454
495
|
const RGBA_REGEX_PATTERN = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
|
|
455
496
|
/**
|
|
456
497
|
* Color object represents an RGB color with alpha channel
|
|
@@ -816,9 +857,7 @@
|
|
|
816
857
|
}
|
|
817
858
|
return [Math.round(red * 255), Math.round(green * 255), Math.round(blue * 255)];
|
|
818
859
|
}
|
|
819
|
-
|
|
820
|
-
* TODO: Properly name all used internal variables
|
|
821
|
-
*/
|
|
860
|
+
// TODO: Properly name all used internal variables
|
|
822
861
|
|
|
823
862
|
/**
|
|
824
863
|
* Converts RGB values to HSL values
|
|
@@ -864,9 +903,7 @@
|
|
|
864
903
|
}
|
|
865
904
|
return [hue, saturation, lightness];
|
|
866
905
|
}
|
|
867
|
-
|
|
868
|
-
* TODO: Properly name all used internal variables
|
|
869
|
-
*/
|
|
906
|
+
// TODO: Properly name all used internal variables
|
|
870
907
|
|
|
871
908
|
/**
|
|
872
909
|
* Makes color transformer which lighten the given color
|
|
@@ -884,9 +921,7 @@
|
|
|
884
921
|
return Color.fromValues(r, g, b, alpha);
|
|
885
922
|
};
|
|
886
923
|
}
|
|
887
|
-
|
|
888
|
-
* TODO: Maybe implement by mix+hsl
|
|
889
|
-
*/
|
|
924
|
+
// TODO: Maybe implement by mix+hsl
|
|
890
925
|
|
|
891
926
|
/**
|
|
892
927
|
* Makes color transformer which saturate the given color
|
|
@@ -904,9 +939,7 @@
|
|
|
904
939
|
return Color.fromValues(r, g, b, alpha);
|
|
905
940
|
};
|
|
906
941
|
}
|
|
907
|
-
|
|
908
|
-
* TODO: Maybe implement by mix+hsl
|
|
909
|
-
*/
|
|
942
|
+
// TODO: Maybe implement by mix+hsl
|
|
910
943
|
|
|
911
944
|
/**
|
|
912
945
|
* Name for the Promptbook
|
|
@@ -1030,6 +1063,7 @@
|
|
|
1030
1063
|
* Orders JSON object by keys
|
|
1031
1064
|
*
|
|
1032
1065
|
* @returns The same type of object as the input re-ordered
|
|
1066
|
+
*
|
|
1033
1067
|
* @public exported from `@promptbook/utils`
|
|
1034
1068
|
*/
|
|
1035
1069
|
function orderJson(options) {
|
|
@@ -1048,6 +1082,7 @@
|
|
|
1048
1082
|
* Note: This function mutates the object and returns the original (but mutated-deep-freezed) object
|
|
1049
1083
|
*
|
|
1050
1084
|
* @returns The same object as the input, but deeply frozen
|
|
1085
|
+
*
|
|
1051
1086
|
* @public exported from `@promptbook/utils`
|
|
1052
1087
|
*/
|
|
1053
1088
|
function $deepFreeze(objectValue) {
|
|
@@ -1064,9 +1099,7 @@
|
|
|
1064
1099
|
Object.freeze(objectValue);
|
|
1065
1100
|
return objectValue;
|
|
1066
1101
|
}
|
|
1067
|
-
|
|
1068
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1069
|
-
*/
|
|
1102
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1070
1103
|
|
|
1071
1104
|
/**
|
|
1072
1105
|
* Make error report URL for the given error
|
|
@@ -1202,6 +1235,7 @@
|
|
|
1202
1235
|
* - And much more...
|
|
1203
1236
|
*
|
|
1204
1237
|
* @throws UnexpectedError if the value is not serializable as JSON
|
|
1238
|
+
*
|
|
1205
1239
|
* @public exported from `@promptbook/utils`
|
|
1206
1240
|
*/
|
|
1207
1241
|
function checkSerializableAsJson(options) {
|
|
@@ -1316,11 +1350,9 @@
|
|
|
1316
1350
|
`));
|
|
1317
1351
|
}
|
|
1318
1352
|
}
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
* Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
|
|
1323
|
-
*/
|
|
1353
|
+
// TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
|
|
1354
|
+
// TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
|
|
1355
|
+
// Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
|
|
1324
1356
|
|
|
1325
1357
|
/**
|
|
1326
1358
|
* Creates a deep clone of the given object
|
|
@@ -1330,6 +1362,7 @@
|
|
|
1330
1362
|
*
|
|
1331
1363
|
* @param objectValue The object to clone.
|
|
1332
1364
|
* @returns A deep, writable clone of the input object.
|
|
1365
|
+
*
|
|
1333
1366
|
* @public exported from `@promptbook/utils`
|
|
1334
1367
|
*/
|
|
1335
1368
|
function deepClone(objectValue) {
|
|
@@ -1346,9 +1379,7 @@
|
|
|
1346
1379
|
> return Object.assign({}, objectValue);
|
|
1347
1380
|
*/
|
|
1348
1381
|
}
|
|
1349
|
-
|
|
1350
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1351
|
-
*/
|
|
1382
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1352
1383
|
|
|
1353
1384
|
/**
|
|
1354
1385
|
* Utility to export a JSON object from a function
|
|
@@ -1361,6 +1392,7 @@
|
|
|
1361
1392
|
* Note: This function does not mutates the given object
|
|
1362
1393
|
*
|
|
1363
1394
|
* @returns The same type of object as the input but read-only and re-ordered
|
|
1395
|
+
*
|
|
1364
1396
|
* @public exported from `@promptbook/utils`
|
|
1365
1397
|
*/
|
|
1366
1398
|
function exportJson(options) {
|
|
@@ -1380,9 +1412,7 @@
|
|
|
1380
1412
|
$deepFreeze(orderedValue);
|
|
1381
1413
|
return orderedValue;
|
|
1382
1414
|
}
|
|
1383
|
-
|
|
1384
|
-
* TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1385
|
-
*/
|
|
1415
|
+
// TODO: [🧠] Is there a way how to meaningfully test this utility
|
|
1386
1416
|
|
|
1387
1417
|
/**
|
|
1388
1418
|
* Nonce which is used for replacing things in strings
|
|
@@ -1422,9 +1452,7 @@
|
|
|
1422
1452
|
// <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
|
|
1423
1453
|
],
|
|
1424
1454
|
});
|
|
1425
|
-
|
|
1426
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1427
|
-
*/
|
|
1455
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1428
1456
|
|
|
1429
1457
|
/**
|
|
1430
1458
|
* Normalizes a given text to camelCase format.
|
|
@@ -1436,6 +1464,7 @@
|
|
|
1436
1464
|
* @returns The camelCase formatted string.
|
|
1437
1465
|
* @example 'helloWorld'
|
|
1438
1466
|
* @example 'iLovePromptbook'
|
|
1467
|
+
*
|
|
1439
1468
|
* @public exported from `@promptbook/utils`
|
|
1440
1469
|
*/
|
|
1441
1470
|
function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
|
|
@@ -1476,14 +1505,13 @@
|
|
|
1476
1505
|
}
|
|
1477
1506
|
return normalizedName;
|
|
1478
1507
|
}
|
|
1479
|
-
|
|
1480
|
-
* TODO: [🌺] Use some intermediate util splitWords
|
|
1481
|
-
*/
|
|
1508
|
+
// TODO: [🌺] Use some intermediate util splitWords
|
|
1482
1509
|
|
|
1483
1510
|
/**
|
|
1484
1511
|
* Tests if given string is valid file path.
|
|
1485
1512
|
*
|
|
1486
1513
|
* Note: This does not check if the file exists only if the path is valid
|
|
1514
|
+
*
|
|
1487
1515
|
* @public exported from `@promptbook/utils`
|
|
1488
1516
|
*/
|
|
1489
1517
|
function isValidFilePath(filename) {
|
|
@@ -1532,9 +1560,7 @@
|
|
|
1532
1560
|
}
|
|
1533
1561
|
return false;
|
|
1534
1562
|
}
|
|
1535
|
-
|
|
1536
|
-
* TODO: [🍏] Implement for MacOs
|
|
1537
|
-
*/
|
|
1563
|
+
// TODO: [🍏] Implement for MacOs
|
|
1538
1564
|
|
|
1539
1565
|
/**
|
|
1540
1566
|
* Tests if given string is valid URL.
|
|
@@ -1567,6 +1593,9 @@
|
|
|
1567
1593
|
}
|
|
1568
1594
|
}
|
|
1569
1595
|
|
|
1596
|
+
/**
|
|
1597
|
+
* Collection of default diacritics removal map.
|
|
1598
|
+
*/
|
|
1570
1599
|
const defaultDiacriticsRemovalMap = [
|
|
1571
1600
|
{
|
|
1572
1601
|
base: 'A',
|
|
@@ -1818,6 +1847,7 @@
|
|
|
1818
1847
|
*
|
|
1819
1848
|
* @param input The string containing diacritics to be normalized.
|
|
1820
1849
|
* @returns The string with diacritics removed or normalized.
|
|
1850
|
+
*
|
|
1821
1851
|
* @public exported from `@promptbook/utils`
|
|
1822
1852
|
*/
|
|
1823
1853
|
function removeDiacritics(input) {
|
|
@@ -1826,9 +1856,7 @@
|
|
|
1826
1856
|
return DIACRITIC_VARIANTS_LETTERS[character] || character;
|
|
1827
1857
|
});
|
|
1828
1858
|
}
|
|
1829
|
-
|
|
1830
|
-
* TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
|
|
1831
|
-
*/
|
|
1859
|
+
// TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
|
|
1832
1860
|
|
|
1833
1861
|
/**
|
|
1834
1862
|
* Converts a given text to kebab-case format.
|
|
@@ -1839,6 +1867,7 @@
|
|
|
1839
1867
|
* @returns The kebab-case formatted string.
|
|
1840
1868
|
* @example 'hello-world'
|
|
1841
1869
|
* @example 'i-love-promptbook'
|
|
1870
|
+
*
|
|
1842
1871
|
* @public exported from `@promptbook/utils`
|
|
1843
1872
|
*/
|
|
1844
1873
|
function normalizeToKebabCase(text) {
|
|
@@ -1879,9 +1908,7 @@
|
|
|
1879
1908
|
normalizedName = normalizedName.replace(/-$/, '');
|
|
1880
1909
|
return normalizedName;
|
|
1881
1910
|
}
|
|
1882
|
-
|
|
1883
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1884
|
-
*/
|
|
1911
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
1885
1912
|
|
|
1886
1913
|
/**
|
|
1887
1914
|
* Removes emojis from a string and fix whitespaces
|
|
@@ -1890,6 +1917,7 @@
|
|
|
1890
1917
|
*
|
|
1891
1918
|
* @param text with emojis
|
|
1892
1919
|
* @returns text without emojis
|
|
1920
|
+
*
|
|
1893
1921
|
* @public exported from `@promptbook/utils`
|
|
1894
1922
|
*/
|
|
1895
1923
|
function removeEmojis(text) {
|
|
@@ -1909,6 +1937,7 @@
|
|
|
1909
1937
|
* @param value The title string to be converted to a name.
|
|
1910
1938
|
* @returns A normalized name derived from the input title.
|
|
1911
1939
|
* @example 'Hello World!' -> 'hello-world'
|
|
1940
|
+
*
|
|
1912
1941
|
* @public exported from `@promptbook/utils`
|
|
1913
1942
|
*/
|
|
1914
1943
|
function titleToName(value) {
|
|
@@ -2027,13 +2056,11 @@
|
|
|
2027
2056
|
`);
|
|
2028
2057
|
return promptbookMermaid;
|
|
2029
2058
|
}
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
* TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
2036
|
-
*/
|
|
2059
|
+
// TODO: [🧠] FOREACH in mermaid graph
|
|
2060
|
+
// TODO: [🧠] Knowledge in mermaid graph
|
|
2061
|
+
// TODO: [🧠] Personas in mermaid graph
|
|
2062
|
+
// TODO: Maybe use some Mermaid package instead of string templating
|
|
2063
|
+
// TODO: [🕌] When more than 2 functionalities, split into separate functions
|
|
2037
2064
|
|
|
2038
2065
|
/**
|
|
2039
2066
|
* This error indicates problems parsing the format value
|
|
@@ -2116,9 +2143,7 @@
|
|
|
2116
2143
|
Object.setPrototypeOf(this, DatabaseError.prototype);
|
|
2117
2144
|
}
|
|
2118
2145
|
}
|
|
2119
|
-
|
|
2120
|
-
* TODO: [🐱🚀] Explain that NotFoundError ([🐱🚀] and other specific errors) has priority over DatabaseError in some contexts
|
|
2121
|
-
*/
|
|
2146
|
+
// TODO: [🐱🚀] Explain that NotFoundError ([🐱🚀] and other specific errors) has priority over DatabaseError in some contexts
|
|
2122
2147
|
|
|
2123
2148
|
/**
|
|
2124
2149
|
* This error type indicates that you try to use a feature that is not available in the current environment
|
|
@@ -2136,10 +2161,11 @@
|
|
|
2136
2161
|
/**
|
|
2137
2162
|
* This error occurs when some expectation is not met in the execution of the pipeline
|
|
2138
2163
|
*
|
|
2139
|
-
* @public exported from `@promptbook/core`
|
|
2140
2164
|
* Note: Do not throw this error, its reserved for `checkExpectations` and `createPipelineExecutor` and public ONLY to be serializable through remote server
|
|
2141
2165
|
* Note: Always thrown in `checkExpectations` and catched in `createPipelineExecutor` and rethrown as `PipelineExecutionError`
|
|
2142
2166
|
* Note: This is a kindof subtype of PipelineExecutionError
|
|
2167
|
+
*
|
|
2168
|
+
* @public exported from `@promptbook/core`
|
|
2143
2169
|
*/
|
|
2144
2170
|
class ExpectError extends Error {
|
|
2145
2171
|
constructor(message) {
|
|
@@ -2254,9 +2280,7 @@
|
|
|
2254
2280
|
Object.setPrototypeOf(this, ParseError.prototype);
|
|
2255
2281
|
}
|
|
2256
2282
|
}
|
|
2257
|
-
|
|
2258
|
-
* TODO: Maybe split `ParseError` and `ApplyError`
|
|
2259
|
-
*/
|
|
2283
|
+
// TODO: Maybe split `ParseError` and `ApplyError`
|
|
2260
2284
|
|
|
2261
2285
|
/**
|
|
2262
2286
|
* Generates random token
|
|
@@ -2264,16 +2288,15 @@
|
|
|
2264
2288
|
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
|
|
2265
2289
|
* Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
|
|
2266
2290
|
*
|
|
2267
|
-
* @private internal helper function
|
|
2268
2291
|
* @returns secure random token
|
|
2292
|
+
*
|
|
2293
|
+
* @private internal helper function
|
|
2269
2294
|
*/
|
|
2270
2295
|
function $randomToken(randomness) {
|
|
2271
2296
|
return crypto.randomBytes(randomness).toString('hex');
|
|
2272
2297
|
}
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
* TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2276
|
-
*/
|
|
2298
|
+
// TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
|
|
2299
|
+
// TODO: Maybe use nanoid instead https://github.com/ai/nanoid
|
|
2277
2300
|
|
|
2278
2301
|
/**
|
|
2279
2302
|
* This error indicates errors during the execution of the pipeline
|
|
@@ -2290,9 +2313,7 @@
|
|
|
2290
2313
|
Object.setPrototypeOf(this, PipelineExecutionError.prototype);
|
|
2291
2314
|
}
|
|
2292
2315
|
}
|
|
2293
|
-
|
|
2294
|
-
* TODO: [🧠][🌂] Add id to all errors
|
|
2295
|
-
*/
|
|
2316
|
+
// TODO: [🧠][🌂] Add id to all errors
|
|
2296
2317
|
|
|
2297
2318
|
/**
|
|
2298
2319
|
* This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
|
|
@@ -2394,9 +2415,7 @@
|
|
|
2394
2415
|
...PROMPTBOOK_ERRORS,
|
|
2395
2416
|
...COMMON_JAVASCRIPT_ERRORS,
|
|
2396
2417
|
};
|
|
2397
|
-
|
|
2398
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2399
|
-
*/
|
|
2418
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
2400
2419
|
|
|
2401
2420
|
/**
|
|
2402
2421
|
* Deserializes the error object
|
|
@@ -2459,8 +2478,9 @@
|
|
|
2459
2478
|
* @param array - Array to iterate over
|
|
2460
2479
|
* @param options - Options for the function
|
|
2461
2480
|
* @param callbackfunction - Function to call for each item
|
|
2462
|
-
* @public exported from `@promptbook/utils`
|
|
2463
2481
|
* @deprecated [🪂] Use queues instead
|
|
2482
|
+
*
|
|
2483
|
+
* @public exported from `@promptbook/utils`
|
|
2464
2484
|
*/
|
|
2465
2485
|
async function forEachAsync(array, options, callbackfunction) {
|
|
2466
2486
|
const { maxParallelCount = Infinity } = options;
|
|
@@ -2619,8 +2639,8 @@
|
|
|
2619
2639
|
* This is useful and used in the `templateParameters` function
|
|
2620
2640
|
*
|
|
2621
2641
|
* Note: This function is not just calling `toString` method
|
|
2622
|
-
*
|
|
2623
|
-
*
|
|
2642
|
+
* It's more complex and can handle this conversion specifically for LLM models
|
|
2643
|
+
* See `VALUE_STRINGS`
|
|
2624
2644
|
*
|
|
2625
2645
|
* Note: There are 2 similar functions
|
|
2626
2646
|
* - `valueToString` converts value to string for LLM models as human-readable string
|
|
@@ -2671,12 +2691,13 @@
|
|
|
2671
2691
|
* Replaces parameters in template with values from parameters object
|
|
2672
2692
|
*
|
|
2673
2693
|
* Note: This function is not places strings into string,
|
|
2674
|
-
*
|
|
2694
|
+
* It's more complex and can handle this operation specifically for LLM models
|
|
2675
2695
|
*
|
|
2676
2696
|
* @param template the template with parameters in {curly} braces
|
|
2677
2697
|
* @param parameters the object with parameters
|
|
2678
2698
|
* @returns the template with replaced parameters
|
|
2679
2699
|
* @throws {PipelineExecutionError} if parameter is not defined, not closed, or not opened
|
|
2700
|
+
*
|
|
2680
2701
|
* @public exported from `@promptbook/utils`
|
|
2681
2702
|
*/
|
|
2682
2703
|
function templateParameters(template, parameters) {
|
|
@@ -2760,6 +2781,7 @@
|
|
|
2760
2781
|
* Normalizes a JSON string so it can be safely rendered without double escaping.
|
|
2761
2782
|
*
|
|
2762
2783
|
* @param value Candidate JSON string.
|
|
2784
|
+
*
|
|
2763
2785
|
* @private function of ParameterEscaping
|
|
2764
2786
|
*/
|
|
2765
2787
|
function normalizeJsonString(value) {
|
|
@@ -2774,6 +2796,7 @@
|
|
|
2774
2796
|
* Hides brackets in a string to avoid confusion with template parameters.
|
|
2775
2797
|
*
|
|
2776
2798
|
* @param value Input string with literal brackets.
|
|
2799
|
+
*
|
|
2777
2800
|
* @private function of ParameterEscaping
|
|
2778
2801
|
*/
|
|
2779
2802
|
function hideBrackets(value) {
|
|
@@ -2783,6 +2806,7 @@
|
|
|
2783
2806
|
* Restores hidden brackets.
|
|
2784
2807
|
*
|
|
2785
2808
|
* @param value String with hidden brackets.
|
|
2809
|
+
*
|
|
2786
2810
|
* @private function of ParameterEscaping
|
|
2787
2811
|
*/
|
|
2788
2812
|
function restoreBrackets(value) {
|
|
@@ -2792,6 +2816,7 @@
|
|
|
2792
2816
|
* Decides whether a parameter can be inlined safely.
|
|
2793
2817
|
*
|
|
2794
2818
|
* @param value Parameter rendered as string.
|
|
2819
|
+
*
|
|
2795
2820
|
* @private function of ParameterEscaping
|
|
2796
2821
|
*/
|
|
2797
2822
|
function shouldInlineParameterValue(value) {
|
|
@@ -2805,6 +2830,7 @@
|
|
|
2805
2830
|
*
|
|
2806
2831
|
* @param value Parameter value to escape.
|
|
2807
2832
|
* @param options Escape options for additional characters.
|
|
2833
|
+
*
|
|
2808
2834
|
* @private function of ParameterEscaping
|
|
2809
2835
|
*/
|
|
2810
2836
|
function escapePromptParameterValue(value, options) {
|
|
@@ -2830,6 +2856,7 @@
|
|
|
2830
2856
|
* Builds numeric parameter names (1, 2, ...).
|
|
2831
2857
|
*
|
|
2832
2858
|
* @param index Zero-based parameter index.
|
|
2859
|
+
*
|
|
2833
2860
|
* @private function of ParameterNaming
|
|
2834
2861
|
*/
|
|
2835
2862
|
function buildNumericParameterName(index) {
|
|
@@ -2839,6 +2866,7 @@
|
|
|
2839
2866
|
* Builds alphabetic parameter names (a, b, ..., aa).
|
|
2840
2867
|
*
|
|
2841
2868
|
* @param index Zero-based parameter index.
|
|
2869
|
+
*
|
|
2842
2870
|
* @private function of ParameterNaming
|
|
2843
2871
|
*/
|
|
2844
2872
|
function buildAlphabeticParameterName(index) {
|
|
@@ -2855,6 +2883,7 @@
|
|
|
2855
2883
|
* Converts a positive integer into a Roman numeral string.
|
|
2856
2884
|
*
|
|
2857
2885
|
* @param value Positive integer value.
|
|
2886
|
+
*
|
|
2858
2887
|
* @private function of ParameterNaming
|
|
2859
2888
|
*/
|
|
2860
2889
|
function toRomanNumeral(value) {
|
|
@@ -2887,6 +2916,7 @@
|
|
|
2887
2916
|
* Builds Roman numeral parameter names (I, II, ...).
|
|
2888
2917
|
*
|
|
2889
2918
|
* @param index Zero-based parameter index.
|
|
2919
|
+
*
|
|
2890
2920
|
* @private function of ParameterNaming
|
|
2891
2921
|
*/
|
|
2892
2922
|
function buildRomanParameterName(index) {
|
|
@@ -2897,6 +2927,7 @@
|
|
|
2897
2927
|
*
|
|
2898
2928
|
* @param prefix Prefix string.
|
|
2899
2929
|
* @param builder Base builder function.
|
|
2930
|
+
*
|
|
2900
2931
|
* @private function of ParameterNaming
|
|
2901
2932
|
*/
|
|
2902
2933
|
function buildPrefixedParameterName(prefix, builder) {
|
|
@@ -2918,6 +2949,7 @@
|
|
|
2918
2949
|
* Collects bracketed tokens from parameter values to avoid placeholder collisions.
|
|
2919
2950
|
*
|
|
2920
2951
|
* @param values Parameter values to scan.
|
|
2952
|
+
*
|
|
2921
2953
|
* @private function of ParameterNaming
|
|
2922
2954
|
*/
|
|
2923
2955
|
function collectBracketedParameterTokens(values) {
|
|
@@ -2938,6 +2970,7 @@
|
|
|
2938
2970
|
* Builds placeholder names while avoiding collisions with parameter content.
|
|
2939
2971
|
*
|
|
2940
2972
|
* @param values Parameter values to scan for conflicting tokens.
|
|
2973
|
+
*
|
|
2941
2974
|
* @private function of ParameterNaming
|
|
2942
2975
|
*/
|
|
2943
2976
|
function buildParameterNames(values) {
|
|
@@ -2968,6 +3001,7 @@
|
|
|
2968
3001
|
* Formats the placeholder used in the prompt body for a parameter.
|
|
2969
3002
|
*
|
|
2970
3003
|
* @param name Parameter placeholder name.
|
|
3004
|
+
*
|
|
2971
3005
|
* @private function of ParameterSection
|
|
2972
3006
|
*/
|
|
2973
3007
|
function formatParameterPlaceholder(name) {
|
|
@@ -2977,6 +3011,7 @@
|
|
|
2977
3011
|
* Formats a single line entry for structured parameters.
|
|
2978
3012
|
*
|
|
2979
3013
|
* @param item Parameter entry data.
|
|
3014
|
+
*
|
|
2980
3015
|
* @private function of ParameterSection
|
|
2981
3016
|
*/
|
|
2982
3017
|
function formatParameterListItem(item) {
|
|
@@ -2988,6 +3023,7 @@
|
|
|
2988
3023
|
* Builds the structured parameters section appended to the prompt.
|
|
2989
3024
|
*
|
|
2990
3025
|
* @param items Parameter entries to include.
|
|
3026
|
+
*
|
|
2991
3027
|
* @private function of ParameterSection
|
|
2992
3028
|
*/
|
|
2993
3029
|
function buildParametersSection(items) {
|
|
@@ -3063,6 +3099,7 @@
|
|
|
3063
3099
|
* @param strings
|
|
3064
3100
|
* @param values
|
|
3065
3101
|
* @returns prompt content wrapped as a PromptString
|
|
3102
|
+
*
|
|
3066
3103
|
* @public exported from `@promptbook/utils`
|
|
3067
3104
|
*/
|
|
3068
3105
|
function prompt(strings, ...values) {
|
|
@@ -3156,14 +3193,13 @@
|
|
|
3156
3193
|
* 3) `book` for notating and validating entire books exported from `@promptbook/utils`
|
|
3157
3194
|
*
|
|
3158
3195
|
* @alias prompt
|
|
3196
|
+
*
|
|
3159
3197
|
* @public exported from `@promptbook/utils`
|
|
3160
3198
|
*/
|
|
3161
3199
|
const promptTemplate = prompt;
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3166
|
-
*/
|
|
3200
|
+
// TODO: Maybe split into multiple files
|
|
3201
|
+
// TODO: [🧠][🈴] Where is the best location for this file
|
|
3202
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3167
3203
|
|
|
3168
3204
|
/**
|
|
3169
3205
|
* @@@
|
|
@@ -3259,9 +3295,7 @@
|
|
|
3259
3295
|
const value = normalizedHeaders.get(CLIENT_VERSION_HEADER);
|
|
3260
3296
|
return value ? value.trim() : null;
|
|
3261
3297
|
}
|
|
3262
|
-
|
|
3263
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3264
|
-
*/
|
|
3298
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3265
3299
|
|
|
3266
3300
|
/**
|
|
3267
3301
|
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
@@ -3278,9 +3312,7 @@
|
|
|
3278
3312
|
return false;
|
|
3279
3313
|
}
|
|
3280
3314
|
}
|
|
3281
|
-
|
|
3282
|
-
* TODO: [🎺]
|
|
3283
|
-
*/
|
|
3315
|
+
// TODO: [🎺]
|
|
3284
3316
|
|
|
3285
3317
|
/**
|
|
3286
3318
|
* Detects if the code is running in jest environment
|
|
@@ -3298,9 +3330,7 @@
|
|
|
3298
3330
|
return false;
|
|
3299
3331
|
}
|
|
3300
3332
|
}
|
|
3301
|
-
|
|
3302
|
-
* TODO: [🎺]
|
|
3303
|
-
*/
|
|
3333
|
+
// TODO: [🎺]
|
|
3304
3334
|
|
|
3305
3335
|
/**
|
|
3306
3336
|
* Detects if the code is running in a Node.js environment
|
|
@@ -3317,9 +3347,7 @@
|
|
|
3317
3347
|
return false;
|
|
3318
3348
|
}
|
|
3319
3349
|
}
|
|
3320
|
-
|
|
3321
|
-
* TODO: [🎺]
|
|
3322
|
-
*/
|
|
3350
|
+
// TODO: [🎺]
|
|
3323
3351
|
|
|
3324
3352
|
/**
|
|
3325
3353
|
* Detects if the code is running in a web worker
|
|
@@ -3339,9 +3367,7 @@
|
|
|
3339
3367
|
return false;
|
|
3340
3368
|
}
|
|
3341
3369
|
}
|
|
3342
|
-
|
|
3343
|
-
* TODO: [🎺]
|
|
3344
|
-
*/
|
|
3370
|
+
// TODO: [🎺]
|
|
3345
3371
|
|
|
3346
3372
|
/**
|
|
3347
3373
|
* Returns information about the current runtime environment
|
|
@@ -3358,9 +3384,7 @@
|
|
|
3358
3384
|
isRunningInWebWorker: $isRunningInWebWorker(),
|
|
3359
3385
|
};
|
|
3360
3386
|
}
|
|
3361
|
-
|
|
3362
|
-
* TODO: [🎺] Also detect and report node version here
|
|
3363
|
-
*/
|
|
3387
|
+
// TODO: [🎺] Also detect and report node version here
|
|
3364
3388
|
|
|
3365
3389
|
/**
|
|
3366
3390
|
* Number of characters per standard line with 11pt Arial font size.
|
|
@@ -3374,10 +3398,8 @@
|
|
|
3374
3398
|
* @public exported from `@promptbook/utils`
|
|
3375
3399
|
*/
|
|
3376
3400
|
const LINES_PER_STANDARD_PAGE = 44;
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3380
|
-
*/
|
|
3401
|
+
// TODO: [🧠] Should be this `constants.ts` or `config.ts`?
|
|
3402
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3381
3403
|
|
|
3382
3404
|
/**
|
|
3383
3405
|
* Counts number of characters in the text
|
|
@@ -3393,10 +3415,8 @@
|
|
|
3393
3415
|
text = text.replace(/\p{Extended_Pictographic}(\u{200D}\p{Extended_Pictographic})*/gu, '-');
|
|
3394
3416
|
return text.length;
|
|
3395
3417
|
}
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3399
|
-
*/
|
|
3418
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3419
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3400
3420
|
|
|
3401
3421
|
/**
|
|
3402
3422
|
* Counts number of lines in the text
|
|
@@ -3414,10 +3434,8 @@
|
|
|
3414
3434
|
const lines = text.split(/\r?\n/);
|
|
3415
3435
|
return lines.reduce((count, line) => count + Math.max(Math.ceil(line.length / CHARACTERS_PER_STANDARD_LINE), 1), 0);
|
|
3416
3436
|
}
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3420
|
-
*/
|
|
3437
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3438
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3421
3439
|
|
|
3422
3440
|
/**
|
|
3423
3441
|
* Counts number of pages in the text
|
|
@@ -3429,10 +3447,8 @@
|
|
|
3429
3447
|
function countPages(text) {
|
|
3430
3448
|
return Math.ceil(countLines(text) / LINES_PER_STANDARD_PAGE);
|
|
3431
3449
|
}
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3435
|
-
*/
|
|
3450
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3451
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3436
3452
|
|
|
3437
3453
|
/**
|
|
3438
3454
|
* Counts number of paragraphs in the text
|
|
@@ -3442,10 +3458,8 @@
|
|
|
3442
3458
|
function countParagraphs(text) {
|
|
3443
3459
|
return text.split(/\n\s*\n/).filter((paragraph) => paragraph.trim() !== '').length;
|
|
3444
3460
|
}
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3448
|
-
*/
|
|
3461
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3462
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3449
3463
|
|
|
3450
3464
|
/**
|
|
3451
3465
|
* Split text into sentences
|
|
@@ -3463,10 +3477,8 @@
|
|
|
3463
3477
|
function countSentences(text) {
|
|
3464
3478
|
return splitIntoSentences(text).length;
|
|
3465
3479
|
}
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
* TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3469
|
-
*/
|
|
3480
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3481
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3470
3482
|
|
|
3471
3483
|
/**
|
|
3472
3484
|
* Counts number of words in the text
|
|
@@ -3480,11 +3492,9 @@
|
|
|
3480
3492
|
text = text.replace(/([a-z])([A-Z])/g, '$1 $2');
|
|
3481
3493
|
return text.split(/[^a-zа-я0-9]+/i).filter((word) => word.length > 0).length;
|
|
3482
3494
|
}
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
* TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
3487
|
-
*/
|
|
3495
|
+
// TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
|
|
3496
|
+
// TODO: [🧠][✌️] Make some Promptbook-native token system
|
|
3497
|
+
// TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
|
|
3488
3498
|
|
|
3489
3499
|
/**
|
|
3490
3500
|
* Index of all counter functions
|
|
@@ -3499,10 +3509,8 @@
|
|
|
3499
3509
|
LINES: countLines,
|
|
3500
3510
|
PAGES: countPages,
|
|
3501
3511
|
};
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3505
|
-
*/
|
|
3512
|
+
// TODO: [🧠][🤠] This should be probably as part of `TextFormatParser`
|
|
3513
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3506
3514
|
|
|
3507
3515
|
/**
|
|
3508
3516
|
* Computes SHA-256 hash of the given object
|
|
@@ -3512,9 +3520,7 @@
|
|
|
3512
3520
|
function computeHash(value) {
|
|
3513
3521
|
return cryptoJs.SHA256(hexEncoder__default["default"].parse(spacetrim.spaceTrim(valueToString(value)))).toString( /* hex */);
|
|
3514
3522
|
}
|
|
3515
|
-
|
|
3516
|
-
* TODO: [🥬][🥬] Use this ACRY
|
|
3517
|
-
*/
|
|
3523
|
+
// TODO: [🥬][🥬] Use this ACRY
|
|
3518
3524
|
|
|
3519
3525
|
/**
|
|
3520
3526
|
* Makes first letter of a string uppercase
|
|
@@ -3691,6 +3697,9 @@
|
|
|
3691
3697
|
'prvotní',
|
|
3692
3698
|
'hbitý',
|
|
3693
3699
|
];
|
|
3700
|
+
/**
|
|
3701
|
+
* Collection of nouns.
|
|
3702
|
+
*/
|
|
3694
3703
|
const NOUNS$1 = [
|
|
3695
3704
|
'jablko',
|
|
3696
3705
|
'nebe',
|
|
@@ -3904,6 +3913,9 @@
|
|
|
3904
3913
|
'okno',
|
|
3905
3914
|
'chodba',
|
|
3906
3915
|
];
|
|
3916
|
+
/**
|
|
3917
|
+
* Collection of verbs.
|
|
3918
|
+
*/
|
|
3907
3919
|
const VERBS$1 = [
|
|
3908
3920
|
'skáče',
|
|
3909
3921
|
'tančí',
|
|
@@ -4076,9 +4088,7 @@
|
|
|
4076
4088
|
noun: NOUNS$1,
|
|
4077
4089
|
verb: VERBS$1,
|
|
4078
4090
|
};
|
|
4079
|
-
|
|
4080
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4081
|
-
*/
|
|
4091
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4082
4092
|
|
|
4083
4093
|
/**
|
|
4084
4094
|
* @@@
|
|
@@ -4334,6 +4344,9 @@
|
|
|
4334
4344
|
'macro',
|
|
4335
4345
|
'mini',
|
|
4336
4346
|
];
|
|
4347
|
+
/**
|
|
4348
|
+
* Collection of nouns.
|
|
4349
|
+
*/
|
|
4337
4350
|
const NOUNS = [
|
|
4338
4351
|
'apple',
|
|
4339
4352
|
'sky',
|
|
@@ -4573,6 +4586,9 @@
|
|
|
4573
4586
|
'roof',
|
|
4574
4587
|
'floor',
|
|
4575
4588
|
];
|
|
4589
|
+
/**
|
|
4590
|
+
* Collection of verbs.
|
|
4591
|
+
*/
|
|
4576
4592
|
const VERBS = [
|
|
4577
4593
|
'jumping',
|
|
4578
4594
|
'dancing',
|
|
@@ -4768,9 +4784,7 @@
|
|
|
4768
4784
|
noun: NOUNS,
|
|
4769
4785
|
verb: VERBS,
|
|
4770
4786
|
};
|
|
4771
|
-
|
|
4772
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4773
|
-
*/
|
|
4787
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
4774
4788
|
|
|
4775
4789
|
/**
|
|
4776
4790
|
* Default language used for linguistic hashes.
|
|
@@ -4945,8 +4959,9 @@
|
|
|
4945
4959
|
/**
|
|
4946
4960
|
* Creates a human-readable hash as a short, story-like phrase.
|
|
4947
4961
|
*
|
|
4948
|
-
* @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
|
|
4949
4962
|
* {@link MIN_LINGUISTIC_HASH_WORD_COUNT}..{@link MAX_LINGUISTIC_HASH_WORD_COUNT})
|
|
4963
|
+
*
|
|
4964
|
+
* @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
|
|
4950
4965
|
* @param language optional language code (defaults to {@link DEFAULT_LINGUISTIC_HASH_LANGUAGE})
|
|
4951
4966
|
*
|
|
4952
4967
|
* @public exported from `@promptbook/utils`
|
|
@@ -4965,6 +4980,7 @@
|
|
|
4965
4980
|
* Note: `$` is used to indicate that this function is not a pure function - it is not deterministic because it depends on the current time
|
|
4966
4981
|
*
|
|
4967
4982
|
* @returns string_date branded type
|
|
4983
|
+
*
|
|
4968
4984
|
* @public exported from `@promptbook/utils`
|
|
4969
4985
|
*/
|
|
4970
4986
|
function $getCurrentDate() {
|
|
@@ -4972,6 +4988,8 @@
|
|
|
4972
4988
|
}
|
|
4973
4989
|
|
|
4974
4990
|
/**
|
|
4991
|
+
* Handles debounce.
|
|
4992
|
+
*
|
|
4975
4993
|
* @public exported from `@promptbook/utils`
|
|
4976
4994
|
*/
|
|
4977
4995
|
function debounce(fn, delay) {
|
|
@@ -5050,10 +5068,8 @@
|
|
|
5050
5068
|
}
|
|
5051
5069
|
return num;
|
|
5052
5070
|
}
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
* TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
|
|
5056
|
-
*/
|
|
5071
|
+
// TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
|
|
5072
|
+
// TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
|
|
5057
5073
|
|
|
5058
5074
|
/**
|
|
5059
5075
|
* Makes first letter of a string lowercase
|
|
@@ -5075,6 +5091,7 @@
|
|
|
5075
5091
|
* @returns The normalized text in SCREAMING_CASE format.
|
|
5076
5092
|
* @example 'HELLO_WORLD'
|
|
5077
5093
|
* @example 'I_LOVE_PROMPTBOOK'
|
|
5094
|
+
*
|
|
5078
5095
|
* @public exported from `@promptbook/utils`
|
|
5079
5096
|
*/
|
|
5080
5097
|
function normalizeTo_SCREAMING_CASE(text) {
|
|
@@ -5128,6 +5145,7 @@
|
|
|
5128
5145
|
*
|
|
5129
5146
|
* @param {string} input
|
|
5130
5147
|
* @returns {Set} of keywords without diacritics in lowercase
|
|
5148
|
+
*
|
|
5131
5149
|
* @public exported from `@promptbook/utils`
|
|
5132
5150
|
*/
|
|
5133
5151
|
function parseKeywordsFromString(input) {
|
|
@@ -5162,6 +5180,7 @@
|
|
|
5162
5180
|
* @param name The string to be converted to a URI-compatible format.
|
|
5163
5181
|
* @returns A URI-compatible string derived from the input name.
|
|
5164
5182
|
* @example 'Hello World' -> 'hello-world'
|
|
5183
|
+
*
|
|
5165
5184
|
* @public exported from `@promptbook/utils`
|
|
5166
5185
|
*/
|
|
5167
5186
|
function nameToUriPart(name) {
|
|
@@ -5180,6 +5199,7 @@
|
|
|
5180
5199
|
* @param name The name to be converted into URI parts.
|
|
5181
5200
|
* @returns An array of URI-compatible parts derived from the name.
|
|
5182
5201
|
* @example 'Example Name' -> ['example', 'name']
|
|
5202
|
+
*
|
|
5183
5203
|
* @public exported from `@promptbook/utils`
|
|
5184
5204
|
*/
|
|
5185
5205
|
function nameToUriParts(name) {
|
|
@@ -5209,6 +5229,7 @@
|
|
|
5209
5229
|
* @returns
|
|
5210
5230
|
* @example 'HelloWorld'
|
|
5211
5231
|
* @example 'ILovePromptbook'
|
|
5232
|
+
*
|
|
5212
5233
|
* @public exported from `@promptbook/utils`
|
|
5213
5234
|
*/
|
|
5214
5235
|
function normalizeTo_PascalCase(text) {
|
|
@@ -5224,6 +5245,7 @@
|
|
|
5224
5245
|
* @returns The normalized text in snake_case format.
|
|
5225
5246
|
* @example 'hello_world'
|
|
5226
5247
|
* @example 'i_love_promptbook'
|
|
5248
|
+
*
|
|
5227
5249
|
* @public exported from `@promptbook/utils`
|
|
5228
5250
|
*/
|
|
5229
5251
|
function normalizeTo_snake_case(text) {
|
|
@@ -5248,6 +5270,7 @@
|
|
|
5248
5270
|
*
|
|
5249
5271
|
* @param input of any kind
|
|
5250
5272
|
* @returns {Set} of keywords without diacritics in lowercase
|
|
5273
|
+
*
|
|
5251
5274
|
* @public exported from `@promptbook/utils`
|
|
5252
5275
|
*/
|
|
5253
5276
|
function parseKeywords(input) {
|
|
@@ -5269,10 +5292,8 @@
|
|
|
5269
5292
|
return new Set();
|
|
5270
5293
|
}
|
|
5271
5294
|
}
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
* TODO: [🌺] Use some intermediate util splitWords
|
|
5275
|
-
*/
|
|
5295
|
+
// Note: Not using spread in input param because of keeping second parameter for options
|
|
5296
|
+
// TODO: [🌺] Use some intermediate util splitWords
|
|
5276
5297
|
|
|
5277
5298
|
/**
|
|
5278
5299
|
* Removes quotes from a string
|
|
@@ -5286,6 +5307,7 @@
|
|
|
5286
5307
|
*
|
|
5287
5308
|
* @param text optionally quoted text
|
|
5288
5309
|
* @returns text without quotes
|
|
5310
|
+
*
|
|
5289
5311
|
* @public exported from `@promptbook/utils`
|
|
5290
5312
|
*/
|
|
5291
5313
|
function removeQuotes(text) {
|
|
@@ -5304,6 +5326,7 @@
|
|
|
5304
5326
|
* @param haystack
|
|
5305
5327
|
* @param needle
|
|
5306
5328
|
* @returns
|
|
5329
|
+
*
|
|
5307
5330
|
* @public exported from `@promptbook/utils`
|
|
5308
5331
|
*/
|
|
5309
5332
|
function searchKeywords(haystack, needle) {
|
|
@@ -5314,9 +5337,7 @@
|
|
|
5314
5337
|
}
|
|
5315
5338
|
return true;
|
|
5316
5339
|
}
|
|
5317
|
-
|
|
5318
|
-
* TODO: Rename to `isKeywordInKeywords`
|
|
5319
|
-
*/
|
|
5340
|
+
// TODO: Rename to `isKeywordInKeywords`
|
|
5320
5341
|
|
|
5321
5342
|
/**
|
|
5322
5343
|
* Adds suffix to the URL
|
|
@@ -5340,6 +5361,7 @@
|
|
|
5340
5361
|
*
|
|
5341
5362
|
* @param text optionally quoted text
|
|
5342
5363
|
* @returns text without quotes
|
|
5364
|
+
*
|
|
5343
5365
|
* @public exported from `@promptbook/utils`
|
|
5344
5366
|
*/
|
|
5345
5367
|
function unwrapResult(text, options) {
|
|
@@ -5414,15 +5436,14 @@
|
|
|
5414
5436
|
return processedText;
|
|
5415
5437
|
}
|
|
5416
5438
|
}
|
|
5417
|
-
|
|
5418
|
-
* TODO: [🧠] Should this also unwrap the (parenthesis)
|
|
5419
|
-
*/
|
|
5439
|
+
// TODO: [🧠] Should this also unwrap the (parenthesis)
|
|
5420
5440
|
|
|
5421
5441
|
/**
|
|
5422
5442
|
* Parses the task and returns the list of all parameter names
|
|
5423
5443
|
*
|
|
5424
5444
|
* @param template the string template with parameters in {curly} braces
|
|
5425
5445
|
* @returns the list of parameter names
|
|
5446
|
+
*
|
|
5426
5447
|
* @public exported from `@promptbook/utils`
|
|
5427
5448
|
*/
|
|
5428
5449
|
function extractParameterNames(template) {
|
|
@@ -5442,6 +5463,7 @@
|
|
|
5442
5463
|
*
|
|
5443
5464
|
* @param pipeline The pipeline to clone.
|
|
5444
5465
|
* @returns A new PipelineJson object with the same properties as the input.
|
|
5466
|
+
*
|
|
5445
5467
|
* @public exported from `@promptbook/utils`
|
|
5446
5468
|
*/
|
|
5447
5469
|
function clonePipeline(pipeline) {
|
|
@@ -5463,9 +5485,7 @@
|
|
|
5463
5485
|
sources,
|
|
5464
5486
|
};
|
|
5465
5487
|
}
|
|
5466
|
-
|
|
5467
|
-
* TODO: [🍙] Make some standard order of json properties
|
|
5468
|
-
*/
|
|
5488
|
+
// TODO: [🍙] Make some standard order of json properties
|
|
5469
5489
|
|
|
5470
5490
|
// <- TODO: Auto convert to type `import { ... } from 'type-fest';`
|
|
5471
5491
|
/**
|
|
@@ -5484,7 +5504,6 @@
|
|
|
5484
5504
|
* - `Symbol` objects are not serializable
|
|
5485
5505
|
* - And much more...
|
|
5486
5506
|
*
|
|
5487
|
-
*
|
|
5488
5507
|
* @public exported from `@promptbook/utils`
|
|
5489
5508
|
*/
|
|
5490
5509
|
function isSerializableAsJson(value) {
|
|
@@ -5496,14 +5515,12 @@
|
|
|
5496
5515
|
return false;
|
|
5497
5516
|
}
|
|
5498
5517
|
}
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
* TODO: [🧠][💺] Can be done this on type-level?
|
|
5502
|
-
*/
|
|
5518
|
+
// TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
|
|
5519
|
+
// TODO: [🧠][💺] Can be done this on type-level?
|
|
5503
5520
|
|
|
5504
5521
|
/**
|
|
5505
5522
|
* Recursively converts JSON strings to JSON objects
|
|
5506
|
-
|
|
5523
|
+
*
|
|
5507
5524
|
* @public exported from `@promptbook/utils`
|
|
5508
5525
|
*/
|
|
5509
5526
|
function jsonStringsToJsons(object) {
|
|
@@ -5527,9 +5544,7 @@
|
|
|
5527
5544
|
}
|
|
5528
5545
|
return newObject;
|
|
5529
5546
|
}
|
|
5530
|
-
|
|
5531
|
-
* TODO: Type the return type correctly
|
|
5532
|
-
*/
|
|
5547
|
+
// TODO: Type the return type correctly
|
|
5533
5548
|
|
|
5534
5549
|
/**
|
|
5535
5550
|
* Function `serializeToPromptbookJavascript` will serialize a value to a javascript representation using `@promptbook/*` entities where possible.
|
|
@@ -5589,14 +5604,13 @@
|
|
|
5589
5604
|
const uniqueImports = Array.from(new Set(imports)).filter((importStatement) => !!importStatement && importStatement.trim().length > 0);
|
|
5590
5605
|
return { imports: uniqueImports, value: serializedValue };
|
|
5591
5606
|
}
|
|
5592
|
-
|
|
5593
|
-
* TODO: Dynamic indentation passable through options in a second argument
|
|
5594
|
-
*/
|
|
5607
|
+
// TODO: Dynamic indentation passable through options in a second argument
|
|
5595
5608
|
|
|
5596
5609
|
/**
|
|
5597
5610
|
* Create difference set of two sets.
|
|
5598
5611
|
*
|
|
5599
5612
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5613
|
+
*
|
|
5600
5614
|
* @public exported from `@promptbook/utils`
|
|
5601
5615
|
*/
|
|
5602
5616
|
function difference(a, b, isEqual = (a, b) => a === b) {
|
|
@@ -5608,14 +5622,13 @@
|
|
|
5608
5622
|
}
|
|
5609
5623
|
return diff;
|
|
5610
5624
|
}
|
|
5611
|
-
|
|
5612
|
-
* TODO: [🧠][💯] Maybe also implement symmetricDifference
|
|
5613
|
-
*/
|
|
5625
|
+
// TODO: [🧠][💯] Maybe also implement symmetricDifference
|
|
5614
5626
|
|
|
5615
5627
|
/**
|
|
5616
5628
|
* Creates a new set with all elements that are present in all sets
|
|
5617
5629
|
*
|
|
5618
5630
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5631
|
+
*
|
|
5619
5632
|
* @public exported from `@promptbook/utils`
|
|
5620
5633
|
*/
|
|
5621
5634
|
function intersection(...sets) {
|
|
@@ -5641,6 +5654,7 @@
|
|
|
5641
5654
|
* Creates a new set with all elements that are present in either set
|
|
5642
5655
|
*
|
|
5643
5656
|
* @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
|
|
5657
|
+
*
|
|
5644
5658
|
* @public exported from `@promptbook/utils`
|
|
5645
5659
|
*/
|
|
5646
5660
|
function union(...sets) {
|
|
@@ -5672,6 +5686,7 @@
|
|
|
5672
5686
|
* Determines if the given path is a root path.
|
|
5673
5687
|
*
|
|
5674
5688
|
* Note: This does not check if the file exists only if the path is valid
|
|
5689
|
+
*
|
|
5675
5690
|
* @public exported from `@promptbook/utils`
|
|
5676
5691
|
*/
|
|
5677
5692
|
function isRootPath(value) {
|
|
@@ -5683,15 +5698,14 @@
|
|
|
5683
5698
|
}
|
|
5684
5699
|
return false;
|
|
5685
5700
|
}
|
|
5686
|
-
|
|
5687
|
-
* TODO: [🍏] Make for MacOS paths
|
|
5688
|
-
*/
|
|
5701
|
+
// TODO: [🍏] Make for MacOS paths
|
|
5689
5702
|
|
|
5690
5703
|
/**
|
|
5691
5704
|
* Checks if the given value is a valid JavaScript identifier name.
|
|
5692
5705
|
*
|
|
5693
5706
|
* @param javascriptName The value to check for JavaScript identifier validity.
|
|
5694
5707
|
* @returns `true` if the value is a valid JavaScript name, false otherwise.
|
|
5708
|
+
*
|
|
5695
5709
|
* @public exported from `@promptbook/utils`
|
|
5696
5710
|
*/
|
|
5697
5711
|
function isValidJavascriptName(javascriptName) {
|
|
@@ -5724,12 +5738,13 @@
|
|
|
5724
5738
|
* Tests if given string is valid promptbook version
|
|
5725
5739
|
* It looks into list of known promptbook versions.
|
|
5726
5740
|
*
|
|
5727
|
-
* @see https://www.npmjs.com/package/promptbook?activeTab=versions
|
|
5728
5741
|
* 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.
|
|
5729
5742
|
* Note: There are two similar functions:
|
|
5730
5743
|
* - `isValidSemanticVersion` which tests any semantic version
|
|
5731
5744
|
* - `isValidPromptbookVersion` *(this one)* which tests just Promptbook versions
|
|
5732
5745
|
*
|
|
5746
|
+
* @see https://www.npmjs.com/package/promptbook?activeTab=versions
|
|
5747
|
+
*
|
|
5733
5748
|
* @public exported from `@promptbook/utils`
|
|
5734
5749
|
*/
|
|
5735
5750
|
function isValidPromptbookVersion(version) {
|
|
@@ -5787,6 +5802,7 @@
|
|
|
5787
5802
|
* @param {string} url - The URL to check.
|
|
5788
5803
|
* @param {IsUrlOnPrivateNetworkOptions} options - Options for the check.
|
|
5789
5804
|
* @returns {boolean} Returns true if the IP address is reserved for private networks or localhost, otherwise false.
|
|
5805
|
+
*
|
|
5790
5806
|
* @public exported from `@promptbook/utils`
|
|
5791
5807
|
*/
|
|
5792
5808
|
function isUrlOnPrivateNetwork(url, options = {}) {
|
|
@@ -5825,9 +5841,7 @@
|
|
|
5825
5841
|
*/
|
|
5826
5842
|
return true;
|
|
5827
5843
|
}
|
|
5828
|
-
|
|
5829
|
-
* TODO: [🐠] Maybe more info why the URL is invalid
|
|
5830
|
-
*/
|
|
5844
|
+
// TODO: [🐠] Maybe more info why the URL is invalid
|
|
5831
5845
|
|
|
5832
5846
|
/**
|
|
5833
5847
|
* Tests if given string is valid pipeline URL URL.
|
|
@@ -5858,9 +5872,7 @@
|
|
|
5858
5872
|
*/
|
|
5859
5873
|
return true;
|
|
5860
5874
|
}
|
|
5861
|
-
|
|
5862
|
-
* TODO: [🐠] Maybe more info why the URL is invalid
|
|
5863
|
-
*/
|
|
5875
|
+
// TODO: [🐠] Maybe more info why the URL is invalid
|
|
5864
5876
|
|
|
5865
5877
|
/**
|
|
5866
5878
|
* Checks if value is valid uuid
|