@promptbook/legacy-documents 0.101.0-20 → 0.101.0-21
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 +7 -69
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/DELETE/DELETE.d.ts +0 -24
- package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/GOAL/GOAL.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
- package/esm/typings/src/book-2.0/commitments/MEMORY/MEMORY.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/MESSAGE/MESSAGE.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/META/META.d.ts +0 -6
- package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +0 -6
- package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +0 -6
- package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +0 -24
- package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/SCENARIO/SCENARIO.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +0 -12
- package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
- package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +3 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +3 -0
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +3 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +2 -16
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +3 -0
- package/esm/typings/src/execution/PromptResult.d.ts +2 -4
- package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +2 -5
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +6 -2
- package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +3 -8
- package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -5
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
- package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -0
- package/esm/typings/src/llm-providers/mocked/test/joker.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/mocked/test/mocked-chat.test.d.ts +5 -0
- package/esm/typings/src/llm-providers/mocked/test/mocked-completion.test.d.ts +4 -0
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +3 -3
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +1 -0
- package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +3 -8
- package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -14
- package/esm/typings/src/scripting/_test/postprocessing.test.d.ts +1 -0
- package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +0 -1
- package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +2 -2
- package/esm/typings/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +7 -69
- package/umd/index.umd.js.map +1 -1
- package/esm/typings/src/book-components/Chat/examples/ChatMarkdownDemo.d.ts +0 -16
- package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +0 -10
- package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +0 -10
- package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +0 -81
- /package/esm/typings/src/{llm-providers/_common/profiles/test/llmProviderProfiles.test.d.ts → cli/test/ptbk.test.d.ts} +0 -0
package/esm/index.es.js
CHANGED
|
@@ -26,7 +26,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
|
|
|
26
26
|
* @generated
|
|
27
27
|
* @see https://github.com/webgptorg/promptbook
|
|
28
28
|
*/
|
|
29
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
|
29
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-21';
|
|
30
30
|
/**
|
|
31
31
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
32
32
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -3141,75 +3141,13 @@ function arrayableToArray(input) {
|
|
|
3141
3141
|
}
|
|
3142
3142
|
|
|
3143
3143
|
/**
|
|
3144
|
-
*
|
|
3145
|
-
* These profiles represent each provider as a virtual persona in chat interfaces
|
|
3146
|
-
*
|
|
3147
|
-
* @private !!!!
|
|
3144
|
+
* Profile for Multiple providers aggregation
|
|
3148
3145
|
*/
|
|
3149
|
-
const
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
color: '#10a37f', // OpenAI's signature green
|
|
3154
|
-
// Note: avatarSrc could be added when we have provider logos available
|
|
3155
|
-
},
|
|
3156
|
-
ANTHROPIC: {
|
|
3157
|
-
name: 'ANTHROPIC',
|
|
3158
|
-
fullname: 'Anthropic Claude',
|
|
3159
|
-
color: '#d97706', // Anthropic's orange/amber color
|
|
3160
|
-
},
|
|
3161
|
-
AZURE_OPENAI: {
|
|
3162
|
-
name: 'AZURE_OPENAI',
|
|
3163
|
-
fullname: 'Azure OpenAI',
|
|
3164
|
-
color: '#0078d4', // Microsoft Azure blue
|
|
3165
|
-
},
|
|
3166
|
-
GOOGLE: {
|
|
3167
|
-
name: 'GOOGLE',
|
|
3168
|
-
fullname: 'Google Gemini',
|
|
3169
|
-
color: '#4285f4', // Google blue
|
|
3170
|
-
},
|
|
3171
|
-
DEEPSEEK: {
|
|
3172
|
-
name: 'DEEPSEEK',
|
|
3173
|
-
fullname: 'DeepSeek',
|
|
3174
|
-
color: '#7c3aed', // Purple color for DeepSeek
|
|
3175
|
-
},
|
|
3176
|
-
OLLAMA: {
|
|
3177
|
-
name: 'OLLAMA',
|
|
3178
|
-
fullname: 'Ollama',
|
|
3179
|
-
color: '#059669', // Emerald green for local models
|
|
3180
|
-
},
|
|
3181
|
-
REMOTE: {
|
|
3182
|
-
name: 'REMOTE',
|
|
3183
|
-
fullname: 'Remote Server',
|
|
3184
|
-
color: '#6b7280', // Gray for remote/proxy connections
|
|
3185
|
-
},
|
|
3186
|
-
MOCKED_ECHO: {
|
|
3187
|
-
name: 'MOCKED_ECHO',
|
|
3188
|
-
fullname: 'Echo (Test)',
|
|
3189
|
-
color: '#8b5cf6', // Purple for test/mock tools
|
|
3190
|
-
},
|
|
3191
|
-
MOCKED_FAKE: {
|
|
3192
|
-
name: 'MOCKED_FAKE',
|
|
3193
|
-
fullname: 'Fake LLM (Test)',
|
|
3194
|
-
color: '#ec4899', // Pink for fake/test tools
|
|
3195
|
-
},
|
|
3196
|
-
VERCEL: {
|
|
3197
|
-
name: 'VERCEL',
|
|
3198
|
-
fullname: 'Vercel AI',
|
|
3199
|
-
color: '#000000', // Vercel's black
|
|
3200
|
-
},
|
|
3201
|
-
MULTIPLE: {
|
|
3202
|
-
name: 'MULTIPLE',
|
|
3203
|
-
fullname: 'Multiple Providers',
|
|
3204
|
-
color: '#6366f1', // Indigo for combined/multiple providers
|
|
3205
|
-
},
|
|
3146
|
+
const MULTIPLE_PROVIDER_PROFILE = {
|
|
3147
|
+
name: 'MULTIPLE',
|
|
3148
|
+
fullname: 'Multiple Providers',
|
|
3149
|
+
color: '#6366f1',
|
|
3206
3150
|
};
|
|
3207
|
-
/**
|
|
3208
|
-
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
3209
|
-
* TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
3210
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
3211
|
-
*/
|
|
3212
|
-
|
|
3213
3151
|
/**
|
|
3214
3152
|
* Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally.
|
|
3215
3153
|
*
|
|
@@ -3245,7 +3183,7 @@ class MultipleLlmExecutionTools {
|
|
|
3245
3183
|
`);
|
|
3246
3184
|
}
|
|
3247
3185
|
get profile() {
|
|
3248
|
-
return
|
|
3186
|
+
return MULTIPLE_PROVIDER_PROFILE;
|
|
3249
3187
|
}
|
|
3250
3188
|
/**
|
|
3251
3189
|
* Check the configuration of all execution tools
|