@promptbook/node 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 +30 -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 +30 -2
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -30,7 +30,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
30
30
|
* @generated
|
|
31
31
|
* @see https://github.com/webgptorg/promptbook
|
|
32
32
|
*/
|
|
33
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-
|
|
33
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.89.0-7';
|
|
34
34
|
/**
|
|
35
35
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
36
36
|
* Note: [๐] Ignore a discrepancy between file name and entity name
|
|
@@ -159,6 +159,7 @@ const DEFAULT_MAX_PARALLEL_COUNT = 5; // <- TODO: [๐คนโโ๏ธ]
|
|
|
159
159
|
*/
|
|
160
160
|
const DEFAULT_MAX_EXECUTION_ATTEMPTS = 10; // <- TODO: [๐คนโโ๏ธ]
|
|
161
161
|
// <- TODO: [๐] Make also `BOOKS_DIRNAME_ALTERNATIVES`
|
|
162
|
+
// TODO: !!!!!! Just .promptbook dir, hardocode others
|
|
162
163
|
/**
|
|
163
164
|
* Where to store the temporary downloads
|
|
164
165
|
*
|
|
@@ -175,6 +176,15 @@ const DEFAULT_DOWNLOAD_CACHE_DIRNAME = './.promptbook/download-cache';
|
|
|
175
176
|
* @public exported from `@promptbook/core`
|
|
176
177
|
*/
|
|
177
178
|
const DEFAULT_SCRAPE_CACHE_DIRNAME = './.promptbook/scrape-cache';
|
|
179
|
+
/*
|
|
180
|
+
TODO: [๐]
|
|
181
|
+
/**
|
|
182
|
+
* Id of application for the wizzard when using remote server
|
|
183
|
+
*
|
|
184
|
+
* @public exported from `@promptbook/core`
|
|
185
|
+
* /
|
|
186
|
+
ex-port const WIZZARD_APP_ID: string_app_id = 'wizzard';
|
|
187
|
+
*/
|
|
178
188
|
/**
|
|
179
189
|
* The name of the builded pipeline collection made by CLI `ptbk make` and for lookup in `createCollectionFromDirectory`
|
|
180
190
|
*
|
|
@@ -216,7 +226,7 @@ const IS_PIPELINE_LOGIC_VALIDATED = just(
|
|
|
216
226
|
true);
|
|
217
227
|
/**
|
|
218
228
|
* Note: [๐] Ignore a discrepancy between file name and entity name
|
|
219
|
-
* TODO: [๐ง ][๐งโโ๏ธ] Maybe join
|
|
229
|
+
* TODO: [๐ง ][๐งโโ๏ธ] Maybe join remoteServerUrl and path into single value
|
|
220
230
|
*/
|
|
221
231
|
|
|
222
232
|
/**
|
|
@@ -1684,6 +1694,19 @@ class CsvFormatError extends AbstractFormatError {
|
|
|
1684
1694
|
}
|
|
1685
1695
|
}
|
|
1686
1696
|
|
|
1697
|
+
/**
|
|
1698
|
+
* AuthenticationError is thrown from login function which is dependency of remote server
|
|
1699
|
+
*
|
|
1700
|
+
* @public exported from `@promptbook/core`
|
|
1701
|
+
*/
|
|
1702
|
+
class AuthenticationError extends Error {
|
|
1703
|
+
constructor(message) {
|
|
1704
|
+
super(message);
|
|
1705
|
+
this.name = 'AuthenticationError';
|
|
1706
|
+
Object.setPrototypeOf(this, AuthenticationError.prototype);
|
|
1707
|
+
}
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1687
1710
|
/**
|
|
1688
1711
|
* This error indicates that the pipeline collection cannot be propperly loaded
|
|
1689
1712
|
*
|
|
@@ -1812,6 +1835,7 @@ const COMMON_JAVASCRIPT_ERRORS = {
|
|
|
1812
1835
|
TypeError,
|
|
1813
1836
|
URIError,
|
|
1814
1837
|
AggregateError,
|
|
1838
|
+
AuthenticationError,
|
|
1815
1839
|
/*
|
|
1816
1840
|
Note: Not widely supported
|
|
1817
1841
|
> InternalError,
|
|
@@ -2011,6 +2035,10 @@ function serializeError(error) {
|
|
|
2011
2035
|
|
|
2012
2036
|
Cannot serialize error with name "${name}"
|
|
2013
2037
|
|
|
2038
|
+
Authors of Promptbook probably forgot to add this error into the list of errors:
|
|
2039
|
+
https://github.com/webgptorg/promptbook/blob/main/src/errors/0-index.ts
|
|
2040
|
+
|
|
2041
|
+
|
|
2014
2042
|
${block(stack || message)}
|
|
2015
2043
|
|
|
2016
2044
|
`));
|