@promptbook/markitdown 0.89.0-5 โ†’ 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
@@ -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-5';
29
+ const PROMPTBOOK_ENGINE_VERSION = '0.89.0-7';
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
  /**
@@ -2134,6 +2135,19 @@ class CsvFormatError extends AbstractFormatError {
2134
2135
  }
2135
2136
  }
2136
2137
 
2138
+ /**
2139
+ * AuthenticationError is thrown from login function which is dependency of remote server
2140
+ *
2141
+ * @public exported from `@promptbook/core`
2142
+ */
2143
+ class AuthenticationError extends Error {
2144
+ constructor(message) {
2145
+ super(message);
2146
+ this.name = 'AuthenticationError';
2147
+ Object.setPrototypeOf(this, AuthenticationError.prototype);
2148
+ }
2149
+ }
2150
+
2137
2151
  /**
2138
2152
  * This error indicates that the pipeline collection cannot be propperly loaded
2139
2153
  *
@@ -2236,6 +2250,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
2236
2250
  TypeError,
2237
2251
  URIError,
2238
2252
  AggregateError,
2253
+ AuthenticationError,
2239
2254
  /*
2240
2255
  Note: Not widely supported
2241
2256
  > InternalError,
@@ -2435,6 +2450,10 @@ function serializeError(error) {
2435
2450
 
2436
2451
  Cannot serialize error with name "${name}"
2437
2452
 
2453
+ Authors of Promptbook probably forgot to add this error into the list of errors:
2454
+ https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
2455
+
2456
+
2438
2457
  ${block(stack || message)}
2439
2458
 
2440
2459
  `));