@promptbook/website-crawler 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
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.92.0-18';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.92.0-19';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2249,12 +2249,18 @@ function isPipelinePrepared(pipeline) {
2249
2249
  // Note: Ignoring `pipeline.preparations` @@@
2250
2250
  // Note: Ignoring `pipeline.knowledgePieces` @@@
2251
2251
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
2252
+ // TODO: !!! Comment this out
2253
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
2252
2254
  return false;
2253
2255
  }
2254
2256
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
2257
+ // TODO: !!! Comment this out
2258
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
2255
2259
  return false;
2256
2260
  }
2257
2261
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
2262
+ // TODO: !!! Comment this out
2263
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
2258
2264
  return false;
2259
2265
  }
2260
2266
  /*
@@ -5363,7 +5369,7 @@ async function executeTask(options) {
5363
5369
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5364
5370
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5365
5371
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5366
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5372
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5367
5373
  throw new UnexpectedError(spaceTrim((block) => `
5368
5374
  Dependent parameters are not consistent with used parameters:
5369
5375