@promptbook/fake-llm 0.56.0-3

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 (534) hide show
  1. package/README.md +705 -0
  2. package/esm/index.es.js +843 -0
  3. package/esm/index.es.js.map +1 -0
  4. package/esm/typings/_packages/anthropic-claude.index.d.ts +5 -0
  5. package/esm/typings/_packages/azure-openai.index.d.ts +5 -0
  6. package/esm/typings/_packages/cli.index.d.ts +10 -0
  7. package/esm/typings/_packages/core.index.d.ts +41 -0
  8. package/esm/typings/_packages/execute-javascript.index.d.ts +48 -0
  9. package/esm/typings/_packages/fake-llm.index.d.ts +7 -0
  10. package/esm/typings/_packages/langtail.index.d.ts +5 -0
  11. package/esm/typings/_packages/node.index.d.ts +4 -0
  12. package/esm/typings/_packages/openai.index.d.ts +6 -0
  13. package/esm/typings/_packages/remote-client.index.d.ts +6 -0
  14. package/esm/typings/_packages/remote-server.index.d.ts +5 -0
  15. package/esm/typings/_packages/types.index.d.ts +28 -0
  16. package/esm/typings/_packages/utils.index.d.ts +71 -0
  17. package/esm/typings/config.d.ts +8 -0
  18. package/esm/typings/conversion/prettify/PrettifyOptions.d.ts +13 -0
  19. package/esm/typings/conversion/prettify/prettifyPromptbookString.d.ts +10 -0
  20. package/esm/typings/conversion/prettify/prettifyPromptbookStringCli.d.ts +9 -0
  21. package/esm/typings/conversion/prettify/renderPromptbookMermaid.d.ts +25 -0
  22. package/esm/typings/conversion/promptbookJsonToString.d.ts +12 -0
  23. package/esm/typings/conversion/promptbookStringToJson.d.ts +15 -0
  24. package/esm/typings/conversion/promptbookStringToJson.test.d.ts +1 -0
  25. package/esm/typings/conversion/utils/extractParametersFromPromptTemplate.d.ts +13 -0
  26. package/esm/typings/conversion/utils/extractParametersFromPromptTemplate.test.d.ts +1 -0
  27. package/esm/typings/conversion/utils/extractVariables.d.ts +13 -0
  28. package/esm/typings/conversion/utils/extractVariables.test.d.ts +1 -0
  29. package/esm/typings/conversion/utils/parseCommand.d.ts +11 -0
  30. package/esm/typings/conversion/utils/parseCommand.test.d.ts +4 -0
  31. package/esm/typings/conversion/utils/parseNumber.d.ts +15 -0
  32. package/esm/typings/conversion/utils/parseNumber.test.d.ts +1 -0
  33. package/esm/typings/conversion/utils/renameParameter.d.ts +25 -0
  34. package/esm/typings/conversion/utils/renameParameter.test.d.ts +1 -0
  35. package/esm/typings/conversion/utils/titleToName.d.ts +4 -0
  36. package/esm/typings/conversion/utils/titleToName.test.d.ts +1 -0
  37. package/esm/typings/conversion/validation/_importPromptbook.d.ts +13 -0
  38. package/esm/typings/conversion/validation/promptbookStringToJson-syntaxErrors.test.d.ts +1 -0
  39. package/esm/typings/conversion/validation/validatePromptbookJson-logicErrors.test.d.ts +1 -0
  40. package/esm/typings/conversion/validation/validatePromptbookJson.d.ts +27 -0
  41. package/esm/typings/conversion/validation/validatePromptbookJson.test.d.ts +1 -0
  42. package/esm/typings/errors/PromptbookExecutionError.d.ts +7 -0
  43. package/esm/typings/errors/PromptbookLibraryError.d.ts +7 -0
  44. package/esm/typings/errors/PromptbookLogicError.d.ts +7 -0
  45. package/esm/typings/errors/PromptbookNotFoundError.d.ts +7 -0
  46. package/esm/typings/errors/PromptbookReferenceError.d.ts +7 -0
  47. package/esm/typings/errors/PromptbookSyntaxError.d.ts +7 -0
  48. package/esm/typings/errors/TemplateError.d.ts +9 -0
  49. package/esm/typings/errors/UnexpectedError.d.ts +7 -0
  50. package/esm/typings/errors/_ExpectError.d.ts +10 -0
  51. package/esm/typings/execution/CommonExecutionToolsOptions.d.ts +9 -0
  52. package/esm/typings/execution/ExecutionTools.d.ts +32 -0
  53. package/esm/typings/execution/LlmExecutionTools.d.ts +50 -0
  54. package/esm/typings/execution/PromptResult.d.ts +103 -0
  55. package/esm/typings/execution/PromptbookExecutor.d.ts +42 -0
  56. package/esm/typings/execution/ScriptExecutionTools.d.ts +38 -0
  57. package/esm/typings/execution/UserInterfaceTools.d.ts +46 -0
  58. package/esm/typings/execution/addPromptResultUsage.test.d.ts +1 -0
  59. package/esm/typings/execution/assertsExecutionSuccessful.d.ts +11 -0
  60. package/esm/typings/execution/createPromptbookExecutor.d.ts +42 -0
  61. package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +43 -0
  62. package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +8 -0
  63. package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/anthropic-claude-models.d.ts +20 -0
  64. package/esm/typings/execution/plugins/llm-execution-tools/anthropic-claude/playground/playground.d.ts +2 -0
  65. package/esm/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +42 -0
  66. package/esm/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +35 -0
  67. package/esm/typings/execution/plugins/llm-execution-tools/azure-openai/playground/playground.d.ts +2 -0
  68. package/esm/typings/execution/plugins/llm-execution-tools/langtail/LangtailExecutionTools.d.ts +7 -0
  69. package/esm/typings/execution/plugins/llm-execution-tools/langtail/LangtailExecutionToolsOptions.d.ts +11 -0
  70. package/esm/typings/execution/plugins/llm-execution-tools/langtail/playground/playground.d.ts +2 -0
  71. package/esm/typings/execution/plugins/llm-execution-tools/mocked/MockedEchoLlmExecutionTools.d.ts +28 -0
  72. package/esm/typings/execution/plugins/llm-execution-tools/mocked/MockedFackedLlmExecutionTools.d.ts +25 -0
  73. package/esm/typings/execution/plugins/llm-execution-tools/mocked/fakeTextToExpectations.d.ts +14 -0
  74. package/esm/typings/execution/plugins/llm-execution-tools/mocked/fakeTextToExpectations.test.d.ts +1 -0
  75. package/esm/typings/execution/plugins/llm-execution-tools/mocked/faked-completion.test.d.ts +1 -0
  76. package/esm/typings/execution/plugins/llm-execution-tools/mocked/joker.test.d.ts +4 -0
  77. package/esm/typings/execution/plugins/llm-execution-tools/mocked/mocked-chat.test.d.ts +4 -0
  78. package/esm/typings/execution/plugins/llm-execution-tools/mocked/mocked-completion.test.d.ts +4 -0
  79. package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +37 -0
  80. package/esm/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +24 -0
  81. package/esm/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
  82. package/esm/typings/execution/plugins/llm-execution-tools/openai/OpenAiExecutionTools.d.ts +47 -0
  83. package/esm/typings/execution/plugins/llm-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +18 -0
  84. package/esm/typings/execution/plugins/llm-execution-tools/openai/computeOpenaiUsage.d.ts +12 -0
  85. package/esm/typings/execution/plugins/llm-execution-tools/openai/computeUsage.d.ts +16 -0
  86. package/esm/typings/execution/plugins/llm-execution-tools/openai/computeUsage.test.d.ts +1 -0
  87. package/esm/typings/execution/plugins/llm-execution-tools/openai/openai-models.d.ts +26 -0
  88. package/esm/typings/execution/plugins/llm-execution-tools/openai/playground/playground.d.ts +2 -0
  89. package/esm/typings/execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionTools.d.ts +42 -0
  90. package/esm/typings/execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionToolsOptions.d.ts +24 -0
  91. package/esm/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -0
  92. package/esm/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -0
  93. package/esm/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -0
  94. package/esm/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -0
  95. package/esm/typings/execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +28 -0
  96. package/esm/typings/execution/plugins/llm-execution-tools/remote/startRemoteServer.d.ts +18 -0
  97. package/esm/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -0
  98. package/esm/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -0
  99. package/esm/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -0
  100. package/esm/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -0
  101. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -0
  102. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -0
  103. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +7 -0
  104. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +26 -0
  105. package/esm/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -0
  106. package/esm/typings/execution/plugins/script-execution-tools/javascript/utils/unknownToString.d.ts +7 -0
  107. package/esm/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -0
  108. package/esm/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +16 -0
  109. package/esm/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -0
  110. package/esm/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -0
  111. package/esm/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +16 -0
  112. package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +15 -0
  113. package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -0
  114. package/esm/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +17 -0
  115. package/esm/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -0
  116. package/esm/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -0
  117. package/esm/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -0
  118. package/esm/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -0
  119. package/esm/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -0
  120. package/esm/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -0
  121. package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +7 -0
  122. package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -0
  123. package/esm/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -0
  124. package/esm/typings/execution/utils/addUsage.d.ts +7 -0
  125. package/esm/typings/execution/utils/addUsage.test.d.ts +1 -0
  126. package/esm/typings/execution/utils/checkExpectations.d.ts +25 -0
  127. package/esm/typings/execution/utils/checkExpectations.test.d.ts +1 -0
  128. package/esm/typings/execution/utils/computeUsageCounts.d.ts +10 -0
  129. package/esm/typings/execution/utils/forEachAsync.d.ts +18 -0
  130. package/esm/typings/execution/utils/replaceParameters.d.ts +13 -0
  131. package/esm/typings/execution/utils/replaceParameters.test.d.ts +1 -0
  132. package/esm/typings/execution/utils/uncertainNumber.d.ts +9 -0
  133. package/esm/typings/execution/utils/usageToWorktime.d.ts +10 -0
  134. package/esm/typings/execution/utils/usageToWorktime.test.d.ts +1 -0
  135. package/esm/typings/library/PromptbookLibrary.d.ts +25 -0
  136. package/esm/typings/library/SimplePromptbookLibrary.d.ts +36 -0
  137. package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +43 -0
  138. package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
  139. package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +23 -0
  140. package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
  141. package/esm/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +13 -0
  142. package/esm/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
  143. package/esm/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +26 -0
  144. package/esm/typings/library/constructors/createPromptbookSublibrary.d.ts +12 -0
  145. package/esm/typings/library/constructors/justTestFsImport.d.ts +7 -0
  146. package/esm/typings/types/Command.d.ts +101 -0
  147. package/esm/typings/types/ExecutionTypes.d.ts +13 -0
  148. package/esm/typings/types/ModelRequirements.d.ts +43 -0
  149. package/esm/typings/types/Parameters.d.ts +14 -0
  150. package/esm/typings/types/Prompt.d.ts +57 -0
  151. package/esm/typings/types/PromptbookJson/PromptTemplateJson.d.ts +145 -0
  152. package/esm/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +26 -0
  153. package/esm/typings/types/PromptbookJson/PromptbookJson.d.ts +53 -0
  154. package/esm/typings/types/PromptbookString.d.ts +12 -0
  155. package/esm/typings/types/ScriptLanguage.d.ts +9 -0
  156. package/esm/typings/types/TaskProgress.d.ts +43 -0
  157. package/esm/typings/types/execution-report/ExecutionReportJson.d.ts +58 -0
  158. package/esm/typings/types/execution-report/ExecutionReportString.d.ts +16 -0
  159. package/esm/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -0
  160. package/esm/typings/types/execution-report/config.d.ts +8 -0
  161. package/esm/typings/types/execution-report/countWorkingDuration.d.ts +7 -0
  162. package/esm/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -0
  163. package/esm/typings/types/execution-report/executionReportJsonToString.d.ts +11 -0
  164. package/esm/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -0
  165. package/esm/typings/types/typeAliasEmoji.d.ts +9 -0
  166. package/esm/typings/types/typeAliases.d.ts +430 -0
  167. package/esm/typings/utils/FromtoItems.d.ts +19 -0
  168. package/esm/typings/utils/emojis.d.ts +22 -0
  169. package/esm/typings/utils/expectation-counters/countCharacters.d.ts +5 -0
  170. package/esm/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -0
  171. package/esm/typings/utils/expectation-counters/countLines.d.ts +5 -0
  172. package/esm/typings/utils/expectation-counters/countLines.test.d.ts +1 -0
  173. package/esm/typings/utils/expectation-counters/countPages.d.ts +5 -0
  174. package/esm/typings/utils/expectation-counters/countPages.test.d.ts +1 -0
  175. package/esm/typings/utils/expectation-counters/countParagraphs.d.ts +5 -0
  176. package/esm/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -0
  177. package/esm/typings/utils/expectation-counters/countSentences.d.ts +9 -0
  178. package/esm/typings/utils/expectation-counters/countSentences.test.d.ts +1 -0
  179. package/esm/typings/utils/expectation-counters/countWords.d.ts +5 -0
  180. package/esm/typings/utils/expectation-counters/countWords.test.d.ts +1 -0
  181. package/esm/typings/utils/expectation-counters/index.d.ts +6 -0
  182. package/esm/typings/utils/extractParameters.d.ts +9 -0
  183. package/esm/typings/utils/extractParameters.test.d.ts +1 -0
  184. package/esm/typings/utils/formatNumber.d.ts +6 -0
  185. package/esm/typings/utils/formatNumber.test.d.ts +1 -0
  186. package/esm/typings/utils/getCurrentIsoDate.d.ts +7 -0
  187. package/esm/typings/utils/isRunningInWhatever.d.ts +12 -0
  188. package/esm/typings/utils/isValidJsonString.d.ts +4 -0
  189. package/esm/typings/utils/isValidJsonString.test.d.ts +1 -0
  190. package/esm/typings/utils/just.d.ts +10 -0
  191. package/esm/typings/utils/markdown/addAutoGeneratedSection.d.ts +11 -0
  192. package/esm/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -0
  193. package/esm/typings/utils/markdown/createMarkdownChart.d.ts +41 -0
  194. package/esm/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -0
  195. package/esm/typings/utils/markdown/createMarkdownTable.d.ts +8 -0
  196. package/esm/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -0
  197. package/esm/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -0
  198. package/esm/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -0
  199. package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -0
  200. package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -0
  201. package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +14 -0
  202. package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -0
  203. package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -0
  204. package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -0
  205. package/esm/typings/utils/markdown/prettifyMarkdown.d.ts +8 -0
  206. package/esm/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -0
  207. package/esm/typings/utils/markdown/removeContentComments.d.ts +9 -0
  208. package/esm/typings/utils/markdown/removeContentComments.test.d.ts +1 -0
  209. package/esm/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -0
  210. package/esm/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -0
  211. package/esm/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -0
  212. package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -0
  213. package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -0
  214. package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -0
  215. package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -0
  216. package/esm/typings/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +10 -0
  217. package/esm/typings/utils/normalization/IKeywords.d.ts +18 -0
  218. package/esm/typings/utils/normalization/capitalize.d.ts +5 -0
  219. package/esm/typings/utils/normalization/capitalize.test.d.ts +1 -0
  220. package/esm/typings/utils/normalization/decapitalize.d.ts +5 -0
  221. package/esm/typings/utils/normalization/decapitalize.test.d.ts +1 -0
  222. package/esm/typings/utils/normalization/isValidKeyword.d.ts +8 -0
  223. package/esm/typings/utils/normalization/isValidKeyword.test.d.ts +1 -0
  224. package/esm/typings/utils/normalization/nameToUriPart.d.ts +1 -0
  225. package/esm/typings/utils/normalization/nameToUriPart.test.d.ts +1 -0
  226. package/esm/typings/utils/normalization/nameToUriParts.d.ts +1 -0
  227. package/esm/typings/utils/normalization/nameToUriParts.test.d.ts +1 -0
  228. package/esm/typings/utils/normalization/normalize-to-kebab-case.d.ts +1 -0
  229. package/esm/typings/utils/normalization/normalize-to-kebab-case.test.d.ts +1 -0
  230. package/esm/typings/utils/normalization/normalizeTo_PascalCase.d.ts +1 -0
  231. package/esm/typings/utils/normalization/normalizeTo_PascalCase.test.d.ts +1 -0
  232. package/esm/typings/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +4 -0
  233. package/esm/typings/utils/normalization/normalizeTo_SCREAMING_CASE.test.d.ts +1 -0
  234. package/esm/typings/utils/normalization/normalizeTo_camelCase.d.ts +4 -0
  235. package/esm/typings/utils/normalization/normalizeTo_camelCase.test.d.ts +1 -0
  236. package/esm/typings/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  237. package/esm/typings/utils/normalization/normalizeTo_snake_case.test.d.ts +1 -0
  238. package/esm/typings/utils/normalization/normalizeWhitespaces.d.ts +4 -0
  239. package/esm/typings/utils/normalization/normalizeWhitespaces.test.d.ts +1 -0
  240. package/esm/typings/utils/normalization/parseKeywords.d.ts +14 -0
  241. package/esm/typings/utils/normalization/parseKeywords.test.d.ts +1 -0
  242. package/esm/typings/utils/normalization/parseKeywordsFromString.d.ts +8 -0
  243. package/esm/typings/utils/normalization/parseKeywordsFromString.test.d.ts +1 -0
  244. package/esm/typings/utils/normalization/removeDiacritics.d.ts +4 -0
  245. package/esm/typings/utils/normalization/removeDiacritics.test.d.ts +1 -0
  246. package/esm/typings/utils/normalization/searchKeywords.d.ts +5 -0
  247. package/esm/typings/utils/normalization/searchKeywords.test.d.ts +1 -0
  248. package/esm/typings/utils/postprocessing/extractBlock.d.ts +12 -0
  249. package/esm/typings/utils/removeEmojis.d.ts +7 -0
  250. package/esm/typings/utils/removeEmojis.test.d.ts +1 -0
  251. package/esm/typings/utils/removeQuotes.d.ts +13 -0
  252. package/esm/typings/utils/removeQuotes.test.d.ts +1 -0
  253. package/esm/typings/utils/sets/difference.d.ts +4 -0
  254. package/esm/typings/utils/sets/difference.test.d.ts +1 -0
  255. package/esm/typings/utils/sets/intersection.d.ts +4 -0
  256. package/esm/typings/utils/sets/intersection.test.d.ts +1 -0
  257. package/esm/typings/utils/sets/union.d.ts +4 -0
  258. package/esm/typings/utils/sets/union.test.d.ts +1 -0
  259. package/esm/typings/utils/trimCodeBlock.d.ts +8 -0
  260. package/esm/typings/utils/trimCodeBlock.test.d.ts +1 -0
  261. package/esm/typings/utils/trimEndOfCodeBlock.d.ts +7 -0
  262. package/esm/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -0
  263. package/esm/typings/utils/unwrapResult.d.ts +36 -0
  264. package/esm/typings/utils/unwrapResult.test.d.ts +1 -0
  265. package/esm/typings/utils/validators/url/isValidUrl.d.ts +7 -0
  266. package/esm/typings/utils/validators/url/isValidUrl.test.d.ts +1 -0
  267. package/esm/typings/version.d.ts +5 -0
  268. package/package.json +56 -0
  269. package/umd/index.umd.js +852 -0
  270. package/umd/index.umd.js.map +1 -0
  271. package/umd/typings/_packages/anthropic-claude.index.d.ts +5 -0
  272. package/umd/typings/_packages/azure-openai.index.d.ts +5 -0
  273. package/umd/typings/_packages/cli.index.d.ts +10 -0
  274. package/umd/typings/_packages/core.index.d.ts +41 -0
  275. package/umd/typings/_packages/execute-javascript.index.d.ts +48 -0
  276. package/umd/typings/_packages/fake-llm.index.d.ts +7 -0
  277. package/umd/typings/_packages/langtail.index.d.ts +5 -0
  278. package/umd/typings/_packages/node.index.d.ts +4 -0
  279. package/umd/typings/_packages/openai.index.d.ts +6 -0
  280. package/umd/typings/_packages/remote-client.index.d.ts +6 -0
  281. package/umd/typings/_packages/remote-server.index.d.ts +5 -0
  282. package/umd/typings/_packages/types.index.d.ts +28 -0
  283. package/umd/typings/_packages/utils.index.d.ts +71 -0
  284. package/umd/typings/config.d.ts +8 -0
  285. package/umd/typings/conversion/prettify/PrettifyOptions.d.ts +13 -0
  286. package/umd/typings/conversion/prettify/prettifyPromptbookString.d.ts +10 -0
  287. package/umd/typings/conversion/prettify/prettifyPromptbookStringCli.d.ts +9 -0
  288. package/umd/typings/conversion/prettify/renderPromptbookMermaid.d.ts +25 -0
  289. package/umd/typings/conversion/promptbookJsonToString.d.ts +12 -0
  290. package/umd/typings/conversion/promptbookStringToJson.d.ts +15 -0
  291. package/umd/typings/conversion/promptbookStringToJson.test.d.ts +1 -0
  292. package/umd/typings/conversion/utils/extractParametersFromPromptTemplate.d.ts +13 -0
  293. package/umd/typings/conversion/utils/extractParametersFromPromptTemplate.test.d.ts +1 -0
  294. package/umd/typings/conversion/utils/extractVariables.d.ts +13 -0
  295. package/umd/typings/conversion/utils/extractVariables.test.d.ts +1 -0
  296. package/umd/typings/conversion/utils/parseCommand.d.ts +11 -0
  297. package/umd/typings/conversion/utils/parseCommand.test.d.ts +4 -0
  298. package/umd/typings/conversion/utils/parseNumber.d.ts +15 -0
  299. package/umd/typings/conversion/utils/parseNumber.test.d.ts +1 -0
  300. package/umd/typings/conversion/utils/renameParameter.d.ts +25 -0
  301. package/umd/typings/conversion/utils/renameParameter.test.d.ts +1 -0
  302. package/umd/typings/conversion/utils/titleToName.d.ts +4 -0
  303. package/umd/typings/conversion/utils/titleToName.test.d.ts +1 -0
  304. package/umd/typings/conversion/validation/_importPromptbook.d.ts +13 -0
  305. package/umd/typings/conversion/validation/promptbookStringToJson-syntaxErrors.test.d.ts +1 -0
  306. package/umd/typings/conversion/validation/validatePromptbookJson-logicErrors.test.d.ts +1 -0
  307. package/umd/typings/conversion/validation/validatePromptbookJson.d.ts +27 -0
  308. package/umd/typings/conversion/validation/validatePromptbookJson.test.d.ts +1 -0
  309. package/umd/typings/errors/PromptbookExecutionError.d.ts +7 -0
  310. package/umd/typings/errors/PromptbookLibraryError.d.ts +7 -0
  311. package/umd/typings/errors/PromptbookLogicError.d.ts +7 -0
  312. package/umd/typings/errors/PromptbookNotFoundError.d.ts +7 -0
  313. package/umd/typings/errors/PromptbookReferenceError.d.ts +7 -0
  314. package/umd/typings/errors/PromptbookSyntaxError.d.ts +7 -0
  315. package/umd/typings/errors/TemplateError.d.ts +9 -0
  316. package/umd/typings/errors/UnexpectedError.d.ts +7 -0
  317. package/umd/typings/errors/_ExpectError.d.ts +10 -0
  318. package/umd/typings/execution/CommonExecutionToolsOptions.d.ts +9 -0
  319. package/umd/typings/execution/ExecutionTools.d.ts +32 -0
  320. package/umd/typings/execution/LlmExecutionTools.d.ts +50 -0
  321. package/umd/typings/execution/PromptResult.d.ts +103 -0
  322. package/umd/typings/execution/PromptbookExecutor.d.ts +42 -0
  323. package/umd/typings/execution/ScriptExecutionTools.d.ts +38 -0
  324. package/umd/typings/execution/UserInterfaceTools.d.ts +46 -0
  325. package/umd/typings/execution/addPromptResultUsage.test.d.ts +1 -0
  326. package/umd/typings/execution/assertsExecutionSuccessful.d.ts +11 -0
  327. package/umd/typings/execution/createPromptbookExecutor.d.ts +42 -0
  328. package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +43 -0
  329. package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +8 -0
  330. package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/anthropic-claude-models.d.ts +20 -0
  331. package/umd/typings/execution/plugins/llm-execution-tools/anthropic-claude/playground/playground.d.ts +2 -0
  332. package/umd/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools.d.ts +42 -0
  333. package/umd/typings/execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +35 -0
  334. package/umd/typings/execution/plugins/llm-execution-tools/azure-openai/playground/playground.d.ts +2 -0
  335. package/umd/typings/execution/plugins/llm-execution-tools/langtail/LangtailExecutionTools.d.ts +7 -0
  336. package/umd/typings/execution/plugins/llm-execution-tools/langtail/LangtailExecutionToolsOptions.d.ts +11 -0
  337. package/umd/typings/execution/plugins/llm-execution-tools/langtail/playground/playground.d.ts +2 -0
  338. package/umd/typings/execution/plugins/llm-execution-tools/mocked/MockedEchoLlmExecutionTools.d.ts +28 -0
  339. package/umd/typings/execution/plugins/llm-execution-tools/mocked/MockedFackedLlmExecutionTools.d.ts +25 -0
  340. package/umd/typings/execution/plugins/llm-execution-tools/mocked/fakeTextToExpectations.d.ts +14 -0
  341. package/umd/typings/execution/plugins/llm-execution-tools/mocked/fakeTextToExpectations.test.d.ts +1 -0
  342. package/umd/typings/execution/plugins/llm-execution-tools/mocked/faked-completion.test.d.ts +1 -0
  343. package/umd/typings/execution/plugins/llm-execution-tools/mocked/joker.test.d.ts +4 -0
  344. package/umd/typings/execution/plugins/llm-execution-tools/mocked/mocked-chat.test.d.ts +4 -0
  345. package/umd/typings/execution/plugins/llm-execution-tools/mocked/mocked-completion.test.d.ts +4 -0
  346. package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools.d.ts +37 -0
  347. package/umd/typings/execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionToolsOptions.d.ts +24 -0
  348. package/umd/typings/execution/plugins/llm-execution-tools/multiple/playground/playground.d.ts +2 -0
  349. package/umd/typings/execution/plugins/llm-execution-tools/openai/OpenAiExecutionTools.d.ts +47 -0
  350. package/umd/typings/execution/plugins/llm-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +18 -0
  351. package/umd/typings/execution/plugins/llm-execution-tools/openai/computeOpenaiUsage.d.ts +12 -0
  352. package/umd/typings/execution/plugins/llm-execution-tools/openai/computeUsage.d.ts +16 -0
  353. package/umd/typings/execution/plugins/llm-execution-tools/openai/computeUsage.test.d.ts +1 -0
  354. package/umd/typings/execution/plugins/llm-execution-tools/openai/openai-models.d.ts +26 -0
  355. package/umd/typings/execution/plugins/llm-execution-tools/openai/playground/playground.d.ts +2 -0
  356. package/umd/typings/execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionTools.d.ts +42 -0
  357. package/umd/typings/execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionToolsOptions.d.ts +24 -0
  358. package/umd/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -0
  359. package/umd/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -0
  360. package/umd/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -0
  361. package/umd/typings/execution/plugins/llm-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -0
  362. package/umd/typings/execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +28 -0
  363. package/umd/typings/execution/plugins/llm-execution-tools/remote/startRemoteServer.d.ts +18 -0
  364. package/umd/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -0
  365. package/umd/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -0
  366. package/umd/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -0
  367. package/umd/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -0
  368. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -0
  369. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -0
  370. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +7 -0
  371. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +26 -0
  372. package/umd/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -0
  373. package/umd/typings/execution/plugins/script-execution-tools/javascript/utils/unknownToString.d.ts +7 -0
  374. package/umd/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -0
  375. package/umd/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +16 -0
  376. package/umd/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -0
  377. package/umd/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -0
  378. package/umd/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +16 -0
  379. package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +15 -0
  380. package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -0
  381. package/umd/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +17 -0
  382. package/umd/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -0
  383. package/umd/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -0
  384. package/umd/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -0
  385. package/umd/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -0
  386. package/umd/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -0
  387. package/umd/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -0
  388. package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +7 -0
  389. package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -0
  390. package/umd/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -0
  391. package/umd/typings/execution/utils/addUsage.d.ts +7 -0
  392. package/umd/typings/execution/utils/addUsage.test.d.ts +1 -0
  393. package/umd/typings/execution/utils/checkExpectations.d.ts +25 -0
  394. package/umd/typings/execution/utils/checkExpectations.test.d.ts +1 -0
  395. package/umd/typings/execution/utils/computeUsageCounts.d.ts +10 -0
  396. package/umd/typings/execution/utils/forEachAsync.d.ts +18 -0
  397. package/umd/typings/execution/utils/replaceParameters.d.ts +13 -0
  398. package/umd/typings/execution/utils/replaceParameters.test.d.ts +1 -0
  399. package/umd/typings/execution/utils/uncertainNumber.d.ts +9 -0
  400. package/umd/typings/execution/utils/usageToWorktime.d.ts +10 -0
  401. package/umd/typings/execution/utils/usageToWorktime.test.d.ts +1 -0
  402. package/umd/typings/library/PromptbookLibrary.d.ts +25 -0
  403. package/umd/typings/library/SimplePromptbookLibrary.d.ts +36 -0
  404. package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +43 -0
  405. package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.test.d.ts +1 -0
  406. package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +23 -0
  407. package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.test.d.ts +1 -0
  408. package/umd/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +13 -0
  409. package/umd/typings/library/constructors/createPromptbookLibraryFromSources.test.d.ts +1 -0
  410. package/umd/typings/library/constructors/createPromptbookLibraryFromUrl.d.ts +26 -0
  411. package/umd/typings/library/constructors/createPromptbookSublibrary.d.ts +12 -0
  412. package/umd/typings/library/constructors/justTestFsImport.d.ts +7 -0
  413. package/umd/typings/types/Command.d.ts +101 -0
  414. package/umd/typings/types/ExecutionTypes.d.ts +13 -0
  415. package/umd/typings/types/ModelRequirements.d.ts +43 -0
  416. package/umd/typings/types/Parameters.d.ts +14 -0
  417. package/umd/typings/types/Prompt.d.ts +57 -0
  418. package/umd/typings/types/PromptbookJson/PromptTemplateJson.d.ts +145 -0
  419. package/umd/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +26 -0
  420. package/umd/typings/types/PromptbookJson/PromptbookJson.d.ts +53 -0
  421. package/umd/typings/types/PromptbookString.d.ts +12 -0
  422. package/umd/typings/types/ScriptLanguage.d.ts +9 -0
  423. package/umd/typings/types/TaskProgress.d.ts +43 -0
  424. package/umd/typings/types/execution-report/ExecutionReportJson.d.ts +58 -0
  425. package/umd/typings/types/execution-report/ExecutionReportString.d.ts +16 -0
  426. package/umd/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -0
  427. package/umd/typings/types/execution-report/config.d.ts +8 -0
  428. package/umd/typings/types/execution-report/countWorkingDuration.d.ts +7 -0
  429. package/umd/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -0
  430. package/umd/typings/types/execution-report/executionReportJsonToString.d.ts +11 -0
  431. package/umd/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -0
  432. package/umd/typings/types/typeAliasEmoji.d.ts +9 -0
  433. package/umd/typings/types/typeAliases.d.ts +430 -0
  434. package/umd/typings/utils/FromtoItems.d.ts +19 -0
  435. package/umd/typings/utils/emojis.d.ts +22 -0
  436. package/umd/typings/utils/expectation-counters/countCharacters.d.ts +5 -0
  437. package/umd/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -0
  438. package/umd/typings/utils/expectation-counters/countLines.d.ts +5 -0
  439. package/umd/typings/utils/expectation-counters/countLines.test.d.ts +1 -0
  440. package/umd/typings/utils/expectation-counters/countPages.d.ts +5 -0
  441. package/umd/typings/utils/expectation-counters/countPages.test.d.ts +1 -0
  442. package/umd/typings/utils/expectation-counters/countParagraphs.d.ts +5 -0
  443. package/umd/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -0
  444. package/umd/typings/utils/expectation-counters/countSentences.d.ts +9 -0
  445. package/umd/typings/utils/expectation-counters/countSentences.test.d.ts +1 -0
  446. package/umd/typings/utils/expectation-counters/countWords.d.ts +5 -0
  447. package/umd/typings/utils/expectation-counters/countWords.test.d.ts +1 -0
  448. package/umd/typings/utils/expectation-counters/index.d.ts +6 -0
  449. package/umd/typings/utils/extractParameters.d.ts +9 -0
  450. package/umd/typings/utils/extractParameters.test.d.ts +1 -0
  451. package/umd/typings/utils/formatNumber.d.ts +6 -0
  452. package/umd/typings/utils/formatNumber.test.d.ts +1 -0
  453. package/umd/typings/utils/getCurrentIsoDate.d.ts +7 -0
  454. package/umd/typings/utils/isRunningInWhatever.d.ts +12 -0
  455. package/umd/typings/utils/isValidJsonString.d.ts +4 -0
  456. package/umd/typings/utils/isValidJsonString.test.d.ts +1 -0
  457. package/umd/typings/utils/just.d.ts +10 -0
  458. package/umd/typings/utils/markdown/addAutoGeneratedSection.d.ts +11 -0
  459. package/umd/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -0
  460. package/umd/typings/utils/markdown/createMarkdownChart.d.ts +41 -0
  461. package/umd/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -0
  462. package/umd/typings/utils/markdown/createMarkdownTable.d.ts +8 -0
  463. package/umd/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -0
  464. package/umd/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -0
  465. package/umd/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -0
  466. package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -0
  467. package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -0
  468. package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +14 -0
  469. package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -0
  470. package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -0
  471. package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -0
  472. package/umd/typings/utils/markdown/prettifyMarkdown.d.ts +8 -0
  473. package/umd/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -0
  474. package/umd/typings/utils/markdown/removeContentComments.d.ts +9 -0
  475. package/umd/typings/utils/markdown/removeContentComments.test.d.ts +1 -0
  476. package/umd/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -0
  477. package/umd/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -0
  478. package/umd/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -0
  479. package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -0
  480. package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -0
  481. package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -0
  482. package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -0
  483. package/umd/typings/utils/normalization/DIACRITIC_VARIANTS_LETTERS.d.ts +10 -0
  484. package/umd/typings/utils/normalization/IKeywords.d.ts +18 -0
  485. package/umd/typings/utils/normalization/capitalize.d.ts +5 -0
  486. package/umd/typings/utils/normalization/capitalize.test.d.ts +1 -0
  487. package/umd/typings/utils/normalization/decapitalize.d.ts +5 -0
  488. package/umd/typings/utils/normalization/decapitalize.test.d.ts +1 -0
  489. package/umd/typings/utils/normalization/isValidKeyword.d.ts +8 -0
  490. package/umd/typings/utils/normalization/isValidKeyword.test.d.ts +1 -0
  491. package/umd/typings/utils/normalization/nameToUriPart.d.ts +1 -0
  492. package/umd/typings/utils/normalization/nameToUriPart.test.d.ts +1 -0
  493. package/umd/typings/utils/normalization/nameToUriParts.d.ts +1 -0
  494. package/umd/typings/utils/normalization/nameToUriParts.test.d.ts +1 -0
  495. package/umd/typings/utils/normalization/normalize-to-kebab-case.d.ts +1 -0
  496. package/umd/typings/utils/normalization/normalize-to-kebab-case.test.d.ts +1 -0
  497. package/umd/typings/utils/normalization/normalizeTo_PascalCase.d.ts +1 -0
  498. package/umd/typings/utils/normalization/normalizeTo_PascalCase.test.d.ts +1 -0
  499. package/umd/typings/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +4 -0
  500. package/umd/typings/utils/normalization/normalizeTo_SCREAMING_CASE.test.d.ts +1 -0
  501. package/umd/typings/utils/normalization/normalizeTo_camelCase.d.ts +4 -0
  502. package/umd/typings/utils/normalization/normalizeTo_camelCase.test.d.ts +1 -0
  503. package/umd/typings/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  504. package/umd/typings/utils/normalization/normalizeTo_snake_case.test.d.ts +1 -0
  505. package/umd/typings/utils/normalization/normalizeWhitespaces.d.ts +4 -0
  506. package/umd/typings/utils/normalization/normalizeWhitespaces.test.d.ts +1 -0
  507. package/umd/typings/utils/normalization/parseKeywords.d.ts +14 -0
  508. package/umd/typings/utils/normalization/parseKeywords.test.d.ts +1 -0
  509. package/umd/typings/utils/normalization/parseKeywordsFromString.d.ts +8 -0
  510. package/umd/typings/utils/normalization/parseKeywordsFromString.test.d.ts +1 -0
  511. package/umd/typings/utils/normalization/removeDiacritics.d.ts +4 -0
  512. package/umd/typings/utils/normalization/removeDiacritics.test.d.ts +1 -0
  513. package/umd/typings/utils/normalization/searchKeywords.d.ts +5 -0
  514. package/umd/typings/utils/normalization/searchKeywords.test.d.ts +1 -0
  515. package/umd/typings/utils/postprocessing/extractBlock.d.ts +12 -0
  516. package/umd/typings/utils/removeEmojis.d.ts +7 -0
  517. package/umd/typings/utils/removeEmojis.test.d.ts +1 -0
  518. package/umd/typings/utils/removeQuotes.d.ts +13 -0
  519. package/umd/typings/utils/removeQuotes.test.d.ts +1 -0
  520. package/umd/typings/utils/sets/difference.d.ts +4 -0
  521. package/umd/typings/utils/sets/difference.test.d.ts +1 -0
  522. package/umd/typings/utils/sets/intersection.d.ts +4 -0
  523. package/umd/typings/utils/sets/intersection.test.d.ts +1 -0
  524. package/umd/typings/utils/sets/union.d.ts +4 -0
  525. package/umd/typings/utils/sets/union.test.d.ts +1 -0
  526. package/umd/typings/utils/trimCodeBlock.d.ts +8 -0
  527. package/umd/typings/utils/trimCodeBlock.test.d.ts +1 -0
  528. package/umd/typings/utils/trimEndOfCodeBlock.d.ts +7 -0
  529. package/umd/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -0
  530. package/umd/typings/utils/unwrapResult.d.ts +36 -0
  531. package/umd/typings/utils/unwrapResult.test.d.ts +1 -0
  532. package/umd/typings/utils/validators/url/isValidUrl.d.ts +7 -0
  533. package/umd/typings/utils/validators/url/isValidUrl.test.d.ts +1 -0
  534. package/umd/typings/version.d.ts +5 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../src/utils/getCurrentIsoDate.ts","../../../src/execution/utils/addUsage.ts","../../../src/execution/plugins/llm-execution-tools/mocked/MockedEchoLlmExecutionTools.ts","../../../src/config.ts","../../../src/errors/_ExpectError.ts","../../../src/utils/expectation-counters/countCharacters.ts","../../../src/utils/expectation-counters/countLines.ts","../../../src/utils/expectation-counters/countPages.ts","../../../src/utils/expectation-counters/countParagraphs.ts","../../../src/utils/expectation-counters/countSentences.ts","../../../src/utils/normalization/DIACRITIC_VARIANTS_LETTERS.ts","../../../src/utils/normalization/removeDiacritics.ts","../../../src/utils/expectation-counters/countWords.ts","../../../src/utils/expectation-counters/index.ts","../../../src/execution/utils/checkExpectations.ts","../../../src/execution/plugins/llm-execution-tools/mocked/fakeTextToExpectations.ts","../../../src/execution/plugins/llm-execution-tools/mocked/MockedFackedLlmExecutionTools.ts","../../../src/version.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n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,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE;6BAChC,EACD,MAAM,CAAC,cAAc,CACxB,EAAA;;wBALK,OAAO,GAAG,SAKf;wBAEK,MAAM,GAAG;4BACX,OAAO,SAAA;4BACP,SAAS,EAAE,eAAe;4BAC1B,MAAM,EAAE;gCACJ,KAAK,EAAE,iBAAiB,EAAE;gCAC1B,QAAQ,EAAE,iBAAiB,EAAE;6BAChC;4BACD,KAAK,EAAE,QAAQ,sEAAqE;4BACpF,WAAW,EAAE;gCACT,IAAI,EAAE,qBAAqB;6BAC9B;;yBAEgD,CAAC;wBAEtD,IAAI,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;4BACxB,OAAO,CAAC,IAAI,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;yBAClD;wBAED,sBAAO,MAAM,EAAC;;;;KACjB;;;;IAKY,mDAAW,GAAxB,UACI,MAAyF;;;gBAEzF,sBAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAC;;;KAC/B;;;;IAKM,kDAAU,GAAjB;QACI,OAAO;YACH;gBACI,UAAU,EAAE,WAAW;gBACvB,SAAS,EAAE,aAAa;gBACxB,YAAY,EAAE,MAAM;aACvB;YACD;gBACI,UAAU,EAAE,iBAAiB;gBAC7B,SAAS,EAAE,aAAa;gBACxB,YAAY,EAAE,YAAY;aAC7B;SACJ,CAAC;KACL;IACL,oCAAC;AAAD,CAAC;;AC9ED;;;IAGa,kBAAkB,GAAmB;;;;"}
@@ -0,0 +1,5 @@
1
+ import { AnthropicClaudeExecutionTools } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionTools';
2
+ import { AnthropicClaudeExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/anthropic-claude/AnthropicClaudeExecutionToolsOptions';
3
+ import { PROMPTBOOK_VERSION } from '../version';
4
+ export { PROMPTBOOK_VERSION };
5
+ export { AnthropicClaudeExecutionTools, AnthropicClaudeExecutionToolsOptions };
@@ -0,0 +1,5 @@
1
+ import { AzureOpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionTools';
2
+ import { AzureOpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/azure-openai/AzureOpenAiExecutionToolsOptions';
3
+ import { PROMPTBOOK_VERSION } from '../version';
4
+ export { PROMPTBOOK_VERSION };
5
+ export { AzureOpenAiExecutionTools, AzureOpenAiExecutionToolsOptions };
@@ -0,0 +1,10 @@
1
+ import { prettifyPromptbookStringCli } from '../conversion/prettify/prettifyPromptbookStringCli';
2
+ import { PROMPTBOOK_VERSION } from '../version';
3
+ export { PROMPTBOOK_VERSION };
4
+ /**
5
+ * Hidden utilities which should not be used by external consumers.
6
+ */
7
+ declare const __: {
8
+ prettifyPromptbookStringCli: typeof prettifyPromptbookStringCli;
9
+ };
10
+ export { __ };
@@ -0,0 +1,41 @@
1
+ import { prettifyPromptbookString } from '../conversion/prettify/prettifyPromptbookString';
2
+ import { promptbookJsonToString } from '../conversion/promptbookJsonToString';
3
+ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';
4
+ import { validatePromptbookJson } from '../conversion/validation/validatePromptbookJson';
5
+ import { ExpectError } from '../errors/_ExpectError';
6
+ import { PromptbookExecutionError } from '../errors/PromptbookExecutionError';
7
+ import { PromptbookLibraryError } from '../errors/PromptbookLibraryError';
8
+ import { PromptbookLogicError } from '../errors/PromptbookLogicError';
9
+ import { PromptbookNotFoundError } from '../errors/PromptbookNotFoundError';
10
+ import { PromptbookReferenceError } from '../errors/PromptbookReferenceError';
11
+ import { PromptbookSyntaxError } from '../errors/PromptbookSyntaxError';
12
+ import { TemplateError } from '../errors/TemplateError';
13
+ import { UnexpectedError } from '../errors/UnexpectedError';
14
+ import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
15
+ import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
16
+ import { MultipleLlmExecutionTools } from '../execution/plugins/llm-execution-tools/multiple/MultipleLlmExecutionTools';
17
+ import { CallbackInterfaceTools } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools';
18
+ import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';
19
+ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
20
+ import { addUsage } from '../execution/utils/addUsage';
21
+ import { checkExpectations, isPassingExpectations } from '../execution/utils/checkExpectations';
22
+ import { usageToWorktime } from '../execution/utils/usageToWorktime';
23
+ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
24
+ import { createPromptbookLibraryFromUrl } from '../library/constructors/createPromptbookLibraryFromUrl';
25
+ import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
26
+ import { justTestFsImport } from '../library/constructors/justTestFsImport';
27
+ import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
28
+ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
29
+ import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
30
+ import { ExecutionTypes } from '../types/ExecutionTypes';
31
+ import { PROMPTBOOK_VERSION } from '../version';
32
+ export { PROMPTBOOK_VERSION };
33
+ export { justTestFsImport };
34
+ export { ExecutionTypes };
35
+ export { addUsage, assertsExecutionSuccessful, checkExpectations, executionReportJsonToString, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, isPassingExpectations, prettifyPromptbookString, usageToWorktime, };
36
+ export { createPromptbookLibraryFromSources, createPromptbookLibraryFromUrl, createPromptbookSublibrary, SimplePromptbookLibrary, };
37
+ export { SimplePromptInterfaceTools };
38
+ export { promptbookJsonToString, promptbookStringToJson, validatePromptbookJson };
39
+ export { createPromptbookExecutor, MultipleLlmExecutionTools };
40
+ export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
41
+ export { ExpectError, PromptbookExecutionError, PromptbookLibraryError, PromptbookLogicError, PromptbookNotFoundError, PromptbookReferenceError, PromptbookSyntaxError, TemplateError, UnexpectedError, };
@@ -0,0 +1,48 @@
1
+ import spaceTrim from 'spacetrim';
2
+ import { JavascriptEvalExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools';
3
+ import { JavascriptExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools';
4
+ import { prettifyMarkdown } from '../utils/markdown/prettifyMarkdown';
5
+ import { capitalize } from '../utils/normalization/capitalize';
6
+ import { decapitalize } from '../utils/normalization/decapitalize';
7
+ import { nameToUriPart } from '../utils/normalization/nameToUriPart';
8
+ import { nameToUriParts } from '../utils/normalization/nameToUriParts';
9
+ import { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
10
+ import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
11
+ import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
12
+ import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
13
+ import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
14
+ import { normalizeWhitespaces } from '../utils/normalization/normalizeWhitespaces';
15
+ import { removeDiacritics } from '../utils/normalization/removeDiacritics';
16
+ import { extractBlock } from '../utils/postprocessing/extractBlock';
17
+ import { removeEmojis } from '../utils/removeEmojis';
18
+ import { removeQuotes } from '../utils/removeQuotes';
19
+ import { trimCodeBlock } from '../utils/trimCodeBlock';
20
+ import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
21
+ import { unwrapResult } from '../utils/unwrapResult';
22
+ import { PROMPTBOOK_VERSION } from '../version';
23
+ export { PROMPTBOOK_VERSION };
24
+ declare const POSTPROCESSING_FUNCTIONS: {
25
+ spaceTrim: typeof spaceTrim;
26
+ removeQuotes: typeof removeQuotes;
27
+ unwrapResult: typeof unwrapResult;
28
+ trimEndOfCodeBlock: typeof trimEndOfCodeBlock;
29
+ trimCodeBlock: typeof trimCodeBlock;
30
+ trim: (str: string) => string;
31
+ reverse: (str: string) => string;
32
+ removeEmojis: typeof removeEmojis;
33
+ prettifyMarkdown: typeof prettifyMarkdown;
34
+ capitalize: typeof capitalize;
35
+ decapitalize: typeof decapitalize;
36
+ nameToUriPart: typeof nameToUriPart;
37
+ nameToUriParts: typeof nameToUriParts;
38
+ removeDiacritics: typeof removeDiacritics;
39
+ normalizeWhitespaces: typeof normalizeWhitespaces;
40
+ normalizeToKebabCase: typeof normalizeToKebabCase;
41
+ normalizeTo_camelCase: typeof normalizeTo_camelCase;
42
+ normalizeTo_snake_case: typeof normalizeTo_snake_case;
43
+ normalizeTo_PascalCase: typeof normalizeTo_PascalCase;
44
+ parseKeywords: (input: string) => string;
45
+ normalizeTo_SCREAMING_CASE: typeof normalizeTo_SCREAMING_CASE;
46
+ extractBlock: typeof extractBlock;
47
+ };
48
+ export { JavascriptEvalExecutionTools, JavascriptExecutionTools, POSTPROCESSING_FUNCTIONS };
@@ -0,0 +1,7 @@
1
+ import { MockedEchoLlmExecutionTools } from '../execution/plugins/llm-execution-tools/mocked/MockedEchoLlmExecutionTools';
2
+ import { MockedFackedLlmExecutionTools } from '../execution/plugins/llm-execution-tools/mocked/MockedFackedLlmExecutionTools';
3
+ import { PROMPTBOOK_VERSION } from '../version';
4
+ export { MockedEchoLlmExecutionTools, MockedFackedLlmExecutionTools, PROMPTBOOK_VERSION };
5
+ /**
6
+ * TODO: [🚏] FakeLLM
7
+ */
@@ -0,0 +1,5 @@
1
+ import { LangtailExecutionTools } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionTools';
2
+ import { LangtailExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/langtail/LangtailExecutionToolsOptions';
3
+ import { PROMPTBOOK_VERSION } from '../version';
4
+ export { PROMPTBOOK_VERSION };
5
+ export { LangtailExecutionTools, LangtailExecutionToolsOptions };
@@ -0,0 +1,4 @@
1
+ import { createPromptbookLibraryFromDirectory } from '../library/constructors/createPromptbookLibraryFromDirectory';
2
+ import { PROMPTBOOK_VERSION } from '../version';
3
+ export { PROMPTBOOK_VERSION };
4
+ export { createPromptbookLibraryFromDirectory };
@@ -0,0 +1,6 @@
1
+ import { OPENAI_MODELS } from '../execution/plugins/llm-execution-tools/openai/openai-models';
2
+ import { OpenAiExecutionTools } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionTools';
3
+ import { OpenAiExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/openai/OpenAiExecutionToolsOptions';
4
+ import { PROMPTBOOK_VERSION } from '../version';
5
+ export { PROMPTBOOK_VERSION };
6
+ export { OPENAI_MODELS, OpenAiExecutionTools, OpenAiExecutionToolsOptions };
@@ -0,0 +1,6 @@
1
+ import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions';
2
+ import { RemoteLlmExecutionTools } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionTools';
3
+ import { RemoteLlmExecutionToolsOptions } from '../execution/plugins/llm-execution-tools/remote/RemoteLlmExecutionToolsOptions';
4
+ import { PROMPTBOOK_VERSION } from '../version';
5
+ export { PROMPTBOOK_VERSION };
6
+ export { RemoteLlmExecutionTools, RemoteLlmExecutionToolsOptions, RemoteServerOptions };
@@ -0,0 +1,5 @@
1
+ import { RemoteServerOptions } from '../execution/plugins/llm-execution-tools/remote/interfaces/RemoteServerOptions';
2
+ import { startRemoteServer } from '../execution/plugins/llm-execution-tools/remote/startRemoteServer';
3
+ import { PROMPTBOOK_VERSION } from '../version';
4
+ export { PROMPTBOOK_VERSION };
5
+ export { RemoteServerOptions, startRemoteServer };
@@ -0,0 +1,28 @@
1
+ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
+ import type { ExecutionTools } from '../execution/ExecutionTools';
3
+ import type { AvailableModel, LlmExecutionTools } from '../execution/LlmExecutionTools';
4
+ import type { PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptResultUsage, PromptResultUsageCounts, UncertainNumber } from '../execution/PromptResult';
5
+ import type { PromptbookExecutor } from '../execution/PromptbookExecutor';
6
+ import type { ScriptExecutionTools, ScriptExecutionToolsExecuteOptions } from '../execution/ScriptExecutionTools';
7
+ import type { UserInterfaceTools, UserInterfaceToolsPromptDialogOptions } from '../execution/UserInterfaceTools';
8
+ import { PromptbookLibrary } from '../library/PromptbookLibrary';
9
+ import type { ExecutionType } from '../types/ExecutionTypes';
10
+ import type { ModelRequirements, ModelVariant } from '../types/ModelRequirements';
11
+ import type { Parameters } from '../types/Parameters';
12
+ import type { Prompt } from '../types/Prompt';
13
+ import type { ExpectationAmount, Expectations, ExpectationUnit, LlmTemplateJson, PromptDialogJson, PromptTemplateJson, ScriptJson, SimpleTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
14
+ import { EXPECTATION_UNITS } from '../types/PromptbookJson/PromptTemplateJson';
15
+ import type { PromptTemplateParameterJson } from '../types/PromptbookJson/PromptTemplateParameterJson';
16
+ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
17
+ import type { PromptbookString } from '../types/PromptbookString';
18
+ import type { ScriptLanguage } from '../types/ScriptLanguage';
19
+ import type { TaskProgress } from '../types/TaskProgress';
20
+ import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
21
+ import type { string_char_emoji } from '../types/typeAliasEmoji';
22
+ import type { client_id, string_char, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version } from '../types/typeAliases';
23
+ import type { FromtoItems } from '../utils/FromtoItems';
24
+ import { PROMPTBOOK_VERSION } from '../version';
25
+ export type { AvailableModel, client_id, CommonExecutionToolsOptions, ExecutionReportJson, ExecutionTools, ExecutionType, EXPECTATION_UNITS, ExpectationAmount, Expectations, ExpectationUnit, FromtoItems, LlmExecutionTools, LlmTemplateJson, ModelRequirements, ModelVariant, Parameters, Prompt, PROMPTBOOK_VERSION, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptDialogJson, PromptResult, PromptResultUsage, PromptResultUsageCounts, PromptTemplateJson, PromptTemplateParameterJson, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptJson, ScriptLanguage, SimpleTemplateJson, string_char, string_char_emoji, string_chat_prompt, string_completion_prompt, string_data_url, string_domain, string_email, string_file_absolute_path, string_file_extension, string_file_path, string_file_relative_path, string_filename, string_folder_absolute_path, string_folder_path, string_folder_relative_path, string_host, string_hostname, string_href, string_html, string_javascript, string_javascript_name, string_license, string_markdown, string_markdown_text, string_mime_type, string_mime_type_with_wildcard, string_model_name, string_name, string_person_fullname, string_prompt, string_promptbook_url, string_promptbook_url_with_hashtemplate, string_script, string_sha256, string_tdl, string_template, string_text_prompt, string_title, string_token, string_translate_language, string_uri, string_uri_part, string_url, string_url_image, string_version, TaskProgress, UncertainNumber, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, };
26
+ /**
27
+ * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
28
+ */
@@ -0,0 +1,71 @@
1
+ import { spaceTrim } from 'spacetrim';
2
+ import { renderPromptbookMermaid } from '../conversion/prettify/renderPromptbookMermaid';
3
+ import { extractParametersFromPromptTemplate } from '../conversion/utils/extractParametersFromPromptTemplate';
4
+ import { extractVariables } from '../conversion/utils/extractVariables';
5
+ import { parseNumber } from '../conversion/utils/parseNumber';
6
+ import { renameParameter } from '../conversion/utils/renameParameter';
7
+ import { titleToName } from '../conversion/utils/titleToName';
8
+ import { forEachAsync } from '../execution/utils/forEachAsync';
9
+ import { replaceParameters } from '../execution/utils/replaceParameters';
10
+ import { CountUtils } from '../utils/expectation-counters';
11
+ import { countCharacters } from '../utils/expectation-counters/countCharacters';
12
+ import { countLines } from '../utils/expectation-counters/countLines';
13
+ import { countPages } from '../utils/expectation-counters/countPages';
14
+ import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
15
+ import { countSentences, splitIntoSentences } from '../utils/expectation-counters/countSentences';
16
+ import { countWords } from '../utils/expectation-counters/countWords';
17
+ import { extractParameters } from '../utils/extractParameters';
18
+ import { isValidJsonString } from '../utils/isValidJsonString';
19
+ import { extractAllBlocksFromMarkdown } from '../utils/markdown/extractAllBlocksFromMarkdown';
20
+ import { extractAllListItemsFromMarkdown } from '../utils/markdown/extractAllListItemsFromMarkdown';
21
+ import { extractOneBlockFromMarkdown } from '../utils/markdown/extractOneBlockFromMarkdown';
22
+ import { removeContentComments } from '../utils/markdown/removeContentComments';
23
+ import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting';
24
+ import { capitalize } from '../utils/normalization/capitalize';
25
+ import { decapitalize } from '../utils/normalization/decapitalize';
26
+ import { DIACRITIC_VARIANTS_LETTERS } from '../utils/normalization/DIACRITIC_VARIANTS_LETTERS';
27
+ import { IKeywords, string_keyword } 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 { normalizeToKebabCase } from '../utils/normalization/normalize-to-kebab-case';
32
+ import { normalizeTo_camelCase } from '../utils/normalization/normalizeTo_camelCase';
33
+ import { normalizeTo_PascalCase } from '../utils/normalization/normalizeTo_PascalCase';
34
+ import { normalizeTo_SCREAMING_CASE } from '../utils/normalization/normalizeTo_SCREAMING_CASE';
35
+ import { normalizeTo_snake_case } from '../utils/normalization/normalizeTo_snake_case';
36
+ import { normalizeWhitespaces } from '../utils/normalization/normalizeWhitespaces';
37
+ import { parseKeywords } from '../utils/normalization/parseKeywords';
38
+ import { parseKeywordsFromString } from '../utils/normalization/parseKeywordsFromString';
39
+ import { removeDiacritics } from '../utils/normalization/removeDiacritics';
40
+ import { searchKeywords } from '../utils/normalization/searchKeywords';
41
+ import { extractBlock } from '../utils/postprocessing/extractBlock';
42
+ import { removeEmojis } from '../utils/removeEmojis';
43
+ import { removeQuotes } from '../utils/removeQuotes';
44
+ import { difference } from '../utils/sets/difference';
45
+ import { intersection } from '../utils/sets/intersection';
46
+ import { union } from '../utils/sets/union';
47
+ import { trimCodeBlock } from '../utils/trimCodeBlock';
48
+ import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
49
+ import { unwrapResult } from '../utils/unwrapResult';
50
+ import { PROMPTBOOK_VERSION } from '../version';
51
+ export { forEachAsync, PROMPTBOOK_VERSION };
52
+ export { extractAllBlocksFromMarkdown, // <- [🌻]
53
+ extractAllListItemsFromMarkdown, extractBlock, // <- [🌻]
54
+ extractOneBlockFromMarkdown, extractParameters, extractVariables, isValidJsonString, parseNumber, // <- [🌻]
55
+ removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, replaceParameters, spaceTrim, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
56
+ export { countCharacters, countLines, countPages, countParagraphs, countSentences, CountUtils, countWords };
57
+ export { splitIntoSentences };
58
+ export declare const normalizeTo: {
59
+ camelCase: typeof normalizeTo_camelCase;
60
+ PascalCase: typeof normalizeTo_PascalCase;
61
+ SCREAMING_CASE: typeof normalizeTo_SCREAMING_CASE;
62
+ snake_case: typeof normalizeTo_snake_case;
63
+ 'kebab-case': typeof normalizeToKebabCase;
64
+ };
65
+ export { capitalize, decapitalize, DIACRITIC_VARIANTS_LETTERS, IKeywords, isValidKeyword, nameToUriPart, nameToUriParts, normalizeTo_camelCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_snake_case, normalizeToKebabCase, normalizeWhitespaces, parseKeywords, parseKeywordsFromString, removeDiacritics, searchKeywords, string_keyword, titleToName, };
66
+ export { extractParametersFromPromptTemplate, renameParameter, renderPromptbookMermaid };
67
+ export { difference, intersection, union };
68
+ /**
69
+ * TODO: [🧠] Maybe create some indipendent package like `markdown-tools` from both here exported and @private utilities
70
+ * Note: [🕙] It does not make sence to have simple lower / UPPER case normalization
71
+ */
@@ -0,0 +1,8 @@
1
+ /**
2
+ * The maximum number of iterations for a loops
3
+ */
4
+ export declare const LOOP_LIMIT = 1000;
5
+ /**
6
+ * The maximum number of iterations for a loops which adds characters one by one
7
+ */
8
+ export declare const CHARACTER_LOOP_LIMIT = 100000;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Options for `prettifyPromptbookString` function
3
+ */
4
+ export type PrettifyOptions = {
5
+ /***
6
+ * If true, adds Mermaid graph to the Promptbook string
7
+ */
8
+ isGraphAdded?: boolean;
9
+ /**
10
+ * If true, the string is prettifyed as markdown
11
+ */
12
+ isPrettifyed?: boolean;
13
+ };
@@ -0,0 +1,10 @@
1
+ import type { PromptbookString } from '../../types/PromptbookString';
2
+ import type { PrettifyOptions } from './PrettifyOptions';
3
+ /**
4
+ * Prettyfies Promptbook string and adds Mermaid graph
5
+ */
6
+ export declare function prettifyPromptbookString(promptbookString: PromptbookString, options: PrettifyOptions): PromptbookString;
7
+ /**
8
+ * TODO: Maybe use some Mermaid library instead of string templating
9
+ * TODO: [🕌] When more than 2 functionalities, split into separate functions
10
+ */
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Runs CLI script for prettifying promptbooks
3
+ */
4
+ export declare function prettifyPromptbookStringCli(): Promise<void>;
5
+ /**
6
+ * TODO: [🥠] Do not export to utils directly, its just for CLI script
7
+ * TODO: [🕌] When more functionalities, rename
8
+ * Note: 11:11
9
+ */
@@ -0,0 +1,25 @@
1
+ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
+ import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson';
3
+ import type { string_href } from '../../types/typeAliases';
4
+ /**
5
+ * Addtional options for rendering Mermaid graph
6
+ */
7
+ export type renderPromptbookMermaidOptions = {
8
+ /**
9
+ * Callback for creating from prompt template graph node
10
+ */
11
+ linkPromptTemplate?(promptTemplate: PromptTemplateJson): {
12
+ href: string_href;
13
+ title: string;
14
+ } | null;
15
+ };
16
+ /**
17
+ * Creates a Mermaid graph based on the promptbook
18
+ *
19
+ * Note: The result is not wrapped in a Markdown code block
20
+ */
21
+ export declare function renderPromptbookMermaid(promptbookJson: PromptbookJson, options?: renderPromptbookMermaidOptions): string;
22
+ /**
23
+ * TODO: Maybe use some Mermaid library instead of string templating
24
+ * TODO: [🕌] When more than 2 functionalities, split into separate functions
25
+ */
@@ -0,0 +1,12 @@
1
+ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
2
+ import type { PromptbookString } from '../types/PromptbookString';
3
+ /**
4
+ * Converts promptbook in JSON format to string format
5
+ *
6
+ * @param promptbookJson Promptbook in JSON format (.ptbk.json)
7
+ * @returns Promptbook in string format (.ptbk.md)
8
+ */
9
+ export declare function promptbookJsonToString(promptbookJson: PromptbookJson): PromptbookString;
10
+ /**
11
+ * TODO: Escape all
12
+ */
@@ -0,0 +1,15 @@
1
+ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
2
+ import type { PromptbookString } from '../types/PromptbookString';
3
+ /**
4
+ * Parse promptbook from string format to JSON format
5
+ *
6
+ * @throws {PromptbookSyntaxError} if the promptbook string is not valid
7
+ *
8
+ * Note: This function does not validate logic of the pipeline only the syntax
9
+ */
10
+ export declare function promptbookStringToJson(promptbookString: PromptbookString): PromptbookJson;
11
+ /**
12
+ * TODO: Report here line/column of error
13
+ * TODO: Use spaceTrim more effectively
14
+ * TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
15
+ */
@@ -0,0 +1,13 @@
1
+ import type { PromptTemplateJson } from '../../types/PromptbookJson/PromptTemplateJson';
2
+ import type { string_name } from '../../types/typeAliases';
3
+ /**
4
+ * Parses the prompt template and returns the set of all used parameters
5
+ *
6
+ * @param promptTemplate the template with used parameters
7
+ * @returns the set of parameter names
8
+ * @throws {PromptbookSyntaxError} if the script is invalid
9
+ */
10
+ export declare function extractParametersFromPromptTemplate(promptTemplate: Pick<PromptTemplateJson, 'title' | 'description' | 'executionType' | 'content'>): Set<string_name>;
11
+ /**
12
+ * TODO: [🔣] If script require contentLanguage
13
+ */
@@ -0,0 +1,13 @@
1
+ import type { string_javascript } from '../../types/typeAliases';
2
+ import type { string_javascript_name } from '../../types/typeAliases';
3
+ /**
4
+ * Parses the given script and returns the list of all used variables that are not defined in the script
5
+ *
6
+ * @param script from which to extract the variables
7
+ * @returns the list of variable names
8
+ * @throws {PromptbookSyntaxError} if the script is invalid
9
+ */
10
+ export declare function extractVariables(script: string_javascript): Set<string_javascript_name>;
11
+ /**
12
+ * TODO: [🔣] Support for multiple languages - python, java,...
13
+ */
@@ -0,0 +1,11 @@
1
+ import type { Command } from '../../types/Command';
2
+ import type { string_markdown_text } from '../../types/typeAliases';
3
+ /**
4
+ * Parses one line of ul/ol to command
5
+ *
6
+ * @returns parsed command object
7
+ * @throws {PromptbookSyntaxError} if the command is invalid
8
+ *
9
+ * @private within the promptbookStringToJson
10
+ */
11
+ export declare function parseCommand(listItem: string_markdown_text): Command;
@@ -0,0 +1,4 @@
1
+ export {};
2
+ /**
3
+ * TODO: [🧠] Probbably change syntax MODEL VARIANT -> MODEL
4
+ */
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Function parseNumber will parse number from string
3
+ *
4
+ * Unlike Number.parseInt, Number.parseFloat it will never ever result in NaN
5
+ * Note: it also works only with decimal numbers
6
+ *
7
+ * @returns parsed number
8
+ * @throws {PromptbookSyntaxError} if the value is not a number
9
+ *
10
+ * @private within the parseCommand
11
+ */
12
+ export declare function parseNumber(value: string | number): number;
13
+ /**
14
+ * TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
15
+ */
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
+ import type { string_name } from '../../types/typeAliases';
3
+ type RenameParameterOptions = {
4
+ /**
5
+ * Promptbook to search and replace for parameters
6
+ * This promptbook is returned as copy with replaced parameters
7
+ */
8
+ promptbook: PromptbookJson;
9
+ /**
10
+ * Original parameter name that should be replaced
11
+ */
12
+ oldParameterName: string_name;
13
+ /**
14
+ * New parameter name that should replace the original parameter name
15
+ */
16
+ newParameterName: string_name;
17
+ };
18
+ /**
19
+ * Function renameParameter will find all usable parameters for given prompt template
20
+ * In other words, it will find all parameters that are not used in the prompt template itseld and all its dependencies
21
+ *
22
+ * @throws {PromptbookLogicError} If the new parameter name is already used in the promptbook
23
+ */
24
+ export declare function renameParameter(options: RenameParameterOptions): PromptbookJson;
25
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Function normalizes title to name which can be used as identifier
3
+ */
4
+ export declare function titleToName(value: string): string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
+ import type { PromptbookString } from '../../types/PromptbookString';
3
+ /**
4
+ * Import the text file
5
+ *
6
+ * Note: Using here custom import to work in jest tests
7
+ * Note: Using sync version is 💩 in the production code, but it's ok here in tests
8
+ *
9
+ * @param path - The path to the file relative to samples/templates directory
10
+ * @private
11
+ */
12
+ export declare function importPromptbook(path: `${string}.ptbk.md`): PromptbookString;
13
+ export declare function importPromptbook(path: `${string}.ptbk.json`): PromptbookJson;