@promptbook/node 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-1';
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
@@ -2044,7 +2044,7 @@ function assertsTaskSuccessful(executionResult) {
2044
2044
  */
2045
2045
  function createTask(options) {
2046
2046
  var taskType = options.taskType, taskProcessCallback = options.taskProcessCallback;
2047
- var taskId = "".concat(taskType.toLowerCase(), "-").concat($randomToken(256 /* <- TODO: !!! To global config */));
2047
+ var taskId = "".concat(taskType.toLowerCase().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
2048
2048
  var partialResultSubject = new BehaviorSubject({});
2049
2049
  var finalResultPromise = /* not await */ taskProcessCallback(function (newOngoingResult) {
2050
2050
  partialResultSubject.next(newOngoingResult);
@@ -2076,6 +2076,9 @@ function createTask(options) {
2076
2076
  isCrashedOnError: true,
2077
2077
  })));
2078
2078
  },
2079
+ get currentValue() {
2080
+ return partialResultSubject.value;
2081
+ },
2079
2082
  };
2080
2083
  }
2081
2084
  /**