@promptbook/markdown-utils 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
@@ -25,7 +25,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
25
25
  * @generated
26
26
  * @see https://github.com/webgptorg/promptbook
27
27
  */
28
- const PROMPTBOOK_ENGINE_VERSION = '0.89.0-6';
28
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-8';
29
29
  /**
30
30
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
31
31
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
@@ -661,6 +661,7 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
661
661
  */
662
662
  const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐Ÿคนโ€โ™‚๏ธ]
663
663
  // <- TODO: [๐Ÿ•] Make also `BOOKS_DIRNAME_ALTERNATIVES`
664
+ // TODO: !!!!!! Just .promptbook dir, hardocode others
664
665
  /**
665
666
  * Where to store the temporary downloads
666
667
  *
@@ -712,7 +713,7 @@ const IS_PIPELINE_LOGIC_VALIDATED = just(
712
713
  true);
713
714
  /**
714
715
  * Note: [๐Ÿ’ž] Ignore a discrepancy between file name and entity name
715
- * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteUrl and path into single value
716
+ * TODO: [๐Ÿง ][๐Ÿงœโ€โ™‚๏ธ] Maybe join remoteServerUrl and path into single value
716
717
  */
717
718
 
718
719
  /**
@@ -1807,6 +1808,19 @@ class CsvFormatError extends AbstractFormatError {
1807
1808
  }
1808
1809
  }
1809
1810
 
1811
+ /**
1812
+ * AuthenticationError is thrown from login function which is dependency of remote server
1813
+ *
1814
+ * @public exported from `@promptbook/core`
1815
+ */
1816
+ class AuthenticationError extends Error {
1817
+ constructor(message) {
1818
+ super(message);
1819
+ this.name = 'AuthenticationError';
1820
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
1821
+ }
1822
+ }
1823
+
1810
1824
  /**
1811
1825
  * This error indicates that the pipeline collection cannot be propperly loaded
1812
1826
  *
@@ -1935,6 +1949,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
1935
1949
  TypeError,
1936
1950
  URIError,
1937
1951
  AggregateError,
1952
+ AuthenticationError,
1938
1953
  /*
1939
1954
  Note: Not widely supported
1940
1955
  > InternalError,
@@ -2134,6 +2149,10 @@ function serializeError(error) {
2134
2149
 
2135
2150
  Cannot serialize error with name "${name}"
2136
2151
 
2152
+ Authors of Promptbook probably forgot to add this error into the list of errors:
2153
+ https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
2154
+
2155
+
2137
2156
  ${block(stack || message)}
2138
2157
 
2139
2158
  `));