@promptbook/cli 0.69.0-10 → 0.69.0-12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -149,7 +149,6 @@ File `write-website-content.ptbk.md`:
149
149
  > Instructions for creating web page content.
150
150
  >
151
151
  > - PIPELINE URL https://promptbook.studio/webgpt/write-website-content.ptbk.md
152
- > - PROMPTBOOK VERSION 0.0.1
153
152
  > - INPUT  PARAM `{rawTitle}` Automatically suggested a site name or empty text
154
153
  > - INPUT  PARAM `{rawAssigment}` Automatically generated site entry from image recognition
155
154
  > - OUTPUT PARAM `{websiteContent}` Web content
package/esm/index.es.js CHANGED
@@ -21,7 +21,7 @@ import OpenAI from 'openai';
21
21
  /**
22
22
  * The version of the Promptbook library
23
23
  */
24
- var PROMPTBOOK_VERSION = '0.69.0-9';
24
+ var PROMPTBOOK_VERSION = '0.69.0-11';
25
25
  // TODO: !!!! List here all the versions and annotate + put into script
26
26
 
27
27
  /*! *****************************************************************************
@@ -503,6 +503,19 @@ var DEFAULT_REMOTE_URL = 'https://api.pavolhejny.com/';
503
503
  */
504
504
  var DEFAULT_REMOTE_URL_PATH = '/promptbook/socket.io';
505
505
  // <- TODO: [🧜‍♂️]
506
+ /**
507
+ * @@@
508
+ *
509
+ * @public exported from `@promptbook/core`
510
+ */
511
+ var DEFAULT_CSV_SETTINGS = {
512
+ header: true,
513
+ delimiter: ',',
514
+ quoteChar: '"',
515
+ newline: '\n',
516
+ skipEmptyLines: true,
517
+ // encoding: 'utf8'
518
+ };
506
519
  /**
507
520
  * @@@
508
521
  *
@@ -1051,7 +1064,7 @@ function forEachAsync(array, options, callbackfunction) {
1051
1064
  });
1052
1065
  }
1053
1066
 
1054
- var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.69.0-9",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",resultingParameterName:"knowledgePieces",dependentParameterNames:["knowledgeContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.69.0-9",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",resultingParameterName:"keywords",dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.69.0-9",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",resultingParameterName:"title",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.ptbk.md",promptbookVersion:"0.69.0-9",parameters:[{name:"availableModelNames",description:"List of available model names separated by comma (,)",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"make-model-requirements",title:"Make modelRequirements",content:"You are experienced AI engineer, you need to create virtual assistant.\nWrite\n\n## Sample\n\n```json\n{\n\"modelName\": \"gpt-4o\",\n\"systemMessage\": \"You are experienced AI engineer and helpfull assistant.\",\n\"temperature\": 0.7\n}\n```\n\n## Instructions\n\n- Your output format is JSON object\n- Write just the JSON object, no other text should be present\n- It contains the following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nPick from the following models:\n\n- {availableModelNames}\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",resultingParameterName:"modelRequirements",format:"JSON",dependentParameterNames:["availableModelNames","personaDescription"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-persona.ptbk.md"}];
1067
+ var PipelineCollection = [{title:"Prepare Knowledge from Markdown",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-from-markdown.ptbk.md",promptbookVersion:"0.69.0-11",parameters:[{name:"knowledgeContent",description:"Markdown document content",isInput:true,isOutput:false},{name:"knowledgePieces",description:"The knowledge JSON object",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, extract the important knowledge from the document.\n\n# Rules\n\n- Make pieces of information concise, clear, and easy to understand\n- One piece of information should be approximately 1 paragraph\n- Divide the paragraphs by markdown horizontal lines ---\n- Omit irrelevant information\n- Group redundant information\n- Write just extracted information, nothing else\n\n# The document\n\nTake information from this document:\n\n> {knowledgeContent}",resultingParameterName:"knowledgePieces",dependentParameterNames:["knowledgeContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-from-markdown.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-keywords.ptbk.md",promptbookVersion:"0.69.0-11",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"keywords",description:"Keywords separated by comma",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced data researcher, detect the important keywords in the document.\n\n# Rules\n\n- Write just keywords separated by comma\n\n# The document\n\nTake information from this document:\n\n> {knowledgePieceContent}",resultingParameterName:"keywords",dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-keywords.ptbk.md"},{title:"Prepare Title",pipelineUrl:"https://promptbook.studio/promptbook/prepare-knowledge-title.ptbk.md",promptbookVersion:"0.69.0-11",parameters:[{name:"knowledgePieceContent",description:"The content",isInput:true,isOutput:false},{name:"title",description:"The title of the document",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"knowledge",title:"Knowledge",content:"You are experienced content creator, write best title for the document.\n\n# Rules\n\n- Write just title, nothing else\n- Title should be concise and clear\n- Write maximum 5 words for the title\n\n# The document\n\n> {knowledgePieceContent}",resultingParameterName:"title",expectations:{words:{min:1,max:8}},dependentParameterNames:["knowledgePieceContent"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-knowledge-title.ptbk.md"},{title:"Prepare Keywords",pipelineUrl:"https://promptbook.studio/promptbook/prepare-persona.ptbk.md",promptbookVersion:"0.69.0-11",parameters:[{name:"availableModelNames",description:"List of available model names separated by comma (,)",isInput:true,isOutput:false},{name:"personaDescription",description:"Description of the persona",isInput:true,isOutput:false},{name:"modelRequirements",description:"Specific requirements for the model",isInput:false,isOutput:true}],templates:[{templateType:"PROMPT_TEMPLATE",name:"make-model-requirements",title:"Make modelRequirements",content:"You are experienced AI engineer, you need to create virtual assistant.\nWrite\n\n## Sample\n\n```json\n{\n\"modelName\": \"gpt-4o\",\n\"systemMessage\": \"You are experienced AI engineer and helpfull assistant.\",\n\"temperature\": 0.7\n}\n```\n\n## Instructions\n\n- Your output format is JSON object\n- Write just the JSON object, no other text should be present\n- It contains the following keys:\n - `modelName`: The name of the model to use\n - `systemMessage`: The system message to provide context to the model\n - `temperature`: The sampling temperature to use\n\n### Key `modelName`\n\nPick from the following models:\n\n- {availableModelNames}\n\n### Key `systemMessage`\n\nThe system message is used to communicate instructions or provide context to the model at the beginning of a conversation. It is displayed in a different format compared to user messages, helping the model understand its role in the conversation. The system message typically guides the model's behavior, sets the tone, or specifies desired output from the model. By utilizing the system message effectively, users can steer the model towards generating more accurate and relevant responses.\n\nFor example:\n\n> You are an experienced AI engineer and helpful assistant.\n\n> You are a friendly and knowledgeable chatbot.\n\n### Key `temperature`\n\nThe sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.\n\nYou can pick a value between 0 and 2. For example:\n\n- `0.1`: Low temperature, extremely conservative and deterministic\n- `0.5`: Medium temperature, balanced between conservative and creative\n- `1.0`: High temperature, creative and bit random\n- `1.5`: Very high temperature, extremely creative and often chaotic and unpredictable\n- `2.0`: Maximum temperature, completely random and unpredictable, for some extreme creative use cases\n\n# The assistant\n\nTake this description of the persona:\n\n> {personaDescription}",resultingParameterName:"modelRequirements",format:"JSON",dependentParameterNames:["availableModelNames","personaDescription"]}],knowledgeSources:[],knowledgePieces:[],personas:[],preparations:[],sourceFile:"./promptbook-collection/prepare-persona.ptbk.md"}];
1055
1068
 
1056
1069
  /**
1057
1070
  * This error indicates that the promptbook in a markdown format cannot be parsed into a valid promptbook object
@@ -2791,57 +2804,61 @@ function TODO_USE() {
2791
2804
  var CsvFormatDefinition = {
2792
2805
  formatName: 'CSV',
2793
2806
  aliases: ['SPREADSHEET', 'TABLE'],
2794
- isValid: function (value, schema) {
2807
+ isValid: function (value, settings, schema) {
2808
+ // TODO: !!!!!! Implement CSV validation
2795
2809
  TODO_USE(value /* <- TODO: Use value here */);
2810
+ TODO_USE(settings /* <- TODO: Use settings here */);
2796
2811
  TODO_USE(schema /* <- TODO: Use schema here */);
2797
2812
  return true;
2798
2813
  },
2799
- canBeValid: function (partialValue, schema) {
2814
+ canBeValid: function (partialValue, settings, schema) {
2800
2815
  TODO_USE(partialValue /* <- TODO: Use partialValue here */);
2816
+ TODO_USE(settings /* <- TODO: Use settings here */);
2801
2817
  TODO_USE(schema /* <- TODO: Use schema here */);
2802
2818
  return true;
2803
2819
  },
2804
- heal: function (value, schema) {
2820
+ heal: function (value, settings, schema) {
2805
2821
  TODO_USE(value /* <- TODO: Use partialValue here */);
2822
+ TODO_USE(settings /* <- TODO: Use settings here */);
2806
2823
  TODO_USE(schema /* <- TODO: Use schema here */);
2807
2824
  throw new Error('Not implemented');
2808
2825
  },
2809
2826
  subvalueDefinitions: [
2810
2827
  {
2811
2828
  subvalueName: 'ROW',
2812
- mapValues: function (value, mapCallback) {
2829
+ mapValues: function (value, settings, mapCallback) {
2813
2830
  return __awaiter(this, void 0, void 0, function () {
2814
2831
  var csv, mappedData;
2832
+ var _this = this;
2815
2833
  return __generator(this, function (_a) {
2816
2834
  switch (_a.label) {
2817
2835
  case 0:
2818
- csv = parse(value, {
2819
- header: true,
2820
- delimiter: ',',
2821
- quoteChar: '"',
2822
- newline: '\r\n',
2823
- skipEmptyLines: true,
2824
- // encoding: 'utf8',
2825
- // <- TODO: !!!!!! DEFAULT_CSV_OPTIONS
2826
- // <- TODO: [🧠] How to define parsing options for formats, its different concept than schema
2827
- });
2836
+ csv = parse(value, settings);
2828
2837
  if (csv.errors.length !== 0) {
2829
2838
  throw new ParseError(// <- TODO: !!!!!! Split PipelineParseError and FormatParseError -> CsvParseError
2830
2839
  spaceTrim$1(function (block) { return "\n CSV parsing error\n\n ".concat(block(csv.errors.map(function (error) { return error.message; }).join('\n\n')), "\n "); }));
2831
2840
  }
2832
- return [4 /*yield*/, Promise.all(csv.data.map(function (row, index) { /*not await */ return mapCallback(row, index); }))];
2841
+ return [4 /*yield*/, Promise.all(csv.data.map(function (row, index) { return __awaiter(_this, void 0, void 0, function () {
2842
+ var _a;
2843
+ var _b;
2844
+ return __generator(this, function (_c) {
2845
+ switch (_c.label) {
2846
+ case 0:
2847
+ _a = [__assign({}, row)];
2848
+ _b = {};
2849
+ // <- TODO: !!!!!! Dynamic new column name and position
2850
+ // <- TODO: !!!!!! Check name collisions
2851
+ return [4 /*yield*/, mapCallback(row, index)];
2852
+ case 1: return [2 /*return*/, (__assign.apply(void 0, _a.concat([(_b.newColumn =
2853
+ // <- TODO: !!!!!! Dynamic new column name and position
2854
+ // <- TODO: !!!!!! Check name collisions
2855
+ _c.sent(), _b)])))];
2856
+ }
2857
+ });
2858
+ }); }))];
2833
2859
  case 1:
2834
2860
  mappedData = _a.sent();
2835
- return [2 /*return*/, unparse(mappedData, {
2836
- header: true,
2837
- delimiter: ',',
2838
- quoteChar: '"',
2839
- newline: '\r\n',
2840
- skipEmptyLines: true,
2841
- // encoding: 'utf8',
2842
- // <- TODO: !!!!!! DEFAULT_CSV_OPTIONS
2843
- // <- TODO: [🧠] How to define parsing options for formats, its different concept than schema
2844
- })];
2861
+ return [2 /*return*/, unparse(mappedData, settings)];
2845
2862
  }
2846
2863
  });
2847
2864
  });
@@ -2849,23 +2866,14 @@ var CsvFormatDefinition = {
2849
2866
  },
2850
2867
  {
2851
2868
  subvalueName: 'CELL',
2852
- mapValues: function (value, mapCallback) {
2869
+ mapValues: function (value, settings, mapCallback) {
2853
2870
  return __awaiter(this, void 0, void 0, function () {
2854
2871
  var csv, mappedData;
2855
2872
  var _this = this;
2856
2873
  return __generator(this, function (_a) {
2857
2874
  switch (_a.label) {
2858
2875
  case 0:
2859
- csv = parse(value, {
2860
- header: true,
2861
- delimiter: ',',
2862
- quoteChar: '"',
2863
- newline: '\r\n',
2864
- skipEmptyLines: true,
2865
- // encoding: 'utf8',
2866
- // <- TODO: !!!!!! DEFAULT_CSV_OPTIONS
2867
- // <- TODO: [🧠] How to define parsing options for formats, its different concept than schema
2868
- });
2876
+ csv = parse(value, settings);
2869
2877
  if (csv.errors.length !== 0) {
2870
2878
  throw new ParseError(// <- TODO: !!!!!! Split PipelineParseError and FormatParseError -> CsvParseError
2871
2879
  spaceTrim$1(function (block) { return "\n CSV parsing error\n\n ".concat(block(csv.errors.map(function (error) { return error.message; }).join('\n\n')), "\n "); }));
@@ -2888,16 +2896,7 @@ var CsvFormatDefinition = {
2888
2896
  }); }))];
2889
2897
  case 1:
2890
2898
  mappedData = _a.sent();
2891
- return [2 /*return*/, unparse(mappedData, {
2892
- header: true,
2893
- delimiter: ',',
2894
- quoteChar: '"',
2895
- newline: '\r\n',
2896
- skipEmptyLines: true,
2897
- // encoding: 'utf8',
2898
- // <- TODO: !!!!!! DEFAULT_CSV_OPTIONS
2899
- // <- TODO: [🧠] How to define parsing options for formats, its different concept than schema
2900
- })];
2899
+ return [2 /*return*/, unparse(mappedData, settings)];
2901
2900
  }
2902
2901
  });
2903
2902
  });
@@ -2942,17 +2941,20 @@ function isValidJsonString(value /* <- [👨‍⚖️] */) {
2942
2941
  var JsonFormatDefinition = {
2943
2942
  formatName: 'JSON',
2944
2943
  mimeType: 'application/json',
2945
- isValid: function (value, schema) {
2944
+ isValid: function (value, settings, schema) {
2946
2945
  TODO_USE(schema /* <- TODO: Use schema here */);
2946
+ TODO_USE(settings /* <- TODO: Use settings here */);
2947
2947
  return isValidJsonString(value);
2948
2948
  },
2949
- canBeValid: function (partialValue, schema) {
2949
+ canBeValid: function (partialValue, settings, schema) {
2950
2950
  TODO_USE(partialValue /* <- TODO: Use partialValue here */);
2951
+ TODO_USE(settings /* <- TODO: Use settings here */);
2951
2952
  TODO_USE(schema /* <- TODO: Use schema here */);
2952
2953
  return true;
2953
2954
  },
2954
- heal: function (value, schema) {
2955
+ heal: function (value, settings, schema) {
2955
2956
  TODO_USE(value /* <- TODO: Use partialValue here */);
2957
+ TODO_USE(settings /* <- TODO: Use settings here */);
2956
2958
  TODO_USE(schema /* <- TODO: Use schema here */);
2957
2959
  throw new Error('Not implemented');
2958
2960
  },
@@ -2961,7 +2963,7 @@ var JsonFormatDefinition = {
2961
2963
  /**
2962
2964
  * TODO: [🧠] Maybe propper instance of object
2963
2965
  * TODO: [0] Make string_serialized_json
2964
- * TODO: [1] Make type for JSON Schema
2966
+ * TODO: [1] Make type for JSON Settings and Schema
2965
2967
  * TODO: [🧠] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?
2966
2968
  * TODO: [🍓] In `JsonFormatDefinition` implement simple `isValid`
2967
2969
  * TODO: [🍓] In `JsonFormatDefinition` implement partial `canBeValid`
@@ -2991,7 +2993,7 @@ var TextFormatDefinition = {
2991
2993
  subvalueDefinitions: [
2992
2994
  {
2993
2995
  subvalueName: 'LINE',
2994
- mapValues: function (value, mapCallback) {
2996
+ mapValues: function (value, settings, mapCallback) {
2995
2997
  return __awaiter(this, void 0, void 0, function () {
2996
2998
  var lines, mappedLines;
2997
2999
  return __generator(this, function (_a) {
@@ -3017,6 +3019,7 @@ var TextFormatDefinition = {
3017
3019
  ],
3018
3020
  };
3019
3021
  /**
3022
+ * TODO: [1] Make type for XML Text and Schema
3020
3023
  * TODO: [🧠][🤠] Here should be all words, characters, lines, paragraphs, pages aviable as subvalues
3021
3024
  * TODO: [🍓] In `TextFormatDefinition` implement simple `isValid`
3022
3025
  * TODO: [🍓] In `TextFormatDefinition` implement partial `canBeValid`
@@ -3033,18 +3036,21 @@ var TextFormatDefinition = {
3033
3036
  var XmlFormatDefinition = {
3034
3037
  formatName: 'XML',
3035
3038
  mimeType: 'application/xml',
3036
- isValid: function (value, schema) {
3039
+ isValid: function (value, settings, schema) {
3037
3040
  TODO_USE(value /* <- TODO: Use value here */);
3041
+ TODO_USE(settings /* <- TODO: Use settings here */);
3038
3042
  TODO_USE(schema /* <- TODO: Use schema here */);
3039
3043
  return true;
3040
3044
  },
3041
- canBeValid: function (partialValue, schema) {
3045
+ canBeValid: function (partialValue, settings, schema) {
3042
3046
  TODO_USE(partialValue /* <- TODO: Use partialValue here */);
3047
+ TODO_USE(settings /* <- TODO: Use settings here */);
3043
3048
  TODO_USE(schema /* <- TODO: Use schema here */);
3044
3049
  return true;
3045
3050
  },
3046
- heal: function (value, schema) {
3051
+ heal: function (value, settings, schema) {
3047
3052
  TODO_USE(value /* <- TODO: Use partialValue here */);
3053
+ TODO_USE(settings /* <- TODO: Use settings here */);
3048
3054
  TODO_USE(schema /* <- TODO: Use schema here */);
3049
3055
  throw new Error('Not implemented');
3050
3056
  },
@@ -3053,7 +3059,7 @@ var XmlFormatDefinition = {
3053
3059
  /**
3054
3060
  * TODO: [🧠] Maybe propper instance of object
3055
3061
  * TODO: [0] Make string_serialized_xml
3056
- * TODO: [1] Make type for XML Schema
3062
+ * TODO: [1] Make type for XML Settings and Schema
3057
3063
  * TODO: [🧠] What to use for validating XMLs - XSD,...
3058
3064
  * TODO: [🍓] In `XmlFormatDefinition` implement simple `isValid`
3059
3065
  * TODO: [🍓] In `XmlFormatDefinition` implement partial `canBeValid`
@@ -3871,12 +3877,12 @@ function executeAttempts(options) {
3871
3877
  */
3872
3878
  function executeFormatCells(options) {
3873
3879
  return __awaiter(this, void 0, void 0, function () {
3874
- var template, jokerParameterNames, parameters, priority, pipelineIdentification, parameterValue, formatDefinition, subvalueDefinition, resultString;
3880
+ var template, jokerParameterNames, parameters, priority, pipelineIdentification, settings, parameterValue, formatDefinition, subvalueDefinition, formatSettings, resultString;
3875
3881
  var _this = this;
3876
3882
  return __generator(this, function (_a) {
3877
3883
  switch (_a.label) {
3878
3884
  case 0:
3879
- template = options.template, jokerParameterNames = options.jokerParameterNames, parameters = options.parameters, priority = options.priority, pipelineIdentification = options.pipelineIdentification;
3885
+ template = options.template, jokerParameterNames = options.jokerParameterNames, parameters = options.parameters, priority = options.priority, pipelineIdentification = options.pipelineIdentification, settings = options.settings;
3880
3886
  if (template.foreach === undefined) {
3881
3887
  return [2 /*return*/, /* not await */ executeAttempts(options)];
3882
3888
  }
@@ -3905,7 +3911,11 @@ function executeFormatCells(options) {
3905
3911
  .map(function (subvalueName) { return "- ".concat(subvalueName); })
3906
3912
  .join('\n')), "\n\n [\u26F7] This should never happen because cell name should be validated during parsing\n\n ").concat(block(pipelineIdentification), "\n "); }));
3907
3913
  }
3908
- return [4 /*yield*/, subvalueDefinition.mapValues(parameterValue, function (subparameters, index) { return __awaiter(_this, void 0, void 0, function () {
3914
+ if (formatDefinition.formatName === 'CSV') {
3915
+ formatSettings = settings.csvSettings;
3916
+ // <- TODO: !!!!!! More universal, make simmilar pattern for other formats for example \n vs \r\n in text
3917
+ }
3918
+ return [4 /*yield*/, subvalueDefinition.mapValues(parameterValue, formatSettings, function (subparameters, index) { return __awaiter(_this, void 0, void 0, function () {
3909
3919
  var mappedParameters, allSubparameters, subresultString;
3910
3920
  return __generator(this, function (_a) {
3911
3921
  switch (_a.label) {
@@ -4540,7 +4550,7 @@ function executePipeline(options) {
4540
4550
  function createPipelineExecutor(options) {
4541
4551
  var _this = this;
4542
4552
  var pipeline = options.pipeline, tools = options.tools, _a = options.settings, settings = _a === void 0 ? {} : _a;
4543
- var _b = settings.maxExecutionAttempts, maxExecutionAttempts = _b === void 0 ? MAX_EXECUTION_ATTEMPTS : _b, _c = settings.maxParallelCount, maxParallelCount = _c === void 0 ? MAX_PARALLEL_COUNT : _c, _d = settings.isVerbose, isVerbose = _d === void 0 ? IS_VERBOSE : _d, _e = settings.isNotPreparedWarningSupressed, isNotPreparedWarningSupressed = _e === void 0 ? false : _e;
4553
+ var _b = settings.maxExecutionAttempts, maxExecutionAttempts = _b === void 0 ? MAX_EXECUTION_ATTEMPTS : _b, _c = settings.maxParallelCount, maxParallelCount = _c === void 0 ? MAX_PARALLEL_COUNT : _c, _d = settings.csvSettings, csvSettings = _d === void 0 ? DEFAULT_CSV_SETTINGS : _d, _e = settings.isVerbose, isVerbose = _e === void 0 ? IS_VERBOSE : _e, _f = settings.isNotPreparedWarningSupressed, isNotPreparedWarningSupressed = _f === void 0 ? false : _f;
4544
4554
  validatePipeline(pipeline);
4545
4555
  var pipelineIdentification = (function () {
4546
4556
  // Note: This is a 😐 implementation of [🚞]
@@ -4575,6 +4585,7 @@ function createPipelineExecutor(options) {
4575
4585
  settings: {
4576
4586
  maxExecutionAttempts: maxExecutionAttempts,
4577
4587
  maxParallelCount: maxParallelCount,
4588
+ csvSettings: csvSettings,
4578
4589
  isVerbose: isVerbose,
4579
4590
  isNotPreparedWarningSupressed: isNotPreparedWarningSupressed,
4580
4591
  },
@@ -7323,7 +7334,7 @@ function extractAllListItemsFromMarkdown(markdown) {
7323
7334
  function extractOneBlockFromMarkdown(markdown) {
7324
7335
  var codeBlocks = extractAllBlocksFromMarkdown(markdown);
7325
7336
  if (codeBlocks.length !== 1) {
7326
- throw new ParseError(spaceTrim$1(function (block) { return "\n There should be exactly 1 code block, found ".concat(codeBlocks.length, " code blocks\n\n ").concat(block(codeBlocks.map(function (block, i) { return "Block ".concat(i + 1, ":\n").concat(block.content); }).join('\n\n\n')), "\n "); }));
7337
+ throw new ParseError(spaceTrim$1(function (block) { return "\n There should be exactly 1 code block in template, found ".concat(codeBlocks.length, " code blocks\n\n ").concat(block(codeBlocks.map(function (block, i) { return "Block ".concat(i + 1, ":\n").concat(block.content); }).join('\n\n\n')), "\n "); }));
7327
7338
  }
7328
7339
  return codeBlocks[0];
7329
7340
  }
@@ -8368,7 +8379,7 @@ function usageToHuman(usage) {
8368
8379
  var value = _a.value, isUncertain = _a.isUncertain;
8369
8380
  return "".concat(isUncertain ? 'approximately ' : '').concat(Math.round(value * 100) / 100);
8370
8381
  };
8371
- if (usage.price.value > 0.1
8382
+ if (usage.price.value > 0.01
8372
8383
  // <- TODO: [🍓][🧞‍♂️][👩🏽‍🤝‍🧑🏻] Configure negligible value - default value to config + value to `UsageToHumanSettings`
8373
8384
  ) {
8374
8385
  reportItems.push("Cost ".concat(uncertainNumberToHuman(usage.price), " USD"));
@@ -8377,7 +8388,8 @@ function usageToHuman(usage) {
8377
8388
  reportItems.push("Negligible cost");
8378
8389
  }
8379
8390
  var worktime = usageToWorktime(usage);
8380
- if (worktime.value > 0.5
8391
+ if (worktime.value >
8392
+ 1 / 60
8381
8393
  // <- TODO: [🍓][🧞‍♂️][👩🏽‍🤝‍🧑🏻]
8382
8394
  ) {
8383
8395
  reportItems.push("Saved ".concat(uncertainNumberToHuman(usageToWorktime(usage)), " hours of human time"));