@promptbook/website-crawler 0.89.0-6 โ†’ 0.89.0-7

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
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-6';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-7';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -190,6 +190,7 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
190
190
  */
191
191
  const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
192
192
  // <- TODO: [๐Ÿ•] Make also `BOOKS_DIRNAME_ALTERNATIVES`
193
+ // TODO: !!!!!! Just .promptbook dir, hardocode others
193
194
  /**
194
195
  * Where to store the temporary downloads
195
196
  *
@@ -241,7 +242,7 @@ const IS_PIPELINE_LOGIC_VALIDATED = just(
241
242
  true);
242
243
  /**
243
244
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
244
- * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteUrl and path into single value
245
+ * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteServerUrl and path into single value
245
246
  */
246
247
 
247
248
  /**
@@ -2285,6 +2286,19 @@ class CsvFormatError extends AbstractFormatError {
2285
2286
  }
2286
2287
  }
2287
2288
 
2289
+ /**
2290
+ * AuthenticationError is thrown from login function which is dependency of remote server
2291
+ *
2292
+ * @public exported from `@promptbook/core`
2293
+ */
2294
+ class AuthenticationError extends Error {
2295
+ constructor(message) {
2296
+ super(message);
2297
+ this.name = 'AuthenticationError';
2298
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
2299
+ }
2300
+ }
2301
+
2288
2302
  /**
2289
2303
  * This error indicates that the pipeline collection cannot be propperly loaded
2290
2304
  *
@@ -2364,6 +2378,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
2364
2378
  TypeError,
2365
2379
  URIError,
2366
2380
  AggregateError,
2381
+ AuthenticationError,
2367
2382
  /*
2368
2383
  Note: Not widely supported
2369
2384
  > InternalError,
@@ -2563,6 +2578,10 @@ function serializeError(error) {
2563
2578
 
2564
2579
  Cannot serialize error with name "${name}"
2565
2580
 
2581
+ Authors of Promptbook probably forgot to add this error into the list of errors:
2582
+ https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
2583
+
2584
+
2566
2585
  ${block(stack || message)}
2567
2586
 
2568
2587
  `));