@promptbook/core 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
|
@@ -27,7 +27,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
27
27
|
* @generated
|
|
28
28
|
* @see https://github.com/webgptorg/promptbook
|
|
29
29
|
*/
|
|
30
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-
|
|
30
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.85.0-3';
|
|
31
31
|
/**
|
|
32
32
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
33
33
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -2374,7 +2374,7 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2374
2374
|
*/
|
|
2375
2375
|
function createTask(options) {
|
|
2376
2376
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2377
|
-
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(
|
|
2377
|
+
var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
|
|
2378
2378
|
var partialResultSubject = new BehaviorSubject({});
|
|
2379
2379
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2380
2380
|
partialResultSubject.next(newOngoingResult);
|
|
@@ -2406,6 +2406,9 @@ function createTask(options) {
|
|
|
2406
2406
|
isCrashedOnError: true,
|
|
2407
2407
|
})));
|
|
2408
2408
|
},
|
|
2409
|
+
get currentValue() {
|
|
2410
|
+
return partialResultSubject.value;
|
|
2411
|
+
},
|
|
2409
2412
|
};
|
|
2410
2413
|
}
|
|
2411
2414
|
/**
|