@promptbook/markitdown 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 +8 -2
- package/esm/index.es.js.map +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +8 -2
- package/umd/index.umd.js.map +1 -1
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-
|
|
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
|
|
@@ -2098,12 +2098,18 @@ function isPipelinePrepared(pipeline) {
|
|
|
2098
2098
|
// Note: Ignoring `pipeline.preparations` @@@
|
|
2099
2099
|
// Note: Ignoring `pipeline.knowledgePieces` @@@
|
|
2100
2100
|
if (pipeline.title === undefined || pipeline.title === '' || pipeline.title === DEFAULT_BOOK_TITLE) {
|
|
2101
|
+
// TODO: !!! Comment this out
|
|
2102
|
+
console.log('Pipeline is not prepared because title is undefined or empty', pipeline);
|
|
2101
2103
|
return false;
|
|
2102
2104
|
}
|
|
2103
2105
|
if (!pipeline.personas.every((persona) => persona.modelsRequirements !== undefined)) {
|
|
2106
|
+
// TODO: !!! Comment this out
|
|
2107
|
+
console.log('Pipeline is not prepared because personas are not prepared', pipeline.personas);
|
|
2104
2108
|
return false;
|
|
2105
2109
|
}
|
|
2106
2110
|
if (!pipeline.knowledgeSources.every((knowledgeSource) => knowledgeSource.preparationIds !== undefined)) {
|
|
2111
|
+
// TODO: !!! Comment this out
|
|
2112
|
+
console.log('Pipeline is not prepared because knowledge sources are not prepared', pipeline.knowledgeSources);
|
|
2107
2113
|
return false;
|
|
2108
2114
|
}
|
|
2109
2115
|
/*
|
|
@@ -5349,7 +5355,7 @@ async function executeTask(options) {
|
|
|
5349
5355
|
const usedParameterNames = extractParameterNamesFromTask(currentTask);
|
|
5350
5356
|
const dependentParameterNames = new Set(currentTask.dependentParameterNames);
|
|
5351
5357
|
// TODO: [👩🏾🤝👩🏻] Use here `mapAvailableToExpectedParameters`
|
|
5352
|
-
if (union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)).size !== 0) {
|
|
5358
|
+
if (difference(union(difference(usedParameterNames, dependentParameterNames), difference(dependentParameterNames, usedParameterNames)), new Set(RESERVED_PARAMETER_NAMES)).size !== 0) {
|
|
5353
5359
|
throw new UnexpectedError(spaceTrim$1((block) => `
|
|
5354
5360
|
Dependent parameters are not consistent with used parameters:
|
|
5355
5361
|
|