@promptbook/markdown-utils 0.92.0-18 → 0.92.0-19

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/esm/index.es.js CHANGED
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-19';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -1771,12 +1771,18 @@ function isPipelinePrepared(pipeline) {
1771
1771
  // Note: Ignoring `pipeline.preparations` @@@
1772
1772
  // Note: Ignoring `pipeline.knowledgePieces` @@@
1773
1773
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
1774
+ // TODO: !!! Comment this out
1775
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
1774
1776
  return false;
1775
1777
  }
1776
1778
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
1779
+ // TODO: !!! Comment this out
1780
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
1777
1781
  return false;
1778
1782
  }
1779
1783
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
1784
+ // TODO: !!! Comment this out
1785
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
1780
1786
  return false;
1781
1787
  }
1782
1788
  /*
@@ -5332,7 +5338,7 @@ async function executeTask(options) {
5332
5338
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5333
5339
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5334
5340
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5335
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5341
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5336
5342
  throw new UnexpectedError(spaceTrim$1((block) => `
5337
5343
  Dependent parameters are not consistent with used parameters:
5338
5344