@promptbook/types 0.75.0-1 → 0.75.0-4

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 (163) hide show
  1. package/README.md +28 -17
  2. package/esm/typings/{promptbook-collection → books}/index.d.ts +6 -6
  3. package/esm/typings/src/_packages/core.index.d.ts +28 -20
  4. package/esm/typings/src/_packages/types.index.d.ts +62 -52
  5. package/esm/typings/src/_packages/utils.index.d.ts +2 -2
  6. package/esm/typings/src/cli/cli-commands/about.d.ts +1 -0
  7. package/esm/typings/src/cli/cli-commands/hello.d.ts +1 -0
  8. package/esm/typings/src/cli/cli-commands/make.d.ts +1 -0
  9. package/esm/typings/src/cli/cli-commands/prettify.d.ts +1 -0
  10. package/esm/typings/src/cli/cli-commands/run.d.ts +1 -0
  11. package/esm/typings/src/cli/cli-commands/test-command.d.ts +1 -0
  12. package/esm/typings/src/cli/main.d.ts +1 -0
  13. package/esm/typings/src/collection/PipelineCollection.d.ts +1 -1
  14. package/esm/typings/src/collection/SimplePipelineCollection.d.ts +1 -1
  15. package/esm/typings/src/collection/collectionToJson.d.ts +1 -1
  16. package/esm/typings/src/collection/constructors/createCollectionFromJson.d.ts +1 -1
  17. package/esm/typings/src/collection/constructors/createCollectionFromPromise.d.ts +1 -1
  18. package/esm/typings/src/commands/EXPECT/ExpectCommand.d.ts +3 -3
  19. package/esm/typings/src/commands/EXPECT/expectCommandParser.d.ts +2 -2
  20. package/esm/typings/src/commands/FOREACH/foreachCommandParser.d.ts +2 -2
  21. package/esm/typings/src/commands/FORMAT/formatCommandParser.d.ts +2 -2
  22. package/esm/typings/src/commands/JOKER/jokerCommandParser.d.ts +2 -2
  23. package/esm/typings/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +2 -2
  24. package/esm/typings/src/commands/SECTION/SectionCommand.d.ts +11 -0
  25. package/esm/typings/src/commands/{TEMPLATE/templateCommandParser.d.ts → SECTION/sectionCommandParser.d.ts} +6 -6
  26. package/esm/typings/src/commands/_common/types/Command.d.ts +1 -1
  27. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +17 -19
  28. package/esm/typings/src/commands/_common/types/CommandUsagePlaces.d.ts +1 -1
  29. package/esm/typings/src/commands/index.d.ts +4 -1
  30. package/esm/typings/src/config.d.ts +11 -3
  31. package/esm/typings/src/conversion/pipelineJsonToString.d.ts +3 -3
  32. package/esm/typings/src/conversion/pipelineStringToJson.d.ts +2 -2
  33. package/esm/typings/src/conversion/pipelineStringToJsonSync.d.ts +3 -3
  34. package/esm/typings/src/conversion/prettify/prettifyPipelineString.d.ts +1 -1
  35. package/esm/typings/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +4 -4
  36. package/esm/typings/src/conversion/utils/extractParameterNamesFromTask.d.ts +15 -0
  37. package/esm/typings/src/conversion/utils/renameParameter.d.ts +3 -3
  38. package/esm/typings/src/conversion/validation/_importPipeline.d.ts +3 -2
  39. package/esm/typings/src/conversion/validation/validatePipeline.d.ts +1 -1
  40. package/esm/typings/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -1
  41. package/esm/typings/src/errors/index.d.ts +3 -0
  42. package/esm/typings/src/execution/PipelineExecutorResult.d.ts +2 -2
  43. package/esm/typings/src/execution/PromptResultUsage.d.ts +1 -1
  44. package/esm/typings/src/execution/ScriptExecutionTools.d.ts +1 -1
  45. package/esm/typings/src/execution/createPipelineExecutor/{$OngoingTemplateResult.d.ts → $OngoingTaskResult.d.ts} +1 -1
  46. package/esm/typings/src/execution/createPipelineExecutor/00-CreatePipelineExecutorOptions.d.ts +1 -1
  47. package/esm/typings/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  48. package/esm/typings/src/execution/createPipelineExecutor/{20-executeTemplate.d.ts → 20-executeTask.d.ts} +7 -7
  49. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +5 -5
  50. package/esm/typings/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  51. package/esm/typings/src/execution/createPipelineExecutor/{getContextForTemplate.d.ts → getContextForTask.d.ts} +2 -2
  52. package/esm/typings/src/execution/createPipelineExecutor/{getExamplesForTemplate.d.ts → getExamplesForTask.d.ts} +2 -2
  53. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +27 -0
  54. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +30 -0
  55. package/esm/typings/src/{types → execution}/execution-report/ExecutionPromptReportJson.d.ts +2 -2
  56. package/esm/typings/src/{types → execution}/execution-report/ExecutionReportJson.d.ts +4 -4
  57. package/esm/typings/src/{types → execution}/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  58. package/esm/typings/src/execution/utils/checkExpectations.d.ts +1 -1
  59. package/esm/typings/src/execution/utils/usage-constants.d.ts +3 -0
  60. package/esm/typings/src/formats/index.d.ts +3 -0
  61. package/esm/typings/src/formfactors/_boilerplate/BoilerplateFormfactorDefinition.d.ts +2 -2
  62. package/esm/typings/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +7 -1
  63. package/esm/typings/src/formfactors/_common/FormfactorDefinition.d.ts +3 -0
  64. package/esm/typings/src/formfactors/chatbot/ChatbotFormfactorDefinition.d.ts +45 -0
  65. package/esm/typings/src/formfactors/generator/GeneratorFormfactorDefinition.d.ts +14 -0
  66. package/esm/typings/src/formfactors/generic/GenericFormfactorDefinition.d.ts +3 -3
  67. package/esm/typings/src/formfactors/index.d.ts +85 -12
  68. package/esm/typings/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +14 -0
  69. package/esm/typings/src/formfactors/sheets/SheetsFormfactorDefinition.d.ts +13 -3
  70. package/esm/typings/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +13 -3
  71. package/esm/typings/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -0
  72. package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +3 -0
  73. package/esm/typings/src/llm-providers/anthropic-claude/register-constructor.d.ts +1 -0
  74. package/esm/typings/src/llm-providers/azure-openai/register-configuration.d.ts +3 -0
  75. package/esm/typings/src/llm-providers/azure-openai/register-constructor.d.ts +1 -0
  76. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -1
  77. package/esm/typings/src/llm-providers/openai/openai-models.d.ts +1 -0
  78. package/esm/typings/src/llm-providers/openai/register-configuration.d.ts +3 -0
  79. package/esm/typings/src/llm-providers/openai/register-constructor.d.ts +1 -0
  80. package/esm/typings/src/personas/preparePersona.d.ts +1 -1
  81. package/esm/typings/src/pipeline/PipelineInterface/PipelineInterface.d.ts +26 -0
  82. package/esm/typings/src/pipeline/PipelineInterface/constants.d.ts +14 -0
  83. package/esm/typings/src/pipeline/{pipeline-interface → PipelineInterface}/getPipelineInterface.d.ts +3 -1
  84. package/esm/typings/src/pipeline/{pipeline-interface → PipelineInterface}/isPipelineImplementingInterface.d.ts +5 -1
  85. package/esm/typings/src/pipeline/{pipeline-interface → PipelineInterface}/isPipelineInterfacesEqual.d.ts +2 -0
  86. package/esm/typings/src/{types/PipelineJson/TemplateJsonCommon.d.ts → pipeline/PipelineJson/CommonTaskJson.d.ts} +24 -24
  87. package/esm/typings/src/pipeline/PipelineJson/DialogTaskJson.d.ts +13 -0
  88. package/esm/typings/src/{types → pipeline}/PipelineJson/Expectations.d.ts +2 -2
  89. package/esm/typings/src/{types → pipeline}/PipelineJson/KnowledgePieceJson.d.ts +7 -6
  90. package/esm/typings/src/{types → pipeline}/PipelineJson/KnowledgeSourceJson.d.ts +3 -3
  91. package/esm/typings/src/pipeline/PipelineJson/ParameterJson.d.ts +98 -0
  92. package/esm/typings/src/{types → pipeline}/PipelineJson/PersonaJson.d.ts +5 -5
  93. package/esm/typings/src/{types → pipeline}/PipelineJson/PipelineJson.d.ts +11 -11
  94. package/esm/typings/src/{types → pipeline}/PipelineJson/PreparationJson.d.ts +1 -1
  95. package/esm/typings/src/{types/PipelineJson/PromptTemplateJson.d.ts → pipeline/PipelineJson/PromptTaskJson.d.ts} +8 -8
  96. package/esm/typings/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +20 -0
  97. package/esm/typings/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +13 -0
  98. package/esm/typings/src/pipeline/PipelineJson/TaskJson.d.ts +11 -0
  99. package/esm/typings/src/{types → pipeline}/PipelineString.d.ts +1 -1
  100. package/esm/typings/src/prepare/isPipelinePrepared.d.ts +3 -3
  101. package/esm/typings/src/prepare/preparePipeline.d.ts +1 -1
  102. package/esm/typings/src/prepare/prepareTasks.d.ts +32 -0
  103. package/esm/typings/src/prepare/unpreparePipeline.d.ts +1 -1
  104. package/esm/typings/src/scrapers/_common/Scraper.d.ts +1 -1
  105. package/esm/typings/src/scrapers/_common/prepareKnowledgePieces.d.ts +2 -2
  106. package/esm/typings/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +1 -1
  107. package/esm/typings/src/scrapers/document/DocumentScraper.d.ts +1 -1
  108. package/esm/typings/src/scrapers/document/register-constructor.d.ts +1 -0
  109. package/esm/typings/src/scrapers/document/register-metadata.d.ts +3 -0
  110. package/esm/typings/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +1 -1
  111. package/esm/typings/src/scrapers/document-legacy/register-constructor.d.ts +1 -0
  112. package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +3 -0
  113. package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +1 -1
  114. package/esm/typings/src/scrapers/markdown/register-constructor.d.ts +1 -0
  115. package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +3 -0
  116. package/esm/typings/src/scrapers/pdf/PdfScraper.d.ts +1 -1
  117. package/esm/typings/src/scrapers/pdf/register-constructor.d.ts +1 -0
  118. package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +3 -0
  119. package/esm/typings/src/scrapers/website/WebsiteScraper.d.ts +1 -1
  120. package/esm/typings/src/scrapers/website/register-constructor.d.ts +1 -0
  121. package/esm/typings/src/scrapers/website/register-metadata.d.ts +3 -0
  122. package/esm/typings/src/scripting/javascript/postprocessing-functions.d.ts +1 -0
  123. package/esm/typings/src/types/Prompt.d.ts +4 -4
  124. package/esm/typings/src/types/SectionType.d.ts +21 -0
  125. package/esm/typings/src/types/TaskProgress.d.ts +2 -2
  126. package/esm/typings/src/types/TaskType.d.ts +15 -0
  127. package/esm/typings/src/types/typeAliasEmoji.d.ts +3 -0
  128. package/esm/typings/src/types/typeAliases.d.ts +2 -1
  129. package/esm/typings/src/utils/emojis.d.ts +1 -0
  130. package/esm/typings/src/utils/expectation-counters/constants.d.ts +1 -0
  131. package/esm/typings/src/utils/expectation-counters/countCharacters.d.ts +1 -1
  132. package/esm/typings/src/utils/expectation-counters/countLines.d.ts +1 -1
  133. package/esm/typings/src/utils/expectation-counters/countPages.d.ts +1 -1
  134. package/esm/typings/src/utils/expectation-counters/countParagraphs.d.ts +1 -1
  135. package/esm/typings/src/utils/expectation-counters/countSentences.d.ts +1 -1
  136. package/esm/typings/src/utils/expectation-counters/countWords.d.ts +1 -1
  137. package/esm/typings/src/utils/expectation-counters/index.d.ts +3 -2
  138. package/esm/typings/src/utils/normalization/normalize-to-kebab-case.d.ts +3 -0
  139. package/esm/typings/src/utils/organization/TODO_remove_as.d.ts +6 -0
  140. package/esm/typings/src/utils/parameters/extractParameterNames.d.ts +2 -2
  141. package/esm/typings/src/utils/serialization/clonePipeline.d.ts +1 -1
  142. package/esm/typings/src/version.d.ts +2 -1
  143. package/package.json +5 -4
  144. package/esm/typings/src/commands/TEMPLATE/TemplateCommand.d.ts +0 -11
  145. package/esm/typings/src/commands/TEMPLATE/TemplateTypes.d.ts +0 -15
  146. package/esm/typings/src/conversion/utils/extractParameterNamesFromTemplate.d.ts +0 -15
  147. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTemplate.d.ts +0 -27
  148. package/esm/typings/src/execution/createPipelineExecutor/getReservedParametersForTemplate.d.ts +0 -30
  149. package/esm/typings/src/formfactors/chat/ChatFormfactorDefinition.d.ts +0 -15
  150. package/esm/typings/src/pipeline/pipeline-interface/PipelineInterface.d.ts +0 -22
  151. package/esm/typings/src/pipeline/pipeline-interface/constants.d.ts +0 -9
  152. package/esm/typings/src/prepare/prepareTemplates.d.ts +0 -32
  153. package/esm/typings/src/types/PipelineJson/DialogTemplateJson.d.ts +0 -13
  154. package/esm/typings/src/types/PipelineJson/ParameterJson.d.ts +0 -39
  155. package/esm/typings/src/types/PipelineJson/ScriptTemplateJson.d.ts +0 -20
  156. package/esm/typings/src/types/PipelineJson/SimpleTemplateJson.d.ts +0 -13
  157. package/esm/typings/src/types/PipelineJson/TemplateJson.d.ts +0 -11
  158. /package/esm/typings/src/commands/{TEMPLATE/templateCommand.test.d.ts → SECTION/sectionCommand.test.d.ts} +0 -0
  159. /package/esm/typings/src/conversion/utils/{extractParameterNamesFromTemplate.test.d.ts → extractParameterNamesFromTask.test.d.ts} +0 -0
  160. /package/esm/typings/src/{types → execution}/execution-report/ExecutionReportString.d.ts +0 -0
  161. /package/esm/typings/src/{types → execution}/execution-report/countWorkingDuration.d.ts +0 -0
  162. /package/esm/typings/src/{types → execution}/execution-report/countWorkingDuration.test.d.ts +0 -0
  163. /package/esm/typings/src/{types → execution}/execution-report/executionReportJsonToString.d.ts +0 -0
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ![Promptbook logo - cube with letters P and B](./other/design/logo-h1.png) Promptbook
4
4
 
5
- Build responsible, controlled and transparent applications on top of LLM models!
5
+ It's time for a paradigm shift! The future of software is in plain English, French or Latin.
6
6
 
7
7
 
8
8
 
@@ -19,6 +19,7 @@ Build responsible, controlled and transparent applications on top of LLM models!
19
19
  ## ✨ New Features
20
20
 
21
21
  - 💙 Working [the **Book** language v1.0.0](https://github.com/webgptorg/book)
22
+ - 🖤 Run books from CLI - `npx ptbk run path/to/your/book`
22
23
  - 📚 Support of `.docx`, `.doc` and `.pdf` documents
23
24
  - ✨ **Support of [OpenAI o1 model](https://openai.com/o1/)**
24
25
 
@@ -75,25 +76,24 @@ _Note: `@promptbook/types` does not export brand-specific types like `OpenAiExec
75
76
 
76
77
  Rest of the documentation is common for **entire promptbook ecosystem**:
77
78
 
78
- ## 🤍 The Promptbook Whitepaper
79
79
 
80
- If you have a simple, single prompt for ChatGPT, GPT-4, Anthropic Claude, Google Gemini, Llama 3, or whatever, it doesn't matter how you integrate it. Whether it's calling a REST API directly, using the SDK, hardcoding the prompt into the source code, or importing a text file, the process remains the same.
81
80
 
82
- But often you will struggle with the **limitations of LLMs**, such as **hallucinations, off-topic responses, poor quality output, language and prompt drift, word repetition repetition repetition repetition or misuse, lack of context, or just plain w𝒆𝐢rd resp0nses**. When this happens, you generally have three options:
83
81
 
84
- 1. **Fine-tune** the model to your specifications or even train your own.
85
- 2. **Prompt-engineer** the prompt to the best shape you can achieve.
86
- 3. Orchestrate **multiple prompts** in a [pipeline](https://github.com/webgptorg/promptbook/discussions/64) to get the best result.
82
+ ## 🤍 The Book Abstract
83
+
84
+ > It's time for a paradigm shift! **The future of software is in plain English**, French or Latin.
85
+
86
+ During the computer revolution, we have seen [multiple generations of computer languages](https://github.com/webgptorg/promptbook/discussions/180), from the physical rewiring of the vacuum tubes through low-level machine code to the high-level languages like Python or JavaScript. And now, we're on the edge of the **next revolution**!
87
+
88
+ It's a revolution of writing software in plain human language that is understandable and executable by both humans and machines – and it's going to change everything!
89
+
90
+ The incredible growth in power of microprocessors and the Moore's Law have been the driving force behind the ever-more powerful languages, and it's been an amazing journey! Similarly, the large language models (like GPT or Claude) are the next big thing in language technology, and they're set to transform the way we interact with computers.
91
+
92
+ This shift is going to happen, whether we are ready for it or not. Our mission is to make it excellently, not just good.
93
+
94
+ > **Join us in this journey!**
87
95
 
88
- In all of these situations, but especially in 3., the **✨ Promptbook can make your life waaaaaaaaaay easier**.
89
96
 
90
- - [**Separates concerns**](https://github.com/webgptorg/promptbook/discussions/32) between prompt-engineer and programmer, between code files and prompt files, and between prompts and their execution logic. For this purpose, it introduces a new language called [the **💙 Book**](https://github.com/webgptorg/book).
91
- - Book allows you to **focus on the business** logic without having to write code or deal with the technicalities of LLMs.
92
- - **Forget** about **low-level details** like choosing the right model, tokens, context size, `temperature`, `top-k`, `top-p`, or kernel sampling. **Just write your intent** and [**persona**](https://github.com/webgptorg/promptbook/discussions/22) who should be responsible for the task and let the library do the rest.
93
- - We have built-in **orchestration** of [pipeline](https://github.com/webgptorg/promptbook/discussions/64) execution and many tools to make the process easier, more reliable, and more efficient, such as caching, [compilation+preparation](https://github.com/webgptorg/promptbook/discussions/78), [just-in-time fine-tuning](https://github.com/webgptorg/promptbook/discussions/33), [expectation-aware generation](https://github.com/webgptorg/promptbook/discussions/37), [agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39), and more.
94
- - Sometimes even the best prompts with the best framework like Promptbook `:)` can't avoid the problems. In this case, the library has built-in **[anomaly detection](https://github.com/webgptorg/promptbook/discussions/40) and logging** to help you find and fix the problems.
95
- - Versioning is build in. You can test multiple **A/B versions** of pipelines and see which one works best.
96
- - Promptbook is designed to use [**RAG** (Retrieval-Augmented Generation)](https://github.com/webgptorg/promptbook/discussions/41) and other advanced techniques to bring the context of your business to generic LLM. You can use **knowledge** to improve the quality of the output.
97
97
 
98
98
 
99
99
 
@@ -205,7 +205,9 @@ Reserved words:
205
205
 
206
206
  #### Parameter notation
207
207
 
208
- ### Template
208
+ ### Task
209
+
210
+ ### Task type
209
211
 
210
212
  Todo todo
211
213
 
@@ -266,6 +268,11 @@ Or you can install them separately:
266
268
 
267
269
  ## 📚 Dictionary
268
270
 
271
+
272
+
273
+
274
+
275
+
269
276
  ### 📚 Dictionary
270
277
 
271
278
  The following glossary is used to clarify certain concepts:
@@ -281,6 +288,8 @@ The following glossary is used to clarify certain concepts:
281
288
  - **Retrieval-augmented generation** is a machine learning paradigm where a model generates text by retrieving relevant information from a large database of text. This approach combines the benefits of generative models and retrieval models.
282
289
  - **Longtail** refers to non-common or rare events, items, or entities that are not well-represented in the training data of machine learning models. Longtail items are often challenging for models to predict accurately.
283
290
 
291
+
292
+
284
293
  _Note: Thos section is not complete dictionary, more list of general AI / LLM terms that has connection with Promptbook_
285
294
 
286
295
  #### Promptbook core
@@ -317,7 +326,7 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
317
326
 
318
327
  - [📚 Collection of pipelines](https://github.com/webgptorg/promptbook/discussions/65)
319
328
  - [📯 Pipeline](https://github.com/webgptorg/promptbook/discussions/64)
320
- - [🎺 Pipeline templates](https://github.com/webgptorg/promptbook/discussions/88)
329
+ - [🙇‍♂️ Tasks and pipeline sections](https://github.com/webgptorg/promptbook/discussions/88)
321
330
  - [🤼 Personas](https://github.com/webgptorg/promptbook/discussions/22)
322
331
  - [⭕ Parameters](https://github.com/webgptorg/promptbook/discussions/83)
323
332
  - [🚀 Pipeline execution](https://github.com/webgptorg/promptbook/discussions/84)
@@ -341,6 +350,8 @@ _Note: Thos section is not complete dictionary, more list of general AI / LLM te
341
350
  - [👮 Agent adversary expectations](https://github.com/webgptorg/promptbook/discussions/39)
342
351
  - [view more](https://github.com/webgptorg/promptbook/discussions/categories/concepts)
343
352
 
353
+
354
+
344
355
  ### Terms specific to Promptbook TypeScript implementation
345
356
 
346
357
  - Anonymous mode
@@ -8,8 +8,8 @@ declare const _default: ({
8
8
  isInput: boolean;
9
9
  isOutput: boolean;
10
10
  }[];
11
- templates: {
12
- templateType: string;
11
+ tasks: {
12
+ taskType: string;
13
13
  name: string;
14
14
  title: string;
15
15
  content: string;
@@ -31,8 +31,8 @@ declare const _default: ({
31
31
  isInput: boolean;
32
32
  isOutput: boolean;
33
33
  }[];
34
- templates: {
35
- templateType: string;
34
+ tasks: {
35
+ taskType: string;
36
36
  name: string;
37
37
  title: string;
38
38
  content: string;
@@ -60,8 +60,8 @@ declare const _default: ({
60
60
  isInput: boolean;
61
61
  isOutput: boolean;
62
62
  }[];
63
- templates: {
64
- templateType: string;
63
+ tasks: {
64
+ taskType: string;
65
65
  name: string;
66
66
  title: string;
67
67
  content: string;
@@ -4,8 +4,6 @@ import { createCollectionFromJson } from '../collection/constructors/createColle
4
4
  import { createCollectionFromPromise } from '../collection/constructors/createCollectionFromPromise';
5
5
  import { createCollectionFromUrl } from '../collection/constructors/createCollectionFromUrl';
6
6
  import { createSubcollection } from '../collection/constructors/createSubcollection';
7
- import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
8
- import { TemplateTypes } from '../commands/TEMPLATE/TemplateTypes';
9
7
  import { CLAIM } from '../config';
10
8
  import { DEFAULT_TITLE } from '../config';
11
9
  import { MAX_FILENAME_LENGTH } from '../config';
@@ -14,6 +12,7 @@ import { DEFAULT_MAX_PARALLEL_COUNT } from '../config';
14
12
  import { DEFAULT_MAX_EXECUTION_ATTEMPTS } from '../config';
15
13
  import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH } from '../config';
16
14
  import { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL } from '../config';
15
+ import { DEFAULT_BOOKS_DIRNAME } from '../config';
17
16
  import { DEFAULT_EXECUTIONS_CACHE_DIRNAME } from '../config';
18
17
  import { DEFAULT_SCRAPE_CACHE_DIRNAME } from '../config';
19
18
  import { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME } from '../config';
@@ -49,6 +48,9 @@ import { UnexpectedError } from '../errors/UnexpectedError';
49
48
  import { assertsExecutionSuccessful } from '../execution/assertsExecutionSuccessful';
50
49
  import { createPipelineExecutor } from '../execution/createPipelineExecutor/00-createPipelineExecutor';
51
50
  import { embeddingVectorToString } from '../execution/embeddingVectorToString';
51
+ import { executionReportJsonToString } from '../execution/execution-report/executionReportJsonToString';
52
+ import type { ExecutionReportStringOptions } from '../execution/execution-report/ExecutionReportStringOptions';
53
+ import { ExecutionReportStringOptionsDefaults } from '../execution/execution-report/ExecutionReportStringOptions';
52
54
  import { addUsage } from '../execution/utils/addUsage';
53
55
  import { isPassingExpectations } from '../execution/utils/checkExpectations';
54
56
  import { ZERO_USAGE } from '../execution/utils/usage-constants';
@@ -60,9 +62,11 @@ import { CsvFormatError } from '../formats/csv/CsvFormatError';
60
62
  import { MANDATORY_CSV_SETTINGS } from '../formats/csv/CsvSettings';
61
63
  import { TextFormatDefinition } from '../formats/text/TextFormatDefinition';
62
64
  import { BoilerplateFormfactorDefinition } from '../formfactors/_boilerplate/BoilerplateFormfactorDefinition';
63
- import { ChatFormfactorDefinition } from '../formfactors/chat/ChatFormfactorDefinition';
65
+ import { ChatbotFormfactorDefinition } from '../formfactors/chatbot/ChatbotFormfactorDefinition';
66
+ import { GeneratorFormfactorDefinition } from '../formfactors/generator/GeneratorFormfactorDefinition';
64
67
  import { GenericFormfactorDefinition } from '../formfactors/generic/GenericFormfactorDefinition';
65
68
  import { FORMFACTOR_DEFINITIONS } from '../formfactors/index';
69
+ import { MatcherFormfactorDefinition } from '../formfactors/matcher/MatcherFormfactorDefinition';
66
70
  import { SheetsFormfactorDefinition } from '../formfactors/sheets/SheetsFormfactorDefinition';
67
71
  import { TranslatorFormfactorDefinition } from '../formfactors/translator/TranslatorFormfactorDefinition';
68
72
  import { $llmToolsMetadataRegister } from '../llm-providers/_common/register/$llmToolsMetadataRegister';
@@ -78,13 +82,14 @@ import { MultipleLlmExecutionTools } from '../llm-providers/multiple/MultipleLlm
78
82
  import { _OpenAiMetadataRegistration } from '../llm-providers/openai/register-configuration';
79
83
  import { _OpenAiAssistantMetadataRegistration } from '../llm-providers/openai/register-configuration';
80
84
  import { preparePersona } from '../personas/preparePersona';
81
- import { GENERIC_PIPELINE_INTERFACE } from '../pipeline/pipeline-interface/constants';
82
- import { getPipelineInterface } from '../pipeline/pipeline-interface/getPipelineInterface';
83
- import { isPipelineImplementingInterface } from '../pipeline/pipeline-interface/isPipelineImplementingInterface';
84
- import { isPipelineInterfacesEqual } from '../pipeline/pipeline-interface/isPipelineInterfacesEqual';
85
+ import { GENERIC_PIPELINE_INTERFACE } from '../pipeline/PipelineInterface/constants';
86
+ import { getPipelineInterface } from '../pipeline/PipelineInterface/getPipelineInterface';
87
+ import { isPipelineImplementingInterface } from '../pipeline/PipelineInterface/isPipelineImplementingInterface';
88
+ import { isPipelineInterfacesEqual } from '../pipeline/PipelineInterface/isPipelineInterfacesEqual';
89
+ import { EXPECTATION_UNITS } from '../pipeline/PipelineJson/Expectations';
85
90
  import { isPipelinePrepared } from '../prepare/isPipelinePrepared';
86
91
  import { preparePipeline } from '../prepare/preparePipeline';
87
- import { prepareTemplates } from '../prepare/prepareTemplates';
92
+ import { prepareTasks } from '../prepare/prepareTasks';
88
93
  import { unpreparePipeline } from '../prepare/unpreparePipeline';
89
94
  import { prepareKnowledgePieces } from '../scrapers/_common/prepareKnowledgePieces';
90
95
  import { $scrapersMetadataRegister } from '../scrapers/_common/register/$scrapersMetadataRegister';
@@ -98,19 +103,16 @@ import { _WebsiteScraperMetadataRegistration } from '../scrapers/website/registe
98
103
  import { BlackholeStorage } from '../storage/blackhole/BlackholeStorage';
99
104
  import { MemoryStorage } from '../storage/memory/MemoryStorage';
100
105
  import { PrefixStorage } from '../storage/utils/PrefixStorage';
101
- import { executionReportJsonToString } from '../types/execution-report/executionReportJsonToString';
102
- import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
103
- import { ExecutionReportStringOptionsDefaults } from '../types/execution-report/ExecutionReportStringOptions';
104
106
  import { MODEL_VARIANTS } from '../types/ModelVariant';
105
- import { EXPECTATION_UNITS } from '../types/PipelineJson/Expectations';
107
+ import { NonTaskSectionTypes } from '../types/SectionType';
108
+ import { SectionTypes } from '../types/SectionType';
109
+ import { TaskTypes } from '../types/TaskType';
106
110
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
107
111
  export { collectionToJson };
108
112
  export { createCollectionFromJson };
109
113
  export { createCollectionFromPromise };
110
114
  export { createCollectionFromUrl };
111
115
  export { createSubcollection };
112
- export type { TemplateType };
113
- export { TemplateTypes };
114
116
  export { CLAIM };
115
117
  export { DEFAULT_TITLE };
116
118
  export { MAX_FILENAME_LENGTH };
@@ -119,6 +121,7 @@ export { DEFAULT_MAX_PARALLEL_COUNT };
119
121
  export { DEFAULT_MAX_EXECUTION_ATTEMPTS };
120
122
  export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_DEPTH };
121
123
  export { DEFAULT_MAX_KNOWLEDGE_SOURCES_SCRAPING_TOTAL };
124
+ export { DEFAULT_BOOKS_DIRNAME };
122
125
  export { DEFAULT_EXECUTIONS_CACHE_DIRNAME };
123
126
  export { DEFAULT_SCRAPE_CACHE_DIRNAME };
124
127
  export { DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME };
@@ -154,6 +157,9 @@ export { UnexpectedError };
154
157
  export { assertsExecutionSuccessful };
155
158
  export { createPipelineExecutor };
156
159
  export { embeddingVectorToString };
160
+ export { executionReportJsonToString };
161
+ export type { ExecutionReportStringOptions };
162
+ export { ExecutionReportStringOptionsDefaults };
157
163
  export { addUsage };
158
164
  export { isPassingExpectations };
159
165
  export { ZERO_USAGE };
@@ -165,9 +171,11 @@ export { CsvFormatError };
165
171
  export { MANDATORY_CSV_SETTINGS };
166
172
  export { TextFormatDefinition };
167
173
  export { BoilerplateFormfactorDefinition };
168
- export { ChatFormfactorDefinition };
174
+ export { ChatbotFormfactorDefinition };
175
+ export { GeneratorFormfactorDefinition };
169
176
  export { GenericFormfactorDefinition };
170
177
  export { FORMFACTOR_DEFINITIONS };
178
+ export { MatcherFormfactorDefinition };
171
179
  export { SheetsFormfactorDefinition };
172
180
  export { TranslatorFormfactorDefinition };
173
181
  export { $llmToolsMetadataRegister };
@@ -187,9 +195,10 @@ export { GENERIC_PIPELINE_INTERFACE };
187
195
  export { getPipelineInterface };
188
196
  export { isPipelineImplementingInterface };
189
197
  export { isPipelineInterfacesEqual };
198
+ export { EXPECTATION_UNITS };
190
199
  export { isPipelinePrepared };
191
200
  export { preparePipeline };
192
- export { prepareTemplates };
201
+ export { prepareTasks };
193
202
  export { unpreparePipeline };
194
203
  export { prepareKnowledgePieces };
195
204
  export { $scrapersMetadataRegister };
@@ -203,8 +212,7 @@ export { _WebsiteScraperMetadataRegistration };
203
212
  export { BlackholeStorage };
204
213
  export { MemoryStorage };
205
214
  export { PrefixStorage };
206
- export { executionReportJsonToString };
207
- export type { ExecutionReportStringOptions };
208
- export { ExecutionReportStringOptionsDefaults };
209
215
  export { MODEL_VARIANTS };
210
- export { EXPECTATION_UNITS };
216
+ export { NonTaskSectionTypes };
217
+ export { SectionTypes };
218
+ export { TaskTypes };
@@ -3,13 +3,12 @@ import type { Command } from '../commands/_common/types/Command';
3
3
  import type { CommandParser } from '../commands/_common/types/CommandParser';
4
4
  import type { PipelineBothCommandParser } from '../commands/_common/types/CommandParser';
5
5
  import type { PipelineHeadCommandParser } from '../commands/_common/types/CommandParser';
6
- import type { PipelineTemplateCommandParser } from '../commands/_common/types/CommandParser';
6
+ import type { PipelineTaskCommandParser } from '../commands/_common/types/CommandParser';
7
7
  import type { CommandParserInput } from '../commands/_common/types/CommandParser';
8
8
  import type { CommandUsagePlace } from '../commands/_common/types/CommandUsagePlaces';
9
9
  import type { ExpectCommand } from '../commands/EXPECT/ExpectCommand';
10
10
  import type { ForeachJson } from '../commands/FOREACH/ForeachJson';
11
11
  import type { FormatCommand } from '../commands/FORMAT/FormatCommand';
12
- import type { TemplateType } from '../commands/TEMPLATE/TemplateTypes';
13
12
  import type { PrettifyOptions } from '../conversion/prettify/PrettifyOptions';
14
13
  import type { renderPipelineMermaidOptions } from '../conversion/prettify/renderPipelineMermaidOptions';
15
14
  import type { CallbackInterfaceToolsOptions } from '../dialogs/callback/CallbackInterfaceToolsOptions';
@@ -20,6 +19,10 @@ import type { CommonToolsOptions } from '../execution/CommonToolsOptions';
20
19
  import type { CreatePipelineExecutorOptions } from '../execution/createPipelineExecutor/00-CreatePipelineExecutorOptions';
21
20
  import type { EmbeddingVector } from '../execution/EmbeddingVector';
22
21
  import type { Executables } from '../execution/Executables';
22
+ import type { ExecutionPromptReportJson } from '../execution/execution-report/ExecutionPromptReportJson';
23
+ import type { ExecutionReportJson } from '../execution/execution-report/ExecutionReportJson';
24
+ import type { ExecutionReportString } from '../execution/execution-report/ExecutionReportString';
25
+ import type { ExecutionReportStringOptions } from '../execution/execution-report/ExecutionReportStringOptions';
23
26
  import type { ExecutionTools } from '../execution/ExecutionTools';
24
27
  import type { FilesystemTools } from '../execution/FilesystemTools';
25
28
  import type { LlmExecutionTools } from '../execution/LlmExecutionTools';
@@ -70,8 +73,30 @@ import type { RemoteServerOptions } from '../llm-providers/remote/interfaces/Rem
70
73
  import type { AnonymousRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
71
74
  import type { CollectionRemoteServerOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
72
75
  import type { CollectionRemoteServerClientOptions } from '../llm-providers/remote/interfaces/RemoteServerOptions';
73
- import type { IsPipelineImplementingInterfaceOptions } from '../pipeline/pipeline-interface/isPipelineImplementingInterface';
74
- import type { PipelineInterface } from '../pipeline/pipeline-interface/PipelineInterface';
76
+ import type { IsPipelineImplementingInterfaceOptions } from '../pipeline/PipelineInterface/isPipelineImplementingInterface';
77
+ import type { PipelineInterface } from '../pipeline/PipelineInterface/PipelineInterface';
78
+ import type { CommonTaskJson } from '../pipeline/PipelineJson/CommonTaskJson';
79
+ import type { DialogTaskJson } from '../pipeline/PipelineJson/DialogTaskJson';
80
+ import type { Expectations } from '../pipeline/PipelineJson/Expectations';
81
+ import type { ExpectationUnit } from '../pipeline/PipelineJson/Expectations';
82
+ import type { ExpectationAmount } from '../pipeline/PipelineJson/Expectations';
83
+ import type { KnowledgePiecePreparedJson } from '../pipeline/PipelineJson/KnowledgePieceJson';
84
+ import type { KnowledgeSourceJson } from '../pipeline/PipelineJson/KnowledgeSourceJson';
85
+ import type { KnowledgeSourcePreparedJson } from '../pipeline/PipelineJson/KnowledgeSourceJson';
86
+ import type { ParameterJson } from '../pipeline/PipelineJson/ParameterJson';
87
+ import type { InputParameterJson } from '../pipeline/PipelineJson/ParameterJson';
88
+ import type { IntermediateParameterJson } from '../pipeline/PipelineJson/ParameterJson';
89
+ import type { OutputParameterJson } from '../pipeline/PipelineJson/ParameterJson';
90
+ import type { CommonParameterJson } from '../pipeline/PipelineJson/ParameterJson';
91
+ import type { PersonaJson } from '../pipeline/PipelineJson/PersonaJson';
92
+ import type { PersonaPreparedJson } from '../pipeline/PipelineJson/PersonaJson';
93
+ import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
94
+ import type { PreparationJson } from '../pipeline/PipelineJson/PreparationJson';
95
+ import type { PromptTaskJson } from '../pipeline/PipelineJson/PromptTaskJson';
96
+ import type { ScriptTaskJson } from '../pipeline/PipelineJson/ScriptTaskJson';
97
+ import type { SimpleTaskJson } from '../pipeline/PipelineJson/SimpleTaskJson';
98
+ import type { TaskJson } from '../pipeline/PipelineJson/TaskJson';
99
+ import type { PipelineString } from '../pipeline/PipelineString';
75
100
  import type { PrepareAndScrapeOptions } from '../prepare/PrepareAndScrapeOptions';
76
101
  import type { Converter } from '../scrapers/_common/Converter';
77
102
  import type { ScraperAndConverterMetadata } from '../scrapers/_common/register/ScraperAndConverterMetadata';
@@ -83,40 +108,20 @@ import type { JavascriptExecutionToolsOptions } from '../scripting/javascript/Ja
83
108
  import type { PostprocessingFunction } from '../scripting/javascript/JavascriptExecutionToolsOptions';
84
109
  import type { PromptbookStorage } from '../storage/_common/PromptbookStorage';
85
110
  import type { FileCacheStorageOptions } from '../storage/file-cache-storage/FileCacheStorageOptions';
86
- import type { ExecutionPromptReportJson } from '../types/execution-report/ExecutionPromptReportJson';
87
- import type { ExecutionReportJson } from '../types/execution-report/ExecutionReportJson';
88
- import type { ExecutionReportString } from '../types/execution-report/ExecutionReportString';
89
- import type { ExecutionReportStringOptions } from '../types/execution-report/ExecutionReportStringOptions';
90
111
  import type { IntermediateFilesStrategy } from '../types/IntermediateFilesStrategy';
91
112
  import type { ModelRequirements } from '../types/ModelRequirements';
92
113
  import type { CompletionModelRequirements } from '../types/ModelRequirements';
93
114
  import type { ChatModelRequirements } from '../types/ModelRequirements';
94
115
  import type { EmbeddingModelRequirements } from '../types/ModelRequirements';
95
116
  import type { ModelVariant } from '../types/ModelVariant';
96
- import type { DialogTemplateJson } from '../types/PipelineJson/DialogTemplateJson';
97
- import type { Expectations } from '../types/PipelineJson/Expectations';
98
- import type { ExpectationUnit } from '../types/PipelineJson/Expectations';
99
- import type { ExpectationAmount } from '../types/PipelineJson/Expectations';
100
- import type { KnowledgePiecePreparedJson } from '../types/PipelineJson/KnowledgePieceJson';
101
- import type { KnowledgeSourceJson } from '../types/PipelineJson/KnowledgeSourceJson';
102
- import type { KnowledgeSourcePreparedJson } from '../types/PipelineJson/KnowledgeSourceJson';
103
- import type { ParameterJson } from '../types/PipelineJson/ParameterJson';
104
- import type { PersonaJson } from '../types/PipelineJson/PersonaJson';
105
- import type { PersonaPreparedJson } from '../types/PipelineJson/PersonaJson';
106
- import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
107
- import type { PreparationJson } from '../types/PipelineJson/PreparationJson';
108
- import type { PromptTemplateJson } from '../types/PipelineJson/PromptTemplateJson';
109
- import type { ScriptTemplateJson } from '../types/PipelineJson/ScriptTemplateJson';
110
- import type { SimpleTemplateJson } from '../types/PipelineJson/SimpleTemplateJson';
111
- import type { TemplateJson } from '../types/PipelineJson/TemplateJson';
112
- import type { TemplateJsonCommon } from '../types/PipelineJson/TemplateJsonCommon';
113
- import type { PipelineString } from '../types/PipelineString';
114
117
  import type { Prompt } from '../types/Prompt';
115
118
  import type { CompletionPrompt } from '../types/Prompt';
116
119
  import type { ChatPrompt } from '../types/Prompt';
117
120
  import type { EmbeddingPrompt } from '../types/Prompt';
118
121
  import type { ScriptLanguage } from '../types/ScriptLanguage';
122
+ import type { SectionType } from '../types/SectionType';
119
123
  import type { TaskProgress } from '../types/TaskProgress';
124
+ import type { TaskType } from '../types/TaskType';
120
125
  import type { string_char_emoji } from '../types/typeAliasEmoji';
121
126
  import type { string_business_category_name } from '../types/typeAliases';
122
127
  import type { string_model_name } from '../types/typeAliases';
@@ -161,7 +166,7 @@ import type { string_css_selector } from '../types/typeAliases';
161
166
  import type { string_url } from '../types/typeAliases';
162
167
  import type { string_base_url } from '../types/typeAliases';
163
168
  import type { string_pipeline_url } from '../types/typeAliases';
164
- import type { string_pipeline_url_with_hashtemplate } from '../types/typeAliases';
169
+ import type { string_pipeline_url_with_task_hash } from '../types/typeAliases';
165
170
  import type { string_data_url } from '../types/typeAliases';
166
171
  import type { string_base64 } from '../types/typeAliases';
167
172
  import type { string_href } from '../types/typeAliases';
@@ -252,13 +257,12 @@ export type { Command };
252
257
  export type { CommandParser };
253
258
  export type { PipelineBothCommandParser };
254
259
  export type { PipelineHeadCommandParser };
255
- export type { PipelineTemplateCommandParser };
260
+ export type { PipelineTaskCommandParser };
256
261
  export type { CommandParserInput };
257
262
  export type { CommandUsagePlace };
258
263
  export type { ExpectCommand };
259
264
  export type { ForeachJson };
260
265
  export type { FormatCommand };
261
- export type { TemplateType };
262
266
  export type { PrettifyOptions };
263
267
  export type { renderPipelineMermaidOptions };
264
268
  export type { CallbackInterfaceToolsOptions };
@@ -269,6 +273,10 @@ export type { CommonToolsOptions };
269
273
  export type { CreatePipelineExecutorOptions };
270
274
  export type { EmbeddingVector };
271
275
  export type { Executables };
276
+ export type { ExecutionPromptReportJson };
277
+ export type { ExecutionReportJson };
278
+ export type { ExecutionReportString };
279
+ export type { ExecutionReportStringOptions };
272
280
  export type { ExecutionTools };
273
281
  export type { FilesystemTools };
274
282
  export type { LlmExecutionTools };
@@ -321,6 +329,28 @@ export type { CollectionRemoteServerOptions };
321
329
  export type { CollectionRemoteServerClientOptions };
322
330
  export type { IsPipelineImplementingInterfaceOptions };
323
331
  export type { PipelineInterface };
332
+ export type { CommonTaskJson };
333
+ export type { DialogTaskJson };
334
+ export type { Expectations };
335
+ export type { ExpectationUnit };
336
+ export type { ExpectationAmount };
337
+ export type { KnowledgePiecePreparedJson };
338
+ export type { KnowledgeSourceJson };
339
+ export type { KnowledgeSourcePreparedJson };
340
+ export type { ParameterJson };
341
+ export type { InputParameterJson };
342
+ export type { IntermediateParameterJson };
343
+ export type { OutputParameterJson };
344
+ export type { CommonParameterJson };
345
+ export type { PersonaJson };
346
+ export type { PersonaPreparedJson };
347
+ export type { PipelineJson };
348
+ export type { PreparationJson };
349
+ export type { PromptTaskJson };
350
+ export type { ScriptTaskJson };
351
+ export type { SimpleTaskJson };
352
+ export type { TaskJson };
353
+ export type { PipelineString };
324
354
  export type { PrepareAndScrapeOptions };
325
355
  export type { Converter };
326
356
  export type { ScraperAndConverterMetadata };
@@ -332,40 +362,20 @@ export type { JavascriptExecutionToolsOptions };
332
362
  export type { PostprocessingFunction };
333
363
  export type { PromptbookStorage };
334
364
  export type { FileCacheStorageOptions };
335
- export type { ExecutionPromptReportJson };
336
- export type { ExecutionReportJson };
337
- export type { ExecutionReportString };
338
- export type { ExecutionReportStringOptions };
339
365
  export type { IntermediateFilesStrategy };
340
366
  export type { ModelRequirements };
341
367
  export type { CompletionModelRequirements };
342
368
  export type { ChatModelRequirements };
343
369
  export type { EmbeddingModelRequirements };
344
370
  export type { ModelVariant };
345
- export type { DialogTemplateJson };
346
- export type { Expectations };
347
- export type { ExpectationUnit };
348
- export type { ExpectationAmount };
349
- export type { KnowledgePiecePreparedJson };
350
- export type { KnowledgeSourceJson };
351
- export type { KnowledgeSourcePreparedJson };
352
- export type { ParameterJson };
353
- export type { PersonaJson };
354
- export type { PersonaPreparedJson };
355
- export type { PipelineJson };
356
- export type { PreparationJson };
357
- export type { PromptTemplateJson };
358
- export type { ScriptTemplateJson };
359
- export type { SimpleTemplateJson };
360
- export type { TemplateJson };
361
- export type { TemplateJsonCommon };
362
- export type { PipelineString };
363
371
  export type { Prompt };
364
372
  export type { CompletionPrompt };
365
373
  export type { ChatPrompt };
366
374
  export type { EmbeddingPrompt };
367
375
  export type { ScriptLanguage };
376
+ export type { SectionType };
368
377
  export type { TaskProgress };
378
+ export type { TaskType };
369
379
  export type { string_char_emoji };
370
380
  export type { string_business_category_name };
371
381
  export type { string_model_name };
@@ -410,7 +420,7 @@ export type { string_css_selector };
410
420
  export type { string_url };
411
421
  export type { string_base_url };
412
422
  export type { string_pipeline_url };
413
- export type { string_pipeline_url_with_hashtemplate };
423
+ export type { string_pipeline_url_with_task_hash };
414
424
  export type { string_data_url };
415
425
  export type { string_base64 };
416
426
  export type { string_href };
@@ -1,6 +1,6 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
2
  import { renderPromptbookMermaid } from '../conversion/prettify/renderPipelineMermaidOptions';
3
- import { extractParameterNamesFromTemplate } from '../conversion/utils/extractParameterNamesFromTemplate';
3
+ import { extractParameterNamesFromTask } from '../conversion/utils/extractParameterNamesFromTask';
4
4
  import { extractVariables } from '../conversion/utils/extractVariables';
5
5
  import { renameParameter } from '../conversion/utils/renameParameter';
6
6
  import { titleToName } from '../conversion/utils/titleToName';
@@ -73,7 +73,7 @@ import { isValidUrl } from '../utils/validators/url/isValidUrl';
73
73
  import { isValidUuid } from '../utils/validators/uuid/isValidUuid';
74
74
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
75
75
  export { renderPromptbookMermaid };
76
- export { extractParameterNamesFromTemplate };
76
+ export { extractParameterNamesFromTask };
77
77
  export { extractVariables };
78
78
  export { renameParameter };
79
79
  export { titleToName };
@@ -7,5 +7,6 @@ import type { Command as Program } from 'commander';
7
7
  export declare function initializeAboutCommand(program: Program): void;
8
8
  /**
9
9
  * TODO: [🗽] Unite branding and make single place for it
10
+ * Note: [💞] Ignore a discrepancy between file name and entity name
10
11
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
12
  */
@@ -7,5 +7,6 @@ import type { Command as Program } from 'commander';
7
7
  export declare function initializeHelloCommand(program: Program): void;
8
8
  /**
9
9
  * TODO: [🧠][🐣] Make here some easter egg with generated hello greeting via LLM models
10
+ * Note: [💞] Ignore a discrepancy between file name and entity name
10
11
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
12
  */
@@ -8,6 +8,7 @@ export declare function initializeMakeCommand(program: Program): void;
8
8
  /**
9
9
  * TODO: [🥃][main] !!! Allow `ptbk make` without configuring any llm tools
10
10
  * TODO: [0] DRY Javascript and typescript - Maybe make ONLY typescript and for javascript just remove types
11
+ * Note: [💞] Ignore a discrepancy between file name and entity name
11
12
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
12
13
  * TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
13
14
  */
@@ -7,6 +7,7 @@ import type { Command as Program } from 'commander';
7
7
  export declare function initializePrettifyCommand(program: Program): void;
8
8
  /**
9
9
  * TODO: [😶] Unite floder listing
10
+ * Note: [💞] Ignore a discrepancy between file name and entity name
10
11
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
12
  * TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
12
13
  */
@@ -9,6 +9,7 @@ export declare function initializeRunCommand(program: Program): void;
9
9
  * TODO: !!!!! Catch and wrap all errors from CLI
10
10
  * TODO: [🧠] Pass `maxExecutionAttempts`, `csvSettings`
11
11
  * TODO: [🥃][main] !!! Allow `ptbk run` without configuring any llm tools
12
+ * Note: [💞] Ignore a discrepancy between file name and entity name
12
13
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
13
14
  * TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
14
15
  */
@@ -7,6 +7,7 @@ import type { Command as Program } from 'commander';
7
7
  export declare function initializeTestCommand(program: Program): void;
8
8
  /**
9
9
  * TODO: [😶] Unite floder listing
10
+ * Note: [💞] Ignore a discrepancy between file name and entity name
10
11
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
11
12
  * TODO: [🖇] What about symlinks? Maybe flag --follow-symlinks
12
13
  * Note: This is named "test-command.ts" to avoid name collision with jest unit test files
@@ -11,5 +11,6 @@ export declare const _CLI: {
11
11
  _initialize_promptbookCli: typeof promptbookCli;
12
12
  };
13
13
  /**
14
+ * Note: [💞] Ignore a discrepancy between file name and entity name
14
15
  * Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
15
16
  */
@@ -1,5 +1,5 @@
1
1
  import type { Promisable } from 'type-fest';
2
- import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
2
+ import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
3
3
  import type { Prompt } from '../types/Prompt';
4
4
  import type { string_pipeline_url } from '../types/typeAliases';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
1
+ import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
2
2
  import type { Prompt } from '../types/Prompt';
3
3
  import type { string_pipeline_url } from '../types/typeAliases';
4
4
  import type { PipelineCollection } from './PipelineCollection';
@@ -1,4 +1,4 @@
1
- import type { PipelineJson } from '../types/PipelineJson/PipelineJson';
1
+ import type { PipelineJson } from '../pipeline/PipelineJson/PipelineJson';
2
2
  import type { PipelineCollection } from './PipelineCollection';
3
3
  /**
4
4
  * Converts PipelineCollection to serialized JSON
@@ -1,4 +1,4 @@
1
- import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
1
+ import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
2
2
  import type { PipelineCollection } from '../PipelineCollection';
3
3
  /**
4
4
  * Creates PipelineCollection from array of PipelineJson or PipelineString
@@ -1,4 +1,4 @@
1
- import type { PipelineJson } from '../../types/PipelineJson/PipelineJson';
1
+ import type { PipelineJson } from '../../pipeline/PipelineJson/PipelineJson';
2
2
  import type { PipelineCollection } from '../PipelineCollection';
3
3
  /**
4
4
  * Constructs Promptbook from async sources
@@ -1,7 +1,7 @@
1
- import type { ExpectationAmount } from '../../types/PipelineJson/Expectations';
2
- import type { ExpectationUnit } from '../../types/PipelineJson/Expectations';
1
+ import type { ExpectationAmount } from '../../pipeline/PipelineJson/Expectations';
2
+ import type { ExpectationUnit } from '../../pipeline/PipelineJson/Expectations';
3
3
  /**
4
- * Expect amount command describes the desired output of the template (after post-processing)
4
+ * Expect amount command describes the desired output of the task (after post-processing)
5
5
  * It can set limits for the maximum/minimum length of the output, measured in characters, words, sentences, paragraphs,...
6
6
  *
7
7
  * Note: LLMs work with tokens, not characters, but in Promptbooks we want to use some human-recognisable and cross-model interoperable units.
@@ -1,4 +1,4 @@
1
- import type { PipelineTemplateCommandParser } from '../_common/types/CommandParser';
1
+ import type { PipelineTaskCommandParser } from '../_common/types/CommandParser';
2
2
  import type { ExpectCommand } from './ExpectCommand';
3
3
  /**
4
4
  * Parses the expect command
@@ -6,4 +6,4 @@ import type { ExpectCommand } from './ExpectCommand';
6
6
  * @see `documentationUrl` for more details
7
7
  * @private within the commands folder
8
8
  */
9
- export declare const expectCommandParser: PipelineTemplateCommandParser<ExpectCommand>;
9
+ export declare const expectCommandParser: PipelineTaskCommandParser<ExpectCommand>;