@promptbook/editable 0.112.0-11 → 0.112.0-111

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 (2402) hide show
  1. package/README.md +235 -51
  2. package/esm/index.es.js +569 -395
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/cli.index.d.ts +10 -0
  5. package/esm/src/_packages/components.index.d.ts +18 -0
  6. package/esm/src/_packages/core.index.d.ts +16 -0
  7. package/esm/src/_packages/types.index.d.ts +152 -128
  8. package/esm/src/_packages/wizard.index.d.ts +10 -0
  9. package/esm/src/avatars/Avatar.d.ts +7 -0
  10. package/esm/src/avatars/AvatarOrImage.d.ts +50 -0
  11. package/esm/src/avatars/avatarAnimationScheduler.d.ts +16 -0
  12. package/esm/src/avatars/avatarInteractionUtils.d.ts +81 -0
  13. package/esm/src/avatars/avatarInteractionUtils.test.d.ts +1 -0
  14. package/esm/src/avatars/avatarPointerTracking.d.ts +33 -0
  15. package/esm/src/avatars/avatarRenderingUtils.d.ts +118 -0
  16. package/esm/src/avatars/avatarRenderingUtils.test.d.ts +1 -0
  17. package/esm/src/avatars/avatarVisibilityTracking.d.ts +17 -0
  18. package/esm/src/avatars/index.d.ts +7 -0
  19. package/esm/src/avatars/renderAvatarVisual.d.ts +36 -0
  20. package/esm/src/avatars/types/AvatarDefinition.d.ts +21 -0
  21. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +137 -0
  22. package/esm/src/avatars/visuals/asciiOctopusAvatarVisual.d.ts +7 -0
  23. package/esm/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  24. package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +28 -0
  25. package/esm/src/avatars/visuals/avatarVisualRegistry.test.d.ts +1 -0
  26. package/esm/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
  27. package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  28. package/esm/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  29. package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  30. package/esm/src/avatars/visuals/octopus2AvatarVisual.d.ts +7 -0
  31. package/esm/src/avatars/visuals/octopus3AvatarVisual.d.ts +79 -0
  32. package/esm/src/avatars/visuals/octopus3AvatarVisual.test.d.ts +1 -0
  33. package/esm/src/avatars/visuals/octopus3d2AvatarVisual.d.ts +7 -0
  34. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  35. package/esm/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  36. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +37 -0
  37. package/esm/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  38. package/esm/src/avatars/visuals/octopusAvatarVisualShared.d.ts +175 -0
  39. package/esm/src/avatars/visuals/octopusAvatarVisualShared.test.d.ts +1 -0
  40. package/esm/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  41. package/esm/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  42. package/esm/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  43. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +13 -7
  44. package/esm/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -6
  45. package/esm/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  46. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +1 -1
  47. package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  48. package/esm/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +34 -0
  49. package/esm/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  50. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +11 -1
  51. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts +1 -0
  52. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  53. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  54. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  55. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  56. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  57. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +9 -3
  58. package/esm/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  59. package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +8 -7
  60. package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +1 -0
  61. package/esm/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  62. package/esm/src/book-2.0/agent-source/padBook.d.ts +1 -4
  63. package/esm/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  64. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  65. package/esm/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  66. package/esm/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  67. package/esm/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  68. package/esm/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  69. package/esm/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  70. package/esm/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  71. package/esm/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  72. package/esm/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
  73. package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +2 -1
  74. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  75. package/esm/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
  76. package/esm/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -4
  77. package/esm/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +8 -3
  78. package/esm/src/book-2.0/agent-source/string_book.d.ts +1 -0
  79. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  80. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  81. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  82. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  83. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  84. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  85. package/esm/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -4
  86. package/esm/src/book-3.0/Book.d.ts +39 -0
  87. package/esm/src/book-3.0/Book.test.d.ts +1 -0
  88. package/esm/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -4
  89. package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -4
  90. package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
  91. package/esm/src/book-components/BookEditor/BookEditor.d.ts +14 -4
  92. package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +5 -1
  93. package/esm/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
  94. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
  95. package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  96. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +10 -8
  97. package/esm/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
  98. package/esm/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
  99. package/esm/src/book-components/BookEditor/useBookEditorMonacoInteractions.d.ts +40 -0
  100. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +12 -2
  101. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +31 -0
  102. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +6 -1
  103. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
  104. package/esm/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
  105. package/esm/src/book-components/Chat/AgentChip/AgentChip.d.ts +7 -6
  106. package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +14 -0
  107. package/esm/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
  108. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +4 -10
  109. package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +38 -0
  110. package/esm/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  111. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +36 -17
  112. package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  113. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +25 -1
  114. package/esm/src/book-components/Chat/Chat/ChatMessageMap.d.ts +0 -1
  115. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +36 -0
  116. package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  117. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +460 -12
  118. package/esm/src/book-components/Chat/Chat/ChatRatingModal.d.ts +10 -1
  119. package/esm/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
  120. package/esm/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
  121. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +17 -0
  122. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  123. package/esm/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +8 -5
  124. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +47 -0
  125. package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +34 -0
  126. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -3
  127. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.test.d.ts +2 -0
  128. package/esm/src/book-components/Chat/Chat/chatCssClassNames.d.ts +1 -0
  129. package/esm/src/book-components/Chat/Chat/constants.d.ts +4 -3
  130. package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  131. package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  132. package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
  133. package/esm/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
  134. package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
  135. package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +11 -0
  136. package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +27 -0
  137. package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +32 -0
  138. package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +33 -0
  139. package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +32 -0
  140. package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +32 -0
  141. package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +39 -0
  142. package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +39 -0
  143. package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +53 -0
  144. package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +34 -0
  145. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +14 -0
  146. package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +30 -0
  147. package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +27 -0
  148. package/esm/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  149. package/esm/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
  150. package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +10 -0
  151. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  152. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  153. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +53 -0
  154. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
  155. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
  156. package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  157. package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  158. package/esm/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  159. package/esm/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  160. package/esm/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  161. package/esm/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  162. package/esm/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +2 -1
  163. package/esm/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +2 -2
  164. package/esm/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
  165. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  166. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  167. package/esm/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  168. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +7 -5
  169. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  170. package/esm/src/book-components/Chat/MockedChat/MockedChat.d.ts +21 -1
  171. package/esm/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
  172. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +9 -4
  173. package/esm/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
  174. package/esm/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
  175. package/esm/src/book-components/Chat/effects/index.d.ts +0 -4
  176. package/esm/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
  177. package/esm/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +6 -3
  178. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +20 -0
  179. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  180. package/esm/src/book-components/Chat/hooks/useChatRatings.d.ts +10 -2
  181. package/esm/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
  182. package/esm/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  183. package/esm/src/book-components/Chat/save/_common/ChatSaveFormatHandler.d.ts +35 -0
  184. package/esm/src/book-components/Chat/save/_common/chatExportRendering.d.ts +75 -0
  185. package/esm/src/book-components/Chat/save/_common/createChatExportFilename.d.ts +11 -0
  186. package/esm/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  187. package/esm/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
  188. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +13 -4
  189. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  190. package/esm/src/book-components/Chat/save/index.d.ts +5 -8
  191. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +5 -3
  192. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  193. package/esm/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +5 -3
  194. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +3 -7
  195. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  196. package/esm/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  197. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +174 -7
  198. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +13 -4
  199. package/esm/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
  200. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +5 -4
  201. package/esm/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +2 -1
  202. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +54 -0
  203. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  204. package/esm/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
  205. package/esm/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  206. package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +12 -0
  207. package/esm/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  208. package/esm/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  209. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +28 -3
  210. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  211. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  212. package/esm/src/book-components/Chat/utils/loadAgentProfile.d.ts +14 -1
  213. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
  214. package/esm/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
  215. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  216. package/esm/src/book-components/Chat/utils/renderMarkdown.test.d.ts +1 -0
  217. package/esm/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
  218. package/esm/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
  219. package/esm/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  220. package/esm/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +14 -0
  221. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +3 -0
  222. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +143 -0
  223. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  224. package/esm/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +1 -0
  225. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +1 -0
  226. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +1 -0
  227. package/esm/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +1 -0
  228. package/esm/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +1 -0
  229. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +1 -0
  230. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +1 -0
  231. package/esm/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +1 -0
  232. package/esm/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +3 -3
  233. package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +4 -6
  234. package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +4 -6
  235. package/esm/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
  236. package/esm/src/book-components/Qr/GenericQrCode.d.ts +5 -0
  237. package/esm/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
  238. package/esm/src/book-components/Qr/useQrCode.d.ts +5 -2
  239. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
  240. package/esm/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
  241. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
  242. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -3
  243. package/esm/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
  244. package/esm/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  245. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -0
  246. package/esm/src/book-components/icons/AttachmentIcon.d.ts +4 -0
  247. package/esm/src/book-components/icons/CameraIcon.d.ts +4 -0
  248. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -0
  249. package/esm/src/book-components/icons/EmailIcon.d.ts +1 -0
  250. package/esm/src/book-components/icons/MenuIcon.d.ts +1 -3
  251. package/esm/src/book-components/icons/SaveIcon.d.ts +1 -0
  252. package/esm/src/book-components/icons/SendIcon.d.ts +0 -3
  253. package/esm/src/book-components/icons/TeacherIcon.d.ts +1 -0
  254. package/esm/src/cli/$runPromptbookCli.d.ts +6 -0
  255. package/esm/src/cli/cli-commands/_boilerplate.d.ts +0 -4
  256. package/esm/src/cli/cli-commands/about.d.ts +0 -6
  257. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +60 -0
  258. package/esm/src/cli/cli-commands/agent-folder/agentRunCliOptions.d.ts +25 -0
  259. package/esm/src/cli/cli-commands/agent-folder/init.d.ts +10 -0
  260. package/esm/src/cli/cli-commands/agent-folder/initializeAgentProjectConfiguration.d.ts +21 -0
  261. package/esm/src/cli/cli-commands/agent-folder/initializeAgentRunnerCommand.d.ts +24 -0
  262. package/esm/src/cli/cli-commands/agent-folder/printAgentInitializationSummary.d.ts +7 -0
  263. package/esm/src/cli/cli-commands/agent-folder/run.d.ts +10 -0
  264. package/esm/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
  265. package/esm/src/cli/cli-commands/agent-folder/runMultiple.d.ts +10 -0
  266. package/esm/src/cli/cli-commands/agent-folder/tick.d.ts +10 -0
  267. package/esm/src/cli/cli-commands/agent-folder.d.ts +16 -0
  268. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +103 -0
  269. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.test.d.ts +1 -0
  270. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +7 -0
  271. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +7 -0
  272. package/esm/src/cli/cli-commands/agents-server/init.d.ts +9 -0
  273. package/esm/src/cli/cli-commands/agents-server/init.test.d.ts +1 -0
  274. package/esm/src/cli/cli-commands/agents-server/initializeAgentsServerProjectConfiguration.d.ts +17 -0
  275. package/esm/src/cli/cli-commands/agents-server/printAgentsServerInitializationSummary.d.ts +7 -0
  276. package/esm/src/cli/cli-commands/agents-server/run.d.ts +20 -0
  277. package/esm/src/cli/cli-commands/agents-server/run.test.d.ts +1 -0
  278. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +36 -0
  279. package/esm/src/cli/cli-commands/agents-server.d.ts +8 -0
  280. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
  281. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
  282. package/esm/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
  283. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +137 -0
  284. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -0
  285. package/esm/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
  286. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
  287. package/esm/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
  288. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
  289. package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
  290. package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
  291. package/esm/src/cli/cli-commands/coder/{find-fresh-emoji-tag.d.ts → find-fresh-emoji-tags.d.ts} +1 -5
  292. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +1 -5
  293. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
  294. package/esm/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
  295. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +8 -2
  296. package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  297. package/esm/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
  298. package/esm/src/cli/cli-commands/coder/getTypescriptModule.d.ts +19 -0
  299. package/esm/src/cli/cli-commands/coder/getTypescriptModule.test.d.ts +1 -0
  300. package/esm/src/cli/cli-commands/coder/init.d.ts +13 -0
  301. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
  302. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
  303. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.test.d.ts +1 -0
  304. package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
  305. package/esm/src/cli/cli-commands/coder/run.d.ts +1 -5
  306. package/esm/src/cli/cli-commands/coder/run.test.d.ts +1 -0
  307. package/esm/src/cli/cli-commands/coder/verify.d.ts +0 -4
  308. package/esm/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
  309. package/esm/src/cli/cli-commands/coder.d.ts +2 -5
  310. package/esm/src/cli/cli-commands/common/handleActionErrors.d.ts +13 -4
  311. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +65 -0
  312. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +130 -0
  313. package/esm/src/cli/cli-commands/hello.d.ts +0 -5
  314. package/esm/src/cli/cli-commands/list-models.d.ts +0 -4
  315. package/esm/src/cli/cli-commands/list-scrapers.d.ts +0 -4
  316. package/esm/src/cli/cli-commands/login.d.ts +0 -5
  317. package/esm/src/cli/cli-commands/make.d.ts +1 -1
  318. package/esm/src/cli/cli-commands/prettify.d.ts +0 -6
  319. package/esm/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  320. package/esm/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  321. package/esm/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  322. package/esm/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  323. package/esm/src/cli/cli-commands/run.d.ts +1 -9
  324. package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
  325. package/esm/src/cli/cli-commands/start-agents-server.d.ts +0 -4
  326. package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
  327. package/esm/src/cli/cli-commands/test-command.d.ts +0 -7
  328. package/esm/src/cli/common/$deprecateCliCommand.d.ts +8 -0
  329. package/esm/src/cli/common/$deprecateCliCommand.test.d.ts +1 -0
  330. package/esm/src/cli/common/$provideLlmToolsForCli.d.ts +6 -1
  331. package/esm/src/cli/main.d.ts +2 -6
  332. package/esm/src/cli/other/install.test.d.ts +1 -0
  333. package/esm/src/cli/other/vpsInstall.test.d.ts +1 -0
  334. package/esm/src/cli/promptbookCli.d.ts +0 -7
  335. package/esm/src/cli/test/ptbk.d.ts +1 -1
  336. package/esm/src/collection/agent-collection/AgentCollection.d.ts +0 -3
  337. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +28 -22
  338. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
  339. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
  340. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
  341. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  342. package/esm/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  343. package/esm/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +3 -2
  344. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +11 -7
  345. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
  346. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
  347. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +3 -4
  348. package/esm/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +2 -1
  349. package/esm/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
  350. package/esm/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +2 -1
  351. package/esm/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
  352. package/esm/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
  353. package/esm/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
  354. package/esm/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
  355. package/esm/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  356. package/esm/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
  357. package/esm/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
  358. package/esm/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
  359. package/esm/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
  360. package/esm/src/commands/JOKER/JokerCommand.d.ts +2 -1
  361. package/esm/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
  362. package/esm/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +2 -1
  363. package/esm/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
  364. package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -5
  365. package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
  366. package/esm/src/commands/MODEL/ModelCommand.d.ts +1 -0
  367. package/esm/src/commands/MODEL/modelCommandParser.d.ts +1 -0
  368. package/esm/src/commands/PARAMETER/ParameterCommand.d.ts +3 -2
  369. package/esm/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
  370. package/esm/src/commands/PERSONA/PersonaCommand.d.ts +3 -2
  371. package/esm/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
  372. package/esm/src/commands/POSTPROCESS/PostprocessCommand.d.ts +2 -1
  373. package/esm/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
  374. package/esm/src/commands/SECTION/SectionCommand.d.ts +1 -0
  375. package/esm/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
  376. package/esm/src/commands/URL/UrlCommand.d.ts +1 -0
  377. package/esm/src/commands/URL/urlCommandParser.d.ts +1 -0
  378. package/esm/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
  379. package/esm/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
  380. package/esm/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
  381. package/esm/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
  382. package/esm/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
  383. package/esm/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
  384. package/esm/src/commands/_common/parseCommand.d.ts +1 -1
  385. package/esm/src/commands/_common/stringifyCommand.d.ts +2 -2
  386. package/esm/src/commands/_common/types/CommandParser.d.ts +2 -5
  387. package/esm/src/commands/index.d.ts +0 -3
  388. package/esm/src/commitments/ACTION/ACTION.d.ts +8 -5
  389. package/esm/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  390. package/esm/src/commitments/CLOSED/CLOSED.d.ts +0 -3
  391. package/esm/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
  392. package/esm/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
  393. package/esm/src/commitments/DELETE/DELETE.d.ts +7 -6
  394. package/esm/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  395. package/esm/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
  396. package/esm/src/commitments/FORMAT/FORMAT.d.ts +10 -7
  397. package/esm/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  398. package/esm/src/commitments/FROM/FROM.d.ts +0 -3
  399. package/esm/src/commitments/GOAL/GOAL.d.ts +4 -3
  400. package/esm/src/commitments/IMPORT/IMPORT.d.ts +0 -3
  401. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  402. package/esm/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
  403. package/esm/src/commitments/MEMORY/MEMORY.d.ts +2 -5
  404. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +1 -1
  405. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +1 -1
  406. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +1 -1
  407. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +1 -1
  408. package/esm/src/commitments/MESSAGE/MESSAGE.d.ts +0 -3
  409. package/esm/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
  410. package/esm/src/commitments/META/META.d.ts +2 -3
  411. package/esm/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
  412. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  413. package/esm/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
  414. package/esm/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
  415. package/esm/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +0 -3
  416. package/esm/src/commitments/META_FONT/META_FONT.d.ts +0 -3
  417. package/esm/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
  418. package/esm/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +0 -3
  419. package/esm/src/commitments/META_LINK/META_LINK.d.ts +0 -3
  420. package/esm/src/commitments/META_VOICE/META_VOICE.d.ts +0 -3
  421. package/esm/src/commitments/MODEL/MODEL.d.ts +4 -3
  422. package/esm/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  423. package/esm/src/commitments/OPEN/OPEN.d.ts +0 -3
  424. package/esm/src/commitments/PERSONA/PERSONA.d.ts +7 -3
  425. package/esm/src/commitments/RULE/RULE.d.ts +4 -3
  426. package/esm/src/commitments/SAMPLE/SAMPLE.d.ts +0 -3
  427. package/esm/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
  428. package/esm/src/commitments/STYLE/STYLE.d.ts +9 -2
  429. package/esm/src/commitments/TEAM/TEAM.d.ts +6 -5
  430. package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -7
  431. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +32 -0
  432. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +5 -7
  433. package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -7
  434. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +2 -2
  435. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +39 -0
  436. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  437. package/esm/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  438. package/esm/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  439. package/esm/src/commitments/USE_CALENDAR/calendarReference.d.ts +65 -0
  440. package/esm/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  441. package/esm/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  442. package/esm/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  443. package/esm/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  444. package/esm/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  445. package/esm/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  446. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +47 -0
  447. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts +1 -0
  448. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +2 -5
  449. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  450. package/esm/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
  451. package/esm/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
  452. package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +2 -5
  453. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +2 -5
  454. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +1 -4
  455. package/esm/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +1 -1
  456. package/esm/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +1 -1
  457. package/esm/src/commitments/USE_PROJECT/projectReference.d.ts +0 -3
  458. package/esm/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  459. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -5
  460. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +2 -5
  461. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +1 -1
  462. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +2 -5
  463. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +2 -0
  464. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +128 -6
  465. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +3 -6
  466. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +1 -1
  467. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +2 -2
  468. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +45 -1
  469. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +1 -1
  470. package/esm/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -5
  471. package/esm/src/commitments/WALLET/WALLET.d.ts +1 -4
  472. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +1 -1
  473. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +1 -1
  474. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +1 -1
  475. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +1 -1
  476. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +0 -3
  477. package/esm/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +0 -3
  478. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +40 -2
  479. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +23 -3
  480. package/esm/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
  481. package/esm/src/commitments/_common/commitmentToolFunctions.d.ts +4 -5
  482. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +12 -0
  483. package/esm/src/commitments/_common/createWritingCommitmentSections.d.ts +2 -3
  484. package/esm/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
  485. package/esm/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  486. package/esm/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
  487. package/esm/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -5
  488. package/esm/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  489. package/esm/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
  490. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  491. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  492. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  493. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  494. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  495. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  496. package/esm/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
  497. package/esm/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  498. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  499. package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +1 -4
  500. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +21 -4
  501. package/esm/src/commitments/index.d.ts +5 -6
  502. package/esm/src/commitments/index.test.d.ts +1 -0
  503. package/esm/src/config.d.ts +10 -6
  504. package/esm/src/config.test.d.ts +0 -3
  505. package/esm/src/constants/streaming.d.ts +0 -3
  506. package/esm/src/constants.d.ts +0 -3
  507. package/esm/src/conversion/archive/loadArchive.d.ts +1 -4
  508. package/esm/src/conversion/archive/saveArchive.d.ts +1 -6
  509. package/esm/src/conversion/compilePipeline.d.ts +2 -7
  510. package/esm/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
  511. package/esm/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  512. package/esm/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  513. package/esm/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  514. package/esm/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  515. package/esm/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  516. package/esm/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  517. package/esm/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  518. package/esm/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  519. package/esm/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  520. package/esm/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  521. package/esm/src/conversion/parsePipeline.d.ts +1 -11
  522. package/esm/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  523. package/esm/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  524. package/esm/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  525. package/esm/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  526. package/esm/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  527. package/esm/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  528. package/esm/src/conversion/pipelineJsonToString.d.ts +1 -7
  529. package/esm/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  530. package/esm/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
  531. package/esm/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -8
  532. package/esm/src/conversion/utils/extractParameterNamesFromTask.d.ts +2 -4
  533. package/{umd/src/conversion/validation/_importPipeline.d.ts → esm/src/conversion/validation/_importPipeline.test.d.ts} +6 -4
  534. package/esm/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
  535. package/esm/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
  536. package/esm/src/conversion/validation/validatePipeline.d.ts +3 -9
  537. package/esm/src/conversion/validation/validatePipeline.test.d.ts +0 -3
  538. package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -4
  539. package/esm/src/errors/0-BoilerplateError.d.ts +0 -3
  540. package/esm/src/errors/0-index.d.ts +0 -3
  541. package/esm/src/errors/DatabaseError.d.ts +0 -3
  542. package/esm/src/errors/ExpectError.d.ts +2 -1
  543. package/esm/src/errors/ParseError.d.ts +0 -3
  544. package/esm/src/errors/PipelineExecutionError.d.ts +1 -4
  545. package/esm/src/errors/utils/ErrorJson.d.ts +1 -1
  546. package/esm/src/executables/$provideExecutablesForNode.d.ts +0 -5
  547. package/esm/src/executables/apps/locateLibreoffice.d.ts +1 -5
  548. package/esm/src/executables/apps/locatePandoc.d.ts +1 -5
  549. package/esm/src/executables/apps/locateVscode.d.ts +7 -0
  550. package/esm/src/executables/apps/locateVscode.test.d.ts +1 -0
  551. package/esm/src/executables/browsers/locateBrowser.d.ts +9 -0
  552. package/esm/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  553. package/esm/src/executables/browsers/locateChrome.d.ts +7 -0
  554. package/esm/src/executables/browsers/locateChrome.test.d.ts +1 -0
  555. package/esm/src/executables/browsers/locateDefaultSystemBrowser.d.ts +9 -0
  556. package/esm/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  557. package/esm/src/executables/browsers/locateEdge.d.ts +7 -0
  558. package/esm/src/executables/browsers/locateEdge.test.d.ts +1 -0
  559. package/esm/src/executables/browsers/locateFirefox.d.ts +7 -0
  560. package/esm/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  561. package/esm/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  562. package/esm/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  563. package/esm/src/executables/browsers/locateSafari.d.ts +7 -0
  564. package/esm/src/executables/locateApp.d.ts +1 -5
  565. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +1 -5
  566. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +1 -5
  567. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -5
  568. package/esm/src/execution/AbstractTaskResult.d.ts +1 -5
  569. package/esm/src/execution/AvailableModel.d.ts +5 -5
  570. package/esm/src/execution/CommonToolsOptions.d.ts +1 -6
  571. package/esm/src/execution/Executables.d.ts +1 -1
  572. package/esm/src/execution/ExecutionTask.d.ts +7 -6
  573. package/esm/src/execution/FilesystemTools.d.ts +0 -3
  574. package/esm/src/execution/LlmExecutionTools.d.ts +5 -10
  575. package/esm/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
  576. package/esm/src/execution/PipelineExecutor.d.ts +1 -4
  577. package/esm/src/execution/PipelineExecutorResult.d.ts +2 -5
  578. package/esm/src/execution/PromptResult.d.ts +4 -10
  579. package/esm/src/execution/PromptbookFetch.d.ts +1 -1
  580. package/esm/src/execution/PromptbookFetch.test-type.d.ts +0 -4
  581. package/esm/src/execution/ScriptExecutionTools.d.ts +2 -6
  582. package/esm/src/execution/UncertainNumber.d.ts +2 -2
  583. package/esm/src/execution/Usage.d.ts +0 -3
  584. package/esm/src/execution/UserInterfaceTools.d.ts +4 -2
  585. package/esm/src/execution/assertsTaskSuccessful.d.ts +1 -3
  586. package/esm/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
  587. package/esm/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  588. package/esm/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -4
  589. package/esm/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
  590. package/esm/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +3 -4
  591. package/esm/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  592. package/esm/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  593. package/esm/src/execution/createPipelineExecutor/getContextForTask.d.ts +3 -2
  594. package/esm/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  595. package/esm/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -5
  596. package/esm/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  597. package/esm/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  598. package/esm/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
  599. package/esm/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  600. package/esm/src/execution/execution-report/ExecutionReportJson.d.ts +4 -3
  601. package/esm/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
  602. package/esm/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  603. package/esm/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
  604. package/esm/src/execution/resolveTaskTldr.d.ts +32 -0
  605. package/esm/src/execution/resolveTaskTldr.test.d.ts +1 -0
  606. package/esm/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
  607. package/esm/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
  608. package/esm/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
  609. package/esm/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
  610. package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -5
  611. package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -6
  612. package/esm/src/execution/utils/checkExpectations.d.ts +2 -5
  613. package/esm/src/execution/utils/forEachAsync.d.ts +5 -1
  614. package/esm/src/execution/utils/usage-constants.d.ts +0 -3
  615. package/esm/src/execution/utils/usageToHuman.d.ts +1 -9
  616. package/esm/src/execution/utils/validatePromptResult.d.ts +2 -1
  617. package/esm/src/file-security-checkers/FileSecurityCheckResult.d.ts +2 -1
  618. package/esm/src/file-security-checkers/FileSecurityChecker.d.ts +3 -1
  619. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +2 -1
  620. package/esm/src/formats/_common/FormatParser.d.ts +4 -11
  621. package/esm/src/formats/_common/FormatSubvalueParser.d.ts +2 -6
  622. package/esm/src/formats/csv/CsvFormatParser.d.ts +2 -8
  623. package/esm/src/formats/csv/utils/csvParse.d.ts +1 -1
  624. package/esm/src/formats/index.d.ts +0 -3
  625. package/esm/src/formats/json/JsonFormatParser.d.ts +0 -11
  626. package/esm/src/formats/text/TextFormatParser.d.ts +0 -9
  627. package/esm/src/formats/xml/XmlFormatParser.d.ts +0 -11
  628. package/esm/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +3 -6
  629. package/esm/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
  630. package/esm/src/formfactors/index.d.ts +2 -5
  631. package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  632. package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  633. package/esm/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
  634. package/esm/src/high-level-abstractions/index.d.ts +0 -4
  635. package/esm/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
  636. package/esm/src/import-plugins/FileImportPlugin.d.ts +1 -1
  637. package/esm/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
  638. package/esm/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
  639. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -4
  640. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  641. package/esm/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
  642. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +6 -9
  643. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -18
  644. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -5
  645. package/esm/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -6
  646. package/esm/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -7
  647. package/esm/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
  648. package/esm/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +4 -1
  649. package/esm/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -4
  650. package/esm/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -5
  651. package/esm/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
  652. package/esm/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
  653. package/esm/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
  654. package/esm/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
  655. package/esm/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
  656. package/esm/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +3 -1
  657. package/esm/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
  658. package/esm/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +5 -8
  659. package/esm/src/llm-providers/_multiple/playground/playground.d.ts +0 -3
  660. package/esm/src/llm-providers/agent/Agent.d.ts +7 -4
  661. package/esm/src/llm-providers/agent/Agent.test.d.ts +1 -0
  662. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +39 -26
  663. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  664. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  665. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  666. package/esm/src/llm-providers/agent/AgentOptions.d.ts +8 -0
  667. package/esm/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +9 -0
  668. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +5 -5
  669. package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +5 -1
  670. package/esm/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  671. package/esm/src/llm-providers/agent/playground/playground.d.ts +0 -6
  672. package/esm/src/llm-providers/agent/register-configuration.d.ts +0 -5
  673. package/esm/src/llm-providers/agent/register-constructor.d.ts +0 -4
  674. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -11
  675. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
  676. package/esm/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +3 -10
  677. package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +1 -3
  678. package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
  679. package/esm/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
  680. package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
  681. package/esm/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
  682. package/esm/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
  683. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -7
  684. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +3 -3
  685. package/esm/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
  686. package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +0 -4
  687. package/esm/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
  688. package/esm/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
  689. package/esm/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
  690. package/esm/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
  691. package/esm/src/llm-providers/deepseek/deepseek-models.d.ts +3 -8
  692. package/esm/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
  693. package/esm/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
  694. package/esm/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
  695. package/esm/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
  696. package/esm/src/llm-providers/google/google-models.d.ts +3 -8
  697. package/esm/src/llm-providers/google/register-configuration.d.ts +0 -3
  698. package/esm/src/llm-providers/google/register-constructor.d.ts +0 -4
  699. package/esm/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +2 -6
  700. package/esm/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
  701. package/esm/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -4
  702. package/esm/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
  703. package/esm/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
  704. package/esm/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
  705. package/esm/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -4
  706. package/esm/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
  707. package/esm/src/llm-providers/ollama/ollama-models.d.ts +1 -4
  708. package/esm/src/llm-providers/ollama/playground/playground.d.ts +0 -4
  709. package/esm/src/llm-providers/ollama/register-configuration.d.ts +0 -3
  710. package/esm/src/llm-providers/ollama/register-constructor.d.ts +0 -4
  711. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +18 -84
  712. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.test.d.ts +1 -0
  713. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  714. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  715. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  716. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  717. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +36 -9
  718. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  719. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  720. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  721. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  722. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  723. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +15 -39
  724. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
  725. package/esm/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  726. package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  727. package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  728. package/esm/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  729. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  730. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  731. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +3 -46
  732. package/esm/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  733. package/esm/src/llm-providers/openai/computeOpenAiUsage.d.ts +1 -3
  734. package/esm/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
  735. package/esm/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
  736. package/esm/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -5
  737. package/esm/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
  738. package/esm/src/llm-providers/openai/openai-models.d.ts +2 -1
  739. package/esm/src/llm-providers/openai/openai-models.test.d.ts +0 -3
  740. package/esm/src/llm-providers/openai/playground/playground.d.ts +0 -4
  741. package/esm/src/llm-providers/openai/register-configuration.d.ts +0 -3
  742. package/esm/src/llm-providers/openai/register-constructor.d.ts +0 -4
  743. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  744. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  745. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  746. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  747. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +29 -0
  748. package/esm/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -10
  749. package/esm/src/llm-providers/remote/playground/playground.d.ts +0 -3
  750. package/esm/src/llm-providers/vercel/playground/playground.d.ts +0 -4
  751. package/esm/src/other/templates/getBookTemplates.d.ts +3 -6
  752. package/esm/src/personas/preparePersona.d.ts +2 -8
  753. package/esm/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
  754. package/esm/src/pipeline/PipelineInterface/constants.d.ts +0 -3
  755. package/esm/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -12
  756. package/esm/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
  757. package/esm/src/pipeline/PipelineJson/Expectations.d.ts +5 -5
  758. package/esm/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -10
  759. package/esm/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -6
  760. package/esm/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  761. package/esm/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -6
  762. package/esm/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  763. package/esm/src/pipeline/PipelineJson/PreparationJson.d.ts +4 -6
  764. package/esm/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  765. package/esm/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
  766. package/esm/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
  767. package/esm/src/pipeline/book-notation.d.ts +1 -4
  768. package/esm/src/pipeline/isValidPipelineString.d.ts +1 -3
  769. package/esm/src/pipeline/isValidPipelineString.test.d.ts +0 -3
  770. package/esm/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
  771. package/esm/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
  772. package/esm/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
  773. package/esm/src/pipeline/prompt-notation.d.ts +3 -6
  774. package/esm/src/pipeline/prompt-notation.test.d.ts +0 -3
  775. package/esm/src/pipeline/validatePipelineString.d.ts +1 -3
  776. package/esm/src/playground/permanent/_boilerplate.d.ts +0 -3
  777. package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +0 -3
  778. package/esm/src/playground/permanent/error-handling-playground.d.ts +0 -3
  779. package/esm/src/playground/playground.d.ts +1 -4
  780. package/esm/src/postprocessing/utils/extractBlock.d.ts +3 -2
  781. package/esm/src/postprocessing/utils/extractJsonBlock.d.ts +3 -7
  782. package/esm/src/prepare/PrepareAndScrapeOptions.d.ts +1 -5
  783. package/esm/src/prepare/preparePipeline.d.ts +3 -2
  784. package/esm/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
  785. package/esm/src/prepare/prepareTasks.d.ts +6 -10
  786. package/esm/src/prepare/unpreparePipeline.d.ts +1 -5
  787. package/esm/src/remote-server/RemoteServer.d.ts +3 -0
  788. package/esm/src/remote-server/openapi.d.ts +3 -4
  789. package/esm/src/remote-server/socket-types/_subtypes/Identification.d.ts +3 -7
  790. package/esm/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  791. package/esm/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  792. package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
  793. package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
  794. package/esm/src/remote-server/startAgentServer.d.ts +7 -5
  795. package/esm/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  796. package/esm/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  797. package/esm/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  798. package/esm/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  799. package/esm/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  800. package/esm/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  801. package/esm/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  802. package/esm/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  803. package/esm/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  804. package/esm/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  805. package/esm/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  806. package/esm/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  807. package/esm/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  808. package/esm/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  809. package/esm/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  810. package/esm/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  811. package/esm/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  812. package/esm/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  813. package/esm/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  814. package/esm/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  815. package/esm/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  816. package/esm/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  817. package/esm/src/remote-server/startRemoteServer.d.ts +1 -16
  818. package/esm/src/remote-server/types/RemoteClientOptions.d.ts +1 -6
  819. package/esm/src/remote-server/types/RemoteServerOptions.d.ts +12 -5
  820. package/esm/src/remote-server/ui/ServerApp.d.ts +1 -0
  821. package/esm/src/remote-server/ui/types.d.ts +3 -0
  822. package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +2 -8
  823. package/esm/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
  824. package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -3
  825. package/esm/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
  826. package/esm/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
  827. package/esm/src/scrapers/_common/Scraper.d.ts +4 -9
  828. package/esm/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -4
  829. package/esm/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
  830. package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -4
  831. package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -4
  832. package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -4
  833. package/esm/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -4
  834. package/esm/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
  835. package/esm/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
  836. package/esm/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  837. package/esm/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
  838. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -8
  839. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
  840. package/esm/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  841. package/esm/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
  842. package/esm/src/scrapers/document/DocumentScraper.d.ts +2 -8
  843. package/esm/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
  844. package/esm/src/scrapers/document/createDocumentScraper.d.ts +0 -3
  845. package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -3
  846. package/esm/src/scrapers/document/register-constructor.d.ts +0 -4
  847. package/esm/src/scrapers/document/register-metadata.d.ts +0 -3
  848. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +2 -8
  849. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
  850. package/esm/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
  851. package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -3
  852. package/esm/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
  853. package/esm/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
  854. package/esm/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
  855. package/esm/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
  856. package/esm/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
  857. package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -3
  858. package/esm/src/scrapers/markdown/register-constructor.d.ts +0 -4
  859. package/esm/src/scrapers/markdown/register-metadata.d.ts +0 -3
  860. package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
  861. package/esm/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
  862. package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -3
  863. package/esm/src/scrapers/markitdown/register-constructor.d.ts +0 -5
  864. package/esm/src/scrapers/markitdown/register-metadata.d.ts +0 -3
  865. package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -6
  866. package/esm/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
  867. package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -3
  868. package/esm/src/scrapers/pdf/register-constructor.d.ts +0 -4
  869. package/esm/src/scrapers/pdf/register-metadata.d.ts +0 -3
  870. package/esm/src/scrapers/website/WebsiteScraper.d.ts +3 -9
  871. package/esm/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
  872. package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -3
  873. package/esm/src/scrapers/website/register-constructor.d.ts +0 -4
  874. package/esm/src/scrapers/website/register-metadata.d.ts +0 -3
  875. package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
  876. package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
  877. package/esm/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
  878. package/esm/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -5
  879. package/esm/src/scripting/javascript/postprocessing-functions.d.ts +1 -5
  880. package/esm/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +3 -5
  881. package/esm/src/search-engines/SearchEngine.d.ts +5 -1
  882. package/esm/src/search-engines/SearchResult.d.ts +1 -1
  883. package/esm/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  884. package/esm/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  885. package/esm/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  886. package/esm/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  887. package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -4
  888. package/esm/src/speech-recognition/OpenAiSpeechRecognition.d.ts +26 -4
  889. package/esm/src/speech-recognition/OpenAiSpeechRecognition.test.d.ts +1 -0
  890. package/esm/src/storage/_common/PromptbookStorage.d.ts +0 -4
  891. package/esm/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
  892. package/esm/src/storage/env-storage/$EnvStorage.d.ts +0 -3
  893. package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -4
  894. package/esm/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  895. package/esm/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  896. package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -3
  897. package/esm/src/storage/local-storage/getLocalStorage.d.ts +0 -3
  898. package/esm/src/storage/local-storage/getSessionStorage.d.ts +0 -3
  899. package/esm/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  900. package/esm/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
  901. package/esm/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
  902. package/esm/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  903. package/esm/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  904. package/esm/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  905. package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  906. package/esm/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  907. package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  908. package/esm/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  909. package/esm/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  910. package/esm/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
  911. package/esm/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  912. package/esm/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  913. package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  914. package/esm/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  915. package/esm/src/transpilers/agent-os/register.d.ts +12 -0
  916. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  917. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  918. package/esm/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  919. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  920. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  921. package/esm/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  922. package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  923. package/esm/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  924. package/esm/src/transpilers/e2b/register.d.ts +12 -0
  925. package/esm/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  926. package/esm/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
  927. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  928. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  929. package/esm/src/transpilers/openai-agents/register.d.ts +12 -0
  930. package/esm/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  931. package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +0 -3
  932. package/esm/src/transpilers/openai-sdk/register.d.ts +2 -5
  933. package/esm/src/types/Arrayable.d.ts +1 -0
  934. package/esm/src/types/InputParameters_private.d.ts +13 -0
  935. package/esm/src/types/IntermediateFilesStrategy.d.ts +0 -3
  936. package/esm/src/types/LlmCall.d.ts +1 -4
  937. package/esm/src/types/LlmToolDefinition.d.ts +19 -8
  938. package/esm/src/types/Message.d.ts +4 -3
  939. package/esm/src/types/ModelRequirements.d.ts +5 -2
  940. package/esm/src/types/ModelVariant.d.ts +3 -0
  941. package/esm/src/types/Parameters.d.ts +31 -0
  942. package/esm/src/types/Parameters_private.d.ts +18 -0
  943. package/esm/src/types/Prompt.d.ts +8 -18
  944. package/esm/src/types/ReservedParameters_private.d.ts +11 -0
  945. package/esm/src/types/SpeechRecognition.d.ts +5 -1
  946. package/esm/src/types/ToolCall.d.ts +1 -3
  947. package/esm/src/types/Updatable.d.ts +1 -3
  948. package/esm/src/types/number_bytes.d.ts +21 -0
  949. package/esm/src/types/number_id.d.ts +13 -0
  950. package/esm/src/types/number_likeness.d.ts +8 -0
  951. package/esm/src/types/number_milliseconds.d.ts +33 -0
  952. package/esm/src/types/number_percent.d.ts +18 -0
  953. package/esm/src/types/number_positive.d.ts +16 -0
  954. package/esm/src/types/number_usd.d.ts +6 -106
  955. package/esm/src/types/string_agent_hash_private.d.ts +9 -0
  956. package/esm/src/types/string_agent_name.d.ts +32 -0
  957. package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
  958. package/esm/src/types/string_agent_name_private.d.ts +10 -0
  959. package/esm/src/types/string_agent_permanent_id_private.d.ts +11 -0
  960. package/esm/src/types/string_agent_url.d.ts +7 -0
  961. package/esm/src/types/string_agent_url_private.d.ts +9 -0
  962. package/esm/src/types/string_base64.d.ts +13 -0
  963. package/esm/src/types/string_base64_private.d.ts +17 -0
  964. package/esm/src/types/string_base_url.d.ts +7 -0
  965. package/esm/src/types/string_base_url_private.d.ts +9 -0
  966. package/esm/src/types/string_business_category_name.d.ts +5 -0
  967. package/esm/src/types/string_business_category_name_private.d.ts +6 -0
  968. package/esm/src/types/string_char_private.d.ts +8 -0
  969. package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
  970. package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
  971. package/esm/src/types/string_email.d.ts +13 -0
  972. package/esm/src/types/string_email_private.d.ts +16 -0
  973. package/esm/src/types/string_host.d.ts +42 -0
  974. package/esm/src/types/string_host_private.d.ts +55 -0
  975. package/esm/src/types/string_href.d.ts +19 -0
  976. package/esm/src/types/string_href_private.d.ts +24 -0
  977. package/esm/src/types/string_markdown.d.ts +0 -1
  978. package/esm/src/types/string_mime_type.d.ts +15 -0
  979. package/esm/src/types/string_mime_type_private.d.ts +18 -0
  980. package/esm/src/types/string_model_description_private.d.ts +8 -0
  981. package/esm/src/types/string_model_name.d.ts +7 -0
  982. package/esm/src/types/string_model_name_private.d.ts +8 -0
  983. package/esm/src/types/string_name.d.ts +31 -0
  984. package/esm/src/types/string_name_private.d.ts +9 -0
  985. package/esm/src/types/string_page.d.ts +15 -0
  986. package/esm/src/types/string_page_private.d.ts +9 -0
  987. package/esm/src/types/string_parameter_name.d.ts +11 -167
  988. package/esm/src/types/string_parameter_value_private.d.ts +9 -0
  989. package/esm/src/types/string_person_fullname.d.ts +1 -1
  990. package/esm/src/types/string_persona_description.d.ts +14 -0
  991. package/esm/src/types/string_persona_description_private.d.ts +8 -0
  992. package/esm/src/types/string_pipeline_root_url.d.ts +7 -0
  993. package/esm/src/types/string_pipeline_root_url_private.d.ts +9 -0
  994. package/esm/src/types/string_pipeline_url.d.ts +13 -0
  995. package/esm/src/types/string_pipeline_url_private.d.ts +17 -0
  996. package/esm/src/types/string_prompt.d.ts +49 -0
  997. package/esm/src/types/string_prompt_image_private.d.ts +8 -0
  998. package/esm/src/types/string_prompt_private.d.ts +8 -0
  999. package/esm/src/types/string_promptbook_server_url.d.ts +7 -0
  1000. package/esm/src/types/string_promptbook_server_url_private.d.ts +9 -0
  1001. package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  1002. package/esm/src/types/string_sha256.d.ts +2 -2
  1003. package/esm/src/types/string_system_message_private.d.ts +9 -0
  1004. package/esm/src/types/string_template_private.d.ts +8 -0
  1005. package/esm/src/types/string_text_prompt_private.d.ts +9 -0
  1006. package/esm/src/types/string_title.d.ts +8 -0
  1007. package/esm/src/types/string_title_private.d.ts +9 -0
  1008. package/esm/src/types/string_token.d.ts +1 -1
  1009. package/esm/src/types/string_url.d.ts +15 -138
  1010. package/esm/src/types/string_url_image.d.ts +7 -0
  1011. package/esm/src/types/string_url_image_private.d.ts +9 -0
  1012. package/esm/src/types/string_url_private.d.ts +8 -0
  1013. package/esm/src/types/typeAliasEmoji.d.ts +0 -3
  1014. package/esm/src/types/typeAliases.d.ts +7 -7
  1015. package/esm/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
  1016. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +66 -6
  1017. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.test.d.ts +1 -0
  1018. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +1 -0
  1019. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +1 -0
  1020. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +1 -0
  1021. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +1 -0
  1022. package/esm/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +1 -0
  1023. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +1 -0
  1024. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +1 -0
  1025. package/esm/src/utils/chat/chatAttachments.d.ts +0 -3
  1026. package/esm/src/utils/chat/constants.d.ts +0 -3
  1027. package/esm/src/utils/clientVersion.d.ts +0 -3
  1028. package/esm/src/utils/color/$randomColor.d.ts +0 -5
  1029. package/esm/src/utils/color/Color.d.ts +6 -45
  1030. package/esm/src/utils/color/ColorValue.d.ts +55 -0
  1031. package/esm/src/utils/color/css-colors.d.ts +0 -3
  1032. package/esm/src/utils/color/internal-utils/hslToRgb.d.ts +2 -6
  1033. package/esm/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -6
  1034. package/esm/src/utils/color/isHexColorString.d.ts +10 -0
  1035. package/esm/src/utils/color/operators/ColorTransformer.d.ts +2 -0
  1036. package/esm/src/utils/color/operators/darken.d.ts +1 -1
  1037. package/esm/src/utils/color/operators/grayscale.d.ts +1 -1
  1038. package/esm/src/utils/color/operators/lighten.d.ts +1 -4
  1039. package/esm/src/utils/color/operators/mixWithColor.d.ts +1 -1
  1040. package/esm/src/utils/color/operators/saturate.d.ts +1 -4
  1041. package/esm/src/utils/color/parseColorString.d.ts +11 -0
  1042. package/esm/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  1043. package/esm/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  1044. package/esm/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  1045. package/esm/src/utils/color/utils/areColorsEqual.d.ts +0 -3
  1046. package/esm/src/utils/color/utils/colorDistance.d.ts +2 -2
  1047. package/esm/src/utils/color/utils/colorHue.d.ts +0 -1
  1048. package/esm/src/utils/color/utils/colorHueDistance.d.ts +0 -1
  1049. package/esm/src/utils/color/utils/colorToDataUrl.d.ts +3 -4
  1050. package/esm/src/utils/database/uniqueConstraint.d.ts +1 -3
  1051. package/esm/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +4 -5
  1052. package/esm/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
  1053. package/esm/src/utils/editable/types/PipelineEditableSerialized.d.ts +3 -3
  1054. package/esm/src/utils/editable/utils/renamePipelineParameter.d.ts +5 -4
  1055. package/esm/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -7
  1056. package/esm/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
  1057. package/esm/src/utils/environment/$getGlobalScope.d.ts +1 -1
  1058. package/esm/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
  1059. package/esm/src/utils/environment/$isRunningInJest.d.ts +0 -3
  1060. package/esm/src/utils/environment/$isRunningInNode.d.ts +0 -3
  1061. package/esm/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
  1062. package/esm/src/utils/execCommand/$execCommand.d.ts +0 -4
  1063. package/esm/src/utils/execCommand/$execCommands.d.ts +0 -3
  1064. package/esm/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
  1065. package/esm/src/utils/expectation-counters/constants.d.ts +0 -4
  1066. package/esm/src/utils/expectation-counters/countCharacters.d.ts +0 -4
  1067. package/esm/src/utils/expectation-counters/countLines.d.ts +0 -4
  1068. package/esm/src/utils/expectation-counters/countPages.d.ts +0 -4
  1069. package/esm/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
  1070. package/esm/src/utils/expectation-counters/countSentences.d.ts +0 -4
  1071. package/esm/src/utils/expectation-counters/countWords.d.ts +0 -5
  1072. package/esm/src/utils/expectation-counters/index.d.ts +0 -4
  1073. package/esm/src/utils/files/$induceBookDownload.d.ts +0 -3
  1074. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -4
  1075. package/esm/src/utils/files/ObjectUrl.d.ts +2 -4
  1076. package/esm/src/utils/files/extensionToMimeType.d.ts +2 -2
  1077. package/esm/src/utils/files/getFileExtension.d.ts +2 -2
  1078. package/esm/src/utils/files/isDirectoryExisting.d.ts +1 -7
  1079. package/esm/src/utils/files/isExecutable.d.ts +0 -4
  1080. package/esm/src/utils/files/isFileExisting.d.ts +1 -6
  1081. package/esm/src/utils/files/listAllFiles.d.ts +2 -6
  1082. package/esm/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  1083. package/esm/src/utils/files/readResponseBytes.d.ts +1 -0
  1084. package/esm/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  1085. package/esm/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  1086. package/esm/src/utils/knowledge/inlineKnowledgeSource.d.ts +14 -7
  1087. package/esm/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
  1088. package/esm/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
  1089. package/esm/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
  1090. package/esm/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
  1091. package/esm/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
  1092. package/esm/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -5
  1093. package/esm/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  1094. package/esm/src/utils/markdown/createMarkdownTable.d.ts +1 -5
  1095. package/esm/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -4
  1096. package/esm/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -4
  1097. package/esm/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
  1098. package/esm/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +3 -5
  1099. package/esm/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  1100. package/esm/src/utils/markdown/humanizeAiText.d.ts +1 -4
  1101. package/esm/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -4
  1102. package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +2 -5
  1103. package/esm/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -4
  1104. package/esm/src/utils/markdown/humanizeAiTextSources.d.ts +1 -4
  1105. package/esm/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -4
  1106. package/esm/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  1107. package/esm/src/utils/markdown/prettifyMarkdown.d.ts +5 -3
  1108. package/esm/src/utils/markdown/promptbookifyAiText.d.ts +1 -4
  1109. package/esm/src/utils/markdown/removeMarkdownComments.d.ts +2 -2
  1110. package/esm/src/utils/markdown/removeMarkdownFormatting.d.ts +2 -1
  1111. package/esm/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
  1112. package/esm/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  1113. package/esm/src/utils/markdown/trimCodeBlock.d.ts +1 -1
  1114. package/esm/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
  1115. package/esm/src/utils/misc/$Register.d.ts +1 -1
  1116. package/esm/src/utils/misc/$getCurrentDate.d.ts +2 -1
  1117. package/esm/src/utils/misc/aboutPromptbookInformation.d.ts +4 -4
  1118. package/esm/src/utils/misc/computeHash.d.ts +2 -5
  1119. package/esm/src/utils/misc/debounce.d.ts +2 -0
  1120. package/esm/src/utils/misc/emojis.d.ts +3 -8
  1121. package/esm/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +8 -3
  1122. package/esm/src/utils/misc/parseNumber.d.ts +0 -4
  1123. package/esm/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
  1124. package/esm/src/utils/normalization/IKeywords.d.ts +0 -3
  1125. package/esm/src/utils/normalization/nameToUriPart.d.ts +1 -0
  1126. package/esm/src/utils/normalization/nameToUriParts.d.ts +1 -0
  1127. package/esm/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
  1128. package/esm/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
  1129. package/esm/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
  1130. package/esm/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
  1131. package/esm/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  1132. package/esm/src/utils/normalization/orderJson.d.ts +1 -0
  1133. package/esm/src/utils/normalization/orderJson.test.d.ts +0 -3
  1134. package/esm/src/utils/normalization/parseKeywords.d.ts +1 -4
  1135. package/esm/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
  1136. package/esm/src/utils/normalization/removeDiacritics.d.ts +1 -3
  1137. package/esm/src/utils/normalization/removeEmojis.d.ts +1 -0
  1138. package/esm/src/utils/normalization/removeQuotes.d.ts +1 -0
  1139. package/esm/src/utils/normalization/searchKeywords.d.ts +1 -3
  1140. package/esm/src/utils/normalization/suffixUrl.d.ts +1 -1
  1141. package/esm/src/utils/normalization/titleToName.d.ts +1 -0
  1142. package/esm/src/utils/normalization/unwrapResult.d.ts +1 -3
  1143. package/esm/src/utils/organization/$sideEffect.d.ts +1 -0
  1144. package/esm/src/utils/organization/TODO_USE.d.ts +1 -0
  1145. package/esm/src/utils/organization/just.d.ts +1 -0
  1146. package/esm/src/utils/organization/keepImported.d.ts +2 -1
  1147. package/esm/src/utils/organization/keepTypeImported.d.ts +1 -0
  1148. package/esm/src/utils/organization/keepUnused.d.ts +1 -0
  1149. package/esm/src/utils/organization/preserve.d.ts +1 -3
  1150. package/esm/src/utils/organization/really_any.d.ts +1 -0
  1151. package/esm/src/utils/organization/spaceTrim.d.ts +3 -2
  1152. package/esm/src/utils/parameters/extractParameterNames.d.ts +3 -2
  1153. package/esm/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +2 -2
  1154. package/esm/src/utils/parameters/numberToString.d.ts +1 -1
  1155. package/esm/src/utils/parameters/templateParameters.d.ts +4 -2
  1156. package/esm/src/utils/parameters/valueToString.d.ts +3 -3
  1157. package/esm/src/utils/random/$generateBookBoilerplate.d.ts +4 -4
  1158. package/esm/src/utils/random/$randomAgentPersona.d.ts +2 -4
  1159. package/esm/src/utils/random/$randomAgentRule.d.ts +2 -4
  1160. package/esm/src/utils/random/$randomFullnameWithColor.d.ts +5 -4
  1161. package/esm/src/utils/random/$randomItem.d.ts +0 -3
  1162. package/esm/src/utils/random/$randomSeed.d.ts +1 -4
  1163. package/esm/src/utils/random/$randomToken.d.ts +3 -6
  1164. package/esm/src/utils/random/EnglishNamePool.d.ts +1 -0
  1165. package/esm/src/utils/random/NamePool.d.ts +1 -1
  1166. package/esm/src/utils/serialization/$deepFreeze.d.ts +1 -3
  1167. package/esm/src/utils/serialization/checkSerializableAsJson.d.ts +2 -6
  1168. package/esm/src/utils/serialization/clonePipeline.d.ts +1 -3
  1169. package/esm/src/utils/serialization/deepClone.d.ts +1 -3
  1170. package/esm/src/utils/serialization/exportJson.d.ts +1 -3
  1171. package/esm/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
  1172. package/esm/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
  1173. package/esm/src/utils/serialization/serializeToPromptbookJavascript.d.ts +6 -4
  1174. package/esm/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  1175. package/esm/src/utils/sets/difference.d.ts +1 -3
  1176. package/esm/src/utils/sets/intersection.d.ts +1 -0
  1177. package/esm/src/utils/sets/union.d.ts +1 -0
  1178. package/esm/src/utils/take/classes/TakeChain.d.ts +4 -1
  1179. package/esm/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
  1180. package/esm/src/utils/take/interfaces/Takeable.d.ts +2 -1
  1181. package/esm/src/utils/take/take.d.ts +1 -1
  1182. package/esm/src/utils/validators/email/isValidEmail.d.ts +1 -1
  1183. package/esm/src/utils/validators/filePath/isRootPath.d.ts +2 -5
  1184. package/esm/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
  1185. package/esm/src/utils/validators/filePath/isValidFilePath.d.ts +2 -4
  1186. package/esm/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +2 -1
  1187. package/esm/src/utils/validators/parameterName/validateParameterName.d.ts +2 -1
  1188. package/esm/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
  1189. package/esm/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  1190. package/esm/src/utils/validators/url/extractUrlsFromText.d.ts +1 -0
  1191. package/esm/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +1 -1
  1192. package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +3 -2
  1193. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +1 -4
  1194. package/esm/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -4
  1195. package/esm/src/utils/validators/url/isValidUrl.d.ts +1 -1
  1196. package/esm/src/utils/validators/url/normalizeDomainForMatching.d.ts +1 -0
  1197. package/esm/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  1198. package/esm/src/version.d.ts +1 -1
  1199. package/esm/src/wizard/$getCompiledBook.d.ts +2 -5
  1200. package/esm/src/wizard/wizard.d.ts +5 -5
  1201. package/package.json +5 -4
  1202. package/umd/index.umd.js +579 -406
  1203. package/umd/index.umd.js.map +1 -1
  1204. package/umd/src/_packages/cli.index.d.ts +10 -0
  1205. package/umd/src/_packages/components.index.d.ts +18 -0
  1206. package/umd/src/_packages/core.index.d.ts +16 -0
  1207. package/umd/src/_packages/types.index.d.ts +152 -128
  1208. package/umd/src/_packages/wizard.index.d.ts +10 -0
  1209. package/umd/src/avatars/Avatar.d.ts +7 -0
  1210. package/umd/src/avatars/AvatarOrImage.d.ts +50 -0
  1211. package/umd/src/avatars/avatarAnimationScheduler.d.ts +16 -0
  1212. package/umd/src/avatars/avatarInteractionUtils.d.ts +81 -0
  1213. package/umd/src/avatars/avatarInteractionUtils.test.d.ts +1 -0
  1214. package/umd/src/avatars/avatarPointerTracking.d.ts +33 -0
  1215. package/umd/src/avatars/avatarRenderingUtils.d.ts +118 -0
  1216. package/umd/src/avatars/avatarRenderingUtils.test.d.ts +1 -0
  1217. package/umd/src/avatars/avatarVisibilityTracking.d.ts +17 -0
  1218. package/umd/src/avatars/index.d.ts +7 -0
  1219. package/umd/src/avatars/renderAvatarVisual.d.ts +36 -0
  1220. package/umd/src/avatars/types/AvatarDefinition.d.ts +21 -0
  1221. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +137 -0
  1222. package/umd/src/avatars/visuals/asciiOctopusAvatarVisual.d.ts +7 -0
  1223. package/umd/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  1224. package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +28 -0
  1225. package/umd/src/avatars/visuals/avatarVisualRegistry.test.d.ts +1 -0
  1226. package/umd/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
  1227. package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  1228. package/umd/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  1229. package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  1230. package/umd/src/avatars/visuals/octopus2AvatarVisual.d.ts +7 -0
  1231. package/umd/src/avatars/visuals/octopus3AvatarVisual.d.ts +79 -0
  1232. package/umd/src/avatars/visuals/octopus3AvatarVisual.test.d.ts +1 -0
  1233. package/umd/src/avatars/visuals/octopus3d2AvatarVisual.d.ts +7 -0
  1234. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  1235. package/umd/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  1236. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +37 -0
  1237. package/umd/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  1238. package/umd/src/avatars/visuals/octopusAvatarVisualShared.d.ts +175 -0
  1239. package/umd/src/avatars/visuals/octopusAvatarVisualShared.test.d.ts +1 -0
  1240. package/umd/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  1241. package/umd/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  1242. package/umd/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  1243. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +13 -7
  1244. package/umd/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -6
  1245. package/umd/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  1246. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +1 -1
  1247. package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  1248. package/umd/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +34 -0
  1249. package/umd/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  1250. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +11 -1
  1251. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts +1 -0
  1252. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  1253. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  1254. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  1255. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  1256. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  1257. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +9 -3
  1258. package/umd/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  1259. package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +8 -7
  1260. package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +1 -0
  1261. package/umd/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  1262. package/umd/src/book-2.0/agent-source/padBook.d.ts +1 -4
  1263. package/umd/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  1264. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  1265. package/umd/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  1266. package/umd/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  1267. package/umd/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  1268. package/umd/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  1269. package/umd/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  1270. package/umd/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  1271. package/umd/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  1272. package/umd/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
  1273. package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +2 -1
  1274. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  1275. package/umd/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
  1276. package/umd/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -4
  1277. package/umd/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +8 -3
  1278. package/umd/src/book-2.0/agent-source/string_book.d.ts +1 -0
  1279. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  1280. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  1281. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  1282. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  1283. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  1284. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  1285. package/umd/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -4
  1286. package/umd/src/book-3.0/Book.d.ts +39 -0
  1287. package/umd/src/book-3.0/Book.test.d.ts +1 -0
  1288. package/umd/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -4
  1289. package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -4
  1290. package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
  1291. package/umd/src/book-components/BookEditor/BookEditor.d.ts +14 -4
  1292. package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +5 -1
  1293. package/umd/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
  1294. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
  1295. package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  1296. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +10 -8
  1297. package/umd/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
  1298. package/umd/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
  1299. package/umd/src/book-components/BookEditor/useBookEditorMonacoInteractions.d.ts +40 -0
  1300. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +12 -2
  1301. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +31 -0
  1302. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +6 -1
  1303. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
  1304. package/umd/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
  1305. package/umd/src/book-components/Chat/AgentChip/AgentChip.d.ts +7 -6
  1306. package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +14 -0
  1307. package/umd/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
  1308. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +4 -10
  1309. package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +38 -0
  1310. package/umd/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  1311. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +36 -17
  1312. package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  1313. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +25 -1
  1314. package/umd/src/book-components/Chat/Chat/ChatMessageMap.d.ts +0 -1
  1315. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +36 -0
  1316. package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  1317. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +460 -12
  1318. package/umd/src/book-components/Chat/Chat/ChatRatingModal.d.ts +10 -1
  1319. package/umd/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
  1320. package/umd/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
  1321. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +17 -0
  1322. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  1323. package/umd/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +8 -5
  1324. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +47 -0
  1325. package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +34 -0
  1326. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -3
  1327. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.test.d.ts +2 -0
  1328. package/umd/src/book-components/Chat/Chat/chatCssClassNames.d.ts +1 -0
  1329. package/umd/src/book-components/Chat/Chat/constants.d.ts +4 -3
  1330. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  1331. package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  1332. package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
  1333. package/umd/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
  1334. package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
  1335. package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +11 -0
  1336. package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +27 -0
  1337. package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +32 -0
  1338. package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +33 -0
  1339. package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +32 -0
  1340. package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +32 -0
  1341. package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +39 -0
  1342. package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +39 -0
  1343. package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +53 -0
  1344. package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +34 -0
  1345. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +14 -0
  1346. package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +30 -0
  1347. package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +27 -0
  1348. package/umd/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  1349. package/umd/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
  1350. package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +10 -0
  1351. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  1352. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  1353. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +53 -0
  1354. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
  1355. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
  1356. package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  1357. package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  1358. package/umd/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  1359. package/umd/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  1360. package/umd/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  1361. package/umd/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  1362. package/umd/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +2 -1
  1363. package/umd/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +2 -2
  1364. package/umd/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
  1365. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  1366. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  1367. package/umd/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  1368. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +7 -5
  1369. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  1370. package/umd/src/book-components/Chat/MockedChat/MockedChat.d.ts +21 -1
  1371. package/umd/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
  1372. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +9 -4
  1373. package/umd/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
  1374. package/umd/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
  1375. package/umd/src/book-components/Chat/effects/index.d.ts +0 -4
  1376. package/umd/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
  1377. package/umd/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +6 -3
  1378. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +20 -0
  1379. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  1380. package/umd/src/book-components/Chat/hooks/useChatRatings.d.ts +10 -2
  1381. package/umd/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
  1382. package/umd/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  1383. package/umd/src/book-components/Chat/save/_common/ChatSaveFormatHandler.d.ts +35 -0
  1384. package/umd/src/book-components/Chat/save/_common/chatExportRendering.d.ts +75 -0
  1385. package/umd/src/book-components/Chat/save/_common/createChatExportFilename.d.ts +11 -0
  1386. package/umd/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  1387. package/umd/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
  1388. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +13 -4
  1389. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  1390. package/umd/src/book-components/Chat/save/index.d.ts +5 -8
  1391. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +5 -3
  1392. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  1393. package/umd/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +5 -3
  1394. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +3 -7
  1395. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  1396. package/umd/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  1397. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +174 -7
  1398. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +13 -4
  1399. package/umd/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
  1400. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +5 -4
  1401. package/umd/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +2 -1
  1402. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +54 -0
  1403. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  1404. package/umd/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
  1405. package/umd/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  1406. package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +12 -0
  1407. package/umd/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  1408. package/umd/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  1409. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +28 -3
  1410. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  1411. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  1412. package/umd/src/book-components/Chat/utils/loadAgentProfile.d.ts +14 -1
  1413. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
  1414. package/umd/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
  1415. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  1416. package/umd/src/book-components/Chat/utils/renderMarkdown.test.d.ts +1 -0
  1417. package/umd/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
  1418. package/umd/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
  1419. package/umd/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  1420. package/umd/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +14 -0
  1421. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +3 -0
  1422. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +143 -0
  1423. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  1424. package/umd/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +1 -0
  1425. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +1 -0
  1426. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +1 -0
  1427. package/umd/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +1 -0
  1428. package/umd/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +1 -0
  1429. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +1 -0
  1430. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +1 -0
  1431. package/umd/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +1 -0
  1432. package/umd/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +3 -3
  1433. package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +4 -6
  1434. package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +4 -6
  1435. package/umd/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
  1436. package/umd/src/book-components/Qr/GenericQrCode.d.ts +5 -0
  1437. package/umd/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
  1438. package/umd/src/book-components/Qr/useQrCode.d.ts +5 -2
  1439. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
  1440. package/umd/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
  1441. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
  1442. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -3
  1443. package/umd/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
  1444. package/umd/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  1445. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -0
  1446. package/umd/src/book-components/icons/AttachmentIcon.d.ts +4 -0
  1447. package/umd/src/book-components/icons/CameraIcon.d.ts +4 -0
  1448. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -0
  1449. package/umd/src/book-components/icons/EmailIcon.d.ts +1 -0
  1450. package/umd/src/book-components/icons/MenuIcon.d.ts +1 -3
  1451. package/umd/src/book-components/icons/SaveIcon.d.ts +1 -0
  1452. package/umd/src/book-components/icons/SendIcon.d.ts +0 -3
  1453. package/umd/src/book-components/icons/TeacherIcon.d.ts +1 -0
  1454. package/umd/src/cli/$runPromptbookCli.d.ts +6 -0
  1455. package/umd/src/cli/cli-commands/_boilerplate.d.ts +0 -4
  1456. package/umd/src/cli/cli-commands/about.d.ts +0 -6
  1457. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +60 -0
  1458. package/umd/src/cli/cli-commands/agent-folder/agentRunCliOptions.d.ts +25 -0
  1459. package/umd/src/cli/cli-commands/agent-folder/init.d.ts +10 -0
  1460. package/umd/src/cli/cli-commands/agent-folder/initializeAgentProjectConfiguration.d.ts +21 -0
  1461. package/umd/src/cli/cli-commands/agent-folder/initializeAgentRunnerCommand.d.ts +24 -0
  1462. package/umd/src/cli/cli-commands/agent-folder/printAgentInitializationSummary.d.ts +7 -0
  1463. package/umd/src/cli/cli-commands/agent-folder/run.d.ts +10 -0
  1464. package/umd/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
  1465. package/umd/src/cli/cli-commands/agent-folder/runMultiple.d.ts +10 -0
  1466. package/umd/src/cli/cli-commands/agent-folder/tick.d.ts +10 -0
  1467. package/umd/src/cli/cli-commands/agent-folder.d.ts +16 -0
  1468. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +103 -0
  1469. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.test.d.ts +1 -0
  1470. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +7 -0
  1471. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +7 -0
  1472. package/umd/src/cli/cli-commands/agents-server/init.d.ts +9 -0
  1473. package/umd/src/cli/cli-commands/agents-server/init.test.d.ts +1 -0
  1474. package/umd/src/cli/cli-commands/agents-server/initializeAgentsServerProjectConfiguration.d.ts +17 -0
  1475. package/umd/src/cli/cli-commands/agents-server/printAgentsServerInitializationSummary.d.ts +7 -0
  1476. package/umd/src/cli/cli-commands/agents-server/run.d.ts +20 -0
  1477. package/umd/src/cli/cli-commands/agents-server/run.test.d.ts +1 -0
  1478. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +36 -0
  1479. package/umd/src/cli/cli-commands/agents-server.d.ts +8 -0
  1480. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
  1481. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
  1482. package/umd/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
  1483. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +137 -0
  1484. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -0
  1485. package/umd/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
  1486. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
  1487. package/umd/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
  1488. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
  1489. package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
  1490. package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
  1491. package/umd/src/cli/cli-commands/coder/{find-fresh-emoji-tag.d.ts → find-fresh-emoji-tags.d.ts} +1 -5
  1492. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +1 -5
  1493. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
  1494. package/umd/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
  1495. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +8 -2
  1496. package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  1497. package/umd/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
  1498. package/umd/src/cli/cli-commands/coder/getTypescriptModule.d.ts +19 -0
  1499. package/umd/src/cli/cli-commands/coder/getTypescriptModule.test.d.ts +1 -0
  1500. package/umd/src/cli/cli-commands/coder/init.d.ts +13 -0
  1501. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
  1502. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
  1503. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.test.d.ts +1 -0
  1504. package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
  1505. package/umd/src/cli/cli-commands/coder/run.d.ts +1 -5
  1506. package/umd/src/cli/cli-commands/coder/run.test.d.ts +1 -0
  1507. package/umd/src/cli/cli-commands/coder/verify.d.ts +0 -4
  1508. package/umd/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
  1509. package/umd/src/cli/cli-commands/coder.d.ts +2 -5
  1510. package/umd/src/cli/cli-commands/common/handleActionErrors.d.ts +13 -4
  1511. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +65 -0
  1512. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +130 -0
  1513. package/umd/src/cli/cli-commands/hello.d.ts +0 -5
  1514. package/umd/src/cli/cli-commands/list-models.d.ts +0 -4
  1515. package/umd/src/cli/cli-commands/list-scrapers.d.ts +0 -4
  1516. package/umd/src/cli/cli-commands/login.d.ts +0 -5
  1517. package/umd/src/cli/cli-commands/make.d.ts +1 -1
  1518. package/umd/src/cli/cli-commands/prettify.d.ts +0 -6
  1519. package/umd/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  1520. package/umd/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  1521. package/umd/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  1522. package/umd/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  1523. package/umd/src/cli/cli-commands/run.d.ts +1 -9
  1524. package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
  1525. package/umd/src/cli/cli-commands/start-agents-server.d.ts +0 -4
  1526. package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
  1527. package/umd/src/cli/cli-commands/test-command.d.ts +0 -7
  1528. package/umd/src/cli/common/$deprecateCliCommand.d.ts +8 -0
  1529. package/umd/src/cli/common/$deprecateCliCommand.test.d.ts +1 -0
  1530. package/umd/src/cli/common/$provideLlmToolsForCli.d.ts +6 -1
  1531. package/umd/src/cli/main.d.ts +2 -6
  1532. package/umd/src/cli/other/install.test.d.ts +1 -0
  1533. package/umd/src/cli/other/vpsInstall.test.d.ts +1 -0
  1534. package/umd/src/cli/promptbookCli.d.ts +0 -7
  1535. package/umd/src/cli/test/ptbk.d.ts +1 -1
  1536. package/umd/src/collection/agent-collection/AgentCollection.d.ts +0 -3
  1537. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +28 -22
  1538. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
  1539. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
  1540. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
  1541. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  1542. package/umd/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  1543. package/umd/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +3 -2
  1544. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +11 -7
  1545. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
  1546. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
  1547. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +3 -4
  1548. package/umd/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +2 -1
  1549. package/umd/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
  1550. package/umd/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +2 -1
  1551. package/umd/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
  1552. package/umd/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
  1553. package/umd/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
  1554. package/umd/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
  1555. package/umd/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  1556. package/umd/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
  1557. package/umd/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
  1558. package/umd/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
  1559. package/umd/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
  1560. package/umd/src/commands/JOKER/JokerCommand.d.ts +2 -1
  1561. package/umd/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
  1562. package/umd/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +2 -1
  1563. package/umd/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
  1564. package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -5
  1565. package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
  1566. package/umd/src/commands/MODEL/ModelCommand.d.ts +1 -0
  1567. package/umd/src/commands/MODEL/modelCommandParser.d.ts +1 -0
  1568. package/umd/src/commands/PARAMETER/ParameterCommand.d.ts +3 -2
  1569. package/umd/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
  1570. package/umd/src/commands/PERSONA/PersonaCommand.d.ts +3 -2
  1571. package/umd/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
  1572. package/umd/src/commands/POSTPROCESS/PostprocessCommand.d.ts +2 -1
  1573. package/umd/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
  1574. package/umd/src/commands/SECTION/SectionCommand.d.ts +1 -0
  1575. package/umd/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
  1576. package/umd/src/commands/URL/UrlCommand.d.ts +1 -0
  1577. package/umd/src/commands/URL/urlCommandParser.d.ts +1 -0
  1578. package/umd/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
  1579. package/umd/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
  1580. package/umd/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
  1581. package/umd/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
  1582. package/umd/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
  1583. package/umd/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
  1584. package/umd/src/commands/_common/parseCommand.d.ts +1 -1
  1585. package/umd/src/commands/_common/stringifyCommand.d.ts +2 -2
  1586. package/umd/src/commands/_common/types/CommandParser.d.ts +2 -5
  1587. package/umd/src/commands/index.d.ts +0 -3
  1588. package/umd/src/commitments/ACTION/ACTION.d.ts +8 -5
  1589. package/umd/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  1590. package/umd/src/commitments/CLOSED/CLOSED.d.ts +0 -3
  1591. package/umd/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
  1592. package/umd/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
  1593. package/umd/src/commitments/DELETE/DELETE.d.ts +7 -6
  1594. package/umd/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  1595. package/umd/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
  1596. package/umd/src/commitments/FORMAT/FORMAT.d.ts +10 -7
  1597. package/umd/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  1598. package/umd/src/commitments/FROM/FROM.d.ts +0 -3
  1599. package/umd/src/commitments/GOAL/GOAL.d.ts +4 -3
  1600. package/umd/src/commitments/IMPORT/IMPORT.d.ts +0 -3
  1601. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -0
  1602. package/umd/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
  1603. package/umd/src/commitments/MEMORY/MEMORY.d.ts +2 -5
  1604. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +1 -1
  1605. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +1 -1
  1606. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +1 -1
  1607. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +1 -1
  1608. package/umd/src/commitments/MESSAGE/MESSAGE.d.ts +0 -3
  1609. package/umd/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
  1610. package/umd/src/commitments/META/META.d.ts +2 -3
  1611. package/umd/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
  1612. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  1613. package/umd/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
  1614. package/umd/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
  1615. package/umd/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +0 -3
  1616. package/umd/src/commitments/META_FONT/META_FONT.d.ts +0 -3
  1617. package/umd/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
  1618. package/umd/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +0 -3
  1619. package/umd/src/commitments/META_LINK/META_LINK.d.ts +0 -3
  1620. package/umd/src/commitments/META_VOICE/META_VOICE.d.ts +0 -3
  1621. package/umd/src/commitments/MODEL/MODEL.d.ts +4 -3
  1622. package/umd/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  1623. package/umd/src/commitments/OPEN/OPEN.d.ts +0 -3
  1624. package/umd/src/commitments/PERSONA/PERSONA.d.ts +7 -3
  1625. package/umd/src/commitments/RULE/RULE.d.ts +4 -3
  1626. package/umd/src/commitments/SAMPLE/SAMPLE.d.ts +0 -3
  1627. package/umd/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
  1628. package/umd/src/commitments/STYLE/STYLE.d.ts +9 -2
  1629. package/umd/src/commitments/TEAM/TEAM.d.ts +6 -5
  1630. package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -7
  1631. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +32 -0
  1632. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +5 -7
  1633. package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -7
  1634. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +2 -2
  1635. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +39 -0
  1636. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  1637. package/umd/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  1638. package/umd/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  1639. package/umd/src/commitments/USE_CALENDAR/calendarReference.d.ts +65 -0
  1640. package/umd/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  1641. package/umd/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  1642. package/umd/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  1643. package/umd/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  1644. package/umd/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  1645. package/umd/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  1646. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +47 -0
  1647. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts +1 -0
  1648. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +2 -5
  1649. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  1650. package/umd/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
  1651. package/umd/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
  1652. package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +2 -5
  1653. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +2 -5
  1654. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +1 -4
  1655. package/umd/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +1 -1
  1656. package/umd/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +1 -1
  1657. package/umd/src/commitments/USE_PROJECT/projectReference.d.ts +0 -3
  1658. package/umd/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  1659. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -5
  1660. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +2 -5
  1661. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +1 -1
  1662. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +2 -5
  1663. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +2 -0
  1664. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +128 -6
  1665. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +3 -6
  1666. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +1 -1
  1667. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +2 -2
  1668. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +45 -1
  1669. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +1 -1
  1670. package/umd/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -5
  1671. package/umd/src/commitments/WALLET/WALLET.d.ts +1 -4
  1672. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +1 -1
  1673. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +1 -1
  1674. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +1 -1
  1675. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +1 -1
  1676. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +0 -3
  1677. package/umd/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +0 -3
  1678. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +40 -2
  1679. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +23 -3
  1680. package/umd/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
  1681. package/umd/src/commitments/_common/commitmentToolFunctions.d.ts +4 -5
  1682. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +12 -0
  1683. package/umd/src/commitments/_common/createWritingCommitmentSections.d.ts +2 -3
  1684. package/umd/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
  1685. package/umd/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  1686. package/umd/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
  1687. package/umd/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -5
  1688. package/umd/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  1689. package/umd/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
  1690. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  1691. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  1692. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  1693. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  1694. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  1695. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  1696. package/umd/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
  1697. package/umd/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  1698. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  1699. package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +1 -4
  1700. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +21 -4
  1701. package/umd/src/commitments/index.d.ts +5 -6
  1702. package/umd/src/commitments/index.test.d.ts +1 -0
  1703. package/umd/src/config.d.ts +10 -6
  1704. package/umd/src/config.test.d.ts +0 -3
  1705. package/umd/src/constants/streaming.d.ts +0 -3
  1706. package/umd/src/constants.d.ts +0 -3
  1707. package/umd/src/conversion/archive/loadArchive.d.ts +1 -4
  1708. package/umd/src/conversion/archive/saveArchive.d.ts +1 -6
  1709. package/umd/src/conversion/compilePipeline.d.ts +2 -7
  1710. package/umd/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
  1711. package/umd/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  1712. package/umd/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  1713. package/umd/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  1714. package/umd/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  1715. package/umd/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  1716. package/umd/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  1717. package/umd/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  1718. package/umd/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  1719. package/umd/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  1720. package/umd/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  1721. package/umd/src/conversion/parsePipeline.d.ts +1 -11
  1722. package/umd/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  1723. package/umd/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  1724. package/umd/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  1725. package/umd/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  1726. package/umd/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  1727. package/umd/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  1728. package/umd/src/conversion/pipelineJsonToString.d.ts +1 -7
  1729. package/umd/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  1730. package/umd/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
  1731. package/umd/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -8
  1732. package/umd/src/conversion/utils/extractParameterNamesFromTask.d.ts +2 -4
  1733. package/{esm/src/conversion/validation/_importPipeline.d.ts → umd/src/conversion/validation/_importPipeline.test.d.ts} +6 -4
  1734. package/umd/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
  1735. package/umd/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
  1736. package/umd/src/conversion/validation/validatePipeline.d.ts +3 -9
  1737. package/umd/src/conversion/validation/validatePipeline.test.d.ts +0 -3
  1738. package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -4
  1739. package/umd/src/errors/0-BoilerplateError.d.ts +0 -3
  1740. package/umd/src/errors/0-index.d.ts +0 -3
  1741. package/umd/src/errors/DatabaseError.d.ts +0 -3
  1742. package/umd/src/errors/ExpectError.d.ts +2 -1
  1743. package/umd/src/errors/ParseError.d.ts +0 -3
  1744. package/umd/src/errors/PipelineExecutionError.d.ts +1 -4
  1745. package/umd/src/errors/utils/ErrorJson.d.ts +1 -1
  1746. package/umd/src/executables/$provideExecutablesForNode.d.ts +0 -5
  1747. package/umd/src/executables/apps/locateLibreoffice.d.ts +1 -5
  1748. package/umd/src/executables/apps/locatePandoc.d.ts +1 -5
  1749. package/umd/src/executables/apps/locateVscode.d.ts +7 -0
  1750. package/umd/src/executables/apps/locateVscode.test.d.ts +1 -0
  1751. package/umd/src/executables/browsers/locateBrowser.d.ts +9 -0
  1752. package/umd/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  1753. package/umd/src/executables/browsers/locateChrome.d.ts +7 -0
  1754. package/umd/src/executables/browsers/locateChrome.test.d.ts +1 -0
  1755. package/umd/src/executables/browsers/locateDefaultSystemBrowser.d.ts +9 -0
  1756. package/umd/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  1757. package/umd/src/executables/browsers/locateEdge.d.ts +7 -0
  1758. package/umd/src/executables/browsers/locateEdge.test.d.ts +1 -0
  1759. package/umd/src/executables/browsers/locateFirefox.d.ts +7 -0
  1760. package/umd/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  1761. package/umd/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  1762. package/umd/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  1763. package/umd/src/executables/browsers/locateSafari.d.ts +7 -0
  1764. package/umd/src/executables/locateApp.d.ts +1 -5
  1765. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +1 -5
  1766. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +1 -5
  1767. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -5
  1768. package/umd/src/execution/AbstractTaskResult.d.ts +1 -5
  1769. package/umd/src/execution/AvailableModel.d.ts +5 -5
  1770. package/umd/src/execution/CommonToolsOptions.d.ts +1 -6
  1771. package/umd/src/execution/Executables.d.ts +1 -1
  1772. package/umd/src/execution/ExecutionTask.d.ts +7 -6
  1773. package/umd/src/execution/FilesystemTools.d.ts +0 -3
  1774. package/umd/src/execution/LlmExecutionTools.d.ts +5 -10
  1775. package/umd/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
  1776. package/umd/src/execution/PipelineExecutor.d.ts +1 -4
  1777. package/umd/src/execution/PipelineExecutorResult.d.ts +2 -5
  1778. package/umd/src/execution/PromptResult.d.ts +4 -10
  1779. package/umd/src/execution/PromptbookFetch.d.ts +1 -1
  1780. package/umd/src/execution/PromptbookFetch.test-type.d.ts +0 -4
  1781. package/umd/src/execution/ScriptExecutionTools.d.ts +2 -6
  1782. package/umd/src/execution/UncertainNumber.d.ts +2 -2
  1783. package/umd/src/execution/Usage.d.ts +0 -3
  1784. package/umd/src/execution/UserInterfaceTools.d.ts +4 -2
  1785. package/umd/src/execution/assertsTaskSuccessful.d.ts +1 -3
  1786. package/umd/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
  1787. package/umd/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  1788. package/umd/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -4
  1789. package/umd/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
  1790. package/umd/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +3 -4
  1791. package/umd/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  1792. package/umd/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  1793. package/umd/src/execution/createPipelineExecutor/getContextForTask.d.ts +3 -2
  1794. package/umd/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  1795. package/umd/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -5
  1796. package/umd/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  1797. package/umd/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  1798. package/umd/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
  1799. package/umd/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  1800. package/umd/src/execution/execution-report/ExecutionReportJson.d.ts +4 -3
  1801. package/umd/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
  1802. package/umd/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  1803. package/umd/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
  1804. package/umd/src/execution/resolveTaskTldr.d.ts +32 -0
  1805. package/umd/src/execution/resolveTaskTldr.test.d.ts +1 -0
  1806. package/umd/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
  1807. package/umd/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
  1808. package/umd/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
  1809. package/umd/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
  1810. package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -5
  1811. package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -6
  1812. package/umd/src/execution/utils/checkExpectations.d.ts +2 -5
  1813. package/umd/src/execution/utils/forEachAsync.d.ts +5 -1
  1814. package/umd/src/execution/utils/usage-constants.d.ts +0 -3
  1815. package/umd/src/execution/utils/usageToHuman.d.ts +1 -9
  1816. package/umd/src/execution/utils/validatePromptResult.d.ts +2 -1
  1817. package/umd/src/file-security-checkers/FileSecurityCheckResult.d.ts +2 -1
  1818. package/umd/src/file-security-checkers/FileSecurityChecker.d.ts +3 -1
  1819. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +2 -1
  1820. package/umd/src/formats/_common/FormatParser.d.ts +4 -11
  1821. package/umd/src/formats/_common/FormatSubvalueParser.d.ts +2 -6
  1822. package/umd/src/formats/csv/CsvFormatParser.d.ts +2 -8
  1823. package/umd/src/formats/csv/utils/csvParse.d.ts +1 -1
  1824. package/umd/src/formats/index.d.ts +0 -3
  1825. package/umd/src/formats/json/JsonFormatParser.d.ts +0 -11
  1826. package/umd/src/formats/text/TextFormatParser.d.ts +0 -9
  1827. package/umd/src/formats/xml/XmlFormatParser.d.ts +0 -11
  1828. package/umd/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +3 -6
  1829. package/umd/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
  1830. package/umd/src/formfactors/index.d.ts +2 -5
  1831. package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  1832. package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  1833. package/umd/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
  1834. package/umd/src/high-level-abstractions/index.d.ts +0 -4
  1835. package/umd/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
  1836. package/umd/src/import-plugins/FileImportPlugin.d.ts +1 -1
  1837. package/umd/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
  1838. package/umd/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
  1839. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -4
  1840. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  1841. package/umd/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
  1842. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +6 -9
  1843. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -18
  1844. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -5
  1845. package/umd/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -6
  1846. package/umd/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -7
  1847. package/umd/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
  1848. package/umd/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +4 -1
  1849. package/umd/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -4
  1850. package/umd/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -5
  1851. package/umd/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
  1852. package/umd/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
  1853. package/umd/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
  1854. package/umd/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
  1855. package/umd/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
  1856. package/umd/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +3 -1
  1857. package/umd/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
  1858. package/umd/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +5 -8
  1859. package/umd/src/llm-providers/_multiple/playground/playground.d.ts +0 -3
  1860. package/umd/src/llm-providers/agent/Agent.d.ts +7 -4
  1861. package/umd/src/llm-providers/agent/Agent.test.d.ts +1 -0
  1862. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +39 -26
  1863. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  1864. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  1865. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  1866. package/umd/src/llm-providers/agent/AgentOptions.d.ts +8 -0
  1867. package/umd/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +9 -0
  1868. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +5 -5
  1869. package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +5 -1
  1870. package/umd/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  1871. package/umd/src/llm-providers/agent/playground/playground.d.ts +0 -6
  1872. package/umd/src/llm-providers/agent/register-configuration.d.ts +0 -5
  1873. package/umd/src/llm-providers/agent/register-constructor.d.ts +0 -4
  1874. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -11
  1875. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
  1876. package/umd/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +3 -10
  1877. package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +1 -3
  1878. package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
  1879. package/umd/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
  1880. package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
  1881. package/umd/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
  1882. package/umd/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
  1883. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -7
  1884. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +3 -3
  1885. package/umd/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
  1886. package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +0 -4
  1887. package/umd/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
  1888. package/umd/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
  1889. package/umd/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
  1890. package/umd/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
  1891. package/umd/src/llm-providers/deepseek/deepseek-models.d.ts +3 -8
  1892. package/umd/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
  1893. package/umd/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
  1894. package/umd/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
  1895. package/umd/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
  1896. package/umd/src/llm-providers/google/google-models.d.ts +3 -8
  1897. package/umd/src/llm-providers/google/register-configuration.d.ts +0 -3
  1898. package/umd/src/llm-providers/google/register-constructor.d.ts +0 -4
  1899. package/umd/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +2 -6
  1900. package/umd/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
  1901. package/umd/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -4
  1902. package/umd/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
  1903. package/umd/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
  1904. package/umd/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
  1905. package/umd/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -4
  1906. package/umd/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
  1907. package/umd/src/llm-providers/ollama/ollama-models.d.ts +1 -4
  1908. package/umd/src/llm-providers/ollama/playground/playground.d.ts +0 -4
  1909. package/umd/src/llm-providers/ollama/register-configuration.d.ts +0 -3
  1910. package/umd/src/llm-providers/ollama/register-constructor.d.ts +0 -4
  1911. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +18 -84
  1912. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.test.d.ts +1 -0
  1913. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  1914. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  1915. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  1916. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  1917. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +36 -9
  1918. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  1919. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  1920. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  1921. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  1922. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  1923. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +15 -39
  1924. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
  1925. package/umd/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  1926. package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  1927. package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  1928. package/umd/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  1929. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  1930. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  1931. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +3 -46
  1932. package/umd/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  1933. package/umd/src/llm-providers/openai/computeOpenAiUsage.d.ts +1 -3
  1934. package/umd/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
  1935. package/umd/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
  1936. package/umd/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -5
  1937. package/umd/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
  1938. package/umd/src/llm-providers/openai/openai-models.d.ts +2 -1
  1939. package/umd/src/llm-providers/openai/openai-models.test.d.ts +0 -3
  1940. package/umd/src/llm-providers/openai/playground/playground.d.ts +0 -4
  1941. package/umd/src/llm-providers/openai/register-configuration.d.ts +0 -3
  1942. package/umd/src/llm-providers/openai/register-constructor.d.ts +0 -4
  1943. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  1944. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  1945. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  1946. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  1947. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +29 -0
  1948. package/umd/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -10
  1949. package/umd/src/llm-providers/remote/playground/playground.d.ts +0 -3
  1950. package/umd/src/llm-providers/vercel/playground/playground.d.ts +0 -4
  1951. package/umd/src/other/templates/getBookTemplates.d.ts +3 -6
  1952. package/umd/src/personas/preparePersona.d.ts +2 -8
  1953. package/umd/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
  1954. package/umd/src/pipeline/PipelineInterface/constants.d.ts +0 -3
  1955. package/umd/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -12
  1956. package/umd/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
  1957. package/umd/src/pipeline/PipelineJson/Expectations.d.ts +5 -5
  1958. package/umd/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -10
  1959. package/umd/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -6
  1960. package/umd/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  1961. package/umd/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -6
  1962. package/umd/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  1963. package/umd/src/pipeline/PipelineJson/PreparationJson.d.ts +4 -6
  1964. package/umd/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  1965. package/umd/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
  1966. package/umd/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
  1967. package/umd/src/pipeline/book-notation.d.ts +1 -4
  1968. package/umd/src/pipeline/isValidPipelineString.d.ts +1 -3
  1969. package/umd/src/pipeline/isValidPipelineString.test.d.ts +0 -3
  1970. package/umd/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
  1971. package/umd/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
  1972. package/umd/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
  1973. package/umd/src/pipeline/prompt-notation.d.ts +3 -6
  1974. package/umd/src/pipeline/prompt-notation.test.d.ts +0 -3
  1975. package/umd/src/pipeline/validatePipelineString.d.ts +1 -3
  1976. package/umd/src/playground/permanent/_boilerplate.d.ts +0 -3
  1977. package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +0 -3
  1978. package/umd/src/playground/permanent/error-handling-playground.d.ts +0 -3
  1979. package/umd/src/playground/playground.d.ts +1 -4
  1980. package/umd/src/postprocessing/utils/extractBlock.d.ts +3 -2
  1981. package/umd/src/postprocessing/utils/extractJsonBlock.d.ts +3 -7
  1982. package/umd/src/prepare/PrepareAndScrapeOptions.d.ts +1 -5
  1983. package/umd/src/prepare/preparePipeline.d.ts +3 -2
  1984. package/umd/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
  1985. package/umd/src/prepare/prepareTasks.d.ts +6 -10
  1986. package/umd/src/prepare/unpreparePipeline.d.ts +1 -5
  1987. package/umd/src/remote-server/RemoteServer.d.ts +3 -0
  1988. package/umd/src/remote-server/openapi.d.ts +3 -4
  1989. package/umd/src/remote-server/socket-types/_subtypes/Identification.d.ts +3 -7
  1990. package/umd/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  1991. package/umd/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  1992. package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
  1993. package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
  1994. package/umd/src/remote-server/startAgentServer.d.ts +7 -5
  1995. package/umd/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  1996. package/umd/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  1997. package/umd/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  1998. package/umd/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  1999. package/umd/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  2000. package/umd/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  2001. package/umd/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  2002. package/umd/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  2003. package/umd/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  2004. package/umd/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  2005. package/umd/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  2006. package/umd/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  2007. package/umd/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  2008. package/umd/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  2009. package/umd/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  2010. package/umd/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  2011. package/umd/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  2012. package/umd/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  2013. package/umd/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  2014. package/umd/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  2015. package/umd/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  2016. package/umd/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  2017. package/umd/src/remote-server/startRemoteServer.d.ts +1 -16
  2018. package/umd/src/remote-server/types/RemoteClientOptions.d.ts +1 -6
  2019. package/umd/src/remote-server/types/RemoteServerOptions.d.ts +12 -5
  2020. package/umd/src/remote-server/ui/ServerApp.d.ts +1 -0
  2021. package/umd/src/remote-server/ui/types.d.ts +3 -0
  2022. package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +2 -8
  2023. package/umd/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
  2024. package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -3
  2025. package/umd/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
  2026. package/umd/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
  2027. package/umd/src/scrapers/_common/Scraper.d.ts +4 -9
  2028. package/umd/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -4
  2029. package/umd/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
  2030. package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -4
  2031. package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -4
  2032. package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -4
  2033. package/umd/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -4
  2034. package/umd/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
  2035. package/umd/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
  2036. package/umd/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  2037. package/umd/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
  2038. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -8
  2039. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
  2040. package/umd/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  2041. package/umd/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
  2042. package/umd/src/scrapers/document/DocumentScraper.d.ts +2 -8
  2043. package/umd/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
  2044. package/umd/src/scrapers/document/createDocumentScraper.d.ts +0 -3
  2045. package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -3
  2046. package/umd/src/scrapers/document/register-constructor.d.ts +0 -4
  2047. package/umd/src/scrapers/document/register-metadata.d.ts +0 -3
  2048. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +2 -8
  2049. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
  2050. package/umd/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
  2051. package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -3
  2052. package/umd/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
  2053. package/umd/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
  2054. package/umd/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
  2055. package/umd/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
  2056. package/umd/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
  2057. package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -3
  2058. package/umd/src/scrapers/markdown/register-constructor.d.ts +0 -4
  2059. package/umd/src/scrapers/markdown/register-metadata.d.ts +0 -3
  2060. package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
  2061. package/umd/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
  2062. package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -3
  2063. package/umd/src/scrapers/markitdown/register-constructor.d.ts +0 -5
  2064. package/umd/src/scrapers/markitdown/register-metadata.d.ts +0 -3
  2065. package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -6
  2066. package/umd/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
  2067. package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -3
  2068. package/umd/src/scrapers/pdf/register-constructor.d.ts +0 -4
  2069. package/umd/src/scrapers/pdf/register-metadata.d.ts +0 -3
  2070. package/umd/src/scrapers/website/WebsiteScraper.d.ts +3 -9
  2071. package/umd/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
  2072. package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -3
  2073. package/umd/src/scrapers/website/register-constructor.d.ts +0 -4
  2074. package/umd/src/scrapers/website/register-metadata.d.ts +0 -3
  2075. package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
  2076. package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
  2077. package/umd/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
  2078. package/umd/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -5
  2079. package/umd/src/scripting/javascript/postprocessing-functions.d.ts +1 -5
  2080. package/umd/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +3 -5
  2081. package/umd/src/search-engines/SearchEngine.d.ts +5 -1
  2082. package/umd/src/search-engines/SearchResult.d.ts +1 -1
  2083. package/umd/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  2084. package/umd/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  2085. package/umd/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  2086. package/umd/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  2087. package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -4
  2088. package/umd/src/speech-recognition/OpenAiSpeechRecognition.d.ts +26 -4
  2089. package/umd/src/speech-recognition/OpenAiSpeechRecognition.test.d.ts +1 -0
  2090. package/umd/src/storage/_common/PromptbookStorage.d.ts +0 -4
  2091. package/umd/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
  2092. package/umd/src/storage/env-storage/$EnvStorage.d.ts +0 -3
  2093. package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -4
  2094. package/umd/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  2095. package/umd/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  2096. package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -3
  2097. package/umd/src/storage/local-storage/getLocalStorage.d.ts +0 -3
  2098. package/umd/src/storage/local-storage/getSessionStorage.d.ts +0 -3
  2099. package/umd/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  2100. package/umd/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
  2101. package/umd/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
  2102. package/umd/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  2103. package/umd/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  2104. package/umd/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  2105. package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  2106. package/umd/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  2107. package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  2108. package/umd/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  2109. package/umd/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  2110. package/umd/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
  2111. package/umd/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  2112. package/umd/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  2113. package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  2114. package/umd/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  2115. package/umd/src/transpilers/agent-os/register.d.ts +12 -0
  2116. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  2117. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  2118. package/umd/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  2119. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  2120. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  2121. package/umd/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  2122. package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  2123. package/umd/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  2124. package/umd/src/transpilers/e2b/register.d.ts +12 -0
  2125. package/umd/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  2126. package/umd/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
  2127. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  2128. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  2129. package/umd/src/transpilers/openai-agents/register.d.ts +12 -0
  2130. package/umd/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  2131. package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +0 -3
  2132. package/umd/src/transpilers/openai-sdk/register.d.ts +2 -5
  2133. package/umd/src/types/Arrayable.d.ts +1 -0
  2134. package/umd/src/types/InputParameters_private.d.ts +13 -0
  2135. package/umd/src/types/IntermediateFilesStrategy.d.ts +0 -3
  2136. package/umd/src/types/LlmCall.d.ts +1 -4
  2137. package/umd/src/types/LlmToolDefinition.d.ts +19 -8
  2138. package/umd/src/types/Message.d.ts +4 -3
  2139. package/umd/src/types/ModelRequirements.d.ts +5 -2
  2140. package/umd/src/types/ModelVariant.d.ts +3 -0
  2141. package/umd/src/types/Parameters.d.ts +31 -0
  2142. package/umd/src/types/Parameters_private.d.ts +18 -0
  2143. package/umd/src/types/Prompt.d.ts +8 -18
  2144. package/umd/src/types/ReservedParameters_private.d.ts +11 -0
  2145. package/umd/src/types/SpeechRecognition.d.ts +5 -1
  2146. package/umd/src/types/ToolCall.d.ts +1 -3
  2147. package/umd/src/types/Updatable.d.ts +1 -3
  2148. package/umd/src/types/number_bytes.d.ts +21 -0
  2149. package/umd/src/types/number_id.d.ts +13 -0
  2150. package/umd/src/types/number_likeness.d.ts +8 -0
  2151. package/umd/src/types/number_milliseconds.d.ts +33 -0
  2152. package/umd/src/types/number_percent.d.ts +18 -0
  2153. package/umd/src/types/number_positive.d.ts +16 -0
  2154. package/umd/src/types/number_usd.d.ts +6 -106
  2155. package/umd/src/types/string_agent_hash_private.d.ts +9 -0
  2156. package/umd/src/types/string_agent_name.d.ts +32 -0
  2157. package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
  2158. package/umd/src/types/string_agent_name_private.d.ts +10 -0
  2159. package/umd/src/types/string_agent_permanent_id_private.d.ts +11 -0
  2160. package/umd/src/types/string_agent_url.d.ts +7 -0
  2161. package/umd/src/types/string_agent_url_private.d.ts +9 -0
  2162. package/umd/src/types/string_base64.d.ts +13 -0
  2163. package/umd/src/types/string_base64_private.d.ts +17 -0
  2164. package/umd/src/types/string_base_url.d.ts +7 -0
  2165. package/umd/src/types/string_base_url_private.d.ts +9 -0
  2166. package/umd/src/types/string_business_category_name.d.ts +5 -0
  2167. package/umd/src/types/string_business_category_name_private.d.ts +6 -0
  2168. package/umd/src/types/string_char_private.d.ts +8 -0
  2169. package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
  2170. package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
  2171. package/umd/src/types/string_email.d.ts +13 -0
  2172. package/umd/src/types/string_email_private.d.ts +16 -0
  2173. package/umd/src/types/string_host.d.ts +42 -0
  2174. package/umd/src/types/string_host_private.d.ts +55 -0
  2175. package/umd/src/types/string_href.d.ts +19 -0
  2176. package/umd/src/types/string_href_private.d.ts +24 -0
  2177. package/umd/src/types/string_markdown.d.ts +0 -1
  2178. package/umd/src/types/string_mime_type.d.ts +15 -0
  2179. package/umd/src/types/string_mime_type_private.d.ts +18 -0
  2180. package/umd/src/types/string_model_description_private.d.ts +8 -0
  2181. package/umd/src/types/string_model_name.d.ts +7 -0
  2182. package/umd/src/types/string_model_name_private.d.ts +8 -0
  2183. package/umd/src/types/string_name.d.ts +31 -0
  2184. package/umd/src/types/string_name_private.d.ts +9 -0
  2185. package/umd/src/types/string_page.d.ts +15 -0
  2186. package/umd/src/types/string_page_private.d.ts +9 -0
  2187. package/umd/src/types/string_parameter_name.d.ts +11 -167
  2188. package/umd/src/types/string_parameter_value_private.d.ts +9 -0
  2189. package/umd/src/types/string_person_fullname.d.ts +1 -1
  2190. package/umd/src/types/string_persona_description.d.ts +14 -0
  2191. package/umd/src/types/string_persona_description_private.d.ts +8 -0
  2192. package/umd/src/types/string_pipeline_root_url.d.ts +7 -0
  2193. package/umd/src/types/string_pipeline_root_url_private.d.ts +9 -0
  2194. package/umd/src/types/string_pipeline_url.d.ts +13 -0
  2195. package/umd/src/types/string_pipeline_url_private.d.ts +17 -0
  2196. package/umd/src/types/string_prompt.d.ts +49 -0
  2197. package/umd/src/types/string_prompt_image_private.d.ts +8 -0
  2198. package/umd/src/types/string_prompt_private.d.ts +8 -0
  2199. package/umd/src/types/string_promptbook_server_url.d.ts +7 -0
  2200. package/umd/src/types/string_promptbook_server_url_private.d.ts +9 -0
  2201. package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  2202. package/umd/src/types/string_sha256.d.ts +2 -2
  2203. package/umd/src/types/string_system_message_private.d.ts +9 -0
  2204. package/umd/src/types/string_template_private.d.ts +8 -0
  2205. package/umd/src/types/string_text_prompt_private.d.ts +9 -0
  2206. package/umd/src/types/string_title.d.ts +8 -0
  2207. package/umd/src/types/string_title_private.d.ts +9 -0
  2208. package/umd/src/types/string_token.d.ts +1 -1
  2209. package/umd/src/types/string_url.d.ts +15 -138
  2210. package/umd/src/types/string_url_image.d.ts +7 -0
  2211. package/umd/src/types/string_url_image_private.d.ts +9 -0
  2212. package/umd/src/types/string_url_private.d.ts +8 -0
  2213. package/umd/src/types/typeAliasEmoji.d.ts +0 -3
  2214. package/umd/src/types/typeAliases.d.ts +7 -7
  2215. package/umd/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
  2216. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +66 -6
  2217. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.test.d.ts +1 -0
  2218. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +1 -0
  2219. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +1 -0
  2220. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +1 -0
  2221. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +1 -0
  2222. package/umd/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +1 -0
  2223. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +1 -0
  2224. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +1 -0
  2225. package/umd/src/utils/chat/chatAttachments.d.ts +0 -3
  2226. package/umd/src/utils/chat/constants.d.ts +0 -3
  2227. package/umd/src/utils/clientVersion.d.ts +0 -3
  2228. package/umd/src/utils/color/$randomColor.d.ts +0 -5
  2229. package/umd/src/utils/color/Color.d.ts +6 -45
  2230. package/umd/src/utils/color/ColorValue.d.ts +55 -0
  2231. package/umd/src/utils/color/css-colors.d.ts +0 -3
  2232. package/umd/src/utils/color/internal-utils/hslToRgb.d.ts +2 -6
  2233. package/umd/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -6
  2234. package/umd/src/utils/color/isHexColorString.d.ts +10 -0
  2235. package/umd/src/utils/color/operators/ColorTransformer.d.ts +2 -0
  2236. package/umd/src/utils/color/operators/darken.d.ts +1 -1
  2237. package/umd/src/utils/color/operators/grayscale.d.ts +1 -1
  2238. package/umd/src/utils/color/operators/lighten.d.ts +1 -4
  2239. package/umd/src/utils/color/operators/mixWithColor.d.ts +1 -1
  2240. package/umd/src/utils/color/operators/saturate.d.ts +1 -4
  2241. package/umd/src/utils/color/parseColorString.d.ts +11 -0
  2242. package/umd/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  2243. package/umd/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  2244. package/umd/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  2245. package/umd/src/utils/color/utils/areColorsEqual.d.ts +0 -3
  2246. package/umd/src/utils/color/utils/colorDistance.d.ts +2 -2
  2247. package/umd/src/utils/color/utils/colorHue.d.ts +0 -1
  2248. package/umd/src/utils/color/utils/colorHueDistance.d.ts +0 -1
  2249. package/umd/src/utils/color/utils/colorToDataUrl.d.ts +3 -4
  2250. package/umd/src/utils/database/uniqueConstraint.d.ts +1 -3
  2251. package/umd/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +4 -5
  2252. package/umd/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
  2253. package/umd/src/utils/editable/types/PipelineEditableSerialized.d.ts +3 -3
  2254. package/umd/src/utils/editable/utils/renamePipelineParameter.d.ts +5 -4
  2255. package/umd/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -7
  2256. package/umd/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
  2257. package/umd/src/utils/environment/$getGlobalScope.d.ts +1 -1
  2258. package/umd/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
  2259. package/umd/src/utils/environment/$isRunningInJest.d.ts +0 -3
  2260. package/umd/src/utils/environment/$isRunningInNode.d.ts +0 -3
  2261. package/umd/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
  2262. package/umd/src/utils/execCommand/$execCommand.d.ts +0 -4
  2263. package/umd/src/utils/execCommand/$execCommands.d.ts +0 -3
  2264. package/umd/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
  2265. package/umd/src/utils/expectation-counters/constants.d.ts +0 -4
  2266. package/umd/src/utils/expectation-counters/countCharacters.d.ts +0 -4
  2267. package/umd/src/utils/expectation-counters/countLines.d.ts +0 -4
  2268. package/umd/src/utils/expectation-counters/countPages.d.ts +0 -4
  2269. package/umd/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
  2270. package/umd/src/utils/expectation-counters/countSentences.d.ts +0 -4
  2271. package/umd/src/utils/expectation-counters/countWords.d.ts +0 -5
  2272. package/umd/src/utils/expectation-counters/index.d.ts +0 -4
  2273. package/umd/src/utils/files/$induceBookDownload.d.ts +0 -3
  2274. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -4
  2275. package/umd/src/utils/files/ObjectUrl.d.ts +2 -4
  2276. package/umd/src/utils/files/extensionToMimeType.d.ts +2 -2
  2277. package/umd/src/utils/files/getFileExtension.d.ts +2 -2
  2278. package/umd/src/utils/files/isDirectoryExisting.d.ts +1 -7
  2279. package/umd/src/utils/files/isExecutable.d.ts +0 -4
  2280. package/umd/src/utils/files/isFileExisting.d.ts +1 -6
  2281. package/umd/src/utils/files/listAllFiles.d.ts +2 -6
  2282. package/umd/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  2283. package/umd/src/utils/files/readResponseBytes.d.ts +1 -0
  2284. package/umd/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  2285. package/umd/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  2286. package/umd/src/utils/knowledge/inlineKnowledgeSource.d.ts +14 -7
  2287. package/umd/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
  2288. package/umd/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
  2289. package/umd/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
  2290. package/umd/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
  2291. package/umd/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
  2292. package/umd/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -5
  2293. package/umd/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  2294. package/umd/src/utils/markdown/createMarkdownTable.d.ts +1 -5
  2295. package/umd/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -4
  2296. package/umd/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -4
  2297. package/umd/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
  2298. package/umd/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +3 -5
  2299. package/umd/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  2300. package/umd/src/utils/markdown/humanizeAiText.d.ts +1 -4
  2301. package/umd/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -4
  2302. package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +2 -5
  2303. package/umd/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -4
  2304. package/umd/src/utils/markdown/humanizeAiTextSources.d.ts +1 -4
  2305. package/umd/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -4
  2306. package/umd/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  2307. package/umd/src/utils/markdown/prettifyMarkdown.d.ts +5 -3
  2308. package/umd/src/utils/markdown/promptbookifyAiText.d.ts +1 -4
  2309. package/umd/src/utils/markdown/removeMarkdownComments.d.ts +2 -2
  2310. package/umd/src/utils/markdown/removeMarkdownFormatting.d.ts +2 -1
  2311. package/umd/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
  2312. package/umd/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  2313. package/umd/src/utils/markdown/trimCodeBlock.d.ts +1 -1
  2314. package/umd/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
  2315. package/umd/src/utils/misc/$Register.d.ts +1 -1
  2316. package/umd/src/utils/misc/$getCurrentDate.d.ts +2 -1
  2317. package/umd/src/utils/misc/aboutPromptbookInformation.d.ts +4 -4
  2318. package/umd/src/utils/misc/computeHash.d.ts +2 -5
  2319. package/umd/src/utils/misc/debounce.d.ts +2 -0
  2320. package/umd/src/utils/misc/emojis.d.ts +3 -8
  2321. package/umd/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +8 -3
  2322. package/umd/src/utils/misc/parseNumber.d.ts +0 -4
  2323. package/umd/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
  2324. package/umd/src/utils/normalization/IKeywords.d.ts +0 -3
  2325. package/umd/src/utils/normalization/nameToUriPart.d.ts +1 -0
  2326. package/umd/src/utils/normalization/nameToUriParts.d.ts +1 -0
  2327. package/umd/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
  2328. package/umd/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
  2329. package/umd/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
  2330. package/umd/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
  2331. package/umd/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  2332. package/umd/src/utils/normalization/orderJson.d.ts +1 -0
  2333. package/umd/src/utils/normalization/orderJson.test.d.ts +0 -3
  2334. package/umd/src/utils/normalization/parseKeywords.d.ts +1 -4
  2335. package/umd/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
  2336. package/umd/src/utils/normalization/removeDiacritics.d.ts +1 -3
  2337. package/umd/src/utils/normalization/removeEmojis.d.ts +1 -0
  2338. package/umd/src/utils/normalization/removeQuotes.d.ts +1 -0
  2339. package/umd/src/utils/normalization/searchKeywords.d.ts +1 -3
  2340. package/umd/src/utils/normalization/suffixUrl.d.ts +1 -1
  2341. package/umd/src/utils/normalization/titleToName.d.ts +1 -0
  2342. package/umd/src/utils/normalization/unwrapResult.d.ts +1 -3
  2343. package/umd/src/utils/organization/$sideEffect.d.ts +1 -0
  2344. package/umd/src/utils/organization/TODO_USE.d.ts +1 -0
  2345. package/umd/src/utils/organization/just.d.ts +1 -0
  2346. package/umd/src/utils/organization/keepImported.d.ts +2 -1
  2347. package/umd/src/utils/organization/keepTypeImported.d.ts +1 -0
  2348. package/umd/src/utils/organization/keepUnused.d.ts +1 -0
  2349. package/umd/src/utils/organization/preserve.d.ts +1 -3
  2350. package/umd/src/utils/organization/really_any.d.ts +1 -0
  2351. package/umd/src/utils/organization/spaceTrim.d.ts +3 -2
  2352. package/umd/src/utils/parameters/extractParameterNames.d.ts +3 -2
  2353. package/umd/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +2 -2
  2354. package/umd/src/utils/parameters/numberToString.d.ts +1 -1
  2355. package/umd/src/utils/parameters/templateParameters.d.ts +4 -2
  2356. package/umd/src/utils/parameters/valueToString.d.ts +3 -3
  2357. package/umd/src/utils/random/$generateBookBoilerplate.d.ts +4 -4
  2358. package/umd/src/utils/random/$randomAgentPersona.d.ts +2 -4
  2359. package/umd/src/utils/random/$randomAgentRule.d.ts +2 -4
  2360. package/umd/src/utils/random/$randomFullnameWithColor.d.ts +5 -4
  2361. package/umd/src/utils/random/$randomItem.d.ts +0 -3
  2362. package/umd/src/utils/random/$randomSeed.d.ts +1 -4
  2363. package/umd/src/utils/random/$randomToken.d.ts +3 -6
  2364. package/umd/src/utils/random/EnglishNamePool.d.ts +1 -0
  2365. package/umd/src/utils/random/NamePool.d.ts +1 -1
  2366. package/umd/src/utils/serialization/$deepFreeze.d.ts +1 -3
  2367. package/umd/src/utils/serialization/checkSerializableAsJson.d.ts +2 -6
  2368. package/umd/src/utils/serialization/clonePipeline.d.ts +1 -3
  2369. package/umd/src/utils/serialization/deepClone.d.ts +1 -3
  2370. package/umd/src/utils/serialization/exportJson.d.ts +1 -3
  2371. package/umd/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
  2372. package/umd/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
  2373. package/umd/src/utils/serialization/serializeToPromptbookJavascript.d.ts +6 -4
  2374. package/umd/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  2375. package/umd/src/utils/sets/difference.d.ts +1 -3
  2376. package/umd/src/utils/sets/intersection.d.ts +1 -0
  2377. package/umd/src/utils/sets/union.d.ts +1 -0
  2378. package/umd/src/utils/take/classes/TakeChain.d.ts +4 -1
  2379. package/umd/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
  2380. package/umd/src/utils/take/interfaces/Takeable.d.ts +2 -1
  2381. package/umd/src/utils/take/take.d.ts +1 -1
  2382. package/umd/src/utils/validators/email/isValidEmail.d.ts +1 -1
  2383. package/umd/src/utils/validators/filePath/isRootPath.d.ts +2 -5
  2384. package/umd/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
  2385. package/umd/src/utils/validators/filePath/isValidFilePath.d.ts +2 -4
  2386. package/umd/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +2 -1
  2387. package/umd/src/utils/validators/parameterName/validateParameterName.d.ts +2 -1
  2388. package/umd/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
  2389. package/umd/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  2390. package/umd/src/utils/validators/url/extractUrlsFromText.d.ts +1 -0
  2391. package/umd/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +1 -1
  2392. package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +3 -2
  2393. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +1 -4
  2394. package/umd/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -4
  2395. package/umd/src/utils/validators/url/isValidUrl.d.ts +1 -1
  2396. package/umd/src/utils/validators/url/normalizeDomainForMatching.d.ts +1 -0
  2397. package/umd/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  2398. package/umd/src/version.d.ts +1 -1
  2399. package/umd/src/wizard/$getCompiledBook.d.ts +2 -5
  2400. package/umd/src/wizard/wizard.d.ts +5 -5
  2401. package/esm/src/commitments/USE/USE.d.ts +0 -53
  2402. package/umd/src/commitments/USE/USE.d.ts +0 -53
package/umd/index.umd.js CHANGED
@@ -1,12 +1,11 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('spacetrim'), require('papaparse'), require('crypto-js'), require('crypto-js/enc-hex')) :
3
3
  typeof define === 'function' && define.amd ? define(['exports', 'spacetrim', 'papaparse', 'crypto-js', 'crypto-js/enc-hex'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-editable"] = {}, global.spaceTrim$1, global.papaparse, global.cryptoJs, global.hexEncoder));
5
- })(this, (function (exports, spaceTrim$1, papaparse, cryptoJs, hexEncoder) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["promptbook-editable"] = {}, global.spacetrim, global.papaparse, global.cryptoJs, global.hexEncoder));
5
+ })(this, (function (exports, spacetrim, papaparse, cryptoJs, hexEncoder) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
- var spaceTrim__default = /*#__PURE__*/_interopDefaultLegacy(spaceTrim$1);
10
9
  var hexEncoder__default = /*#__PURE__*/_interopDefaultLegacy(hexEncoder);
11
10
 
12
11
  // ⚠️ WARNING: This code has been generated so that any manual changes will be overwritten
@@ -23,7 +22,7 @@
23
22
  * @generated
24
23
  * @see https://github.com/webgptorg/promptbook
25
24
  */
26
- const PROMPTBOOK_ENGINE_VERSION = '0.112.0-11';
25
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-111';
27
26
  /**
28
27
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
29
28
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -33,16 +32,20 @@
33
32
  * Trims string from all 4 sides
34
33
  *
35
34
  * Note: This is a re-exported function from the `spacetrim` package which is
36
- * Developed by same author @hejny as this package
35
+ * Developed by same author @hejny as this package
37
36
  *
38
- * @public exported from `@promptbook/utils`
39
37
  * @see https://github.com/hejny/spacetrim#usage
38
+ *
39
+ * @public exported from `@promptbook/utils`
40
40
  */
41
- const spaceTrim = spaceTrim$1.spaceTrim;
41
+ const spaceTrim = spacetrim.spaceTrim;
42
42
 
43
43
  /**
44
- * @private util of `@promptbook/color`
44
+ * Class implementing take chain.
45
+ *
45
46
  * @de
47
+ *
48
+ * @private util of `@promptbook/color`
46
49
  */
47
50
  class TakeChain {
48
51
  constructor(value) {
@@ -59,9 +62,9 @@
59
62
  *
60
63
  * @param {*} initialValue - The initial value.
61
64
  * @returns {Proxy<WithTake<TValue>>} - A proxy object with a `take` method.
65
+ * @deprecated [🤡] Use some better functional library instead of `TakeChain`
62
66
  *
63
67
  * @private util of `@promptbook/color`
64
- * @deprecated [🤡] Use some better functional library instead of `TakeChain`
65
68
  */
66
69
  function take(initialValue) {
67
70
  if (initialValue instanceof TakeChain) {
@@ -239,9 +242,7 @@
239
242
  yellow: '#ffff00',
240
243
  yellowgreen: '#9acd32',
241
244
  };
242
- /**
243
- * Note: [💞] Ignore a discrepancy between file name and entity name
244
- */
245
+ // Note: [💞] Ignore a discrepancy between file name and entity name
245
246
 
246
247
  /**
247
248
  * Validates that a channel value is a valid number within the range of 0 to 255.
@@ -271,7 +272,118 @@
271
272
  }
272
273
  }
273
274
 
275
+ /**
276
+ * Shared immutable channel storage and serialization helpers for `Color`.
277
+ *
278
+ * @private base class of Color
279
+ */
280
+ class ColorValue {
281
+ constructor(red, green, blue, alpha = 255) {
282
+ this.red = red;
283
+ this.green = green;
284
+ this.blue = blue;
285
+ this.alpha = alpha;
286
+ checkChannelValue('Red', red);
287
+ checkChannelValue('Green', green);
288
+ checkChannelValue('Blue', blue);
289
+ checkChannelValue('Alpha', alpha);
290
+ }
291
+ /**
292
+ * Shortcut for `red` property
293
+ * Number from 0 to 255
294
+ * @alias red
295
+ */
296
+ get r() {
297
+ return this.red;
298
+ }
299
+ /**
300
+ * Shortcut for `green` property
301
+ * Number from 0 to 255
302
+ * @alias green
303
+ */
304
+ get g() {
305
+ return this.green;
306
+ }
307
+ /**
308
+ * Shortcut for `blue` property
309
+ * Number from 0 to 255
310
+ * @alias blue
311
+ */
312
+ get b() {
313
+ return this.blue;
314
+ }
315
+ /**
316
+ * Shortcut for `alpha` property
317
+ * Number from 0 (transparent) to 255 (opaque)
318
+ * @alias alpha
319
+ */
320
+ get a() {
321
+ return this.alpha;
322
+ }
323
+ /**
324
+ * Shortcut for `alpha` property
325
+ * Number from 0 (transparent) to 255 (opaque)
326
+ * @alias alpha
327
+ */
328
+ get opacity() {
329
+ return this.alpha;
330
+ }
331
+ /**
332
+ * Shortcut for 1-`alpha` property
333
+ */
334
+ get transparency() {
335
+ return 255 - this.alpha;
336
+ }
337
+ clone() {
338
+ return take(this.createColor(this.red, this.green, this.blue, this.alpha));
339
+ }
340
+ toString() {
341
+ return this.toHex();
342
+ }
343
+ toHex() {
344
+ if (this.alpha === 255) {
345
+ return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
346
+ .toString(16)
347
+ .padStart(2, '0')}`;
348
+ }
349
+ else {
350
+ return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
351
+ .toString(16)
352
+ .padStart(2, '0')}${this.alpha.toString(16).padStart(2, '0')}`;
353
+ }
354
+ }
355
+ toRgb() {
356
+ if (this.alpha === 255) {
357
+ return `rgb(${this.red}, ${this.green}, ${this.blue})`;
358
+ }
359
+ else {
360
+ return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
361
+ }
362
+ }
363
+ toHsl() {
364
+ throw new Error(`Getting HSL is not implemented`);
365
+ }
366
+ }
367
+
368
+ /**
369
+ * Checks if the given value is a valid hex color string
370
+ *
371
+ * @param value - value to check
372
+ * @returns true if the value is a valid hex color string (e.g., `#009edd`, `#fff`, etc.)
373
+ *
374
+ * @private function of Color
375
+ */
376
+ function isHexColorString(value) {
377
+ return (typeof value === 'string' && /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value));
378
+ }
379
+
380
+ /**
381
+ * Constant for short hex lengths.
382
+ */
274
383
  const SHORT_HEX_LENGTHS = new Set([3, 4]);
384
+ /**
385
+ * Constant for long hex lengths.
386
+ */
275
387
  const LONG_HEX_LENGTHS = new Set([6, 8]);
276
388
  /**
277
389
  * Parses a hex string into RGBA channel values.
@@ -304,6 +416,9 @@
304
416
  }
305
417
  return throwInvalidHex();
306
418
  }
419
+ /**
420
+ * Parses short hex channel.
421
+ */
307
422
  function parseShortHexChannel(char, onError) {
308
423
  if (!char) {
309
424
  return onError();
@@ -314,6 +429,9 @@
314
429
  }
315
430
  return parsed * 16;
316
431
  }
432
+ /**
433
+ * Parses long hex channel.
434
+ */
317
435
  function parseLongHexChannel(hex, start, onError) {
318
436
  const segment = hex.substr(start, 2);
319
437
  if (segment.length < 2) {
@@ -326,6 +444,9 @@
326
444
  return parsed;
327
445
  }
328
446
 
447
+ /**
448
+ * Pattern matching hsl.
449
+ */
329
450
  const HSL_REGEX = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
330
451
  /**
331
452
  * Parses an HSL string into RGBA channel values.
@@ -351,6 +472,9 @@
351
472
  alpha: 255,
352
473
  };
353
474
  }
475
+ /**
476
+ * Handles convert hsl to Rgb.
477
+ */
354
478
  function convertHslToRgb(h, s, l) {
355
479
  const c = (1 - Math.abs(2 * l - 1)) * s;
356
480
  const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
@@ -389,7 +513,13 @@
389
513
  };
390
514
  }
391
515
 
516
+ /**
517
+ * Pattern matching RGB.
518
+ */
392
519
  const RGB_REGEX = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
520
+ /**
521
+ * Pattern matching rgba.
522
+ */
393
523
  const RGBA_REGEX = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
394
524
  /**
395
525
  * Parses an RGB string into RGBA channel values.
@@ -431,6 +561,9 @@
431
561
  alpha: parseAlphaValue(match[4]),
432
562
  };
433
563
  }
564
+ /**
565
+ * Parses channel value.
566
+ */
434
567
  function parseChannelValue(value) {
435
568
  if (value.endsWith('%')) {
436
569
  const percent = parseFloat(value);
@@ -438,6 +571,9 @@
438
571
  }
439
572
  return Math.round(parseFloat(value));
440
573
  }
574
+ /**
575
+ * Parses alpha value.
576
+ */
441
577
  function parseAlphaValue(value) {
442
578
  if (value.endsWith('%')) {
443
579
  const percent = parseFloat(value);
@@ -450,9 +586,55 @@
450
586
  return Math.round(parsed);
451
587
  }
452
588
 
589
+ /**
590
+ * Pattern matching hsl regex.
591
+ *
592
+ * @private function of Color
593
+ */
453
594
  const HSL_REGEX_PATTERN = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
595
+ /**
596
+ * Pattern matching RGB regex.
597
+ *
598
+ * @private function of Color
599
+ */
454
600
  const RGB_REGEX_PATTERN = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
601
+ /**
602
+ * Pattern matching rgba regex.
603
+ *
604
+ * @private function of Color
605
+ */
455
606
  const RGBA_REGEX_PATTERN = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
607
+ /**
608
+ * Parses a supported color string into RGBA channels.
609
+ *
610
+ * @param color as a string for example `#009edd`, `rgb(0,158,221)`, `rgb(0%,62%,86.7%)`, `hsl(197.1,100%,43.3%)`, `red`, `darkgrey`,...
611
+ * @returns RGBA channel values.
612
+ *
613
+ * @private function of Color
614
+ */
615
+ function parseColorString(color) {
616
+ const trimmed = color.trim();
617
+ const cssColor = CSS_COLORS[trimmed];
618
+ if (cssColor) {
619
+ return parseColorString(cssColor);
620
+ }
621
+ else if (isHexColorString(trimmed)) {
622
+ return parseHexColor(trimmed);
623
+ }
624
+ if (HSL_REGEX_PATTERN.test(trimmed)) {
625
+ return parseHslColor(trimmed);
626
+ }
627
+ else if (RGB_REGEX_PATTERN.test(trimmed)) {
628
+ return parseRgbColor(trimmed);
629
+ }
630
+ else if (RGBA_REGEX_PATTERN.test(trimmed)) {
631
+ return parseRgbaColor(trimmed);
632
+ }
633
+ else {
634
+ throw new Error(`Can not create a new Color instance from string "${trimmed}".`);
635
+ }
636
+ }
637
+
456
638
  /**
457
639
  * Color object represents an RGB color with alpha channel
458
640
  *
@@ -460,7 +642,7 @@
460
642
  *
461
643
  * @public exported from `@promptbook/color`
462
644
  */
463
- class Color {
645
+ class Color extends ColorValue {
464
646
  /**
465
647
  * Creates a new Color instance from miscellaneous formats
466
648
  * - It can receive Color instance and just return the same instance
@@ -533,25 +715,7 @@
533
715
  * @returns Color object
534
716
  */
535
717
  static fromString(color) {
536
- const trimmed = color.trim();
537
- if (CSS_COLORS[trimmed]) {
538
- return Color.fromString(CSS_COLORS[trimmed]);
539
- }
540
- else if (Color.isHexColorString(trimmed)) {
541
- return Color.fromHex(trimmed);
542
- }
543
- if (HSL_REGEX_PATTERN.test(trimmed)) {
544
- return Color.fromHsl(trimmed);
545
- }
546
- else if (RGB_REGEX_PATTERN.test(trimmed)) {
547
- return Color.fromRgbString(trimmed);
548
- }
549
- else if (RGBA_REGEX_PATTERN.test(trimmed)) {
550
- return Color.fromRgbaString(trimmed);
551
- }
552
- else {
553
- throw new Error(`Can not create a new Color instance from string "${trimmed}".`);
554
- }
718
+ return Color.fromColorChannels(parseColorString(color));
555
719
  }
556
720
  /**
557
721
  * Gets common color
@@ -581,8 +745,7 @@
581
745
  * @returns Color object
582
746
  */
583
747
  static fromHex(hex) {
584
- const { red, green, blue, alpha } = parseHexColor(hex);
585
- return take(new Color(red, green, blue, alpha));
748
+ return Color.fromColorChannels(parseHexColor(hex));
586
749
  }
587
750
  /**
588
751
  * Creates a new Color instance from color in hsl format
@@ -591,8 +754,7 @@
591
754
  * @returns Color object
592
755
  */
593
756
  static fromHsl(hsl) {
594
- const { red, green, blue, alpha } = parseHslColor(hsl);
595
- return take(new Color(red, green, blue, alpha));
757
+ return Color.fromColorChannels(parseHslColor(hsl));
596
758
  }
597
759
  /**
598
760
  * Creates a new Color instance from color in rgb format
@@ -601,8 +763,7 @@
601
763
  * @returns Color object
602
764
  */
603
765
  static fromRgbString(rgb) {
604
- const { red, green, blue, alpha } = parseRgbColor(rgb);
605
- return take(new Color(red, green, blue, alpha));
766
+ return Color.fromColorChannels(parseRgbColor(rgb));
606
767
  }
607
768
  /**
608
769
  * Creates a new Color instance from color in rbga format
@@ -611,8 +772,7 @@
611
772
  * @returns Color object
612
773
  */
613
774
  static fromRgbaString(rgba) {
614
- const { red, green, blue, alpha } = parseRgbaColor(rgba);
615
- return take(new Color(red, green, blue, alpha));
775
+ return Color.fromColorChannels(parseRgbaColor(rgba));
616
776
  }
617
777
  /**
618
778
  * Creates a new Color for color channels values
@@ -624,7 +784,7 @@
624
784
  * @returns Color object
625
785
  */
626
786
  static fromValues(red, green, blue, alpha = 255) {
627
- return take(new Color(red, green, blue, alpha));
787
+ return Color.fromColorChannels({ red, green, blue, alpha });
628
788
  }
629
789
  /**
630
790
  * Checks if the given value is a valid Color object.
@@ -657,8 +817,7 @@
657
817
  * @returns true if the value is a valid hex color string (e.g., `#009edd`, `#fff`, etc.)
658
818
  */
659
819
  static isHexColorString(value) {
660
- return (typeof value === 'string' &&
661
- /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value));
820
+ return isHexColorString(value);
662
821
  }
663
822
  /**
664
823
  * Creates new Color object
@@ -671,89 +830,13 @@
671
830
  * @param alpha number from 0 (transparent) to 255 (opaque)
672
831
  */
673
832
  constructor(red, green, blue, alpha = 255) {
674
- this.red = red;
675
- this.green = green;
676
- this.blue = blue;
677
- this.alpha = alpha;
678
- checkChannelValue('Red', red);
679
- checkChannelValue('Green', green);
680
- checkChannelValue('Blue', blue);
681
- checkChannelValue('Alpha', alpha);
682
- }
683
- /**
684
- * Shortcut for `red` property
685
- * Number from 0 to 255
686
- * @alias red
687
- */
688
- get r() {
689
- return this.red;
690
- }
691
- /**
692
- * Shortcut for `green` property
693
- * Number from 0 to 255
694
- * @alias green
695
- */
696
- get g() {
697
- return this.green;
698
- }
699
- /**
700
- * Shortcut for `blue` property
701
- * Number from 0 to 255
702
- * @alias blue
703
- */
704
- get b() {
705
- return this.blue;
706
- }
707
- /**
708
- * Shortcut for `alpha` property
709
- * Number from 0 (transparent) to 255 (opaque)
710
- * @alias alpha
711
- */
712
- get a() {
713
- return this.alpha;
714
- }
715
- /**
716
- * Shortcut for `alpha` property
717
- * Number from 0 (transparent) to 255 (opaque)
718
- * @alias alpha
719
- */
720
- get opacity() {
721
- return this.alpha;
722
- }
723
- /**
724
- * Shortcut for 1-`alpha` property
725
- */
726
- get transparency() {
727
- return 255 - this.alpha;
728
- }
729
- clone() {
730
- return take(new Color(this.red, this.green, this.blue, this.alpha));
731
- }
732
- toString() {
733
- return this.toHex();
734
- }
735
- toHex() {
736
- if (this.alpha === 255) {
737
- return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
738
- .toString(16)
739
- .padStart(2, '0')}`;
740
- }
741
- else {
742
- return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
743
- .toString(16)
744
- .padStart(2, '0')}${this.alpha.toString(16).padStart(2, '0')}`;
745
- }
833
+ super(red, green, blue, alpha);
746
834
  }
747
- toRgb() {
748
- if (this.alpha === 255) {
749
- return `rgb(${this.red}, ${this.green}, ${this.blue})`;
750
- }
751
- else {
752
- return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
753
- }
835
+ createColor(red, green, blue, alpha) {
836
+ return new Color(red, green, blue, alpha);
754
837
  }
755
- toHsl() {
756
- throw new Error(`Getting HSL is not implemented`);
838
+ static fromColorChannels({ red, green, blue, alpha }) {
839
+ return take(new Color(red, green, blue, alpha));
757
840
  }
758
841
  }
759
842
 
@@ -817,9 +900,7 @@
817
900
  }
818
901
  return [Math.round(red * 255), Math.round(green * 255), Math.round(blue * 255)];
819
902
  }
820
- /**
821
- * TODO: Properly name all used internal variables
822
- */
903
+ // TODO: Properly name all used internal variables
823
904
 
824
905
  /**
825
906
  * Converts RGB values to HSL values
@@ -865,9 +946,7 @@
865
946
  }
866
947
  return [hue, saturation, lightness];
867
948
  }
868
- /**
869
- * TODO: Properly name all used internal variables
870
- */
949
+ // TODO: Properly name all used internal variables
871
950
 
872
951
  /**
873
952
  * Makes color transformer which lighten the given color
@@ -885,9 +964,7 @@
885
964
  return Color.fromValues(r, g, b, alpha);
886
965
  };
887
966
  }
888
- /**
889
- * TODO: Maybe implement by mix+hsl
890
- */
967
+ // TODO: Maybe implement by mix+hsl
891
968
 
892
969
  /**
893
970
  * Makes color transformer which saturate the given color
@@ -905,9 +982,36 @@
905
982
  return Color.fromValues(r, g, b, alpha);
906
983
  };
907
984
  }
985
+ // TODO: Maybe implement by mix+hsl
986
+
987
+ /**
988
+ * Stable root directory used for Promptbook-owned temporary files and caches.
989
+ *
990
+ * @private internal utility for Promptbook temporary folders
991
+ */
992
+ const PROMPTBOOK_TEMPORARY_DIRECTORY = '.promptbook';
908
993
  /**
909
- * TODO: Maybe implement by mix+hsl
994
+ * Builds one normalized project-relative path inside Promptbook's dedicated temporary root.
995
+ *
996
+ * The returned path intentionally uses `/` separators so the same helper can be reused from
997
+ * Node.js and edge-safe code without depending on the Node `path` module.
998
+ *
999
+ * @private internal utility for Promptbook temporary folders
910
1000
  */
1001
+ function getPromptbookTemporaryPath(...pathSegments) {
1002
+ const normalizedPathSegments = pathSegments.flatMap(splitPathSegments).filter(Boolean);
1003
+ return [PROMPTBOOK_TEMPORARY_DIRECTORY, ...normalizedPathSegments].join('/');
1004
+ }
1005
+ /**
1006
+ * Normalizes one raw path segment into slash-delimited pieces without empty items.
1007
+ */
1008
+ function splitPathSegments(pathSegment) {
1009
+ return pathSegment
1010
+ .split(/[\\/]+/u)
1011
+ .map((segment) => segment.trim())
1012
+ .filter(Boolean);
1013
+ }
1014
+ // Note: [💞] Ignore a discrepancy between file name and entity name
911
1015
 
912
1016
  /**
913
1017
  * Returns the same value that is passed as argument.
@@ -920,6 +1024,7 @@
920
1024
  *
921
1025
  * @param value any values
922
1026
  * @returns the same values
1027
+ *
923
1028
  * @private within the repository
924
1029
  */
925
1030
  function just(value) {
@@ -1001,7 +1106,7 @@
1001
1106
  *
1002
1107
  * @public exported from `@promptbook/core`
1003
1108
  */
1004
- const DEFAULT_BOOK_TITLE = `✨ Untitled Book`;
1109
+ const DEFAULT_BOOK_TITLE = `🐙 Untitled agent`;
1005
1110
  /**
1006
1111
  * When the pipeline is flat and no name of return parameter is provided, this name is used
1007
1112
  *
@@ -1015,6 +1120,31 @@
1015
1120
  * @private within the repository - too low-level in comparison with other `MAX_...`
1016
1121
  */
1017
1122
  const LOOP_LIMIT = 1000;
1123
+ // <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
1124
+ /**
1125
+ * Where to store the temporary downloads
1126
+ *
1127
+ * Note: When the folder does not exist, it is created recursively
1128
+ *
1129
+ * @public exported from `@promptbook/core`
1130
+ */
1131
+ `./${getPromptbookTemporaryPath('download-cache')}`;
1132
+ /**
1133
+ * Where to store the cache of executions for promptbook CLI
1134
+ *
1135
+ * Note: When the folder does not exist, it is created recursively
1136
+ *
1137
+ * @public exported from `@promptbook/core`
1138
+ */
1139
+ `./${getPromptbookTemporaryPath('execution-cache')}`;
1140
+ /**
1141
+ * Where to store the scrape cache
1142
+ *
1143
+ * Note: When the folder does not exist, it is created recursively
1144
+ *
1145
+ * @public exported from `@promptbook/core`
1146
+ */
1147
+ `./${getPromptbookTemporaryPath('scrape-cache')}`;
1018
1148
  // <- TODO: [🧜‍♂️]
1019
1149
  /**
1020
1150
  * Default settings for parsing and generating CSV files in Promptbook.
@@ -1047,7 +1177,7 @@
1047
1177
  function getErrorReportUrl(error) {
1048
1178
  const report = {
1049
1179
  title: `🐜 Error report from ${NAME}`,
1050
- body: spaceTrim__default["default"]((block) => `
1180
+ body: spacetrim.spaceTrim((block) => `
1051
1181
 
1052
1182
 
1053
1183
  \`${error.name || 'Error'}\` has occurred in the [${NAME}], please look into it @${ADMIN_GITHUB_NAME}.
@@ -1090,7 +1220,7 @@
1090
1220
  */
1091
1221
  class UnexpectedError extends Error {
1092
1222
  constructor(message) {
1093
- super(spaceTrim$1.spaceTrim((block) => `
1223
+ super(spacetrim.spaceTrim((block) => `
1094
1224
  ${block(message)}
1095
1225
 
1096
1226
  Note: This error should not happen.
@@ -1119,9 +1249,7 @@
1119
1249
  Object.setPrototypeOf(this, ParseError.prototype);
1120
1250
  }
1121
1251
  }
1122
- /**
1123
- * TODO: Maybe split `ParseError` and `ApplyError`
1124
- */
1252
+ // TODO: Maybe split `ParseError` and `ApplyError`
1125
1253
 
1126
1254
  /**
1127
1255
  * Parses the boilerplate command
@@ -1129,6 +1257,7 @@
1129
1257
  * Note: @@ This command is used as boilerplate for new commands - it should NOT be used in any `.book` file
1130
1258
  *
1131
1259
  * @see `documentationUrl` for more details
1260
+ *
1132
1261
  * @private within the commands folder
1133
1262
  */
1134
1263
  const boilerplateCommandParser = {
@@ -1223,7 +1352,7 @@
1223
1352
  */
1224
1353
  class NotYetImplementedError extends Error {
1225
1354
  constructor(message) {
1226
- super(spaceTrim$1.spaceTrim((block) => `
1355
+ super(spacetrim.spaceTrim((block) => `
1227
1356
  ${block(message)}
1228
1357
 
1229
1358
  Note: This feature is not implemented yet but it will be soon.
@@ -1262,12 +1391,13 @@
1262
1391
  * Tests if given string is valid promptbook version
1263
1392
  * It looks into list of known promptbook versions.
1264
1393
  *
1265
- * @see https://www.npmjs.com/package/promptbook?activeTab=versions
1266
1394
  * Note: When you are using for example promptbook 2.0.0 and there already is promptbook 3.0.0 it don`t know about it.
1267
1395
  * Note: There are two similar functions:
1268
1396
  * - `isValidSemanticVersion` which tests any semantic version
1269
1397
  * - `isValidPromptbookVersion` *(this one)* which tests just Promptbook versions
1270
1398
  *
1399
+ * @see https://www.npmjs.com/package/promptbook?activeTab=versions
1400
+ *
1271
1401
  * @public exported from `@promptbook/utils`
1272
1402
  */
1273
1403
  function isValidPromptbookVersion(version) {
@@ -1285,6 +1415,7 @@
1285
1415
  * Parses the BOOK_VERSION command
1286
1416
  *
1287
1417
  * @see `documentationUrl` for more details
1418
+ *
1288
1419
  * @public exported from `@promptbook/editable`
1289
1420
  */
1290
1421
  const bookVersionCommandParser = {
@@ -1366,7 +1497,7 @@
1366
1497
  constructor(whatWasThrown) {
1367
1498
  const tag = `[🤮]`;
1368
1499
  console.error(tag, whatWasThrown);
1369
- super(spaceTrim$1.spaceTrim(`
1500
+ super(spacetrim.spaceTrim(`
1370
1501
  Non-Error object was thrown
1371
1502
 
1372
1503
  Note: Look for ${tag} in the console for more details
@@ -1409,12 +1540,11 @@
1409
1540
  * Units of text measurement
1410
1541
  *
1411
1542
  * @see https://github.com/webgptorg/promptbook/discussions/30
1543
+ *
1412
1544
  * @public exported from `@promptbook/core`
1413
1545
  */
1414
1546
  const EXPECTATION_UNITS = ['CHARACTERS', 'WORDS', 'SENTENCES', 'LINES', 'PARAGRAPHS', 'PAGES'];
1415
- /**
1416
- * TODO: [💝] Unite object for expecting amount and format - remove format
1417
- */
1547
+ // TODO: [💝] Unite object for expecting amount and format - remove format
1418
1548
 
1419
1549
  /**
1420
1550
  * Function parseNumber will parse number from string
@@ -1483,17 +1613,16 @@
1483
1613
  }
1484
1614
  return num;
1485
1615
  }
1486
- /**
1487
- * TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
1488
- * TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
1489
- */
1616
+ // TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
1617
+ // TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
1490
1618
 
1491
1619
  /**
1492
- import { WrappedError } from '../../errors/WrappedError';
1493
- import { assertsError } from '../../errors/assertsError';
1620
+ * import { WrappedError } from '../../errors/WrappedError';
1621
+ * import { assertsError } from '../../errors/assertsError';
1494
1622
  * Parses the expect command
1495
1623
  *
1496
1624
  * @see `documentationUrl` for more details
1625
+ *
1497
1626
  * @public exported from `@promptbook/editable`
1498
1627
  */
1499
1628
  const expectCommandParser = {
@@ -1509,7 +1638,7 @@
1509
1638
  /**
1510
1639
  * Description of the FORMAT command
1511
1640
  */
1512
- description: spaceTrim__default["default"](`
1641
+ description: spacetrim.spaceTrim(`
1513
1642
  Expect command describes the desired output of the task *(after post-processing)*
1514
1643
  It can set limits for the maximum/minimum length of the output, measured in characters, words, sentences, paragraphs or some other shape of the output.
1515
1644
  `),
@@ -1583,7 +1712,7 @@
1583
1712
  }
1584
1713
  catch (error) {
1585
1714
  assertsError(error);
1586
- throw new ParseError(spaceTrim__default["default"]((block) => `
1715
+ throw new ParseError(spacetrim.spaceTrim((block) => `
1587
1716
  Invalid FORMAT command
1588
1717
  ${block(error.message)}:
1589
1718
  `));
@@ -1713,8 +1842,9 @@
1713
1842
  /**
1714
1843
  * Definition for CSV spreadsheet
1715
1844
  *
1845
+ * TODO: [🏢] Export from package `@promptbook/csv`
1846
+ *
1716
1847
  * @public exported from `@promptbook/core`
1717
- * <- TODO: [🏢] Export from package `@promptbook/csv`
1718
1848
  */
1719
1849
  const CsvFormatParser = {
1720
1850
  formatName: 'CSV',
@@ -1735,7 +1865,7 @@
1735
1865
  const { value, outputParameterName, settings, mapCallback, onProgress } = options;
1736
1866
  const csv = csvParse(value, settings);
1737
1867
  if (csv.errors.length !== 0) {
1738
- throw new CsvFormatError(spaceTrim__default["default"]((block) => `
1868
+ throw new CsvFormatError(spacetrim.spaceTrim((block) => `
1739
1869
  CSV parsing error
1740
1870
 
1741
1871
  Error(s) from CSV parsing:
@@ -1780,7 +1910,7 @@
1780
1910
  const { value, settings, mapCallback, onProgress } = options;
1781
1911
  const csv = csvParse(value, settings);
1782
1912
  if (csv.errors.length !== 0) {
1783
- throw new CsvFormatError(spaceTrim__default["default"]((block) => `
1913
+ throw new CsvFormatError(spacetrim.spaceTrim((block) => `
1784
1914
  CSV parsing error
1785
1915
 
1786
1916
  Error(s) from CSV parsing:
@@ -1804,13 +1934,11 @@
1804
1934
  },
1805
1935
  ],
1806
1936
  };
1807
- /**
1808
- * TODO: [🍓] In `CsvFormatParser` implement simple `isValid`
1809
- * TODO: [🍓] In `CsvFormatParser` implement partial `canBeValid`
1810
- * TODO: [🍓] In `CsvFormatParser` implement `heal
1811
- * TODO: [🍓] In `CsvFormatParser` implement `subvalueParsers`
1812
- * TODO: [🏢] Allow to expect something inside CSV objects and other formats
1813
- */
1937
+ // TODO: [🍓] In `CsvFormatParser` implement simple `isValid`
1938
+ // TODO: [🍓] In `CsvFormatParser` implement partial `canBeValid`
1939
+ // TODO: [🍓] In `CsvFormatParser` implement `heal
1940
+ // TODO: [🍓] In `CsvFormatParser` implement `subvalueParsers`
1941
+ // TODO: [🏢] Allow to expect something inside CSV objects and other formats
1814
1942
 
1815
1943
  /**
1816
1944
  * Function isValidJsonString will tell you if the string is valid JSON or not
@@ -1853,17 +1981,15 @@
1853
1981
  },
1854
1982
  subvalueParsers: [],
1855
1983
  };
1856
- /**
1857
- * TODO: [🧠] Maybe proper instance of object
1858
- * TODO: [0] Make string_serialized_json
1859
- * TODO: [1] Make type for JSON Settings and Schema
1860
- * TODO: [🧠] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?
1861
- * TODO: [🍓] In `JsonFormatParser` implement simple `isValid`
1862
- * TODO: [🍓] In `JsonFormatParser` implement partial `canBeValid`
1863
- * TODO: [🍓] In `JsonFormatParser` implement `heal
1864
- * TODO: [🍓] In `JsonFormatParser` implement `subvalueParsers`
1865
- * TODO: [🏢] Allow to expect something inside JSON objects and other formats
1866
- */
1984
+ // TODO: [🧠] Maybe proper instance of object
1985
+ // TODO: [0] Make string_serialized_json
1986
+ // TODO: [1] Make type for JSON Settings and Schema
1987
+ // TODO: [🧠] What to use for validating JSONs - JSON Schema, ZoD, typescript types/interfaces,...?
1988
+ // TODO: [🍓] In `JsonFormatParser` implement simple `isValid`
1989
+ // TODO: [🍓] In `JsonFormatParser` implement partial `canBeValid`
1990
+ // TODO: [🍓] In `JsonFormatParser` implement `heal
1991
+ // TODO: [🍓] In `JsonFormatParser` implement `subvalueParsers`
1992
+ // TODO: [🏢] Allow to expect something inside JSON objects and other formats
1867
1993
 
1868
1994
  /**
1869
1995
  * Definition for any text - this will be always valid
@@ -1901,15 +2027,13 @@
1901
2027
  // <- TODO: [🧠][🤠] Here should be all words, characters, lines, paragraphs, pages available as subvalues
1902
2028
  ],
1903
2029
  };
1904
- /**
1905
- * TODO: [1] Make type for XML Text and Schema
1906
- * TODO: [🧠][🤠] Here should be all words, characters, lines, paragraphs, pages available as subvalues
1907
- * TODO: [🍓] In `TextFormatParser` implement simple `isValid`
1908
- * TODO: [🍓] In `TextFormatParser` implement partial `canBeValid`
1909
- * TODO: [🍓] In `TextFormatParser` implement `heal
1910
- * TODO: [🍓] In `TextFormatParser` implement `subvalueParsers`
1911
- * TODO: [🏢] Allow to expect something inside each item of list and other formats
1912
- */
2030
+ // TODO: [1] Make type for XML Text and Schema
2031
+ // TODO: [🧠][🤠] Here should be all words, characters, lines, paragraphs, pages available as subvalues
2032
+ // TODO: [🍓] In `TextFormatParser` implement simple `isValid`
2033
+ // TODO: [🍓] In `TextFormatParser` implement partial `canBeValid`
2034
+ // TODO: [🍓] In `TextFormatParser` implement `heal
2035
+ // TODO: [🍓] In `TextFormatParser` implement `subvalueParsers`
2036
+ // TODO: [🏢] Allow to expect something inside each item of list and other formats
1913
2037
 
1914
2038
  /**
1915
2039
  * Function to check if a string is valid XML
@@ -1954,17 +2078,15 @@
1954
2078
  },
1955
2079
  subvalueParsers: [],
1956
2080
  };
1957
- /**
1958
- * TODO: [🧠] Maybe proper instance of object
1959
- * TODO: [0] Make string_serialized_xml
1960
- * TODO: [1] Make type for XML Settings and Schema
1961
- * TODO: [🧠] What to use for validating XMLs - XSD,...
1962
- * TODO: [🍓] In `XmlFormatParser` implement simple `isValid`
1963
- * TODO: [🍓] In `XmlFormatParser` implement partial `canBeValid`
1964
- * TODO: [🍓] In `XmlFormatParser` implement `heal
1965
- * TODO: [🍓] In `XmlFormatParser` implement `subvalueParsers`
1966
- * TODO: [🏢] Allow to expect something inside XML and other formats
1967
- */
2081
+ // TODO: [🧠] Maybe proper instance of object
2082
+ // TODO: [0] Make string_serialized_xml
2083
+ // TODO: [1] Make type for XML Settings and Schema
2084
+ // TODO: [🧠] What to use for validating XMLs - XSD,...
2085
+ // TODO: [🍓] In `XmlFormatParser` implement simple `isValid`
2086
+ // TODO: [🍓] In `XmlFormatParser` implement partial `canBeValid`
2087
+ // TODO: [🍓] In `XmlFormatParser` implement `heal
2088
+ // TODO: [🍓] In `XmlFormatParser` implement `subvalueParsers`
2089
+ // TODO: [🏢] Allow to expect something inside XML and other formats
1968
2090
 
1969
2091
  /**
1970
2092
  * Definitions for all formats supported by Promptbook
@@ -1972,9 +2094,7 @@
1972
2094
  * @private internal index of `...` <- TODO [🏢]
1973
2095
  */
1974
2096
  const FORMAT_DEFINITIONS = [JsonFormatParser, XmlFormatParser, TextFormatParser, CsvFormatParser];
1975
- /**
1976
- * Note: [💞] Ignore a discrepancy between file name and entity name
1977
- */
2097
+ // Note: [💞] Ignore a discrepancy between file name and entity name
1978
2098
 
1979
2099
  /**
1980
2100
  * Normalizes a text string to SCREAMING_CASE (all uppercase with underscores).
@@ -1985,6 +2105,7 @@
1985
2105
  * @returns The normalized text in SCREAMING_CASE format.
1986
2106
  * @example 'HELLO_WORLD'
1987
2107
  * @example 'I_LOVE_PROMPTBOOK'
2108
+ *
1988
2109
  * @public exported from `@promptbook/utils`
1989
2110
  */
1990
2111
  function normalizeTo_SCREAMING_CASE(text) {
@@ -2037,6 +2158,7 @@
2037
2158
  * Orders JSON object by keys
2038
2159
  *
2039
2160
  * @returns The same type of object as the input re-ordered
2161
+ *
2040
2162
  * @public exported from `@promptbook/utils`
2041
2163
  */
2042
2164
  function orderJson(options) {
@@ -2055,6 +2177,7 @@
2055
2177
  * Note: This function mutates the object and returns the original (but mutated-deep-freezed) object
2056
2178
  *
2057
2179
  * @returns The same object as the input, but deeply frozen
2180
+ *
2058
2181
  * @public exported from `@promptbook/utils`
2059
2182
  */
2060
2183
  function $deepFreeze(objectValue) {
@@ -2071,9 +2194,7 @@
2071
2194
  Object.freeze(objectValue);
2072
2195
  return objectValue;
2073
2196
  }
2074
- /**
2075
- * TODO: [🧠] Is there a way how to meaningfully test this utility
2076
- */
2197
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
2077
2198
 
2078
2199
  /**
2079
2200
  * Checks if the value is [🚉] serializable as JSON
@@ -2093,125 +2214,187 @@
2093
2214
  * - And much more...
2094
2215
  *
2095
2216
  * @throws UnexpectedError if the value is not serializable as JSON
2217
+ *
2096
2218
  * @public exported from `@promptbook/utils`
2097
2219
  */
2098
2220
  function checkSerializableAsJson(options) {
2099
- const { value, name, message } = options;
2221
+ checkSerializableValue(options);
2222
+ }
2223
+ // TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
2224
+ // TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
2225
+ // Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
2226
+ /**
2227
+ * Checks one value and dispatches to the appropriate specialized validator.
2228
+ *
2229
+ * @private function of `checkSerializableAsJson`
2230
+ */
2231
+ function checkSerializableValue(options) {
2232
+ const { value } = options;
2233
+ if (isSerializablePrimitive(value)) {
2234
+ return;
2235
+ }
2100
2236
  if (value === undefined) {
2101
- throw new UnexpectedError(`${name} is undefined`);
2237
+ throw new UnexpectedError(`${options.name} is undefined`);
2102
2238
  }
2103
- else if (value === null) {
2104
- return;
2239
+ if (typeof value === 'symbol') {
2240
+ throw new UnexpectedError(`${options.name} is symbol`);
2105
2241
  }
2106
- else if (typeof value === 'boolean') {
2107
- return;
2242
+ if (typeof value === 'function') {
2243
+ throw new UnexpectedError(`${options.name} is function`);
2108
2244
  }
2109
- else if (typeof value === 'number' && !isNaN(value)) {
2245
+ if (Array.isArray(value)) {
2246
+ checkSerializableArray(options, value);
2110
2247
  return;
2111
2248
  }
2112
- else if (typeof value === 'string') {
2249
+ if (value !== null && typeof value === 'object') {
2250
+ checkSerializableObject(options, value);
2113
2251
  return;
2114
2252
  }
2115
- else if (typeof value === 'symbol') {
2116
- throw new UnexpectedError(`${name} is symbol`);
2117
- }
2118
- else if (typeof value === 'function') {
2119
- throw new UnexpectedError(`${name} is function`);
2120
- }
2121
- else if (typeof value === 'object' && Array.isArray(value)) {
2122
- for (let i = 0; i < value.length; i++) {
2123
- checkSerializableAsJson({ name: `${name}[${i}]`, value: value[i], message });
2124
- }
2253
+ throwUnknownTypeError(options);
2254
+ }
2255
+ /**
2256
+ * Checks the primitive values that are directly JSON serializable.
2257
+ *
2258
+ * @private function of `checkSerializableAsJson`
2259
+ */
2260
+ function isSerializablePrimitive(value) {
2261
+ return (value === null ||
2262
+ typeof value === 'boolean' ||
2263
+ (typeof value === 'number' && !isNaN(value)) ||
2264
+ typeof value === 'string');
2265
+ }
2266
+ /**
2267
+ * Recursively checks JSON array items.
2268
+ *
2269
+ * @private function of `checkSerializableAsJson`
2270
+ */
2271
+ function checkSerializableArray(context, arrayValue) {
2272
+ for (let index = 0; index < arrayValue.length; index++) {
2273
+ checkSerializableAsJson({
2274
+ ...context,
2275
+ name: `${context.name}[${index}]`,
2276
+ value: arrayValue[index],
2277
+ });
2125
2278
  }
2126
- else if (typeof value === 'object') {
2127
- if (value instanceof Date) {
2128
- throw new UnexpectedError(spaceTrim__default["default"]((block) => `
2129
- \`${name}\` is Date
2279
+ }
2280
+ /**
2281
+ * Checks object-like values and dispatches special unsupported built-ins.
2282
+ *
2283
+ * @private function of `checkSerializableAsJson`
2284
+ */
2285
+ function checkSerializableObject(context, objectValue) {
2286
+ checkUnsupportedObjectType(context, objectValue);
2287
+ checkSerializableObjectEntries(context, objectValue);
2288
+ assertJsonStringificationSucceeds(context, objectValue);
2289
+ }
2290
+ /**
2291
+ * Rejects built-in objects that must be converted before JSON serialization.
2292
+ *
2293
+ * @private function of `checkSerializableAsJson`
2294
+ */
2295
+ function checkUnsupportedObjectType(context, objectValue) {
2296
+ if (objectValue instanceof Date) {
2297
+ throw new UnexpectedError(spacetrim.spaceTrim((block) => `
2298
+ \`${context.name}\` is Date
2130
2299
 
2131
- Use \`string_date_iso8601\` instead
2300
+ Use \`string_date_iso8601\` instead
2132
2301
 
2133
- Additional message for \`${name}\`:
2134
- ${block(message || '(nothing)')}
2135
- `));
2136
- }
2137
- else if (value instanceof Map) {
2138
- throw new UnexpectedError(`${name} is Map`);
2139
- }
2140
- else if (value instanceof Set) {
2141
- throw new UnexpectedError(`${name} is Set`);
2142
- }
2143
- else if (value instanceof RegExp) {
2144
- throw new UnexpectedError(`${name} is RegExp`);
2145
- }
2146
- else if (value instanceof Error) {
2147
- throw new UnexpectedError(spaceTrim__default["default"]((block) => `
2148
- \`${name}\` is unserialized Error
2302
+ Additional message for \`${context.name}\`:
2303
+ ${block(context.message || '(nothing)')}
2304
+ `));
2305
+ }
2306
+ if (objectValue instanceof Map) {
2307
+ throw new UnexpectedError(`${context.name} is Map`);
2308
+ }
2309
+ if (objectValue instanceof Set) {
2310
+ throw new UnexpectedError(`${context.name} is Set`);
2311
+ }
2312
+ if (objectValue instanceof RegExp) {
2313
+ throw new UnexpectedError(`${context.name} is RegExp`);
2314
+ }
2315
+ if (objectValue instanceof Error) {
2316
+ throw new UnexpectedError(spacetrim.spaceTrim((block) => `
2317
+ \`${context.name}\` is unserialized Error
2149
2318
 
2150
- Use function \`serializeError\`
2319
+ Use function \`serializeError\`
2151
2320
 
2152
- Additional message for \`${name}\`:
2153
- ${block(message || '(nothing)')}
2321
+ Additional message for \`${context.name}\`:
2322
+ ${block(context.message || '(nothing)')}
2154
2323
 
2155
- `));
2324
+ `));
2325
+ }
2326
+ }
2327
+ /**
2328
+ * Recursively checks object properties while preserving omitted `undefined` keys.
2329
+ *
2330
+ * @private function of `checkSerializableAsJson`
2331
+ */
2332
+ function checkSerializableObjectEntries(context, objectValue) {
2333
+ for (const [subName, subValue] of Object.entries(objectValue)) {
2334
+ if (subValue === undefined) {
2335
+ // Note: undefined in object is serializable - it is just omitted
2336
+ continue;
2156
2337
  }
2157
- else {
2158
- for (const [subName, subValue] of Object.entries(value)) {
2159
- if (subValue === undefined) {
2160
- // Note: undefined in object is serializable - it is just omitted
2161
- continue;
2162
- }
2163
- checkSerializableAsJson({ name: `${name}.${subName}`, value: subValue, message });
2164
- }
2165
- try {
2166
- JSON.stringify(value); // <- TODO: [0]
2167
- }
2168
- catch (error) {
2169
- assertsError(error);
2170
- throw new UnexpectedError(spaceTrim__default["default"]((block) => `
2171
- \`${name}\` is not serializable
2338
+ checkSerializableAsJson({
2339
+ ...context,
2340
+ name: `${context.name}.${subName}`,
2341
+ value: subValue,
2342
+ });
2343
+ }
2344
+ }
2345
+ /**
2346
+ * Uses `JSON.stringify` as the final guard for cases like circular references.
2347
+ *
2348
+ * @private function of `checkSerializableAsJson`
2349
+ */
2350
+ function assertJsonStringificationSucceeds(context, objectValue) {
2351
+ try {
2352
+ JSON.stringify(objectValue); // <- TODO: [0]
2353
+ }
2354
+ catch (error) {
2355
+ assertsError(error);
2356
+ throw new UnexpectedError(spacetrim.spaceTrim((block) => `
2357
+ \`${context.name}\` is not serializable
2172
2358
 
2173
- ${block(error.stack || error.message)}
2359
+ ${block(error.stack || error.message)}
2174
2360
 
2175
- Additional message for \`${name}\`:
2176
- ${block(message || '(nothing)')}
2177
- `));
2361
+ Additional message for \`${context.name}\`:
2362
+ ${block(context.message || '(nothing)')}
2363
+ `));
2364
+ }
2365
+ /*
2366
+ TODO: [0] Is there some more elegant way to check circular references?
2367
+ const seen = new Set();
2368
+ const stack = [{ value }];
2369
+ while (stack.length > 0) {
2370
+ const { value } = stack.pop()!;
2371
+ if (typeof value === 'object' && value !== null) {
2372
+ if (seen.has(value)) {
2373
+ throw new UnexpectedError(`${name} has circular reference`);
2178
2374
  }
2179
- /*
2180
- TODO: [0] Is there some more elegant way to check circular references?
2181
- const seen = new Set();
2182
- const stack = [{ value }];
2183
- while (stack.length > 0) {
2184
- const { value } = stack.pop()!;
2185
- if (typeof value === 'object' && value !== null) {
2186
- if (seen.has(value)) {
2187
- throw new UnexpectedError(`${name} has circular reference`);
2188
- }
2189
- seen.add(value);
2190
- if (Array.isArray(value)) {
2191
- stack.push(...value.map((value) => ({ value })));
2192
- } else {
2193
- stack.push(...Object.values(value).map((value) => ({ value })));
2194
- }
2195
- }
2375
+ seen.add(value);
2376
+ if (Array.isArray(value)) {
2377
+ stack.push(...value.map((value) => ({ value })));
2378
+ } else {
2379
+ stack.push(...Object.values(value).map((value) => ({ value })));
2196
2380
  }
2197
- */
2198
- return;
2199
2381
  }
2200
2382
  }
2201
- else {
2202
- throw new UnexpectedError(spaceTrim__default["default"]((block) => `
2203
- \`${name}\` is unknown type
2204
-
2205
- Additional message for \`${name}\`:
2206
- ${block(message || '(nothing)')}
2207
- `));
2208
- }
2383
+ */
2209
2384
  }
2210
2385
  /**
2211
- * TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
2212
- * TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
2213
- * Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
2386
+ * Throws the fallback error for unsupported value types like `bigint` and `NaN`.
2387
+ *
2388
+ * @private function of `checkSerializableAsJson`
2214
2389
  */
2390
+ function throwUnknownTypeError(context) {
2391
+ throw new UnexpectedError(spacetrim.spaceTrim((block) => `
2392
+ \`${context.name}\` is unknown type
2393
+
2394
+ Additional message for \`${context.name}\`:
2395
+ ${block(context.message || '(nothing)')}
2396
+ `));
2397
+ }
2215
2398
 
2216
2399
  /**
2217
2400
  * Creates a deep clone of the given object
@@ -2221,6 +2404,7 @@
2221
2404
  *
2222
2405
  * @param objectValue The object to clone.
2223
2406
  * @returns A deep, writable clone of the input object.
2407
+ *
2224
2408
  * @public exported from `@promptbook/utils`
2225
2409
  */
2226
2410
  function deepClone(objectValue) {
@@ -2237,9 +2421,7 @@
2237
2421
  > return Object.assign({}, objectValue);
2238
2422
  */
2239
2423
  }
2240
- /**
2241
- * TODO: [🧠] Is there a way how to meaningfully test this utility
2242
- */
2424
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
2243
2425
 
2244
2426
  /**
2245
2427
  * Utility to export a JSON object from a function
@@ -2252,6 +2434,7 @@
2252
2434
  * Note: This function does not mutates the given object
2253
2435
  *
2254
2436
  * @returns The same type of object as the input but read-only and re-ordered
2437
+ *
2255
2438
  * @public exported from `@promptbook/utils`
2256
2439
  */
2257
2440
  function exportJson(options) {
@@ -2271,9 +2454,7 @@
2271
2454
  $deepFreeze(orderedValue);
2272
2455
  return orderedValue;
2273
2456
  }
2274
- /**
2275
- * TODO: [🧠] Is there a way how to meaningfully test this utility
2276
- */
2457
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
2277
2458
 
2278
2459
  /**
2279
2460
  * Nonce which is used for replacing things in strings
@@ -2301,9 +2482,7 @@
2301
2482
  // <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
2302
2483
  ],
2303
2484
  });
2304
- /**
2305
- * Note: [💞] Ignore a discrepancy between file name and entity name
2306
- */
2485
+ // Note: [💞] Ignore a discrepancy between file name and entity name
2307
2486
 
2308
2487
  /**
2309
2488
  * Normalizes a given text to camelCase format.
@@ -2315,6 +2494,7 @@
2315
2494
  * @returns The camelCase formatted string.
2316
2495
  * @example 'helloWorld'
2317
2496
  * @example 'iLovePromptbook'
2497
+ *
2318
2498
  * @public exported from `@promptbook/utils`
2319
2499
  */
2320
2500
  function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
@@ -2355,10 +2535,11 @@
2355
2535
  }
2356
2536
  return normalizedName;
2357
2537
  }
2538
+ // TODO: [🌺] Use some intermediate util splitWords
2539
+
2358
2540
  /**
2359
- * TODO: [🌺] Use some intermediate util splitWords
2541
+ * Collection of default diacritics removal map.
2360
2542
  */
2361
-
2362
2543
  const defaultDiacriticsRemovalMap = [
2363
2544
  {
2364
2545
  base: 'A',
@@ -2610,6 +2791,7 @@
2610
2791
  *
2611
2792
  * @param input The string containing diacritics to be normalized.
2612
2793
  * @returns The string with diacritics removed or normalized.
2794
+ *
2613
2795
  * @public exported from `@promptbook/utils`
2614
2796
  */
2615
2797
  function removeDiacritics(input) {
@@ -2618,9 +2800,7 @@
2618
2800
  return DIACRITIC_VARIANTS_LETTERS[character] || character;
2619
2801
  });
2620
2802
  }
2621
- /**
2622
- * TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
2623
- */
2803
+ // TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
2624
2804
 
2625
2805
  /**
2626
2806
  * Removes emojis from a string and fix whitespaces
@@ -2629,6 +2809,7 @@
2629
2809
  *
2630
2810
  * @param text with emojis
2631
2811
  * @returns text without emojis
2812
+ *
2632
2813
  * @public exported from `@promptbook/utils`
2633
2814
  */
2634
2815
  function removeEmojis(text) {
@@ -2652,6 +2833,7 @@
2652
2833
  *
2653
2834
  * @param text optionally quoted text
2654
2835
  * @returns text without quotes
2836
+ *
2655
2837
  * @public exported from `@promptbook/utils`
2656
2838
  */
2657
2839
  function removeQuotes(text) {
@@ -2673,6 +2855,7 @@
2673
2855
  * @param parameterName The parameter name to validate and normalize.
2674
2856
  * @returns The validated and normalized parameter name.
2675
2857
  * @throws {ParseError} If the parameter name is empty, reserved, or contains invalid characters.
2858
+ *
2676
2859
  * @private within the repository
2677
2860
  */
2678
2861
  function validateParameterName(parameterName) {
@@ -2729,7 +2912,7 @@
2729
2912
  if (!(error instanceof ParseError)) {
2730
2913
  throw error;
2731
2914
  }
2732
- throw new ParseError(spaceTrim__default["default"]((block) => `
2915
+ throw new ParseError(spacetrim.spaceTrim((block) => `
2733
2916
  ${block(error.message)}
2734
2917
 
2735
2918
  Tried to validate parameter name:
@@ -2743,6 +2926,7 @@
2743
2926
  * Parses the foreach command
2744
2927
  *
2745
2928
  * @see `documentationUrl` for more details
2929
+ *
2746
2930
  * @public exported from `@promptbook/editable`
2747
2931
  */
2748
2932
  const foreachCommandParser = {
@@ -2788,7 +2972,7 @@
2788
2972
  const assignSign = args[3];
2789
2973
  const formatDefinition = FORMAT_DEFINITIONS.find((formatDefinition) => [formatDefinition.formatName, ...(formatDefinition.aliases || [])].includes(formatName));
2790
2974
  if (formatDefinition === undefined) {
2791
- throw new ParseError(spaceTrim__default["default"]((block) => `
2975
+ throw new ParseError(spacetrim.spaceTrim((block) => `
2792
2976
  Unsupported format "${formatName}"
2793
2977
 
2794
2978
  Available formats:
@@ -2800,7 +2984,7 @@
2800
2984
  }
2801
2985
  const subvalueParser = formatDefinition.subvalueParsers.find((subvalueParser) => [subvalueParser.subvalueName, ...(subvalueParser.aliases || [])].includes(subformatName));
2802
2986
  if (subvalueParser === undefined) {
2803
- throw new ParseError(spaceTrim__default["default"]((block) => `
2987
+ throw new ParseError(spacetrim.spaceTrim((block) => `
2804
2988
  Unsupported subformat name "${subformatName}" for format "${formatName}"
2805
2989
 
2806
2990
  Available subformat names for format "${formatDefinition.formatName}":
@@ -2848,7 +3032,7 @@
2848
3032
  outputSubparameterName = 'newLine';
2849
3033
  }
2850
3034
  else {
2851
- throw new ParseError(spaceTrim__default["default"](`
3035
+ throw new ParseError(spacetrim.spaceTrim(`
2852
3036
  FOREACH ${formatName} ${subformatName} must specify output subparameter
2853
3037
 
2854
3038
  Correct example:
@@ -2901,14 +3085,13 @@
2901
3085
  throw new NotYetImplementedError(`[🛋] Not implemented yet`); // <- TODO: [🛋] Implement
2902
3086
  },
2903
3087
  };
2904
- /**
2905
- * TODO: [🍭] Make .book.md file with examples of the FOREACH with wrong parsing and logic
2906
- */
3088
+ // TODO: [🍭] Make .book.md file with examples of the FOREACH with wrong parsing and logic
2907
3089
 
2908
3090
  /**
2909
3091
  * Parses the format command
2910
3092
  *
2911
3093
  * @see `documentationUrl` for more details
3094
+ *
2912
3095
  * @public exported from `@promptbook/editable`
2913
3096
  */
2914
3097
  const formatCommandParser = {
@@ -2924,7 +3107,7 @@
2924
3107
  /**
2925
3108
  * Description of the FORMAT command
2926
3109
  */
2927
- description: spaceTrim__default["default"](`
3110
+ description: spacetrim.spaceTrim(`
2928
3111
  Format command describes the desired output of the task (after post-processing)
2929
3112
  It can set limits for the maximum/minimum length of the output, measured in characters, words, sentences, paragraphs or some other shape of the output.
2930
3113
  `),
@@ -3093,9 +3276,7 @@
3093
3276
  inputParameters: [],
3094
3277
  outputParameters: [],
3095
3278
  };
3096
- /**
3097
- * Note: [💞] Ignore a discrepancy between file name and entity name
3098
- */
3279
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3099
3280
 
3100
3281
  /**
3101
3282
  * A generic pipeline
@@ -3147,8 +3328,10 @@
3147
3328
  */
3148
3329
  const MatcherFormfactorDefinition = {
3149
3330
  name: 'EXPERIMENTAL_MATCHER',
3150
- description: `An evaluation system that determines whether content meets specific criteria or patterns.
3151
- Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.`,
3331
+ description: spacetrim.spaceTrim(`
3332
+ An evaluation system that determines whether content meets specific criteria or patterns.
3333
+ Used for content validation, quality assessment, and intelligent filtering tasks. Currently in experimental phase.
3334
+ `),
3152
3335
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/177`,
3153
3336
  pipelineInterface: {
3154
3337
  inputParameters: [
@@ -3205,9 +3388,11 @@
3205
3388
  */
3206
3389
  const TranslatorFormfactorDefinition = {
3207
3390
  name: 'TRANSLATOR',
3208
- description: `A text transformation system that converts input content into different forms,
3209
- including language translations, paraphrasing, style conversions, and tone adjustments.
3210
- This form factor takes one input and produces one transformed output.`,
3391
+ description: spacetrim.spaceTrim(`
3392
+ A text transformation system that converts input content into different forms,
3393
+ including language translations, paraphrasing, style conversions, and tone adjustments.
3394
+ This form factor takes one input and produces one transformed output.
3395
+ `),
3211
3396
  documentationUrl: `https://github.com/webgptorg/promptbook/discussions/175`,
3212
3397
  pipelineInterface: {
3213
3398
  inputParameters: [
@@ -3247,9 +3432,7 @@
3247
3432
  CompletionFormfactorDefinition,
3248
3433
  // <- [🛬] When making new formfactor, copy the _boilerplate and link it here
3249
3434
  ];
3250
- /**
3251
- * Note: [💞] Ignore a discrepancy between file name and entity name
3252
- */
3435
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3253
3436
 
3254
3437
  /**
3255
3438
  * Parses the formfactor command
@@ -3257,6 +3440,7 @@
3257
3440
  * Note: This command is used as a formfactor for new commands and defines the app type format - it should NOT be used in any `.book` file
3258
3441
  *
3259
3442
  * @see `documentationUrl` for more details
3443
+ *
3260
3444
  * @public exported from `@promptbook/editable`
3261
3445
  */
3262
3446
  const formfactorCommandParser = {
@@ -3296,7 +3480,7 @@
3296
3480
  const formfactorNameCandidate = args[0].toUpperCase();
3297
3481
  const formfactor = FORMFACTOR_DEFINITIONS.find((definition) => [definition.name, ...{ aliasNames: [], ...definition }.aliasNames].includes(formfactorNameCandidate));
3298
3482
  if (formfactor === undefined) {
3299
- throw new ParseError(spaceTrim__default["default"]((block) => `
3483
+ throw new ParseError(spacetrim.spaceTrim((block) => `
3300
3484
  Unknown formfactor name "${formfactorNameCandidate}"
3301
3485
 
3302
3486
  Available formfactors:
@@ -3315,7 +3499,7 @@
3315
3499
  */
3316
3500
  $applyToPipelineJson(command, $pipelineJson) {
3317
3501
  if ($pipelineJson.formfactorName !== undefined && $pipelineJson.formfactorName !== command.formfactorName) {
3318
- throw new ParseError(spaceTrim__default["default"](`
3502
+ throw new ParseError(spacetrim.spaceTrim(`
3319
3503
  Redefinition of \`FORMFACTOR\` in the pipeline head
3320
3504
 
3321
3505
  You have used:
@@ -3352,6 +3536,7 @@
3352
3536
  * Parses the joker command
3353
3537
  *
3354
3538
  * @see `documentationUrl` for more details
3539
+ *
3355
3540
  * @public exported from `@promptbook/editable`
3356
3541
  */
3357
3542
  const jokerCommandParser = {
@@ -3422,6 +3607,7 @@
3422
3607
  * Tests if given string is valid file path.
3423
3608
  *
3424
3609
  * Note: This does not check if the file exists only if the path is valid
3610
+ *
3425
3611
  * @public exported from `@promptbook/utils`
3426
3612
  */
3427
3613
  function isValidFilePath(filename) {
@@ -3470,9 +3656,7 @@
3470
3656
  }
3471
3657
  return false;
3472
3658
  }
3473
- /**
3474
- * TODO: [🍏] Implement for MacOs
3475
- */
3659
+ // TODO: [🍏] Implement for MacOs
3476
3660
 
3477
3661
  /**
3478
3662
  * Tests if given string is valid URL.
@@ -3514,6 +3698,7 @@
3514
3698
  * @returns The kebab-case formatted string.
3515
3699
  * @example 'hello-world'
3516
3700
  * @example 'i-love-promptbook'
3701
+ *
3517
3702
  * @public exported from `@promptbook/utils`
3518
3703
  */
3519
3704
  function normalizeToKebabCase(text) {
@@ -3554,9 +3739,7 @@
3554
3739
  normalizedName = normalizedName.replace(/-$/, '');
3555
3740
  return normalizedName;
3556
3741
  }
3557
- /**
3558
- * Note: [💞] Ignore a discrepancy between file name and entity name
3559
- */
3742
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3560
3743
 
3561
3744
  /**
3562
3745
  * Creates unique name for the source
@@ -3575,14 +3758,13 @@
3575
3758
  // <- TODO: Use MAX_FILENAME_LENGTH
3576
3759
  return name;
3577
3760
  }
3578
- /**
3579
- * TODO: [🐱‍🐉][🧠] Make some smart crop NOT source-i-m-pavol-a-develop-... BUT source-i-m-pavol-a-developer-...
3580
- */
3761
+ // TODO: [🐱‍🐉][🧠] Make some smart crop NOT source-i-m-pavol-a-develop-... BUT source-i-m-pavol-a-developer-...
3581
3762
 
3582
3763
  /**
3583
3764
  * Parses the knowledge command
3584
3765
  *
3585
3766
  * @see `documentationUrl` for more details
3767
+ *
3586
3768
  * @public exported from `@promptbook/editable`
3587
3769
  */
3588
3770
  const knowledgeCommandParser = {
@@ -3619,7 +3801,7 @@
3619
3801
  */
3620
3802
  parse(input) {
3621
3803
  const { args } = input;
3622
- const knowledgeSourceContent = spaceTrim__default["default"](args[0] || '');
3804
+ const knowledgeSourceContent = spacetrim.spaceTrim(args[0] || '');
3623
3805
  if (knowledgeSourceContent === '') {
3624
3806
  throw new ParseError(`Source is not defined`);
3625
3807
  }
@@ -3669,12 +3851,13 @@
3669
3851
  throw new NotYetImplementedError(`[🛋] Not implemented yet`); // <- TODO: [🛋] Implement
3670
3852
  },
3671
3853
  };
3672
- /**
3673
- * Note: [⛱] There are two types of KNOWLEDGE commands *...(read more in [⛱])*
3674
- */
3854
+ // Note: [⛱] There are two types of KNOWLEDGE commands *...(read more in [⛱])*
3675
3855
 
3676
3856
  /**
3857
+ * Constant for model variants.
3858
+ *
3677
3859
  * @see {@link ModelVariant}
3860
+ *
3678
3861
  * @public exported from `@promptbook/core`
3679
3862
  */
3680
3863
  const MODEL_VARIANTS = [
@@ -3689,6 +3872,7 @@
3689
3872
  *
3690
3873
  * @see `documentationUrl` for more details
3691
3874
  * @deprecated Option to manually set the model requirements is not recommended to use, use `PERSONA` instead
3875
+ *
3692
3876
  * @public exported from `@promptbook/editable`
3693
3877
  */
3694
3878
  const modelCommandParser = {
@@ -3718,7 +3902,7 @@
3718
3902
  */
3719
3903
  parse(input) {
3720
3904
  const { args, normalized } = input;
3721
- const availableVariantsMessage = spaceTrim__default["default"]((block) => `
3905
+ const availableVariantsMessage = spacetrim.spaceTrim((block) => `
3722
3906
  Available variants are:
3723
3907
  ${block(MODEL_VARIANTS.map((variantName) => `- ${variantName}${variantName !== 'EMBEDDING' ? '' : ' (Not available in pipeline)'}`).join('\n'))}
3724
3908
  `);
@@ -3740,14 +3924,14 @@
3740
3924
  // <- Note: [🤖]
3741
3925
  }
3742
3926
  else if (normalized.startsWith('MODEL_VARIANT_EMBED')) {
3743
- spaceTrim__default["default"]((block) => `
3927
+ spacetrim.spaceTrim((block) => `
3744
3928
  Embedding model can not be used in pipeline
3745
3929
 
3746
3930
  ${block(availableVariantsMessage)}
3747
3931
  `);
3748
3932
  }
3749
3933
  else {
3750
- throw new ParseError(spaceTrim__default["default"]((block) => `
3934
+ throw new ParseError(spacetrim.spaceTrim((block) => `
3751
3935
  Unknown model variant in command:
3752
3936
 
3753
3937
  ${block(availableVariantsMessage)}
@@ -3762,7 +3946,7 @@
3762
3946
  };
3763
3947
  }
3764
3948
  else {
3765
- throw new ParseError(spaceTrim__default["default"]((block) => `
3949
+ throw new ParseError(spacetrim.spaceTrim((block) => `
3766
3950
  Unknown model key in command.
3767
3951
 
3768
3952
  Supported model keys are:
@@ -3789,7 +3973,7 @@
3789
3973
  // <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
3790
3974
  }
3791
3975
  else {
3792
- throw new ParseError(spaceTrim__default["default"](`
3976
+ throw new ParseError(spacetrim.spaceTrim(`
3793
3977
  Redefinition of \`MODEL ${command.key}\` in the pipeline head
3794
3978
 
3795
3979
  You have used:
@@ -3817,7 +4001,7 @@
3817
4001
  // <- TODO: [🏮] Some standard way how to transform errors into warnings and how to handle non-critical fails during the tasks
3818
4002
  }
3819
4003
  else {
3820
- throw new ParseError(spaceTrim__default["default"](`
4004
+ throw new ParseError(spacetrim.spaceTrim(`
3821
4005
  Redefinition of MODEL \`${command.key}\` in the task "${$taskJson.title || $taskJson.name}"
3822
4006
 
3823
4007
  You have used:
@@ -3827,7 +4011,7 @@
3827
4011
  }
3828
4012
  }
3829
4013
  if (command.value === ($pipelineJson.defaultModelRequirements || {})[command.key]) {
3830
- console.log(spaceTrim__default["default"](`
4014
+ console.log(spacetrim.spaceTrim(`
3831
4015
  Setting MODEL \`${command.key}\` in the task "${$taskJson.title || $taskJson.name}" to the same value as in the pipeline head
3832
4016
 
3833
4017
  In pipeline head:
@@ -3869,6 +4053,7 @@
3869
4053
  * Parses the parameter command
3870
4054
  *
3871
4055
  * @see `documentationUrl` for more details
4056
+ *
3872
4057
  * @public exported from `@promptbook/editable`
3873
4058
  */
3874
4059
  const parameterCommandParser = {
@@ -3910,7 +4095,7 @@
3910
4095
  // <- TODO: When [🥶] fixed, change to:
3911
4096
  // > const parameterDescriptionRaw = rawArgs.split(parameterNameRaw).join('').trim();
3912
4097
  if (parameterDescriptionRaw && parameterDescriptionRaw.match(/\{(?<embeddedParameterName>[a-z0-9_]+)\}/im)) {
3913
- throw new ParseError(spaceTrim__default["default"]((block) => `
4098
+ throw new ParseError(spacetrim.spaceTrim((block) => `
3914
4099
  Parameter \`{${parameterNameRaw}}\` can not contain another parameter in description
3915
4100
 
3916
4101
  The description:
@@ -3979,6 +4164,7 @@
3979
4164
  * Parses the persona command
3980
4165
  *
3981
4166
  * @see `documentationUrl` for more details
4167
+ *
3982
4168
  * @public exported from `@promptbook/editable`
3983
4169
  */
3984
4170
  const personaCommandParser = {
@@ -4092,7 +4278,7 @@
4092
4278
  persona.description = personaDescription;
4093
4279
  return;
4094
4280
  }
4095
- console.warn(spaceTrim__default["default"](`
4281
+ console.warn(spacetrim.spaceTrim(`
4096
4282
 
4097
4283
  Persona "${personaName}" is defined multiple times with different description:
4098
4284
 
@@ -4103,7 +4289,7 @@
4103
4289
  ${personaDescription}
4104
4290
 
4105
4291
  `));
4106
- persona.description += spaceTrim__default["default"]('\n\n' + personaDescription);
4292
+ persona.description += spacetrim.spaceTrim('\n\n' + personaDescription);
4107
4293
  }
4108
4294
 
4109
4295
  /**
@@ -4111,6 +4297,7 @@
4111
4297
  *
4112
4298
  * @param javascriptName The value to check for JavaScript identifier validity.
4113
4299
  * @returns `true` if the value is a valid JavaScript name, false otherwise.
4300
+ *
4114
4301
  * @public exported from `@promptbook/utils`
4115
4302
  */
4116
4303
  function isValidJavascriptName(javascriptName) {
@@ -4124,6 +4311,7 @@
4124
4311
  * Parses the postprocess command
4125
4312
  *
4126
4313
  * @see `documentationUrl` for more details
4314
+ *
4127
4315
  * @public exported from `@promptbook/editable`
4128
4316
  */
4129
4317
  const postprocessCommandParser = {
@@ -4239,6 +4427,7 @@
4239
4427
  * Parses the section command
4240
4428
  *
4241
4429
  * @see `documentationUrl` for more details
4430
+ *
4242
4431
  * @public exported from `@promptbook/editable`
4243
4432
  */
4244
4433
  const sectionCommandParser = {
@@ -4325,7 +4514,7 @@
4325
4514
  normalized = normalized.split('DIALOGUE').join('DIALOG');
4326
4515
  const taskTypes = SectionTypes.filter((sectionType) => normalized.includes(sectionType.split('_TASK').join('')));
4327
4516
  if (taskTypes.length !== 1) {
4328
- throw new ParseError(spaceTrim__default["default"]((block) => `
4517
+ throw new ParseError(spacetrim.spaceTrim((block) => `
4329
4518
  Unknown section type "${normalized}"
4330
4519
 
4331
4520
  Supported section types are:
@@ -4345,7 +4534,7 @@
4345
4534
  */
4346
4535
  $applyToTaskJson(command, $taskJson, $pipelineJson) {
4347
4536
  if ($taskJson.isSectionTypeSet === true) {
4348
- throw new ParseError(spaceTrim__default["default"](`
4537
+ throw new ParseError(spacetrim.spaceTrim(`
4349
4538
  Section type is already defined in the section.
4350
4539
  It can be defined only once.
4351
4540
  `));
@@ -4453,14 +4642,13 @@
4453
4642
  */
4454
4643
  return true;
4455
4644
  }
4456
- /**
4457
- * TODO: [🐠] Maybe more info why the URL is invalid
4458
- */
4645
+ // TODO: [🐠] Maybe more info why the URL is invalid
4459
4646
 
4460
4647
  /**
4461
4648
  * Parses the url command
4462
4649
  *
4463
4650
  * @see `documentationUrl` for more details
4651
+ *
4464
4652
  * @public exported from `@promptbook/editable`
4465
4653
  */
4466
4654
  const urlCommandParser = {
@@ -4562,6 +4750,7 @@
4562
4750
  * Parses the action command
4563
4751
  *
4564
4752
  * @see `documentationUrl` for more details
4753
+ *
4565
4754
  * @public exported from `@promptbook/editable`
4566
4755
  */
4567
4756
  const actionCommandParser = {
@@ -4619,14 +4808,13 @@
4619
4808
  throw new NotYetImplementedError('[🛠] Actions are not implemented yet');
4620
4809
  },
4621
4810
  };
4622
- /**
4623
- * Note: [⛱] There are two types of ACTION commands *...(read more in [⛱])*
4624
- */
4811
+ // Note: [⛱] There are two types of ACTION commands *...(read more in [⛱])*
4625
4812
 
4626
4813
  /**
4627
4814
  * Parses the instrument command
4628
4815
  *
4629
4816
  * @see `documentationUrl` for more details
4817
+ *
4630
4818
  * @public exported from `@promptbook/editable`
4631
4819
  */
4632
4820
  const instrumentCommandParser = {
@@ -4684,9 +4872,7 @@
4684
4872
  throw new NotYetImplementedError('[🛠] Instruments are not implemented yet');
4685
4873
  },
4686
4874
  };
4687
- /**
4688
- * Note: [⛱] There are two types of INSTRUMENT commands *...(read more in [⛱])*
4689
- */
4875
+ // Note: [⛱] There are two types of INSTRUMENT commands *...(read more in [⛱])*
4690
4876
 
4691
4877
  /**
4692
4878
  * All available command parsers
@@ -4712,9 +4898,7 @@
4712
4898
  boilerplateCommandParser, // <- TODO: Only in development, remove in production
4713
4899
  // <- Note: [♓️][💩] This is the order of the commands in the pipeline, BUT its not used in parsing and before usage maybe it should be done better
4714
4900
  ];
4715
- /**
4716
- * Note: [💞] Ignore a discrepancy between file name and entity name
4717
- */
4901
+ // Note: [💞] Ignore a discrepancy between file name and entity name
4718
4902
 
4719
4903
  /**
4720
4904
  * Gets the parser for the command
@@ -4727,7 +4911,7 @@
4727
4911
  function getParserForCommand(command) {
4728
4912
  const commandParser = COMMANDS.find((commandParser) => commandParser.name === command.type);
4729
4913
  if (commandParser === undefined) {
4730
- throw new UnexpectedError(spaceTrim$1.spaceTrim((block) => `
4914
+ throw new UnexpectedError(spacetrim.spaceTrim((block) => `
4731
4915
  Command ${command.type} parser is not found
4732
4916
 
4733
4917
  ${block(JSON.stringify(command, null, 4)
@@ -4744,6 +4928,7 @@
4744
4928
  *
4745
4929
  * @param {string} str - The string to remove Markdown tags from.
4746
4930
  * @returns {string} The input string with all Markdown tags removed.
4931
+ *
4747
4932
  * @public exported from `@promptbook/markdown-utils`
4748
4933
  */
4749
4934
  function removeMarkdownFormatting(str) {
@@ -4803,7 +4988,7 @@
4803
4988
  .map(removeMarkdownFormatting)
4804
4989
  .map((item) => item.trim());
4805
4990
  if (items.length === 0 || items[0] === '') {
4806
- throw new ParseError(spaceTrim$1.spaceTrim((block) => `
4991
+ throw new ParseError(spacetrim.spaceTrim((block) => `
4807
4992
  Malformed command:
4808
4993
  - ${raw}
4809
4994
 
@@ -4839,7 +5024,7 @@
4839
5024
  return command;
4840
5025
  }
4841
5026
  }
4842
- throw new ParseError(spaceTrim$1.spaceTrim((block) => `
5027
+ throw new ParseError(spacetrim.spaceTrim((block) => `
4843
5028
  Malformed or unknown command:
4844
5029
  - ${raw}
4845
5030
 
@@ -4890,7 +5075,7 @@
4890
5075
  if (!(error instanceof ParseError)) {
4891
5076
  throw error;
4892
5077
  }
4893
- throw new ParseError(spaceTrim$1.spaceTrim((block) => `
5078
+ throw new ParseError(spacetrim.spaceTrim((block) => `
4894
5079
  Invalid ${commandName} command:
4895
5080
 
4896
5081
  Your command:
@@ -4913,7 +5098,7 @@
4913
5098
  }
4914
5099
 
4915
5100
  /**
4916
- * Number of padding lines to add at the end of the book content
5101
+ * Number of padding lines to add at the end of the book content
4917
5102
  *
4918
5103
  * @public exported from `@promptbook/core`
4919
5104
  */
@@ -4950,9 +5135,7 @@
4950
5135
  const linesToAdd = PADDING_LINES - trailingEmptyLines;
4951
5136
  return (content + '\n'.repeat(linesToAdd));
4952
5137
  }
4953
- /**
4954
- * TODO: [🧠] Maybe export
4955
- */
5138
+ // TODO: [🧠] Maybe export
4956
5139
 
4957
5140
  /**
4958
5141
  * Checks if value is valid email
@@ -4978,6 +5161,7 @@
4978
5161
  * @param {string} pipelineString the candidate for a pipeline string
4979
5162
  * @returns {PipelineString} the same string as input, but validated as valid
4980
5163
  * @throws {ParseError} if the string is not a valid pipeline string
5164
+ *
4981
5165
  * @public exported from `@promptbook/core`
4982
5166
  */
4983
5167
  function validatePipelineString(pipelineString) {
@@ -4996,19 +5180,18 @@
4996
5180
  // <- TODO: Implement the validation + add tests when the pipeline logic considered as invalid
4997
5181
  return pipelineString;
4998
5182
  }
4999
- /**
5000
- * TODO: [🧠][🈴] Where is the best location for this file
5001
- */
5183
+ // TODO: [🧠][🈴] Where is the best location for this file
5002
5184
 
5003
5185
  /**
5004
5186
  * Removes Markdown (or HTML) comments
5005
5187
  *
5006
5188
  * @param {string} content - The string to remove comments from.
5007
5189
  * @returns {string} The input string with all comments removed.
5190
+ *
5008
5191
  * @public exported from `@promptbook/markdown-utils`
5009
5192
  */
5010
5193
  function removeMarkdownComments(content) {
5011
- return spaceTrim$1.spaceTrim(content.replace(/<!--(.*?)-->/gs, ''));
5194
+ return spacetrim.spaceTrim(content.replace(/<!--(.*?)-->/gs, ''));
5012
5195
  }
5013
5196
 
5014
5197
  /**
@@ -5019,7 +5202,7 @@
5019
5202
  */
5020
5203
  function isFlatPipeline(pipelineString) {
5021
5204
  pipelineString = removeMarkdownComments(pipelineString);
5022
- pipelineString = spaceTrim__default["default"](pipelineString);
5205
+ pipelineString = spacetrim.spaceTrim(pipelineString);
5023
5206
  const isMarkdownBeginningWithHeadline = pipelineString.startsWith('# ');
5024
5207
  //const isLastLineReturnStatement = pipelineString.split(/\r?\n/).pop()!.split('`').join('').startsWith('->');
5025
5208
  const isBacktickBlockUsed = pipelineString.includes('```');
@@ -5045,7 +5228,7 @@
5045
5228
  if (!isFlatPipeline(pipelineString)) {
5046
5229
  return pipelineString;
5047
5230
  }
5048
- pipelineString = spaceTrim__default["default"](pipelineString);
5231
+ pipelineString = spacetrim.spaceTrim(pipelineString);
5049
5232
  const pipelineStringLines = pipelineString.split(/\r?\n/);
5050
5233
  const potentialReturnStatement = pipelineStringLines.pop();
5051
5234
  let returnStatement;
@@ -5058,19 +5241,19 @@
5058
5241
  returnStatement = `-> {${DEFAULT_BOOK_OUTPUT_PARAMETER_NAME}}`;
5059
5242
  pipelineStringLines.push(potentialReturnStatement);
5060
5243
  }
5061
- const prompt = spaceTrim__default["default"](pipelineStringLines.join('\n'));
5244
+ const prompt = spacetrim.spaceTrim(pipelineStringLines.join('\n'));
5062
5245
  let quotedPrompt;
5063
5246
  if (prompt.split(/\r?\n/).length <= 1) {
5064
5247
  quotedPrompt = `> ${prompt}`;
5065
5248
  }
5066
5249
  else {
5067
- quotedPrompt = spaceTrim__default["default"]((block) => `
5250
+ quotedPrompt = spacetrim.spaceTrim((block) => `
5068
5251
  \`\`\`
5069
5252
  ${block(prompt.split('`').join('\\`'))}
5070
5253
  \`\`\`
5071
5254
  `);
5072
5255
  }
5073
- pipelineString = validatePipelineString(spaceTrim__default["default"]((block) => `
5256
+ pipelineString = validatePipelineString(spacetrim.spaceTrim((block) => `
5074
5257
  # ${DEFAULT_BOOK_TITLE}
5075
5258
 
5076
5259
  ## Prompt
@@ -5082,9 +5265,7 @@
5082
5265
  // <- TODO: Maybe use book` notation
5083
5266
  return padBook(pipelineString);
5084
5267
  }
5085
- /**
5086
- * TODO: Unit test
5087
- */
5268
+ // TODO: Unit test
5088
5269
 
5089
5270
  /**
5090
5271
  * Adds a new command to a pipeline string in the correct format.
@@ -5138,12 +5319,10 @@
5138
5319
  );
5139
5320
  */
5140
5321
  }
5141
- return spaceTrim__default["default"](newLines.join('\n'));
5322
+ return spacetrim.spaceTrim(newLines.join('\n'));
5142
5323
  }
5143
- /**
5144
- * TODO: [🧠] What is the better solution - `- xxx`, - `- xxx` or preserve (see also next TODO)
5145
- * TODO: When existing commands 1) as 2) number 3) list, add 4) new command as next number
5146
- */
5324
+ // TODO: [🧠] What is the better solution - `- xxx`, - `- xxx` or preserve (see also next TODO)
5325
+ // TODO: When existing commands 1) as 2) number 3) list, add 4) new command as next number
5147
5326
 
5148
5327
  /**
5149
5328
  * Function `removePipelineCommand` will remove one command from pipeline string
@@ -5180,7 +5359,7 @@
5180
5359
  }
5181
5360
  newLines.push(line);
5182
5361
  }
5183
- const newPipeline = spaceTrim__default["default"](newLines.join('\n'));
5362
+ const newPipeline = spacetrim.spaceTrim(newLines.join('\n'));
5184
5363
  return newPipeline;
5185
5364
  }
5186
5365
 
@@ -5202,6 +5381,7 @@
5202
5381
  * In other words, it will find all parameters that are not used in the task itseld and all its dependencies
5203
5382
  *
5204
5383
  * @throws {PipelineLogicError} If the new parameter name is already used in the pipeline
5384
+ *
5205
5385
  * @public exported from `@promptbook/editable`
5206
5386
  */
5207
5387
  function renamePipelineParameter(options) {
@@ -5235,9 +5415,7 @@
5235
5415
  }
5236
5416
  return renamedPipeline;
5237
5417
  }
5238
- /**
5239
- * TODO: Also variant for `edit-pipeline-string`
5240
- */
5418
+ // TODO: Also variant for `edit-pipeline-string`
5241
5419
 
5242
5420
  // <- TODO: Auto convert to type `import { ... } from 'type-fest';`
5243
5421
  /**
@@ -5256,7 +5434,6 @@
5256
5434
  * - `Symbol` objects are not serializable
5257
5435
  * - And much more...
5258
5436
  *
5259
- *
5260
5437
  * @public exported from `@promptbook/utils`
5261
5438
  */
5262
5439
  function isSerializableAsJson(value) {
@@ -5268,10 +5445,8 @@
5268
5445
  return false;
5269
5446
  }
5270
5447
  }
5271
- /**
5272
- * TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
5273
- * TODO: [🧠][💺] Can be done this on type-level?
5274
- */
5448
+ // TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
5449
+ // TODO: [🧠][💺] Can be done this on type-level?
5275
5450
 
5276
5451
  /**
5277
5452
  * Stringify the PipelineJson with proper formatting
@@ -5283,7 +5458,7 @@
5283
5458
  */
5284
5459
  function stringifyPipelineJson(pipeline) {
5285
5460
  if (!isSerializableAsJson(pipeline)) {
5286
- throw new UnexpectedError(spaceTrim__default["default"](`
5461
+ throw new UnexpectedError(spacetrim.spaceTrim(`
5287
5462
  Cannot stringify the pipeline, because it is not serializable as JSON
5288
5463
 
5289
5464
  There can be multiple reasons:
@@ -5299,12 +5474,10 @@
5299
5474
  pipelineJsonStringified += '\n';
5300
5475
  return pipelineJsonStringified;
5301
5476
  }
5302
- /**
5303
- * TODO: [🐝] Not Working properly @see https://promptbook.studio/examples/mixed-knowledge.book
5304
- * TODO: [🧠][0] Maybe rename to `stringifyPipelineJson`, `stringifyIndexedJson`,...
5305
- * TODO: [🧠] Maybe more elegant solution than replacing via regex
5306
- * TODO: [🍙] Make some standard order of json properties
5307
- */
5477
+ // TODO: [🐝] Not Working properly @see https://promptbook.studio/examples/mixed-knowledge.book
5478
+ // TODO: [🧠][0] Maybe rename to `stringifyPipelineJson`, `stringifyIndexedJson`,...
5479
+ // TODO: [🧠] Maybe more elegant solution than replacing via regex
5480
+ // TODO: [🍙] Make some standard order of json properties
5308
5481
 
5309
5482
  exports.BOOK_LANGUAGE_VERSION = BOOK_LANGUAGE_VERSION;
5310
5483
  exports.COMMANDS = COMMANDS;