@promptbook/documents 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
|
@@ -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-
|
|
31
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-7';
|
|
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
|
|
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
|
`));
|