@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 +21 -2
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +8 -4
- package/esm/typings/src/_packages/remote-client.index.d.ts +0 -2
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +7 -0
- package/esm/typings/src/cli/common/$provideLlmToolsForCli.d.ts +15 -0
- package/esm/typings/src/config.d.ts +15 -8
- package/esm/typings/src/errors/0-index.d.ts +3 -0
- package/esm/typings/src/errors/AuthenticationError.d.ts +9 -0
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizzardOrCli.d.ts +34 -1
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +1 -1
- package/esm/typings/src/llm-providers/anthropic-claude/register-configuration.d.ts +1 -1
- package/esm/typings/src/remote-server/types/RemoteClientOptions.d.ts +2 -10
- package/esm/typings/src/remote-server/types/RemoteServerOptions.d.ts +30 -2
- package/package.json +2 -2
- package/umd/index.umd.js +21 -2
- package/umd/index.umd.js.map +1 -1
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-
|
|
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
|
|
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
|
`));
|