@promptbook/core 0.85.0-7 → 0.85.0-9

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-6';
30
+ var PROMPTBOOK_ENGINE_VERSION = '0.85.0-8';
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,18 +2374,16 @@ 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().substring(0, 4), "-").concat($randomToken(8 /* <- TODO: !!! To global config + Use Base58 to avoid simmilar char conflicts */));
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);
2381
2381
  });
2382
2382
  finalResultPromise
2383
2383
  .catch(function (error) {
2384
- // console.error('!!!!! Task failed:', error);
2385
2384
  partialResultSubject.error(error);
2386
2385
  })
2387
2386
  .then(function (value) {
2388
- // console.error('!!!!! Task finished:', value);
2389
2387
  if (value) {
2390
2388
  try {
2391
2389
  assertsTaskSuccessful(value);
@@ -2407,9 +2405,7 @@ function createTask(options) {
2407
2405
  return [4 /*yield*/, finalResultPromise];
2408
2406
  case 1:
2409
2407
  finalResult = _b.sent();
2410
- console.error('!!!!! finalResult:', finalResult);
2411
2408
  if (isCrashedOnError) {
2412
- console.error('!!!!! isCrashedOnError:', finalResult);
2413
2409
  assertsTaskSuccessful(finalResult);
2414
2410
  }
2415
2411
  return [2 /*return*/, finalResult];