@promptbook/pdf 0.89.0-6 โ†’ 0.89.0-8

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 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
26
26
  * @generated
27
27
  * @see https://github.com/webgptorg/promptbook
28
28
  */
29
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-6';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-8';
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
@@ -160,6 +160,7 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
160
160
  */
161
161
  const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
162
162
  // <- TODO: [๐Ÿ•] Make also `BOOKS_DIRNAME_ALTERNATIVES`
163
+ // TODO: !!!!!! Just .promptbook dir, hardocode others
163
164
  /**
164
165
  * Where to store the temporary downloads
165
166
  *
@@ -211,7 +212,7 @@ const IS_PIPELINE_LOGIC_VALIDATED = just(
211
212
  true);
212
213
  /**
213
214
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
214
- * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteUrl and path into single value
215
+ * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteServerUrl and path into single value
215
216
  */
216
217
 
217
218
  /**
@@ -2147,6 +2148,19 @@ class CsvFormatError extends AbstractFormatError {
2147
2148
  }
2148
2149
  }
2149
2150
 
2151
+ /**
2152
+ * AuthenticationError is thrown from login function which is dependency of remote server
2153
+ *
2154
+ * @public exported from `@promptbook/core`
2155
+ */
2156
+ class AuthenticationError extends Error {
2157
+ constructor(message) {
2158
+ super(message);
2159
+ this.name = 'AuthenticationError';
2160
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
2161
+ }
2162
+ }
2163
+
2150
2164
  /**
2151
2165
  * This error indicates that the pipeline collection cannot be propperly loaded
2152
2166
  *
@@ -2249,6 +2263,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
2249
2263
  TypeError,
2250
2264
  URIError,
2251
2265
  AggregateError,
2266
+ AuthenticationError,
2252
2267
  /*
2253
2268
  Note: Not widely supported
2254
2269
  > InternalError,
@@ -2448,6 +2463,10 @@ function serializeError(error) {
2448
2463
 
2449
2464
  Cannot serialize error with name "${name}"
2450
2465
 
2466
+ Authors of Promptbook probably forgot to add this error into the list of errors:
2467
+ https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
2468
+
2469
+
2451
2470
  ${block(stack || message)}
2452
2471
 
2453
2472
  `));