@promptbook/markitdown 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
|
|
@@ -2514,7 +2514,7 @@ function assertsTaskSuccessful(executionResult) {
|
|
|
2514
2514
|
*/
|
|
2515
2515
|
function createTask(options) {
|
|
2516
2516
|
var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
|
|
2517
|
-
var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(
|
|
2517
|
+
var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
|
|
2518
2518
|
var partialResultSubject = new BehaviorSubject({});
|
|
2519
2519
|
var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
|
|
2520
2520
|
partialResultSubject.next(newOngoingResult);
|
|
@@ -2546,6 +2546,9 @@ function createTask(options) {
|
|
|
2546
2546
|
isCrashedOnError: true,
|
|
2547
2547
|
})));
|
|
2548
2548
|
},
|
|
2549
|
+
get currentValue() {
|
|
2550
|
+
return partialResultSubject.value;
|
|
2551
|
+
},
|
|
2549
2552
|
};
|
|
2550
2553
|
}
|
|
2551
2554
|
/**
|