@promptbook/remote-client 0.103.0-12 → 0.103.0-15
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 +29 -3
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/browser.index.d.ts +6 -0
- package/esm/typings/src/_packages/core.index.d.ts +2 -0
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +5 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +9 -0
- package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/about.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/hello.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/list-models.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/login.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/make.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/prettify.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/run.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/start-server.d.ts +2 -1
- package/esm/typings/src/cli/cli-commands/test-command.d.ts +2 -1
- package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +2 -1
- package/esm/typings/src/commands/_common/types/CommandParser.d.ts +4 -5
- package/esm/typings/src/config.d.ts +13 -1
- package/esm/typings/src/execution/utils/usage-constants.d.ts +4 -124
- package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +2 -1
- package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
- package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -9
- package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +1 -12
- package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -9
- package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +2 -1
- package/esm/typings/src/utils/execCommand/$execCommand.d.ts +2 -1
- package/esm/typings/src/utils/execCommand/$execCommands.d.ts +2 -1
- package/esm/typings/src/utils/files/$induceBookDownload.d.ts +13 -0
- package/esm/typings/src/utils/files/$induceFileDownload.d.ts +13 -0
- package/esm/typings/src/utils/files/ObjectUrl.d.ts +46 -0
- package/esm/typings/src/utils/organization/$side_effect.d.ts +7 -0
- package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +2 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +29 -3
- package/umd/index.umd.js.map +1 -1
package/esm/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
20
20
|
* @generated
|
|
21
21
|
* @see https://github.com/webgptorg/promptbook
|
|
22
22
|
*/
|
|
23
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-
|
|
23
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.103.0-15';
|
|
24
24
|
/**
|
|
25
25
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
26
26
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -1053,6 +1053,17 @@ function lighten(amount) {
|
|
|
1053
1053
|
* TODO: Maybe implement by mix+hsl
|
|
1054
1054
|
*/
|
|
1055
1055
|
|
|
1056
|
+
/**
|
|
1057
|
+
* Makes color transformer which darker the given color
|
|
1058
|
+
*
|
|
1059
|
+
* @param amount from 0 to 1
|
|
1060
|
+
*
|
|
1061
|
+
* @public exported from `@promptbook/color`
|
|
1062
|
+
*/
|
|
1063
|
+
function darken(amount) {
|
|
1064
|
+
return lighten(-amount);
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1056
1067
|
/**
|
|
1057
1068
|
* Calculates distance between two colors
|
|
1058
1069
|
*
|
|
@@ -1218,15 +1229,29 @@ const ADMIN_GITHUB_NAME = 'hejny';
|
|
|
1218
1229
|
* @public exported from `@promptbook/core`
|
|
1219
1230
|
*/
|
|
1220
1231
|
const PROMPTBOOK_COLOR = Color.fromHex('#79EAFD');
|
|
1221
|
-
// <- TODO: [🧠] Using `Color` here increases the package size approx 3kb, maybe remove it
|
|
1232
|
+
// <- TODO: [🧠][🈵] Using `Color` here increases the package size approx 3kb, maybe remove it
|
|
1233
|
+
/**
|
|
1234
|
+
* Colors for syntax highlighting in the `<BookEditor/>`
|
|
1235
|
+
*
|
|
1236
|
+
* TODO: [🗽] Unite branding and make single place for it
|
|
1237
|
+
*
|
|
1238
|
+
* @public exported from `@promptbook/core`
|
|
1239
|
+
*/
|
|
1240
|
+
({
|
|
1241
|
+
TITLE: PROMPTBOOK_COLOR.then(darken(0.5)),
|
|
1242
|
+
COMMITMENT: Color.fromHex('#DA0F78'),
|
|
1243
|
+
PARAMETER: Color.fromHex('#8e44ad'),
|
|
1244
|
+
});
|
|
1245
|
+
// <- TODO: [🧠][🈵] Using `Color` here increases the package size approx 3kb, maybe remove it
|
|
1222
1246
|
/**
|
|
1223
|
-
*
|
|
1247
|
+
* Chat color of the Promptbook (in chat)
|
|
1224
1248
|
*
|
|
1225
1249
|
* TODO: [🗽] Unite branding and make single place for it
|
|
1226
1250
|
*
|
|
1227
1251
|
* @public exported from `@promptbook/core`
|
|
1228
1252
|
*/
|
|
1229
1253
|
PROMPTBOOK_COLOR.then(lighten(0.1)).then(saturate(0.9)).then(grayscale(0.9));
|
|
1254
|
+
// <- TODO: [🧠][🈵] Using `Color` and `lighten`, `saturate`,... here increases the package size approx 3kb, maybe remove it
|
|
1230
1255
|
/**
|
|
1231
1256
|
* Color of the user (in chat)
|
|
1232
1257
|
*
|
|
@@ -1235,6 +1260,7 @@ PROMPTBOOK_COLOR.then(lighten(0.1)).then(saturate(0.9)).then(grayscale(0.9));
|
|
|
1235
1260
|
* @public exported from `@promptbook/core`
|
|
1236
1261
|
*/
|
|
1237
1262
|
Color.fromHex('#1D4ED8');
|
|
1263
|
+
// <- TODO: [🧠][🈵] Using `Color` here increases the package size approx 3kb, maybe remove it
|
|
1238
1264
|
/**
|
|
1239
1265
|
* When the title is not provided, the default title is used
|
|
1240
1266
|
*
|