@promptbook/markdown-utils 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.
|
@@ -11,6 +11,7 @@ import { CLAIM } from '../config';
|
|
|
11
11
|
import { LOGO_LIGHT_SRC } from '../config';
|
|
12
12
|
import { LOGO_DARK_SRC } from '../config';
|
|
13
13
|
import { DEFAULT_BOOK_TITLE } from '../config';
|
|
14
|
+
import { DEFAULT_TASK_TITLE } from '../config';
|
|
14
15
|
import { MAX_FILENAME_LENGTH } from '../config';
|
|
15
16
|
import { DEFAULT_INTERMEDIATE_FILES_STRATEGY } from '../config';
|
|
16
17
|
import { DEFAULT_MAX_PARALLEL_COUNT } from '../config';
|
|
@@ -134,6 +135,7 @@ export { CLAIM };
|
|
|
134
135
|
export { LOGO_LIGHT_SRC };
|
|
135
136
|
export { LOGO_DARK_SRC };
|
|
136
137
|
export { DEFAULT_BOOK_TITLE };
|
|
138
|
+
export { DEFAULT_TASK_TITLE };
|
|
137
139
|
export { MAX_FILENAME_LENGTH };
|
|
138
140
|
export { DEFAULT_INTERMEDIATE_FILES_STRATEGY };
|
|
139
141
|
export { DEFAULT_MAX_PARALLEL_COUNT };
|
|
@@ -59,6 +59,12 @@ export declare const LOGO_DARK_SRC: string_url_image;
|
|
|
59
59
|
* @public exported from `@promptbook/core`
|
|
60
60
|
*/
|
|
61
61
|
export declare const DEFAULT_BOOK_TITLE = "\u2728 Untitled Book";
|
|
62
|
+
/**
|
|
63
|
+
* When the title of task is not provided, the default title is used
|
|
64
|
+
*
|
|
65
|
+
* @public exported from `@promptbook/core`
|
|
66
|
+
*/
|
|
67
|
+
export declare const DEFAULT_TASK_TITLE = "Task";
|
|
62
68
|
/**
|
|
63
69
|
* Warning message for the generated sections and files files
|
|
64
70
|
*
|
package/package.json
CHANGED
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-
|
|
27
|
+
var PROMPTBOOK_ENGINE_VERSION = '0.82.0-2';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1976,11 +1976,17 @@
|
|
|
1976
1976
|
* @public exported from `@promptbook/utils`
|
|
1977
1977
|
*/
|
|
1978
1978
|
function deserializeError(error) {
|
|
1979
|
+
var name = error.name, stack = error.stack;
|
|
1980
|
+
var message = error.message;
|
|
1979
1981
|
var ErrorClass = ALL_ERRORS[error.name];
|
|
1980
1982
|
if (ErrorClass === undefined) {
|
|
1981
|
-
|
|
1983
|
+
ErrorClass = Error;
|
|
1984
|
+
message = "".concat(name, ": ").concat(message);
|
|
1982
1985
|
}
|
|
1983
|
-
|
|
1986
|
+
if (stack !== undefined && stack !== '') {
|
|
1987
|
+
message = spaceTrim__default["default"](function (block) { return "\n ".concat(block(message), "\n\n Original stack trace:\n ").concat(block(stack || ''), "\n "); });
|
|
1988
|
+
}
|
|
1989
|
+
return new ErrorClass(message);
|
|
1984
1990
|
}
|
|
1985
1991
|
|
|
1986
1992
|
/**
|