@promptbook/remote-server 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 -42
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +61 -40
- package/umd/index.umd.js +43 -42
- 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/remote-server",
|
|
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,72 @@
|
|
|
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
|
+
"book-language",
|
|
34
|
+
"browser",
|
|
35
|
+
"chatbot",
|
|
36
|
+
"cloud",
|
|
37
|
+
"content-generation",
|
|
38
|
+
"conversational-ai",
|
|
39
|
+
"cross-platform",
|
|
40
|
+
"cross-provider",
|
|
41
|
+
"developer-tools",
|
|
42
|
+
"distributed",
|
|
43
|
+
"embeddings",
|
|
44
|
+
"function-calling",
|
|
45
|
+
"generative-ai",
|
|
46
|
+
"human-readable",
|
|
47
|
+
"javascript",
|
|
48
|
+
"knowledge-base",
|
|
21
49
|
"language-model",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
50
|
+
"large-language-models",
|
|
51
|
+
"llm",
|
|
52
|
+
"llmops",
|
|
24
53
|
"machine-learning",
|
|
54
|
+
"markdown-dsl",
|
|
55
|
+
"mlops",
|
|
56
|
+
"model-agnostic",
|
|
57
|
+
"multi-model",
|
|
58
|
+
"multimodal",
|
|
59
|
+
"natural-language",
|
|
25
60
|
"natural-language-processing",
|
|
26
61
|
"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",
|
|
62
|
+
"nodejs",
|
|
63
|
+
"orchestration",
|
|
64
|
+
"pipeline",
|
|
65
|
+
"plain-english",
|
|
66
|
+
"prompt",
|
|
67
|
+
"prompt-chaining",
|
|
51
68
|
"prompt-engineering",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"reasoning",
|
|
69
|
+
"prompt-management",
|
|
70
|
+
"prompt-template",
|
|
55
71
|
"rag",
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
72
|
+
"reasoning",
|
|
73
|
+
"remote-execution",
|
|
74
|
+
"server",
|
|
75
|
+
"task-automation",
|
|
76
|
+
"template",
|
|
60
77
|
"text-generation",
|
|
61
|
-
"
|
|
62
|
-
"
|
|
78
|
+
"text-processing",
|
|
79
|
+
"typescript",
|
|
80
|
+
"unified-interface",
|
|
81
|
+
"vendor-agnostic",
|
|
82
|
+
"workflow",
|
|
83
|
+
"workflow-engine"
|
|
63
84
|
],
|
|
64
85
|
"license": "BUSL-1.1",
|
|
65
86
|
"bugs": {
|
|
@@ -74,7 +95,7 @@
|
|
|
74
95
|
"module": "./esm/index.es.js",
|
|
75
96
|
"typings": "./esm/typings/src/_packages/remote-server.index.d.ts",
|
|
76
97
|
"peerDependencies": {
|
|
77
|
-
"@promptbook/core": "0.98.0
|
|
98
|
+
"@promptbook/core": "0.98.0"
|
|
78
99
|
},
|
|
79
100
|
"dependencies": {
|
|
80
101
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
* @generated
|
|
49
49
|
* @see https://github.com/webgptorg/promptbook
|
|
50
50
|
*/
|
|
51
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.98.0
|
|
51
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.98.0';
|
|
52
52
|
/**
|
|
53
53
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
54
54
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -6381,6 +6381,46 @@
|
|
|
6381
6381
|
return pipelineExecutor;
|
|
6382
6382
|
}
|
|
6383
6383
|
|
|
6384
|
+
/**
|
|
6385
|
+
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
6386
|
+
*
|
|
6387
|
+
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
6388
|
+
*
|
|
6389
|
+
* @public exported from `@promptbook/utils`
|
|
6390
|
+
*/
|
|
6391
|
+
const $isRunningInBrowser = new Function(`
|
|
6392
|
+
try {
|
|
6393
|
+
return this === window;
|
|
6394
|
+
} catch (e) {
|
|
6395
|
+
return false;
|
|
6396
|
+
}
|
|
6397
|
+
`);
|
|
6398
|
+
/**
|
|
6399
|
+
* TODO: [🎺]
|
|
6400
|
+
*/
|
|
6401
|
+
|
|
6402
|
+
/**
|
|
6403
|
+
* Detects if the code is running in a web worker
|
|
6404
|
+
*
|
|
6405
|
+
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
6406
|
+
*
|
|
6407
|
+
* @public exported from `@promptbook/utils`
|
|
6408
|
+
*/
|
|
6409
|
+
const $isRunningInWebWorker = new Function(`
|
|
6410
|
+
try {
|
|
6411
|
+
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
|
6412
|
+
return true;
|
|
6413
|
+
} else {
|
|
6414
|
+
return false;
|
|
6415
|
+
}
|
|
6416
|
+
} catch (e) {
|
|
6417
|
+
return false;
|
|
6418
|
+
}
|
|
6419
|
+
`);
|
|
6420
|
+
/**
|
|
6421
|
+
* TODO: [🎺]
|
|
6422
|
+
*/
|
|
6423
|
+
|
|
6384
6424
|
/**
|
|
6385
6425
|
* Register for LLM tools.
|
|
6386
6426
|
*
|
|
@@ -6549,8 +6589,10 @@
|
|
|
6549
6589
|
.list()
|
|
6550
6590
|
.find(({ packageName, className }) => llmConfiguration.packageName === packageName && llmConfiguration.className === className);
|
|
6551
6591
|
if (registeredItem === undefined) {
|
|
6592
|
+
// console.log('$llmToolsRegister.list()', $llmToolsRegister.list());
|
|
6552
6593
|
throw new Error(spaceTrim__default["default"]((block) => `
|
|
6553
6594
|
There is no constructor for LLM provider \`${llmConfiguration.className}\` from \`${llmConfiguration.packageName}\`
|
|
6595
|
+
Running in ${!$isRunningInBrowser() ? '' : 'browser environment'}${!$isRunningInNode() ? '' : 'node environment'}${!$isRunningInWebWorker() ? '' : 'worker environment'}
|
|
6554
6596
|
|
|
6555
6597
|
You have probably forgotten install and import the provider package.
|
|
6556
6598
|
To fix this issue, you can:
|
|
@@ -6668,24 +6710,6 @@
|
|
|
6668
6710
|
* TODO: [🌺] Use some intermediate util splitWords
|
|
6669
6711
|
*/
|
|
6670
6712
|
|
|
6671
|
-
/**
|
|
6672
|
-
* Detects if the code is running in a browser environment in main thread (Not in a web worker)
|
|
6673
|
-
*
|
|
6674
|
-
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
6675
|
-
*
|
|
6676
|
-
* @public exported from `@promptbook/utils`
|
|
6677
|
-
*/
|
|
6678
|
-
new Function(`
|
|
6679
|
-
try {
|
|
6680
|
-
return this === window;
|
|
6681
|
-
} catch (e) {
|
|
6682
|
-
return false;
|
|
6683
|
-
}
|
|
6684
|
-
`);
|
|
6685
|
-
/**
|
|
6686
|
-
* TODO: [🎺]
|
|
6687
|
-
*/
|
|
6688
|
-
|
|
6689
6713
|
/**
|
|
6690
6714
|
* Detects if the code is running in jest environment
|
|
6691
6715
|
*
|
|
@@ -6704,28 +6728,6 @@
|
|
|
6704
6728
|
* TODO: [🎺]
|
|
6705
6729
|
*/
|
|
6706
6730
|
|
|
6707
|
-
/**
|
|
6708
|
-
* Detects if the code is running in a web worker
|
|
6709
|
-
*
|
|
6710
|
-
* Note: `$` is used to indicate that this function is not a pure function - it looks at the global object to determine the environment
|
|
6711
|
-
*
|
|
6712
|
-
* @public exported from `@promptbook/utils`
|
|
6713
|
-
*/
|
|
6714
|
-
new Function(`
|
|
6715
|
-
try {
|
|
6716
|
-
if (typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope) {
|
|
6717
|
-
return true;
|
|
6718
|
-
} else {
|
|
6719
|
-
return false;
|
|
6720
|
-
}
|
|
6721
|
-
} catch (e) {
|
|
6722
|
-
return false;
|
|
6723
|
-
}
|
|
6724
|
-
`);
|
|
6725
|
-
/**
|
|
6726
|
-
* TODO: [🎺]
|
|
6727
|
-
*/
|
|
6728
|
-
|
|
6729
6731
|
/**
|
|
6730
6732
|
* Makes first letter of a string uppercase
|
|
6731
6733
|
*
|
|
@@ -8317,7 +8319,6 @@
|
|
|
8317
8319
|
catch (error) {
|
|
8318
8320
|
assertsError(error);
|
|
8319
8321
|
socket.emit('error', serializeError(error));
|
|
8320
|
-
// <- TODO: [🚋] There is a problem with the remote server handling errors and sending them back to the client
|
|
8321
8322
|
}
|
|
8322
8323
|
finally {
|
|
8323
8324
|
socket.disconnect();
|