@promptbook/documents 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
@@ -28,7 +28,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
28
28
  * @generated
29
29
  * @see https://github.com/webgptorg/promptbook
30
30
  */
31
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-6';
31
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-8';
32
32
  /**
33
33
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
34
34
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -162,6 +162,7 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
162
162
  */
163
163
  const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
164
164
  // <- TODO: [๐Ÿ•] Make also `BOOKS_DIRNAME_ALTERNATIVES`
165
+ // TODO: !!!!!! Just .promptbook dir, hardocode others
165
166
  /**
166
167
  * Where to store the temporary downloads
167
168
  *
@@ -213,7 +214,7 @@ const IS_PIPELINE_LOGIC_VALIDATED = just(
213
214
  true);
214
215
  /**
215
216
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
216
- * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteUrl and path into single value
217
+ * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteServerUrl and path into single value
217
218
  */
218
219
 
219
220
  /**
@@ -2308,6 +2309,19 @@ class CsvFormatError extends AbstractFormatError {
2308
2309
  }
2309
2310
  }
2310
2311
 
2312
+ /**
2313
+ * AuthenticationError is thrown from login function which is dependency of remote server
2314
+ *
2315
+ * @public exported from `@promptbook/core`
2316
+ */
2317
+ class AuthenticationError extends Error {
2318
+ constructor(message) {
2319
+ super(message);
2320
+ this.name = 'AuthenticationError';
2321
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
2322
+ }
2323
+ }
2324
+
2311
2325
  /**
2312
2326
  * This error indicates that the pipeline collection cannot be propperly loaded
2313
2327
  *
@@ -2410,6 +2424,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
2410
2424
  TypeError,
2411
2425
  URIError,
2412
2426
  AggregateError,
2427
+ AuthenticationError,
2413
2428
  /*
2414
2429
  Note: Not widely supported
2415
2430
  > InternalError,
@@ -2609,6 +2624,10 @@ function serializeError(error) {
2609
2624
 
2610
2625
  Cannot serialize error with name "${name}"
2611
2626
 
2627
+ Authors of Promptbook probably forgot to add this error into the list of errors:
2628
+ https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
2629
+
2630
+
2612
2631
  ${block(stack || message)}
2613
2632
 
2614
2633
  `));