@promptbook/documents 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/documents",
3
- "version": "0.92.0-18",
3
+ "version": "0.92.0-19",
4
4
  "description": "It's time for a paradigm shift. The future of software in plain English, French or Latin",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -51,7 +51,7 @@
51
51
  "module": "./esm/index.es.js",
52
52
  "typings": "./esm/typings/src/_packages/documents.index.d.ts",
53
53
  "peerDependencies": {
54
- "@promptbook/core": "0.92.0-18"
54
+ "@promptbook/core": "0.92.0-19"
55
55
  },
56
56
  "dependencies": {
57
57
  "colors": "1.4.0",
package/umd/index.umd.js CHANGED
@@ -26,7 +26,7 @@
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
@@ -2270,12 +2270,18 @@
2270
2270
  // Note: Ignoring `pipeline.preparations` @@@
2271
2271
  // Note: Ignoring `pipeline.knowledgePieces` @@@
2272
2272
  if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
2273
+ // TODO: !!! Comment this out
2274
+ console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
2273
2275
  return false;
2274
2276
  }
2275
2277
  if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
2278
+ // TODO: !!! Comment this out
2279
+ console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
2276
2280
  return false;
2277
2281
  }
2278
2282
  if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
2283
+ // TODO: !!! Comment this out
2284
+ console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
2279
2285
  return false;
2280
2286
  }
2281
2287
  /*
@@ -5511,7 +5517,7 @@
5511
5517
  const usedParameterNames = extractParameterNamesFromTask(currentTask);
5512
5518
  const dependentParameterNames = new Set(currentTask.dependentParameterNames);
5513
5519
  // TODO: [👩🏾‍🤝‍👩🏻] Use here `mapAvailableToExpectedParameters`
5514
- if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
5520
+ if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
5515
5521
  throw new UnexpectedError(spaceTrim.spaceTrim((block) => `
5516
5522
  Dependent parameters are not consistent with used parameters:
5517
5523