@promptbook/remote-server 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.
Files changed (51) hide show
  1. package/esm/index.es.js +8 -70
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +0 -12
  4. package/esm/typings/src/book-2.0/commitments/DELETE/DELETE.d.ts +0 -24
  5. package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +0 -12
  6. package/esm/typings/src/book-2.0/commitments/GOAL/GOAL.d.ts +0 -12
  7. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
  8. package/esm/typings/src/book-2.0/commitments/MEMORY/MEMORY.d.ts +0 -12
  9. package/esm/typings/src/book-2.0/commitments/MESSAGE/MESSAGE.d.ts +0 -12
  10. package/esm/typings/src/book-2.0/commitments/META/META.d.ts +0 -6
  11. package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +0 -6
  12. package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +0 -6
  13. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +0 -12
  14. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +0 -24
  15. package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +0 -12
  16. package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +0 -12
  17. package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +0 -12
  18. package/esm/typings/src/book-2.0/commitments/SCENARIO/SCENARIO.d.ts +0 -12
  19. package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +0 -12
  20. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  21. package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +3 -0
  22. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +3 -0
  23. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +3 -0
  24. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +2 -16
  25. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +3 -0
  26. package/esm/typings/src/execution/PromptResult.d.ts +2 -4
  27. package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +2 -5
  28. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +6 -2
  29. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +3 -8
  30. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -5
  31. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
  32. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -0
  33. package/esm/typings/src/llm-providers/mocked/test/joker.test.d.ts +4 -0
  34. package/esm/typings/src/llm-providers/mocked/test/mocked-chat.test.d.ts +5 -0
  35. package/esm/typings/src/llm-providers/mocked/test/mocked-completion.test.d.ts +4 -0
  36. package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +3 -3
  37. package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +1 -0
  38. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +3 -8
  39. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -14
  40. package/esm/typings/src/scripting/_test/postprocessing.test.d.ts +1 -0
  41. package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +0 -1
  42. package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +2 -2
  43. package/esm/typings/src/version.d.ts +1 -1
  44. package/package.json +2 -2
  45. package/umd/index.umd.js +8 -70
  46. package/umd/index.umd.js.map +1 -1
  47. package/esm/typings/src/book-components/Chat/examples/ChatMarkdownDemo.d.ts +0 -16
  48. package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +0 -10
  49. package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +0 -10
  50. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +0 -81
  51. /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
@@ -31,7 +31,7 @@ const BOOK_LANGUAGE_VERSION = '1.0.0';
31
31
  * @generated
32
32
  * @see https://github.com/webgptorg/promptbook
33
33
  */
34
- const PROMPTBOOK_ENGINE_VERSION = '0.101.0-20';
34
+ const PROMPTBOOK_ENGINE_VERSION = '0.101.0-21';
35
35
  /**
36
36
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
37
37
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -2897,75 +2897,13 @@ function arrayableToArray(input) {
2897
2897
  }
2898
2898
 
2899
2899
  /**
2900
- * Predefined profiles for LLM providers to maintain consistency across the application
2901
- * These profiles represent each provider as a virtual persona in chat interfaces
2902
- *
2903
- * @private !!!!
2900
+ * Profile for Multiple providers aggregation
2904
2901
  */
2905
- const LLM_PROVIDER_PROFILES = {
2906
- OPENAI: {
2907
- name: 'OPENAI',
2908
- fullname: 'OpenAI GPT',
2909
- color: '#10a37f', // OpenAI's signature green
2910
- // Note: avatarSrc could be added when we have provider logos available
2911
- },
2912
- ANTHROPIC: {
2913
- name: 'ANTHROPIC',
2914
- fullname: 'Anthropic Claude',
2915
- color: '#d97706', // Anthropic's orange/amber color
2916
- },
2917
- AZURE_OPENAI: {
2918
- name: 'AZURE_OPENAI',
2919
- fullname: 'Azure OpenAI',
2920
- color: '#0078d4', // Microsoft Azure blue
2921
- },
2922
- GOOGLE: {
2923
- name: 'GOOGLE',
2924
- fullname: 'Google Gemini',
2925
- color: '#4285f4', // Google blue
2926
- },
2927
- DEEPSEEK: {
2928
- name: 'DEEPSEEK',
2929
- fullname: 'DeepSeek',
2930
- color: '#7c3aed', // Purple color for DeepSeek
2931
- },
2932
- OLLAMA: {
2933
- name: 'OLLAMA',
2934
- fullname: 'Ollama',
2935
- color: '#059669', // Emerald green for local models
2936
- },
2937
- REMOTE: {
2938
- name: 'REMOTE',
2939
- fullname: 'Remote Server',
2940
- color: '#6b7280', // Gray for remote/proxy connections
2941
- },
2942
- MOCKED_ECHO: {
2943
- name: 'MOCKED_ECHO',
2944
- fullname: 'Echo (Test)',
2945
- color: '#8b5cf6', // Purple for test/mock tools
2946
- },
2947
- MOCKED_FAKE: {
2948
- name: 'MOCKED_FAKE',
2949
- fullname: 'Fake LLM (Test)',
2950
- color: '#ec4899', // Pink for fake/test tools
2951
- },
2952
- VERCEL: {
2953
- name: 'VERCEL',
2954
- fullname: 'Vercel AI',
2955
- color: '#000000', // Vercel's black
2956
- },
2957
- MULTIPLE: {
2958
- name: 'MULTIPLE',
2959
- fullname: 'Multiple Providers',
2960
- color: '#6366f1', // Indigo for combined/multiple providers
2961
- },
2902
+ const MULTIPLE_PROVIDER_PROFILE = {
2903
+ name: 'MULTIPLE',
2904
+ fullname: 'Multiple Providers',
2905
+ color: '#6366f1',
2962
2906
  };
2963
- /**
2964
- * TODO: Refactor this - each profile must be alongside the provider definition
2965
- * TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
2966
- * Note: [💞] Ignore a discrepancy between file name and entity name
2967
- */
2968
-
2969
2907
  /**
2970
2908
  * Multiple LLM Execution Tools is a proxy server that uses multiple execution tools internally and exposes the executor interface externally.
2971
2909
  *
@@ -3001,7 +2939,7 @@ class MultipleLlmExecutionTools {
3001
2939
  `);
3002
2940
  }
3003
2941
  get profile() {
3004
- return LLM_PROVIDER_PROFILES.MULTIPLE;
2942
+ return MULTIPLE_PROVIDER_PROFILE;
3005
2943
  }
3006
2944
  /**
3007
2945
  * Check the configuration of all execution tools
@@ -8225,7 +8163,7 @@ function startRemoteServer(options) {
8225
8163
  });
8226
8164
  // Note: OpenAI-compatible chat completions endpoint
8227
8165
  app.post('/v1/chat/completions', async (request, response) => {
8228
- // TODO: !!!! Make more promptbook-native:
8166
+ // TODO: [🧠][ðŸĶĒ] Make OpenAI compatible more promptbook-native - make reverse adapter from LlmExecutionTools to OpenAI-compatible:
8229
8167
  try {
8230
8168
  const params = request.body;
8231
8169
  const { model, messages } = params;