@promptbook/documents 0.85.0-2 → 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
|
@@ -28,7 +28,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
28
28
|
* @generated
|
|
29
29
|
* @see https://github.com/webgptorg/promptbook
|
|
30
30
|
*/
|
|
31
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-
|
|
31
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-3';
|
|
32
32
|
/**
|
|
33
33
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
34
34
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2688,7 +2688,7 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2688
2688
|
*/
|
|
2689
2689
|
function createTask(options) {
|
|
2690
2690
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2691
|
-
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(
|
|
2691
|
+
var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
|
|
2692
2692
|
var partialResultSubject = new BehaviorSubject({});
|
|
2693
2693
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2694
2694
|
partialResultSubject.next(newOngoingResult);
|
|
@@ -2720,6 +2720,9 @@ function createTask(options) {
|
|
|
2720
2720
|
isCrashedOnError: true,
|
|
2721
2721
|
})));
|
|
2722
2722
|
},
|
|
2723
|
+
get currentValue() {
|
|
2724
|
+
return partialResultSubject.value;
|
|
2725
|
+
},
|
|
2723
2726
|
};
|
|
2724
2727
|
}
|
|
2725
2728
|
/**
|