@promptbook/openai 0.62.1 → 0.63.0-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/index.es.js +50 -8
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/anthropic-claude.index.d.ts +3 -2
- package/esm/typings/src/_packages/azure-openai.index.d.ts +4 -2
- package/esm/typings/src/_packages/browser.index.d.ts +6 -0
- package/esm/typings/src/_packages/cli.index.d.ts +1 -7
- package/esm/typings/src/_packages/core.index.d.ts +87 -13
- package/esm/typings/src/_packages/execute-javascript.index.d.ts +5 -45
- package/esm/typings/src/_packages/fake-llm.index.d.ts +4 -5
- package/esm/typings/src/_packages/langtail.index.d.ts +4 -2
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +23 -4
- package/esm/typings/src/_packages/node.index.d.ts +5 -2
- package/esm/typings/src/_packages/openai.index.d.ts +5 -2
- package/esm/typings/src/_packages/remote-client.index.d.ts +5 -2
- package/esm/typings/src/_packages/remote-server.index.d.ts +4 -2
- package/esm/typings/src/_packages/types.index.d.ts +441 -21
- package/esm/typings/src/_packages/utils.index.d.ts +84 -31
- package/esm/typings/src/cli/main.d.ts +12 -0
- package/esm/typings/src/collection/collectionToJson.d.ts +2 -0
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromPromise.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +1 -1
- package/esm/typings/src/collection/constructors/createSubcollection.d.ts +1 -0
- package/esm/typings/src/commands/BLOCK/BlockTypes.d.ts +2 -0
- package/esm/typings/src/config.d.ts +27 -1
- package/esm/typings/src/conversion/pipelineJsonToString.d.ts +1 -0
- package/esm/typings/src/conversion/pipelineStringToJson.d.ts +6 -3
- package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +4 -3
- package/esm/typings/src/conversion/prettify/prettifyPipelineString.d.ts +2 -0
- package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +2 -0
- package/esm/typings/src/conversion/utils/extractParameterNamesFromPromptTemplate.d.ts +1 -0
- package/esm/typings/src/conversion/utils/extractVariables.d.ts +1 -0
- package/esm/typings/src/conversion/utils/renameParameter.d.ts +1 -0
- package/esm/typings/src/conversion/utils/stringifyPipelineJson.d.ts +2 -0
- package/esm/typings/src/conversion/utils/titleToName.d.ts +6 -1
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +1 -0
- package/esm/typings/src/errors/CollectionError.d.ts +2 -0
- package/esm/typings/src/errors/EnvironmentMismatchError.d.ts +2 -0
- package/esm/typings/src/errors/LimitReachedError.d.ts +2 -0
- package/esm/typings/src/errors/NotFoundError.d.ts +2 -0
- package/esm/typings/src/errors/NotYetImplementedError.d.ts +2 -0
- package/esm/typings/src/errors/ParsingError.d.ts +2 -0
- package/esm/typings/src/errors/PipelineExecutionError.d.ts +2 -0
- package/esm/typings/src/errors/PipelineLogicError.d.ts +2 -0
- package/esm/typings/src/errors/ReferenceError.d.ts +2 -0
- package/esm/typings/src/errors/UnexpectedError.d.ts +2 -0
- package/esm/typings/src/errors/VersionMismatchError.d.ts +2 -0
- package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +1 -0
- package/esm/typings/src/execution/createPipelineExecutor.d.ts +1 -0
- package/esm/typings/src/execution/embeddingVectorToString.d.ts +2 -0
- package/esm/typings/src/execution/utils/addUsage.d.ts +3 -1
- package/esm/typings/src/execution/utils/checkExpectations.d.ts +2 -0
- package/esm/typings/src/execution/utils/forEachAsync.d.ts +1 -0
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +2 -0
- package/esm/typings/src/execution/utils/usageToWorktime.d.ts +2 -0
- package/esm/typings/src/formats/_common/FormatDefinition.d.ts +2 -1
- package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +2 -0
- package/esm/typings/src/knowledge/dialogs/callback/CallbackInterfaceTools.d.ts +2 -0
- package/esm/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +2 -0
- package/esm/typings/src/knowledge/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +3 -1
- package/esm/typings/src/knowledge/prepare-knowledge/_common/Scraper.d.ts +10 -0
- package/esm/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +1 -1
- package/esm/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +2 -0
- package/esm/typings/src/llm-providers/_common/createLlmToolsFromEnv.d.ts +4 -1
- package/esm/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/countTotalUsage.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +2 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +2 -1
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +1 -0
- package/esm/typings/src/llm-providers/langtail/LangtailExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/langtail/LangtailExecutionToolsOptions.d.ts +2 -0
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/multiple/joinLlmExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +2 -0
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -0
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +2 -0
- package/esm/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +7 -1
- package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -0
- package/esm/typings/src/personas/preparePersona.d.ts +1 -1
- package/esm/typings/src/postprocessing/utils/extractBlock.d.ts +5 -0
- package/esm/typings/src/prepare/isPipelinePrepared.d.ts +2 -1
- package/esm/typings/src/prepare/preparePipeline.d.ts +1 -1
- package/esm/typings/src/prepare/prepareTemplates.d.ts +2 -1
- package/esm/typings/src/prepare/unpreparePipeline.d.ts +2 -1
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +2 -0
- package/esm/typings/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
- package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +51 -0
- package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +0 -1
- package/esm/typings/src/storage/files-storage/FilesStorage.d.ts +2 -1
- package/esm/typings/src/storage/files-storage/FilesStorageOptions.d.ts +0 -3
- package/esm/typings/src/storage/local-storage/getLocalStorage.d.ts +2 -1
- package/esm/typings/src/storage/local-storage/getSessionStorage.d.ts +2 -1
- package/esm/typings/src/storage/memory/MemoryStorage.d.ts +2 -3
- package/esm/typings/src/storage/utils/PrefixStorage.d.ts +2 -3
- package/esm/typings/src/types/ModelRequirements.d.ts +0 -1
- package/esm/typings/src/types/Prompt.d.ts +0 -1
- package/esm/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +4 -0
- package/esm/typings/src/types/execution-report/executionReportJsonToString.d.ts +2 -0
- package/esm/typings/src/types/typeAliases.d.ts +9 -2
- package/esm/typings/src/utils/currentDate.d.ts +1 -0
- package/esm/typings/src/utils/deepClone.d.ts +2 -1
- package/esm/typings/src/utils/deepFreeze.d.ts +1 -1
- package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/countLines.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/countPages.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +4 -0
- package/esm/typings/src/utils/expectation-counters/countWords.d.ts +2 -0
- package/esm/typings/src/utils/expectation-counters/index.d.ts +2 -0
- package/esm/typings/src/utils/extractParameterNames.d.ts +1 -0
- package/esm/typings/src/utils/isRunningInWhatever.d.ts +6 -3
- package/esm/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +4 -1
- package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +1 -1
- package/esm/typings/src/utils/markdown/createMarkdownTable.d.ts +4 -1
- package/esm/typings/src/utils/markdown/escapeMarkdownBlock.d.ts +5 -0
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -1
- package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
- package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +1 -0
- package/esm/typings/src/utils/markdown/flattenMarkdown.d.ts +3 -0
- package/esm/typings/src/utils/markdown/parseMarkdownSection.d.ts +4 -0
- package/esm/typings/src/utils/markdown/removeContentComments.d.ts +1 -0
- package/esm/typings/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -0
- package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.d.ts +3 -0
- package/esm/typings/src/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +2 -0
- package/esm/typings/src/utils/normalization/IKeywords.d.ts +3 -0
- package/esm/typings/src/utils/normalization/capitalize.d.ts +1 -0
- package/esm/typings/src/utils/normalization/decapitalize.d.ts +1 -0
- package/esm/typings/src/utils/normalization/isValidKeyword.d.ts +2 -0
- package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +8 -0
- package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +8 -0
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +10 -0
- package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +9 -0
- package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +10 -0
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +11 -0
- package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +9 -0
- package/esm/typings/src/utils/normalization/parseKeywords.d.ts +1 -0
- package/esm/typings/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
- package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +7 -0
- package/esm/typings/src/utils/normalization/searchKeywords.d.ts +5 -0
- package/esm/typings/src/utils/parseNumber.d.ts +2 -1
- package/esm/typings/src/utils/random/randomSeed.d.ts +1 -0
- package/esm/typings/src/utils/removeEmojis.d.ts +1 -0
- package/esm/typings/src/utils/removeQuotes.d.ts +1 -0
- package/esm/typings/src/utils/replaceParameters.d.ts +1 -0
- package/esm/typings/src/utils/sets/difference.d.ts +1 -0
- package/esm/typings/src/utils/sets/intersection.d.ts +1 -0
- package/esm/typings/src/utils/sets/union.d.ts +1 -0
- package/esm/typings/src/utils/trimCodeBlock.d.ts +1 -0
- package/esm/typings/src/utils/trimEndOfCodeBlock.d.ts +2 -0
- package/esm/typings/src/utils/unwrapResult.d.ts +1 -0
- package/esm/typings/src/utils/validators/filePath/isValidFilePath.d.ts +1 -0
- package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +7 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +2 -0
- package/esm/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +2 -0
- package/esm/typings/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isValidPipelineUrl.d.ts +2 -0
- package/esm/typings/src/utils/validators/url/isValidUrl.d.ts +2 -0
- package/esm/typings/src/utils/validators/uuid/isValidUuid.d.ts +2 -0
- package/esm/typings/src/version.d.ts +2 -0
- package/package.json +2 -2
- package/umd/index.umd.js +50 -8
- package/umd/index.umd.js.map +1 -1
- package/umd/typings/src/_packages/anthropic-claude.index.d.ts +3 -2
- package/umd/typings/src/_packages/azure-openai.index.d.ts +4 -2
- package/umd/typings/src/_packages/browser.index.d.ts +6 -0
- package/umd/typings/src/_packages/cli.index.d.ts +1 -7
- package/umd/typings/src/_packages/core.index.d.ts +87 -13
- package/umd/typings/src/_packages/execute-javascript.index.d.ts +5 -45
- package/umd/typings/src/_packages/fake-llm.index.d.ts +4 -5
- package/umd/typings/src/_packages/langtail.index.d.ts +4 -2
- package/umd/typings/src/_packages/markdown-utils.index.d.ts +23 -4
- package/umd/typings/src/_packages/node.index.d.ts +5 -2
- package/umd/typings/src/_packages/openai.index.d.ts +5 -2
- package/umd/typings/src/_packages/remote-client.index.d.ts +5 -2
- package/umd/typings/src/_packages/remote-server.index.d.ts +4 -2
- package/umd/typings/src/_packages/types.index.d.ts +441 -21
- package/umd/typings/src/_packages/utils.index.d.ts +84 -31
- package/umd/typings/src/cli/main.d.ts +12 -0
- package/umd/typings/src/collection/collectionToJson.d.ts +2 -0
- package/umd/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +1 -0
- package/umd/typings/src/collection/constructors/createCollectionFromJson.d.ts +1 -0
- package/umd/typings/src/collection/constructors/createCollectionFromPromise.d.ts +1 -0
- package/umd/typings/src/collection/constructors/createCollectionFromUrl.d.ts +1 -1
- package/umd/typings/src/collection/constructors/createSubcollection.d.ts +1 -0
- package/umd/typings/src/commands/BLOCK/BlockTypes.d.ts +2 -0
- package/umd/typings/src/config.d.ts +27 -1
- package/umd/typings/src/conversion/pipelineJsonToString.d.ts +1 -0
- package/umd/typings/src/conversion/pipelineStringToJson.d.ts +6 -3
- package/umd/typings/src/conversion/pipelineStringToJsonSync.d.ts +4 -3
- package/umd/typings/src/conversion/prettify/prettifyPipelineString.d.ts +2 -0
- package/umd/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +2 -0
- package/umd/typings/src/conversion/utils/extractParameterNamesFromPromptTemplate.d.ts +1 -0
- package/umd/typings/src/conversion/utils/extractVariables.d.ts +1 -0
- package/umd/typings/src/conversion/utils/renameParameter.d.ts +1 -0
- package/umd/typings/src/conversion/utils/stringifyPipelineJson.d.ts +2 -0
- package/umd/typings/src/conversion/utils/titleToName.d.ts +6 -1
- package/umd/typings/src/conversion/validation/validatePipeline.d.ts +1 -0
- package/umd/typings/src/errors/CollectionError.d.ts +2 -0
- package/umd/typings/src/errors/EnvironmentMismatchError.d.ts +2 -0
- package/umd/typings/src/errors/LimitReachedError.d.ts +2 -0
- package/umd/typings/src/errors/NotFoundError.d.ts +2 -0
- package/umd/typings/src/errors/NotYetImplementedError.d.ts +2 -0
- package/umd/typings/src/errors/ParsingError.d.ts +2 -0
- package/umd/typings/src/errors/PipelineExecutionError.d.ts +2 -0
- package/umd/typings/src/errors/PipelineLogicError.d.ts +2 -0
- package/umd/typings/src/errors/ReferenceError.d.ts +2 -0
- package/umd/typings/src/errors/UnexpectedError.d.ts +2 -0
- package/umd/typings/src/errors/VersionMismatchError.d.ts +2 -0
- package/umd/typings/src/execution/assertsExecutionSuccessful.d.ts +1 -0
- package/umd/typings/src/execution/createPipelineExecutor.d.ts +1 -0
- package/umd/typings/src/execution/embeddingVectorToString.d.ts +2 -0
- package/umd/typings/src/execution/utils/addUsage.d.ts +3 -1
- package/umd/typings/src/execution/utils/checkExpectations.d.ts +2 -0
- package/umd/typings/src/execution/utils/forEachAsync.d.ts +1 -0
- package/umd/typings/src/execution/utils/usageToHuman.d.ts +2 -0
- package/umd/typings/src/execution/utils/usageToWorktime.d.ts +2 -0
- package/umd/typings/src/formats/_common/FormatDefinition.d.ts +2 -1
- package/umd/typings/src/formats/json/utils/isValidJsonString.d.ts +2 -0
- package/umd/typings/src/knowledge/dialogs/callback/CallbackInterfaceTools.d.ts +2 -0
- package/umd/typings/src/knowledge/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +2 -0
- package/umd/typings/src/knowledge/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +3 -1
- package/umd/typings/src/knowledge/prepare-knowledge/_common/Scraper.d.ts +10 -0
- package/umd/typings/src/knowledge/prepare-knowledge/_common/prepareKnowledgePieces.d.ts +1 -1
- package/umd/typings/src/knowledge/prepare-knowledge/markdown/prepareKnowledgeFromMarkdown.d.ts +2 -0
- package/umd/typings/src/llm-providers/_common/createLlmToolsFromEnv.d.ts +4 -1
- package/umd/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -1
- package/umd/typings/src/llm-providers/_common/utils/count-total-usage/countTotalUsage.d.ts +1 -1
- package/umd/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +2 -1
- package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +2 -1
- package/umd/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +1 -0
- package/umd/typings/src/llm-providers/langtail/LangtailExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/langtail/LangtailExecutionToolsOptions.d.ts +2 -0
- package/umd/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/multiple/joinLlmExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -0
- package/umd/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +2 -0
- package/umd/typings/src/llm-providers/openai/openai-models.d.ts +1 -0
- package/umd/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +1 -0
- package/umd/typings/src/llm-providers/remote/RemoteLlmExecutionToolsOptions.d.ts +2 -0
- package/umd/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +7 -1
- package/umd/typings/src/llm-providers/remote/startRemoteServer.d.ts +1 -0
- package/umd/typings/src/personas/preparePersona.d.ts +1 -1
- package/umd/typings/src/postprocessing/utils/extractBlock.d.ts +5 -0
- package/umd/typings/src/prepare/isPipelinePrepared.d.ts +2 -1
- package/umd/typings/src/prepare/preparePipeline.d.ts +1 -1
- package/umd/typings/src/prepare/prepareTemplates.d.ts +2 -1
- package/umd/typings/src/prepare/unpreparePipeline.d.ts +2 -1
- package/umd/typings/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +2 -0
- package/umd/typings/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
- package/umd/typings/src/scripting/javascript/postprocessing-functions.d.ts +51 -0
- package/umd/typings/src/storage/_common/PromptbookStorage.d.ts +0 -1
- package/umd/typings/src/storage/files-storage/FilesStorage.d.ts +2 -1
- package/umd/typings/src/storage/files-storage/FilesStorageOptions.d.ts +0 -3
- package/umd/typings/src/storage/local-storage/getLocalStorage.d.ts +2 -1
- package/umd/typings/src/storage/local-storage/getSessionStorage.d.ts +2 -1
- package/umd/typings/src/storage/memory/MemoryStorage.d.ts +2 -3
- package/umd/typings/src/storage/utils/PrefixStorage.d.ts +2 -3
- package/umd/typings/src/types/ModelRequirements.d.ts +0 -1
- package/umd/typings/src/types/Prompt.d.ts +0 -1
- package/umd/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +4 -0
- package/umd/typings/src/types/execution-report/executionReportJsonToString.d.ts +2 -0
- package/umd/typings/src/types/typeAliases.d.ts +9 -2
- package/umd/typings/src/utils/currentDate.d.ts +1 -0
- package/umd/typings/src/utils/deepClone.d.ts +2 -1
- package/umd/typings/src/utils/deepFreeze.d.ts +1 -1
- package/umd/typings/src/utils/expectation-counters/countCharacters.d.ts +2 -0
- package/umd/typings/src/utils/expectation-counters/countLines.d.ts +2 -0
- package/umd/typings/src/utils/expectation-counters/countPages.d.ts +2 -0
- package/umd/typings/src/utils/expectation-counters/countParagraphs.d.ts +2 -0
- package/umd/typings/src/utils/expectation-counters/countSentences.d.ts +4 -0
- package/umd/typings/src/utils/expectation-counters/countWords.d.ts +2 -0
- package/umd/typings/src/utils/expectation-counters/index.d.ts +2 -0
- package/umd/typings/src/utils/extractParameterNames.d.ts +1 -0
- package/umd/typings/src/utils/isRunningInWhatever.d.ts +6 -3
- package/umd/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +4 -1
- package/umd/typings/src/utils/markdown/createMarkdownChart.d.ts +1 -1
- package/umd/typings/src/utils/markdown/createMarkdownTable.d.ts +4 -1
- package/umd/typings/src/utils/markdown/escapeMarkdownBlock.d.ts +5 -0
- package/umd/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -1
- package/umd/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
- package/umd/typings/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +1 -0
- package/umd/typings/src/utils/markdown/flattenMarkdown.d.ts +3 -0
- package/umd/typings/src/utils/markdown/parseMarkdownSection.d.ts +4 -0
- package/umd/typings/src/utils/markdown/removeContentComments.d.ts +1 -0
- package/umd/typings/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -0
- package/umd/typings/src/utils/markdown/splitMarkdownIntoSections.d.ts +3 -0
- package/umd/typings/src/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +2 -0
- package/umd/typings/src/utils/normalization/IKeywords.d.ts +3 -0
- package/umd/typings/src/utils/normalization/capitalize.d.ts +1 -0
- package/umd/typings/src/utils/normalization/decapitalize.d.ts +1 -0
- package/umd/typings/src/utils/normalization/isValidKeyword.d.ts +2 -0
- package/umd/typings/src/utils/normalization/nameToUriPart.d.ts +8 -0
- package/umd/typings/src/utils/normalization/nameToUriParts.d.ts +8 -0
- package/umd/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +10 -0
- package/umd/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +9 -0
- package/umd/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +10 -0
- package/umd/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +11 -0
- package/umd/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +9 -0
- package/umd/typings/src/utils/normalization/parseKeywords.d.ts +1 -0
- package/umd/typings/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
- package/umd/typings/src/utils/normalization/removeDiacritics.d.ts +7 -0
- package/umd/typings/src/utils/normalization/searchKeywords.d.ts +5 -0
- package/umd/typings/src/utils/parseNumber.d.ts +2 -1
- package/umd/typings/src/utils/random/randomSeed.d.ts +1 -0
- package/umd/typings/src/utils/removeEmojis.d.ts +1 -0
- package/umd/typings/src/utils/removeQuotes.d.ts +1 -0
- package/umd/typings/src/utils/replaceParameters.d.ts +1 -0
- package/umd/typings/src/utils/sets/difference.d.ts +1 -0
- package/umd/typings/src/utils/sets/intersection.d.ts +1 -0
- package/umd/typings/src/utils/sets/union.d.ts +1 -0
- package/umd/typings/src/utils/trimCodeBlock.d.ts +1 -0
- package/umd/typings/src/utils/trimEndOfCodeBlock.d.ts +2 -0
- package/umd/typings/src/utils/unwrapResult.d.ts +1 -0
- package/umd/typings/src/utils/validators/filePath/isValidFilePath.d.ts +1 -0
- package/umd/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +7 -0
- package/umd/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -0
- package/umd/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +2 -0
- package/umd/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +2 -0
- package/umd/typings/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +1 -0
- package/umd/typings/src/utils/validators/url/isValidPipelineUrl.d.ts +2 -0
- package/umd/typings/src/utils/validators/url/isValidUrl.d.ts +2 -0
- package/umd/typings/src/utils/validators/uuid/isValidUuid.d.ts +2 -0
- package/umd/typings/src/version.d.ts +2 -0
|
@@ -1,42 +1,462 @@
|
|
|
1
|
+
import { PROMPTBOOK_VERSION } from '../version';
|
|
1
2
|
import type { PipelineCollection } from '../collection/PipelineCollection';
|
|
3
|
+
import type { BoilerplateCommand } from '../commands/_BOILERPLATE/BoilerplateCommand';
|
|
4
|
+
import type { Command } from '../commands/_common/types/Command';
|
|
5
|
+
import type { CommandParser } from '../commands/_common/types/CommandParser';
|
|
6
|
+
import type { CommandParserInput } from '../commands/_common/types/CommandParser';
|
|
7
|
+
import type { ApplyToPipelineJsonSubjects } from '../commands/_common/types/CommandParser';
|
|
8
|
+
import type { CommandUsagePlace } from '../commands/_common/types/CommandUsagePlaces';
|
|
9
|
+
import type { BlockCommand } from '../commands/BLOCK/BlockCommand';
|
|
2
10
|
import type { BlockType } from '../commands/BLOCK/BlockTypes';
|
|
11
|
+
import type { ExpectAmountCommand } from '../commands/EXPECT/ExpectAmountCommand';
|
|
12
|
+
import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
|
|
13
|
+
import type { ExpectFormatCommand } from '../commands/EXPECT/ExpectFormatCommand';
|
|
14
|
+
import type { JokerCommand } from '../commands/JOKER/JokerCommand';
|
|
15
|
+
import type { KnowledgeCommand } from '../commands/KNOWLEDGE/KnowledgeCommand';
|
|
16
|
+
import type { ModelCommand } from '../commands/MODEL/ModelCommand';
|
|
17
|
+
import type { ParameterCommand } from '../commands/PARAMETER/ParameterCommand';
|
|
18
|
+
import type { PersonaCommand } from '../commands/PERSONA/PersonaCommand';
|
|
19
|
+
import type { PostprocessCommand } from '../commands/POSTPROCESS/PostprocessCommand';
|
|
20
|
+
import type { PromptbookVersionCommand } from '../commands/PROMPTBOOK_VERSION/PromptbookVersionCommand';
|
|
21
|
+
import type { UrlCommand } from '../commands/URL/UrlCommand';
|
|
22
|
+
import type { ActionCommand } from '../commands/X_ACTION/ActionCommand';
|
|
23
|
+
import type { InstrumentCommand } from '../commands/X_INSTRUMENT/InstrumentCommand';
|
|
24
|
+
import type { PipelineStringToJsonOptions } from '../conversion/pipelineStringToJson';
|
|
25
|
+
import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
|
|
26
|
+
import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
3
27
|
import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
|
|
4
|
-
import { EmbeddingVector } from '../execution/EmbeddingVector';
|
|
28
|
+
import type { EmbeddingVector } from '../execution/EmbeddingVector';
|
|
5
29
|
import type { ExecutionTools } from '../execution/ExecutionTools';
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
30
|
+
import type { LlmExecutionTools } from '../execution/LlmExecutionTools';
|
|
31
|
+
import type { AvailableModel } from '../execution/LlmExecutionTools';
|
|
32
|
+
import type { PipelineExecutor } from '../execution/PipelineExecutor';
|
|
33
|
+
import type { PipelineExecutorResult } from '../execution/PipelineExecutor';
|
|
34
|
+
import type { PromptResult } from '../execution/PromptResult';
|
|
35
|
+
import type { CompletionPromptResult } from '../execution/PromptResult';
|
|
36
|
+
import type { ChatPromptResult } from '../execution/PromptResult';
|
|
37
|
+
import type { EmbeddingPromptResult } from '../execution/PromptResult';
|
|
38
|
+
import type { CommonPromptResult } from '../execution/PromptResult';
|
|
39
|
+
import type { PromptResultUsage } from '../execution/PromptResultUsage';
|
|
40
|
+
import type { PromptResultUsageCounts } from '../execution/PromptResultUsage';
|
|
41
|
+
import type { ScriptExecutionTools } from '../execution/ScriptExecutionTools';
|
|
42
|
+
import type { ScriptExecutionToolsExecuteOptions } from '../execution/ScriptExecutionTools';
|
|
43
|
+
import type { AutomaticTranslator } from '../execution/translation/automatic-translate/automatic-translators/AutomaticTranslator';
|
|
44
|
+
import type { TranslatorOptions } from '../execution/translation/automatic-translate/automatic-translators/TranslatorOptions';
|
|
11
45
|
import type { UncertainNumber } from '../execution/UncertainNumber';
|
|
12
|
-
import type { UserInterfaceTools
|
|
46
|
+
import type { UserInterfaceTools } from '../execution/UserInterfaceTools';
|
|
47
|
+
import type { UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools';
|
|
48
|
+
import type { FormatDefinition } from '../formats/_common/FormatDefinition';
|
|
49
|
+
import type { CallbackInterfaceToolsOptions } from '../knowledge/dialogs/callback/CallbackInterfaceToolsOptions';
|
|
50
|
+
import type { Scraper } from '../knowledge/prepare-knowledge/_common/Scraper';
|
|
51
|
+
import type { ScraperSourceOptions } from '../knowledge/prepare-knowledge/_common/Scraper';
|
|
52
|
+
import type { CreateLlmToolsFromEnvOptions } from '../llm-providers/_common/createLlmToolsFromEnv';
|
|
53
|
+
import type { CacheItem } from '../llm-providers/_common/utils/cache/CacheItem';
|
|
54
|
+
import type { CacheLlmToolsOptions } from '../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
|
|
55
|
+
import type { LlmExecutionToolsWithTotalUsage } from '../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
|
|
56
|
+
import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
|
|
57
|
+
import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
|
|
58
|
+
import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
|
|
59
|
+
import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
|
|
60
|
+
import type { Promptbook_Server_Error } from '../llm-providers/remote/interfaces/Promptbook_Server_Error';
|
|
61
|
+
import type { Promptbook_Server_Progress } from '../llm-providers/remote/interfaces/Promptbook_Server_Progress';
|
|
62
|
+
import type { Promptbook_Server_Request } from '../llm-providers/remote/interfaces/Promptbook_Server_Request';
|
|
63
|
+
import type { Promptbook_Server_Response } from '../llm-providers/remote/interfaces/Promptbook_Server_Response';
|
|
64
|
+
import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
|
|
65
|
+
import type { RemoteLlmExecutionToolsOptions } from '../llm-providers/remote/RemoteLlmExecutionToolsOptions';
|
|
66
|
+
import type { PrepareOptions } from '../prepare/PrepareOptions';
|
|
67
|
+
import type { JavascriptExecutionToolsOptions } from '../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
68
|
+
import type { PostprocessingFunction } from '../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
69
|
+
import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
|
|
70
|
+
import type { FilesStorageOptions } from '../storage/files-storage/FilesStorageOptions';
|
|
71
|
+
import type { Arrayable } from '../types/Arrayable';
|
|
72
|
+
import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
|
|
73
|
+
import type { ExecutionReportString } from '../types/execution-report/ExecutionReportString';
|
|
74
|
+
import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
|
|
13
75
|
import type { ModelRequirements } from '../types/ModelRequirements';
|
|
76
|
+
import type { CompletionModelRequirements } from '../types/ModelRequirements';
|
|
77
|
+
import type { ChatModelRequirements } from '../types/ModelRequirements';
|
|
78
|
+
import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
|
|
79
|
+
import type { CommonModelRequirements } from '../types/ModelRequirements';
|
|
14
80
|
import type { ModelVariant } from '../types/ModelVariant';
|
|
15
|
-
import type {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
81
|
+
import type { Expectations } from '../types/PipelineJson/Expectations';
|
|
82
|
+
import type { ExpectationUnit } from '../types/PipelineJson/Expectations';
|
|
83
|
+
import type { ExpectationAmount } from '../types/PipelineJson/Expectations';
|
|
84
|
+
import type { KnowledgePiecePreparedJson } from '../types/PipelineJson/KnowledgePieceJson';
|
|
85
|
+
import type { KnowledgeSourceJson } from '../types/PipelineJson/KnowledgeSourceJson';
|
|
86
|
+
import type { KnowledgeSourcePreparedJson } from '../types/PipelineJson/KnowledgeSourceJson';
|
|
19
87
|
import type { LlmTemplateJson } from '../types/PipelineJson/LlmTemplateJson';
|
|
20
|
-
import { PersonaJson
|
|
88
|
+
import type { PersonaJson } from '../types/PipelineJson/PersonaJson';
|
|
89
|
+
import type { PersonaPreparedJson } from '../types/PipelineJson/PersonaJson';
|
|
21
90
|
import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
|
|
22
|
-
import { PreparationJson } from '../types/PipelineJson/PreparationJson';
|
|
91
|
+
import type { PreparationJson } from '../types/PipelineJson/PreparationJson';
|
|
23
92
|
import type { PromptDialogJson } from '../types/PipelineJson/PromptDialogJson';
|
|
24
93
|
import type { PromptTemplateJson } from '../types/PipelineJson/PromptTemplateJson';
|
|
94
|
+
import type { PromptTemplateJsonCommon } from '../types/PipelineJson/PromptTemplateJsonCommon';
|
|
25
95
|
import type { PromptTemplateParameterJson } from '../types/PipelineJson/PromptTemplateParameterJson';
|
|
26
96
|
import type { ScriptJson } from '../types/PipelineJson/ScriptJson';
|
|
27
97
|
import type { SimpleTemplateJson } from '../types/PipelineJson/SimpleTemplateJson';
|
|
28
98
|
import type { PipelineString } from '../types/PipelineString';
|
|
29
99
|
import type { Prompt } from '../types/Prompt';
|
|
100
|
+
import type { CompletionPrompt } from '../types/Prompt';
|
|
101
|
+
import type { ChatPrompt } from '../types/Prompt';
|
|
102
|
+
import type { EmbeddingPrompt } from '../types/Prompt';
|
|
103
|
+
import type { CommonPrompt } from '../types/Prompt';
|
|
30
104
|
import type { ScriptLanguage } from '../types/ScriptLanguage';
|
|
31
105
|
import type { TaskProgress } from '../types/TaskProgress';
|
|
32
|
-
import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
|
|
33
106
|
import type { string_char_emoji } from '../types/typeAliasEmoji';
|
|
34
|
-
import type {
|
|
107
|
+
import type { string_business_category_name } from '../types/typeAliases';
|
|
108
|
+
import type { string_model_name } from '../types/typeAliases';
|
|
109
|
+
import type { string_prompt } from '../types/typeAliases';
|
|
110
|
+
import type { string_template } from '../types/typeAliases';
|
|
111
|
+
import type { string_text_prompt } from '../types/typeAliases';
|
|
112
|
+
import type { string_chat_prompt } from '../types/typeAliases';
|
|
113
|
+
import type { string_system_message } from '../types/typeAliases';
|
|
114
|
+
import type { string_completion_prompt } from '../types/typeAliases';
|
|
115
|
+
import type { string_page } from '../types/typeAliases';
|
|
116
|
+
import type { string_mime_type } from '../types/typeAliases';
|
|
117
|
+
import type { string_mime_type_with_wildcard } from '../types/typeAliases';
|
|
118
|
+
import type { string_char } from '../types/typeAliases';
|
|
119
|
+
import type { string_name } from '../types/typeAliases';
|
|
120
|
+
import type { string_parameter_name } from '../types/typeAliases';
|
|
121
|
+
import type { string_parameter_value } from '../types/typeAliases';
|
|
122
|
+
import type { Parameters } from '../types/typeAliases';
|
|
123
|
+
import type { string_reserved_parameter_name } from '../types/typeAliases';
|
|
124
|
+
import type { ReservedParameters } from '../types/typeAliases';
|
|
125
|
+
import type { string_title } from '../types/typeAliases';
|
|
126
|
+
import type { string_persona_description } from '../types/typeAliases';
|
|
127
|
+
import type { string_knowledge_source } from '../types/typeAliases';
|
|
128
|
+
import type { string_knowledge_source_link } from '../types/typeAliases';
|
|
129
|
+
import type { string_html } from '../types/typeAliases';
|
|
130
|
+
import type { string_xml } from '../types/typeAliases';
|
|
131
|
+
import type { string_markdown } from '../types/typeAliases';
|
|
132
|
+
import type { string_markdown_section } from '../types/typeAliases';
|
|
133
|
+
import type { string_markdown_section_content } from '../types/typeAliases';
|
|
134
|
+
import type { string_markdown_text } from '../types/typeAliases';
|
|
135
|
+
import type { string_promptbook_documentation_url } from '../types/typeAliases';
|
|
136
|
+
import type { string_domain } from '../types/typeAliases';
|
|
137
|
+
import type { string_tdl } from '../types/typeAliases';
|
|
138
|
+
import type { string_css } from '../types/typeAliases';
|
|
139
|
+
import type { string_svg } from '../types/typeAliases';
|
|
140
|
+
import type { string_script } from '../types/typeAliases';
|
|
141
|
+
import type { string_javascript } from '../types/typeAliases';
|
|
142
|
+
import type { string_json } from '../types/typeAliases';
|
|
143
|
+
import type { string_css_class } from '../types/typeAliases';
|
|
144
|
+
import type { string_css_property } from '../types/typeAliases';
|
|
145
|
+
import type { string_css_value } from '../types/typeAliases';
|
|
146
|
+
import type { string_css_selector } from '../types/typeAliases';
|
|
147
|
+
import type { string_url } from '../types/typeAliases';
|
|
148
|
+
import type { string_pipeline_url } from '../types/typeAliases';
|
|
149
|
+
import type { string_pipeline_url_with_hashtemplate } from '../types/typeAliases';
|
|
150
|
+
import type { string_data_url } from '../types/typeAliases';
|
|
151
|
+
import type { string_base64 } from '../types/typeAliases';
|
|
152
|
+
import type { string_href } from '../types/typeAliases';
|
|
153
|
+
import type { string_url_image } from '../types/typeAliases';
|
|
154
|
+
import type { string_uri } from '../types/typeAliases';
|
|
155
|
+
import type { string_uri_part } from '../types/typeAliases';
|
|
156
|
+
import type { string_uriid } from '../types/typeAliases';
|
|
157
|
+
import type { string_hostname } from '../types/typeAliases';
|
|
158
|
+
import type { string_host } from '../types/typeAliases';
|
|
159
|
+
import type { string_protocol } from '../types/typeAliases';
|
|
160
|
+
import type { string_email } from '../types/typeAliases';
|
|
161
|
+
import type { string_emails } from '../types/typeAliases';
|
|
162
|
+
import type { string_uuid } from '../types/typeAliases';
|
|
163
|
+
import type { client_id } from '../types/typeAliases';
|
|
164
|
+
import type { string_sha256 } from '../types/typeAliases';
|
|
165
|
+
import type { string_semantic_version } from '../types/typeAliases';
|
|
166
|
+
import type { string_version_dependency } from '../types/typeAliases';
|
|
167
|
+
import type { string_file_extension } from '../types/typeAliases';
|
|
168
|
+
import type { string_file_absolute_path } from '../types/typeAliases';
|
|
169
|
+
import type { string_file_relative_path } from '../types/typeAliases';
|
|
170
|
+
import type { string_file_path } from '../types/typeAliases';
|
|
171
|
+
import type { string_folder_absolute_path } from '../types/typeAliases';
|
|
172
|
+
import type { string_folder_relative_path } from '../types/typeAliases';
|
|
173
|
+
import type { string_folder_path } from '../types/typeAliases';
|
|
174
|
+
import type { string_filename } from '../types/typeAliases';
|
|
175
|
+
import type { string_person_fullname } from '../types/typeAliases';
|
|
176
|
+
import type { string_person_profile } from '../types/typeAliases';
|
|
177
|
+
import type { string_license } from '../types/typeAliases';
|
|
178
|
+
import type { string_attribute } from '../types/typeAliases';
|
|
179
|
+
import type { string_attribute_value_scope } from '../types/typeAliases';
|
|
180
|
+
import type { string_color } from '../types/typeAliases';
|
|
181
|
+
import type { string_translate_name } from '../types/typeAliases';
|
|
182
|
+
import type { string_translate_name_not_normalized } from '../types/typeAliases';
|
|
183
|
+
import type { string_translate_language } from '../types/typeAliases';
|
|
184
|
+
import type { string_javascript_name } from '../types/typeAliases';
|
|
185
|
+
import type { string_token } from '../types/typeAliases';
|
|
186
|
+
import type { string_license_token } from '../types/typeAliases';
|
|
187
|
+
import type { string_password } from '../types/typeAliases';
|
|
188
|
+
import type { string_ssh_key } from '../types/typeAliases';
|
|
189
|
+
import type { string_pgp_key } from '../types/typeAliases';
|
|
190
|
+
import type { string_date_iso8601 } from '../types/typeAliases';
|
|
191
|
+
import type { number_usd } from '../types/typeAliases';
|
|
192
|
+
import type { number_id } from '../types/typeAliases';
|
|
193
|
+
import type { number_linecol_number } from '../types/typeAliases';
|
|
194
|
+
import type { number_tokens } from '../types/typeAliases';
|
|
195
|
+
import type { number_positive } from '../types/typeAliases';
|
|
196
|
+
import type { number_negative } from '../types/typeAliases';
|
|
197
|
+
import type { number_integer } from '../types/typeAliases';
|
|
198
|
+
import type { number_percent } from '../types/typeAliases';
|
|
199
|
+
import type { number_model_temperature } from '../types/typeAliases';
|
|
200
|
+
import type { number_seed } from '../types/typeAliases';
|
|
201
|
+
import type { number_likeness } from '../types/typeAliases';
|
|
202
|
+
import type { number_miliseconds } from '../types/typeAliases';
|
|
203
|
+
import type { number_seconds } from '../types/typeAliases';
|
|
204
|
+
import type { number_minutes } from '../types/typeAliases';
|
|
205
|
+
import type { number_hours } from '../types/typeAliases';
|
|
206
|
+
import type { number_days } from '../types/typeAliases';
|
|
207
|
+
import type { number_weeks } from '../types/typeAliases';
|
|
208
|
+
import type { number_months } from '../types/typeAliases';
|
|
209
|
+
import type { number_years } from '../types/typeAliases';
|
|
210
|
+
import type { number_bytes } from '../types/typeAliases';
|
|
211
|
+
import type { number_kilobytes } from '../types/typeAliases';
|
|
212
|
+
import type { number_megabytes } from '../types/typeAliases';
|
|
213
|
+
import type { number_gigabytes } from '../types/typeAliases';
|
|
214
|
+
import type { number_terabytes } from '../types/typeAliases';
|
|
35
215
|
import type { FromtoItems } from '../utils/FromtoItems';
|
|
36
|
-
import {
|
|
216
|
+
import type { CodeBlock } from '../utils/markdown/extractAllBlocksFromMarkdown';
|
|
217
|
+
import type { MarkdownSection } from '../utils/markdown/parseMarkdownSection';
|
|
218
|
+
import type { string_keyword } from '../utils/normalization/IKeywords';
|
|
219
|
+
import type { IKeywords } from '../utils/normalization/IKeywords';
|
|
220
|
+
import type { string_kebab_case } from '../utils/normalization/normalize-to-kebab-case';
|
|
221
|
+
import type { string_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
222
|
+
import type { string_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
223
|
+
import type { string_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
|
|
224
|
+
import type { string_snake_case } from '../utils/normalization/normalizeTo_snake_case';
|
|
225
|
+
import type { ___ } from '../utils/organization/___';
|
|
226
|
+
import type { really_any } from '../utils/organization/really_any';
|
|
227
|
+
import type { really_unknown } from '../utils/organization/really_unknown';
|
|
228
|
+
import type { TODO_any } from '../utils/organization/TODO_any';
|
|
229
|
+
import type { TODO_object } from '../utils/organization/TODO_object';
|
|
230
|
+
import type { TODO_unknown } from '../utils/organization/TODO_unknown';
|
|
231
|
+
import type { string_promptbook_version } from '../version';
|
|
37
232
|
export { PROMPTBOOK_VERSION };
|
|
38
|
-
export {
|
|
39
|
-
export type {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
233
|
+
export type { PipelineCollection };
|
|
234
|
+
export type { BoilerplateCommand };
|
|
235
|
+
export type { Command };
|
|
236
|
+
export type { CommandParser };
|
|
237
|
+
export type { CommandParserInput };
|
|
238
|
+
export type { ApplyToPipelineJsonSubjects };
|
|
239
|
+
export type { CommandUsagePlace };
|
|
240
|
+
export type { BlockCommand };
|
|
241
|
+
export type { BlockType };
|
|
242
|
+
export type { ExpectAmountCommand };
|
|
243
|
+
export type { ExpectCommand };
|
|
244
|
+
export type { ExpectFormatCommand };
|
|
245
|
+
export type { JokerCommand };
|
|
246
|
+
export type { KnowledgeCommand };
|
|
247
|
+
export type { ModelCommand };
|
|
248
|
+
export type { ParameterCommand };
|
|
249
|
+
export type { PersonaCommand };
|
|
250
|
+
export type { PostprocessCommand };
|
|
251
|
+
export type { PromptbookVersionCommand };
|
|
252
|
+
export type { UrlCommand };
|
|
253
|
+
export type { ActionCommand };
|
|
254
|
+
export type { InstrumentCommand };
|
|
255
|
+
export type { PipelineStringToJsonOptions };
|
|
256
|
+
export type { PrettifyOptions };
|
|
257
|
+
export type { renderPipelineMermaidOptions };
|
|
258
|
+
export type { CommonExecutionToolsOptions };
|
|
259
|
+
export type { EmbeddingVector };
|
|
260
|
+
export type { ExecutionTools };
|
|
261
|
+
export type { LlmExecutionTools };
|
|
262
|
+
export type { AvailableModel };
|
|
263
|
+
export type { PipelineExecutor };
|
|
264
|
+
export type { PipelineExecutorResult };
|
|
265
|
+
export type { PromptResult };
|
|
266
|
+
export type { CompletionPromptResult };
|
|
267
|
+
export type { ChatPromptResult };
|
|
268
|
+
export type { EmbeddingPromptResult };
|
|
269
|
+
export type { CommonPromptResult };
|
|
270
|
+
export type { PromptResultUsage };
|
|
271
|
+
export type { PromptResultUsageCounts };
|
|
272
|
+
export type { ScriptExecutionTools };
|
|
273
|
+
export type { ScriptExecutionToolsExecuteOptions };
|
|
274
|
+
export type { AutomaticTranslator };
|
|
275
|
+
export type { TranslatorOptions };
|
|
276
|
+
export type { UncertainNumber };
|
|
277
|
+
export type { UserInterfaceTools };
|
|
278
|
+
export type { UserInterfaceToolsPromptDialogOptions };
|
|
279
|
+
export type { FormatDefinition };
|
|
280
|
+
export type { CallbackInterfaceToolsOptions };
|
|
281
|
+
export type { Scraper };
|
|
282
|
+
export type { ScraperSourceOptions };
|
|
283
|
+
export type { CreateLlmToolsFromEnvOptions };
|
|
284
|
+
export type { CacheItem };
|
|
285
|
+
export type { CacheLlmToolsOptions };
|
|
286
|
+
export type { LlmExecutionToolsWithTotalUsage };
|
|
287
|
+
export type { AnthropicClaudeExecutionToolsOptions };
|
|
288
|
+
export type { AzureOpenAiExecutionToolsOptions };
|
|
289
|
+
export type { LangtailExecutionToolsOptions };
|
|
290
|
+
export type { OpenAiExecutionToolsOptions };
|
|
291
|
+
export type { Promptbook_Server_Error };
|
|
292
|
+
export type { Promptbook_Server_Progress };
|
|
293
|
+
export type { Promptbook_Server_Request };
|
|
294
|
+
export type { Promptbook_Server_Response };
|
|
295
|
+
export type { RemoteServerOptions };
|
|
296
|
+
export type { RemoteLlmExecutionToolsOptions };
|
|
297
|
+
export type { PrepareOptions };
|
|
298
|
+
export type { JavascriptExecutionToolsOptions };
|
|
299
|
+
export type { PostprocessingFunction };
|
|
300
|
+
export type { PromptbookStorage };
|
|
301
|
+
export type { FilesStorageOptions };
|
|
302
|
+
export type { Arrayable };
|
|
303
|
+
export type { ExecutionReportJson };
|
|
304
|
+
export type { ExecutionReportString };
|
|
305
|
+
export type { ExecutionReportStringOptions };
|
|
306
|
+
export type { ModelRequirements };
|
|
307
|
+
export type { CompletionModelRequirements };
|
|
308
|
+
export type { ChatModelRequirements };
|
|
309
|
+
export type { EmbeddingModelRequirements };
|
|
310
|
+
export type { CommonModelRequirements };
|
|
311
|
+
export type { ModelVariant };
|
|
312
|
+
export type { Expectations };
|
|
313
|
+
export type { ExpectationUnit };
|
|
314
|
+
export type { ExpectationAmount };
|
|
315
|
+
export type { KnowledgePiecePreparedJson };
|
|
316
|
+
export type { KnowledgeSourceJson };
|
|
317
|
+
export type { KnowledgeSourcePreparedJson };
|
|
318
|
+
export type { LlmTemplateJson };
|
|
319
|
+
export type { PersonaJson };
|
|
320
|
+
export type { PersonaPreparedJson };
|
|
321
|
+
export type { PipelineJson };
|
|
322
|
+
export type { PreparationJson };
|
|
323
|
+
export type { PromptDialogJson };
|
|
324
|
+
export type { PromptTemplateJson };
|
|
325
|
+
export type { PromptTemplateJsonCommon };
|
|
326
|
+
export type { PromptTemplateParameterJson };
|
|
327
|
+
export type { ScriptJson };
|
|
328
|
+
export type { SimpleTemplateJson };
|
|
329
|
+
export type { PipelineString };
|
|
330
|
+
export type { Prompt };
|
|
331
|
+
export type { CompletionPrompt };
|
|
332
|
+
export type { ChatPrompt };
|
|
333
|
+
export type { EmbeddingPrompt };
|
|
334
|
+
export type { CommonPrompt };
|
|
335
|
+
export type { ScriptLanguage };
|
|
336
|
+
export type { TaskProgress };
|
|
337
|
+
export type { string_char_emoji };
|
|
338
|
+
export type { string_business_category_name };
|
|
339
|
+
export type { string_model_name };
|
|
340
|
+
export type { string_prompt };
|
|
341
|
+
export type { string_template };
|
|
342
|
+
export type { string_text_prompt };
|
|
343
|
+
export type { string_chat_prompt };
|
|
344
|
+
export type { string_system_message };
|
|
345
|
+
export type { string_completion_prompt };
|
|
346
|
+
export type { string_page };
|
|
347
|
+
export type { string_mime_type };
|
|
348
|
+
export type { string_mime_type_with_wildcard };
|
|
349
|
+
export type { string_char };
|
|
350
|
+
export type { string_name };
|
|
351
|
+
export type { string_parameter_name };
|
|
352
|
+
export type { string_parameter_value };
|
|
353
|
+
export type { Parameters };
|
|
354
|
+
export type { string_reserved_parameter_name };
|
|
355
|
+
export type { ReservedParameters };
|
|
356
|
+
export type { string_title };
|
|
357
|
+
export type { string_persona_description };
|
|
358
|
+
export type { string_knowledge_source };
|
|
359
|
+
export type { string_knowledge_source_link };
|
|
360
|
+
export type { string_html };
|
|
361
|
+
export type { string_xml };
|
|
362
|
+
export type { string_markdown };
|
|
363
|
+
export type { string_markdown_section };
|
|
364
|
+
export type { string_markdown_section_content };
|
|
365
|
+
export type { string_markdown_text };
|
|
366
|
+
export type { string_promptbook_documentation_url };
|
|
367
|
+
export type { string_domain };
|
|
368
|
+
export type { string_tdl };
|
|
369
|
+
export type { string_css };
|
|
370
|
+
export type { string_svg };
|
|
371
|
+
export type { string_script };
|
|
372
|
+
export type { string_javascript };
|
|
373
|
+
export type { string_json };
|
|
374
|
+
export type { string_css_class };
|
|
375
|
+
export type { string_css_property };
|
|
376
|
+
export type { string_css_value };
|
|
377
|
+
export type { string_css_selector };
|
|
378
|
+
export type { string_url };
|
|
379
|
+
export type { string_pipeline_url };
|
|
380
|
+
export type { string_pipeline_url_with_hashtemplate };
|
|
381
|
+
export type { string_data_url };
|
|
382
|
+
export type { string_base64 };
|
|
383
|
+
export type { string_href };
|
|
384
|
+
export type { string_url_image };
|
|
385
|
+
export type { string_uri };
|
|
386
|
+
export type { string_uri_part };
|
|
387
|
+
export type { string_uriid };
|
|
388
|
+
export type { string_hostname };
|
|
389
|
+
export type { string_host };
|
|
390
|
+
export type { string_protocol };
|
|
391
|
+
export type { string_email };
|
|
392
|
+
export type { string_emails };
|
|
393
|
+
export type { string_uuid };
|
|
394
|
+
export type { client_id };
|
|
395
|
+
export type { string_sha256 };
|
|
396
|
+
export type { string_semantic_version };
|
|
397
|
+
export type { string_version_dependency };
|
|
398
|
+
export type { string_file_extension };
|
|
399
|
+
export type { string_file_absolute_path };
|
|
400
|
+
export type { string_file_relative_path };
|
|
401
|
+
export type { string_file_path };
|
|
402
|
+
export type { string_folder_absolute_path };
|
|
403
|
+
export type { string_folder_relative_path };
|
|
404
|
+
export type { string_folder_path };
|
|
405
|
+
export type { string_filename };
|
|
406
|
+
export type { string_person_fullname };
|
|
407
|
+
export type { string_person_profile };
|
|
408
|
+
export type { string_license };
|
|
409
|
+
export type { string_attribute };
|
|
410
|
+
export type { string_attribute_value_scope };
|
|
411
|
+
export type { string_color };
|
|
412
|
+
export type { string_translate_name };
|
|
413
|
+
export type { string_translate_name_not_normalized };
|
|
414
|
+
export type { string_translate_language };
|
|
415
|
+
export type { string_javascript_name };
|
|
416
|
+
export type { string_token };
|
|
417
|
+
export type { string_license_token };
|
|
418
|
+
export type { string_password };
|
|
419
|
+
export type { string_ssh_key };
|
|
420
|
+
export type { string_pgp_key };
|
|
421
|
+
export type { string_date_iso8601 };
|
|
422
|
+
export type { number_usd };
|
|
423
|
+
export type { number_id };
|
|
424
|
+
export type { number_linecol_number };
|
|
425
|
+
export type { number_tokens };
|
|
426
|
+
export type { number_positive };
|
|
427
|
+
export type { number_negative };
|
|
428
|
+
export type { number_integer };
|
|
429
|
+
export type { number_percent };
|
|
430
|
+
export type { number_model_temperature };
|
|
431
|
+
export type { number_seed };
|
|
432
|
+
export type { number_likeness };
|
|
433
|
+
export type { number_miliseconds };
|
|
434
|
+
export type { number_seconds };
|
|
435
|
+
export type { number_minutes };
|
|
436
|
+
export type { number_hours };
|
|
437
|
+
export type { number_days };
|
|
438
|
+
export type { number_weeks };
|
|
439
|
+
export type { number_months };
|
|
440
|
+
export type { number_years };
|
|
441
|
+
export type { number_bytes };
|
|
442
|
+
export type { number_kilobytes };
|
|
443
|
+
export type { number_megabytes };
|
|
444
|
+
export type { number_gigabytes };
|
|
445
|
+
export type { number_terabytes };
|
|
446
|
+
export type { FromtoItems };
|
|
447
|
+
export type { CodeBlock };
|
|
448
|
+
export type { MarkdownSection };
|
|
449
|
+
export type { string_keyword };
|
|
450
|
+
export type { IKeywords };
|
|
451
|
+
export type { string_kebab_case };
|
|
452
|
+
export type { string_camelCase };
|
|
453
|
+
export type { string_PascalCase };
|
|
454
|
+
export type { string_SCREAMING_CASE };
|
|
455
|
+
export type { string_snake_case };
|
|
456
|
+
export type { ___ };
|
|
457
|
+
export type { really_any };
|
|
458
|
+
export type { really_unknown };
|
|
459
|
+
export type { TODO_any };
|
|
460
|
+
export type { TODO_object };
|
|
461
|
+
export type { TODO_unknown };
|
|
462
|
+
export type { string_promptbook_version };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PROMPTBOOK_VERSION } from '../version';
|
|
2
2
|
import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
|
|
3
3
|
import { extractParameterNamesFromPromptTemplate } from '../conversion/utils/extractParameterNamesFromPromptTemplate';
|
|
4
4
|
import { extractVariables } from '../conversion/utils/extractVariables';
|
|
@@ -8,27 +8,37 @@ import { forEachAsync } from '../execution/utils/forEachAsync';
|
|
|
8
8
|
import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
|
|
9
9
|
import { extractBlock } from '../postprocessing/utils/extractBlock';
|
|
10
10
|
import { $currentDate } from '../utils/currentDate';
|
|
11
|
+
import { deepClone } from '../utils/deepClone';
|
|
12
|
+
import { deepFreezeWithSameType } from '../utils/deepFreeze';
|
|
11
13
|
import { countCharacters } from '../utils/expectation-counters/countCharacters';
|
|
12
14
|
import { countLines } from '../utils/expectation-counters/countLines';
|
|
13
15
|
import { countPages } from '../utils/expectation-counters/countPages';
|
|
14
16
|
import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
|
|
15
|
-
import {
|
|
17
|
+
import { splitIntoSentences } from '../utils/expectation-counters/countSentences';
|
|
18
|
+
import { countSentences } from '../utils/expectation-counters/countSentences';
|
|
16
19
|
import { countWords } from '../utils/expectation-counters/countWords';
|
|
17
20
|
import { CountUtils } from '../utils/expectation-counters/index';
|
|
18
21
|
import { extractParameterNames } from '../utils/extractParameterNames';
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
22
|
+
import { isRunningInBrowser } from '../utils/isRunningInWhatever';
|
|
23
|
+
import { isRunningInNode } from '../utils/isRunningInWhatever';
|
|
24
|
+
import { isRunningInWebWorker } from '../utils/isRunningInWhatever';
|
|
21
25
|
import { capitalize } from '../utils/normalization/capitalize';
|
|
22
26
|
import { decapitalize } from '../utils/normalization/decapitalize';
|
|
27
|
+
import { DIACRITIC_VARIANTS_LETTERS } from '../utils/normalization/DIACRITIC_VARIANTS_LETTERS';
|
|
28
|
+
import type { string_keyword } from '../utils/normalization/IKeywords';
|
|
29
|
+
import type { IKeywords } from '../utils/normalization/IKeywords';
|
|
23
30
|
import { isValidKeyword } from '../utils/normalization/isValidKeyword';
|
|
24
31
|
import { nameToUriPart } from '../utils/normalization/nameToUriPart';
|
|
25
32
|
import { nameToUriParts } from '../utils/normalization/nameToUriParts';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { normalizeTo_camelCase
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
33
|
+
import type { string_kebab_case } from '../utils/normalization/normalize-to-kebab-case';
|
|
34
|
+
import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
|
|
35
|
+
import type { string_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
36
|
+
import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
|
|
37
|
+
import type { string_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
38
|
+
import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
|
|
39
|
+
import type { string_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
|
|
40
|
+
import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
|
|
41
|
+
import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
|
|
32
42
|
import { parseKeywords } from '../utils/normalization/parseKeywords';
|
|
33
43
|
import { parseKeywordsFromString } from '../utils/normalization/parseKeywordsFromString';
|
|
34
44
|
import { removeDiacritics } from '../utils/normalization/removeDiacritics';
|
|
@@ -53,25 +63,68 @@ import { isUrlOnPrivateNetwork } from '../utils/validators/url/isUrlOnPrivateNet
|
|
|
53
63
|
import { isValidPipelineUrl } from '../utils/validators/url/isValidPipelineUrl';
|
|
54
64
|
import { isValidUrl } from '../utils/validators/url/isValidUrl';
|
|
55
65
|
import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
export {
|
|
59
|
-
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
export {
|
|
66
|
+
export { PROMPTBOOK_VERSION };
|
|
67
|
+
export { renderPromptbookMermaid };
|
|
68
|
+
export { extractParameterNamesFromPromptTemplate };
|
|
69
|
+
export { extractVariables };
|
|
70
|
+
export { renameParameter };
|
|
71
|
+
export { titleToName };
|
|
72
|
+
export { forEachAsync };
|
|
73
|
+
export { isValidJsonString };
|
|
74
|
+
export { extractBlock };
|
|
75
|
+
export { $currentDate };
|
|
76
|
+
export { deepClone };
|
|
77
|
+
export { deepFreezeWithSameType };
|
|
78
|
+
export { countCharacters };
|
|
79
|
+
export { countLines };
|
|
80
|
+
export { countPages };
|
|
81
|
+
export { countParagraphs };
|
|
63
82
|
export { splitIntoSentences };
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
export { capitalize
|
|
72
|
-
export
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
83
|
+
export { countSentences };
|
|
84
|
+
export { countWords };
|
|
85
|
+
export { CountUtils };
|
|
86
|
+
export { extractParameterNames };
|
|
87
|
+
export { isRunningInBrowser };
|
|
88
|
+
export { isRunningInNode };
|
|
89
|
+
export { isRunningInWebWorker };
|
|
90
|
+
export { capitalize };
|
|
91
|
+
export { decapitalize };
|
|
92
|
+
export { DIACRITIC_VARIANTS_LETTERS };
|
|
93
|
+
export type { string_keyword };
|
|
94
|
+
export type { IKeywords };
|
|
95
|
+
export { isValidKeyword };
|
|
96
|
+
export { nameToUriPart };
|
|
97
|
+
export { nameToUriParts };
|
|
98
|
+
export type { string_kebab_case };
|
|
99
|
+
export { normalizeToKebabCase };
|
|
100
|
+
export type { string_camelCase };
|
|
101
|
+
export { normalizeTo_camelCase };
|
|
102
|
+
export type { string_PascalCase };
|
|
103
|
+
export { normalizeTo_PascalCase };
|
|
104
|
+
export type { string_SCREAMING_CASE };
|
|
105
|
+
export { normalizeTo_SCREAMING_CASE };
|
|
106
|
+
export { normalizeTo_snake_case };
|
|
107
|
+
export { parseKeywords };
|
|
108
|
+
export { parseKeywordsFromString };
|
|
109
|
+
export { removeDiacritics };
|
|
110
|
+
export { searchKeywords };
|
|
111
|
+
export { parseNumber };
|
|
112
|
+
export { $randomSeed };
|
|
113
|
+
export { removeEmojis };
|
|
114
|
+
export { removeQuotes };
|
|
115
|
+
export { replaceParameters };
|
|
116
|
+
export { difference };
|
|
117
|
+
export { intersection };
|
|
118
|
+
export { union };
|
|
119
|
+
export { trimCodeBlock };
|
|
120
|
+
export { trimEndOfCodeBlock };
|
|
121
|
+
export { unwrapResult };
|
|
122
|
+
export { isValidFilePath };
|
|
123
|
+
export { isValidJavascriptName };
|
|
124
|
+
export { isValidPromptbookVersion };
|
|
125
|
+
export { isValidSemanticVersion };
|
|
126
|
+
export { isHostnameOnPrivateNetwork };
|
|
127
|
+
export { isUrlOnPrivateNetwork };
|
|
128
|
+
export { isValidPipelineUrl };
|
|
129
|
+
export { isValidUrl };
|
|
130
|
+
export { isValidUuid };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { promptbookCli } from './promptbookCli';
|
|
2
|
+
/**
|
|
3
|
+
* Hidden utilities which should not be used by external consumers.
|
|
4
|
+
*
|
|
5
|
+
* @public exported from `@promptbook/cli`
|
|
6
|
+
*/
|
|
7
|
+
export declare const __CLI: {
|
|
8
|
+
__initialize: typeof promptbookCli;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Note: [🟡] This code should never be published outside of `@promptbook/cli`
|
|
12
|
+
*/
|