@promptbook/wizard 0.95.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/README.md +482 -0
- package/esm/index.es.js +16649 -0
- package/esm/index.es.js.map +1 -0
- package/esm/typings/books/index.d.ts +131 -0
- package/esm/typings/servers.d.ts +40 -0
- package/esm/typings/src/_packages/anthropic-claude.index.d.ts +16 -0
- package/esm/typings/src/_packages/azure-openai.index.d.ts +10 -0
- package/esm/typings/src/_packages/browser.index.d.ts +12 -0
- package/esm/typings/src/_packages/cli.index.d.ts +60 -0
- package/esm/typings/src/_packages/core.index.d.ts +296 -0
- package/esm/typings/src/_packages/deepseek.index.d.ts +10 -0
- package/esm/typings/src/_packages/documents.index.d.ts +8 -0
- package/esm/typings/src/_packages/editable.index.d.ts +90 -0
- package/esm/typings/src/_packages/fake-llm.index.d.ts +6 -0
- package/esm/typings/src/_packages/google.index.d.ts +12 -0
- package/esm/typings/src/_packages/javascript.index.d.ts +10 -0
- package/esm/typings/src/_packages/legacy-documents.index.d.ts +8 -0
- package/esm/typings/src/_packages/markdown-utils.index.d.ts +48 -0
- package/esm/typings/src/_packages/markitdown.index.d.ts +8 -0
- package/esm/typings/src/_packages/node.index.d.ts +24 -0
- package/esm/typings/src/_packages/ollama.index.d.ts +14 -0
- package/esm/typings/src/_packages/openai.index.d.ts +22 -0
- package/esm/typings/src/_packages/pdf.index.d.ts +14 -0
- package/esm/typings/src/_packages/remote-client.index.d.ts +16 -0
- package/esm/typings/src/_packages/remote-server.index.d.ts +12 -0
- package/esm/typings/src/_packages/templates.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +598 -0
- package/esm/typings/src/_packages/utils.index.d.ts +170 -0
- package/esm/typings/src/_packages/vercel.index.d.ts +6 -0
- package/esm/typings/src/_packages/website-crawler.index.d.ts +8 -0
- package/esm/typings/src/_packages/wizard.index.d.ts +60 -0
- package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +13 -0
- package/esm/typings/src/cli/cli-commands/about.d.ts +14 -0
- package/esm/typings/src/cli/cli-commands/common/handleActionErrors.d.ts +11 -0
- package/esm/typings/src/cli/cli-commands/hello.d.ts +14 -0
- package/esm/typings/src/cli/cli-commands/list-models.d.ts +13 -0
- package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +13 -0
- package/esm/typings/src/cli/cli-commands/login.d.ts +14 -0
- package/esm/typings/src/cli/cli-commands/make.d.ts +16 -0
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +15 -0
- package/esm/typings/src/cli/cli-commands/run.d.ts +17 -0
- package/esm/typings/src/cli/cli-commands/runInteractiveChatbot.d.ts +32 -0
- package/esm/typings/src/cli/cli-commands/start-server.d.ts +13 -0
- package/esm/typings/src/cli/cli-commands/test-command.d.ts +16 -0
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +7 -0
- package/esm/typings/src/cli/common/$provideLlmToolsForCli.d.ts +28 -0
- package/esm/typings/src/cli/main.d.ts +16 -0
- package/esm/typings/src/cli/promptbookCli.d.ts +13 -0
- package/esm/typings/src/cli/test/ptbk.d.ts +5 -0
- package/esm/typings/src/cli/test/ptbk.test.d.ts +1 -0
- package/esm/typings/src/collection/PipelineCollection.d.ts +25 -0
- package/esm/typings/src/collection/SimplePipelineCollection.d.ts +37 -0
- package/esm/typings/src/collection/collectionToJson.d.ts +13 -0
- package/esm/typings/src/collection/collectionToJson.test.d.ts +7 -0
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +65 -0
- package/esm/typings/src/collection/constructors/createCollectionFromDirectory.test.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +13 -0
- package/esm/typings/src/collection/constructors/createCollectionFromJson.test.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromPromise.d.ts +23 -0
- package/esm/typings/src/collection/constructors/createCollectionFromPromise.test.d.ts +1 -0
- package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +29 -0
- package/esm/typings/src/collection/constructors/createSubcollection.d.ts +13 -0
- package/esm/typings/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +11 -0
- package/esm/typings/src/commands/BOOK_VERSION/bookVersionCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/EXPECT/ExpectCommand.d.ts +17 -0
- package/esm/typings/src/commands/EXPECT/expectCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/EXPECT/expectCommandParser.d.ts +11 -0
- package/esm/typings/src/commands/FOREACH/ForeachCommand.d.ts +10 -0
- package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +27 -0
- package/esm/typings/src/commands/FOREACH/foreachCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +12 -0
- package/esm/typings/src/commands/FORMAT/FormatCommand.d.ts +9 -0
- package/esm/typings/src/commands/FORMAT/formatCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/FORMAT/formatCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/FORMFACTOR/FormfactorCommand.d.ts +11 -0
- package/esm/typings/src/commands/FORMFACTOR/formfactorCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +11 -0
- package/esm/typings/src/commands/JOKER/JokerCommand.d.ts +11 -0
- package/esm/typings/src/commands/JOKER/jokerCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/JOKER/jokerCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +11 -0
- package/esm/typings/src/commands/KNOWLEDGE/knowledgeCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +12 -0
- package/esm/typings/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +11 -0
- package/esm/typings/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +4 -0
- package/esm/typings/src/commands/MODEL/ModelCommand.d.ts +14 -0
- package/esm/typings/src/commands/MODEL/modelCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/MODEL/modelCommandParser.d.ts +10 -0
- package/esm/typings/src/commands/PARAMETER/ParameterCommand.d.ts +15 -0
- package/esm/typings/src/commands/PARAMETER/parameterCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/PARAMETER/parameterCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/PERSONA/PersonaCommand.d.ts +13 -0
- package/esm/typings/src/commands/PERSONA/personaCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/PERSONA/personaCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/POSTPROCESS/PostprocessCommand.d.ts +11 -0
- package/esm/typings/src/commands/POSTPROCESS/postprocessCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/SECTION/SectionCommand.d.ts +11 -0
- package/esm/typings/src/commands/SECTION/sectionCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/SECTION/sectionCommandParser.d.ts +20 -0
- package/esm/typings/src/commands/URL/UrlCommand.d.ts +10 -0
- package/esm/typings/src/commands/URL/urlCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/URL/urlCommandParser.d.ts +9 -0
- package/esm/typings/src/commands/X_ACTION/ActionCommand.d.ts +9 -0
- package/esm/typings/src/commands/X_ACTION/actionCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/X_ACTION/actionCommandParser.d.ts +12 -0
- package/esm/typings/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +9 -0
- package/esm/typings/src/commands/X_INSTRUMENT/instrumentCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +12 -0
- package/esm/typings/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +10 -0
- package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +11 -0
- package/esm/typings/src/commands/_common/getParserForCommand.d.ts +11 -0
- package/esm/typings/src/commands/_common/getParserForCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/_common/parseCommand.d.ts +12 -0
- package/esm/typings/src/commands/_common/parseCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/_common/stringifyCommand.d.ts +12 -0
- package/esm/typings/src/commands/_common/stringifyCommand.test.d.ts +1 -0
- package/esm/typings/src/commands/_common/types/Command.d.ts +6 -0
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +205 -0
- package/esm/typings/src/commands/_common/types/CommandType.d.ts +17 -0
- package/esm/typings/src/commands/_common/types/CommandUsagePlaces.d.ts +13 -0
- package/esm/typings/src/commands/index.d.ts +9 -0
- package/esm/typings/src/config.d.ts +313 -0
- package/esm/typings/src/config.test.d.ts +4 -0
- package/esm/typings/src/constants.d.ts +76 -0
- package/esm/typings/src/conversion/archive/loadArchive.d.ts +16 -0
- package/esm/typings/src/conversion/archive/saveArchive.d.ts +18 -0
- package/esm/typings/src/conversion/compilePipeline.d.ts +25 -0
- package/esm/typings/src/conversion/compilePipeline.test.d.ts +1 -0
- package/esm/typings/src/conversion/compilePipelineOnRemoteServer.d.ts +21 -0
- package/esm/typings/src/conversion/parsePipeline.d.ts +30 -0
- package/esm/typings/src/conversion/parsePipeline.test.d.ts +1 -0
- package/esm/typings/src/conversion/pipelineJsonToString.d.ts +18 -0
- package/esm/typings/src/conversion/prettify/PrettifyOptions.d.ts +13 -0
- package/esm/typings/src/conversion/prettify/prettifyPipelineString.d.ts +12 -0
- package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +30 -0
- package/esm/typings/src/conversion/utils/extractParameterNamesFromTask.d.ts +15 -0
- package/esm/typings/src/conversion/utils/extractParameterNamesFromTask.test.d.ts +1 -0
- package/esm/typings/src/conversion/validation/_importPipeline.d.ts +23 -0
- package/esm/typings/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +4 -0
- package/esm/typings/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +4 -0
- package/esm/typings/src/conversion/validation/validatePipeline.d.ts +42 -0
- package/esm/typings/src/conversion/validation/validatePipeline.test.d.ts +4 -0
- package/esm/typings/src/dialogs/callback/CallbackInterfaceTools.d.ts +17 -0
- package/esm/typings/src/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +14 -0
- package/esm/typings/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +22 -0
- package/esm/typings/src/dialogs/user-interface-execution-tools.test.d.ts +1 -0
- package/esm/typings/src/errors/0-BoilerplateError.d.ts +12 -0
- package/esm/typings/src/errors/0-index.d.ts +94 -0
- package/esm/typings/src/errors/AbstractFormatError.d.ts +11 -0
- package/esm/typings/src/errors/AuthenticationError.d.ts +9 -0
- package/esm/typings/src/errors/CollectionError.d.ts +9 -0
- package/esm/typings/src/errors/EnvironmentMismatchError.d.ts +9 -0
- package/esm/typings/src/errors/ExpectError.d.ts +12 -0
- package/esm/typings/src/errors/KnowledgeScrapeError.d.ts +9 -0
- package/esm/typings/src/errors/LimitReachedError.d.ts +9 -0
- package/esm/typings/src/errors/MissingToolsError.d.ts +9 -0
- package/esm/typings/src/errors/NotFoundError.d.ts +9 -0
- package/esm/typings/src/errors/NotYetImplementedError.d.ts +9 -0
- package/esm/typings/src/errors/ParseError.d.ts +12 -0
- package/esm/typings/src/errors/PipelineExecutionError.d.ts +14 -0
- package/esm/typings/src/errors/PipelineLogicError.d.ts +9 -0
- package/esm/typings/src/errors/PipelineUrlError.d.ts +9 -0
- package/esm/typings/src/errors/PromptbookFetchError.d.ts +9 -0
- package/esm/typings/src/errors/UnexpectedError.d.ts +9 -0
- package/esm/typings/src/errors/WrappedError.d.ts +10 -0
- package/esm/typings/src/errors/assertsError.d.ts +11 -0
- package/esm/typings/src/errors/utils/ErrorJson.d.ts +25 -0
- package/esm/typings/src/errors/utils/deserializeError.d.ts +7 -0
- package/esm/typings/src/errors/utils/deserializeError.test.d.ts +1 -0
- package/esm/typings/src/errors/utils/getErrorReportUrl.d.ts +6 -0
- package/esm/typings/src/errors/utils/serializeError.d.ts +7 -0
- package/esm/typings/src/errors/utils/serializeError.test.d.ts +1 -0
- package/esm/typings/src/executables/$provideExecutablesForNode.d.ts +12 -0
- package/esm/typings/src/executables/apps/locateLibreoffice.d.ts +12 -0
- package/esm/typings/src/executables/apps/locateLibreoffice.test.d.ts +1 -0
- package/esm/typings/src/executables/apps/locatePandoc.d.ts +12 -0
- package/esm/typings/src/executables/apps/locatePandoc.test.d.ts +1 -0
- package/esm/typings/src/executables/locateApp.d.ts +33 -0
- package/esm/typings/src/executables/locateApp.test.d.ts +1 -0
- package/esm/typings/src/executables/platforms/locateAppOnLinux.d.ts +13 -0
- package/esm/typings/src/executables/platforms/locateAppOnMacOs.d.ts +13 -0
- package/esm/typings/src/executables/platforms/locateAppOnWindows.d.ts +13 -0
- package/esm/typings/src/execution/AbstractTaskResult.d.ts +25 -0
- package/esm/typings/src/execution/AvailableModel.d.ts +46 -0
- package/esm/typings/src/execution/CommonToolsOptions.d.ts +28 -0
- package/esm/typings/src/execution/EmbeddingVector.d.ts +8 -0
- package/esm/typings/src/execution/Executables.d.ts +18 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +119 -0
- package/esm/typings/src/execution/ExecutionTools.d.ts +69 -0
- package/esm/typings/src/execution/FilesystemTools.d.ts +9 -0
- package/esm/typings/src/execution/LlmExecutionTools.d.ts +61 -0
- package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +11 -0
- package/esm/typings/src/execution/PipelineExecutor.d.ts +16 -0
- package/esm/typings/src/execution/PipelineExecutorResult.d.ts +39 -0
- package/esm/typings/src/execution/PromptResult.d.ts +101 -0
- package/esm/typings/src/execution/PromptbookFetch.d.ts +12 -0
- package/esm/typings/src/execution/PromptbookFetch.test-type.d.ts +5 -0
- package/esm/typings/src/execution/ScriptExecutionTools.d.ts +39 -0
- package/esm/typings/src/execution/UncertainNumber.d.ts +19 -0
- package/esm/typings/src/execution/Usage.d.ts +33 -0
- package/esm/typings/src/execution/UserInterfaceTools.d.ts +46 -0
- package/esm/typings/src/execution/assertsTaskSuccessful.d.ts +14 -0
- package/esm/typings/src/execution/createPipelineExecutor/$OngoingTaskResult.d.ts +48 -0
- package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorOptions.d.ts +46 -0
- package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +10 -0
- package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +48 -0
- package/esm/typings/src/execution/createPipelineExecutor/20-executeTask.d.ts +51 -0
- package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +27 -0
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +70 -0
- package/esm/typings/src/execution/createPipelineExecutor/computeCosineSimilarity.d.ts +13 -0
- package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +35 -0
- package/esm/typings/src/execution/createPipelineExecutor/getContextForTask.d.ts +14 -0
- package/esm/typings/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +10 -0
- package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +42 -0
- package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +48 -0
- package/esm/typings/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +9 -0
- package/esm/typings/src/execution/embeddingVectorToString.d.ts +7 -0
- package/esm/typings/src/execution/execution-report/ExecutionPromptReportJson.d.ts +24 -0
- package/esm/typings/src/execution/execution-report/ExecutionReportJson.d.ts +41 -0
- package/esm/typings/src/execution/execution-report/ExecutionReportString.d.ts +16 -0
- package/esm/typings/src/execution/execution-report/ExecutionReportStringOptions.d.ts +25 -0
- package/esm/typings/src/execution/execution-report/countWorkingDuration.d.ts +7 -0
- package/esm/typings/src/execution/execution-report/countWorkingDuration.test.d.ts +1 -0
- package/esm/typings/src/execution/execution-report/executionReportJsonToString.d.ts +15 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +7 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +11 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +8 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +22 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +7 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +8 -0
- package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -0
- package/esm/typings/src/execution/translation/automatic-translate/translateMessages.d.ts +12 -0
- package/esm/typings/src/execution/utils/$provideExecutionToolsForNode.d.ts +13 -0
- package/esm/typings/src/execution/utils/addUsage.d.ts +9 -0
- package/esm/typings/src/execution/utils/addUsage.test.d.ts +1 -0
- package/esm/typings/src/execution/utils/checkExpectations.d.ts +29 -0
- package/esm/typings/src/execution/utils/checkExpectations.test.d.ts +1 -0
- package/esm/typings/src/execution/utils/computeUsageCounts.d.ts +10 -0
- package/esm/typings/src/execution/utils/forEachAsync.d.ts +20 -0
- package/esm/typings/src/execution/utils/uncertainNumber.d.ts +10 -0
- package/esm/typings/src/execution/utils/usage-constants.d.ts +147 -0
- package/esm/typings/src/execution/utils/usageToHuman.d.ts +26 -0
- package/esm/typings/src/execution/utils/usageToWorktime.d.ts +20 -0
- package/esm/typings/src/execution/utils/usageToWorktime.test.d.ts +1 -0
- package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +10 -0
- package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +10 -0
- package/esm/typings/src/formats/_common/FormatParser.d.ts +72 -0
- package/esm/typings/src/formats/_common/FormatSubvalueParser.d.ts +66 -0
- package/esm/typings/src/formats/csv/CsvFormatError.d.ts +10 -0
- package/esm/typings/src/formats/csv/CsvFormatParser.d.ts +17 -0
- package/esm/typings/src/formats/csv/CsvSettings.d.ts +13 -0
- package/esm/typings/src/formats/csv/utils/csvParse.d.ts +12 -0
- package/esm/typings/src/formats/csv/utils/isValidCsvString.d.ts +9 -0
- package/esm/typings/src/formats/csv/utils/isValidCsvString.test.d.ts +1 -0
- package/esm/typings/src/formats/index.d.ts +9 -0
- package/esm/typings/src/formats/json/JsonFormatParser.d.ts +19 -0
- package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +9 -0
- package/esm/typings/src/formats/json/utils/isValidJsonString.test.d.ts +1 -0
- package/esm/typings/src/formats/json/utils/jsonParse.d.ts +8 -0
- package/esm/typings/src/formats/text/TextFormatParser.d.ts +19 -0
- package/esm/typings/src/formats/xml/XmlFormatParser.d.ts +19 -0
- package/esm/typings/src/formats/xml/utils/isValidXmlString.d.ts +9 -0
- package/esm/typings/src/formats/xml/utils/isValidXmlString.test.d.ts +1 -0
- package/esm/typings/src/formfactors/_boilerplate/BoilerplateFormfactorDefinition.d.ts +15 -0
- package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +49 -0
- package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +10 -0
- package/esm/typings/src/formfactors/_common/string_formfactor_name.d.ts +6 -0
- package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +45 -0
- package/esm/typings/src/formfactors/completion/CompletionFormfactorDefinition.d.ts +29 -0
- package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +25 -0
- package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +14 -0
- package/esm/typings/src/formfactors/image-generator/ImageGeneratorFormfactorDefinition.d.ts +24 -0
- package/esm/typings/src/formfactors/index.d.ts +170 -0
- package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +21 -0
- package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +26 -0
- package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +25 -0
- package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +20 -0
- package/esm/typings/src/high-level-abstractions/implicit-formfactor/ImplicitFormfactorHla.d.ts +10 -0
- package/esm/typings/src/high-level-abstractions/index.d.ts +54 -0
- package/esm/typings/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +13 -0
- package/esm/typings/src/llm-providers/_common/filterModels.d.ts +15 -0
- package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +13 -0
- package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +13 -0
- package/esm/typings/src/llm-providers/_common/register/$provideEnvFilename.d.ts +12 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +19 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +27 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +59 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +41 -0
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +22 -0
- package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +30 -0
- package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +58 -0
- package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +17 -0
- package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +49 -0
- package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +33 -0
- package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +27 -0
- package/esm/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +19 -0
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +22 -0
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +17 -0
- package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +36 -0
- package/esm/typings/src/llm-providers/_common/utils/pricing.d.ts +16 -0
- package/esm/typings/src/llm-providers/_common/utils/pricing.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +63 -0
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +21 -0
- package/esm/typings/src/llm-providers/_multiple/playground/playground.d.ts +5 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +66 -0
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +31 -0
- package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +24 -0
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +18 -0
- package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +19 -0
- package/esm/typings/src/llm-providers/anthropic-claude/playground/playground.d.ts +7 -0
- package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/anthropic-claude/register-constructor.d.ts +16 -0
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +67 -0
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +37 -0
- package/esm/typings/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +15 -0
- package/esm/typings/src/llm-providers/azure-openai/playground/playground.d.ts +6 -0
- package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +15 -0
- package/esm/typings/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +9 -0
- package/esm/typings/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/deepseek-models.d.ts +23 -0
- package/esm/typings/src/llm-providers/deepseek/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/deepseek/register-constructor.d.ts +15 -0
- package/esm/typings/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +9 -0
- package/esm/typings/src/llm-providers/google/createGoogleExecutionTools.d.ts +14 -0
- package/esm/typings/src/llm-providers/google/google-models.d.ts +23 -0
- package/esm/typings/src/llm-providers/google/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/google/register-constructor.d.ts +15 -0
- package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +15 -0
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +40 -0
- package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +44 -0
- package/esm/typings/src/llm-providers/mocked/test/fakeTextToExpectations.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/mocked/test/faked-completion.test.d.ts +1 -0
- package/esm/typings/src/llm-providers/mocked/test/joker.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/mocked/test/mocked-chat.test.d.ts +5 -0
- package/esm/typings/src/llm-providers/mocked/test/mocked-completion.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +44 -0
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +23 -0
- package/esm/typings/src/llm-providers/ollama/createOllamaExecutionTools.d.ts +11 -0
- package/esm/typings/src/llm-providers/ollama/ollama-models.d.ts +14 -0
- package/esm/typings/src/llm-providers/ollama/playground/playground.d.ts +6 -0
- package/esm/typings/src/llm-providers/ollama/register-configuration.d.ts +14 -0
- package/esm/typings/src/llm-providers/ollama/register-constructor.d.ts +15 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +36 -0
- package/esm/typings/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +14 -0
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +91 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +38 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +11 -0
- package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.d.ts +18 -0
- package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +15 -0
- package/esm/typings/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +17 -0
- package/esm/typings/src/llm-providers/openai/openai-models.d.ts +25 -0
- package/esm/typings/src/llm-providers/openai/playground/playground.d.ts +6 -0
- package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +24 -0
- package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +25 -0
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +59 -0
- package/esm/typings/src/llm-providers/remote/playground/playground.d.ts +5 -0
- package/esm/typings/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +23 -0
- package/esm/typings/src/llm-providers/vercel/VercelProvider.d.ts +13 -0
- package/esm/typings/src/llm-providers/vercel/createExecutionToolsFromVercelProvider.d.ts +8 -0
- package/esm/typings/src/llm-providers/vercel/playground/playground.d.ts +6 -0
- package/esm/typings/src/migrations/migratePipeline.d.ts +9 -0
- package/esm/typings/src/other/templates/getBookTemplates.d.ts +24 -0
- package/esm/typings/src/other/templates/getTemplatesPipelineCollection.d.ts +10 -0
- package/esm/typings/src/personas/preparePersona.d.ts +17 -0
- package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +22 -0
- package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +14 -0
- package/esm/typings/src/pipeline/PipelineInterface/getPipelineInterface.d.ts +11 -0
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineImplementingInterface.d.ts +27 -0
- package/esm/typings/src/pipeline/PipelineInterface/isPipelineInterfacesEqual.d.ts +10 -0
- package/esm/typings/src/pipeline/PipelineJson/CommonTaskJson.d.ts +103 -0
- package/esm/typings/src/pipeline/PipelineJson/DialogTaskJson.d.ts +13 -0
- package/esm/typings/src/pipeline/PipelineJson/Expectations.d.ts +40 -0
- package/esm/typings/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +73 -0
- package/esm/typings/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +44 -0
- package/esm/typings/src/pipeline/PipelineJson/ParameterJson.d.ts +98 -0
- package/esm/typings/src/pipeline/PipelineJson/PersonaJson.d.ts +47 -0
- package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +113 -0
- package/esm/typings/src/pipeline/PipelineJson/PreparationJson.d.ts +22 -0
- package/esm/typings/src/pipeline/PipelineJson/PromptTaskJson.d.ts +26 -0
- package/esm/typings/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +20 -0
- package/esm/typings/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +13 -0
- package/esm/typings/src/pipeline/PipelineJson/TaskJson.d.ts +11 -0
- package/esm/typings/src/pipeline/PipelineString.d.ts +11 -0
- package/esm/typings/src/pipeline/book-notation.d.ts +19 -0
- package/esm/typings/src/pipeline/isValidPipelineString.d.ts +13 -0
- package/esm/typings/src/pipeline/isValidPipelineString.test.d.ts +4 -0
- package/esm/typings/src/pipeline/prompt-notation.d.ts +31 -0
- package/esm/typings/src/pipeline/prompt-notation.test.d.ts +4 -0
- package/esm/typings/src/pipeline/validatePipelineString.d.ts +14 -0
- package/esm/typings/src/playground/playground.d.ts +5 -0
- package/esm/typings/src/postprocessing/utils/extractBlock.d.ts +16 -0
- package/esm/typings/src/postprocessing/utils/extractJsonBlock.d.ts +25 -0
- package/esm/typings/src/postprocessing/utils/extractJsonBlock.test.d.ts +1 -0
- package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +51 -0
- package/esm/typings/src/prepare/isPipelinePrepared.d.ts +18 -0
- package/esm/typings/src/prepare/isPipelinePrepared.test.d.ts +1 -0
- package/esm/typings/src/prepare/preparePipeline.d.ts +22 -0
- package/esm/typings/src/prepare/preparePipelineOnRemoteServer.d.ts +17 -0
- package/esm/typings/src/prepare/prepareTasks.d.ts +36 -0
- package/esm/typings/src/prepare/unpreparePipeline.d.ts +13 -0
- package/esm/typings/src/remote-server/RemoteServer.d.ts +23 -0
- package/esm/typings/src/remote-server/createRemoteClient.d.ts +10 -0
- package/esm/typings/src/remote-server/openapi-types.d.ts +626 -0
- package/esm/typings/src/remote-server/openapi.d.ts +581 -0
- package/esm/typings/src/remote-server/socket-types/_common/PromptbookServer_Error.d.ts +7 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/Identification.d.ts +59 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +11 -0
- package/esm/typings/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +10 -0
- package/esm/typings/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +17 -0
- package/esm/typings/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +17 -0
- package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Request.d.ts +17 -0
- package/esm/typings/src/remote-server/socket-types/prepare/PromptbookServer_PreparePipeline_Response.d.ts +12 -0
- package/esm/typings/src/remote-server/socket-types/prompt/PromptbookServer_Prompt_Request.d.ts +17 -0
- package/esm/typings/src/remote-server/socket-types/prompt/PromptbookServer_Prompt_Response.d.ts +12 -0
- package/esm/typings/src/remote-server/startRemoteServer.d.ts +25 -0
- package/esm/typings/src/remote-server/types/RemoteClientOptions.d.ts +24 -0
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +164 -0
- package/esm/typings/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +43 -0
- package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +20 -0
- package/esm/typings/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/_boilerplate/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/_common/Converter.d.ts +25 -0
- package/esm/typings/src/scrapers/_common/Scraper.d.ts +60 -0
- package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +16 -0
- package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.d.ts +19 -0
- package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.test.d.ts +1 -0
- package/esm/typings/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +12 -0
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +15 -0
- package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +13 -0
- package/esm/typings/src/scrapers/_common/register/$provideScriptingForNode.d.ts +11 -0
- package/esm/typings/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +13 -0
- package/esm/typings/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +13 -0
- package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +14 -0
- package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +46 -0
- package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +13 -0
- package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +35 -0
- package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +4 -0
- package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +13 -0
- package/esm/typings/src/scrapers/_common/utils/promptbookFetch.d.ts +10 -0
- package/esm/typings/src/scrapers/document/DocumentScraper.d.ts +43 -0
- package/esm/typings/src/scrapers/document/DocumentScraper.test.d.ts +4 -0
- package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +20 -0
- package/esm/typings/src/scrapers/document/playground/document-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/document/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/document/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +43 -0
- package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +4 -0
- package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +21 -0
- package/esm/typings/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/document-legacy/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +29 -0
- package/esm/typings/src/scrapers/markdown/MarkdownScraper.test.d.ts +4 -0
- package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +20 -0
- package/esm/typings/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/markdown/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/markitdown/MarkitdownScraper.d.ts +50 -0
- package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +22 -0
- package/esm/typings/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/markitdown/register-constructor.d.ts +17 -0
- package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +41 -0
- package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +21 -0
- package/esm/typings/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/pdf/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/website/WebsiteScraper.d.ts +50 -0
- package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +21 -0
- package/esm/typings/src/scrapers/website/playground/website-scraper-playground.d.ts +5 -0
- package/esm/typings/src/scrapers/website/register-constructor.d.ts +15 -0
- package/esm/typings/src/scrapers/website/register-metadata.d.ts +28 -0
- package/esm/typings/src/scrapers/website/utils/createShowdownConverter.d.ts +7 -0
- package/esm/typings/src/scrapers/website/utils/createShowdownConverter.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/custom-function-async.test.ts.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/custom-function-missing.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/custom-function-with-dependencies.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/custom-function.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/postprocessing.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/script-execution-errors.test.d.ts +1 -0
- package/esm/typings/src/scripting/_test/script-execution-tools.test.d.ts +1 -0
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +22 -0
- package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -0
- package/esm/typings/src/scripting/javascript/JavascriptExecutionTools.d.ts +8 -0
- package/esm/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +26 -0
- package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +56 -0
- package/esm/typings/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +14 -0
- package/esm/typings/src/scripting/javascript/utils/extractVariablesFromJavascript.test.d.ts +1 -0
- package/esm/typings/src/scripting/javascript/utils/extractVariablesFromScript.test.d.ts +1 -0
- package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +14 -0
- package/esm/typings/src/scripting/python/PythonExecutionTools.d.ts +18 -0
- package/esm/typings/src/scripting/typescript/TypescriptExecutionTools.d.ts +18 -0
- package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +24 -0
- package/esm/typings/src/storage/_common/PromptbookStorage.test-type.d.ts +5 -0
- package/esm/typings/src/storage/blackhole/BlackholeStorage.d.ts +33 -0
- package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +40 -0
- package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +40 -0
- package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +12 -0
- package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +8 -0
- package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.test.d.ts +1 -0
- package/esm/typings/src/storage/local-storage/getIndexedDbStorage.d.ts +11 -0
- package/esm/typings/src/storage/local-storage/getLocalStorage.d.ts +10 -0
- package/esm/typings/src/storage/local-storage/getSessionStorage.d.ts +10 -0
- package/esm/typings/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +14 -0
- package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +8 -0
- package/esm/typings/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +12 -0
- package/esm/typings/src/storage/memory/MemoryStorage.d.ts +33 -0
- package/esm/typings/src/storage/utils/PrefixStorage.d.ts +25 -0
- package/esm/typings/src/types/Arrayable.d.ts +11 -0
- package/esm/typings/src/types/IntermediateFilesStrategy.d.ts +8 -0
- package/esm/typings/src/types/ModelRequirements.d.ts +104 -0
- package/esm/typings/src/types/ModelVariant.d.ts +15 -0
- package/esm/typings/src/types/NonEmptyArray.d.ts +8 -0
- package/esm/typings/src/types/Prompt.d.ts +111 -0
- package/esm/typings/src/types/ScriptLanguage.d.ts +13 -0
- package/esm/typings/src/types/SectionType.d.ts +21 -0
- package/esm/typings/src/types/TaskType.d.ts +15 -0
- package/esm/typings/src/types/typeAliasEmoji.d.ts +12 -0
- package/esm/typings/src/types/typeAliases.d.ts +679 -0
- package/esm/typings/src/utils/$Register.d.ts +40 -0
- package/esm/typings/src/utils/$getCurrentDate.d.ts +10 -0
- package/esm/typings/src/utils/FromtoItems.d.ts +19 -0
- package/esm/typings/src/utils/arrayableToArray.d.ts +11 -0
- package/esm/typings/src/utils/arrayableToArray.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +17 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +13 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/deflatePipeline.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/removePipelineCommand.d.ts +22 -0
- package/esm/typings/src/utils/editable/edit-pipeline-string/removePipelineCommand.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/types/PipelineEditableSerialized.d.ts +27 -0
- package/esm/typings/src/utils/editable/utils/isFlatPipeline.d.ts +8 -0
- package/esm/typings/src/utils/editable/utils/isFlatPipeline.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/utils/renamePipelineParameter.d.ts +29 -0
- package/esm/typings/src/utils/editable/utils/renamePipelineParameter.test.d.ts +1 -0
- package/esm/typings/src/utils/editable/utils/stringifyPipelineJson.d.ts +16 -0
- package/esm/typings/src/utils/emojis.d.ts +24 -0
- package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +10 -0
- package/esm/typings/src/utils/environment/$isRunningInBrowser.d.ts +11 -0
- package/esm/typings/src/utils/environment/$isRunningInJest.d.ts +11 -0
- package/esm/typings/src/utils/environment/$isRunningInNode.d.ts +11 -0
- package/esm/typings/src/utils/environment/$isRunningInWebWorker.d.ts +11 -0
- package/esm/typings/src/utils/execCommand/$execCommand.d.ts +16 -0
- package/esm/typings/src/utils/execCommand/$execCommandNormalizeOptions.d.ts +12 -0
- package/esm/typings/src/utils/execCommand/$execCommands.d.ts +18 -0
- package/esm/typings/src/utils/execCommand/ExecCommandOptions.d.ts +45 -0
- package/esm/typings/src/utils/execCommand/execCommand.test.d.ts +1 -0
- package/esm/typings/src/utils/execCommand/execCommandNormalizeOptions.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/constants.d.ts +16 -0
- package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +10 -0
- package/esm/typings/src/utils/expectation-counters/countCharacters.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countLines.d.ts +12 -0
- package/esm/typings/src/utils/expectation-counters/countLines.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countPages.d.ts +12 -0
- package/esm/typings/src/utils/expectation-counters/countPages.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +10 -0
- package/esm/typings/src/utils/expectation-counters/countParagraphs.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +16 -0
- package/esm/typings/src/utils/expectation-counters/countSentences.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/countWords.d.ts +10 -0
- package/esm/typings/src/utils/expectation-counters/countWords.test.d.ts +1 -0
- package/esm/typings/src/utils/expectation-counters/index.d.ts +12 -0
- package/esm/typings/src/utils/files/extensionToMimeType.d.ts +8 -0
- package/esm/typings/src/utils/files/extensionToMimeType.test.d.ts +1 -0
- package/esm/typings/src/utils/files/getFileExtension.d.ts +8 -0
- package/esm/typings/src/utils/files/getFileExtension.test.d.ts +1 -0
- package/esm/typings/src/utils/files/isDirectoryExisting.d.ts +14 -0
- package/esm/typings/src/utils/files/isDirectoryExisting.test.d.ts +1 -0
- package/esm/typings/src/utils/files/isExecutable.d.ts +11 -0
- package/esm/typings/src/utils/files/isFileExisting.d.ts +13 -0
- package/esm/typings/src/utils/files/isFileExisting.test.d.ts +1 -0
- package/esm/typings/src/utils/files/listAllFiles.d.ts +17 -0
- package/esm/typings/src/utils/files/listAllFiles.test.d.ts +1 -0
- package/esm/typings/src/utils/files/mimeTypeToExtension.d.ts +10 -0
- package/esm/typings/src/utils/files/mimeTypeToExtension.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +14 -0
- package/esm/typings/src/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +38 -0
- package/esm/typings/src/utils/markdown/createMarkdownChart.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/createMarkdownTable.d.ts +11 -0
- package/esm/typings/src/utils/markdown/createMarkdownTable.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/escapeMarkdownBlock.d.ts +11 -0
- package/esm/typings/src/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown-real.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +36 -0
- package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +15 -0
- package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +22 -0
- package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/flattenMarkdown.d.ts +17 -0
- package/esm/typings/src/utils/markdown/flattenMarkdown.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/parseMarkdownSection.d.ts +34 -0
- package/esm/typings/src/utils/markdown/parseMarkdownSection.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/prettifyMarkdown.d.ts +9 -0
- package/esm/typings/src/utils/markdown/prettifyMarkdown.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/removeMarkdownComments.d.ts +10 -0
- package/esm/typings/src/utils/markdown/removeMarkdownComments.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/removeMarkdownFormatting.d.ts +9 -0
- package/esm/typings/src/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.d.ts +15 -0
- package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +12 -0
- package/esm/typings/src/utils/normalization/IKeywords.d.ts +21 -0
- package/esm/typings/src/utils/normalization/capitalize.d.ts +6 -0
- package/esm/typings/src/utils/normalization/capitalize.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/decapitalize.d.ts +6 -0
- package/esm/typings/src/utils/normalization/decapitalize.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/isValidKeyword.d.ts +10 -0
- package/esm/typings/src/utils/normalization/isValidKeyword.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +9 -0
- package/esm/typings/src/utils/normalization/nameToUriPart.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +9 -0
- package/esm/typings/src/utils/normalization/nameToUriParts.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +21 -0
- package/esm/typings/src/utils/normalization/normalize-to-kebab-case.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +17 -0
- package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +26 -0
- package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +22 -0
- package/esm/typings/src/utils/normalization/normalizeTo_camelCase.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +17 -0
- package/esm/typings/src/utils/normalization/normalizeTo_snake_case.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/normalizeWhitespaces.d.ts +6 -0
- package/esm/typings/src/utils/normalization/normalizeWhitespaces.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/orderJson.d.ts +21 -0
- package/esm/typings/src/utils/normalization/orderJson.test.d.ts +4 -0
- package/esm/typings/src/utils/normalization/parseKeywords.d.ts +16 -0
- package/esm/typings/src/utils/normalization/parseKeywords.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/parseKeywordsFromString.d.ts +9 -0
- package/esm/typings/src/utils/normalization/parseKeywordsFromString.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +11 -0
- package/esm/typings/src/utils/normalization/removeDiacritics.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/searchKeywords.d.ts +13 -0
- package/esm/typings/src/utils/normalization/searchKeywords.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/suffixUrl.d.ts +7 -0
- package/esm/typings/src/utils/normalization/suffixUrl.test.d.ts +1 -0
- package/esm/typings/src/utils/normalization/titleToName.d.ts +9 -0
- package/esm/typings/src/utils/normalization/titleToName.test.d.ts +1 -0
- package/esm/typings/src/utils/organization/$sideEffect.d.ts +9 -0
- package/esm/typings/src/utils/organization/TODO_USE.d.ts +12 -0
- package/esm/typings/src/utils/organization/TODO_any.d.ts +6 -0
- package/esm/typings/src/utils/organization/TODO_narrow.d.ts +6 -0
- package/esm/typings/src/utils/organization/TODO_object.d.ts +6 -0
- package/esm/typings/src/utils/organization/TODO_remove_as.d.ts +6 -0
- package/esm/typings/src/utils/organization/TODO_string.d.ts +6 -0
- package/esm/typings/src/utils/organization/TODO_unknown.d.ts +6 -0
- package/esm/typings/src/utils/organization/___and___.d.ts +7 -0
- package/esm/typings/src/utils/organization/___or___.d.ts +6 -0
- package/esm/typings/src/utils/organization/empty_object.d.ts +10 -0
- package/esm/typings/src/utils/organization/just.d.ts +14 -0
- package/esm/typings/src/utils/organization/just_empty_object.d.ts +12 -0
- package/esm/typings/src/utils/organization/keepTypeImported.d.ts +9 -0
- package/esm/typings/src/utils/organization/keepUnused.d.ts +16 -0
- package/esm/typings/src/utils/organization/really_any.d.ts +6 -0
- package/esm/typings/src/utils/organization/really_unknown.d.ts +6 -0
- package/esm/typings/src/utils/organization/spaceTrim.d.ts +11 -0
- package/esm/typings/src/utils/parameters/extractParameterNames.d.ts +10 -0
- package/esm/typings/src/utils/parameters/extractParameterNames.test.d.ts +1 -0
- package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +27 -0
- package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.test.d.ts +1 -0
- package/esm/typings/src/utils/parameters/numberToString.d.ts +7 -0
- package/esm/typings/src/utils/parameters/numberToString.test.d.ts +1 -0
- package/esm/typings/src/utils/parameters/templateParameters.d.ts +16 -0
- package/esm/typings/src/utils/parameters/templateParameters.test.d.ts +1 -0
- package/esm/typings/src/utils/parameters/valueToString.d.ts +17 -0
- package/esm/typings/src/utils/parameters/valueToString.test.d.ts +1 -0
- package/esm/typings/src/utils/parseNumber.d.ts +16 -0
- package/esm/typings/src/utils/parseNumber.test.d.ts +1 -0
- package/esm/typings/src/utils/random/$randomSeed.d.ts +10 -0
- package/esm/typings/src/utils/random/$randomToken.d.ts +13 -0
- package/esm/typings/src/utils/removeEmojis.d.ts +8 -0
- package/esm/typings/src/utils/removeEmojis.test.d.ts +1 -0
- package/esm/typings/src/utils/removeQuotes.d.ts +14 -0
- package/esm/typings/src/utils/removeQuotes.test.d.ts +1 -0
- package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +14 -0
- package/esm/typings/src/utils/serialization/asSerializable.d.ts +15 -0
- package/esm/typings/src/utils/serialization/asSerializable.test.d.ts +1 -0
- package/esm/typings/src/utils/serialization/checkSerializableAsJson.d.ts +45 -0
- package/esm/typings/src/utils/serialization/clonePipeline.d.ts +14 -0
- package/esm/typings/src/utils/serialization/deepClone.d.ts +14 -0
- package/esm/typings/src/utils/serialization/deepClone.test.d.ts +1 -0
- package/esm/typings/src/utils/serialization/exportJson.d.ts +29 -0
- package/esm/typings/src/utils/serialization/isSerializableAsJson.d.ts +25 -0
- package/esm/typings/src/utils/serialization/isSerializableAsJson.test.d.ts +1 -0
- package/esm/typings/src/utils/serialization/jsonStringsToJsons.d.ts +9 -0
- package/esm/typings/src/utils/serialization/jsonStringsToJsons.test.d.ts +1 -0
- package/esm/typings/src/utils/sets/difference.d.ts +10 -0
- package/esm/typings/src/utils/sets/difference.test.d.ts +1 -0
- package/esm/typings/src/utils/sets/intersection.d.ts +7 -0
- package/esm/typings/src/utils/sets/intersection.test.d.ts +1 -0
- package/esm/typings/src/utils/sets/union.d.ts +7 -0
- package/esm/typings/src/utils/sets/union.test.d.ts +1 -0
- package/esm/typings/src/utils/trimCodeBlock.d.ts +9 -0
- package/esm/typings/src/utils/trimCodeBlock.test.d.ts +1 -0
- package/esm/typings/src/utils/trimEndOfCodeBlock.d.ts +9 -0
- package/esm/typings/src/utils/trimEndOfCodeBlock.test.d.ts +1 -0
- package/esm/typings/src/utils/unwrapResult.d.ts +37 -0
- package/esm/typings/src/utils/unwrapResult.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/email/isValidEmail.d.ts +8 -0
- package/esm/typings/src/utils/validators/email/isValidEmail.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/filePath/isRootPath.d.ts +12 -0
- package/esm/typings/src/utils/validators/filePath/isRootPath.test.d.ts +4 -0
- package/esm/typings/src/utils/validators/filePath/isValidFilePath.d.ts +12 -0
- package/esm/typings/src/utils/validators/filePath/isValidFilePath.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +10 -0
- package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +11 -0
- package/esm/typings/src/utils/validators/parameterName/validateParameterName.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +15 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +12 -0
- package/esm/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +11 -0
- package/esm/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +13 -0
- package/esm/typings/src/utils/validators/url/isUrlOnPrivateNetwork.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isValidPipelineUrl.d.ts +15 -0
- package/esm/typings/src/utils/validators/url/isValidPipelineUrl.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/url/isValidUrl.d.ts +13 -0
- package/esm/typings/src/utils/validators/url/isValidUrl.test.d.ts +1 -0
- package/esm/typings/src/utils/validators/uuid/isValidUuid.d.ts +8 -0
- package/esm/typings/src/utils/validators/uuid/isValidUuid.test.d.ts +1 -0
- package/esm/typings/src/version.d.ts +26 -0
- package/esm/typings/src/wizard/$getCompiledBook.d.ts +16 -0
- package/esm/typings/src/wizard/wizard.d.ts +68 -0
- package/package.json +104 -0
- package/umd/index.umd.js +16694 -0
- package/umd/index.umd.js.map +1 -0
@@ -0,0 +1,679 @@
|
|
1
|
+
import type { TupleToUnion } from 'type-fest';
|
2
|
+
import { RESERVED_PARAMETER_NAMES } from '../constants';
|
3
|
+
import type { really_unknown } from '../utils/organization/really_unknown';
|
4
|
+
/**
|
5
|
+
* Semantic helper
|
6
|
+
*/
|
7
|
+
export type string_business_category_name = 'restaurant' | 'grocery' | 'person' | 'conference' | string;
|
8
|
+
/**
|
9
|
+
* Semantic helper
|
10
|
+
*
|
11
|
+
* For example `"gpt-4"`
|
12
|
+
*/
|
13
|
+
export type string_model_name = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k-0613' | string;
|
14
|
+
/**
|
15
|
+
* Semantic helper
|
16
|
+
*
|
17
|
+
* For example `"A cat wearing a hat"`
|
18
|
+
*/
|
19
|
+
export type string_prompt = string;
|
20
|
+
/**
|
21
|
+
* Semantic helper
|
22
|
+
*
|
23
|
+
* For example `"A cat wearing a {item}"`
|
24
|
+
*/
|
25
|
+
export type string_template = string;
|
26
|
+
/**
|
27
|
+
* Semantic helper
|
28
|
+
*
|
29
|
+
* For example `"How many hats does the cat wear?"`
|
30
|
+
*/
|
31
|
+
export type string_text_prompt = string_prompt;
|
32
|
+
/**
|
33
|
+
* Semantic helper
|
34
|
+
*
|
35
|
+
* For example `"How many hats does the cat wear?"`
|
36
|
+
*/
|
37
|
+
export type string_chat_prompt = string_text_prompt;
|
38
|
+
/**
|
39
|
+
* Semantic helper
|
40
|
+
*
|
41
|
+
* For example `"You are an AI assistant. You are here to help me with my work."`
|
42
|
+
*/
|
43
|
+
export type string_system_message = string_text_prompt;
|
44
|
+
/**
|
45
|
+
* Semantic helper
|
46
|
+
*
|
47
|
+
* For example `"Following is a text about cats: Once upon a time there was a cat"`
|
48
|
+
*/
|
49
|
+
export type string_completion_prompt = string_text_prompt;
|
50
|
+
/**
|
51
|
+
* Semantic helper
|
52
|
+
*
|
53
|
+
* For example `"index"` or `"explanation"`
|
54
|
+
* Always in kebab-case
|
55
|
+
*/
|
56
|
+
export type string_page = 'index' | string;
|
57
|
+
/**
|
58
|
+
* Semantic helper
|
59
|
+
*
|
60
|
+
* For example `"text/plain"` or `"application/collboard"`
|
61
|
+
*/
|
62
|
+
export type string_mime_type = string;
|
63
|
+
/**
|
64
|
+
* Semantic helper
|
65
|
+
*
|
66
|
+
* For example `"text/*"` or `"image/*"`
|
67
|
+
*
|
68
|
+
*
|
69
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
|
70
|
+
*/
|
71
|
+
export type string_mime_type_with_wildcard = string;
|
72
|
+
/**
|
73
|
+
* Semantic helper
|
74
|
+
*
|
75
|
+
* For example `"a"`
|
76
|
+
*/
|
77
|
+
export type string_char = string;
|
78
|
+
/**
|
79
|
+
* Semantic helper
|
80
|
+
* Unique identifier of anything
|
81
|
+
*
|
82
|
+
* For example `"ainautes"`
|
83
|
+
*/
|
84
|
+
export type string_name = string;
|
85
|
+
/**
|
86
|
+
* Semantic helper
|
87
|
+
* Unique identifier of anything
|
88
|
+
*
|
89
|
+
* For example `"eventTitle"`
|
90
|
+
*/
|
91
|
+
export type string_parameter_name = string_name;
|
92
|
+
/**
|
93
|
+
* Semantic helper
|
94
|
+
* Unique identifier of parameter
|
95
|
+
*
|
96
|
+
* For example `"DevConf 2024"`
|
97
|
+
*/
|
98
|
+
export type string_parameter_value = string;
|
99
|
+
/**
|
100
|
+
* Parameters of the pipeline
|
101
|
+
*
|
102
|
+
* There are three types of parameters:
|
103
|
+
* - **INPUT PARAMETERs** are required to execute the pipeline.
|
104
|
+
* - **Intermediate parameters** are used internally in the pipeline.
|
105
|
+
* - **OUTPUT PARAMETERs** are not used internally in the pipeline, but are returned as the result of the pipeline execution.
|
106
|
+
*
|
107
|
+
* Note: [🚉] This is fully serializable as JSON
|
108
|
+
* @see https://ptbk.io/parameters
|
109
|
+
*/
|
110
|
+
export type Parameters = Exclude<Record<string_parameter_name, string_parameter_value>, ReservedParameters>;
|
111
|
+
/**
|
112
|
+
* Parameters to pass to execution of the pipeline
|
113
|
+
*
|
114
|
+
* Note: [🚉] This should be fully serializable as JSON
|
115
|
+
* @see https://ptbk.io/parameters
|
116
|
+
*/
|
117
|
+
export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>;
|
118
|
+
/**
|
119
|
+
* Semantic helper
|
120
|
+
* Unique identifier of reserved parameter
|
121
|
+
*
|
122
|
+
* For example `"context"`
|
123
|
+
*/
|
124
|
+
export type string_reserved_parameter_name = TupleToUnion<typeof RESERVED_PARAMETER_NAMES>;
|
125
|
+
/**
|
126
|
+
* Represents a mapping of reserved parameter names to their values.
|
127
|
+
* Reserved parameters are used internally by the pipeline and should not be set by users.
|
128
|
+
*
|
129
|
+
* Note: [🚉] This is fully serializable as JSON
|
130
|
+
*/
|
131
|
+
export type ReservedParameters = Record<string_reserved_parameter_name, string_parameter_value>;
|
132
|
+
/**
|
133
|
+
* Semantic helper
|
134
|
+
* Title of anything
|
135
|
+
*
|
136
|
+
* For example `"Ai*nautes"`
|
137
|
+
*/
|
138
|
+
export type string_title = string;
|
139
|
+
/**
|
140
|
+
* Unstructured description of the persona
|
141
|
+
*
|
142
|
+
* For example `"Skilled copywriter"`
|
143
|
+
*/
|
144
|
+
export type string_persona_description = string;
|
145
|
+
/**
|
146
|
+
* Unstructured description of the model
|
147
|
+
*
|
148
|
+
* For example `"Model with logical reasoning and creative mindset"`
|
149
|
+
*/
|
150
|
+
export type string_model_description = string;
|
151
|
+
/**
|
152
|
+
* Source of one knowledge piece.
|
153
|
+
*
|
154
|
+
* It can be a link, a relative path to file or direct text content.
|
155
|
+
*
|
156
|
+
* For example `"https://pavolhejny.com/"`
|
157
|
+
* For example `"./pavol-hejny-cv.pdf"`
|
158
|
+
* For example `"Pavol Hejný has web https://pavolhejny.com/"`
|
159
|
+
* For example `"Pavol Hejný is web developer and creator of Promptbook and Collboard"`
|
160
|
+
*
|
161
|
+
* Note: Distinguishes between `string_knowledge_source_content` and `string_knowledge_source_link`:
|
162
|
+
* `string_knowledge_source_content` refers to the actual content or source of knowledge
|
163
|
+
* `string_knowledge_source_link` refers to a reference or link to the knowledge source
|
164
|
+
*/
|
165
|
+
export type string_knowledge_source_content = string_knowledge_source_link | string_markdown;
|
166
|
+
/**
|
167
|
+
* One link to a knowledge source.
|
168
|
+
*
|
169
|
+
* It can be a URL or relative path.
|
170
|
+
*
|
171
|
+
* For example `"https://pavolhejny.com/"`
|
172
|
+
* For example `"./pavol-hejny-cv.pdf"`
|
173
|
+
*
|
174
|
+
* Note: string_knowledge_source_link refers to a reference or link to the knowledge source, while string_knowledge_source_content can be the link or the actual content.
|
175
|
+
*/
|
176
|
+
export type string_knowledge_source_link = string_url | string_filename;
|
177
|
+
/**
|
178
|
+
* Semantic helper
|
179
|
+
*
|
180
|
+
* For example `"<div>Hello World!</div>"`
|
181
|
+
*/
|
182
|
+
export type string_html = string;
|
183
|
+
/**
|
184
|
+
* Semantic helper
|
185
|
+
*
|
186
|
+
* For example `"<foo>bar</foo>"`
|
187
|
+
*
|
188
|
+
*
|
189
|
+
* TODO: [🎞️] Probably use some object-based method for working with XMLs
|
190
|
+
*/
|
191
|
+
export type string_xml = string;
|
192
|
+
/**
|
193
|
+
* Semantic helper
|
194
|
+
*
|
195
|
+
* For example `"**Hello** World!"`
|
196
|
+
*
|
197
|
+
* @public exported from `@promptbook/markdown-utils`
|
198
|
+
*/
|
199
|
+
export type string_markdown = string;
|
200
|
+
/**
|
201
|
+
* Semantic helper
|
202
|
+
*
|
203
|
+
* Markdown text with exactly ONE heading on first line NO less NO more
|
204
|
+
*
|
205
|
+
* @public exported from `@promptbook/markdown-utils`
|
206
|
+
*/
|
207
|
+
export type string_markdown_section = string;
|
208
|
+
/**
|
209
|
+
* Semantic helper
|
210
|
+
*
|
211
|
+
* Markdown without any headings like h1, h2
|
212
|
+
* BUT with formatting, lists, blockquotes, blocks, etc. is allowed
|
213
|
+
*
|
214
|
+
* @public exported from `@promptbook/markdown-utils`
|
215
|
+
*/
|
216
|
+
export type string_markdown_section_content = string;
|
217
|
+
/**
|
218
|
+
* Semantic helper
|
219
|
+
*
|
220
|
+
* Markdown text without any structure like h1, h2, lists, blockquotes, blocks, etc.
|
221
|
+
* BUT with bold, italic, etc. is allowed
|
222
|
+
*
|
223
|
+
* For example `"**Hello** World!"`
|
224
|
+
*
|
225
|
+
* @public exported from `@promptbook/markdown-utils`
|
226
|
+
*/
|
227
|
+
export type string_markdown_text = string;
|
228
|
+
/**
|
229
|
+
* Semantic helper
|
230
|
+
*
|
231
|
+
* Markdown code block language
|
232
|
+
*
|
233
|
+
* For example ```js -> `"js"`
|
234
|
+
*
|
235
|
+
* @public exported from `@promptbook/markdown-utils`
|
236
|
+
*/
|
237
|
+
export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' | 'javascript' | 'css' | 'json';
|
238
|
+
/**
|
239
|
+
* A URL pointing to Promptbook documentation or a specific discussion.
|
240
|
+
*
|
241
|
+
* For example: `https://github.com/webgptorg/promptbook/discussions/123`
|
242
|
+
*/
|
243
|
+
export type string_promptbook_documentation_url = `https://github.com/webgptorg/promptbook/discussions/${number | `@@${string}`}`;
|
244
|
+
/**
|
245
|
+
* Semantic helper
|
246
|
+
*
|
247
|
+
* For example `"towns.cz"`
|
248
|
+
*/
|
249
|
+
export type string_domain = string;
|
250
|
+
/**
|
251
|
+
* Semantic helper
|
252
|
+
*
|
253
|
+
* For example `"https://*.pavolhejny.com/*"`
|
254
|
+
*/
|
255
|
+
export type string_origin = string;
|
256
|
+
/**
|
257
|
+
* Semantic helper
|
258
|
+
*
|
259
|
+
* For example `"com"`
|
260
|
+
*/
|
261
|
+
export type string_tdl = string;
|
262
|
+
/**
|
263
|
+
* Semantic helper
|
264
|
+
*
|
265
|
+
* For example `.foo{border: 1px solid red}`
|
266
|
+
*/
|
267
|
+
export type string_css = string;
|
268
|
+
/**
|
269
|
+
* Semantic helper
|
270
|
+
*
|
271
|
+
* For example `"<svg><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>"`
|
272
|
+
*/
|
273
|
+
export type string_svg = string;
|
274
|
+
/**
|
275
|
+
* Semantic helper
|
276
|
+
*
|
277
|
+
* For example `console.info("Hello World!")` or `print("Hello World!")`
|
278
|
+
*/
|
279
|
+
export type string_script = string;
|
280
|
+
/**
|
281
|
+
* Semantic helper
|
282
|
+
*
|
283
|
+
* For example `console.info("Hello World!")`
|
284
|
+
*/
|
285
|
+
export type string_javascript = string;
|
286
|
+
/**
|
287
|
+
* Semantic helper
|
288
|
+
*
|
289
|
+
* For example `console.info("Hello World!" as string)`
|
290
|
+
*/
|
291
|
+
export type string_typescript = string;
|
292
|
+
/**
|
293
|
+
* Semantic helper for JSON strings
|
294
|
+
*
|
295
|
+
* Note: TType is a type of the JSON object inside the string
|
296
|
+
*
|
297
|
+
* For example `{"foo": "bar"}`
|
298
|
+
*/
|
299
|
+
export type string_json<TType> = string & {
|
300
|
+
_type: 'string_json';
|
301
|
+
scheme: TType;
|
302
|
+
};
|
303
|
+
/**
|
304
|
+
* Semantic helper
|
305
|
+
*
|
306
|
+
* For example `menu`
|
307
|
+
*/
|
308
|
+
export type string_css_class = string;
|
309
|
+
/**
|
310
|
+
* Semantic helper
|
311
|
+
*
|
312
|
+
* For example `border`
|
313
|
+
*/
|
314
|
+
export type string_css_property = string;
|
315
|
+
/**
|
316
|
+
* Semantic helper
|
317
|
+
*
|
318
|
+
* For example `13px`
|
319
|
+
*/
|
320
|
+
export type string_css_value = string;
|
321
|
+
/**
|
322
|
+
* Semantic helper
|
323
|
+
*
|
324
|
+
* For example `.foo`
|
325
|
+
*/
|
326
|
+
export type string_css_selector = string;
|
327
|
+
/**
|
328
|
+
* Semantic helper
|
329
|
+
*
|
330
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
|
331
|
+
*/
|
332
|
+
export type string_url = string;
|
333
|
+
/**
|
334
|
+
* Semantic helper
|
335
|
+
*
|
336
|
+
* For example `"https://s1.ptbk.io/promptbook"`
|
337
|
+
*/
|
338
|
+
export type string_promptbook_server_url = string;
|
339
|
+
/**
|
340
|
+
* Semantic helper
|
341
|
+
*
|
342
|
+
* For example `"https://collboard.com"`
|
343
|
+
*/
|
344
|
+
export type string_base_url = string;
|
345
|
+
/**
|
346
|
+
* Semantic helper
|
347
|
+
*
|
348
|
+
* For example `"https://promptbook.studio/webgpt/"`
|
349
|
+
*/
|
350
|
+
export type string_pipeline_root_url = string;
|
351
|
+
/**
|
352
|
+
* Semantic helper
|
353
|
+
*
|
354
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book"`
|
355
|
+
*/
|
356
|
+
export type string_pipeline_url = string;
|
357
|
+
/**
|
358
|
+
* Semantic helper
|
359
|
+
*
|
360
|
+
* For example `"https://promptbook.studio/webgpt/write-website-content-cs.book#keywords"`
|
361
|
+
*/
|
362
|
+
export type string_pipeline_url_with_task_hash = string;
|
363
|
+
/**
|
364
|
+
* Semantic helper
|
365
|
+
*
|
366
|
+
* For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
|
367
|
+
*/
|
368
|
+
export type string_data_url = `data:${string_mime_type};base64,${string_base64}`;
|
369
|
+
/**
|
370
|
+
* Semantic helper
|
371
|
+
*
|
372
|
+
* For example `"SGVsbG8sIFdvcmxkIQ=="`
|
373
|
+
*/
|
374
|
+
export type string_base64 = string;
|
375
|
+
/**
|
376
|
+
* Semantic helper
|
377
|
+
*
|
378
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
|
379
|
+
*/
|
380
|
+
export type string_href = string;
|
381
|
+
/**
|
382
|
+
* Semantic helper
|
383
|
+
*
|
384
|
+
* For example `"https://collboard.com/9SeSQTupmQHwuSrLi.png?width=1200&height=630"`
|
385
|
+
*/
|
386
|
+
export type string_url_image = string;
|
387
|
+
/**
|
388
|
+
* Semantic helper
|
389
|
+
*
|
390
|
+
* For example `"C:/Users/me/AppData/Local/Pandoc/pandoc.exe"`
|
391
|
+
* For example `"C:/Program Files/LibreOffice/program/swriter.exe"`
|
392
|
+
*/
|
393
|
+
export type string_executable_path = string;
|
394
|
+
/**
|
395
|
+
* Semantic helper
|
396
|
+
*
|
397
|
+
* For example `"/9SeSQTupmQHwuSrLi"`
|
398
|
+
*/
|
399
|
+
export type string_uri = string;
|
400
|
+
/**
|
401
|
+
* Semantic helper
|
402
|
+
*
|
403
|
+
* For example `"9SeSQTupmQHwuSrLi"`
|
404
|
+
*/
|
405
|
+
export type string_uri_part = string;
|
406
|
+
/**
|
407
|
+
* Semantic helper
|
408
|
+
*
|
409
|
+
* For example `"localhost"` or `"collboard.com"`
|
410
|
+
*/
|
411
|
+
export type string_hostname = string;
|
412
|
+
/**
|
413
|
+
* Semantic helper
|
414
|
+
*
|
415
|
+
* For example `"localhost:9977"` or `"collboard.com"`
|
416
|
+
*/
|
417
|
+
export type string_host = string;
|
418
|
+
/**
|
419
|
+
* Semantic helper
|
420
|
+
*/
|
421
|
+
export type string_protocol = 'http:' | 'https:';
|
422
|
+
/**
|
423
|
+
* Semantic helper
|
424
|
+
*
|
425
|
+
* For example `"192.168.1.1"` (IPv4)
|
426
|
+
* For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
|
427
|
+
*/
|
428
|
+
export type string_ip_address = string;
|
429
|
+
/**
|
430
|
+
* Semantic helper
|
431
|
+
*
|
432
|
+
* For example `"pavol@hejny.org"`
|
433
|
+
*/
|
434
|
+
export type string_email = string;
|
435
|
+
/**
|
436
|
+
* Semantic helper
|
437
|
+
*
|
438
|
+
* For example `"pavol@hejny.org, jirka@webgpt.cz"`
|
439
|
+
*/
|
440
|
+
export type string_emails = string;
|
441
|
+
/**
|
442
|
+
* Branded type for UUIDs version 4
|
443
|
+
* This will not allow to pass some random string where should be only a valid UUID
|
444
|
+
*
|
445
|
+
* Use utils:
|
446
|
+
* - `randomUuid` to generate
|
447
|
+
* - `isValidUuid to check validity
|
448
|
+
*
|
449
|
+
* For example `"5a0a153d-7be9-4018-9eda-e0e2e2b89bd9"`
|
450
|
+
* TODO: [🥬] Make some system for hashes and ids of promptbook
|
451
|
+
*/
|
452
|
+
export type string_uuid = string & {
|
453
|
+
readonly _type: 'uuid';
|
454
|
+
};
|
455
|
+
/**
|
456
|
+
* Application identifier, used to distinguish different apps or clients.
|
457
|
+
*
|
458
|
+
* For example: 'cli', 'playground', or a custom app id.
|
459
|
+
*/
|
460
|
+
export type string_app_id = id | 'app';
|
461
|
+
/**
|
462
|
+
* End user identifier, can be a user id or email address.
|
463
|
+
* Used for tracking and abuse prevention.
|
464
|
+
*/
|
465
|
+
export type string_user_id = id | string_email;
|
466
|
+
/**
|
467
|
+
* Semantic helper
|
468
|
+
*
|
469
|
+
* For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
|
470
|
+
*/
|
471
|
+
export type string_sha256 = string;
|
472
|
+
/**
|
473
|
+
* Semantic helper
|
474
|
+
*
|
475
|
+
* For example `"4.2.4"`
|
476
|
+
*/
|
477
|
+
export type string_semantic_version = string;
|
478
|
+
/**
|
479
|
+
* Semantic helper
|
480
|
+
*
|
481
|
+
* For example `"^4.2.4"`
|
482
|
+
*/
|
483
|
+
export type string_version_dependency = string;
|
484
|
+
/**
|
485
|
+
* Semantic helper
|
486
|
+
*
|
487
|
+
* For example `"png"`
|
488
|
+
*/
|
489
|
+
export type string_file_extension = string;
|
490
|
+
/**
|
491
|
+
* Semantic helper
|
492
|
+
*
|
493
|
+
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
494
|
+
*/
|
495
|
+
export type string_absolute_filename = string;
|
496
|
+
/**
|
497
|
+
* Semantic helper
|
498
|
+
*
|
499
|
+
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
500
|
+
*/
|
501
|
+
export type string_relative_filename = string;
|
502
|
+
/**
|
503
|
+
* Semantic helper
|
504
|
+
*/
|
505
|
+
export type string_filename = string_absolute_filename | string_relative_filename;
|
506
|
+
/**
|
507
|
+
* Semantic helper
|
508
|
+
*
|
509
|
+
* For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
|
510
|
+
*/
|
511
|
+
export type string_absolute_dirname = string;
|
512
|
+
/**
|
513
|
+
* Semantic helper
|
514
|
+
*
|
515
|
+
* For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
|
516
|
+
*/
|
517
|
+
export type string_relative_dirname = string;
|
518
|
+
/**
|
519
|
+
* Semantic helper
|
520
|
+
*/
|
521
|
+
export type string_dirname = string_absolute_dirname | string_relative_dirname;
|
522
|
+
/**
|
523
|
+
* Semantic helper
|
524
|
+
*
|
525
|
+
* For example `"John Smith"`
|
526
|
+
*/
|
527
|
+
export type string_person_fullname = string;
|
528
|
+
/**
|
529
|
+
* Semantic helper
|
530
|
+
* Full profile of the person with his email and web (like in package.json)
|
531
|
+
*
|
532
|
+
* For example `"Pavol Hejný <pavol@hejny.org> (https://pavolhejny.com)"`
|
533
|
+
*/
|
534
|
+
export type string_person_profile = string;
|
535
|
+
/**
|
536
|
+
* Semantic helper
|
537
|
+
*
|
538
|
+
* For example `"MIT"`
|
539
|
+
*/
|
540
|
+
export type string_license = string;
|
541
|
+
/**
|
542
|
+
* Semantic helper
|
543
|
+
*
|
544
|
+
* For example `"Pavol Hejný <pavol@ptbk.io> (https://www.pavolhejny.com/)"`
|
545
|
+
* For example `"AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)"`
|
546
|
+
*/
|
547
|
+
export type string_legal_entity = string | string_person_profile | string_title;
|
548
|
+
/**
|
549
|
+
* Semantic helper for attributes
|
550
|
+
*
|
551
|
+
* - case insensitive
|
552
|
+
*
|
553
|
+
* For example `"color"`
|
554
|
+
*/
|
555
|
+
export type string_attribute = string;
|
556
|
+
/**
|
557
|
+
* Semantic helper for attributes context
|
558
|
+
* Each attribute value scope with a attribute name has its own current value
|
559
|
+
*
|
560
|
+
* - case insensitive
|
561
|
+
*
|
562
|
+
* For example `"tools"`
|
563
|
+
*/
|
564
|
+
export type string_attribute_value_scope = string;
|
565
|
+
/**
|
566
|
+
* Semantic helper for css/html colors
|
567
|
+
*
|
568
|
+
* For example `"white"` or `"#009edd"`
|
569
|
+
*/
|
570
|
+
export type string_color = string;
|
571
|
+
/**
|
572
|
+
* Semantic helper; For example "SHARE_ICON/EDIT_LINK"
|
573
|
+
*/
|
574
|
+
export type string_translate_name = string;
|
575
|
+
/**
|
576
|
+
* Semantic helper; For example "ShareIcon/ edit link"
|
577
|
+
*/
|
578
|
+
export type string_translate_name_not_normalized = string;
|
579
|
+
/**
|
580
|
+
* Semantic helper; For example "cs" or "en"
|
581
|
+
* Implementing ISO 639-1
|
582
|
+
*
|
583
|
+
* TODO: Probably use enum
|
584
|
+
*/
|
585
|
+
export type string_translate_language = 'en' | 'cs';
|
586
|
+
/**
|
587
|
+
* Semantic helper; For example "callbackName" or "renderMe"
|
588
|
+
*/
|
589
|
+
export type string_javascript_name = string;
|
590
|
+
/**
|
591
|
+
* Semantic helper; For example "unwrapResult" or "spaceTrim"
|
592
|
+
*/
|
593
|
+
export type string_postprocessing_function_name = string;
|
594
|
+
export type id = string | number;
|
595
|
+
export type task_id = string;
|
596
|
+
export type string_token = string;
|
597
|
+
/**
|
598
|
+
* Semantic helper
|
599
|
+
*
|
600
|
+
* Made by `identificationToPromptbookToken` exported from `@promptbook/core`
|
601
|
+
*/
|
602
|
+
export type string_promptbook_token = string_token;
|
603
|
+
export type string_license_token = string_token;
|
604
|
+
export type string_password = string;
|
605
|
+
export type string_ssh_key = string;
|
606
|
+
export type string_pgp_key = string;
|
607
|
+
/**
|
608
|
+
* Semantic helper for `Date.toISOString()` result
|
609
|
+
*
|
610
|
+
* @example "2011-10-05T14:48:00.000Z".
|
611
|
+
* @see https://en.wikipedia.org/wiki/ISO_8601
|
612
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
|
613
|
+
*/
|
614
|
+
export type string_date_iso8601 = `${number}-${number}-${number}${string}${number}:${number}:${number}${string}`;
|
615
|
+
/**
|
616
|
+
* Semantic helper for US Dollars
|
617
|
+
*/
|
618
|
+
export type number_usd = number;
|
619
|
+
/**
|
620
|
+
* Semantic helper for incremental IDs
|
621
|
+
*/
|
622
|
+
export type number_id = number_integer & (number_positive | 0);
|
623
|
+
/**
|
624
|
+
* Semantic helper for number of rows and columns
|
625
|
+
*/
|
626
|
+
export type number_linecol_number = number_integer & number_positive;
|
627
|
+
/**
|
628
|
+
* Semantic helper for number of tokens
|
629
|
+
*/
|
630
|
+
export type number_tokens = number_integer & (number_positive | 0);
|
631
|
+
export type number_positive = number;
|
632
|
+
export type number_negative = number;
|
633
|
+
export type number_integer = number;
|
634
|
+
export type number_port = number_positive & number_integer;
|
635
|
+
/**
|
636
|
+
* Semantic helper;
|
637
|
+
* Percentage from 0 to 1 (100%) (and below and above)
|
638
|
+
*/
|
639
|
+
export type number_percent = number;
|
640
|
+
/**
|
641
|
+
* Semantic helper;
|
642
|
+
* Model temperature
|
643
|
+
*/
|
644
|
+
export type number_model_temperature = number_percent;
|
645
|
+
/**
|
646
|
+
* Semantic helper;
|
647
|
+
* Seed for random generator
|
648
|
+
*
|
649
|
+
* Percentage from 0 to 1 (100%)
|
650
|
+
* TODO: Is seed (in OpenAI) number from 0 to 1?
|
651
|
+
*/
|
652
|
+
export type number_seed = number_percent;
|
653
|
+
/**
|
654
|
+
* Likeness of the wallpaper
|
655
|
+
*
|
656
|
+
* - 👍 is equivalent to 1
|
657
|
+
* - 👎 is equivalent to -1
|
658
|
+
* - ❤ is equivalent to more than 1
|
659
|
+
*/
|
660
|
+
export type number_likeness = number;
|
661
|
+
export type number_milliseconds = number_integer;
|
662
|
+
export type number_seconds = number;
|
663
|
+
export type number_minutes = number;
|
664
|
+
export type number_hours = number;
|
665
|
+
export type number_days = number;
|
666
|
+
export type number_weeks = number;
|
667
|
+
export type number_months = number;
|
668
|
+
export type number_years = number;
|
669
|
+
export type number_bytes = number_integer & number_positive;
|
670
|
+
export type number_kilobytes = number_positive;
|
671
|
+
export type number_megabytes = number_positive;
|
672
|
+
export type number_gigabytes = number_positive;
|
673
|
+
export type number_terabytes = number_positive;
|
674
|
+
/**.
|
675
|
+
* TODO: [main] !!3 Change "For example" to @example
|
676
|
+
* TODO: Change to branded types
|
677
|
+
* TODO: Delete type aliases that are not exported or used internally
|
678
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
679
|
+
*/
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { type IDestroyable } from 'destroyable';
|
2
|
+
import type { string_name } from '../types/typeAliases';
|
3
|
+
import type { TODO_string } from './organization/TODO_string';
|
4
|
+
/**
|
5
|
+
* Represents an entity in a global registry.
|
6
|
+
* Contains identifying information about the package and class.
|
7
|
+
*/
|
8
|
+
export type Registered = {
|
9
|
+
/**
|
10
|
+
* The name of the package where the registered entity is defined.
|
11
|
+
*/
|
12
|
+
readonly packageName: TODO_string;
|
13
|
+
/**
|
14
|
+
* The name of the class being registered.
|
15
|
+
*/
|
16
|
+
readonly className: TODO_string;
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* Represents a registration record, including destroyable interface and registry name.
|
20
|
+
*/
|
21
|
+
export type Registration = Registered & IDestroyable & {
|
22
|
+
/**
|
23
|
+
* The name of the register this entity is registered in.
|
24
|
+
*/
|
25
|
+
readonly registerName: string_name;
|
26
|
+
};
|
27
|
+
/**
|
28
|
+
* Global registry for storing and managing registered entities of a given type.
|
29
|
+
*
|
30
|
+
* Note: `$` is used to indicate that this function is not a pure function - it accesses and adds variables in global scope.
|
31
|
+
*
|
32
|
+
* @private internal utility, exported are only singleton instances of this class
|
33
|
+
*/
|
34
|
+
export declare class $Register<TRegistered extends Registered> {
|
35
|
+
private readonly registerName;
|
36
|
+
private readonly storage;
|
37
|
+
constructor(registerName: string_name);
|
38
|
+
list(): ReadonlyArray<TRegistered>;
|
39
|
+
register(registered: TRegistered): Registration;
|
40
|
+
}
|