@promptbook/pdf 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
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-19';
30
30
  /**
31
31
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
32
32
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2111,12 +2111,18 @@ function isPipelinePrepared(pipeline) {
2111
2111
  // Note: Ignoring `pipeline.preparations` @@@
2112
2112
  // Note: Ignoring `pipeline.knowledgePieces` @@@
2113
2113
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
2114
+ // TODO: !!! Comment this out
2115
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
2114
2116
  return false;
2115
2117
  }
2116
2118
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
2119
+ // TODO: !!! Comment this out
2120
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
2117
2121
  return false;
2118
2122
  }
2119
2123
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
2124
+ // TODO: !!! Comment this out
2125
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
2120
2126
  return false;
2121
2127
  }
2122
2128
  /*
@@ -5362,7 +5368,7 @@ async function executeTask(options) {
5362
5368
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5363
5369
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5364
5370
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5365
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5371
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5366
5372
  throw new UnexpectedError(spaceTrim$1((block) => `
5367
5373
  Dependent parameters are not consistent with used parameters:
5368
5374