@promptbook/remote-client 0.101.0-9 β 0.102.0-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/esm/index.es.js +7 -69
- package/esm/index.es.js.map +1 -1
- package/esm/typings/src/_packages/components.index.d.ts +30 -0
- package/esm/typings/src/_packages/core.index.d.ts +12 -0
- package/esm/typings/src/_packages/types.index.d.ts +12 -0
- package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +11 -4
- package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -0
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +4 -22
- package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -26
- 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 +23 -14
- package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +2 -14
- 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-2.0/commitments/index.d.ts +1 -1
- package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +5 -2
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +3 -0
- package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/MockedChat.d.ts +18 -1
- package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +8 -0
- package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +2 -15
- package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +5 -1
- package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +9 -0
- package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +13 -0
- package/esm/typings/src/book-components/Chat/hooks/index.d.ts +2 -0
- package/esm/typings/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +41 -0
- package/esm/typings/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +44 -0
- package/esm/typings/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -0
- package/esm/typings/src/book-components/Chat/utils/savePlugins.d.ts +55 -0
- package/esm/typings/src/book-components/icons/PauseIcon.d.ts +8 -0
- package/esm/typings/src/book-components/icons/PlayIcon.d.ts +8 -0
- package/esm/typings/src/execution/PromptResult.d.ts +2 -4
- package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -2
- package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +1 -3
- package/esm/typings/src/formats/csv/CsvFormatError.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
- package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -2
- package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +8 -2
- package/esm/typings/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +25 -0
- package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +7 -18
- package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +11 -0
- package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +2 -1
- package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +58 -0
- package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +29 -0
- package/esm/typings/src/llm-providers/agent/playground/playground.d.ts +8 -0
- package/esm/typings/src/llm-providers/agent/register-configuration.d.ts +11 -0
- package/esm/typings/src/llm-providers/agent/register-constructor.d.ts +13 -0
- 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/$fakeTextToExpectations.d.ts +1 -0
- package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +4 -10
- package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +4 -6
- package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +3 -3
- package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +16 -8
- 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/personas/preparePersona.d.ts +1 -0
- package/esm/typings/src/remote-server/openapi-types.d.ts +31 -31
- package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +1 -2
- package/esm/typings/src/types/ModelRequirements.d.ts +2 -4
- package/esm/typings/src/utils/color/utils/colorSaturation.d.ts +1 -1
- package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
- 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-2.0/utils/extractAgentMetadata.d.ts +0 -17
- package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +0 -12
- 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 β utils/removeUnsupportedModelRequirements.test.d.ts} +0 -0
|
@@ -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`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.102.0-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,
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"module": "./esm/index.es.js",
|
|
101
101
|
"typings": "./esm/typings/src/_packages/remote-client.index.d.ts",
|
|
102
102
|
"peerDependencies": {
|
|
103
|
-
"@promptbook/core": "0.
|
|
103
|
+
"@promptbook/core": "0.102.0-0"
|
|
104
104
|
},
|
|
105
105
|
"dependencies": {
|
|
106
106
|
"crypto": "1.0.1",
|
package/umd/index.umd.js
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @generated
|
|
24
24
|
* @see https://github.com/webgptorg/promptbook
|
|
25
25
|
*/
|
|
26
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
26
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.102.0-0';
|
|
27
27
|
/**
|
|
28
28
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
29
29
|
* Note: [π] Ignore a discrepancy between file name and entity name
|
|
@@ -5634,75 +5634,13 @@
|
|
|
5634
5634
|
*/
|
|
5635
5635
|
|
|
5636
5636
|
/**
|
|
5637
|
-
*
|
|
5638
|
-
* These profiles represent each provider as a virtual persona in chat interfaces
|
|
5639
|
-
*
|
|
5640
|
-
* @private !!!!
|
|
5637
|
+
* Profile for Remote provider
|
|
5641
5638
|
*/
|
|
5642
|
-
const
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
color: '#10a37f', // OpenAI's signature green
|
|
5647
|
-
// Note: avatarSrc could be added when we have provider logos available
|
|
5648
|
-
},
|
|
5649
|
-
ANTHROPIC: {
|
|
5650
|
-
name: 'ANTHROPIC',
|
|
5651
|
-
fullname: 'Anthropic Claude',
|
|
5652
|
-
color: '#d97706', // Anthropic's orange/amber color
|
|
5653
|
-
},
|
|
5654
|
-
AZURE_OPENAI: {
|
|
5655
|
-
name: 'AZURE_OPENAI',
|
|
5656
|
-
fullname: 'Azure OpenAI',
|
|
5657
|
-
color: '#0078d4', // Microsoft Azure blue
|
|
5658
|
-
},
|
|
5659
|
-
GOOGLE: {
|
|
5660
|
-
name: 'GOOGLE',
|
|
5661
|
-
fullname: 'Google Gemini',
|
|
5662
|
-
color: '#4285f4', // Google blue
|
|
5663
|
-
},
|
|
5664
|
-
DEEPSEEK: {
|
|
5665
|
-
name: 'DEEPSEEK',
|
|
5666
|
-
fullname: 'DeepSeek',
|
|
5667
|
-
color: '#7c3aed', // Purple color for DeepSeek
|
|
5668
|
-
},
|
|
5669
|
-
OLLAMA: {
|
|
5670
|
-
name: 'OLLAMA',
|
|
5671
|
-
fullname: 'Ollama',
|
|
5672
|
-
color: '#059669', // Emerald green for local models
|
|
5673
|
-
},
|
|
5674
|
-
REMOTE: {
|
|
5675
|
-
name: 'REMOTE',
|
|
5676
|
-
fullname: 'Remote Server',
|
|
5677
|
-
color: '#6b7280', // Gray for remote/proxy connections
|
|
5678
|
-
},
|
|
5679
|
-
MOCKED_ECHO: {
|
|
5680
|
-
name: 'MOCKED_ECHO',
|
|
5681
|
-
fullname: 'Echo (Test)',
|
|
5682
|
-
color: '#8b5cf6', // Purple for test/mock tools
|
|
5683
|
-
},
|
|
5684
|
-
MOCKED_FAKE: {
|
|
5685
|
-
name: 'MOCKED_FAKE',
|
|
5686
|
-
fullname: 'Fake LLM (Test)',
|
|
5687
|
-
color: '#ec4899', // Pink for fake/test tools
|
|
5688
|
-
},
|
|
5689
|
-
VERCEL: {
|
|
5690
|
-
name: 'VERCEL',
|
|
5691
|
-
fullname: 'Vercel AI',
|
|
5692
|
-
color: '#000000', // Vercel's black
|
|
5693
|
-
},
|
|
5694
|
-
MULTIPLE: {
|
|
5695
|
-
name: 'MULTIPLE',
|
|
5696
|
-
fullname: 'Multiple Providers',
|
|
5697
|
-
color: '#6366f1', // Indigo for combined/multiple providers
|
|
5698
|
-
},
|
|
5639
|
+
const REMOTE_PROVIDER_PROFILE = {
|
|
5640
|
+
name: 'REMOTE',
|
|
5641
|
+
fullname: 'Remote Server',
|
|
5642
|
+
color: '#6b7280',
|
|
5699
5643
|
};
|
|
5700
|
-
/**
|
|
5701
|
-
* TODO: Refactor this - each profile must be alongside the provider definition
|
|
5702
|
-
* TODO: [π] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
|
|
5703
|
-
* Note: [π] Ignore a discrepancy between file name and entity name
|
|
5704
|
-
*/
|
|
5705
|
-
|
|
5706
5644
|
/**
|
|
5707
5645
|
* Remote server is a proxy server that uses its execution tools internally and exposes the executor interface externally.
|
|
5708
5646
|
*
|
|
@@ -5725,7 +5663,7 @@
|
|
|
5725
5663
|
return `Models from Promptbook remote server ${this.options.remoteServerUrl}`;
|
|
5726
5664
|
}
|
|
5727
5665
|
get profile() {
|
|
5728
|
-
return
|
|
5666
|
+
return REMOTE_PROVIDER_PROFILE;
|
|
5729
5667
|
}
|
|
5730
5668
|
/**
|
|
5731
5669
|
* Check the configuration of all execution tools
|