@promptbook/remote-client 0.103.0-14 → 0.103.0-16

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.
Files changed (54) hide show
  1. package/esm/index.es.js +29 -3
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/browser.index.d.ts +6 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +2 -0
  5. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +23 -0
  6. package/esm/typings/src/book-components/BookEditor/BookEditorActionbar.d.ts +11 -0
  7. package/esm/typings/src/book-components/_common/Dropdown/Dropdown.d.ts +15 -0
  8. package/esm/typings/src/book-components/_common/Modal/Modal.d.ts +2 -2
  9. package/esm/typings/src/book-components/icons/AboutIcon.d.ts +9 -0
  10. package/esm/typings/src/book-components/icons/DownloadIcon.d.ts +9 -0
  11. package/esm/typings/src/book-components/icons/MenuIcon.d.ts +12 -0
  12. package/esm/typings/src/cli/cli-commands/_boilerplate.d.ts +2 -1
  13. package/esm/typings/src/cli/cli-commands/about.d.ts +2 -1
  14. package/esm/typings/src/cli/cli-commands/hello.d.ts +2 -1
  15. package/esm/typings/src/cli/cli-commands/list-models.d.ts +2 -1
  16. package/esm/typings/src/cli/cli-commands/list-scrapers.d.ts +2 -1
  17. package/esm/typings/src/cli/cli-commands/login.d.ts +2 -1
  18. package/esm/typings/src/cli/cli-commands/make.d.ts +2 -1
  19. package/esm/typings/src/cli/cli-commands/prettify.d.ts +2 -1
  20. package/esm/typings/src/cli/cli-commands/run.d.ts +2 -1
  21. package/esm/typings/src/cli/cli-commands/start-server.d.ts +2 -1
  22. package/esm/typings/src/cli/cli-commands/test-command.d.ts +2 -1
  23. package/esm/typings/src/cli/common/$addGlobalOptionsToCommand.d.ts +2 -1
  24. package/esm/typings/src/commands/_common/types/CommandParser.d.ts +4 -5
  25. package/esm/typings/src/config.d.ts +13 -1
  26. package/esm/typings/src/execution/utils/usage-constants.d.ts +4 -124
  27. package/esm/typings/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +2 -1
  28. package/esm/typings/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
  29. package/esm/typings/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +1 -12
  30. package/esm/typings/src/scrapers/_boilerplate/register-metadata.d.ts +1 -9
  31. package/esm/typings/src/scrapers/document/createDocumentScraper.d.ts +1 -12
  32. package/esm/typings/src/scrapers/document/register-metadata.d.ts +1 -9
  33. package/esm/typings/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +1 -12
  34. package/esm/typings/src/scrapers/document-legacy/register-metadata.d.ts +1 -9
  35. package/esm/typings/src/scrapers/markdown/createMarkdownScraper.d.ts +1 -12
  36. package/esm/typings/src/scrapers/markdown/register-metadata.d.ts +1 -9
  37. package/esm/typings/src/scrapers/markitdown/createMarkitdownScraper.d.ts +1 -12
  38. package/esm/typings/src/scrapers/markitdown/register-metadata.d.ts +1 -9
  39. package/esm/typings/src/scrapers/pdf/createPdfScraper.d.ts +1 -12
  40. package/esm/typings/src/scrapers/pdf/register-metadata.d.ts +1 -9
  41. package/esm/typings/src/scrapers/website/createWebsiteScraper.d.ts +1 -12
  42. package/esm/typings/src/scrapers/website/register-metadata.d.ts +1 -9
  43. package/esm/typings/src/storage/env-storage/$EnvStorage.d.ts +2 -1
  44. package/esm/typings/src/utils/execCommand/$execCommand.d.ts +2 -1
  45. package/esm/typings/src/utils/execCommand/$execCommands.d.ts +2 -1
  46. package/esm/typings/src/utils/files/$induceBookDownload.d.ts +13 -0
  47. package/esm/typings/src/utils/files/$induceFileDownload.d.ts +13 -0
  48. package/esm/typings/src/utils/files/ObjectUrl.d.ts +46 -0
  49. package/esm/typings/src/utils/organization/$side_effect.d.ts +7 -0
  50. package/esm/typings/src/utils/serialization/$deepFreeze.d.ts +2 -1
  51. package/esm/typings/src/version.d.ts +1 -1
  52. package/package.json +2 -2
  53. package/umd/index.umd.js +29 -3
  54. 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-14';
23
+ const PROMPTBOOK_ENGINE_VERSION = '0.103.0-16';
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
- * Dark color of the Promptbook
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
  *