@promptbook/remote-client 0.82.0-2 → 0.82.0-3
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
|
@@ -19,7 +19,7 @@ var BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
19
19
|
* @generated
|
|
20
20
|
* @see https://github.com/webgptorg/promptbook
|
|
21
21
|
*/
|
|
22
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-
|
|
22
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-2';
|
|
23
23
|
/**
|
|
24
24
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
25
25
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -424,6 +424,12 @@ var ADMIN_GITHUB_NAME = 'hejny';
|
|
|
424
424
|
* @public exported from `@promptbook/core`
|
|
425
425
|
*/
|
|
426
426
|
var DEFAULT_BOOK_TITLE = "\u2728 Untitled Book";
|
|
427
|
+
/**
|
|
428
|
+
* When the title of task is not provided, the default title is used
|
|
429
|
+
*
|
|
430
|
+
* @public exported from `@promptbook/core`
|
|
431
|
+
*/
|
|
432
|
+
var DEFAULT_TASK_TITLE = "Task";
|
|
427
433
|
/**
|
|
428
434
|
* Timeout for the connections in milliseconds
|
|
429
435
|
*
|
|
@@ -550,11 +556,17 @@ var ALL_ERRORS = __assign(__assign({}, PROMPTBOOK_ERRORS), COMMON_JAVASCRIPT_ERR
|
|
|
550
556
|
* @public exported from `@promptbook/utils`
|
|
551
557
|
*/
|
|
552
558
|
function deserializeError(error) {
|
|
559
|
+
var name = error.name, stack = error.stack;
|
|
560
|
+
var message = error.message;
|
|
553
561
|
var ErrorClass = ALL_ERRORS[error.name];
|
|
554
562
|
if (ErrorClass === undefined) {
|
|
555
|
-
|
|
563
|
+
ErrorClass = Error;
|
|
564
|
+
message = "".concat(name, ": ").concat(message);
|
|
565
|
+
}
|
|
566
|
+
if (stack !== undefined && stack !== '') {
|
|
567
|
+
message = spaceTrim$1(function (block) { return "\n ".concat(block(message), "\n\n Original stack trace:\n ").concat(block(stack || ''), "\n "); });
|
|
556
568
|
}
|
|
557
|
-
return new ErrorClass(
|
|
569
|
+
return new ErrorClass(message);
|
|
558
570
|
}
|
|
559
571
|
|
|
560
572
|
/**
|
|
@@ -5257,8 +5269,8 @@ function parsePipeline(pipelineString) {
|
|
|
5257
5269
|
isSectionTypeSet: false,
|
|
5258
5270
|
isTask: true,
|
|
5259
5271
|
taskType: undefined /* <- Note: [🍙] Putting here placeholder to keep `taskType` on top at final JSON */,
|
|
5260
|
-
name: getUniqueSectionName(section.title),
|
|
5261
|
-
title: section.title,
|
|
5272
|
+
name: getUniqueSectionName(section.title || DEFAULT_TASK_TITLE),
|
|
5273
|
+
title: section.title || DEFAULT_TASK_TITLE,
|
|
5262
5274
|
description: description_1,
|
|
5263
5275
|
content: content,
|
|
5264
5276
|
// <- TODO: [🍙] Some standard order of properties
|