@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.
- package/esm/index.es.js +20 -12
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +14 -0
- package/esm/typings/src/_packages/core.index.d.ts +4 -0
- package/esm/typings/src/_packages/types.index.d.ts +8 -0
- package/esm/typings/src/book-2.0/commitments/_misc/AgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +26 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileFromSource.d.ts +19 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +15 -0
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +128 -0
- package/esm/typings/src/book-components/Chat/interfaces/ChatMessage.d.ts +16 -0
- package/esm/typings/src/book-components/Chat/interfaces/ChatParticipant.d.ts +12 -0
- package/esm/typings/src/book-components/Chat/utils/ExportFormat.d.ts +4 -0
- package/esm/typings/src/book-components/Chat/utils/addUtmParamsToUrl.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/createShortLinkForChat.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/downloadFile.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/utils/exportChatHistory.d.ts +11 -0
- package/esm/typings/src/book-components/Chat/utils/generatePdfContent.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/generateQrDataUrl.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/getPromptbookBranding.d.ts +6 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToHtml.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToJson.d.ts +7 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToMarkdown.d.ts +10 -0
- package/esm/typings/src/book-components/Chat/utils/messagesToText.d.ts +10 -0
- package/esm/typings/src/config.d.ts +13 -0
- package/esm/typings/src/execution/ExecutionTask.d.ts +12 -13
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +8 -0
- package/esm/typings/src/playground/permanent/error-handling-playground.d.ts +5 -0
- package/esm/typings/src/utils/organization/preserve.d.ts +21 -0
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -3
- package/umd/index.umd.js +24 -16
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/scripting/javascript/utils/preserve.d.ts +0 -14
package/esm/index.es.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import spaceTrim, { spaceTrim as spaceTrim$1 } from 'spacetrim';
|
|
2
|
-
import { format } from 'prettier';
|
|
3
2
|
import parserHtml from 'prettier/parser-html';
|
|
3
|
+
import parserMarkdown from 'prettier/parser-markdown';
|
|
4
|
+
import { format } from 'prettier/standalone';
|
|
4
5
|
|
|
5
6
|
// ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
|
|
6
7
|
/**
|
|
@@ -16,7 +17,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
16
17
|
* @generated
|
|
17
18
|
* @see https://github.com/webgptorg/promptbook
|
|
18
19
|
*/
|
|
19
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-
|
|
20
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.100.0-46';
|
|
20
21
|
/**
|
|
21
22
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
22
23
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -190,6 +191,13 @@ Object.freeze({
|
|
|
190
191
|
newline: '\n',
|
|
191
192
|
skipEmptyLines: true,
|
|
192
193
|
});
|
|
194
|
+
/**
|
|
195
|
+
* API request timeout in milliseconds
|
|
196
|
+
* Can be overridden via API_REQUEST_TIMEOUT environment variable
|
|
197
|
+
*
|
|
198
|
+
* @public exported from `@promptbook/core`
|
|
199
|
+
*/
|
|
200
|
+
parseInt(process.env.API_REQUEST_TIMEOUT || '90000');
|
|
193
201
|
/**
|
|
194
202
|
* Indicates whether pipeline logic validation is enabled. When true, the pipeline logic is checked for consistency.
|
|
195
203
|
*
|
|
@@ -382,7 +390,7 @@ function prettifyMarkdown(content) {
|
|
|
382
390
|
try {
|
|
383
391
|
return format(content, {
|
|
384
392
|
parser: 'markdown',
|
|
385
|
-
plugins: [parserHtml],
|
|
393
|
+
plugins: [parserMarkdown, parserHtml],
|
|
386
394
|
// TODO: DRY - make some import or auto-copy of .prettierrc
|
|
387
395
|
endOfLine: 'lf',
|
|
388
396
|
tabWidth: 4,
|
|
@@ -1589,7 +1597,7 @@ function getTemplatesPipelineCollection() {
|
|
|
1589
1597
|
"preparations": [
|
|
1590
1598
|
{
|
|
1591
1599
|
"id": 1,
|
|
1592
|
-
"promptbookVersion": "0.100.0-
|
|
1600
|
+
"promptbookVersion": "0.100.0-45",
|
|
1593
1601
|
"usage": {
|
|
1594
1602
|
"price": {
|
|
1595
1603
|
"value": 0.040614
|
|
@@ -2172,7 +2180,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2172
2180
|
"preparations": [
|
|
2173
2181
|
{
|
|
2174
2182
|
"id": 1,
|
|
2175
|
-
"promptbookVersion": "0.100.0-
|
|
2183
|
+
"promptbookVersion": "0.100.0-45",
|
|
2176
2184
|
"usage": {
|
|
2177
2185
|
"price": {
|
|
2178
2186
|
"value": 0.040614
|
|
@@ -2878,7 +2886,7 @@ function getTemplatesPipelineCollection() {
|
|
|
2878
2886
|
"preparations": [
|
|
2879
2887
|
{
|
|
2880
2888
|
"id": 1,
|
|
2881
|
-
"promptbookVersion": "0.100.0-
|
|
2889
|
+
"promptbookVersion": "0.100.0-45",
|
|
2882
2890
|
"usage": {
|
|
2883
2891
|
"price": {
|
|
2884
2892
|
"value": 0.038256
|
|
@@ -3026,7 +3034,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3026
3034
|
"preparations": [
|
|
3027
3035
|
{
|
|
3028
3036
|
"id": 1,
|
|
3029
|
-
"promptbookVersion": "0.100.0-
|
|
3037
|
+
"promptbookVersion": "0.100.0-45",
|
|
3030
3038
|
"usage": {
|
|
3031
3039
|
"price": {
|
|
3032
3040
|
"value": 0.038181
|
|
@@ -3122,7 +3130,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3122
3130
|
"preparations": [
|
|
3123
3131
|
{
|
|
3124
3132
|
"id": 1,
|
|
3125
|
-
"promptbookVersion": "0.100.0-
|
|
3133
|
+
"promptbookVersion": "0.100.0-45",
|
|
3126
3134
|
"usage": {
|
|
3127
3135
|
"price": {
|
|
3128
3136
|
"value": 0
|
|
@@ -3271,7 +3279,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3271
3279
|
"preparations": [
|
|
3272
3280
|
{
|
|
3273
3281
|
"id": 1,
|
|
3274
|
-
"promptbookVersion": "0.100.0-
|
|
3282
|
+
"promptbookVersion": "0.100.0-45",
|
|
3275
3283
|
"usage": {
|
|
3276
3284
|
"price": {
|
|
3277
3285
|
"value": 0.038508
|
|
@@ -3421,7 +3429,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3421
3429
|
"preparations": [
|
|
3422
3430
|
{
|
|
3423
3431
|
"id": 1,
|
|
3424
|
-
"promptbookVersion": "0.100.0-
|
|
3432
|
+
"promptbookVersion": "0.100.0-45",
|
|
3425
3433
|
"usage": {
|
|
3426
3434
|
"price": {
|
|
3427
3435
|
"value": 0.036648
|
|
@@ -3754,7 +3762,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3754
3762
|
"preparations": [
|
|
3755
3763
|
{
|
|
3756
3764
|
"id": 1,
|
|
3757
|
-
"promptbookVersion": "0.100.0-
|
|
3765
|
+
"promptbookVersion": "0.100.0-45",
|
|
3758
3766
|
"usage": {
|
|
3759
3767
|
"price": {
|
|
3760
3768
|
"value": 0.039036
|
|
@@ -3901,7 +3909,7 @@ function getTemplatesPipelineCollection() {
|
|
|
3901
3909
|
"preparations": [
|
|
3902
3910
|
{
|
|
3903
3911
|
"id": 1,
|
|
3904
|
-
"promptbookVersion": "0.100.0-
|
|
3912
|
+
"promptbookVersion": "0.100.0-45",
|
|
3905
3913
|
"usage": {
|
|
3906
3914
|
"price": {
|
|
3907
3915
|
"value": 0.038313
|