@promptbook/pdf 0.85.0-3 → 0.85.0-4
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 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-
|
|
29
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-3';
|
|
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
|
|
@@ -2527,7 +2527,7 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2527
2527
|
*/
|
|
2528
2528
|
function createTask(options) {
|
|
2529
2529
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2530
|
-
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(
|
|
2530
|
+
var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
|
|
2531
2531
|
var partialResultSubject = new BehaviorSubject({});
|
|
2532
2532
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2533
2533
|
partialResultSubject.next(newOngoingResult);
|
|
@@ -2559,6 +2559,9 @@ function createTask(options) {
|
|
|
2559
2559
|
isCrashedOnError: true,
|
|
2560
2560
|
})));
|
|
2561
2561
|
},
|
|
2562
|
+
get currentValue() {
|
|
2563
|
+
return partialResultSubject.value;
|
|
2564
|
+
},
|
|
2562
2565
|
};
|
|
2563
2566
|
}
|
|
2564
2567
|
/**
|