@promptbook/editable 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.
Files changed (87) hide show
  1. package/esm/index.es.js +1 -1
  2. package/esm/typings/src/_packages/components.index.d.ts +30 -0
  3. package/esm/typings/src/_packages/core.index.d.ts +12 -0
  4. package/esm/typings/src/_packages/types.index.d.ts +12 -0
  5. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +11 -4
  6. package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -0
  7. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +4 -22
  8. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -26
  9. package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +0 -12
  10. package/esm/typings/src/book-2.0/commitments/DELETE/DELETE.d.ts +0 -24
  11. package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +0 -12
  12. package/esm/typings/src/book-2.0/commitments/GOAL/GOAL.d.ts +0 -12
  13. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
  14. package/esm/typings/src/book-2.0/commitments/MEMORY/MEMORY.d.ts +0 -12
  15. package/esm/typings/src/book-2.0/commitments/MESSAGE/MESSAGE.d.ts +0 -12
  16. package/esm/typings/src/book-2.0/commitments/META/META.d.ts +0 -6
  17. package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +0 -6
  18. package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +0 -6
  19. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +23 -14
  20. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +2 -14
  21. package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +0 -12
  22. package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +0 -12
  23. package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +0 -12
  24. package/esm/typings/src/book-2.0/commitments/SCENARIO/SCENARIO.d.ts +0 -12
  25. package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +0 -12
  26. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  27. package/esm/typings/src/book-2.0/commitments/index.d.ts +1 -1
  28. package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -0
  29. package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +5 -2
  30. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +3 -0
  31. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/MockedChat.d.ts +18 -1
  32. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +8 -0
  33. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +2 -15
  34. package/esm/typings/src/book-components/Chat/Chat/Chat.d.ts +5 -1
  35. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +9 -0
  36. package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +13 -0
  37. package/esm/typings/src/book-components/Chat/hooks/index.d.ts +2 -0
  38. package/esm/typings/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +41 -0
  39. package/esm/typings/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +44 -0
  40. package/esm/typings/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -0
  41. package/esm/typings/src/book-components/Chat/utils/savePlugins.d.ts +55 -0
  42. package/esm/typings/src/book-components/icons/PauseIcon.d.ts +8 -0
  43. package/esm/typings/src/book-components/icons/PlayIcon.d.ts +8 -0
  44. package/esm/typings/src/execution/PromptResult.d.ts +2 -4
  45. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -2
  46. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +1 -3
  47. package/esm/typings/src/formats/csv/CsvFormatError.d.ts +1 -1
  48. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  49. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
  50. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -2
  51. package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +8 -2
  52. package/esm/typings/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +25 -0
  53. package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +7 -18
  54. package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +11 -0
  55. package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +2 -1
  56. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +58 -0
  57. package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +29 -0
  58. package/esm/typings/src/llm-providers/agent/playground/playground.d.ts +8 -0
  59. package/esm/typings/src/llm-providers/agent/register-configuration.d.ts +11 -0
  60. package/esm/typings/src/llm-providers/agent/register-constructor.d.ts +13 -0
  61. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +3 -8
  62. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -5
  63. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -0
  64. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +4 -10
  65. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +4 -6
  66. package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +3 -3
  67. package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +16 -8
  68. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +3 -8
  69. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -14
  70. package/esm/typings/src/personas/preparePersona.d.ts +1 -0
  71. package/esm/typings/src/remote-server/openapi-types.d.ts +31 -31
  72. package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +1 -2
  73. package/esm/typings/src/types/ModelRequirements.d.ts +2 -4
  74. package/esm/typings/src/utils/color/utils/colorSaturation.d.ts +1 -1
  75. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
  76. package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +0 -1
  77. package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +2 -2
  78. package/esm/typings/src/version.d.ts +1 -1
  79. package/package.json +2 -2
  80. package/umd/index.umd.js +1 -1
  81. package/esm/typings/src/book-2.0/utils/extractAgentMetadata.d.ts +0 -17
  82. package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +0 -12
  83. package/esm/typings/src/book-components/Chat/examples/ChatMarkdownDemo.d.ts +0 -16
  84. package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +0 -10
  85. package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +0 -10
  86. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +0 -81
  87. /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-8`).
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/editable",
3
- "version": "0.101.0-9",
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,
@@ -95,7 +95,7 @@
95
95
  "module": "./esm/index.es.js",
96
96
  "typings": "./esm/typings/src/_packages/editable.index.d.ts",
97
97
  "peerDependencies": {
98
- "@promptbook/core": "0.101.0-9"
98
+ "@promptbook/core": "0.102.0-0"
99
99
  },
100
100
  "dependencies": {
101
101
  "crypto-js": "4.2.0",
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.101.0-9';
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
@@ -1,17 +0,0 @@
1
- import type { string_url_image } from '../../types/typeAliases';
2
- /**
3
- * Extracts persona, examples, and profile image from agent definition text
4
- * @param systemMessage The original system message that may contain PERSONA, EXAMPLE, and META IMAGE lines
5
- * @returns Object with extracted information and cleaned system message
6
- *
7
- * @private - TODO: [🧠] Maybe should be public?
8
- */
9
- export declare function extractAgentMetadata(systemMessage: string): {
10
- persona?: {
11
- name: string;
12
- description?: string;
13
- };
14
- examples: string[];
15
- profileImageUrl?: string_url_image;
16
- cleanedSystemMessage: string;
17
- };
@@ -1,12 +0,0 @@
1
- import type { string_url_image } from '../../types/typeAliases';
2
- /**
3
- * Extracts profile image URL from agent definition text and returns cleaned system message
4
- * @param systemMessage The original system message that may contain META IMAGE line
5
- * @returns Object with profileImageUrl (if found) and cleanedSystemMessage (without META IMAGE line)
6
- *
7
- * @private - TODO: [🧠] Maybe should be public?
8
- */
9
- export declare function extractProfileImageFromSystemMessage(systemMessage: string): {
10
- profileImageUrl?: string_url_image;
11
- cleanedSystemMessage: string;
12
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * Demo component showing Chat with markdown rendering capabilities
3
- *
4
- * This example demonstrates various markdown features supported by the Chat component:
5
- * - Headers
6
- * - Bold and italic text
7
- * - Code blocks and inline code
8
- * - Lists (ordered and unordered)
9
- * - Links
10
- * - Blockquotes
11
- * - Tables
12
- * - Strikethrough text
13
- *
14
- * @private temporary for testing purposes
15
- */
16
- export declare function ChatMarkdownDemo(): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import type { PromptbookFetch } from '../../execution/PromptbookFetch';
2
- import type { string_name } from '../../types/typeAliases';
3
- /**
4
- * @private still in development
5
- */
6
- export declare function isDomainNameFree(name: string_name, fetch: PromptbookFetch): Promise<boolean>;
7
- /**
8
- * TODO: [🍓][🧠] Test and implement `isDomainNameFree`
9
- * TODO: Export via some (and probably new) NPM package
10
- */
@@ -1,10 +0,0 @@
1
- import type { PromptbookFetch } from '../../execution/PromptbookFetch';
2
- import type { string_name } from '../../types/typeAliases';
3
- /**
4
- * @private still in development
5
- */
6
- export declare function isGithubNameFree(name: string_name, fetch: PromptbookFetch): Promise<boolean>;
7
- /**
8
- * TODO: [🍓][🧠] Test and implement `isGithubNameFree`
9
- * TODO: Export via some (and probably new) NPM package
10
- */
@@ -1,81 +0,0 @@
1
- import type { ChatParticipant } from '../../../book-components/Chat/types/ChatParticipant';
2
- /**
3
- * Predefined profiles for LLM providers to maintain consistency across the application
4
- * These profiles represent each provider as a virtual persona in chat interfaces
5
- *
6
- * @private !!!!
7
- */
8
- export declare const LLM_PROVIDER_PROFILES: {
9
- readonly OPENAI: {
10
- name: string;
11
- fullname: string;
12
- color: string;
13
- };
14
- readonly ANTHROPIC: {
15
- name: string;
16
- fullname: string;
17
- color: string;
18
- };
19
- readonly AZURE_OPENAI: {
20
- name: string;
21
- fullname: string;
22
- color: string;
23
- };
24
- readonly GOOGLE: {
25
- name: string;
26
- fullname: string;
27
- color: string;
28
- };
29
- readonly DEEPSEEK: {
30
- name: string;
31
- fullname: string;
32
- color: string;
33
- };
34
- readonly OLLAMA: {
35
- name: string;
36
- fullname: string;
37
- color: string;
38
- };
39
- readonly REMOTE: {
40
- name: string;
41
- fullname: string;
42
- color: string;
43
- };
44
- readonly MOCKED_ECHO: {
45
- name: string;
46
- fullname: string;
47
- color: string;
48
- };
49
- readonly MOCKED_FAKE: {
50
- name: string;
51
- fullname: string;
52
- color: string;
53
- };
54
- readonly VERCEL: {
55
- name: string;
56
- fullname: string;
57
- color: string;
58
- };
59
- readonly MULTIPLE: {
60
- name: string;
61
- fullname: string;
62
- color: string;
63
- };
64
- };
65
- /**
66
- * Helper function to get a profile by provider name with fallback
67
- *
68
- * @private !!!!
69
- */
70
- export declare function getLlmProviderProfile(providerKey: keyof typeof LLM_PROVIDER_PROFILES): ChatParticipant;
71
- /**
72
- * Creates a custom profile based on a provider profile but with custom properties
73
- *
74
- * @private !!!!
75
- */
76
- export declare function createCustomLlmProfile(baseProfile: ChatParticipant, overrides: Partial<ChatParticipant>): ChatParticipant;
77
- /**
78
- * TODO: Refactor this - each profile must be alongside the provider definition
79
- * TODO: [🕛] Unite `AgentBasicInformation`, `ChatParticipant`, `LlmExecutionTools` + `LlmToolsMetadata`
80
- * Note: [💞] Ignore a discrepancy between file name and entity name
81
- */