@promptbook/templates 0.100.0-44 → 0.100.0-46

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 (34) hide show
  1. package/esm/index.es.js +20 -12
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/components.index.d.ts +14 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +4 -0
  5. package/esm/typings/src/_packages/types.index.d.ts +8 -0
  6. package/esm/typings/src/book-2.0/commitments/_misc/AgentModelRequirements.d.ts +1 -1
  7. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +26 -0
  8. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource.d.ts +19 -0
  9. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +15 -0
  10. package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +128 -0
  11. package/esm/typings/src/book-components/Chat/interfaces/ChatMessage.d.ts +16 -0
  12. package/esm/typings/src/book-components/Chat/interfaces/ChatParticipant.d.ts +12 -0
  13. package/esm/typings/src/book-components/Chat/utils/ExportFormat.d.ts +4 -0
  14. package/esm/typings/src/book-components/Chat/utils/addUtmParamsToUrl.d.ts +7 -0
  15. package/esm/typings/src/book-components/Chat/utils/createShortLinkForChat.d.ts +7 -0
  16. package/esm/typings/src/book-components/Chat/utils/downloadFile.d.ts +6 -0
  17. package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +11 -0
  18. package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +10 -0
  19. package/esm/typings/src/book-components/Chat/utils/generateQrDataUrl.d.ts +7 -0
  20. package/esm/typings/src/book-components/Chat/utils/getPromptbookBranding.d.ts +6 -0
  21. package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +10 -0
  22. package/esm/typings/src/book-components/Chat/utils/messagesToJson.d.ts +7 -0
  23. package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +10 -0
  24. package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +10 -0
  25. package/esm/typings/src/config.d.ts +13 -0
  26. package/esm/typings/src/execution/ExecutionTask.d.ts +12 -13
  27. package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +8 -0
  28. package/esm/typings/src/playground/permanent/error-handling-playground.d.ts +5 -0
  29. package/esm/typings/src/utils/organization/preserve.d.ts +21 -0
  30. package/esm/typings/src/version.d.ts +1 -1
  31. package/package.json +2 -3
  32. package/umd/index.umd.js +24 -16
  33. package/umd/index.umd.js.map +1 -1
  34. package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +0 -14
package/umd/index.umd.js CHANGED
@@ -1,13 +1,14 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('prettier'), require('prettier/parser-html')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'prettier', 'prettier/parser-html'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-templates"] = {}, global.spaceTrim, global.prettier, global.parserHtml));
5
- })(this, (function (exports, spaceTrim, prettier, parserHtml) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('prettier/parser-html'), require('prettier/parser-markdown'), require('prettier/standalone')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'prettier/parser-html', 'prettier/parser-markdown', 'prettier/standalone'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-templates"] = {}, global.spaceTrim, global.parserHtml, global.parserMarkdown, global.standalone));
5
+ })(this, (function (exports, spaceTrim, parserHtml, parserMarkdown, standalone) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
9
  var spaceTrim__default = /*#__PURE__*/_interopDefaultLegacy(spaceTrim);
10
10
  var parserHtml__default = /*#__PURE__*/_interopDefaultLegacy(parserHtml);
11
+ var parserMarkdown__default = /*#__PURE__*/_interopDefaultLegacy(parserMarkdown);
11
12
 
12
13
  // ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
13
14
  /**
@@ -23,7 +24,7 @@
23
24
  * @generated
24
25
  * @see https://github.com/webgptorg/promptbook
25
26
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.100.0-44';
27
+ const PROMPTBOOK_ENGINE_VERSION = '0.100.0-46';
27
28
  /**
28
29
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
30
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -197,6 +198,13 @@
197
198
  newline: '\n',
198
199
  skipEmptyLines: true,
199
200
  });
201
+ /**
202
+ * API request timeout in milliseconds
203
+ * Can be overridden via API_REQUEST_TIMEOUT environment variable
204
+ *
205
+ * @public exported from `@promptbook/core`
206
+ */
207
+ parseInt(process.env.API_REQUEST_TIMEOUT || '90000');
200
208
  /**
201
209
  * Indicates whether pipeline logic validation is enabled. When true, the pipeline logic is checked for consistency.
202
210
  *
@@ -387,9 +395,9 @@
387
395
  */
388
396
  function prettifyMarkdown(content) {
389
397
  try {
390
- return prettier.format(content, {
398
+ return standalone.format(content, {
391
399
  parser: 'markdown',
392
- plugins: [parserHtml__default["default"]],
400
+ plugins: [parserMarkdown__default["default"], parserHtml__default["default"]],
393
401
  // TODO: DRY - make some import or auto-copy of .prettierrc
394
402
  endOfLine: 'lf',
395
403
  tabWidth: 4,
@@ -1596,7 +1604,7 @@
1596
1604
  "preparations": [
1597
1605
  {
1598
1606
  "id": 1,
1599
- "promptbookVersion": "0.100.0-43",
1607
+ "promptbookVersion": "0.100.0-45",
1600
1608
  "usage": {
1601
1609
  "price": {
1602
1610
  "value": 0.040614
@@ -2179,7 +2187,7 @@
2179
2187
  "preparations": [
2180
2188
  {
2181
2189
  "id": 1,
2182
- "promptbookVersion": "0.100.0-43",
2190
+ "promptbookVersion": "0.100.0-45",
2183
2191
  "usage": {
2184
2192
  "price": {
2185
2193
  "value": 0.040614
@@ -2885,7 +2893,7 @@
2885
2893
  "preparations": [
2886
2894
  {
2887
2895
  "id": 1,
2888
- "promptbookVersion": "0.100.0-43",
2896
+ "promptbookVersion": "0.100.0-45",
2889
2897
  "usage": {
2890
2898
  "price": {
2891
2899
  "value": 0.038256
@@ -3033,7 +3041,7 @@
3033
3041
  "preparations": [
3034
3042
  {
3035
3043
  "id": 1,
3036
- "promptbookVersion": "0.100.0-43",
3044
+ "promptbookVersion": "0.100.0-45",
3037
3045
  "usage": {
3038
3046
  "price": {
3039
3047
  "value": 0.038181
@@ -3129,7 +3137,7 @@
3129
3137
  "preparations": [
3130
3138
  {
3131
3139
  "id": 1,
3132
- "promptbookVersion": "0.100.0-43",
3140
+ "promptbookVersion": "0.100.0-45",
3133
3141
  "usage": {
3134
3142
  "price": {
3135
3143
  "value": 0
@@ -3278,7 +3286,7 @@
3278
3286
  "preparations": [
3279
3287
  {
3280
3288
  "id": 1,
3281
- "promptbookVersion": "0.100.0-43",
3289
+ "promptbookVersion": "0.100.0-45",
3282
3290
  "usage": {
3283
3291
  "price": {
3284
3292
  "value": 0.038508
@@ -3428,7 +3436,7 @@
3428
3436
  "preparations": [
3429
3437
  {
3430
3438
  "id": 1,
3431
- "promptbookVersion": "0.100.0-43",
3439
+ "promptbookVersion": "0.100.0-45",
3432
3440
  "usage": {
3433
3441
  "price": {
3434
3442
  "value": 0.036648
@@ -3761,7 +3769,7 @@
3761
3769
  "preparations": [
3762
3770
  {
3763
3771
  "id": 1,
3764
- "promptbookVersion": "0.100.0-43",
3772
+ "promptbookVersion": "0.100.0-45",
3765
3773
  "usage": {
3766
3774
  "price": {
3767
3775
  "value": 0.039036
@@ -3908,7 +3916,7 @@
3908
3916
  "preparations": [
3909
3917
  {
3910
3918
  "id": 1,
3911
- "promptbookVersion": "0.100.0-43",
3919
+ "promptbookVersion": "0.100.0-45",
3912
3920
  "usage": {
3913
3921
  "price": {
3914
3922
  "value": 0.038313