@promptbook/utils 0.41.0 → 0.41.2

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 (352) hide show
  1. package/bin/promptbook-cli.js +3 -0
  2. package/esm/index.es.js +794 -794
  3. package/esm/typings/_packages/core.index.d.ts +20 -20
  4. package/esm/typings/_packages/execute-javascript.index.d.ts +3 -3
  5. package/esm/typings/_packages/openai.index.d.ts +3 -3
  6. package/esm/typings/_packages/remote-client.index.d.ts +4 -4
  7. package/esm/typings/_packages/remote-server.index.d.ts +3 -3
  8. package/esm/typings/_packages/types.index.d.ts +27 -27
  9. package/esm/typings/_packages/utils.index.d.ts +30 -30
  10. package/esm/typings/_packages/wizzard.index.d.ts +5 -5
  11. package/esm/typings/config.d.ts +4 -4
  12. package/esm/typings/conversion/promptbookStringToJson.d.ts +13 -13
  13. package/esm/typings/conversion/test/_importPromptbook.d.ts +12 -12
  14. package/esm/typings/conversion/test/promptbookStringToJson-syntaxErrors.test.d.ts +1 -1
  15. package/esm/typings/conversion/test/promptbookStringToJson.test.d.ts +1 -1
  16. package/esm/typings/conversion/test/validatePromptbookJson-logicErrors.test.d.ts +1 -1
  17. package/esm/typings/conversion/test/validatePromptbookJson.d.ts +26 -26
  18. package/esm/typings/conversion/test/validatePromptbookJson.test.d.ts +1 -1
  19. package/esm/typings/conversion/utils/extractVariables.d.ts +10 -10
  20. package/esm/typings/conversion/utils/extractVariables.test.d.ts +1 -1
  21. package/esm/typings/conversion/utils/parseCommand.d.ts +8 -8
  22. package/esm/typings/conversion/utils/parseCommand.test.d.ts +4 -4
  23. package/esm/typings/conversion/utils/parseNumber.d.ts +12 -12
  24. package/esm/typings/conversion/utils/parseNumber.test.d.ts +1 -1
  25. package/esm/typings/errors/ExpectError.d.ts +9 -9
  26. package/esm/typings/errors/NotFoundError.d.ts +7 -7
  27. package/esm/typings/errors/PromptbookExecutionError.d.ts +7 -7
  28. package/esm/typings/errors/PromptbookLogicError.d.ts +7 -7
  29. package/esm/typings/errors/PromptbookReferenceError.d.ts +7 -7
  30. package/esm/typings/errors/PromptbookSyntaxError.d.ts +7 -7
  31. package/esm/typings/errors/UnexpectedError.d.ts +7 -7
  32. package/esm/typings/execution/CommonExecutionToolsOptions.d.ts +9 -9
  33. package/esm/typings/execution/ExecutionTools.d.ts +25 -25
  34. package/esm/typings/execution/NaturalExecutionTools.d.ts +23 -23
  35. package/esm/typings/execution/PromptResult.d.ts +74 -74
  36. package/esm/typings/execution/PromptbookExecutor.d.ts +39 -39
  37. package/esm/typings/execution/ScriptExecutionTools.d.ts +37 -37
  38. package/esm/typings/execution/UserInterfaceTools.d.ts +45 -45
  39. package/esm/typings/execution/assertsExecutionSuccessful.d.ts +11 -11
  40. package/esm/typings/execution/createPromptbookExecutor.d.ts +41 -41
  41. package/esm/typings/execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools.d.ts +22 -22
  42. package/esm/typings/execution/plugins/natural-execution-tools/mocked/joker.test.d.ts +4 -4
  43. package/esm/typings/execution/plugins/natural-execution-tools/mocked/mocked-chat.test.d.ts +4 -4
  44. package/esm/typings/execution/plugins/natural-execution-tools/mocked/mocked-completion.test.d.ts +4 -4
  45. package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +28 -28
  46. package/esm/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +16 -16
  47. package/esm/typings/execution/plugins/natural-execution-tools/openai/computeOpenaiUsage.d.ts +3 -3
  48. package/esm/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools.d.ts +35 -35
  49. package/esm/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions.d.ts +23 -23
  50. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -11
  51. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -12
  52. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -17
  53. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -12
  54. package/esm/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +27 -27
  55. package/esm/typings/execution/plugins/natural-execution-tools/remote/startRemoteServer.d.ts +17 -17
  56. package/esm/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -1
  57. package/esm/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -1
  58. package/esm/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -1
  59. package/esm/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -1
  60. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -20
  61. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -4
  62. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +20 -20
  63. package/esm/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +22 -22
  64. package/esm/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -11
  65. package/esm/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -1
  66. package/esm/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +15 -15
  67. package/esm/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -1
  68. package/esm/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -1
  69. package/esm/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +15 -15
  70. package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +14 -14
  71. package/esm/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -12
  72. package/esm/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +16 -16
  73. package/esm/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -1
  74. package/esm/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -4
  75. package/esm/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -9
  76. package/esm/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -5
  77. package/esm/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -11
  78. package/esm/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -4
  79. package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +1 -1
  80. package/esm/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -1
  81. package/esm/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -5
  82. package/esm/typings/execution/utils/replaceParameters.d.ts +12 -12
  83. package/esm/typings/execution/utils/replaceParameters.test.d.ts +1 -1
  84. package/esm/typings/library/PromptbookLibrary.d.ts +25 -25
  85. package/esm/typings/library/SimplePromptbookLibrary.d.ts +35 -35
  86. package/esm/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +5 -5
  87. package/esm/typings/library/constructors/createPromptbookLibraryFromList.d.ts +5 -5
  88. package/esm/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +7 -7
  89. package/esm/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +16 -16
  90. package/esm/typings/library/constructors/createPromptbookSublibrary.d.ts +6 -6
  91. package/esm/typings/types/Command.d.ts +98 -98
  92. package/esm/typings/types/ExecutionTypes.d.ts +13 -13
  93. package/esm/typings/types/ModelRequirements.d.ts +41 -41
  94. package/esm/typings/types/Parameters.d.ts +14 -14
  95. package/esm/typings/types/Prompt.d.ts +41 -41
  96. package/esm/typings/types/PromptbookJson/PromptTemplateJson.d.ts +126 -126
  97. package/esm/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +25 -25
  98. package/esm/typings/types/PromptbookJson/PromptbookJson.d.ts +51 -51
  99. package/esm/typings/types/PromptbookString.d.ts +12 -12
  100. package/esm/typings/types/ScriptLanguage.d.ts +9 -9
  101. package/esm/typings/types/TaskProgress.d.ts +42 -42
  102. package/esm/typings/types/execution-report/ExecutionReportJson.d.ts +56 -56
  103. package/esm/typings/types/execution-report/ExecutionReportString.d.ts +16 -16
  104. package/esm/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -21
  105. package/esm/typings/types/execution-report/config.d.ts +8 -8
  106. package/esm/typings/types/execution-report/countWorkingDuration.d.ts +7 -7
  107. package/esm/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -1
  108. package/esm/typings/types/execution-report/executionReportJsonToString.d.ts +11 -11
  109. package/esm/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -1
  110. package/esm/typings/types/typeAliasEmoji.d.ts +9 -9
  111. package/esm/typings/types/typeAliases.d.ts +432 -432
  112. package/esm/typings/utils/FromtoItems.d.ts +19 -19
  113. package/esm/typings/utils/emojis.d.ts +22 -22
  114. package/esm/typings/utils/expectation-counters/countCharacters.d.ts +5 -5
  115. package/esm/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -1
  116. package/esm/typings/utils/expectation-counters/countLines.d.ts +5 -5
  117. package/esm/typings/utils/expectation-counters/countLines.test.d.ts +1 -1
  118. package/esm/typings/utils/expectation-counters/countPages.d.ts +5 -5
  119. package/esm/typings/utils/expectation-counters/countPages.test.d.ts +1 -1
  120. package/esm/typings/utils/expectation-counters/countParagraphs.d.ts +5 -5
  121. package/esm/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -1
  122. package/esm/typings/utils/expectation-counters/countSentences.d.ts +5 -5
  123. package/esm/typings/utils/expectation-counters/countSentences.test.d.ts +1 -1
  124. package/esm/typings/utils/expectation-counters/countWords.d.ts +5 -5
  125. package/esm/typings/utils/expectation-counters/countWords.test.d.ts +1 -1
  126. package/esm/typings/utils/expectation-counters/index.d.ts +5 -5
  127. package/esm/typings/utils/extractParameters.d.ts +10 -10
  128. package/esm/typings/utils/extractParameters.test.d.ts +1 -1
  129. package/esm/typings/utils/formatNumber.d.ts +6 -6
  130. package/esm/typings/utils/formatNumber.test.d.ts +1 -1
  131. package/esm/typings/utils/getCurrentIsoDate.d.ts +7 -7
  132. package/esm/typings/utils/isRunningInWhatever.d.ts +12 -12
  133. package/esm/typings/utils/isValidJsonString.d.ts +4 -4
  134. package/esm/typings/utils/isValidJsonString.test.d.ts +1 -1
  135. package/esm/typings/utils/just.d.ts +10 -10
  136. package/esm/typings/utils/markdown/addAutoGeneratedSection.d.ts +10 -10
  137. package/esm/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -1
  138. package/esm/typings/utils/markdown/createMarkdownChart.d.ts +41 -41
  139. package/esm/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -1
  140. package/esm/typings/utils/markdown/createMarkdownTable.d.ts +7 -7
  141. package/esm/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -1
  142. package/esm/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -6
  143. package/esm/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -1
  144. package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -27
  145. package/esm/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -1
  146. package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +13 -13
  147. package/esm/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -1
  148. package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -19
  149. package/esm/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -1
  150. package/esm/typings/utils/markdown/prettifyMarkdown.d.ts +8 -8
  151. package/esm/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -1
  152. package/esm/typings/utils/markdown/removeContentComments.d.ts +8 -8
  153. package/esm/typings/utils/markdown/removeContentComments.test.d.ts +1 -1
  154. package/esm/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -8
  155. package/esm/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -1
  156. package/esm/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -25
  157. package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -7
  158. package/esm/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -1
  159. package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -13
  160. package/esm/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -1
  161. package/esm/typings/utils/postprocessing/extractBlock.d.ts +12 -12
  162. package/esm/typings/utils/removeEmojis.d.ts +7 -7
  163. package/esm/typings/utils/removeEmojis.test.d.ts +1 -1
  164. package/esm/typings/utils/removeQuotes.d.ts +13 -13
  165. package/esm/typings/utils/removeQuotes.test.d.ts +1 -1
  166. package/esm/typings/utils/trimCodeBlock.d.ts +8 -8
  167. package/esm/typings/utils/trimCodeBlock.test.d.ts +1 -1
  168. package/esm/typings/utils/trimEndOfCodeBlock.d.ts +7 -7
  169. package/esm/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -1
  170. package/esm/typings/utils/unwrapResult.d.ts +36 -36
  171. package/esm/typings/utils/unwrapResult.test.d.ts +1 -1
  172. package/esm/typings/utils/validators/url/isValidUrl.d.ts +7 -7
  173. package/esm/typings/utils/validators/url/isValidUrl.test.d.ts +1 -1
  174. package/esm/typings/version.d.ts +5 -5
  175. package/esm/typings/wizzard/Wizzard.d.ts +4 -4
  176. package/esm/typings/wizzard/sample.d.ts +6 -6
  177. package/package.json +4 -1
  178. package/umd/index.umd.js +794 -794
  179. package/umd/typings/_packages/core.index.d.ts +20 -20
  180. package/umd/typings/_packages/execute-javascript.index.d.ts +3 -3
  181. package/umd/typings/_packages/openai.index.d.ts +3 -3
  182. package/umd/typings/_packages/remote-client.index.d.ts +4 -4
  183. package/umd/typings/_packages/remote-server.index.d.ts +3 -3
  184. package/umd/typings/_packages/types.index.d.ts +27 -27
  185. package/umd/typings/_packages/utils.index.d.ts +30 -30
  186. package/umd/typings/_packages/wizzard.index.d.ts +5 -5
  187. package/umd/typings/config.d.ts +4 -4
  188. package/umd/typings/conversion/promptbookStringToJson.d.ts +13 -13
  189. package/umd/typings/conversion/test/_importPromptbook.d.ts +12 -12
  190. package/umd/typings/conversion/test/promptbookStringToJson-syntaxErrors.test.d.ts +1 -1
  191. package/umd/typings/conversion/test/promptbookStringToJson.test.d.ts +1 -1
  192. package/umd/typings/conversion/test/validatePromptbookJson-logicErrors.test.d.ts +1 -1
  193. package/umd/typings/conversion/test/validatePromptbookJson.d.ts +26 -26
  194. package/umd/typings/conversion/test/validatePromptbookJson.test.d.ts +1 -1
  195. package/umd/typings/conversion/utils/extractVariables.d.ts +10 -10
  196. package/umd/typings/conversion/utils/extractVariables.test.d.ts +1 -1
  197. package/umd/typings/conversion/utils/parseCommand.d.ts +8 -8
  198. package/umd/typings/conversion/utils/parseCommand.test.d.ts +4 -4
  199. package/umd/typings/conversion/utils/parseNumber.d.ts +12 -12
  200. package/umd/typings/conversion/utils/parseNumber.test.d.ts +1 -1
  201. package/umd/typings/errors/ExpectError.d.ts +9 -9
  202. package/umd/typings/errors/NotFoundError.d.ts +7 -7
  203. package/umd/typings/errors/PromptbookExecutionError.d.ts +7 -7
  204. package/umd/typings/errors/PromptbookLogicError.d.ts +7 -7
  205. package/umd/typings/errors/PromptbookReferenceError.d.ts +7 -7
  206. package/umd/typings/errors/PromptbookSyntaxError.d.ts +7 -7
  207. package/umd/typings/errors/UnexpectedError.d.ts +7 -7
  208. package/umd/typings/execution/CommonExecutionToolsOptions.d.ts +9 -9
  209. package/umd/typings/execution/ExecutionTools.d.ts +25 -25
  210. package/umd/typings/execution/NaturalExecutionTools.d.ts +23 -23
  211. package/umd/typings/execution/PromptResult.d.ts +74 -74
  212. package/umd/typings/execution/PromptbookExecutor.d.ts +39 -39
  213. package/umd/typings/execution/ScriptExecutionTools.d.ts +37 -37
  214. package/umd/typings/execution/UserInterfaceTools.d.ts +45 -45
  215. package/umd/typings/execution/assertsExecutionSuccessful.d.ts +11 -11
  216. package/umd/typings/execution/createPromptbookExecutor.d.ts +41 -41
  217. package/umd/typings/execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools.d.ts +22 -22
  218. package/umd/typings/execution/plugins/natural-execution-tools/mocked/joker.test.d.ts +4 -4
  219. package/umd/typings/execution/plugins/natural-execution-tools/mocked/mocked-chat.test.d.ts +4 -4
  220. package/umd/typings/execution/plugins/natural-execution-tools/mocked/mocked-completion.test.d.ts +4 -4
  221. package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools.d.ts +28 -28
  222. package/umd/typings/execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions.d.ts +16 -16
  223. package/umd/typings/execution/plugins/natural-execution-tools/openai/computeOpenaiUsage.d.ts +3 -3
  224. package/umd/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools.d.ts +35 -35
  225. package/umd/typings/execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions.d.ts +23 -23
  226. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Error.d.ts +11 -11
  227. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Progress.d.ts +12 -12
  228. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Request.d.ts +17 -17
  229. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/Promptbook_Server_Response.d.ts +12 -12
  230. package/umd/typings/execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions.d.ts +27 -27
  231. package/umd/typings/execution/plugins/natural-execution-tools/remote/startRemoteServer.d.ts +17 -17
  232. package/umd/typings/execution/plugins/script-execution-tools/custom-function-async.test.ts.test.d.ts +1 -1
  233. package/umd/typings/execution/plugins/script-execution-tools/custom-function-missing.test.d.ts +1 -1
  234. package/umd/typings/execution/plugins/script-execution-tools/custom-function-with-dependencies.test.d.ts +1 -1
  235. package/umd/typings/execution/plugins/script-execution-tools/custom-function.test.d.ts +1 -1
  236. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.d.ts +20 -20
  237. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools.test.d.ts +4 -4
  238. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools.d.ts +20 -20
  239. package/umd/typings/execution/plugins/script-execution-tools/javascript/JavascriptExecutionToolsOptions.d.ts +22 -22
  240. package/umd/typings/execution/plugins/script-execution-tools/javascript/utils/preserve.d.ts +11 -11
  241. package/umd/typings/execution/plugins/script-execution-tools/postprocessing.test.d.ts +1 -1
  242. package/umd/typings/execution/plugins/script-execution-tools/python/PythonExecutionTools.d.ts +15 -15
  243. package/umd/typings/execution/plugins/script-execution-tools/script-execution-errors.test.d.ts +1 -1
  244. package/umd/typings/execution/plugins/script-execution-tools/script-execution-tools.test.d.ts +1 -1
  245. package/umd/typings/execution/plugins/script-execution-tools/typescript/TypescriptExecutionTools.d.ts +15 -15
  246. package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools.d.ts +14 -14
  247. package/umd/typings/execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions.d.ts +12 -12
  248. package/umd/typings/execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools.d.ts +16 -16
  249. package/umd/typings/execution/plugins/user-interface-execution-tools/user-interface-execution-tools.test.d.ts +1 -1
  250. package/umd/typings/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +4 -4
  251. package/umd/typings/execution/translation/automatic-translate/automatic-translators/DebugAutomaticTranslator.d.ts +9 -9
  252. package/umd/typings/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +5 -5
  253. package/umd/typings/execution/translation/automatic-translate/automatic-translators/LindatAutomaticTranslator.d.ts +11 -11
  254. package/umd/typings/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +4 -4
  255. package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +1 -1
  256. package/umd/typings/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.test.d.ts +1 -1
  257. package/umd/typings/execution/translation/automatic-translate/translateMessages.d.ts +5 -5
  258. package/umd/typings/execution/utils/replaceParameters.d.ts +12 -12
  259. package/umd/typings/execution/utils/replaceParameters.test.d.ts +1 -1
  260. package/umd/typings/library/PromptbookLibrary.d.ts +25 -25
  261. package/umd/typings/library/SimplePromptbookLibrary.d.ts +35 -35
  262. package/umd/typings/library/constructors/createPromptbookLibraryFromDirectory.d.ts +5 -5
  263. package/umd/typings/library/constructors/createPromptbookLibraryFromList.d.ts +5 -5
  264. package/umd/typings/library/constructors/createPromptbookLibraryFromPromise.d.ts +7 -7
  265. package/umd/typings/library/constructors/createPromptbookLibraryFromSources.d.ts +16 -16
  266. package/umd/typings/library/constructors/createPromptbookSublibrary.d.ts +6 -6
  267. package/umd/typings/types/Command.d.ts +98 -98
  268. package/umd/typings/types/ExecutionTypes.d.ts +13 -13
  269. package/umd/typings/types/ModelRequirements.d.ts +41 -41
  270. package/umd/typings/types/Parameters.d.ts +14 -14
  271. package/umd/typings/types/Prompt.d.ts +41 -41
  272. package/umd/typings/types/PromptbookJson/PromptTemplateJson.d.ts +126 -126
  273. package/umd/typings/types/PromptbookJson/PromptTemplateParameterJson.d.ts +25 -25
  274. package/umd/typings/types/PromptbookJson/PromptbookJson.d.ts +51 -51
  275. package/umd/typings/types/PromptbookString.d.ts +12 -12
  276. package/umd/typings/types/ScriptLanguage.d.ts +9 -9
  277. package/umd/typings/types/TaskProgress.d.ts +42 -42
  278. package/umd/typings/types/execution-report/ExecutionReportJson.d.ts +56 -56
  279. package/umd/typings/types/execution-report/ExecutionReportString.d.ts +16 -16
  280. package/umd/typings/types/execution-report/ExecutionReportStringOptions.d.ts +21 -21
  281. package/umd/typings/types/execution-report/config.d.ts +8 -8
  282. package/umd/typings/types/execution-report/countWorkingDuration.d.ts +7 -7
  283. package/umd/typings/types/execution-report/countWorkingDuration.test.d.ts +1 -1
  284. package/umd/typings/types/execution-report/executionReportJsonToString.d.ts +11 -11
  285. package/umd/typings/types/execution-report/executionReportJsonToString.test.d.ts +1 -1
  286. package/umd/typings/types/typeAliasEmoji.d.ts +9 -9
  287. package/umd/typings/types/typeAliases.d.ts +432 -432
  288. package/umd/typings/utils/FromtoItems.d.ts +19 -19
  289. package/umd/typings/utils/emojis.d.ts +22 -22
  290. package/umd/typings/utils/expectation-counters/countCharacters.d.ts +5 -5
  291. package/umd/typings/utils/expectation-counters/countCharacters.test.d.ts +1 -1
  292. package/umd/typings/utils/expectation-counters/countLines.d.ts +5 -5
  293. package/umd/typings/utils/expectation-counters/countLines.test.d.ts +1 -1
  294. package/umd/typings/utils/expectation-counters/countPages.d.ts +5 -5
  295. package/umd/typings/utils/expectation-counters/countPages.test.d.ts +1 -1
  296. package/umd/typings/utils/expectation-counters/countParagraphs.d.ts +5 -5
  297. package/umd/typings/utils/expectation-counters/countParagraphs.test.d.ts +1 -1
  298. package/umd/typings/utils/expectation-counters/countSentences.d.ts +5 -5
  299. package/umd/typings/utils/expectation-counters/countSentences.test.d.ts +1 -1
  300. package/umd/typings/utils/expectation-counters/countWords.d.ts +5 -5
  301. package/umd/typings/utils/expectation-counters/countWords.test.d.ts +1 -1
  302. package/umd/typings/utils/expectation-counters/index.d.ts +5 -5
  303. package/umd/typings/utils/extractParameters.d.ts +10 -10
  304. package/umd/typings/utils/extractParameters.test.d.ts +1 -1
  305. package/umd/typings/utils/formatNumber.d.ts +6 -6
  306. package/umd/typings/utils/formatNumber.test.d.ts +1 -1
  307. package/umd/typings/utils/getCurrentIsoDate.d.ts +7 -7
  308. package/umd/typings/utils/isRunningInWhatever.d.ts +12 -12
  309. package/umd/typings/utils/isValidJsonString.d.ts +4 -4
  310. package/umd/typings/utils/isValidJsonString.test.d.ts +1 -1
  311. package/umd/typings/utils/just.d.ts +10 -10
  312. package/umd/typings/utils/markdown/addAutoGeneratedSection.d.ts +10 -10
  313. package/umd/typings/utils/markdown/addAutoGeneratedSection.test.d.ts +1 -1
  314. package/umd/typings/utils/markdown/createMarkdownChart.d.ts +41 -41
  315. package/umd/typings/utils/markdown/createMarkdownChart.test.d.ts +1 -1
  316. package/umd/typings/utils/markdown/createMarkdownTable.d.ts +7 -7
  317. package/umd/typings/utils/markdown/createMarkdownTable.test.d.ts +1 -1
  318. package/umd/typings/utils/markdown/escapeMarkdownBlock.d.ts +6 -6
  319. package/umd/typings/utils/markdown/escapeMarkdownBlock.test.d.ts +1 -1
  320. package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.d.ts +27 -27
  321. package/umd/typings/utils/markdown/extractAllBlocksFromMarkdown.test.d.ts +1 -1
  322. package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.d.ts +13 -13
  323. package/umd/typings/utils/markdown/extractAllListItemsFromMarkdown.test.d.ts +1 -1
  324. package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.d.ts +19 -19
  325. package/umd/typings/utils/markdown/extractOneBlockFromMarkdown.test.d.ts +1 -1
  326. package/umd/typings/utils/markdown/prettifyMarkdown.d.ts +8 -8
  327. package/umd/typings/utils/markdown/prettifyMarkdown.test.d.ts +1 -1
  328. package/umd/typings/utils/markdown/removeContentComments.d.ts +8 -8
  329. package/umd/typings/utils/markdown/removeContentComments.test.d.ts +1 -1
  330. package/umd/typings/utils/markdown/removeMarkdownFormatting.d.ts +8 -8
  331. package/umd/typings/utils/markdown/removeMarkdownFormatting.test.d.ts +1 -1
  332. package/umd/typings/utils/markdown-json/MarkdownStructure.d.ts +25 -25
  333. package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.d.ts +7 -7
  334. package/umd/typings/utils/markdown-json/countMarkdownStructureDeepness.test.d.ts +1 -1
  335. package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.d.ts +13 -13
  336. package/umd/typings/utils/markdown-json/markdownToMarkdownStructure.test.d.ts +1 -1
  337. package/umd/typings/utils/postprocessing/extractBlock.d.ts +12 -12
  338. package/umd/typings/utils/removeEmojis.d.ts +7 -7
  339. package/umd/typings/utils/removeEmojis.test.d.ts +1 -1
  340. package/umd/typings/utils/removeQuotes.d.ts +13 -13
  341. package/umd/typings/utils/removeQuotes.test.d.ts +1 -1
  342. package/umd/typings/utils/trimCodeBlock.d.ts +8 -8
  343. package/umd/typings/utils/trimCodeBlock.test.d.ts +1 -1
  344. package/umd/typings/utils/trimEndOfCodeBlock.d.ts +7 -7
  345. package/umd/typings/utils/trimEndOfCodeBlock.test.d.ts +1 -1
  346. package/umd/typings/utils/unwrapResult.d.ts +36 -36
  347. package/umd/typings/utils/unwrapResult.test.d.ts +1 -1
  348. package/umd/typings/utils/validators/url/isValidUrl.d.ts +7 -7
  349. package/umd/typings/utils/validators/url/isValidUrl.test.d.ts +1 -1
  350. package/umd/typings/version.d.ts +5 -5
  351. package/umd/typings/wizzard/Wizzard.d.ts +4 -4
  352. package/umd/typings/wizzard/sample.d.ts +6 -6
@@ -1,20 +1,20 @@
1
- import { promptbookStringToJson } from '../conversion/promptbookStringToJson';
2
- import { validatePromptbookJson } from '../conversion/test/validatePromptbookJson';
3
- import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
4
- import { MockedEchoNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools';
5
- import { CallbackInterfaceTools } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools';
6
- import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';
7
- import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
8
- import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
9
- import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
10
- import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
11
- import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
12
- import { ExecutionTypes } from '../types/ExecutionTypes';
13
- import { PROMPTBOOK_VERSION } from '../version';
14
- export { ExecutionTypes, PROMPTBOOK_VERSION };
15
- export { SimplePromptbookLibrary, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, };
16
- export { SimplePromptInterfaceTools };
17
- export { promptbookStringToJson, validatePromptbookJson };
18
- export { MockedEchoNaturalExecutionTools };
19
- export { createPromptbookExecutor };
20
- export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
1
+ import { promptbookStringToJson } from '../conversion/promptbookStringToJson';
2
+ import { validatePromptbookJson } from '../conversion/test/validatePromptbookJson';
3
+ import { createPromptbookExecutor } from '../execution/createPromptbookExecutor';
4
+ import { MockedEchoNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/mocked/MockedEchoNaturalExecutionTools';
5
+ import { CallbackInterfaceTools } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceTools';
6
+ import { CallbackInterfaceToolsOptions } from '../execution/plugins/user-interface-execution-tools/callback/CallbackInterfaceToolsOptions';
7
+ import { SimplePromptInterfaceTools } from '../execution/plugins/user-interface-execution-tools/simple-prompt/SimplePromptInterfaceTools';
8
+ import { SimplePromptbookLibrary } from '../library/SimplePromptbookLibrary';
9
+ import { createPromptbookLibraryFromPromise } from '../library/constructors/createPromptbookLibraryFromPromise';
10
+ import { createPromptbookLibraryFromSources } from '../library/constructors/createPromptbookLibraryFromSources';
11
+ import { createPromptbookSublibrary } from '../library/constructors/createPromptbookSublibrary';
12
+ import { ExecutionTypes } from '../types/ExecutionTypes';
13
+ import { PROMPTBOOK_VERSION } from '../version';
14
+ export { ExecutionTypes, PROMPTBOOK_VERSION };
15
+ export { SimplePromptbookLibrary, createPromptbookLibraryFromPromise, createPromptbookLibraryFromSources, createPromptbookSublibrary, };
16
+ export { SimplePromptInterfaceTools };
17
+ export { promptbookStringToJson, validatePromptbookJson };
18
+ export { MockedEchoNaturalExecutionTools };
19
+ export { createPromptbookExecutor };
20
+ export { CallbackInterfaceTools, CallbackInterfaceToolsOptions };
@@ -1,3 +1,3 @@
1
- import { JavascriptEvalExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools';
2
- import { JavascriptExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools';
3
- export { JavascriptEvalExecutionTools, JavascriptExecutionTools };
1
+ import { JavascriptEvalExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptEvalExecutionTools';
2
+ import { JavascriptExecutionTools } from '../execution/plugins/script-execution-tools/javascript/JavascriptExecutionTools';
3
+ export { JavascriptEvalExecutionTools, JavascriptExecutionTools };
@@ -1,3 +1,3 @@
1
- import { OpenAiExecutionTools } from '../execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools';
2
- import { OpenAiExecutionToolsOptions } from '../execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions';
3
- export { OpenAiExecutionTools, OpenAiExecutionToolsOptions };
1
+ import { OpenAiExecutionTools } from '../execution/plugins/natural-execution-tools/openai/OpenAiExecutionTools';
2
+ import { OpenAiExecutionToolsOptions } from '../execution/plugins/natural-execution-tools/openai/OpenAiExecutionToolsOptions';
3
+ export { OpenAiExecutionTools, OpenAiExecutionToolsOptions };
@@ -1,4 +1,4 @@
1
- import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions';
2
- import { RemoteNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools';
3
- import { RemoteNaturalExecutionToolsOptions } from '../execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions';
4
- export { RemoteNaturalExecutionTools, RemoteNaturalExecutionToolsOptions, RemoteServerOptions };
1
+ import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions';
2
+ import { RemoteNaturalExecutionTools } from '../execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionTools';
3
+ import { RemoteNaturalExecutionToolsOptions } from '../execution/plugins/natural-execution-tools/remote/RemoteNaturalExecutionToolsOptions';
4
+ export { RemoteNaturalExecutionTools, RemoteNaturalExecutionToolsOptions, RemoteServerOptions };
@@ -1,3 +1,3 @@
1
- import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions';
2
- import { startRemoteServer } from '../execution/plugins/natural-execution-tools/remote/startRemoteServer';
3
- export { RemoteServerOptions, startRemoteServer };
1
+ import { RemoteServerOptions } from '../execution/plugins/natural-execution-tools/remote/interfaces/RemoteServerOptions';
2
+ import { startRemoteServer } from '../execution/plugins/natural-execution-tools/remote/startRemoteServer';
3
+ export { RemoteServerOptions, startRemoteServer };
@@ -1,27 +1,27 @@
1
- import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
- import type { ExecutionTools } from '../execution/ExecutionTools';
3
- import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
4
- import type { PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult } 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 { EXPECTATION_UNITS, ExpectationAmount, ExpectationUnit, PromptTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
14
- import type { PromptTemplateParameterJson } from '../types/PromptbookJson/PromptTemplateParameterJson';
15
- import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
16
- import type { PromptbookString } from '../types/PromptbookString';
17
- import type { ScriptLanguage } from '../types/ScriptLanguage';
18
- import type { TaskProgress } from '../types/TaskProgress';
19
- import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
20
- import type { string_char_emoji } from '../types/typeAliasEmoji';
21
- 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';
22
- import { FromtoItems } from '../utils/FromtoItems';
23
- export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
24
- /**
25
- * TODO: [🧠][🆔] Is this the best package to export custom errors from?
26
- * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
27
- */
1
+ import type { CommonExecutionToolsOptions } from '../execution/CommonExecutionToolsOptions';
2
+ import type { ExecutionTools } from '../execution/ExecutionTools';
3
+ import type { NaturalExecutionTools } from '../execution/NaturalExecutionTools';
4
+ import type { PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult } 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 { EXPECTATION_UNITS, ExpectationAmount, ExpectationUnit, PromptTemplateJson } from '../types/PromptbookJson/PromptTemplateJson';
14
+ import type { PromptTemplateParameterJson } from '../types/PromptbookJson/PromptTemplateParameterJson';
15
+ import type { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
16
+ import type { PromptbookString } from '../types/PromptbookString';
17
+ import type { ScriptLanguage } from '../types/ScriptLanguage';
18
+ import type { TaskProgress } from '../types/TaskProgress';
19
+ import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
20
+ import type { string_char_emoji } from '../types/typeAliasEmoji';
21
+ 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';
22
+ import { FromtoItems } from '../utils/FromtoItems';
23
+ export { CommonExecutionToolsOptions, EXPECTATION_UNITS, ExecutionReportJson, ExecutionTools, ExecutionType, ExpectationAmount, ExpectationUnit, FromtoItems, ModelRequirements, ModelVariant, NaturalExecutionTools, Parameters, Prompt, PromptChatResult, PromptCommonResult, PromptCompletionResult, PromptResult, PromptTemplateJson, PromptTemplateParameterJson, PromptbookExecutor, PromptbookJson, PromptbookLibrary, PromptbookString, ScriptExecutionTools, ScriptExecutionToolsExecuteOptions, ScriptLanguage, TaskProgress, UserInterfaceTools, UserInterfaceToolsPromptDialogOptions, client_id, 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, };
24
+ /**
25
+ * TODO: [🧠][🆔] Is this the best package to export custom errors from?
26
+ * TODO: Delete type aliases (from ../types/typeAliases) that are not exported here
27
+ */
@@ -1,30 +1,30 @@
1
- import { parseNumber } from '../conversion/utils/parseNumber';
2
- import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
3
- import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
4
- import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
5
- import { CountUtils } from '../utils/expectation-counters';
6
- import { countCharacters } from '../utils/expectation-counters/countCharacters';
7
- import { countLines } from '../utils/expectation-counters/countLines';
8
- import { countPages } from '../utils/expectation-counters/countPages';
9
- import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
10
- import { countSentences } from '../utils/expectation-counters/countSentences';
11
- import { countWords } from '../utils/expectation-counters/countWords';
12
- import { isValidJsonString } from '../utils/isValidJsonString';
13
- import { extractAllBlocksFromMarkdown } from '../utils/markdown/extractAllBlocksFromMarkdown';
14
- import { extractAllListItemsFromMarkdown } from '../utils/markdown/extractAllListItemsFromMarkdown';
15
- import { extractOneBlockFromMarkdown } from '../utils/markdown/extractOneBlockFromMarkdown';
16
- import { removeContentComments } from '../utils/markdown/removeContentComments';
17
- import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting';
18
- import { extractBlock } from '../utils/postprocessing/extractBlock';
19
- import { removeEmojis } from '../utils/removeEmojis';
20
- import { removeQuotes } from '../utils/removeQuotes';
21
- import { trimCodeBlock } from '../utils/trimCodeBlock';
22
- import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
23
- import { unwrapResult } from '../utils/unwrapResult';
24
- export { CountUtils, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, assertsExecutionSuccessful, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, executionReportJsonToString, extractAllBlocksFromMarkdown, // <- [🌻]
25
- extractAllListItemsFromMarkdown, // <- [🌻]
26
- extractOneBlockFromMarkdown, // <- [🌻]
27
- extractBlock, isValidJsonString, parseNumber, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
28
- /**
29
- * TODO: [🧠] Maybe create some indipendent package like `markdown-tools` from both here exported and @private utilities
30
- */
1
+ import { parseNumber } from '../conversion/utils/parseNumber';
2
+ import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
3
+ import { ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
4
+ import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
5
+ import { CountUtils } from '../utils/expectation-counters';
6
+ import { countCharacters } from '../utils/expectation-counters/countCharacters';
7
+ import { countLines } from '../utils/expectation-counters/countLines';
8
+ import { countPages } from '../utils/expectation-counters/countPages';
9
+ import { countParagraphs } from '../utils/expectation-counters/countParagraphs';
10
+ import { countSentences } from '../utils/expectation-counters/countSentences';
11
+ import { countWords } from '../utils/expectation-counters/countWords';
12
+ import { isValidJsonString } from '../utils/isValidJsonString';
13
+ import { extractAllBlocksFromMarkdown } from '../utils/markdown/extractAllBlocksFromMarkdown';
14
+ import { extractAllListItemsFromMarkdown } from '../utils/markdown/extractAllListItemsFromMarkdown';
15
+ import { extractOneBlockFromMarkdown } from '../utils/markdown/extractOneBlockFromMarkdown';
16
+ import { removeContentComments } from '../utils/markdown/removeContentComments';
17
+ import { removeMarkdownFormatting } from '../utils/markdown/removeMarkdownFormatting';
18
+ import { extractBlock } from '../utils/postprocessing/extractBlock';
19
+ import { removeEmojis } from '../utils/removeEmojis';
20
+ import { removeQuotes } from '../utils/removeQuotes';
21
+ import { trimCodeBlock } from '../utils/trimCodeBlock';
22
+ import { trimEndOfCodeBlock } from '../utils/trimEndOfCodeBlock';
23
+ import { unwrapResult } from '../utils/unwrapResult';
24
+ export { CountUtils, ExecutionReportStringOptions, ExecutionReportStringOptionsDefaults, assertsExecutionSuccessful, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, executionReportJsonToString, extractAllBlocksFromMarkdown, // <- [🌻]
25
+ extractAllListItemsFromMarkdown, // <- [🌻]
26
+ extractOneBlockFromMarkdown, // <- [🌻]
27
+ extractBlock, isValidJsonString, parseNumber, removeContentComments, removeEmojis, removeMarkdownFormatting, removeQuotes, trimCodeBlock, trimEndOfCodeBlock, unwrapResult, };
28
+ /**
29
+ * TODO: [🧠] Maybe create some indipendent package like `markdown-tools` from both here exported and @private utilities
30
+ */
@@ -1,5 +1,5 @@
1
- import { Wizzard } from '../wizzard/Wizzard';
2
- export { Wizzard };
3
- /**
4
- * TODO: [🧙‍♂️]
5
- */
1
+ import { Wizzard } from '../wizzard/Wizzard';
2
+ export { Wizzard };
3
+ /**
4
+ * TODO: [🧙‍♂️]
5
+ */
@@ -1,4 +1,4 @@
1
- /**
2
- * The maximum number of iterations for a loops
3
- */
4
- export declare const LOOP_LIMIT = 1000;
1
+ /**
2
+ * The maximum number of iterations for a loops
3
+ */
4
+ export declare const LOOP_LIMIT = 1000;
@@ -1,13 +1,13 @@
1
- import { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
2
- import { PromptbookString } from '../types/PromptbookString';
3
- /**
4
- * Parse promptbook from string format to JSON format
5
- *
6
- * Note: This function does not validate logic of the pipeline only the syntax
7
- */
8
- export declare function promptbookStringToJson(promptbookString: PromptbookString): PromptbookJson;
9
- /**
10
- * TODO: Report here line/column of error
11
- * TODO: Use spaceTrim more effectively
12
- * TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
13
- */
1
+ import { PromptbookJson } from '../types/PromptbookJson/PromptbookJson';
2
+ import { PromptbookString } from '../types/PromptbookString';
3
+ /**
4
+ * Parse promptbook from string format to JSON format
5
+ *
6
+ * Note: This function does not validate logic of the pipeline only the syntax
7
+ */
8
+ export declare function promptbookStringToJson(promptbookString: PromptbookString): PromptbookJson;
9
+ /**
10
+ * TODO: Report here line/column of error
11
+ * TODO: Use spaceTrim more effectively
12
+ * TODO: [🧠] Parameter flags - isInput, isOutput, isInternal
13
+ */
@@ -1,12 +1,12 @@
1
- import { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
- import { 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
- * @private
10
- */
11
- export declare function importPromptbook(path: `${string}.ptbk.md`): PromptbookString;
12
- export declare function importPromptbook(path: `${string}.ptbk.json`): PromptbookJson;
1
+ import { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
+ import { 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
+ * @private
10
+ */
11
+ export declare function importPromptbook(path: `${string}.ptbk.md`): PromptbookString;
12
+ export declare function importPromptbook(path: `${string}.ptbk.json`): PromptbookJson;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,26 +1,26 @@
1
- import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
- /**
3
- * Validates PromptbookJson if it is logically valid.
4
- *
5
- * It checks:
6
- * - if it has correct parameters dependency
7
- *
8
- * It does NOT check:
9
- * - if it is valid json
10
- * - if it is meaningful
11
- *
12
- * @param promptbook valid or invalid PromptbookJson
13
- * @throws {Error} if invalid
14
- */
15
- export declare function validatePromptbookJson(promptbook: PromptbookJson): void;
16
- /**
17
- * TODO: [🧠] Work with promptbookVersion
18
- * TODO: Use here some json-schema, Zod or something similar and change it to:
19
- * > /**
20
- * > * Validates PromptbookJson if it is logically valid.
21
- * > *
22
- * > * It checks:
23
- * > * - it has a valid structure
24
- * > * - ...
25
- * > ex port function validatePromptbookJson(promptbook: unknown): asserts promptbook is PromptbookJson {
26
- */
1
+ import type { PromptbookJson } from '../../types/PromptbookJson/PromptbookJson';
2
+ /**
3
+ * Validates PromptbookJson if it is logically valid.
4
+ *
5
+ * It checks:
6
+ * - if it has correct parameters dependency
7
+ *
8
+ * It does NOT check:
9
+ * - if it is valid json
10
+ * - if it is meaningful
11
+ *
12
+ * @param promptbook valid or invalid PromptbookJson
13
+ * @throws {Error} if invalid
14
+ */
15
+ export declare function validatePromptbookJson(promptbook: PromptbookJson): void;
16
+ /**
17
+ * TODO: [🧠] Work with promptbookVersion
18
+ * TODO: Use here some json-schema, Zod or something similar and change it to:
19
+ * > /**
20
+ * > * Validates PromptbookJson if it is logically valid.
21
+ * > *
22
+ * > * It checks:
23
+ * > * - it has a valid structure
24
+ * > * - ...
25
+ * > ex port function validatePromptbookJson(promptbook: unknown): asserts promptbook is PromptbookJson {
26
+ */
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,10 +1,10 @@
1
- import { string_javascript, string_javascript_name } from '../../types/typeAliases';
2
- /**
3
- * Parses the given script and returns the list of all used variables that are not defined in the script
4
- *
5
- * @param script from which to extract the variables
6
- * @returns the list of variable names
7
- *
8
- * @private within the promptbookStringToJson
9
- */
10
- export declare function extractVariables(script: string_javascript): Array<string_javascript_name>;
1
+ import { string_javascript, string_javascript_name } from '../../types/typeAliases';
2
+ /**
3
+ * Parses the given script and returns the list of all used variables that are not defined in the script
4
+ *
5
+ * @param script from which to extract the variables
6
+ * @returns the list of variable names
7
+ *
8
+ * @private within the promptbookStringToJson
9
+ */
10
+ export declare function extractVariables(script: string_javascript): Array<string_javascript_name>;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,8 +1,8 @@
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
- * @private within the promptbookStringToJson
7
- */
8
- export declare function parseCommand(listItem: string_markdown_text): Command;
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
+ * @private within the promptbookStringToJson
7
+ */
8
+ export declare function parseCommand(listItem: string_markdown_text): Command;
@@ -1,4 +1,4 @@
1
- export {};
2
- /**
3
- * TODO: [🧠] Probbably change syntax MODEL VARIANT -> MODEL
4
- */
1
+ export {};
2
+ /**
3
+ * TODO: [🧠] Probbably change syntax MODEL VARIANT -> MODEL
4
+ */
@@ -1,12 +1,12 @@
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
- * @private within the parseCommand
8
- */
9
- export declare function parseNumber(value: string | number): number;
10
- /**
11
- * TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
12
- */
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
+ * @private within the parseCommand
8
+ */
9
+ export declare function parseNumber(value: string | number): number;
10
+ /**
11
+ * TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
12
+ */
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,9 +1,9 @@
1
- /**
2
- * This error occurs when some expectation is not met in the execution of the pipeline
3
- *
4
- * Note: This is a kindof subtype of PromptbookExecutionError
5
- */
6
- export declare class ExpectError extends Error {
7
- readonly name = "ExpectError";
8
- constructor(message: string);
9
- }
1
+ /**
2
+ * This error occurs when some expectation is not met in the execution of the pipeline
3
+ *
4
+ * Note: This is a kindof subtype of PromptbookExecutionError
5
+ */
6
+ export declare class ExpectError extends Error {
7
+ readonly name = "ExpectError";
8
+ constructor(message: string);
9
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error indicates that the requested resource (for example promptbook in the library ) was not found
3
- */
4
- export declare class NotFoundError extends Error {
5
- readonly name = "NotFoundError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error indicates that the requested resource (for example promptbook in the library ) was not found
3
+ */
4
+ export declare class NotFoundError extends Error {
5
+ readonly name = "NotFoundError";
6
+ constructor(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error indicates errors during the execution of the promptbook
3
- */
4
- export declare class PromptbookExecutionError extends Error {
5
- readonly name = "PromptbookExecutionError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error indicates errors during the execution of the promptbook
3
+ */
4
+ export declare class PromptbookExecutionError extends Error {
5
+ readonly name = "PromptbookExecutionError";
6
+ constructor(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
3
- */
4
- export declare class PromptbookLogicError extends Error {
5
- readonly name = "PromptbookLogicError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error indicates that the promptbook object has valid syntax but contains logical errors (like circular dependencies)
3
+ */
4
+ export declare class PromptbookLogicError extends Error {
5
+ readonly name = "PromptbookLogicError";
6
+ constructor(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error indicates errors in referencing promptbooks between each other
3
- */
4
- export declare class PromptbookReferenceError extends Error {
5
- readonly name = "PromptbookReferenceError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error indicates errors in referencing promptbooks between each other
3
+ */
4
+ export declare class PromptbookReferenceError extends Error {
5
+ readonly name = "PromptbookReferenceError";
6
+ constructor(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
3
- */
4
- export declare class PromptbookSyntaxError extends Error {
5
- readonly name = "PromptbookSyntaxError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
3
+ */
4
+ export declare class PromptbookSyntaxError extends Error {
5
+ readonly name = "PromptbookSyntaxError";
6
+ constructor(message: string);
7
+ }
@@ -1,7 +1,7 @@
1
- /**
2
- * This error type indicates that the error should not happen and its last check before crashing with some other error
3
- */
4
- export declare class UnexpectedError extends Error {
5
- readonly name = "UnexpectedError";
6
- constructor(message: string);
7
- }
1
+ /**
2
+ * This error type indicates that the error should not happen and its last check before crashing with some other error
3
+ */
4
+ export declare class UnexpectedError extends Error {
5
+ readonly name = "UnexpectedError";
6
+ constructor(message: string);
7
+ }
@@ -1,9 +1,9 @@
1
- export type CommonExecutionToolsOptions = {
2
- /**
3
- * If true, the internal executions will be logged
4
- */
5
- readonly isVerbose?: boolean;
6
- };
7
- /**
8
- * TODO: [🧠][💙] Distinct between options passed into ExecutionTools and to ExecutionTools.execute
9
- */
1
+ export type CommonExecutionToolsOptions = {
2
+ /**
3
+ * If true, the internal executions will be logged
4
+ */
5
+ readonly isVerbose?: boolean;
6
+ };
7
+ /**
8
+ * TODO: [🧠][💙] Distinct between options passed into ExecutionTools and to ExecutionTools.execute
9
+ */