@promptbook/wizard 0.104.0-16 → 0.104.0-18
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 +15 -57
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/core.index.d.ts +8 -6
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +1 -1
- package/esm/typings/src/config.d.ts +8 -1
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +15 -57
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/servers.d.ts +0 -50
package/esm/index.es.js
CHANGED
|
@@ -36,62 +36,12 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
36
36
|
* @generated
|
|
37
37
|
* @see https://github.com/webgptorg/promptbook
|
|
38
38
|
*/
|
|
39
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-
|
|
39
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.104.0-18';
|
|
40
40
|
/**
|
|
41
41
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
42
42
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* Core Promptbook server configuration.
|
|
47
|
-
*
|
|
48
|
-
* This server is also used for auto-federation in the Agents Server.
|
|
49
|
-
*
|
|
50
|
-
* @public exported from `@promptbook/core`
|
|
51
|
-
*/
|
|
52
|
-
const CORE_SERVER = {
|
|
53
|
-
title: 'Promptbook Core',
|
|
54
|
-
description: `Core Promptbook server used for auto-federation`,
|
|
55
|
-
owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
|
|
56
|
-
urls: ['https://core.ptbk.io/'],
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Available remote servers for the Promptbook
|
|
60
|
-
*
|
|
61
|
-
* @public exported from `@promptbook/core`
|
|
62
|
-
*/
|
|
63
|
-
const REMOTE_SERVER_URLS = [
|
|
64
|
-
{
|
|
65
|
-
title: 'Promptbook.Studio',
|
|
66
|
-
description: `Server of Promptbook.studio`,
|
|
67
|
-
owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
|
|
68
|
-
urls: [
|
|
69
|
-
'https://promptbook.s5.ptbk.io/',
|
|
70
|
-
// Note: Servers 1-4 are not running
|
|
71
|
-
],
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
title: 'Testing Agents',
|
|
75
|
-
description: `Testing Agents server on Vercel`,
|
|
76
|
-
owner: 'AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)',
|
|
77
|
-
urls: ['https://s6.ptbk.io/'],
|
|
78
|
-
},
|
|
79
|
-
CORE_SERVER,
|
|
80
|
-
/*
|
|
81
|
-
Note: Working on older version of Promptbook and not supported anymore
|
|
82
|
-
{
|
|
83
|
-
title: 'Pavol Promptbook Server',
|
|
84
|
-
description: `Personal server of Pavol Hejný with simple testing server, DO NOT USE IT FOR PRODUCTION`,
|
|
85
|
-
owner: 'Pavol Hejný <pavol@ptbk.io> (https://www.pavolhejny.com/)',
|
|
86
|
-
isAnonymousModeAllowed: true,
|
|
87
|
-
urls: ['https://api.pavolhejny.com/promptbook'],
|
|
88
|
-
},
|
|
89
|
-
*/
|
|
90
|
-
];
|
|
91
|
-
/**
|
|
92
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
93
|
-
*/
|
|
94
|
-
|
|
95
45
|
/**
|
|
96
46
|
* Trims string from all 4 sides
|
|
97
47
|
*
|
|
@@ -1233,9 +1183,10 @@ const DEFAULT_PIPELINE_COLLECTION_BASE_FILENAME = `index`;
|
|
|
1233
1183
|
/**
|
|
1234
1184
|
* Default remote server URL for the Promptbook
|
|
1235
1185
|
*
|
|
1186
|
+
* @deprecated !!!! Deprecate all pipelines server
|
|
1236
1187
|
* @public exported from `@promptbook/core`
|
|
1237
1188
|
*/
|
|
1238
|
-
const DEFAULT_REMOTE_SERVER_URL =
|
|
1189
|
+
const DEFAULT_REMOTE_SERVER_URL = `https://promptbook.s5.ptbk.io/`;
|
|
1239
1190
|
// <- TODO: [🧜♂️]
|
|
1240
1191
|
/**
|
|
1241
1192
|
* Default settings for parsing and generating CSV files in Promptbook.
|
|
@@ -16800,6 +16751,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
16800
16751
|
const updatedTools = existingTools.some((tool) => tool.name === 'web_browser')
|
|
16801
16752
|
? existingTools
|
|
16802
16753
|
: [
|
|
16754
|
+
// TODO: [🔰] Use through proper MCP server
|
|
16803
16755
|
...existingTools,
|
|
16804
16756
|
{
|
|
16805
16757
|
name: 'web_browser',
|
|
@@ -16987,13 +16939,18 @@ class UseSearchEngineCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
16987
16939
|
? existingTools
|
|
16988
16940
|
: [
|
|
16989
16941
|
...existingTools,
|
|
16942
|
+
{ type: 'web_search' },
|
|
16943
|
+
// <- Note: [🔰] This is just using simple native search tool by OpenAI @see https://platform.openai.com/docs/guides/tools-web-search
|
|
16944
|
+
// In future we will use proper MCP search tool:
|
|
16945
|
+
/*
|
|
16946
|
+
|
|
16990
16947
|
{
|
|
16991
16948
|
name: 'web_search',
|
|
16992
|
-
description: spaceTrim
|
|
16993
|
-
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16949
|
+
description: spaceTrim(`
|
|
16950
|
+
Search the internet for information.
|
|
16951
|
+
Use this tool when you need to find up-to-date information or facts that you don't know.
|
|
16952
|
+
${!content ? '' : `Search scope / instructions: ${content}`}
|
|
16953
|
+
`),
|
|
16997
16954
|
parameters: {
|
|
16998
16955
|
type: 'object',
|
|
16999
16956
|
properties: {
|
|
@@ -17005,6 +16962,7 @@ class UseSearchEngineCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
17005
16962
|
required: ['query'],
|
|
17006
16963
|
},
|
|
17007
16964
|
},
|
|
16965
|
+
*/
|
|
17008
16966
|
];
|
|
17009
16967
|
// Return requirements with updated tools and metadata
|
|
17010
16968
|
return {
|