@promptbook/node 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
@@ -1,15 +1,10 @@
|
|
1
|
+
import type { ChatParticipant } from '../../book-components/Chat/types/ChatParticipant';
|
1
2
|
import type { AvailableModel } from '../../execution/AvailableModel';
|
2
3
|
import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
|
3
|
-
import type { ChatPromptResult } from '../../execution/PromptResult';
|
4
|
-
import type { CompletionPromptResult } from '../../execution/PromptResult';
|
5
|
-
import type { EmbeddingPromptResult } from '../../execution/PromptResult';
|
4
|
+
import type { ChatPromptResult, CompletionPromptResult, EmbeddingPromptResult } from '../../execution/PromptResult';
|
6
5
|
import type { RemoteClientOptions } from '../../remote-server/types/RemoteClientOptions';
|
7
|
-
import type { ChatPrompt } from '../../types/Prompt';
|
8
|
-
import type {
|
9
|
-
import type { EmbeddingPrompt } from '../../types/Prompt';
|
10
|
-
import type { string_markdown } from '../../types/typeAliases';
|
11
|
-
import type { string_markdown_text } from '../../types/typeAliases';
|
12
|
-
import type { string_title } from '../../types/typeAliases';
|
6
|
+
import type { ChatPrompt, CompletionPrompt, EmbeddingPrompt } from '../../types/Prompt';
|
7
|
+
import type { string_markdown, string_markdown_text, string_title } from '../../types/typeAliases';
|
13
8
|
/**
|
14
9
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
15
10
|
*
|
@@ -24,11 +19,7 @@ export declare class RemoteLlmExecutionTools<TCustomOptions = undefined> impleme
|
|
24
19
|
constructor(options: RemoteClientOptions<TCustomOptions>);
|
25
20
|
get title(): string_title & string_markdown_text;
|
26
21
|
get description(): string_markdown;
|
27
|
-
get profile():
|
28
|
-
name: string;
|
29
|
-
fullname: string;
|
30
|
-
color: string;
|
31
|
-
};
|
22
|
+
get profile(): ChatParticipant;
|
32
23
|
/**
|
33
24
|
* Check the configuration of all execution tools
|
34
25
|
*/
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -10,5 +10,4 @@ import { string_markdown } from '../../types/typeAliases';
|
|
10
10
|
export declare function humanizeAiText(aiText: string_markdown): string_markdown;
|
11
11
|
/**
|
12
12
|
* TODO: [π§ ] Maybe this should be exported from `@promptbook/utils` not `@promptbook/markdown-utils`
|
13
|
-
* TODO: [π
ΎοΈ] !!! Use this across the project where AI text is involved
|
14
13
|
*/
|
@@ -2,11 +2,11 @@ import { string_markdown } from '../../types/typeAliases';
|
|
2
2
|
/**
|
3
3
|
* Function `promptbookifyAiText` will slightly modify the text so we know it was processed by Promptbook
|
4
4
|
*
|
5
|
+
* Note: [π] This function is idempotent.
|
6
|
+
*
|
5
7
|
* @public exported from `@promptbook/markdown-utils`
|
6
8
|
*/
|
7
9
|
export declare function promptbookifyAiText(text: string_markdown): string_markdown;
|
8
10
|
/**
|
9
|
-
* TODO: !!!!! Make the function idempotent and add "Note: [π] This function is idempotent."
|
10
|
-
* TODO: [π
ΎοΈ]!!! Use this across the project where AI text is involved
|
11
11
|
* TODO: [π§ ][βοΈ] Make some Promptbook-native token system
|
12
12
|
*/
|
@@ -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.101.0-
|
18
|
+
* It follows semantic versioning (e.g., `0.101.0-20`).
|
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.101.0-
|
3
|
+
"version": "0.101.0-21",
|
4
4
|
"description": "Promptbook: Run AI apps in plain human language across multiple models and platforms",
|
5
5
|
"private": false,
|
6
6
|
"sideEffects": false,
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"module": "./esm/index.es.js",
|
94
94
|
"typings": "./esm/typings/src/_packages/node.index.d.ts",
|
95
95
|
"peerDependencies": {
|
96
|
-
"@promptbook/core": "0.101.0-
|
96
|
+
"@promptbook/core": "0.101.0-21"
|
97
97
|
},
|
98
98
|
"dependencies": {
|
99
99
|
"colors": "1.4.0",
|
package/umd/index.umd.js
CHANGED
@@ -45,7 +45,7 @@
|
|
45
45
|
* @generated
|
46
46
|
* @see https://github.com/webgptorg/promptbook
|
47
47
|
*/
|
48
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-
|
48
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.101.0-21';
|
49
49
|
/**
|
50
50
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
51
51
|
* Note: [π] Ignore a discrepancy between file name and entity name
|
@@ -3047,75 +3047,13 @@
|
|
3047
3047
|
}
|
3048
3048
|
|
3049
3049
|
/**
|
3050
|
-
*
|
3051
|
-
* These profiles represent each provider as a virtual persona in chat interfaces
|
3052
|
-
*
|
3053
|
-
* @private !!!!
|
3050
|
+
* Profile for Multiple providers aggregation
|
3054
3051
|
*/
|
3055
|
-
const
|
3056
|
-
|
3057
|
-
|
3058
|
-
|
3059
|
-
color: '#10a37f', // OpenAI's signature green
|
3060
|
-
// Note: avatarSrc could be added when we have provider logos available
|
3061
|
-
},
|
3062
|
-
ANTHROPIC: {
|
3063
|
-
name: 'ANTHROPIC',
|
3064
|
-
fullname: 'Anthropic Claude',
|
3065
|
-
color: '#d97706', // Anthropic's orange/amber color
|
3066
|
-
},
|
3067
|
-
AZURE_OPENAI: {
|
3068
|
-
name: 'AZURE_OPENAI',
|
3069
|
-
fullname: 'Azure OpenAI',
|
3070
|
-
color: '#0078d4', // Microsoft Azure blue
|
3071
|
-
},
|
3072
|
-
GOOGLE: {
|
3073
|
-
name: 'GOOGLE',
|
3074
|
-
fullname: 'Google Gemini',
|
3075
|
-
color: '#4285f4', // Google blue
|
3076
|
-
},
|
3077
|
-
DEEPSEEK: {
|
3078
|
-
name: 'DEEPSEEK',
|
3079
|
-
fullname: 'DeepSeek',
|
3080
|
-
color: '#7c3aed', // Purple color for DeepSeek
|
3081
|
-
},
|
3082
|
-
OLLAMA: {
|
3083
|
-
name: 'OLLAMA',
|
3084
|
-
fullname: 'Ollama',
|
3085
|
-
color: '#059669', // Emerald green for local models
|
3086
|
-
},
|
3087
|
-
REMOTE: {
|
3088
|
-
name: 'REMOTE',
|
3089
|
-
fullname: 'Remote Server',
|
3090
|
-
color: '#6b7280', // Gray for remote/proxy connections
|
3091
|
-
},
|
3092
|
-
MOCKED_ECHO: {
|
3093
|
-
name: 'MOCKED_ECHO',
|
3094
|
-
fullname: 'Echo (Test)',
|
3095
|
-
color: '#8b5cf6', // Purple for test/mock tools
|
3096
|
-
},
|
3097
|
-
MOCKED_FAKE: {
|
3098
|
-
name: 'MOCKED_FAKE',
|
3099
|
-
fullname: 'Fake LLM (Test)',
|
3100
|
-
color: '#ec4899', // Pink for fake/test tools
|
3101
|
-
},
|
3102
|
-
VERCEL: {
|
3103
|
-
name: 'VERCEL',
|
3104
|
-
fullname: 'Vercel AI',
|
3105
|
-
color: '#000000', // Vercel's black
|
3106
|
-
},
|
3107
|
-
MULTIPLE: {
|
3108
|
-
name: 'MULTIPLE',
|
3109
|
-
fullname: 'Multiple Providers',
|
3110
|
-
color: '#6366f1', // Indigo for combined/multiple providers
|
3111
|
-
},
|
3052
|
+
const MULTIPLE_PROVIDER_PROFILE = {
|
3053
|
+
name: 'MULTIPLE',
|
3054
|
+
fullname: 'Multiple Providers',
|
3055
|
+
color: '#6366f1',
|
3112
3056
|
};
|
3113
|
-
/**
|
3114
|
-
* TODO: Refactor this - each profile must be alongside the provider definition
|
3115
|
-
* TODO: [π] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
3116
|
-
* Note: [π] Ignore a discrepancy between file name and entity name
|
3117
|
-
*/
|
3118
|
-
|
3119
3057
|
/**
|
3120
3058
|
* Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally.
|
3121
3059
|
*
|
@@ -3151,7 +3089,7 @@
|
|
3151
3089
|
`);
|
3152
3090
|
}
|
3153
3091
|
get profile() {
|
3154
|
-
return
|
3092
|
+
return MULTIPLE_PROVIDER_PROFILE;
|
3155
3093
|
}
|
3156
3094
|
/**
|
3157
3095
|
* Check the configuration of all execution tools
|