@promptbook/cli 0.92.0-18 → 0.92.0-20
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 +8 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/migrations/migratePipeline.d.ts +7 -0
- package/esm/typings/src/pipeline/PipelineJson/PipelineJson.d.ts +1 -0
- package/package.json +1 -1
- package/umd/index.umd.js +8 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -47,7 +47,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
47
47
|
* @generated
|
|
48
48
|
* @see https://github.com/webgptorg/promptbook
|
|
49
49
|
*/
|
|
50
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-
|
|
50
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.92.0-20';
|
|
51
51
|
/**
|
|
52
52
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
53
53
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -4918,12 +4918,18 @@ function isPipelinePrepared(pipeline) {
|
|
|
4918
4918
|
// Note: Ignoring `pipeline.preparations` @@@
|
|
4919
4919
|
// Note: Ignoring `pipeline.knowledgePieces` @@@
|
|
4920
4920
|
if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
|
|
4921
|
+
// TODO: !!! Comment this out
|
|
4922
|
+
console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
|
|
4921
4923
|
return false;
|
|
4922
4924
|
}
|
|
4923
4925
|
if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
|
|
4926
|
+
// TODO: !!! Comment this out
|
|
4927
|
+
console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
|
|
4924
4928
|
return false;
|
|
4925
4929
|
}
|
|
4926
4930
|
if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
|
|
4931
|
+
// TODO: !!! Comment this out
|
|
4932
|
+
console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
|
|
4927
4933
|
return false;
|
|
4928
4934
|
}
|
|
4929
4935
|
/*
|
|
@@ -6687,7 +6693,7 @@ async function executeTask(options) {
|
|
|
6687
6693
|
const usedParameterNames = extractParameterNamesFromTask(currentTask);
|
|
6688
6694
|
const dependentParameterNames = new Set(currentTask.dependentParameterNames);
|
|
6689
6695
|
// TODO: [👩🏾🤝👩🏻] Use here `mapAvailableToExpectedParameters`
|
|
6690
|
-
if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
|
|
6696
|
+
if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
|
|
6691
6697
|
throw new UnexpectedError(spaceTrim$1((block) => `
|
|
6692
6698
|
Dependent parameters are not consistent with used parameters:
|
|
6693
6699
|
|