@promptbook/website-crawler 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
|
@@ -29,7 +29,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
29
29
|
* @generated
|
|
30
30
|
* @see https://github.com/webgptorg/promptbook
|
|
31
31
|
*/
|
|
32
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-
|
|
32
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-3';
|
|
33
33
|
/**
|
|
34
34
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
35
35
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2649,7 +2649,7 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2649
2649
|
*/
|
|
2650
2650
|
function createTask(options) {
|
|
2651
2651
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2652
|
-
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(
|
|
2652
|
+
var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
|
|
2653
2653
|
var partialResultSubject = new BehaviorSubject({});
|
|
2654
2654
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2655
2655
|
partialResultSubject.next(newOngoingResult);
|
|
@@ -2681,6 +2681,9 @@ function createTask(options) {
|
|
|
2681
2681
|
isCrashedOnError: true,
|
|
2682
2682
|
})));
|
|
2683
2683
|
},
|
|
2684
|
+
get currentValue() {
|
|
2685
|
+
return partialResultSubject.value;
|
|
2686
|
+
},
|
|
2684
2687
|
};
|
|
2685
2688
|
}
|
|
2686
2689
|
/**
|