@promptbook/legacy-documents 0.71.0-12

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.
Files changed (564) hide show
  1. package/README.md +451 -0
  2. package/esm/index.es.js +6257 -0
  3. package/esm/index.es.js.map +1 -0
  4. package/esm/typings/promptbook-collection/index.d.ts +75 -0
  5. package/esm/typings/src/_packages/anthropic-claude.index.d.ts +16 -0
  6. package/esm/typings/src/_packages/azure-openai.index.d.ts +10 -0
  7. package/esm/typings/src/_packages/browser.index.d.ts +10 -0
  8. package/esm/typings/src/_packages/cli.index.d.ts +36 -0
  9. package/esm/typings/src/_packages/core.index.d.ts +176 -0
  10. package/esm/typings/src/_packages/documents.index.d.ts +8 -0
  11. package/esm/typings/src/_packages/execute-javascript.index.d.ts +8 -0
  12. package/esm/typings/src/_packages/fake-llm.index.d.ts +6 -0
  13. package/esm/typings/src/_packages/langtail.index.d.ts +6 -0
  14. package/esm/typings/src/_packages/legacy-documents.index.d.ts +8 -0
  15. package/esm/typings/src/_packages/markdown-utils.index.d.ts +46 -0
  16. package/esm/typings/src/_packages/node.index.d.ts +18 -0
  17. package/esm/typings/src/_packages/openai.index.d.ts +12 -0
  18. package/esm/typings/src/_packages/pdf.index.d.ts +8 -0
  19. package/esm/typings/src/_packages/remote-client.index.d.ts +8 -0
  20. package/esm/typings/src/_packages/remote-server.index.d.ts +6 -0
  21. package/esm/typings/src/_packages/types.index.d.ts +478 -0
  22. package/esm/typings/src/_packages/utils.index.d.ts +142 -0
  23. package/esm/typings/src/_packages/website-crawler.index.d.ts +8 -0
  24. package/esm/typings/src/cli/cli-commands/about.d.ts +11 -0
  25. package/esm/typings/src/cli/cli-commands/hello.d.ts +11 -0
  26. package/esm/typings/src/cli/cli-commands/make.d.ts +14 -0
  27. package/esm/typings/src/cli/cli-commands/prettify.d.ts +12 -0
  28. package/esm/typings/src/cli/cli-commands/test-command.d.ts +13 -0
  29. package/esm/typings/src/cli/main.d.ts +12 -0
  30. package/esm/typings/src/cli/promptbookCli.d.ts +12 -0
  31. package/esm/typings/src/cli/test/ptbk.d.ts +2 -0
  32. package/esm/typings/src/cli/test/ptbk.test.d.ts +1 -0
  33. package/esm/typings/src/collection/PipelineCollection.d.ts +25 -0
  34. package/esm/typings/src/collection/SimplePipelineCollection.d.ts +37 -0
  35. package/esm/typings/src/collection/collectionToJson.d.ts +13 -0
  36. package/esm/typings/src/collection/collectionToJson.test.d.ts +7 -0
  37. package/esm/typings/src/collection/constructors/createCollectionFromDirectory.d.ts +54 -0
  38. package/esm/typings/src/collection/constructors/createCollectionFromDirectory.test.d.ts +1 -0
  39. package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +13 -0
  40. package/esm/typings/src/collection/constructors/createCollectionFromJson.test.d.ts +1 -0
  41. package/esm/typings/src/collection/constructors/createCollectionFromPromise.d.ts +23 -0
  42. package/esm/typings/src/collection/constructors/createCollectionFromPromise.test.d.ts +1 -0
  43. package/esm/typings/src/collection/constructors/createCollectionFromUrl.d.ts +29 -0
  44. package/esm/typings/src/collection/constructors/createSubcollection.d.ts +13 -0
  45. package/esm/typings/src/commands/EXPECT/ExpectCommand.d.ts +17 -0
  46. package/esm/typings/src/commands/EXPECT/expectCommand.test.d.ts +1 -0
  47. package/esm/typings/src/commands/EXPECT/expectCommandParser.d.ts +9 -0
  48. package/esm/typings/src/commands/FOREACH/ForeachCommand.d.ts +10 -0
  49. package/esm/typings/src/commands/FOREACH/ForeachJson.d.ts +27 -0
  50. package/esm/typings/src/commands/FOREACH/foreachCommand.test.d.ts +1 -0
  51. package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +14 -0
  52. package/esm/typings/src/commands/FORMAT/FormatCommand.d.ts +9 -0
  53. package/esm/typings/src/commands/FORMAT/formatCommand.test.d.ts +1 -0
  54. package/esm/typings/src/commands/FORMAT/formatCommandParser.d.ts +9 -0
  55. package/esm/typings/src/commands/JOKER/JokerCommand.d.ts +11 -0
  56. package/esm/typings/src/commands/JOKER/jokerCommand.test.d.ts +1 -0
  57. package/esm/typings/src/commands/JOKER/jokerCommandParser.d.ts +9 -0
  58. package/esm/typings/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +11 -0
  59. package/esm/typings/src/commands/KNOWLEDGE/knowledgeCommand.test.d.ts +1 -0
  60. package/esm/typings/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +12 -0
  61. package/esm/typings/src/commands/KNOWLEDGE/utils/sourceContentToName.d.ts +11 -0
  62. package/esm/typings/src/commands/KNOWLEDGE/utils/sourceContentToName.test.d.ts +4 -0
  63. package/esm/typings/src/commands/MODEL/ModelCommand.d.ts +13 -0
  64. package/esm/typings/src/commands/MODEL/modelCommand.test.d.ts +1 -0
  65. package/esm/typings/src/commands/MODEL/modelCommandParser.d.ts +9 -0
  66. package/esm/typings/src/commands/PARAMETER/ParameterCommand.d.ts +15 -0
  67. package/esm/typings/src/commands/PARAMETER/parameterCommand.test.d.ts +1 -0
  68. package/esm/typings/src/commands/PARAMETER/parameterCommandParser.d.ts +9 -0
  69. package/esm/typings/src/commands/PERSONA/PersonaCommand.d.ts +13 -0
  70. package/esm/typings/src/commands/PERSONA/personaCommand.test.d.ts +1 -0
  71. package/esm/typings/src/commands/PERSONA/personaCommandParser.d.ts +9 -0
  72. package/esm/typings/src/commands/POSTPROCESS/PostprocessCommand.d.ts +11 -0
  73. package/esm/typings/src/commands/POSTPROCESS/postprocessCommand.test.d.ts +1 -0
  74. package/esm/typings/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +9 -0
  75. package/esm/typings/src/commands/PROMPTBOOK_VERSION/PromptbookVersionCommand.d.ts +11 -0
  76. package/esm/typings/src/commands/PROMPTBOOK_VERSION/promptbookVersionCommand.test.d.ts +1 -0
  77. package/esm/typings/src/commands/PROMPTBOOK_VERSION/promptbookVersionCommandParser.d.ts +9 -0
  78. package/esm/typings/src/commands/TEMPLATE/TemplateCommand.d.ts +11 -0
  79. package/esm/typings/src/commands/TEMPLATE/TemplateTypes.d.ts +15 -0
  80. package/esm/typings/src/commands/TEMPLATE/templateCommand.test.d.ts +1 -0
  81. package/esm/typings/src/commands/TEMPLATE/templateCommandParser.d.ts +20 -0
  82. package/esm/typings/src/commands/URL/UrlCommand.d.ts +10 -0
  83. package/esm/typings/src/commands/URL/urlCommand.test.d.ts +1 -0
  84. package/esm/typings/src/commands/URL/urlCommandParser.d.ts +9 -0
  85. package/esm/typings/src/commands/X_ACTION/ActionCommand.d.ts +9 -0
  86. package/esm/typings/src/commands/X_ACTION/actionCommand.test.d.ts +1 -0
  87. package/esm/typings/src/commands/X_ACTION/actionCommandParser.d.ts +12 -0
  88. package/esm/typings/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +9 -0
  89. package/esm/typings/src/commands/X_INSTRUMENT/instrumentCommand.test.d.ts +1 -0
  90. package/esm/typings/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +12 -0
  91. package/esm/typings/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +10 -0
  92. package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommand.test.d.ts +1 -0
  93. package/esm/typings/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +11 -0
  94. package/esm/typings/src/commands/_common/getParserForCommand.d.ts +11 -0
  95. package/esm/typings/src/commands/_common/getParserForCommand.test.d.ts +1 -0
  96. package/esm/typings/src/commands/_common/parseCommand.d.ts +12 -0
  97. package/esm/typings/src/commands/_common/parseCommand.test.d.ts +1 -0
  98. package/esm/typings/src/commands/_common/stringifyCommand.d.ts +11 -0
  99. package/esm/typings/src/commands/_common/stringifyCommand.test.d.ts +1 -0
  100. package/esm/typings/src/commands/_common/types/Command.d.ts +6 -0
  101. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +186 -0
  102. package/esm/typings/src/commands/_common/types/CommandUsagePlaces.d.ts +11 -0
  103. package/esm/typings/src/commands/index.d.ts +6 -0
  104. package/esm/typings/src/config.d.ts +183 -0
  105. package/esm/typings/src/config.test.d.ts +4 -0
  106. package/esm/typings/src/conversion/pipelineJsonToString.d.ts +17 -0
  107. package/esm/typings/src/conversion/pipelineStringToJson.d.ts +28 -0
  108. package/esm/typings/src/conversion/pipelineStringToJson.test.d.ts +1 -0
  109. package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +29 -0
  110. package/esm/typings/src/conversion/pipelineStringToJsonSync.test.d.ts +1 -0
  111. package/esm/typings/src/conversion/prettify/PrettifyOptions.d.ts +13 -0
  112. package/esm/typings/src/conversion/prettify/prettifyPipelineString.d.ts +12 -0
  113. package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +30 -0
  114. package/esm/typings/src/conversion/utils/extractParameterNamesFromTemplate.d.ts +15 -0
  115. package/esm/typings/src/conversion/utils/extractParameterNamesFromTemplate.test.d.ts +1 -0
  116. package/esm/typings/src/conversion/utils/extractVariables.d.ts +14 -0
  117. package/esm/typings/src/conversion/utils/extractVariables.test.d.ts +1 -0
  118. package/esm/typings/src/conversion/utils/renameParameter.d.ts +26 -0
  119. package/esm/typings/src/conversion/utils/renameParameter.test.d.ts +1 -0
  120. package/esm/typings/src/conversion/utils/stringifyPipelineJson.d.ts +16 -0
  121. package/esm/typings/src/conversion/utils/stringifyPipelineJson.test.d.ts +1 -0
  122. package/esm/typings/src/conversion/utils/titleToName.d.ts +9 -0
  123. package/esm/typings/src/conversion/utils/titleToName.test.d.ts +1 -0
  124. package/esm/typings/src/conversion/validation/_importPipeline.d.ts +29 -0
  125. package/esm/typings/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +4 -0
  126. package/esm/typings/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +4 -0
  127. package/esm/typings/src/conversion/validation/validatePipeline.d.ts +42 -0
  128. package/esm/typings/src/conversion/validation/validatePipeline.test.d.ts +4 -0
  129. package/esm/typings/src/dialogs/callback/CallbackInterfaceTools.d.ts +17 -0
  130. package/esm/typings/src/dialogs/callback/CallbackInterfaceToolsOptions.d.ts +14 -0
  131. package/esm/typings/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +22 -0
  132. package/esm/typings/src/dialogs/user-interface-execution-tools.test.d.ts +1 -0
  133. package/esm/typings/src/errors/AbstractFormatError.d.ts +11 -0
  134. package/esm/typings/src/errors/CollectionError.d.ts +9 -0
  135. package/esm/typings/src/errors/EnvironmentMismatchError.d.ts +9 -0
  136. package/esm/typings/src/errors/ExpectError.d.ts +12 -0
  137. package/esm/typings/src/errors/KnowledgeScrapeError.d.ts +9 -0
  138. package/esm/typings/src/errors/LimitReachedError.d.ts +9 -0
  139. package/esm/typings/src/errors/MissingToolsError.d.ts +9 -0
  140. package/esm/typings/src/errors/NotFoundError.d.ts +9 -0
  141. package/esm/typings/src/errors/NotYetImplementedError.d.ts +9 -0
  142. package/esm/typings/src/errors/ParseError.d.ts +12 -0
  143. package/esm/typings/src/errors/PipelineExecutionError.d.ts +9 -0
  144. package/esm/typings/src/errors/PipelineLogicError.d.ts +9 -0
  145. package/esm/typings/src/errors/PipelineUrlError.d.ts +9 -0
  146. package/esm/typings/src/errors/UnexpectedError.d.ts +9 -0
  147. package/esm/typings/src/errors/index.d.ts +29 -0
  148. package/esm/typings/src/errors/utils/ErrorJson.d.ts +20 -0
  149. package/esm/typings/src/errors/utils/deserializeError.d.ts +7 -0
  150. package/esm/typings/src/errors/utils/deserializeError.test.d.ts +1 -0
  151. package/esm/typings/src/errors/utils/serializeError.d.ts +7 -0
  152. package/esm/typings/src/errors/utils/serializeError.test.d.ts +1 -0
  153. package/esm/typings/src/execution/AvailableModel.d.ts +20 -0
  154. package/esm/typings/src/execution/CommonToolsOptions.d.ts +15 -0
  155. package/esm/typings/src/execution/EmbeddingVector.d.ts +8 -0
  156. package/esm/typings/src/execution/ExecutionTools.d.ts +48 -0
  157. package/esm/typings/src/execution/LlmExecutionTools.d.ts +61 -0
  158. package/esm/typings/src/execution/LlmExecutionToolsConstructor.d.ts +10 -0
  159. package/esm/typings/src/execution/PipelineExecutor.d.ts +19 -0
  160. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +50 -0
  161. package/esm/typings/src/execution/PromptResult.d.ts +101 -0
  162. package/esm/typings/src/execution/PromptResultUsage.d.ts +33 -0
  163. package/esm/typings/src/execution/ScriptExecutionTools.d.ts +39 -0
  164. package/esm/typings/src/execution/UncertainNumber.d.ts +19 -0
  165. package/esm/typings/src/execution/UserInterfaceTools.d.ts +46 -0
  166. package/esm/typings/src/execution/assertsExecutionSuccessful.d.ts +12 -0
  167. package/esm/typings/src/execution/createPipelineExecutor/$OngoingTemplateResult.d.ts +45 -0
  168. package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorOptions.d.ts +23 -0
  169. package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorSettings.d.ts +29 -0
  170. package/esm/typings/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +13 -0
  171. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +58 -0
  172. package/esm/typings/src/execution/createPipelineExecutor/20-executeTemplate.d.ts +60 -0
  173. package/esm/typings/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +15 -0
  174. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +69 -0
  175. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +34 -0
  176. package/esm/typings/src/execution/createPipelineExecutor/getContextForTemplate.d.ts +10 -0
  177. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTemplate.d.ts +27 -0
  178. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTemplate.d.ts +30 -0
  179. package/esm/typings/src/execution/createPipelineExecutor/getSamplesForTemplate.d.ts +10 -0
  180. package/esm/typings/src/execution/embeddingVectorToString.d.ts +7 -0
  181. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +7 -0
  182. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +11 -0
  183. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +8 -0
  184. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +14 -0
  185. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +7 -0
  186. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +8 -0
  187. package/esm/typings/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -0
  188. package/esm/typings/src/execution/translation/automatic-translate/translateMessages.d.ts +11 -0
  189. package/esm/typings/src/execution/utils/$provideExecutionToolsForNode.d.ts +13 -0
  190. package/esm/typings/src/execution/utils/addUsage.d.ts +65 -0
  191. package/esm/typings/src/execution/utils/addUsage.test.d.ts +1 -0
  192. package/esm/typings/src/execution/utils/checkExpectations.d.ts +29 -0
  193. package/esm/typings/src/execution/utils/checkExpectations.test.d.ts +1 -0
  194. package/esm/typings/src/execution/utils/computeUsageCounts.d.ts +10 -0
  195. package/esm/typings/src/execution/utils/forEachAsync.d.ts +20 -0
  196. package/esm/typings/src/execution/utils/uncertainNumber.d.ts +9 -0
  197. package/esm/typings/src/execution/utils/usageToHuman.d.ts +16 -0
  198. package/esm/typings/src/execution/utils/usageToWorktime.d.ts +12 -0
  199. package/esm/typings/src/execution/utils/usageToWorktime.test.d.ts +1 -0
  200. package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +9 -0
  201. package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +9 -0
  202. package/esm/typings/src/formats/_common/FormatDefinition.d.ts +70 -0
  203. package/esm/typings/src/formats/_common/FormatSubvalueDefinition.d.ts +31 -0
  204. package/esm/typings/src/formats/csv/CsvFormatDefinition.d.ts +17 -0
  205. package/esm/typings/src/formats/csv/CsvFormatError.d.ts +10 -0
  206. package/esm/typings/src/formats/csv/CsvSettings.d.ts +13 -0
  207. package/esm/typings/src/formats/index.d.ts +6 -0
  208. package/esm/typings/src/formats/json/JsonFormatDefinition.d.ts +19 -0
  209. package/esm/typings/src/formats/json/utils/isValidJsonString.d.ts +6 -0
  210. package/esm/typings/src/formats/json/utils/isValidJsonString.test.d.ts +1 -0
  211. package/esm/typings/src/formats/text/TextFormatDefinition.d.ts +19 -0
  212. package/esm/typings/src/formats/xml/XmlFormatDefinition.d.ts +19 -0
  213. package/esm/typings/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +13 -0
  214. package/esm/typings/src/llm-providers/_common/register/$llmToolsRegister.d.ts +13 -0
  215. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +24 -0
  216. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForCli.d.ts +23 -0
  217. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +24 -0
  218. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +27 -0
  219. package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +12 -0
  220. package/esm/typings/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +23 -0
  221. package/esm/typings/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +28 -0
  222. package/esm/typings/src/llm-providers/_common/register/LlmToolsOptions.d.ts +10 -0
  223. package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +33 -0
  224. package/esm/typings/src/llm-providers/_common/utils/cache/CacheItem.d.ts +28 -0
  225. package/esm/typings/src/llm-providers/_common/utils/cache/CacheLlmToolsOptions.d.ts +16 -0
  226. package/esm/typings/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +19 -0
  227. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +15 -0
  228. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/countTotalUsage.d.ts +17 -0
  229. package/esm/typings/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +36 -0
  230. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +60 -0
  231. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +31 -0
  232. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +23 -0
  233. package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +18 -0
  234. package/esm/typings/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +4 -0
  235. package/esm/typings/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +19 -0
  236. package/esm/typings/src/llm-providers/anthropic-claude/playground/playground.d.ts +7 -0
  237. package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +10 -0
  238. package/esm/typings/src/llm-providers/anthropic-claude/register-constructor.d.ts +13 -0
  239. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +63 -0
  240. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +36 -0
  241. package/esm/typings/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +15 -0
  242. package/esm/typings/src/llm-providers/azure-openai/playground/playground.d.ts +6 -0
  243. package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +10 -0
  244. package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +13 -0
  245. package/esm/typings/src/llm-providers/langtail/LangtailExecutionTools.d.ts +17 -0
  246. package/esm/typings/src/llm-providers/langtail/LangtailExecutionToolsOptions.d.ts +13 -0
  247. package/esm/typings/src/llm-providers/langtail/playground/playground.d.ts +5 -0
  248. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +15 -0
  249. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +40 -0
  250. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +44 -0
  251. package/esm/typings/src/llm-providers/mocked/test/fakeTextToExpectations.test.d.ts +1 -0
  252. package/esm/typings/src/llm-providers/mocked/test/faked-completion.test.d.ts +1 -0
  253. package/esm/typings/src/llm-providers/mocked/test/joker.test.d.ts +4 -0
  254. package/esm/typings/src/llm-providers/mocked/test/mocked-chat.test.d.ts +5 -0
  255. package/esm/typings/src/llm-providers/mocked/test/mocked-completion.test.d.ts +4 -0
  256. package/esm/typings/src/llm-providers/multiple/MultipleLlmExecutionTools.d.ts +64 -0
  257. package/esm/typings/src/llm-providers/multiple/joinLlmExecutionTools.d.ts +21 -0
  258. package/esm/typings/src/llm-providers/multiple/playground/playground.d.ts +5 -0
  259. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +75 -0
  260. package/esm/typings/src/llm-providers/openai/OpenAiExecutionToolsOptions.d.ts +20 -0
  261. package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.d.ts +18 -0
  262. package/esm/typings/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +4 -0
  263. package/esm/typings/src/llm-providers/openai/computeUsage.d.ts +16 -0
  264. package/esm/typings/src/llm-providers/openai/computeUsage.test.d.ts +1 -0
  265. package/esm/typings/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +15 -0
  266. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +30 -0
  267. package/esm/typings/src/llm-providers/openai/playground/playground.d.ts +6 -0
  268. package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +10 -0
  269. package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +13 -0
  270. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +63 -0
  271. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Error.d.ts +7 -0
  272. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_ListModels_Request.d.ts +29 -0
  273. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_ListModels_Response.d.ts +15 -0
  274. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Prompt_Progress.d.ts +12 -0
  275. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Prompt_Request.d.ts +51 -0
  276. package/esm/typings/src/llm-providers/remote/interfaces/PromptbookServer_Prompt_Response.d.ts +12 -0
  277. package/esm/typings/src/llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions.d.ts +59 -0
  278. package/esm/typings/src/llm-providers/remote/interfaces/RemoteServerOptions.d.ts +58 -0
  279. package/esm/typings/src/llm-providers/remote/playground/playground.d.ts +5 -0
  280. package/esm/typings/src/llm-providers/remote/startRemoteServer.d.ts +23 -0
  281. package/esm/typings/src/personas/preparePersona.d.ts +17 -0
  282. package/esm/typings/src/postprocessing/utils/extractBlock.d.ts +16 -0
  283. package/esm/typings/src/postprocessing/utils/extractJsonBlock.d.ts +25 -0
  284. package/esm/typings/src/postprocessing/utils/extractJsonBlock.test.d.ts +1 -0
  285. package/esm/typings/src/prepare/PrepareAndScrapeOptions.d.ts +68 -0
  286. package/esm/typings/src/prepare/isPipelinePrepared.d.ts +16 -0
  287. package/esm/typings/src/prepare/isPipelinePrepared.test.d.ts +1 -0
  288. package/esm/typings/src/prepare/preparePipeline.d.ts +20 -0
  289. package/esm/typings/src/prepare/prepareTemplates.d.ts +32 -0
  290. package/esm/typings/src/prepare/unpreparePipeline.d.ts +12 -0
  291. package/esm/typings/src/scrapers/_common/Converter.d.ts +22 -0
  292. package/esm/typings/src/scrapers/_common/Scraper.d.ts +66 -0
  293. package/esm/typings/src/scrapers/_common/ScraperIntermediateSource.d.ts +11 -0
  294. package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.d.ts +19 -0
  295. package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.test.d.ts +1 -0
  296. package/esm/typings/src/scrapers/_common/register/$provideScrapersForBrowser.d.ts +12 -0
  297. package/esm/typings/src/scrapers/_common/register/$provideScrapersForNode.d.ts +15 -0
  298. package/esm/typings/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +12 -0
  299. package/esm/typings/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +13 -0
  300. package/esm/typings/src/scrapers/_common/register/$scrapersRegister.d.ts +13 -0
  301. package/esm/typings/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +41 -0
  302. package/esm/typings/src/scrapers/_common/register/ScraperConstructor.d.ts +12 -0
  303. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +33 -0
  304. package/esm/typings/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +4 -0
  305. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +13 -0
  306. package/esm/typings/src/scrapers/document/DocumentScraper.d.ts +43 -0
  307. package/esm/typings/src/scrapers/document/DocumentScraper.test.d.ts +4 -0
  308. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +20 -0
  309. package/esm/typings/src/scrapers/document/playground/document-scraper-playground.d.ts +5 -0
  310. package/esm/typings/src/scrapers/document/register-constructor.d.ts +13 -0
  311. package/esm/typings/src/scrapers/document/register-metadata.d.ts +24 -0
  312. package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +43 -0
  313. package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +4 -0
  314. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +20 -0
  315. package/esm/typings/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +5 -0
  316. package/esm/typings/src/scrapers/document-legacy/register-constructor.d.ts +13 -0
  317. package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +24 -0
  318. package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +29 -0
  319. package/esm/typings/src/scrapers/markdown/MarkdownScraper.test.d.ts +4 -0
  320. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +20 -0
  321. package/esm/typings/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +5 -0
  322. package/esm/typings/src/scrapers/markdown/register-constructor.d.ts +13 -0
  323. package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +24 -0
  324. package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +40 -0
  325. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +20 -0
  326. package/esm/typings/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +5 -0
  327. package/esm/typings/src/scrapers/pdf/register-constructor.d.ts +13 -0
  328. package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +24 -0
  329. package/esm/typings/src/scrapers/website/WebsiteScraper.d.ts +47 -0
  330. package/esm/typings/src/scrapers/website/WebsiteScraper.test.d.ts +1 -0
  331. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +20 -0
  332. package/esm/typings/src/scrapers/website/playground/website-scraper-playground.d.ts +5 -0
  333. package/esm/typings/src/scrapers/website/register-constructor.d.ts +13 -0
  334. package/esm/typings/src/scrapers/website/register-metadata.d.ts +24 -0
  335. package/esm/typings/src/scrapers/website/utils/markdownConverter.d.ts +12 -0
  336. package/esm/typings/src/scrapers/website/utils/markdownConverter.test.d.ts +1 -0
  337. package/esm/typings/src/scripting/_test/custom-function-async.test.ts.test.d.ts +1 -0
  338. package/esm/typings/src/scripting/_test/custom-function-missing.test.d.ts +1 -0
  339. package/esm/typings/src/scripting/_test/custom-function-with-dependencies.test.d.ts +1 -0
  340. package/esm/typings/src/scripting/_test/custom-function.test.d.ts +1 -0
  341. package/esm/typings/src/scripting/_test/postprocessing.test.d.ts +1 -0
  342. package/esm/typings/src/scripting/_test/script-execution-errors.test.d.ts +1 -0
  343. package/esm/typings/src/scripting/_test/script-execution-tools.test.d.ts +1 -0
  344. package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +22 -0
  345. package/esm/typings/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -0
  346. package/esm/typings/src/scripting/javascript/JavascriptExecutionTools.d.ts +8 -0
  347. package/esm/typings/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +26 -0
  348. package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +51 -0
  349. package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +13 -0
  350. package/esm/typings/src/scripting/javascript/utils/unknownToString.d.ts +8 -0
  351. package/esm/typings/src/scripting/python/PythonExecutionTools.d.ts +18 -0
  352. package/esm/typings/src/scripting/typescript/TypescriptExecutionTools.d.ts +18 -0
  353. package/esm/typings/src/storage/_common/PromptbookStorage.d.ts +24 -0
  354. package/esm/typings/src/storage/_common/PromptbookStorage.test-type.d.ts +5 -0
  355. package/esm/typings/src/storage/file-cache-storage/FileCacheStorage.d.ts +31 -0
  356. package/esm/typings/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +10 -0
  357. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +7 -0
  358. package/esm/typings/src/storage/file-cache-storage/utils/nameToSubfolderPath.test.d.ts +1 -0
  359. package/esm/typings/src/storage/local-storage/getLocalStorage.d.ts +10 -0
  360. package/esm/typings/src/storage/local-storage/getSessionStorage.d.ts +10 -0
  361. package/esm/typings/src/storage/memory/MemoryStorage.d.ts +33 -0
  362. package/esm/typings/src/storage/memory/utils/PrefixStorage.d.ts +25 -0
  363. package/esm/typings/src/storage/memory/utils/makePromptbookStorageFromWebStorage.d.ts +11 -0
  364. package/esm/typings/src/types/Arrayable.d.ts +10 -0
  365. package/esm/typings/src/types/ModelRequirements.d.ts +104 -0
  366. package/esm/typings/src/types/ModelVariant.d.ts +15 -0
  367. package/esm/typings/src/types/PipelineJson/DialogTemplateJson.d.ts +13 -0
  368. package/esm/typings/src/types/PipelineJson/Expectations.d.ts +40 -0
  369. package/esm/typings/src/types/PipelineJson/KnowledgePieceJson.d.ts +72 -0
  370. package/esm/typings/src/types/PipelineJson/KnowledgeSourceJson.d.ts +44 -0
  371. package/esm/typings/src/types/PipelineJson/ParameterJson.d.ts +39 -0
  372. package/esm/typings/src/types/PipelineJson/PersonaJson.d.ts +45 -0
  373. package/esm/typings/src/types/PipelineJson/PipelineJson.d.ts +95 -0
  374. package/esm/typings/src/types/PipelineJson/PreparationJson.d.ts +22 -0
  375. package/esm/typings/src/types/PipelineJson/PromptTemplateJson.d.ts +26 -0
  376. package/esm/typings/src/types/PipelineJson/ScriptTemplateJson.d.ts +20 -0
  377. package/esm/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +13 -0
  378. package/esm/typings/src/types/PipelineJson/TemplateJson.d.ts +11 -0
  379. package/esm/typings/src/types/PipelineJson/TemplateJsonCommon.d.ts +100 -0
  380. package/esm/typings/src/types/PipelineString.d.ts +12 -0
  381. package/esm/typings/src/types/Prompt.d.ts +110 -0
  382. package/esm/typings/src/types/ScriptLanguage.d.ts +13 -0
  383. package/esm/typings/src/types/TaskProgress.d.ts +43 -0
  384. package/esm/typings/src/types/execution-report/ExecutionPromptReportJson.d.ts +24 -0
  385. package/esm/typings/src/types/execution-report/ExecutionReportJson.d.ts +41 -0
  386. package/esm/typings/src/types/execution-report/ExecutionReportString.d.ts +16 -0
  387. package/esm/typings/src/types/execution-report/ExecutionReportStringOptions.d.ts +25 -0
  388. package/esm/typings/src/types/execution-report/countWorkingDuration.d.ts +7 -0
  389. package/esm/typings/src/types/execution-report/countWorkingDuration.test.d.ts +1 -0
  390. package/esm/typings/src/types/execution-report/executionReportJsonToString.d.ts +15 -0
  391. package/esm/typings/src/types/typeAliasEmoji.d.ts +9 -0
  392. package/esm/typings/src/types/typeAliases.d.ts +602 -0
  393. package/esm/typings/src/utils/$Register.d.ts +39 -0
  394. package/esm/typings/src/utils/$currentDate.d.ts +10 -0
  395. package/esm/typings/src/utils/FromtoItems.d.ts +19 -0
  396. package/esm/typings/src/utils/arrayableToArray.d.ts +11 -0
  397. package/esm/typings/src/utils/arrayableToArray.test.d.ts +1 -0
  398. package/esm/typings/src/utils/emojis.d.ts +23 -0
  399. package/esm/typings/src/utils/environment/$getGlobalScope.d.ts +9 -0
  400. package/esm/typings/src/utils/environment/$isRunningInBrowser.d.ts +8 -0
  401. package/esm/typings/src/utils/environment/$isRunningInNode.d.ts +8 -0
  402. package/esm/typings/src/utils/environment/$isRunningInWebWorker.d.ts +8 -0
  403. package/esm/typings/src/utils/execCommand/$execCommand.d.ts +14 -0
  404. package/esm/typings/src/utils/execCommand/$execCommands.d.ts +17 -0
  405. package/esm/typings/src/utils/execCommand/IExecCommandOptions.d.ts +23 -0
  406. package/esm/typings/src/utils/execCommand/execCommand.test.d.ts +1 -0
  407. package/esm/typings/src/utils/execCommand/execCommandNormalizeOptions.d.ts +10 -0
  408. package/esm/typings/src/utils/execCommand/execCommandNormalizeOptions.test.d.ts +1 -0
  409. package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +7 -0
  410. package/esm/typings/src/utils/expectation-counters/countCharacters.test.d.ts +1 -0
  411. package/esm/typings/src/utils/expectation-counters/countLines.d.ts +7 -0
  412. package/esm/typings/src/utils/expectation-counters/countLines.test.d.ts +1 -0
  413. package/esm/typings/src/utils/expectation-counters/countPages.d.ts +7 -0
  414. package/esm/typings/src/utils/expectation-counters/countPages.test.d.ts +1 -0
  415. package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +7 -0
  416. package/esm/typings/src/utils/expectation-counters/countParagraphs.test.d.ts +1 -0
  417. package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +13 -0
  418. package/esm/typings/src/utils/expectation-counters/countSentences.test.d.ts +1 -0
  419. package/esm/typings/src/utils/expectation-counters/countWords.d.ts +7 -0
  420. package/esm/typings/src/utils/expectation-counters/countWords.test.d.ts +1 -0
  421. package/esm/typings/src/utils/expectation-counters/index.d.ts +11 -0
  422. package/esm/typings/src/utils/files/$isDirectoryExisting.d.ts +15 -0
  423. package/esm/typings/src/utils/files/$isDirectoryExisting.test.d.ts +1 -0
  424. package/esm/typings/src/utils/files/$isFileExisting.d.ts +14 -0
  425. package/esm/typings/src/utils/files/$isFileExisting.test.d.ts +1 -0
  426. package/esm/typings/src/utils/files/$listAllFiles.d.ts +18 -0
  427. package/esm/typings/src/utils/files/$listAllFiles.test.d.ts +1 -0
  428. package/esm/typings/src/utils/files/extensionToMimeType.d.ts +8 -0
  429. package/esm/typings/src/utils/files/extensionToMimeType.test.d.ts +1 -0
  430. package/esm/typings/src/utils/files/getFileExtension.d.ts +8 -0
  431. package/esm/typings/src/utils/files/getFileExtension.test.d.ts +1 -0
  432. package/esm/typings/src/utils/formatNumber.d.ts +6 -0
  433. package/esm/typings/src/utils/formatNumber.test.d.ts +1 -0
  434. package/esm/typings/src/utils/getCurrentIsoDate.d.ts +7 -0
  435. package/esm/typings/src/utils/markdown/addAutoGeneratedSection.d.ts +14 -0
  436. package/esm/typings/src/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -0
  437. package/esm/typings/src/utils/markdown/createMarkdownChart.d.ts +38 -0
  438. package/esm/typings/src/utils/markdown/createMarkdownChart.test.d.ts +1 -0
  439. package/esm/typings/src/utils/markdown/createMarkdownTable.d.ts +11 -0
  440. package/esm/typings/src/utils/markdown/createMarkdownTable.test.d.ts +1 -0
  441. package/esm/typings/src/utils/markdown/escapeMarkdownBlock.d.ts +11 -0
  442. package/esm/typings/src/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -0
  443. package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown-real.test.d.ts +1 -0
  444. package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +36 -0
  445. package/esm/typings/src/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -0
  446. package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +15 -0
  447. package/esm/typings/src/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -0
  448. package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +22 -0
  449. package/esm/typings/src/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -0
  450. package/esm/typings/src/utils/markdown/flattenMarkdown.d.ts +17 -0
  451. package/esm/typings/src/utils/markdown/flattenMarkdown.test.d.ts +1 -0
  452. package/esm/typings/src/utils/markdown/parseMarkdownSection.d.ts +34 -0
  453. package/esm/typings/src/utils/markdown/parseMarkdownSection.test.d.ts +1 -0
  454. package/esm/typings/src/utils/markdown/prettifyMarkdown.d.ts +9 -0
  455. package/esm/typings/src/utils/markdown/prettifyMarkdown.test.d.ts +1 -0
  456. package/esm/typings/src/utils/markdown/removeContentComments.d.ts +10 -0
  457. package/esm/typings/src/utils/markdown/removeContentComments.test.d.ts +1 -0
  458. package/esm/typings/src/utils/markdown/removeMarkdownFormatting.d.ts +9 -0
  459. package/esm/typings/src/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -0
  460. package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.d.ts +15 -0
  461. package/esm/typings/src/utils/markdown/splitMarkdownIntoSections.test.d.ts +1 -0
  462. package/esm/typings/src/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +12 -0
  463. package/esm/typings/src/utils/normalization/IKeywords.d.ts +21 -0
  464. package/esm/typings/src/utils/normalization/capitalize.d.ts +6 -0
  465. package/esm/typings/src/utils/normalization/capitalize.test.d.ts +1 -0
  466. package/esm/typings/src/utils/normalization/decapitalize.d.ts +6 -0
  467. package/esm/typings/src/utils/normalization/decapitalize.test.d.ts +1 -0
  468. package/esm/typings/src/utils/normalization/isValidKeyword.d.ts +10 -0
  469. package/esm/typings/src/utils/normalization/isValidKeyword.test.d.ts +1 -0
  470. package/esm/typings/src/utils/normalization/nameToUriPart.d.ts +9 -0
  471. package/esm/typings/src/utils/normalization/nameToUriPart.test.d.ts +1 -0
  472. package/esm/typings/src/utils/normalization/nameToUriParts.d.ts +9 -0
  473. package/esm/typings/src/utils/normalization/nameToUriParts.test.d.ts +1 -0
  474. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +18 -0
  475. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.test.d.ts +1 -0
  476. package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.d.ts +17 -0
  477. package/esm/typings/src/utils/normalization/normalizeTo_PascalCase.test.d.ts +1 -0
  478. package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +26 -0
  479. package/esm/typings/src/utils/normalization/normalizeTo_SCREAMING_CASE.test.d.ts +1 -0
  480. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.d.ts +22 -0
  481. package/esm/typings/src/utils/normalization/normalizeTo_camelCase.test.d.ts +1 -0
  482. package/esm/typings/src/utils/normalization/normalizeTo_snake_case.d.ts +17 -0
  483. package/esm/typings/src/utils/normalization/normalizeTo_snake_case.test.d.ts +1 -0
  484. package/esm/typings/src/utils/normalization/normalizeWhitespaces.d.ts +6 -0
  485. package/esm/typings/src/utils/normalization/normalizeWhitespaces.test.d.ts +1 -0
  486. package/esm/typings/src/utils/normalization/parseKeywords.d.ts +16 -0
  487. package/esm/typings/src/utils/normalization/parseKeywords.test.d.ts +1 -0
  488. package/esm/typings/src/utils/normalization/parseKeywordsFromString.d.ts +9 -0
  489. package/esm/typings/src/utils/normalization/parseKeywordsFromString.test.d.ts +1 -0
  490. package/esm/typings/src/utils/normalization/removeDiacritics.d.ts +11 -0
  491. package/esm/typings/src/utils/normalization/removeDiacritics.test.d.ts +1 -0
  492. package/esm/typings/src/utils/normalization/searchKeywords.d.ts +10 -0
  493. package/esm/typings/src/utils/normalization/searchKeywords.test.d.ts +1 -0
  494. package/esm/typings/src/utils/organization/TODO_USE.d.ts +12 -0
  495. package/esm/typings/src/utils/organization/TODO_any.d.ts +6 -0
  496. package/esm/typings/src/utils/organization/TODO_object.d.ts +6 -0
  497. package/esm/typings/src/utils/organization/TODO_string.d.ts +6 -0
  498. package/esm/typings/src/utils/organization/TODO_unknown.d.ts +6 -0
  499. package/esm/typings/src/utils/organization/___and___.d.ts +7 -0
  500. package/esm/typings/src/utils/organization/___or___.d.ts +6 -0
  501. package/esm/typings/src/utils/organization/empty_object.d.ts +10 -0
  502. package/esm/typings/src/utils/organization/just.d.ts +14 -0
  503. package/esm/typings/src/utils/organization/just_empty_object.d.ts +12 -0
  504. package/esm/typings/src/utils/organization/keepUnused.d.ts +16 -0
  505. package/esm/typings/src/utils/organization/really_any.d.ts +6 -0
  506. package/esm/typings/src/utils/organization/really_unknown.d.ts +6 -0
  507. package/esm/typings/src/utils/parameters/extractParameterNames.d.ts +10 -0
  508. package/esm/typings/src/utils/parameters/extractParameterNames.test.d.ts +1 -0
  509. package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +27 -0
  510. package/esm/typings/src/utils/parameters/mapAvailableToExpectedParameters.test.d.ts +1 -0
  511. package/esm/typings/src/utils/parameters/replaceParameters.d.ts +12 -0
  512. package/esm/typings/src/utils/parameters/replaceParameters.test.d.ts +1 -0
  513. package/esm/typings/src/utils/parseNumber.d.ts +16 -0
  514. package/esm/typings/src/utils/parseNumber.test.d.ts +1 -0
  515. package/esm/typings/src/utils/random/$randomSeed.d.ts +9 -0
  516. package/esm/typings/src/utils/removeEmojis.d.ts +8 -0
  517. package/esm/typings/src/utils/removeEmojis.test.d.ts +1 -0
  518. package/esm/typings/src/utils/removeQuotes.d.ts +14 -0
  519. package/esm/typings/src/utils/removeQuotes.test.d.ts +1 -0
  520. package/esm/typings/src/utils/serialization/$asDeeplyFrozenSerializableJson.d.ts +17 -0
  521. package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +14 -0
  522. package/esm/typings/src/utils/serialization/checkSerializableAsJson.d.ts +27 -0
  523. package/esm/typings/src/utils/serialization/clonePipeline.d.ts +13 -0
  524. package/esm/typings/src/utils/serialization/deepClone.d.ts +10 -0
  525. package/esm/typings/src/utils/serialization/isSerializableAsJson.d.ts +24 -0
  526. package/esm/typings/src/utils/serialization/isSerializableAsJson.test.d.ts +1 -0
  527. package/esm/typings/src/utils/sets/difference.d.ts +10 -0
  528. package/esm/typings/src/utils/sets/difference.test.d.ts +1 -0
  529. package/esm/typings/src/utils/sets/intersection.d.ts +7 -0
  530. package/esm/typings/src/utils/sets/intersection.test.d.ts +1 -0
  531. package/esm/typings/src/utils/sets/union.d.ts +7 -0
  532. package/esm/typings/src/utils/sets/union.test.d.ts +1 -0
  533. package/esm/typings/src/utils/trimCodeBlock.d.ts +9 -0
  534. package/esm/typings/src/utils/trimCodeBlock.test.d.ts +1 -0
  535. package/esm/typings/src/utils/trimEndOfCodeBlock.d.ts +9 -0
  536. package/esm/typings/src/utils/trimEndOfCodeBlock.test.d.ts +1 -0
  537. package/esm/typings/src/utils/unwrapResult.d.ts +37 -0
  538. package/esm/typings/src/utils/unwrapResult.test.d.ts +1 -0
  539. package/esm/typings/src/utils/validators/email/isValidEmail.d.ts +8 -0
  540. package/esm/typings/src/utils/validators/email/isValidEmail.test.d.ts +1 -0
  541. package/esm/typings/src/utils/validators/filePath/isValidFilePath.d.ts +9 -0
  542. package/esm/typings/src/utils/validators/filePath/isValidFilePath.test.d.ts +1 -0
  543. package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +10 -0
  544. package/esm/typings/src/utils/validators/javascriptName/isValidJavascriptName.test.d.ts +1 -0
  545. package/esm/typings/src/utils/validators/parameterName/validateParameterName.d.ts +10 -0
  546. package/esm/typings/src/utils/validators/parameterName/validateParameterName.test.d.ts +1 -0
  547. package/esm/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +15 -0
  548. package/esm/typings/src/utils/validators/semanticVersion/isValidPromptbookVersion.test.d.ts +1 -0
  549. package/esm/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +12 -0
  550. package/esm/typings/src/utils/validators/semanticVersion/isValidSemanticVersion.test.d.ts +1 -0
  551. package/esm/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +11 -0
  552. package/esm/typings/src/utils/validators/url/isHostnameOnPrivateNetwork.test.d.ts +1 -0
  553. package/esm/typings/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +13 -0
  554. package/esm/typings/src/utils/validators/url/isUrlOnPrivateNetwork.test.d.ts +1 -0
  555. package/esm/typings/src/utils/validators/url/isValidPipelineUrl.d.ts +15 -0
  556. package/esm/typings/src/utils/validators/url/isValidPipelineUrl.test.d.ts +1 -0
  557. package/esm/typings/src/utils/validators/url/isValidUrl.d.ts +13 -0
  558. package/esm/typings/src/utils/validators/url/isValidUrl.test.d.ts +1 -0
  559. package/esm/typings/src/utils/validators/uuid/isValidUuid.d.ts +8 -0
  560. package/esm/typings/src/utils/validators/uuid/isValidUuid.test.d.ts +1 -0
  561. package/esm/typings/src/version.d.ts +6 -0
  562. package/package.json +64 -0
  563. package/umd/index.umd.js +6264 -0
  564. package/umd/index.umd.js.map +1 -0
@@ -0,0 +1,478 @@
1
+ import type { PipelineCollection } from '../collection/PipelineCollection';
2
+ import type { Command } from '../commands/_common/types/Command';
3
+ import type { CommandParser } from '../commands/_common/types/CommandParser';
4
+ import type { PipelineBothCommandParser } from '../commands/_common/types/CommandParser';
5
+ import type { PipelineHeadCommandParser } from '../commands/_common/types/CommandParser';
6
+ import type { PipelineTemplateCommandParser } from '../commands/_common/types/CommandParser';
7
+ import type { CommandParserInput } from '../commands/_common/types/CommandParser';
8
+ import type { CommandUsagePlace } from '../commands/_common/types/CommandUsagePlaces';
9
+ import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
10
+ import type { ForeachJson } from '../commands/FOREACH/ForeachJson';
11
+ import type { FormatCommand } from '../commands/FORMAT/FormatCommand';
12
+ import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
13
+ import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
14
+ import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
15
+ import type { CallbackInterfaceToolsOptions } from '../dialogs/callback/CallbackInterfaceToolsOptions';
16
+ import type { ErrorJson } from '../errors/utils/ErrorJson';
17
+ import type { AvailableModel } from '../execution/AvailableModel';
18
+ import type { CommonToolsOptions } from '../execution/CommonToolsOptions';
19
+ import type { CreatePipelineExecutorOptions } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorOptions';
20
+ import type { CreatePipelineExecutorSettings } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorSettings';
21
+ import type { EmbeddingVector } from '../execution/EmbeddingVector';
22
+ import type { ExecutionTools } from '../execution/ExecutionTools';
23
+ import type { LlmExecutionTools } from '../execution/LlmExecutionTools';
24
+ import type { LlmExecutionToolsConstructor } from '../execution/LlmExecutionToolsConstructor';
25
+ import type { PipelineExecutor } from '../execution/PipelineExecutor';
26
+ import type { PipelineExecutorResult } from '../execution/PipelineExecutorResult';
27
+ import type { PromptResult } from '../execution/PromptResult';
28
+ import type { CompletionPromptResult } from '../execution/PromptResult';
29
+ import type { ChatPromptResult } from '../execution/PromptResult';
30
+ import type { EmbeddingPromptResult } from '../execution/PromptResult';
31
+ import type { PromptResultUsage } from '../execution/PromptResultUsage';
32
+ import type { PromptResultUsageCounts } from '../execution/PromptResultUsage';
33
+ import type { ScriptExecutionTools } from '../execution/ScriptExecutionTools';
34
+ import type { ScriptExecutionToolsExecuteOptions } from '../execution/ScriptExecutionTools';
35
+ import type { UncertainNumber } from '../execution/UncertainNumber';
36
+ import type { UserInterfaceTools } from '../execution/UserInterfaceTools';
37
+ import type { UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools';
38
+ import type { FormatSubvalueDefinition } from '../formats/_common/FormatSubvalueDefinition';
39
+ import type { CsvSettings } from '../formats/csv/CsvSettings';
40
+ import type { LlmToolsConfiguration } from '../llm-providers/_common/register/LlmToolsConfiguration';
41
+ import type { LlmToolsMetadata } from '../llm-providers/_common/register/LlmToolsMetadata';
42
+ import type { LlmToolsOptions } from '../llm-providers/_common/register/LlmToolsOptions';
43
+ import type { CacheItem } from '../llm-providers/_common/utils/cache/CacheItem';
44
+ import type { CacheLlmToolsOptions } from '../llm-providers/_common/utils/cache/CacheLlmToolsOptions';
45
+ import type { LlmExecutionToolsWithTotalUsage } from '../llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage';
46
+ import type { AnthropicClaudeExecutionToolsOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
47
+ import type { AnthropicClaudeExecutionToolsDirectOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
48
+ import type { AnthropicClaudeExecutionToolsProxiedOptions } from '../llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
49
+ import type { AzureOpenAiExecutionToolsOptions } from '../llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions';
50
+ import type { LangtailExecutionToolsOptions } from '../llm-providers/langtail/LangtailExecutionToolsOptions';
51
+ import type { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlmExecutionTools';
52
+ import type { OpenAiExecutionToolsOptions } from '../llm-providers/openai/OpenAiExecutionToolsOptions';
53
+ import type { PromptbookServer_Error } from '../llm-providers/remote/interfaces/PromptbookServer_Error';
54
+ import type { PromptbookServer_ListModels_Request } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
55
+ import type { PromptbookServer_ListModels_CollectionRequest } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
56
+ import type { PromptbookServer_ListModels_AnonymousRequest } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Request';
57
+ import type { PromptbookServer_ListModels_Response } from '../llm-providers/remote/interfaces/PromptbookServer_ListModels_Response';
58
+ import type { PromptbookServer_Prompt_Progress } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Progress';
59
+ import type { PromptbookServer_Prompt_Request } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
60
+ import type { PromptbookServer_Prompt_CollectionRequest } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
61
+ import type { PromptbookServer_Prompt_AnonymousRequest } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Request';
62
+ import type { PromptbookServer_Prompt_Response } from '../llm-providers/remote/interfaces/PromptbookServer_Prompt_Response';
63
+ import type { RemoteLlmExecutionToolsOptions } from '../llm-providers/remote/interfaces/RemoteLlmExecutionToolsOptions';
64
+ import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
65
+ import type { AnonymousRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
66
+ import type { CollectionRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
67
+ import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
68
+ import type { Converter } from '../scrapers/_common/Converter';
69
+ import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
70
+ import type { ScraperConstructor } from '../scrapers/_common/register/ScraperConstructor';
71
+ import type { Scraper } from '../scrapers/_common/Scraper';
72
+ import type { ScraperSourceHandler } from '../scrapers/_common/Scraper';
73
+ import type { ScraperIntermediateSource } from '../scrapers/_common/ScraperIntermediateSource';
74
+ import type { JavascriptExecutionToolsOptions } from '../scripting/javascript/JavascriptExecutionToolsOptions';
75
+ import type { PostprocessingFunction } from '../scripting/javascript/JavascriptExecutionToolsOptions';
76
+ import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
77
+ import type { FileCacheStorageOptions } from '../storage/file-cache-storage/FileCacheStorageOptions';
78
+ import type { ExecutionPromptReportJson } from '../types/execution-report/ExecutionPromptReportJson';
79
+ import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
80
+ import type { ExecutionReportString } from '../types/execution-report/ExecutionReportString';
81
+ import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
82
+ import type { ModelRequirements } from '../types/ModelRequirements';
83
+ import type { CompletionModelRequirements } from '../types/ModelRequirements';
84
+ import type { ChatModelRequirements } from '../types/ModelRequirements';
85
+ import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
86
+ import type { ModelVariant } from '../types/ModelVariant';
87
+ import type { DialogTemplateJson } from '../types/PipelineJson/DialogTemplateJson';
88
+ import type { Expectations } from '../types/PipelineJson/Expectations';
89
+ import type { ExpectationUnit } from '../types/PipelineJson/Expectations';
90
+ import type { ExpectationAmount } from '../types/PipelineJson/Expectations';
91
+ import type { KnowledgePiecePreparedJson } from '../types/PipelineJson/KnowledgePieceJson';
92
+ import type { KnowledgeSourceJson } from '../types/PipelineJson/KnowledgeSourceJson';
93
+ import type { KnowledgeSourcePreparedJson } from '../types/PipelineJson/KnowledgeSourceJson';
94
+ import type { ParameterJson } from '../types/PipelineJson/ParameterJson';
95
+ import type { PersonaJson } from '../types/PipelineJson/PersonaJson';
96
+ import type { PersonaPreparedJson } from '../types/PipelineJson/PersonaJson';
97
+ import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
98
+ import type { PreparationJson } from '../types/PipelineJson/PreparationJson';
99
+ import type { PromptTemplateJson } from '../types/PipelineJson/PromptTemplateJson';
100
+ import type { ScriptTemplateJson } from '../types/PipelineJson/ScriptTemplateJson';
101
+ import type { SimpleTemplateJson } from '../types/PipelineJson/SimpleTemplateJson';
102
+ import type { TemplateJson } from '../types/PipelineJson/TemplateJson';
103
+ import type { TemplateJsonCommon } from '../types/PipelineJson/TemplateJsonCommon';
104
+ import type { PipelineString } from '../types/PipelineString';
105
+ import type { Prompt } from '../types/Prompt';
106
+ import type { CompletionPrompt } from '../types/Prompt';
107
+ import type { ChatPrompt } from '../types/Prompt';
108
+ import type { EmbeddingPrompt } from '../types/Prompt';
109
+ import type { ScriptLanguage } from '../types/ScriptLanguage';
110
+ import type { TaskProgress } from '../types/TaskProgress';
111
+ import type { string_char_emoji } from '../types/typeAliasEmoji';
112
+ import type { string_business_category_name } from '../types/typeAliases';
113
+ import type { string_model_name } from '../types/typeAliases';
114
+ import type { string_prompt } from '../types/typeAliases';
115
+ import type { string_template } from '../types/typeAliases';
116
+ import type { string_text_prompt } from '../types/typeAliases';
117
+ import type { string_chat_prompt } from '../types/typeAliases';
118
+ import type { string_system_message } from '../types/typeAliases';
119
+ import type { string_completion_prompt } from '../types/typeAliases';
120
+ import type { string_page } from '../types/typeAliases';
121
+ import type { string_mime_type } from '../types/typeAliases';
122
+ import type { string_mime_type_with_wildcard } from '../types/typeAliases';
123
+ import type { string_char } from '../types/typeAliases';
124
+ import type { string_name } from '../types/typeAliases';
125
+ import type { string_parameter_name } from '../types/typeAliases';
126
+ import type { string_parameter_value } from '../types/typeAliases';
127
+ import type { Parameters } from '../types/typeAliases';
128
+ import type { string_reserved_parameter_name } from '../types/typeAliases';
129
+ import type { ReservedParameters } from '../types/typeAliases';
130
+ import type { string_title } from '../types/typeAliases';
131
+ import type { string_persona_description } from '../types/typeAliases';
132
+ import type { string_knowledge_source_content } from '../types/typeAliases';
133
+ import type { string_knowledge_source_link } from '../types/typeAliases';
134
+ import type { string_html } from '../types/typeAliases';
135
+ import type { string_xml } from '../types/typeAliases';
136
+ import type { string_markdown } from '../types/typeAliases';
137
+ import type { string_markdown_section } from '../types/typeAliases';
138
+ import type { string_markdown_section_content } from '../types/typeAliases';
139
+ import type { string_markdown_text } from '../types/typeAliases';
140
+ import type { string_promptbook_documentation_url } from '../types/typeAliases';
141
+ import type { string_domain } from '../types/typeAliases';
142
+ import type { string_tdl } from '../types/typeAliases';
143
+ import type { string_css } from '../types/typeAliases';
144
+ import type { string_svg } from '../types/typeAliases';
145
+ import type { string_script } from '../types/typeAliases';
146
+ import type { string_javascript } from '../types/typeAliases';
147
+ import type { string_json } from '../types/typeAliases';
148
+ import type { string_css_class } from '../types/typeAliases';
149
+ import type { string_css_property } from '../types/typeAliases';
150
+ import type { string_css_value } from '../types/typeAliases';
151
+ import type { string_css_selector } from '../types/typeAliases';
152
+ import type { string_url } from '../types/typeAliases';
153
+ import type { string_base_url } from '../types/typeAliases';
154
+ import type { string_pipeline_url } from '../types/typeAliases';
155
+ import type { string_pipeline_url_with_hashtemplate } from '../types/typeAliases';
156
+ import type { string_data_url } from '../types/typeAliases';
157
+ import type { string_base64 } from '../types/typeAliases';
158
+ import type { string_href } from '../types/typeAliases';
159
+ import type { string_url_image } from '../types/typeAliases';
160
+ import type { string_executable_path } from '../types/typeAliases';
161
+ import type { string_uri } from '../types/typeAliases';
162
+ import type { string_uri_part } from '../types/typeAliases';
163
+ import type { string_uriid } from '../types/typeAliases';
164
+ import type { string_hostname } from '../types/typeAliases';
165
+ import type { string_host } from '../types/typeAliases';
166
+ import type { string_protocol } from '../types/typeAliases';
167
+ import type { string_email } from '../types/typeAliases';
168
+ import type { string_emails } from '../types/typeAliases';
169
+ import type { string_uuid } from '../types/typeAliases';
170
+ import type { string_user_id } from '../types/typeAliases';
171
+ import type { string_sha256 } from '../types/typeAliases';
172
+ import type { string_semantic_version } from '../types/typeAliases';
173
+ import type { string_version_dependency } from '../types/typeAliases';
174
+ import type { string_file_extension } from '../types/typeAliases';
175
+ import type { string_absolute_filename } from '../types/typeAliases';
176
+ import type { string_relative_filename } from '../types/typeAliases';
177
+ import type { string_filename } from '../types/typeAliases';
178
+ import type { string_absolute_dirname } from '../types/typeAliases';
179
+ import type { string_relative_dirname } from '../types/typeAliases';
180
+ import type { string_dirname } from '../types/typeAliases';
181
+ import type { string_person_fullname } from '../types/typeAliases';
182
+ import type { string_person_profile } from '../types/typeAliases';
183
+ import type { string_license } from '../types/typeAliases';
184
+ import type { string_attribute } from '../types/typeAliases';
185
+ import type { string_attribute_value_scope } from '../types/typeAliases';
186
+ import type { string_color } from '../types/typeAliases';
187
+ import type { string_translate_name } from '../types/typeAliases';
188
+ import type { string_translate_name_not_normalized } from '../types/typeAliases';
189
+ import type { string_translate_language } from '../types/typeAliases';
190
+ import type { string_javascript_name } from '../types/typeAliases';
191
+ import type { string_postprocessing_function_name } from '../types/typeAliases';
192
+ import type { string_token } from '../types/typeAliases';
193
+ import type { string_license_token } from '../types/typeAliases';
194
+ import type { string_password } from '../types/typeAliases';
195
+ import type { string_ssh_key } from '../types/typeAliases';
196
+ import type { string_pgp_key } from '../types/typeAliases';
197
+ import type { string_date_iso8601 } from '../types/typeAliases';
198
+ import type { number_usd } from '../types/typeAliases';
199
+ import type { number_id } from '../types/typeAliases';
200
+ import type { number_linecol_number } from '../types/typeAliases';
201
+ import type { number_tokens } from '../types/typeAliases';
202
+ import type { number_positive } from '../types/typeAliases';
203
+ import type { number_negative } from '../types/typeAliases';
204
+ import type { number_integer } from '../types/typeAliases';
205
+ import type { number_percent } from '../types/typeAliases';
206
+ import type { number_model_temperature } from '../types/typeAliases';
207
+ import type { number_seed } from '../types/typeAliases';
208
+ import type { number_likeness } from '../types/typeAliases';
209
+ import type { number_miliseconds } from '../types/typeAliases';
210
+ import type { number_seconds } from '../types/typeAliases';
211
+ import type { number_minutes } from '../types/typeAliases';
212
+ import type { number_hours } from '../types/typeAliases';
213
+ import type { number_days } from '../types/typeAliases';
214
+ import type { number_weeks } from '../types/typeAliases';
215
+ import type { number_months } from '../types/typeAliases';
216
+ import type { number_years } from '../types/typeAliases';
217
+ import type { number_bytes } from '../types/typeAliases';
218
+ import type { number_kilobytes } from '../types/typeAliases';
219
+ import type { number_megabytes } from '../types/typeAliases';
220
+ import type { number_gigabytes } from '../types/typeAliases';
221
+ import type { number_terabytes } from '../types/typeAliases';
222
+ import type { Registered } from '../utils/$Register';
223
+ import type { Registration } from '../utils/$Register';
224
+ import type { IExecCommandOptions } from '../utils/execCommand/IExecCommandOptions';
225
+ import type { IExecCommandOptionsAdvanced } from '../utils/execCommand/IExecCommandOptions';
226
+ import type { FromtoItems } from '../utils/FromtoItems';
227
+ import type { CodeBlock } from '../utils/markdown/extractAllBlocksFromMarkdown';
228
+ import type { MarkdownSection } from '../utils/markdown/parseMarkdownSection';
229
+ import type { string_keyword } from '../utils/normalization/IKeywords';
230
+ import type { IKeywords } from '../utils/normalization/IKeywords';
231
+ import type { string_kebab_case } from '../utils/normalization/normalize-to-kebab-case';
232
+ import type { string_camelCase } from '../utils/normalization/normalizeTo_camelCase';
233
+ import type { string_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
234
+ import type { string_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
235
+ import type { string_snake_case } from '../utils/normalization/normalizeTo_snake_case';
236
+ import type { empty_object } from '../utils/organization/empty_object';
237
+ import type { really_any } from '../utils/organization/really_any';
238
+ import type { TODO_any } from '../utils/organization/TODO_any';
239
+ import type { string_promptbook_version } from '../version';
240
+ export type { PipelineCollection };
241
+ export type { Command };
242
+ export type { CommandParser };
243
+ export type { PipelineBothCommandParser };
244
+ export type { PipelineHeadCommandParser };
245
+ export type { PipelineTemplateCommandParser };
246
+ export type { CommandParserInput };
247
+ export type { CommandUsagePlace };
248
+ export type { ExpectCommand };
249
+ export type { ForeachJson };
250
+ export type { FormatCommand };
251
+ export type { TemplateType };
252
+ export type { PrettifyOptions };
253
+ export type { renderPipelineMermaidOptions };
254
+ export type { CallbackInterfaceToolsOptions };
255
+ export type { ErrorJson };
256
+ export type { AvailableModel };
257
+ export type { CommonToolsOptions };
258
+ export type { CreatePipelineExecutorOptions };
259
+ export type { CreatePipelineExecutorSettings };
260
+ export type { EmbeddingVector };
261
+ export type { ExecutionTools };
262
+ export type { LlmExecutionTools };
263
+ export type { LlmExecutionToolsConstructor };
264
+ export type { PipelineExecutor };
265
+ export type { PipelineExecutorResult };
266
+ export type { PromptResult };
267
+ export type { CompletionPromptResult };
268
+ export type { ChatPromptResult };
269
+ export type { EmbeddingPromptResult };
270
+ export type { PromptResultUsage };
271
+ export type { PromptResultUsageCounts };
272
+ export type { ScriptExecutionTools };
273
+ export type { ScriptExecutionToolsExecuteOptions };
274
+ export type { UncertainNumber };
275
+ export type { UserInterfaceTools };
276
+ export type { UserInterfaceToolsPromptDialogOptions };
277
+ export type { FormatSubvalueDefinition };
278
+ export type { CsvSettings };
279
+ export type { LlmToolsConfiguration };
280
+ export type { LlmToolsMetadata };
281
+ export type { LlmToolsOptions };
282
+ export type { CacheItem };
283
+ export type { CacheLlmToolsOptions };
284
+ export type { LlmExecutionToolsWithTotalUsage };
285
+ export type { AnthropicClaudeExecutionToolsOptions };
286
+ export type { AnthropicClaudeExecutionToolsDirectOptions };
287
+ export type { AnthropicClaudeExecutionToolsProxiedOptions };
288
+ export type { AzureOpenAiExecutionToolsOptions };
289
+ export type { LangtailExecutionToolsOptions };
290
+ export type { MultipleLlmExecutionTools };
291
+ export type { OpenAiExecutionToolsOptions };
292
+ export type { PromptbookServer_Error };
293
+ export type { PromptbookServer_ListModels_Request };
294
+ export type { PromptbookServer_ListModels_CollectionRequest };
295
+ export type { PromptbookServer_ListModels_AnonymousRequest };
296
+ export type { PromptbookServer_ListModels_Response };
297
+ export type { PromptbookServer_Prompt_Progress };
298
+ export type { PromptbookServer_Prompt_Request };
299
+ export type { PromptbookServer_Prompt_CollectionRequest };
300
+ export type { PromptbookServer_Prompt_AnonymousRequest };
301
+ export type { PromptbookServer_Prompt_Response };
302
+ export type { RemoteLlmExecutionToolsOptions };
303
+ export type { RemoteServerOptions };
304
+ export type { AnonymousRemoteServerOptions };
305
+ export type { CollectionRemoteServerOptions };
306
+ export type { PrepareAndScrapeOptions };
307
+ export type { Converter };
308
+ export type { ScraperAndConverterMetadata };
309
+ export type { ScraperConstructor };
310
+ export type { Scraper };
311
+ export type { ScraperSourceHandler };
312
+ export type { ScraperIntermediateSource };
313
+ export type { JavascriptExecutionToolsOptions };
314
+ export type { PostprocessingFunction };
315
+ export type { PromptbookStorage };
316
+ export type { FileCacheStorageOptions };
317
+ export type { ExecutionPromptReportJson };
318
+ export type { ExecutionReportJson };
319
+ export type { ExecutionReportString };
320
+ export type { ExecutionReportStringOptions };
321
+ export type { ModelRequirements };
322
+ export type { CompletionModelRequirements };
323
+ export type { ChatModelRequirements };
324
+ export type { EmbeddingModelRequirements };
325
+ export type { ModelVariant };
326
+ export type { DialogTemplateJson };
327
+ export type { Expectations };
328
+ export type { ExpectationUnit };
329
+ export type { ExpectationAmount };
330
+ export type { KnowledgePiecePreparedJson };
331
+ export type { KnowledgeSourceJson };
332
+ export type { KnowledgeSourcePreparedJson };
333
+ export type { ParameterJson };
334
+ export type { PersonaJson };
335
+ export type { PersonaPreparedJson };
336
+ export type { PipelineJson };
337
+ export type { PreparationJson };
338
+ export type { PromptTemplateJson };
339
+ export type { ScriptTemplateJson };
340
+ export type { SimpleTemplateJson };
341
+ export type { TemplateJson };
342
+ export type { TemplateJsonCommon };
343
+ export type { PipelineString };
344
+ export type { Prompt };
345
+ export type { CompletionPrompt };
346
+ export type { ChatPrompt };
347
+ export type { EmbeddingPrompt };
348
+ export type { ScriptLanguage };
349
+ export type { TaskProgress };
350
+ export type { string_char_emoji };
351
+ export type { string_business_category_name };
352
+ export type { string_model_name };
353
+ export type { string_prompt };
354
+ export type { string_template };
355
+ export type { string_text_prompt };
356
+ export type { string_chat_prompt };
357
+ export type { string_system_message };
358
+ export type { string_completion_prompt };
359
+ export type { string_page };
360
+ export type { string_mime_type };
361
+ export type { string_mime_type_with_wildcard };
362
+ export type { string_char };
363
+ export type { string_name };
364
+ export type { string_parameter_name };
365
+ export type { string_parameter_value };
366
+ export type { Parameters };
367
+ export type { string_reserved_parameter_name };
368
+ export type { ReservedParameters };
369
+ export type { string_title };
370
+ export type { string_persona_description };
371
+ export type { string_knowledge_source_content };
372
+ export type { string_knowledge_source_link };
373
+ export type { string_html };
374
+ export type { string_xml };
375
+ export type { string_markdown };
376
+ export type { string_markdown_section };
377
+ export type { string_markdown_section_content };
378
+ export type { string_markdown_text };
379
+ export type { string_promptbook_documentation_url };
380
+ export type { string_domain };
381
+ export type { string_tdl };
382
+ export type { string_css };
383
+ export type { string_svg };
384
+ export type { string_script };
385
+ export type { string_javascript };
386
+ export type { string_json };
387
+ export type { string_css_class };
388
+ export type { string_css_property };
389
+ export type { string_css_value };
390
+ export type { string_css_selector };
391
+ export type { string_url };
392
+ export type { string_base_url };
393
+ export type { string_pipeline_url };
394
+ export type { string_pipeline_url_with_hashtemplate };
395
+ export type { string_data_url };
396
+ export type { string_base64 };
397
+ export type { string_href };
398
+ export type { string_url_image };
399
+ export type { string_executable_path };
400
+ export type { string_uri };
401
+ export type { string_uri_part };
402
+ export type { string_uriid };
403
+ export type { string_hostname };
404
+ export type { string_host };
405
+ export type { string_protocol };
406
+ export type { string_email };
407
+ export type { string_emails };
408
+ export type { string_uuid };
409
+ export type { string_user_id };
410
+ export type { string_sha256 };
411
+ export type { string_semantic_version };
412
+ export type { string_version_dependency };
413
+ export type { string_file_extension };
414
+ export type { string_absolute_filename };
415
+ export type { string_relative_filename };
416
+ export type { string_filename };
417
+ export type { string_absolute_dirname };
418
+ export type { string_relative_dirname };
419
+ export type { string_dirname };
420
+ export type { string_person_fullname };
421
+ export type { string_person_profile };
422
+ export type { string_license };
423
+ export type { string_attribute };
424
+ export type { string_attribute_value_scope };
425
+ export type { string_color };
426
+ export type { string_translate_name };
427
+ export type { string_translate_name_not_normalized };
428
+ export type { string_translate_language };
429
+ export type { string_javascript_name };
430
+ export type { string_postprocessing_function_name };
431
+ export type { string_token };
432
+ export type { string_license_token };
433
+ export type { string_password };
434
+ export type { string_ssh_key };
435
+ export type { string_pgp_key };
436
+ export type { string_date_iso8601 };
437
+ export type { number_usd };
438
+ export type { number_id };
439
+ export type { number_linecol_number };
440
+ export type { number_tokens };
441
+ export type { number_positive };
442
+ export type { number_negative };
443
+ export type { number_integer };
444
+ export type { number_percent };
445
+ export type { number_model_temperature };
446
+ export type { number_seed };
447
+ export type { number_likeness };
448
+ export type { number_miliseconds };
449
+ export type { number_seconds };
450
+ export type { number_minutes };
451
+ export type { number_hours };
452
+ export type { number_days };
453
+ export type { number_weeks };
454
+ export type { number_months };
455
+ export type { number_years };
456
+ export type { number_bytes };
457
+ export type { number_kilobytes };
458
+ export type { number_megabytes };
459
+ export type { number_gigabytes };
460
+ export type { number_terabytes };
461
+ export type { Registered };
462
+ export type { Registration };
463
+ export type { IExecCommandOptions };
464
+ export type { IExecCommandOptionsAdvanced };
465
+ export type { FromtoItems };
466
+ export type { CodeBlock };
467
+ export type { MarkdownSection };
468
+ export type { string_keyword };
469
+ export type { IKeywords };
470
+ export type { string_kebab_case };
471
+ export type { string_camelCase };
472
+ export type { string_PascalCase };
473
+ export type { string_SCREAMING_CASE };
474
+ export type { string_snake_case };
475
+ export type { empty_object };
476
+ export type { really_any };
477
+ export type { TODO_any };
478
+ export type { string_promptbook_version };
@@ -0,0 +1,142 @@
1
+ import { PROMPTBOOK_VERSION } from '../version';
2
+ import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
3
+ import { extractParameterNamesFromTemplate } from '../conversion/utils/extractParameterNamesFromTemplate';
4
+ import { extractVariables } from '../conversion/utils/extractVariables';
5
+ import { renameParameter } from '../conversion/utils/renameParameter';
6
+ import { titleToName } from '../conversion/utils/titleToName';
7
+ import { deserializeError } from '../errors/utils/deserializeError';
8
+ import { serializeError } from '../errors/utils/serializeError';
9
+ import { forEachAsync } from '../execution/utils/forEachAsync';
10
+ import { isValidJsonString } from '../formats/json/utils/isValidJsonString';
11
+ import { $currentDate } from '../utils/$currentDate';
12
+ import { $isRunningInBrowser } from '../utils/environment/$isRunningInBrowser';
13
+ import { $isRunningInNode } from '../utils/environment/$isRunningInNode';
14
+ import { $isRunningInWebWorker } from '../utils/environment/$isRunningInWebWorker';
15
+ import { countCharacters } from '../utils/expectation-counters/countCharacters';
16
+ import { countLines } from '../utils/expectation-counters/countLines';
17
+ import { countPages } from '../utils/expectation-counters/countPages';
18
+ import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
19
+ import { splitIntoSentences } from '../utils/expectation-counters/countSentences';
20
+ import { countSentences } from '../utils/expectation-counters/countSentences';
21
+ import { countWords } from '../utils/expectation-counters/countWords';
22
+ import { CountUtils } from '../utils/expectation-counters/index';
23
+ import { capitalize } from '../utils/normalization/capitalize';
24
+ import { decapitalize } from '../utils/normalization/decapitalize';
25
+ import { DIACRITIC_VARIANTS_LETTERS } from '../utils/normalization/DIACRITIC_VARIANTS_LETTERS';
26
+ import type { string_keyword } from '../utils/normalization/IKeywords';
27
+ import type { IKeywords } from '../utils/normalization/IKeywords';
28
+ import { isValidKeyword } from '../utils/normalization/isValidKeyword';
29
+ import { nameToUriPart } from '../utils/normalization/nameToUriPart';
30
+ import { nameToUriParts } from '../utils/normalization/nameToUriParts';
31
+ import type { string_kebab_case } from '../utils/normalization/normalize-to-kebab-case';
32
+ import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
33
+ import type { string_camelCase } from '../utils/normalization/normalizeTo_camelCase';
34
+ import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
35
+ import type { string_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
36
+ import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
37
+ import type { string_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
38
+ import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
39
+ import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
40
+ import { normalizeWhitespaces } from '../utils/normalization/normalizeWhitespaces';
41
+ import { parseKeywords } from '../utils/normalization/parseKeywords';
42
+ import { parseKeywordsFromString } from '../utils/normalization/parseKeywordsFromString';
43
+ import { removeDiacritics } from '../utils/normalization/removeDiacritics';
44
+ import { searchKeywords } from '../utils/normalization/searchKeywords';
45
+ import { extractParameterNames } from '../utils/parameters/extractParameterNames';
46
+ import { replaceParameters } from '../utils/parameters/replaceParameters';
47
+ import { parseNumber } from '../utils/parseNumber';
48
+ import { $randomSeed } from '../utils/random/$randomSeed';
49
+ import { removeEmojis } from '../utils/removeEmojis';
50
+ import { removeQuotes } from '../utils/removeQuotes';
51
+ import { $deepFreeze } from '../utils/serialization/$deepFreeze';
52
+ import { checkSerializableAsJson } from '../utils/serialization/checkSerializableAsJson';
53
+ import { clonePipeline } from '../utils/serialization/clonePipeline';
54
+ import { deepClone } from '../utils/serialization/deepClone';
55
+ import { isSerializableAsJson } from '../utils/serialization/isSerializableAsJson';
56
+ import { difference } from '../utils/sets/difference';
57
+ import { intersection } from '../utils/sets/intersection';
58
+ import { union } from '../utils/sets/union';
59
+ import { trimCodeBlock } from '../utils/trimCodeBlock';
60
+ import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
61
+ import { unwrapResult } from '../utils/unwrapResult';
62
+ import { isValidEmail } from '../utils/validators/email/isValidEmail';
63
+ import { isValidFilePath } from '../utils/validators/filePath/isValidFilePath';
64
+ import { isValidJavascriptName } from '../utils/validators/javascriptName/isValidJavascriptName';
65
+ import { isValidPromptbookVersion } from '../utils/validators/semanticVersion/isValidPromptbookVersion';
66
+ import { isValidSemanticVersion } from '../utils/validators/semanticVersion/isValidSemanticVersion';
67
+ import { isHostnameOnPrivateNetwork } from '../utils/validators/url/isHostnameOnPrivateNetwork';
68
+ import { isUrlOnPrivateNetwork } from '../utils/validators/url/isUrlOnPrivateNetwork';
69
+ import { isValidPipelineUrl } from '../utils/validators/url/isValidPipelineUrl';
70
+ import { isValidUrl } from '../utils/validators/url/isValidUrl';
71
+ import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
72
+ export { PROMPTBOOK_VERSION };
73
+ export { renderPromptbookMermaid };
74
+ export { extractParameterNamesFromTemplate };
75
+ export { extractVariables };
76
+ export { renameParameter };
77
+ export { titleToName };
78
+ export { deserializeError };
79
+ export { serializeError };
80
+ export { forEachAsync };
81
+ export { isValidJsonString };
82
+ export { $currentDate };
83
+ export { $isRunningInBrowser };
84
+ export { $isRunningInNode };
85
+ export { $isRunningInWebWorker };
86
+ export { countCharacters };
87
+ export { countLines };
88
+ export { countPages };
89
+ export { countParagraphs };
90
+ export { splitIntoSentences };
91
+ export { countSentences };
92
+ export { countWords };
93
+ export { CountUtils };
94
+ export { capitalize };
95
+ export { decapitalize };
96
+ export { DIACRITIC_VARIANTS_LETTERS };
97
+ export type { string_keyword };
98
+ export type { IKeywords };
99
+ export { isValidKeyword };
100
+ export { nameToUriPart };
101
+ export { nameToUriParts };
102
+ export type { string_kebab_case };
103
+ export { normalizeToKebabCase };
104
+ export type { string_camelCase };
105
+ export { normalizeTo_camelCase };
106
+ export type { string_PascalCase };
107
+ export { normalizeTo_PascalCase };
108
+ export type { string_SCREAMING_CASE };
109
+ export { normalizeTo_SCREAMING_CASE };
110
+ export { normalizeTo_snake_case };
111
+ export { normalizeWhitespaces };
112
+ export { parseKeywords };
113
+ export { parseKeywordsFromString };
114
+ export { removeDiacritics };
115
+ export { searchKeywords };
116
+ export { extractParameterNames };
117
+ export { replaceParameters };
118
+ export { parseNumber };
119
+ export { $randomSeed };
120
+ export { removeEmojis };
121
+ export { removeQuotes };
122
+ export { $deepFreeze };
123
+ export { checkSerializableAsJson };
124
+ export { clonePipeline };
125
+ export { deepClone };
126
+ export { isSerializableAsJson };
127
+ export { difference };
128
+ export { intersection };
129
+ export { union };
130
+ export { trimCodeBlock };
131
+ export { trimEndOfCodeBlock };
132
+ export { unwrapResult };
133
+ export { isValidEmail };
134
+ export { isValidFilePath };
135
+ export { isValidJavascriptName };
136
+ export { isValidPromptbookVersion };
137
+ export { isValidSemanticVersion };
138
+ export { isHostnameOnPrivateNetwork };
139
+ export { isUrlOnPrivateNetwork };
140
+ export { isValidPipelineUrl };
141
+ export { isValidUrl };
142
+ export { isValidUuid };
@@ -0,0 +1,8 @@
1
+ import { PROMPTBOOK_VERSION } from '../version';
2
+ import { createWebsiteScraper } from '../scrapers/website/createWebsiteScraper';
3
+ import { _WebsiteScraperRegistration } from '../scrapers/website/register-constructor';
4
+ import { WebsiteScraper } from '../scrapers/website/WebsiteScraper';
5
+ export { PROMPTBOOK_VERSION };
6
+ export { createWebsiteScraper };
7
+ export { _WebsiteScraperRegistration };
8
+ export { WebsiteScraper };
@@ -0,0 +1,11 @@
1
+ import type { Command as Program } from 'commander';
2
+ /**
3
+ * Initializes `about` command for Promptbook CLI utilities
4
+ *
5
+ * @private internal function of `promptbookCli`
6
+ */
7
+ export declare function initializeAboutCommand(program: Program): void;
8
+ /**
9
+ * TODO: [🗽] Unite branding and make single place for it
10
+ * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
+ */
@@ -0,0 +1,11 @@
1
+ import type { Command as Program } from 'commander';
2
+ /**
3
+ * Initializes testing `hello` command for Promptbook CLI utilities
4
+ *
5
+ * @private internal function of `promptbookCli`
6
+ */
7
+ export declare function initializeHelloCommand(program: Program): void;
8
+ /**
9
+ * TODO: [🧠][🐣] Make here some easter egg with generated hello greeting via LLM models
10
+ * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
+ */