@promptbook/node 0.98.0-8 → 0.98.0
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/README.md +0 -4
- package/esm/index.es.js +43 -41
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +59 -40
- package/umd/index.umd.js +43 -41
- package/umd/index.umd.js.map +1 -1
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.98.0-
|
|
18
|
+
* It follows semantic versioning (e.g., `0.98.0-10`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/node",
|
|
3
|
-
"version": "0.98.0
|
|
3
|
+
"version": "0.98.0",
|
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -15,51 +15,70 @@
|
|
|
15
15
|
],
|
|
16
16
|
"keywords": [
|
|
17
17
|
"ai",
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
18
|
+
"ai-agents",
|
|
19
|
+
"ai-application-framework",
|
|
20
|
+
"ai-assistant",
|
|
21
|
+
"ai-automation",
|
|
22
|
+
"ai-development",
|
|
23
|
+
"ai-framework",
|
|
24
|
+
"ai-ops",
|
|
25
|
+
"ai-orchestration",
|
|
26
|
+
"ai-pipeline",
|
|
27
|
+
"ai-platform",
|
|
28
|
+
"ai-scripting",
|
|
29
|
+
"ai-sdk",
|
|
30
|
+
"ai-workflow",
|
|
31
|
+
"api-integration",
|
|
32
|
+
"automation-framework",
|
|
33
|
+
"backend",
|
|
34
|
+
"book-language",
|
|
35
|
+
"browser",
|
|
36
|
+
"chatbot",
|
|
37
|
+
"content-generation",
|
|
38
|
+
"conversational-ai",
|
|
39
|
+
"cross-platform",
|
|
40
|
+
"cross-provider",
|
|
41
|
+
"developer-tools",
|
|
42
|
+
"embeddings",
|
|
43
|
+
"function-calling",
|
|
44
|
+
"generative-ai",
|
|
45
|
+
"human-readable",
|
|
46
|
+
"javascript",
|
|
47
|
+
"knowledge-base",
|
|
21
48
|
"language-model",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
49
|
+
"large-language-models",
|
|
50
|
+
"llm",
|
|
51
|
+
"llmops",
|
|
24
52
|
"machine-learning",
|
|
53
|
+
"markdown-dsl",
|
|
54
|
+
"mlops",
|
|
55
|
+
"model-agnostic",
|
|
56
|
+
"multi-model",
|
|
57
|
+
"multimodal",
|
|
58
|
+
"natural-language",
|
|
25
59
|
"natural-language-processing",
|
|
26
60
|
"nlp",
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"gpt-4o",
|
|
34
|
-
"gpt-4o-mini",
|
|
35
|
-
"o1",
|
|
36
|
-
"o1-mini",
|
|
37
|
-
"o1-preview",
|
|
38
|
-
"anthropic",
|
|
39
|
-
"claude",
|
|
40
|
-
"claude-3",
|
|
41
|
-
"claude-3-opus",
|
|
42
|
-
"claude-3-sonnet",
|
|
43
|
-
"claude-3-haiku",
|
|
44
|
-
"gemini",
|
|
45
|
-
"gemini-pro",
|
|
46
|
-
"gemini-flash",
|
|
47
|
-
"mixtral",
|
|
48
|
-
"mistral",
|
|
49
|
-
"ollama",
|
|
50
|
-
"ai-orchestration",
|
|
61
|
+
"nodejs",
|
|
62
|
+
"orchestration",
|
|
63
|
+
"pipeline",
|
|
64
|
+
"plain-english",
|
|
65
|
+
"prompt",
|
|
66
|
+
"prompt-chaining",
|
|
51
67
|
"prompt-engineering",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"reasoning",
|
|
68
|
+
"prompt-management",
|
|
69
|
+
"prompt-template",
|
|
55
70
|
"rag",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
71
|
+
"reasoning",
|
|
72
|
+
"server-side",
|
|
73
|
+
"task-automation",
|
|
74
|
+
"template",
|
|
60
75
|
"text-generation",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
76
|
+
"text-processing",
|
|
77
|
+
"typescript",
|
|
78
|
+
"unified-interface",
|
|
79
|
+
"vendor-agnostic",
|
|
80
|
+
"workflow",
|
|
81
|
+
"workflow-engine"
|
|
63
82
|
],
|
|
64
83
|
"license": "BUSL-1.1",
|
|
65
84
|
"bugs": {
|
|
@@ -74,7 +93,7 @@
|
|
|
74
93
|
"module": "./esm/index.es.js",
|
|
75
94
|
"typings": "./esm/typings/src/_packages/node.index.d.ts",
|
|
76
95
|
"peerDependencies": {
|
|
77
|
-
"@promptbook/core": "0.98.0
|
|
96
|
+
"@promptbook/core": "0.98.0"
|
|
78
97
|
},
|
|
79
98
|
"dependencies": {
|
|
80
99
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
* @generated
|
|
47
47
|
* @see https://github.com/webgptorg/promptbook
|
|
48
48
|
*/
|
|
49
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.98.0
|
|
49
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.98.0';
|
|
50
50
|
/**
|
|
51
51
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
52
52
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -10194,6 +10194,46 @@
|
|
|
10194
10194
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
10195
10195
|
*/
|
|
10196
10196
|
|
|
10197
|
+
/**
|
|
10198
|
+
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
10199
|
+
*
|
|
10200
|
+
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
10201
|
+
*
|
|
10202
|
+
* @public exported from `@promptbook/utils`
|
|
10203
|
+
*/
|
|
10204
|
+
const $isRunningInBrowser = new Function(`
|
|
10205
|
+
try {
|
|
10206
|
+
return this === window;
|
|
10207
|
+
} catch (e) {
|
|
10208
|
+
return false;
|
|
10209
|
+
}
|
|
10210
|
+
`);
|
|
10211
|
+
/**
|
|
10212
|
+
* TODO: [🎺]
|
|
10213
|
+
*/
|
|
10214
|
+
|
|
10215
|
+
/**
|
|
10216
|
+
* Detects if the code is running in a web worker
|
|
10217
|
+
*
|
|
10218
|
+
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
10219
|
+
*
|
|
10220
|
+
* @public exported from `@promptbook/utils`
|
|
10221
|
+
*/
|
|
10222
|
+
const $isRunningInWebWorker = new Function(`
|
|
10223
|
+
try {
|
|
10224
|
+
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
|
10225
|
+
return true;
|
|
10226
|
+
} else {
|
|
10227
|
+
return false;
|
|
10228
|
+
}
|
|
10229
|
+
} catch (e) {
|
|
10230
|
+
return false;
|
|
10231
|
+
}
|
|
10232
|
+
`);
|
|
10233
|
+
/**
|
|
10234
|
+
* TODO: [🎺]
|
|
10235
|
+
*/
|
|
10236
|
+
|
|
10197
10237
|
/**
|
|
10198
10238
|
* Creates LLM execution tools from provided configuration objects
|
|
10199
10239
|
*
|
|
@@ -10214,8 +10254,10 @@
|
|
|
10214
10254
|
.list()
|
|
10215
10255
|
.find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
|
|
10216
10256
|
if (registeredItem === undefined) {
|
|
10257
|
+
// console.log('$llmToolsRegister.list()', $llmToolsRegister.list());
|
|
10217
10258
|
throw new Error(spaceTrim__default["default"]((block) => `
|
|
10218
10259
|
There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
|
|
10260
|
+
Running in ${!$isRunningInBrowser() ? '' : 'browser environment'}${!$isRunningInNode() ? '' : 'node environment'}${!$isRunningInWebWorker() ? '' : 'worker environment'}
|
|
10219
10261
|
|
|
10220
10262
|
You have probably forgotten install and import the provider package.
|
|
10221
10263
|
To fix this issue, you can:
|
|
@@ -10342,24 +10384,6 @@
|
|
|
10342
10384
|
* Note: [🟢] Code in this file should never be never released in packages that could be imported into browser environment
|
|
10343
10385
|
*/
|
|
10344
10386
|
|
|
10345
|
-
/**
|
|
10346
|
-
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
10347
|
-
*
|
|
10348
|
-
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
10349
|
-
*
|
|
10350
|
-
* @public exported from `@promptbook/utils`
|
|
10351
|
-
*/
|
|
10352
|
-
new Function(`
|
|
10353
|
-
try {
|
|
10354
|
-
return this === window;
|
|
10355
|
-
} catch (e) {
|
|
10356
|
-
return false;
|
|
10357
|
-
}
|
|
10358
|
-
`);
|
|
10359
|
-
/**
|
|
10360
|
-
* TODO: [🎺]
|
|
10361
|
-
*/
|
|
10362
|
-
|
|
10363
10387
|
/**
|
|
10364
10388
|
* Detects if the code is running in jest environment
|
|
10365
10389
|
*
|
|
@@ -10378,28 +10402,6 @@
|
|
|
10378
10402
|
* TODO: [🎺]
|
|
10379
10403
|
*/
|
|
10380
10404
|
|
|
10381
|
-
/**
|
|
10382
|
-
* Detects if the code is running in a web worker
|
|
10383
|
-
*
|
|
10384
|
-
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
10385
|
-
*
|
|
10386
|
-
* @public exported from `@promptbook/utils`
|
|
10387
|
-
*/
|
|
10388
|
-
new Function(`
|
|
10389
|
-
try {
|
|
10390
|
-
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
|
10391
|
-
return true;
|
|
10392
|
-
} else {
|
|
10393
|
-
return false;
|
|
10394
|
-
}
|
|
10395
|
-
} catch (e) {
|
|
10396
|
-
return false;
|
|
10397
|
-
}
|
|
10398
|
-
`);
|
|
10399
|
-
/**
|
|
10400
|
-
* TODO: [🎺]
|
|
10401
|
-
*/
|
|
10402
|
-
|
|
10403
10405
|
/**
|
|
10404
10406
|
* Makes first letter of a string uppercase
|
|
10405
10407
|
*
|