@promptbook/wizard 0.101.0-2 → 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 (89) hide show
  1. package/esm/index.es.js +423 -250
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/typings/src/_packages/components.index.d.ts +20 -0
  4. package/esm/typings/src/_packages/core.index.d.ts +14 -0
  5. package/esm/typings/src/_packages/types.index.d.ts +14 -0
  6. package/esm/typings/src/book-2.0/agent-source/AgentBasicInformation.d.ts +41 -3
  7. package/esm/typings/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -0
  8. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +4 -22
  9. package/esm/typings/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -26
  10. package/esm/typings/src/book-2.0/agent-source/parseParameters.d.ts +13 -0
  11. package/esm/typings/src/book-2.0/commitments/ACTION/ACTION.d.ts +2 -8
  12. package/esm/typings/src/book-2.0/commitments/DELETE/DELETE.d.ts +35 -0
  13. package/esm/typings/src/book-2.0/commitments/FORMAT/FORMAT.d.ts +2 -8
  14. package/esm/typings/src/book-2.0/commitments/GOAL/GOAL.d.ts +33 -0
  15. package/esm/typings/src/book-2.0/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -6
  16. package/esm/typings/src/book-2.0/commitments/MEMORY/MEMORY.d.ts +34 -0
  17. package/esm/typings/src/book-2.0/commitments/MESSAGE/MESSAGE.d.ts +35 -0
  18. package/esm/typings/src/book-2.0/commitments/META/META.d.ts +56 -0
  19. package/esm/typings/src/book-2.0/commitments/META_IMAGE/META_IMAGE.d.ts +0 -6
  20. package/esm/typings/src/book-2.0/commitments/META_LINK/META_LINK.d.ts +0 -6
  21. package/esm/typings/src/book-2.0/commitments/MODEL/MODEL.d.ts +25 -10
  22. package/esm/typings/src/book-2.0/commitments/NOTE/NOTE.d.ts +2 -8
  23. package/esm/typings/src/book-2.0/commitments/PERSONA/PERSONA.d.ts +2 -8
  24. package/esm/typings/src/book-2.0/commitments/RULE/RULE.d.ts +0 -12
  25. package/esm/typings/src/book-2.0/commitments/SAMPLE/SAMPLE.d.ts +0 -12
  26. package/esm/typings/src/book-2.0/commitments/SCENARIO/SCENARIO.d.ts +34 -0
  27. package/esm/typings/src/book-2.0/commitments/STYLE/STYLE.d.ts +2 -8
  28. package/esm/typings/src/book-2.0/commitments/_base/createEmptyAgentModelRequirements.d.ts +1 -1
  29. package/esm/typings/src/book-2.0/commitments/index.d.ts +7 -3
  30. package/esm/typings/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -0
  31. package/esm/typings/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +5 -2
  32. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +3 -0
  33. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/MockedChat.d.ts +63 -0
  34. package/esm/typings/src/book-components/AvatarProfile/AvatarProfile/index.d.ts +3 -0
  35. package/esm/typings/src/book-components/BookEditor/BookEditor.d.ts +18 -0
  36. package/esm/typings/src/book-components/BookEditor/BookEditorInner.d.ts +2 -12
  37. package/esm/typings/src/book-components/Chat/Chat/ChatProps.d.ts +29 -0
  38. package/esm/typings/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +13 -0
  39. package/esm/typings/src/book-components/Chat/hooks/index.d.ts +2 -0
  40. package/esm/typings/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +41 -0
  41. package/esm/typings/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +44 -0
  42. package/esm/typings/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -0
  43. package/esm/typings/src/book-components/icons/PauseIcon.d.ts +8 -0
  44. package/esm/typings/src/book-components/icons/PlayIcon.d.ts +8 -0
  45. package/esm/typings/src/execution/PromptResult.d.ts +2 -4
  46. package/esm/typings/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +1 -2
  47. package/esm/typings/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +1 -3
  48. package/esm/typings/src/formats/csv/CsvFormatError.d.ts +1 -1
  49. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  50. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +1 -1
  51. package/esm/typings/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +1 -2
  52. package/esm/typings/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +8 -2
  53. package/esm/typings/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +25 -0
  54. package/esm/typings/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +7 -18
  55. package/esm/typings/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +11 -0
  56. package/esm/typings/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +2 -1
  57. package/esm/typings/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +58 -0
  58. package/esm/typings/src/llm-providers/agent/createAgentLlmExecutionTools.d.ts +29 -0
  59. package/esm/typings/src/llm-providers/agent/playground/playground.d.ts +8 -0
  60. package/esm/typings/src/llm-providers/agent/register-configuration.d.ts +11 -0
  61. package/esm/typings/src/llm-providers/agent/register-constructor.d.ts +13 -0
  62. package/esm/typings/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +3 -8
  63. package/esm/typings/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +4 -5
  64. package/esm/typings/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -0
  65. package/esm/typings/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +4 -10
  66. package/esm/typings/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +4 -6
  67. package/esm/typings/src/llm-providers/ollama/OllamaExecutionTools.d.ts +3 -3
  68. package/esm/typings/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +16 -8
  69. package/esm/typings/src/llm-providers/openai/OpenAiExecutionTools.d.ts +3 -8
  70. package/esm/typings/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +5 -14
  71. package/esm/typings/src/personas/preparePersona.d.ts +1 -0
  72. package/esm/typings/src/remote-server/openapi-types.d.ts +31 -31
  73. package/esm/typings/src/scrapers/markdown/MarkdownScraper.d.ts +1 -2
  74. package/esm/typings/src/types/ModelRequirements.d.ts +2 -4
  75. package/esm/typings/src/utils/color/utils/colorSaturation.d.ts +1 -1
  76. package/esm/typings/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
  77. package/esm/typings/src/utils/markdown/humanizeAiText.d.ts +1 -1
  78. package/esm/typings/src/utils/markdown/promptbookifyAiText.d.ts +2 -2
  79. package/esm/typings/src/version.d.ts +1 -1
  80. package/package.json +2 -2
  81. package/umd/index.umd.js +423 -250
  82. package/umd/index.umd.js.map +1 -1
  83. package/esm/typings/src/book-2.0/utils/extractAgentMetadata.d.ts +0 -17
  84. package/esm/typings/src/book-2.0/utils/extractProfileImageFromSystemMessage.d.ts +0 -12
  85. package/esm/typings/src/book-components/Chat/examples/ChatMarkdownDemo.d.ts +0 -16
  86. package/esm/typings/src/expectations/drafts/isDomainNameFree.d.ts +0 -10
  87. package/esm/typings/src/expectations/drafts/isGithubNameFree.d.ts +0 -10
  88. package/esm/typings/src/llm-providers/_common/profiles/llmProviderProfiles.d.ts +0 -81
  89. /package/esm/typings/src/llm-providers/_common/{profiles/test/llmProviderProfiles.test.d.ts → utils/removeUnsupportedModelRequirements.test.d.ts} +0 -0
@@ -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
- */