@promptbook/utils 0.111.0-7 → 0.112.0-101

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 (2584) hide show
  1. package/README.md +235 -51
  2. package/esm/index.es.js +606 -413
  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 +20 -0
  6. package/esm/src/_packages/core.index.d.ts +42 -0
  7. package/esm/src/_packages/markdown-utils.index.d.ts +5 -5
  8. package/esm/src/_packages/types.index.d.ts +274 -228
  9. package/esm/src/_packages/utils.index.d.ts +2 -0
  10. package/esm/src/_packages/wizard.index.d.ts +10 -0
  11. package/esm/src/avatars/Avatar.d.ts +7 -0
  12. package/esm/src/avatars/AvatarOrImage.d.ts +50 -0
  13. package/esm/src/avatars/avatarAnimationScheduler.d.ts +16 -0
  14. package/esm/src/avatars/avatarInteractionUtils.d.ts +81 -0
  15. package/esm/src/avatars/avatarInteractionUtils.test.d.ts +1 -0
  16. package/esm/src/avatars/avatarPointerTracking.d.ts +33 -0
  17. package/esm/src/avatars/avatarRenderingUtils.d.ts +118 -0
  18. package/esm/src/avatars/avatarRenderingUtils.test.d.ts +1 -0
  19. package/esm/src/avatars/avatarVisibilityTracking.d.ts +17 -0
  20. package/esm/src/avatars/index.d.ts +7 -0
  21. package/esm/src/avatars/renderAvatarVisual.d.ts +36 -0
  22. package/esm/src/avatars/types/AvatarDefinition.d.ts +21 -0
  23. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +137 -0
  24. package/esm/src/avatars/visuals/asciiOctopusAvatarVisual.d.ts +7 -0
  25. package/esm/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  26. package/esm/src/avatars/visuals/avatarVisualRegistry.d.ts +28 -0
  27. package/esm/src/avatars/visuals/avatarVisualRegistry.test.d.ts +1 -0
  28. package/esm/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
  29. package/esm/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  30. package/esm/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  31. package/esm/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  32. package/esm/src/avatars/visuals/octopus2AvatarVisual.d.ts +7 -0
  33. package/esm/src/avatars/visuals/octopus3AvatarVisual.d.ts +79 -0
  34. package/esm/src/avatars/visuals/octopus3AvatarVisual.test.d.ts +1 -0
  35. package/esm/src/avatars/visuals/octopus3d2AvatarVisual.d.ts +7 -0
  36. package/esm/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  37. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +37 -0
  38. package/esm/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  39. package/esm/src/avatars/visuals/octopusAvatarVisualShared.d.ts +175 -0
  40. package/esm/src/avatars/visuals/octopusAvatarVisualShared.test.d.ts +1 -0
  41. package/esm/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  42. package/esm/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  43. package/esm/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  44. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +16 -7
  45. package/esm/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -6
  46. package/esm/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  47. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +6 -2
  48. package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  49. package/esm/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +34 -0
  50. package/esm/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  51. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +13 -3
  52. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts +1 -0
  53. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
  54. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  55. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  56. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  57. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  58. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  59. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +9 -3
  60. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
  61. package/esm/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  62. package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +13 -0
  63. package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +13 -0
  64. package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
  65. package/esm/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  66. package/esm/src/book-2.0/agent-source/padBook.d.ts +1 -4
  67. package/esm/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  68. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  69. package/esm/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  70. package/esm/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  71. package/esm/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  72. package/esm/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  73. package/esm/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  74. package/esm/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  75. package/esm/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  76. package/esm/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
  77. package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +39 -0
  78. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
  79. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
  80. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  81. package/esm/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
  82. package/esm/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -4
  83. package/esm/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +115 -0
  84. package/esm/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
  85. package/esm/src/book-2.0/agent-source/string_book.d.ts +1 -0
  86. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  87. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  88. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  89. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  90. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  91. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  92. package/esm/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -4
  93. package/esm/src/book-3.0/Book.d.ts +39 -0
  94. package/esm/src/book-3.0/Book.test.d.ts +1 -0
  95. package/esm/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -4
  96. package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -4
  97. package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
  98. package/esm/src/book-components/BookEditor/BookEditor.d.ts +28 -4
  99. package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +6 -0
  100. package/esm/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
  101. package/esm/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
  102. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
  103. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
  104. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
  105. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +30 -0
  106. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
  107. package/esm/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
  108. package/esm/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
  109. package/esm/src/book-components/BookEditor/useBookEditorMonacoInteractions.d.ts +40 -0
  110. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +43 -1
  111. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
  112. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +34 -0
  113. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +5 -1
  114. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
  115. package/esm/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
  116. package/esm/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
  117. package/esm/src/book-components/Chat/AgentChip/AgentChip.d.ts +7 -6
  118. package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +15 -0
  119. package/esm/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
  120. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +6 -10
  121. package/esm/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
  122. package/esm/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +38 -0
  123. package/esm/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  124. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +41 -17
  125. package/esm/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  126. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +28 -1
  127. package/esm/src/book-components/Chat/Chat/ChatMessageMap.d.ts +0 -1
  128. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +36 -0
  129. package/esm/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  130. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +515 -11
  131. package/esm/src/book-components/Chat/Chat/ChatRatingModal.d.ts +10 -1
  132. package/esm/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
  133. package/esm/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
  134. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +28 -0
  135. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  136. package/esm/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +8 -5
  137. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +47 -0
  138. package/esm/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +34 -0
  139. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +31 -0
  140. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.test.d.ts +2 -0
  141. package/esm/src/book-components/Chat/Chat/chatCssClassNames.d.ts +42 -0
  142. package/esm/src/book-components/Chat/Chat/constants.d.ts +4 -3
  143. package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  144. package/esm/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  145. package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
  146. package/esm/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
  147. package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
  148. package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +55 -0
  149. package/esm/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +27 -0
  150. package/esm/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +32 -0
  151. package/esm/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +33 -0
  152. package/esm/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +32 -0
  153. package/esm/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +32 -0
  154. package/esm/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +39 -0
  155. package/esm/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +39 -0
  156. package/esm/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +53 -0
  157. package/esm/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +34 -0
  158. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +50 -0
  159. package/esm/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +30 -0
  160. package/esm/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +27 -0
  161. package/esm/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  162. package/esm/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
  163. package/esm/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +10 -0
  164. package/esm/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  165. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  166. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +53 -0
  167. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
  168. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
  169. package/esm/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  170. package/esm/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  171. package/esm/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  172. package/esm/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  173. package/esm/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  174. package/esm/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  175. package/esm/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +7 -1
  176. package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
  177. package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
  178. package/esm/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +17 -1
  179. package/esm/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
  180. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  181. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  182. package/esm/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  183. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +6 -5
  184. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  185. package/esm/src/book-components/Chat/MockedChat/MockedChat.d.ts +21 -1
  186. package/esm/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
  187. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +9 -4
  188. package/esm/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
  189. package/esm/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
  190. package/esm/src/book-components/Chat/effects/index.d.ts +0 -4
  191. package/esm/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
  192. package/esm/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +6 -3
  193. package/esm/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
  194. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +20 -0
  195. package/esm/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  196. package/esm/src/book-components/Chat/hooks/useChatRatings.d.ts +10 -2
  197. package/esm/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
  198. package/esm/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  199. package/esm/src/book-components/Chat/save/_common/ChatSaveFormatHandler.d.ts +35 -0
  200. package/esm/src/book-components/Chat/save/_common/chatExportRendering.d.ts +75 -0
  201. package/esm/src/book-components/Chat/save/_common/createChatExportFilename.d.ts +11 -0
  202. package/esm/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  203. package/esm/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
  204. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +13 -4
  205. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  206. package/esm/src/book-components/Chat/save/index.d.ts +5 -8
  207. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +5 -3
  208. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  209. package/esm/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +5 -3
  210. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +3 -7
  211. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  212. package/esm/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  213. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +190 -7
  214. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +13 -4
  215. package/esm/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
  216. package/esm/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
  217. package/esm/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
  218. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +5 -4
  219. package/esm/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +2 -1
  220. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +54 -0
  221. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  222. package/esm/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
  223. package/esm/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
  224. package/esm/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  225. package/esm/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +12 -0
  226. package/esm/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  227. package/esm/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  228. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +28 -3
  229. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  230. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  231. package/esm/src/book-components/Chat/utils/loadAgentProfile.d.ts +14 -1
  232. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
  233. package/esm/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
  234. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
  235. package/esm/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
  236. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  237. package/esm/src/book-components/Chat/utils/renderMarkdown.test.d.ts +1 -0
  238. package/esm/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
  239. package/esm/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
  240. package/esm/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  241. package/esm/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
  242. package/esm/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
  243. package/esm/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +43 -1
  244. package/esm/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
  245. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +27 -0
  246. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
  247. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +143 -0
  248. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  249. package/esm/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
  250. package/esm/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
  251. package/esm/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +20 -0
  252. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +10 -0
  253. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +10 -0
  254. package/esm/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +11 -0
  255. package/esm/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +11 -0
  256. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +11 -0
  257. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +11 -0
  258. package/esm/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +9 -0
  259. package/esm/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
  260. package/esm/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
  261. package/esm/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
  262. package/esm/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
  263. package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +18 -6
  264. package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +6 -5
  265. package/esm/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
  266. package/esm/src/book-components/Qr/GenericQrCode.d.ts +5 -0
  267. package/esm/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
  268. package/esm/src/book-components/Qr/useQrCode.d.ts +5 -2
  269. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
  270. package/esm/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
  271. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
  272. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -3
  273. package/esm/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
  274. package/esm/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
  275. package/esm/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  276. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -0
  277. package/esm/src/book-components/icons/ArrowIcon.d.ts +30 -5
  278. package/esm/src/book-components/icons/AttachmentIcon.d.ts +4 -0
  279. package/esm/src/book-components/icons/CameraIcon.d.ts +4 -0
  280. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -0
  281. package/esm/src/book-components/icons/EmailIcon.d.ts +1 -0
  282. package/esm/src/book-components/icons/MenuIcon.d.ts +1 -3
  283. package/esm/src/book-components/icons/SaveIcon.d.ts +1 -0
  284. package/esm/src/book-components/icons/SendIcon.d.ts +0 -3
  285. package/esm/src/book-components/icons/SolidArrowButton.d.ts +28 -0
  286. package/esm/src/book-components/icons/StopIcon.d.ts +8 -0
  287. package/esm/src/book-components/icons/TeacherIcon.d.ts +1 -0
  288. package/esm/src/cli/$runPromptbookCli.d.ts +6 -0
  289. package/esm/src/cli/cli-commands/_boilerplate.d.ts +0 -4
  290. package/esm/src/cli/cli-commands/about.d.ts +0 -6
  291. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +54 -0
  292. package/esm/src/cli/cli-commands/agent-folder/agentRunCliOptions.d.ts +25 -0
  293. package/esm/src/cli/cli-commands/agent-folder/init.d.ts +10 -0
  294. package/esm/src/cli/cli-commands/agent-folder/initializeAgentProjectConfiguration.d.ts +21 -0
  295. package/esm/src/cli/cli-commands/agent-folder/initializeAgentRunnerCommand.d.ts +24 -0
  296. package/esm/src/cli/cli-commands/agent-folder/printAgentInitializationSummary.d.ts +7 -0
  297. package/esm/src/cli/cli-commands/agent-folder/run.d.ts +10 -0
  298. package/esm/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
  299. package/esm/src/cli/cli-commands/agent-folder/runMultiple.d.ts +10 -0
  300. package/esm/src/cli/cli-commands/agent-folder/tick.d.ts +10 -0
  301. package/esm/src/cli/cli-commands/agent-folder.d.ts +16 -0
  302. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +87 -0
  303. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.test.d.ts +1 -0
  304. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +7 -0
  305. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +7 -0
  306. package/esm/src/cli/cli-commands/agents-server/init.d.ts +9 -0
  307. package/esm/src/cli/cli-commands/agents-server/init.test.d.ts +1 -0
  308. package/esm/src/cli/cli-commands/agents-server/initializeAgentsServerProjectConfiguration.d.ts +17 -0
  309. package/esm/src/cli/cli-commands/agents-server/printAgentsServerInitializationSummary.d.ts +7 -0
  310. package/esm/src/cli/cli-commands/agents-server/run.d.ts +14 -0
  311. package/esm/src/cli/cli-commands/agents-server/run.test.d.ts +1 -0
  312. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +29 -0
  313. package/esm/src/cli/cli-commands/agents-server.d.ts +8 -0
  314. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
  315. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
  316. package/esm/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
  317. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +137 -0
  318. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -0
  319. package/esm/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
  320. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
  321. package/esm/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
  322. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
  323. package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
  324. package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
  325. package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +10 -0
  326. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +10 -0
  327. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
  328. package/esm/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
  329. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +20 -0
  330. package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  331. package/esm/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
  332. package/esm/src/cli/cli-commands/coder/getTypescriptModule.d.ts +19 -0
  333. package/esm/src/cli/cli-commands/coder/getTypescriptModule.test.d.ts +1 -0
  334. package/esm/src/cli/cli-commands/coder/init.d.ts +13 -0
  335. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
  336. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
  337. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.test.d.ts +1 -0
  338. package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
  339. package/esm/src/cli/cli-commands/coder/run.d.ts +10 -0
  340. package/esm/src/cli/cli-commands/coder/run.test.d.ts +1 -0
  341. package/esm/src/cli/cli-commands/coder/verify.d.ts +10 -0
  342. package/esm/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
  343. package/esm/src/cli/cli-commands/coder.d.ts +18 -0
  344. package/esm/src/cli/cli-commands/common/handleActionErrors.d.ts +13 -4
  345. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +65 -0
  346. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +130 -0
  347. package/esm/src/cli/cli-commands/hello.d.ts +0 -5
  348. package/esm/src/cli/cli-commands/list-models.d.ts +0 -4
  349. package/esm/src/cli/cli-commands/list-scrapers.d.ts +0 -4
  350. package/esm/src/cli/cli-commands/login.d.ts +0 -5
  351. package/esm/src/cli/cli-commands/make.d.ts +1 -1
  352. package/esm/src/cli/cli-commands/prettify.d.ts +0 -6
  353. package/esm/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  354. package/esm/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  355. package/esm/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  356. package/esm/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  357. package/esm/src/cli/cli-commands/run.d.ts +1 -9
  358. package/esm/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
  359. package/esm/src/cli/cli-commands/start-agents-server.d.ts +0 -4
  360. package/esm/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
  361. package/esm/src/cli/cli-commands/test-command.d.ts +0 -7
  362. package/esm/src/cli/common/$deprecateCliCommand.d.ts +8 -0
  363. package/esm/src/cli/common/$deprecateCliCommand.test.d.ts +1 -0
  364. package/esm/src/cli/common/$provideLlmToolsForCli.d.ts +6 -1
  365. package/esm/src/cli/main.d.ts +2 -6
  366. package/esm/src/cli/other/install.test.d.ts +1 -0
  367. package/esm/src/cli/other/vpsInstall.test.d.ts +1 -0
  368. package/esm/src/cli/promptbookCli.d.ts +0 -7
  369. package/esm/src/cli/test/ptbk.d.ts +1 -1
  370. package/esm/src/collection/agent-collection/AgentCollection.d.ts +0 -3
  371. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
  372. package/esm/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
  373. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +51 -23
  374. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
  375. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
  376. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
  377. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
  378. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
  379. package/esm/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  380. package/esm/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +3 -2
  381. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +11 -7
  382. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
  383. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
  384. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +3 -4
  385. package/esm/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +2 -1
  386. package/esm/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
  387. package/esm/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +2 -1
  388. package/esm/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
  389. package/esm/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
  390. package/esm/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
  391. package/esm/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
  392. package/esm/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  393. package/esm/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
  394. package/esm/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
  395. package/esm/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
  396. package/esm/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
  397. package/esm/src/commands/JOKER/JokerCommand.d.ts +2 -1
  398. package/esm/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
  399. package/esm/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +2 -1
  400. package/esm/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
  401. package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -5
  402. package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
  403. package/esm/src/commands/MODEL/ModelCommand.d.ts +1 -0
  404. package/esm/src/commands/MODEL/modelCommandParser.d.ts +1 -0
  405. package/esm/src/commands/PARAMETER/ParameterCommand.d.ts +3 -2
  406. package/esm/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
  407. package/esm/src/commands/PERSONA/PersonaCommand.d.ts +3 -2
  408. package/esm/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
  409. package/esm/src/commands/POSTPROCESS/PostprocessCommand.d.ts +2 -1
  410. package/esm/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
  411. package/esm/src/commands/SECTION/SectionCommand.d.ts +1 -0
  412. package/esm/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
  413. package/esm/src/commands/URL/UrlCommand.d.ts +1 -0
  414. package/esm/src/commands/URL/urlCommandParser.d.ts +1 -0
  415. package/esm/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
  416. package/esm/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
  417. package/esm/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
  418. package/esm/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
  419. package/esm/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
  420. package/esm/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
  421. package/esm/src/commands/_common/parseCommand.d.ts +1 -1
  422. package/esm/src/commands/_common/stringifyCommand.d.ts +2 -2
  423. package/esm/src/commands/_common/types/CommandParser.d.ts +2 -5
  424. package/esm/src/commands/index.d.ts +0 -3
  425. package/esm/src/commitments/ACTION/ACTION.d.ts +8 -5
  426. package/esm/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  427. package/esm/src/commitments/CLOSED/CLOSED.d.ts +0 -3
  428. package/esm/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
  429. package/esm/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
  430. package/esm/src/commitments/DELETE/DELETE.d.ts +7 -6
  431. package/esm/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  432. package/esm/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
  433. package/esm/src/commitments/FORMAT/FORMAT.d.ts +10 -7
  434. package/esm/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  435. package/esm/src/commitments/FROM/FROM.d.ts +0 -3
  436. package/esm/src/commitments/GOAL/GOAL.d.ts +4 -3
  437. package/esm/src/commitments/IMPORT/IMPORT.d.ts +0 -3
  438. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -3
  439. package/esm/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
  440. package/esm/src/commitments/MEMORY/MEMORY.d.ts +4 -62
  441. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
  442. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
  443. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
  444. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
  445. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
  446. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
  447. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  448. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
  449. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
  450. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
  451. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
  452. package/esm/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
  453. package/esm/src/commitments/MESSAGE/MESSAGE.d.ts +2 -5
  454. package/esm/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
  455. package/esm/src/commitments/META/META.d.ts +6 -3
  456. package/esm/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
  457. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  458. package/esm/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
  459. package/esm/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
  460. package/esm/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +30 -0
  461. package/esm/src/commitments/META_FONT/META_FONT.d.ts +0 -3
  462. package/esm/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
  463. package/esm/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +30 -0
  464. package/esm/src/commitments/META_LINK/META_LINK.d.ts +0 -3
  465. package/esm/src/commitments/META_VOICE/META_VOICE.d.ts +36 -0
  466. package/esm/src/commitments/MODEL/MODEL.d.ts +4 -3
  467. package/esm/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  468. package/esm/src/commitments/OPEN/OPEN.d.ts +0 -3
  469. package/esm/src/commitments/PERSONA/PERSONA.d.ts +7 -3
  470. package/esm/src/commitments/RULE/RULE.d.ts +4 -3
  471. package/esm/src/commitments/SAMPLE/SAMPLE.d.ts +13 -16
  472. package/esm/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
  473. package/esm/src/commitments/STYLE/STYLE.d.ts +9 -2
  474. package/esm/src/commitments/TEAM/TEAM.d.ts +6 -5
  475. package/esm/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -7
  476. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +32 -0
  477. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +6 -8
  478. package/esm/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -7
  479. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
  480. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
  481. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +39 -0
  482. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  483. package/esm/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  484. package/esm/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  485. package/esm/src/commitments/USE_CALENDAR/calendarReference.d.ts +65 -0
  486. package/esm/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  487. package/esm/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  488. package/esm/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  489. package/esm/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  490. package/esm/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  491. package/esm/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  492. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +47 -0
  493. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts +1 -0
  494. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +6 -16
  495. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
  496. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
  497. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
  498. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  499. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
  500. package/esm/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
  501. package/esm/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
  502. package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +46 -0
  503. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +36 -0
  504. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
  505. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +39 -0
  506. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
  507. package/esm/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
  508. package/esm/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
  509. package/esm/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
  510. package/esm/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
  511. package/esm/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
  512. package/esm/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
  513. package/esm/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
  514. package/esm/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
  515. package/esm/src/commitments/USE_PROJECT/projectReference.d.ts +49 -0
  516. package/esm/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
  517. package/esm/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  518. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -5
  519. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +38 -0
  520. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
  521. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
  522. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
  523. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +2 -5
  524. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +11 -0
  525. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +212 -0
  526. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +38 -0
  527. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
  528. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
  529. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
  530. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
  531. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  532. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +78 -0
  533. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
  534. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
  535. package/esm/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -5
  536. package/esm/src/commitments/WALLET/WALLET.d.ts +21 -0
  537. package/esm/src/commitments/WALLET/WALLET.test.d.ts +1 -0
  538. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
  539. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
  540. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
  541. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
  542. package/esm/src/commitments/WALLET/createWalletTools.d.ts +7 -0
  543. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
  544. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
  545. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
  546. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
  547. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
  548. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
  549. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +26 -0
  550. package/esm/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +26 -0
  551. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +52 -2
  552. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +46 -3
  553. package/esm/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
  554. package/esm/src/commitments/_common/commitmentToolFunctions.d.ts +4 -5
  555. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +12 -0
  556. package/esm/src/commitments/_common/createWritingCommitmentSections.d.ts +18 -0
  557. package/esm/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
  558. package/esm/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  559. package/esm/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
  560. package/esm/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -5
  561. package/esm/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  562. package/esm/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
  563. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  564. package/esm/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  565. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  566. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  567. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  568. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  569. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
  570. package/esm/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
  571. package/esm/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  572. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  573. package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +19 -0
  574. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +109 -2
  575. package/esm/src/commitments/index.d.ts +16 -6
  576. package/esm/src/commitments/index.test.d.ts +1 -0
  577. package/esm/src/config.d.ts +13 -6
  578. package/esm/src/config.test.d.ts +0 -3
  579. package/esm/src/constants/streaming.d.ts +0 -3
  580. package/esm/src/constants.d.ts +0 -3
  581. package/esm/src/conversion/archive/loadArchive.d.ts +1 -4
  582. package/esm/src/conversion/archive/saveArchive.d.ts +1 -6
  583. package/esm/src/conversion/compilePipeline.d.ts +2 -7
  584. package/esm/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
  585. package/esm/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  586. package/esm/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  587. package/esm/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  588. package/esm/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  589. package/esm/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  590. package/esm/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  591. package/esm/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  592. package/esm/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  593. package/esm/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  594. package/esm/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  595. package/esm/src/conversion/parsePipeline.d.ts +1 -11
  596. package/esm/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  597. package/esm/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  598. package/esm/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  599. package/esm/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  600. package/esm/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  601. package/esm/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  602. package/esm/src/conversion/pipelineJsonToString.d.ts +1 -7
  603. package/esm/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  604. package/esm/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
  605. package/esm/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -8
  606. package/esm/src/conversion/utils/extractParameterNamesFromTask.d.ts +2 -4
  607. package/esm/src/conversion/validation/{_importPipeline.d.ts → _importPipeline.test.d.ts} +6 -4
  608. package/esm/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
  609. package/esm/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
  610. package/esm/src/conversion/validation/validatePipeline.d.ts +3 -9
  611. package/esm/src/conversion/validation/validatePipeline.test.d.ts +0 -3
  612. package/esm/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -4
  613. package/esm/src/errors/0-BoilerplateError.d.ts +0 -3
  614. package/esm/src/errors/0-index.d.ts +3 -3
  615. package/esm/src/errors/ConflictError.d.ts +9 -0
  616. package/esm/src/errors/DatabaseError.d.ts +0 -3
  617. package/esm/src/errors/ExpectError.d.ts +2 -1
  618. package/esm/src/errors/ParseError.d.ts +0 -3
  619. package/esm/src/errors/PipelineExecutionError.d.ts +1 -4
  620. package/esm/src/errors/utils/ErrorJson.d.ts +1 -1
  621. package/esm/src/executables/$provideExecutablesForNode.d.ts +0 -5
  622. package/esm/src/executables/apps/locateLibreoffice.d.ts +1 -5
  623. package/esm/src/executables/apps/locatePandoc.d.ts +1 -5
  624. package/esm/src/executables/apps/locateVscode.d.ts +7 -0
  625. package/esm/src/executables/apps/locateVscode.test.d.ts +1 -0
  626. package/esm/src/executables/browsers/locateBrowser.d.ts +9 -0
  627. package/esm/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  628. package/esm/src/executables/browsers/locateChrome.d.ts +7 -0
  629. package/esm/src/executables/browsers/locateChrome.test.d.ts +1 -0
  630. package/esm/src/executables/browsers/locateDefaultSystemBrowser.d.ts +9 -0
  631. package/esm/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  632. package/esm/src/executables/browsers/locateEdge.d.ts +7 -0
  633. package/esm/src/executables/browsers/locateEdge.test.d.ts +1 -0
  634. package/esm/src/executables/browsers/locateFirefox.d.ts +7 -0
  635. package/esm/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  636. package/esm/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  637. package/esm/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  638. package/esm/src/executables/browsers/locateSafari.d.ts +7 -0
  639. package/esm/src/executables/locateApp.d.ts +1 -5
  640. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +1 -5
  641. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +1 -5
  642. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -5
  643. package/esm/src/execution/AbstractTaskResult.d.ts +1 -5
  644. package/esm/src/execution/AvailableModel.d.ts +5 -5
  645. package/esm/src/execution/CommonToolsOptions.d.ts +1 -6
  646. package/esm/src/execution/Executables.d.ts +1 -1
  647. package/esm/src/execution/ExecutionTask.d.ts +7 -6
  648. package/esm/src/execution/FilesystemTools.d.ts +0 -3
  649. package/esm/src/execution/LlmExecutionTools.d.ts +17 -11
  650. package/esm/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
  651. package/esm/src/execution/PipelineExecutor.d.ts +1 -4
  652. package/esm/src/execution/PipelineExecutorResult.d.ts +2 -5
  653. package/esm/src/execution/PromptResult.d.ts +4 -10
  654. package/esm/src/execution/PromptbookFetch.d.ts +1 -1
  655. package/esm/src/execution/PromptbookFetch.test-type.d.ts +0 -4
  656. package/esm/src/execution/ScriptExecutionTools.d.ts +2 -6
  657. package/esm/src/execution/UncertainNumber.d.ts +2 -2
  658. package/esm/src/execution/Usage.d.ts +4 -3
  659. package/esm/src/execution/UserInterfaceTools.d.ts +4 -2
  660. package/esm/src/execution/assertsTaskSuccessful.d.ts +1 -3
  661. package/esm/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
  662. package/esm/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  663. package/esm/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -4
  664. package/esm/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
  665. package/esm/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +3 -4
  666. package/esm/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  667. package/esm/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  668. package/esm/src/execution/createPipelineExecutor/getContextForTask.d.ts +3 -2
  669. package/esm/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  670. package/esm/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -5
  671. package/esm/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  672. package/esm/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  673. package/esm/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
  674. package/esm/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  675. package/esm/src/execution/execution-report/ExecutionReportJson.d.ts +4 -3
  676. package/esm/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
  677. package/esm/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  678. package/esm/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
  679. package/esm/src/execution/resolveTaskTldr.d.ts +32 -0
  680. package/esm/src/execution/resolveTaskTldr.test.d.ts +1 -0
  681. package/esm/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
  682. package/esm/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
  683. package/esm/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
  684. package/esm/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
  685. package/esm/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -5
  686. package/esm/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -6
  687. package/esm/src/execution/utils/checkExpectations.d.ts +2 -5
  688. package/esm/src/execution/utils/forEachAsync.d.ts +5 -1
  689. package/esm/src/execution/utils/usage-constants.d.ts +0 -3
  690. package/esm/src/execution/utils/usageToHuman.d.ts +2 -9
  691. package/esm/src/execution/utils/validatePromptResult.d.ts +2 -1
  692. package/esm/src/file-security-checkers/FileSecurityCheckResult.d.ts +33 -0
  693. package/esm/src/file-security-checkers/FileSecurityChecker.d.ts +36 -0
  694. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +37 -0
  695. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
  696. package/esm/src/formats/_common/FormatParser.d.ts +4 -11
  697. package/esm/src/formats/_common/FormatSubvalueParser.d.ts +2 -6
  698. package/esm/src/formats/csv/CsvFormatParser.d.ts +2 -8
  699. package/esm/src/formats/csv/utils/csvParse.d.ts +1 -1
  700. package/esm/src/formats/index.d.ts +0 -3
  701. package/esm/src/formats/json/JsonFormatParser.d.ts +0 -11
  702. package/esm/src/formats/text/TextFormatParser.d.ts +0 -9
  703. package/esm/src/formats/xml/XmlFormatParser.d.ts +0 -11
  704. package/esm/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +3 -6
  705. package/esm/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
  706. package/esm/src/formfactors/index.d.ts +2 -5
  707. package/esm/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  708. package/esm/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  709. package/esm/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
  710. package/esm/src/high-level-abstractions/index.d.ts +0 -4
  711. package/esm/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
  712. package/esm/src/import-plugins/FileImportPlugin.d.ts +1 -1
  713. package/esm/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
  714. package/esm/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
  715. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -4
  716. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  717. package/esm/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
  718. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +6 -9
  719. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -18
  720. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -5
  721. package/esm/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -6
  722. package/esm/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -7
  723. package/esm/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
  724. package/esm/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +4 -1
  725. package/esm/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -4
  726. package/esm/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -5
  727. package/esm/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
  728. package/esm/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
  729. package/esm/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
  730. package/esm/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
  731. package/esm/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
  732. package/esm/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +3 -1
  733. package/esm/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
  734. package/esm/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +5 -8
  735. package/esm/src/llm-providers/_multiple/playground/playground.d.ts +0 -3
  736. package/esm/src/llm-providers/agent/Agent.d.ts +9 -6
  737. package/esm/src/llm-providers/agent/Agent.test.d.ts +1 -0
  738. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +41 -28
  739. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  740. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  741. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  742. package/esm/src/llm-providers/agent/AgentOptions.d.ts +8 -0
  743. package/esm/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +9 -0
  744. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +7 -6
  745. package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +5 -1
  746. package/esm/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  747. package/esm/src/llm-providers/agent/playground/playground.d.ts +0 -6
  748. package/esm/src/llm-providers/agent/register-configuration.d.ts +0 -5
  749. package/esm/src/llm-providers/agent/register-constructor.d.ts +0 -4
  750. package/esm/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
  751. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -11
  752. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
  753. package/esm/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +3 -10
  754. package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +4 -4
  755. package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
  756. package/esm/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
  757. package/esm/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
  758. package/esm/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
  759. package/esm/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
  760. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -7
  761. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +3 -3
  762. package/esm/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
  763. package/esm/src/llm-providers/azure-openai/playground/playground.d.ts +0 -4
  764. package/esm/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
  765. package/esm/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
  766. package/esm/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
  767. package/esm/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
  768. package/esm/src/llm-providers/deepseek/deepseek-models.d.ts +3 -8
  769. package/esm/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
  770. package/esm/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
  771. package/esm/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
  772. package/esm/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
  773. package/esm/src/llm-providers/google/google-models.d.ts +3 -8
  774. package/esm/src/llm-providers/google/register-configuration.d.ts +0 -3
  775. package/esm/src/llm-providers/google/register-constructor.d.ts +0 -4
  776. package/esm/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +2 -6
  777. package/esm/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
  778. package/esm/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -4
  779. package/esm/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
  780. package/esm/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
  781. package/esm/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
  782. package/esm/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -4
  783. package/esm/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
  784. package/esm/src/llm-providers/ollama/ollama-models.d.ts +1 -4
  785. package/esm/src/llm-providers/ollama/playground/playground.d.ts +0 -4
  786. package/esm/src/llm-providers/ollama/register-configuration.d.ts +0 -3
  787. package/esm/src/llm-providers/ollama/register-constructor.d.ts +0 -4
  788. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +27 -63
  789. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.test.d.ts +1 -0
  790. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  791. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  792. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  793. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  794. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +38 -11
  795. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  796. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  797. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  798. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  799. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  800. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +16 -40
  801. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
  802. package/esm/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  803. package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  804. package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  805. package/esm/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  806. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  807. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  808. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +3 -46
  809. package/esm/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  810. package/esm/src/llm-providers/openai/computeOpenAiUsage.d.ts +4 -4
  811. package/esm/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
  812. package/esm/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
  813. package/esm/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -5
  814. package/esm/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
  815. package/esm/src/llm-providers/openai/openai-models.d.ts +2 -1
  816. package/esm/src/llm-providers/openai/openai-models.test.d.ts +0 -3
  817. package/esm/src/llm-providers/openai/playground/playground.d.ts +0 -4
  818. package/esm/src/llm-providers/openai/register-configuration.d.ts +0 -3
  819. package/esm/src/llm-providers/openai/register-constructor.d.ts +0 -4
  820. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  821. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  822. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  823. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  824. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +29 -0
  825. package/esm/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -10
  826. package/esm/src/llm-providers/remote/playground/playground.d.ts +0 -3
  827. package/esm/src/llm-providers/vercel/playground/playground.d.ts +0 -4
  828. package/esm/src/other/templates/getBookTemplates.d.ts +3 -6
  829. package/esm/src/personas/preparePersona.d.ts +2 -8
  830. package/esm/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
  831. package/esm/src/pipeline/PipelineInterface/constants.d.ts +0 -3
  832. package/esm/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -12
  833. package/esm/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
  834. package/esm/src/pipeline/PipelineJson/Expectations.d.ts +5 -5
  835. package/esm/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -10
  836. package/esm/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -6
  837. package/esm/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  838. package/esm/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -6
  839. package/esm/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  840. package/esm/src/pipeline/PipelineJson/PreparationJson.d.ts +4 -6
  841. package/esm/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  842. package/esm/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
  843. package/esm/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
  844. package/esm/src/pipeline/book-notation.d.ts +1 -4
  845. package/esm/src/pipeline/isValidPipelineString.d.ts +1 -3
  846. package/esm/src/pipeline/isValidPipelineString.test.d.ts +0 -3
  847. package/esm/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
  848. package/esm/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
  849. package/esm/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
  850. package/esm/src/pipeline/prompt-notation.d.ts +3 -6
  851. package/esm/src/pipeline/prompt-notation.test.d.ts +0 -3
  852. package/esm/src/pipeline/validatePipelineString.d.ts +1 -3
  853. package/esm/src/playground/permanent/_boilerplate.d.ts +0 -3
  854. package/esm/src/playground/permanent/agent-with-browser-playground.d.ts +0 -3
  855. package/esm/src/playground/permanent/error-handling-playground.d.ts +0 -3
  856. package/esm/src/playground/playground.d.ts +1 -3
  857. package/esm/src/postprocessing/utils/extractBlock.d.ts +3 -2
  858. package/esm/src/postprocessing/utils/extractJsonBlock.d.ts +3 -7
  859. package/esm/src/prepare/PrepareAndScrapeOptions.d.ts +1 -5
  860. package/esm/src/prepare/preparePipeline.d.ts +3 -2
  861. package/esm/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
  862. package/esm/src/prepare/prepareTasks.d.ts +6 -10
  863. package/esm/src/prepare/unpreparePipeline.d.ts +1 -5
  864. package/esm/src/remote-server/RemoteServer.d.ts +3 -0
  865. package/esm/src/remote-server/openapi.d.ts +3 -4
  866. package/esm/src/remote-server/socket-types/_subtypes/Identification.d.ts +3 -7
  867. package/esm/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  868. package/esm/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  869. package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
  870. package/esm/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
  871. package/esm/src/remote-server/startAgentServer.d.ts +7 -5
  872. package/esm/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  873. package/esm/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  874. package/esm/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  875. package/esm/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  876. package/esm/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  877. package/esm/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  878. package/esm/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  879. package/esm/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  880. package/esm/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  881. package/esm/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  882. package/esm/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  883. package/esm/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  884. package/esm/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  885. package/esm/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  886. package/esm/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  887. package/esm/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  888. package/esm/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  889. package/esm/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  890. package/esm/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  891. package/esm/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  892. package/esm/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  893. package/esm/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  894. package/esm/src/remote-server/startRemoteServer.d.ts +1 -16
  895. package/esm/src/remote-server/types/RemoteClientOptions.d.ts +1 -6
  896. package/esm/src/remote-server/types/RemoteServerOptions.d.ts +12 -5
  897. package/esm/src/remote-server/ui/ServerApp.d.ts +1 -0
  898. package/esm/src/remote-server/ui/types.d.ts +3 -0
  899. package/esm/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +2 -8
  900. package/esm/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
  901. package/esm/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -3
  902. package/esm/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
  903. package/esm/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
  904. package/esm/src/scrapers/_common/Scraper.d.ts +4 -9
  905. package/esm/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -4
  906. package/esm/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
  907. package/esm/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -4
  908. package/esm/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -4
  909. package/esm/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -4
  910. package/esm/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -4
  911. package/esm/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
  912. package/esm/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
  913. package/esm/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  914. package/esm/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
  915. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -8
  916. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
  917. package/esm/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  918. package/esm/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
  919. package/esm/src/scrapers/document/DocumentScraper.d.ts +2 -8
  920. package/esm/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
  921. package/esm/src/scrapers/document/createDocumentScraper.d.ts +0 -3
  922. package/esm/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -3
  923. package/esm/src/scrapers/document/register-constructor.d.ts +0 -4
  924. package/esm/src/scrapers/document/register-metadata.d.ts +0 -3
  925. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +2 -8
  926. package/esm/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
  927. package/esm/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
  928. package/esm/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -3
  929. package/esm/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
  930. package/esm/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
  931. package/esm/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
  932. package/esm/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
  933. package/esm/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
  934. package/esm/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -3
  935. package/esm/src/scrapers/markdown/register-constructor.d.ts +0 -4
  936. package/esm/src/scrapers/markdown/register-metadata.d.ts +0 -3
  937. package/esm/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
  938. package/esm/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
  939. package/esm/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -3
  940. package/esm/src/scrapers/markitdown/register-constructor.d.ts +0 -5
  941. package/esm/src/scrapers/markitdown/register-metadata.d.ts +0 -3
  942. package/esm/src/scrapers/pdf/PdfScraper.d.ts +1 -6
  943. package/esm/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
  944. package/esm/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -3
  945. package/esm/src/scrapers/pdf/register-constructor.d.ts +0 -4
  946. package/esm/src/scrapers/pdf/register-metadata.d.ts +0 -3
  947. package/esm/src/scrapers/website/WebsiteScraper.d.ts +3 -9
  948. package/esm/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
  949. package/esm/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -3
  950. package/esm/src/scrapers/website/register-constructor.d.ts +0 -4
  951. package/esm/src/scrapers/website/register-metadata.d.ts +0 -3
  952. package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
  953. package/esm/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
  954. package/esm/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
  955. package/esm/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -5
  956. package/esm/src/scripting/javascript/postprocessing-functions.d.ts +1 -5
  957. package/esm/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +3 -5
  958. package/esm/src/search-engines/SearchEngine.d.ts +5 -1
  959. package/esm/src/search-engines/SearchResult.d.ts +1 -1
  960. package/esm/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  961. package/esm/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  962. package/esm/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  963. package/esm/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  964. package/esm/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -4
  965. package/esm/src/speech-recognition/OpenAiSpeechRecognition.d.ts +74 -4
  966. package/esm/src/speech-recognition/OpenAiSpeechRecognition.test.d.ts +1 -0
  967. package/esm/src/storage/_common/PromptbookStorage.d.ts +0 -4
  968. package/esm/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
  969. package/esm/src/storage/env-storage/$EnvStorage.d.ts +0 -3
  970. package/esm/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -4
  971. package/esm/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  972. package/esm/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  973. package/esm/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -3
  974. package/esm/src/storage/local-storage/getLocalStorage.d.ts +0 -3
  975. package/esm/src/storage/local-storage/getSessionStorage.d.ts +0 -3
  976. package/esm/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  977. package/esm/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
  978. package/esm/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
  979. package/esm/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  980. package/esm/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  981. package/esm/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  982. package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  983. package/esm/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  984. package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  985. package/esm/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  986. package/esm/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  987. package/esm/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
  988. package/esm/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  989. package/esm/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  990. package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  991. package/esm/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  992. package/esm/src/transpilers/agent-os/register.d.ts +12 -0
  993. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  994. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  995. package/esm/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  996. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  997. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  998. package/esm/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  999. package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  1000. package/esm/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  1001. package/esm/src/transpilers/e2b/register.d.ts +12 -0
  1002. package/esm/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  1003. package/esm/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
  1004. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  1005. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  1006. package/esm/src/transpilers/openai-agents/register.d.ts +12 -0
  1007. package/esm/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  1008. package/esm/src/transpilers/openai-sdk/playground/playground.d.ts +0 -3
  1009. package/esm/src/transpilers/openai-sdk/register.d.ts +2 -5
  1010. package/esm/src/types/Arrayable.d.ts +1 -0
  1011. package/esm/src/types/InputParameters_private.d.ts +13 -0
  1012. package/esm/src/types/IntermediateFilesStrategy.d.ts +0 -3
  1013. package/esm/src/types/LlmCall.d.ts +1 -4
  1014. package/esm/src/types/LlmToolDefinition.d.ts +19 -8
  1015. package/esm/src/types/Message.d.ts +4 -3
  1016. package/esm/src/types/ModelRequirements.d.ts +5 -2
  1017. package/esm/src/types/ModelVariant.d.ts +3 -0
  1018. package/esm/src/types/Parameters.d.ts +31 -0
  1019. package/esm/src/types/Parameters_private.d.ts +18 -0
  1020. package/esm/src/types/Prompt.d.ts +8 -18
  1021. package/esm/src/types/ReservedParameters_private.d.ts +11 -0
  1022. package/esm/src/types/SpeechRecognition.d.ts +19 -1
  1023. package/esm/src/types/ToolCall.d.ts +55 -1
  1024. package/esm/src/types/Updatable.d.ts +1 -3
  1025. package/esm/src/types/number_bytes.d.ts +21 -0
  1026. package/esm/src/types/number_id.d.ts +13 -0
  1027. package/esm/src/types/number_likeness.d.ts +8 -0
  1028. package/esm/src/types/number_milliseconds.d.ts +33 -0
  1029. package/esm/src/types/number_percent.d.ts +18 -0
  1030. package/esm/src/types/number_positive.d.ts +16 -0
  1031. package/esm/src/types/number_usd.d.ts +10 -0
  1032. package/esm/src/types/string_agent_hash_private.d.ts +9 -0
  1033. package/esm/src/types/string_agent_name.d.ts +32 -0
  1034. package/esm/src/types/string_agent_name_in_book_private.d.ts +8 -0
  1035. package/esm/src/types/string_agent_name_private.d.ts +10 -0
  1036. package/esm/src/types/string_agent_permanent_id_private.d.ts +11 -0
  1037. package/esm/src/types/string_agent_url.d.ts +7 -0
  1038. package/esm/src/types/string_agent_url_private.d.ts +9 -0
  1039. package/esm/src/types/string_base64.d.ts +13 -0
  1040. package/esm/src/types/string_base64_private.d.ts +17 -0
  1041. package/esm/src/types/string_base_url.d.ts +7 -0
  1042. package/esm/src/types/string_base_url_private.d.ts +9 -0
  1043. package/esm/src/types/string_business_category_name.d.ts +5 -0
  1044. package/esm/src/types/string_business_category_name_private.d.ts +6 -0
  1045. package/esm/src/types/string_char_private.d.ts +8 -0
  1046. package/esm/src/types/string_chat_prompt_private.d.ts +9 -0
  1047. package/esm/src/types/string_completion_prompt_private.d.ts +9 -0
  1048. package/esm/src/types/string_email.d.ts +13 -0
  1049. package/esm/src/types/string_email_private.d.ts +16 -0
  1050. package/esm/src/types/string_filename.d.ts +39 -0
  1051. package/esm/src/types/string_host.d.ts +42 -0
  1052. package/esm/src/types/string_host_private.d.ts +55 -0
  1053. package/esm/src/types/string_href.d.ts +19 -0
  1054. package/esm/src/types/string_href_private.d.ts +24 -0
  1055. package/esm/src/types/string_knowledge_source_content.d.ts +29 -0
  1056. package/esm/src/types/string_markdown.d.ts +137 -0
  1057. package/esm/src/types/string_mime_type.d.ts +15 -0
  1058. package/esm/src/types/string_mime_type_private.d.ts +18 -0
  1059. package/esm/src/types/string_model_description_private.d.ts +8 -0
  1060. package/esm/src/types/string_model_name.d.ts +7 -0
  1061. package/esm/src/types/string_model_name_private.d.ts +8 -0
  1062. package/esm/src/types/string_name.d.ts +31 -0
  1063. package/esm/src/types/string_name_private.d.ts +9 -0
  1064. package/esm/src/types/string_page.d.ts +15 -0
  1065. package/esm/src/types/string_page_private.d.ts +9 -0
  1066. package/esm/src/types/string_parameter_name.d.ts +14 -0
  1067. package/esm/src/types/string_parameter_value_private.d.ts +9 -0
  1068. package/esm/src/types/string_person_fullname.d.ts +85 -0
  1069. package/esm/src/types/string_persona_description.d.ts +14 -0
  1070. package/esm/src/types/string_persona_description_private.d.ts +8 -0
  1071. package/esm/src/types/string_pipeline_root_url.d.ts +7 -0
  1072. package/esm/src/types/string_pipeline_root_url_private.d.ts +9 -0
  1073. package/esm/src/types/string_pipeline_url.d.ts +13 -0
  1074. package/esm/src/types/string_pipeline_url_private.d.ts +17 -0
  1075. package/esm/src/types/string_prompt.d.ts +49 -0
  1076. package/esm/src/types/string_prompt_image_private.d.ts +8 -0
  1077. package/esm/src/types/string_prompt_private.d.ts +8 -0
  1078. package/esm/src/types/string_promptbook_server_url.d.ts +7 -0
  1079. package/esm/src/types/string_promptbook_server_url_private.d.ts +9 -0
  1080. package/esm/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  1081. package/esm/src/types/string_sha256.d.ts +44 -0
  1082. package/esm/src/types/string_system_message_private.d.ts +9 -0
  1083. package/esm/src/types/string_template_private.d.ts +8 -0
  1084. package/esm/src/types/string_text_prompt_private.d.ts +9 -0
  1085. package/esm/src/types/string_title.d.ts +8 -0
  1086. package/esm/src/types/string_title_private.d.ts +9 -0
  1087. package/esm/src/types/string_token.d.ts +58 -0
  1088. package/esm/src/types/string_url.d.ts +23 -0
  1089. package/esm/src/types/string_url_image.d.ts +7 -0
  1090. package/esm/src/types/string_url_image_private.d.ts +9 -0
  1091. package/esm/src/types/string_url_private.d.ts +8 -0
  1092. package/esm/src/types/typeAliasEmoji.d.ts +0 -3
  1093. package/esm/src/types/typeAliases.d.ts +15 -747
  1094. package/esm/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
  1095. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +66 -6
  1096. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.test.d.ts +1 -0
  1097. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +11 -0
  1098. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +15 -0
  1099. package/esm/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
  1100. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +10 -0
  1101. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +10 -0
  1102. package/esm/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +12 -0
  1103. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +12 -0
  1104. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +11 -0
  1105. package/esm/src/utils/chat/chatAttachments.d.ts +51 -0
  1106. package/esm/src/utils/chat/chatAttachments.test.d.ts +1 -0
  1107. package/esm/src/utils/chat/constants.d.ts +18 -0
  1108. package/esm/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
  1109. package/esm/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
  1110. package/esm/src/utils/chat/escapeRegExp.d.ts +6 -0
  1111. package/esm/src/utils/clientVersion.d.ts +0 -3
  1112. package/esm/src/utils/color/$randomColor.d.ts +0 -5
  1113. package/esm/src/utils/color/Color.d.ts +6 -45
  1114. package/esm/src/utils/color/ColorValue.d.ts +55 -0
  1115. package/esm/src/utils/color/css-colors.d.ts +0 -3
  1116. package/esm/src/utils/color/internal-utils/hslToRgb.d.ts +2 -6
  1117. package/esm/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -6
  1118. package/esm/src/utils/color/isHexColorString.d.ts +10 -0
  1119. package/esm/src/utils/color/operators/ColorTransformer.d.ts +2 -0
  1120. package/esm/src/utils/color/operators/darken.d.ts +1 -1
  1121. package/esm/src/utils/color/operators/grayscale.d.ts +1 -1
  1122. package/esm/src/utils/color/operators/lighten.d.ts +1 -4
  1123. package/esm/src/utils/color/operators/mixWithColor.d.ts +1 -1
  1124. package/esm/src/utils/color/operators/saturate.d.ts +1 -4
  1125. package/esm/src/utils/color/parseColorString.d.ts +11 -0
  1126. package/esm/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  1127. package/esm/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  1128. package/esm/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  1129. package/esm/src/utils/color/utils/areColorsEqual.d.ts +0 -3
  1130. package/esm/src/utils/color/utils/colorDistance.d.ts +2 -2
  1131. package/esm/src/utils/color/utils/colorHue.d.ts +0 -1
  1132. package/esm/src/utils/color/utils/colorHueDistance.d.ts +0 -1
  1133. package/esm/src/utils/color/utils/colorToDataUrl.d.ts +3 -4
  1134. package/esm/src/utils/database/uniqueConstraint.d.ts +26 -0
  1135. package/esm/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +4 -5
  1136. package/esm/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
  1137. package/esm/src/utils/editable/types/PipelineEditableSerialized.d.ts +3 -3
  1138. package/esm/src/utils/editable/utils/renamePipelineParameter.d.ts +5 -4
  1139. package/esm/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -7
  1140. package/esm/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
  1141. package/esm/src/utils/environment/$getGlobalScope.d.ts +1 -1
  1142. package/esm/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
  1143. package/esm/src/utils/environment/$isRunningInJest.d.ts +0 -3
  1144. package/esm/src/utils/environment/$isRunningInNode.d.ts +0 -3
  1145. package/esm/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
  1146. package/esm/src/utils/execCommand/$execCommand.d.ts +0 -4
  1147. package/esm/src/utils/execCommand/$execCommands.d.ts +0 -3
  1148. package/esm/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
  1149. package/esm/src/utils/expectation-counters/constants.d.ts +0 -4
  1150. package/esm/src/utils/expectation-counters/countCharacters.d.ts +0 -4
  1151. package/esm/src/utils/expectation-counters/countLines.d.ts +0 -4
  1152. package/esm/src/utils/expectation-counters/countPages.d.ts +0 -4
  1153. package/esm/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
  1154. package/esm/src/utils/expectation-counters/countSentences.d.ts +0 -4
  1155. package/esm/src/utils/expectation-counters/countWords.d.ts +0 -5
  1156. package/esm/src/utils/expectation-counters/index.d.ts +0 -4
  1157. package/esm/src/utils/files/$induceBookDownload.d.ts +0 -3
  1158. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -4
  1159. package/esm/src/utils/files/ObjectUrl.d.ts +2 -4
  1160. package/esm/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
  1161. package/esm/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
  1162. package/esm/src/utils/files/extensionToMimeType.d.ts +2 -2
  1163. package/esm/src/utils/files/getFileExtension.d.ts +2 -2
  1164. package/esm/src/utils/files/isDirectoryExisting.d.ts +1 -7
  1165. package/esm/src/utils/files/isExecutable.d.ts +0 -4
  1166. package/esm/src/utils/files/isFileExisting.d.ts +1 -6
  1167. package/esm/src/utils/files/listAllFiles.d.ts +2 -6
  1168. package/esm/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  1169. package/esm/src/utils/files/readResponseBytes.d.ts +15 -0
  1170. package/esm/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  1171. package/esm/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  1172. package/esm/src/utils/knowledge/inlineKnowledgeSource.d.ts +14 -7
  1173. package/esm/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
  1174. package/esm/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
  1175. package/esm/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
  1176. package/esm/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
  1177. package/esm/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
  1178. package/esm/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -5
  1179. package/esm/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  1180. package/esm/src/utils/markdown/createMarkdownTable.d.ts +1 -5
  1181. package/esm/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -4
  1182. package/esm/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -4
  1183. package/esm/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
  1184. package/esm/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +3 -5
  1185. package/esm/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  1186. package/esm/src/utils/markdown/humanizeAiText.d.ts +1 -4
  1187. package/esm/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -4
  1188. package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +2 -5
  1189. package/esm/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -4
  1190. package/esm/src/utils/markdown/humanizeAiTextSources.d.ts +1 -4
  1191. package/esm/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -4
  1192. package/esm/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  1193. package/esm/src/utils/markdown/prettifyMarkdown.d.ts +5 -3
  1194. package/esm/src/utils/markdown/promptbookifyAiText.d.ts +1 -4
  1195. package/esm/src/utils/markdown/removeMarkdownComments.d.ts +2 -2
  1196. package/esm/src/utils/markdown/removeMarkdownFormatting.d.ts +2 -1
  1197. package/esm/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
  1198. package/esm/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  1199. package/esm/src/utils/markdown/trimCodeBlock.d.ts +1 -1
  1200. package/esm/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
  1201. package/esm/src/utils/misc/$Register.d.ts +1 -1
  1202. package/esm/src/utils/misc/$getCurrentDate.d.ts +2 -1
  1203. package/esm/src/utils/misc/aboutPromptbookInformation.d.ts +4 -4
  1204. package/esm/src/utils/misc/computeHash.d.ts +2 -5
  1205. package/esm/src/utils/misc/debounce.d.ts +2 -0
  1206. package/esm/src/utils/misc/emojis.d.ts +3 -8
  1207. package/esm/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +8 -3
  1208. package/esm/src/utils/misc/parseNumber.d.ts +0 -4
  1209. package/esm/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
  1210. package/esm/src/utils/normalization/IKeywords.d.ts +0 -3
  1211. package/esm/src/utils/normalization/nameToUriPart.d.ts +1 -0
  1212. package/esm/src/utils/normalization/nameToUriParts.d.ts +1 -0
  1213. package/esm/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
  1214. package/esm/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
  1215. package/esm/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
  1216. package/esm/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
  1217. package/esm/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  1218. package/esm/src/utils/normalization/orderJson.d.ts +1 -0
  1219. package/esm/src/utils/normalization/orderJson.test.d.ts +0 -3
  1220. package/esm/src/utils/normalization/parseKeywords.d.ts +1 -4
  1221. package/esm/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
  1222. package/esm/src/utils/normalization/removeDiacritics.d.ts +1 -3
  1223. package/esm/src/utils/normalization/removeEmojis.d.ts +1 -0
  1224. package/esm/src/utils/normalization/removeQuotes.d.ts +1 -0
  1225. package/esm/src/utils/normalization/searchKeywords.d.ts +1 -3
  1226. package/esm/src/utils/normalization/suffixUrl.d.ts +1 -1
  1227. package/esm/src/utils/normalization/titleToName.d.ts +1 -0
  1228. package/esm/src/utils/normalization/unwrapResult.d.ts +1 -3
  1229. package/esm/src/utils/organization/$sideEffect.d.ts +1 -0
  1230. package/esm/src/utils/organization/TODO_USE.d.ts +1 -0
  1231. package/esm/src/utils/organization/just.d.ts +1 -0
  1232. package/esm/src/utils/organization/keepImported.d.ts +2 -1
  1233. package/esm/src/utils/organization/keepTypeImported.d.ts +1 -0
  1234. package/esm/src/utils/organization/keepUnused.d.ts +1 -0
  1235. package/esm/src/utils/organization/preserve.d.ts +1 -3
  1236. package/esm/src/utils/organization/really_any.d.ts +1 -0
  1237. package/esm/src/utils/organization/spaceTrim.d.ts +3 -2
  1238. package/esm/src/utils/parameters/extractParameterNames.d.ts +3 -2
  1239. package/esm/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +2 -2
  1240. package/esm/src/utils/parameters/numberToString.d.ts +1 -1
  1241. package/esm/src/utils/parameters/templateParameters.d.ts +4 -2
  1242. package/esm/src/utils/parameters/valueToString.d.ts +3 -3
  1243. package/esm/src/utils/random/$generateBookBoilerplate.d.ts +4 -4
  1244. package/esm/src/utils/random/$randomAgentPersona.d.ts +2 -4
  1245. package/esm/src/utils/random/$randomAgentRule.d.ts +2 -4
  1246. package/esm/src/utils/random/$randomFullnameWithColor.d.ts +5 -4
  1247. package/esm/src/utils/random/$randomItem.d.ts +0 -3
  1248. package/esm/src/utils/random/$randomSeed.d.ts +1 -4
  1249. package/esm/src/utils/random/$randomToken.d.ts +3 -6
  1250. package/esm/src/utils/random/EnglishNamePool.d.ts +10 -1
  1251. package/esm/src/utils/random/NamePool.d.ts +1 -1
  1252. package/esm/src/utils/serialization/$deepFreeze.d.ts +1 -3
  1253. package/esm/src/utils/serialization/checkSerializableAsJson.d.ts +2 -6
  1254. package/esm/src/utils/serialization/clonePipeline.d.ts +1 -3
  1255. package/esm/src/utils/serialization/deepClone.d.ts +1 -3
  1256. package/esm/src/utils/serialization/exportJson.d.ts +1 -3
  1257. package/esm/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
  1258. package/esm/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
  1259. package/esm/src/utils/serialization/serializeToPromptbookJavascript.d.ts +6 -4
  1260. package/esm/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  1261. package/esm/src/utils/sets/difference.d.ts +1 -3
  1262. package/esm/src/utils/sets/intersection.d.ts +1 -0
  1263. package/esm/src/utils/sets/union.d.ts +1 -0
  1264. package/esm/src/utils/take/classes/TakeChain.d.ts +4 -1
  1265. package/esm/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
  1266. package/esm/src/utils/take/interfaces/Takeable.d.ts +2 -1
  1267. package/esm/src/utils/take/take.d.ts +1 -1
  1268. package/esm/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
  1269. package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
  1270. package/esm/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
  1271. package/esm/src/utils/validators/email/isValidEmail.d.ts +1 -1
  1272. package/esm/src/utils/validators/filePath/isRootPath.d.ts +2 -5
  1273. package/esm/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
  1274. package/esm/src/utils/validators/filePath/isValidFilePath.d.ts +2 -4
  1275. package/esm/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +2 -1
  1276. package/esm/src/utils/validators/parameterName/validateParameterName.d.ts +2 -1
  1277. package/esm/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
  1278. package/esm/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  1279. package/esm/src/utils/validators/url/extractUrlsFromText.d.ts +9 -0
  1280. package/esm/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
  1281. package/esm/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +13 -2
  1282. package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +10 -3
  1283. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +1 -4
  1284. package/esm/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -4
  1285. package/esm/src/utils/validators/url/isValidUrl.d.ts +1 -1
  1286. package/esm/src/utils/validators/url/normalizeDomainForMatching.d.ts +12 -0
  1287. package/esm/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
  1288. package/esm/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  1289. package/esm/src/version.d.ts +1 -1
  1290. package/esm/src/wizard/$getCompiledBook.d.ts +2 -5
  1291. package/esm/src/wizard/wizard.d.ts +5 -5
  1292. package/package.json +4 -3
  1293. package/umd/index.umd.js +616 -423
  1294. package/umd/index.umd.js.map +1 -1
  1295. package/umd/src/_packages/cli.index.d.ts +10 -0
  1296. package/umd/src/_packages/components.index.d.ts +20 -0
  1297. package/umd/src/_packages/core.index.d.ts +42 -0
  1298. package/umd/src/_packages/markdown-utils.index.d.ts +5 -5
  1299. package/umd/src/_packages/types.index.d.ts +274 -228
  1300. package/umd/src/_packages/utils.index.d.ts +2 -0
  1301. package/umd/src/_packages/wizard.index.d.ts +10 -0
  1302. package/umd/src/avatars/Avatar.d.ts +7 -0
  1303. package/umd/src/avatars/AvatarOrImage.d.ts +50 -0
  1304. package/umd/src/avatars/avatarAnimationScheduler.d.ts +16 -0
  1305. package/umd/src/avatars/avatarInteractionUtils.d.ts +81 -0
  1306. package/umd/src/avatars/avatarInteractionUtils.test.d.ts +1 -0
  1307. package/umd/src/avatars/avatarPointerTracking.d.ts +33 -0
  1308. package/umd/src/avatars/avatarRenderingUtils.d.ts +118 -0
  1309. package/umd/src/avatars/avatarRenderingUtils.test.d.ts +1 -0
  1310. package/umd/src/avatars/avatarVisibilityTracking.d.ts +17 -0
  1311. package/umd/src/avatars/index.d.ts +7 -0
  1312. package/umd/src/avatars/renderAvatarVisual.d.ts +36 -0
  1313. package/umd/src/avatars/types/AvatarDefinition.d.ts +21 -0
  1314. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +137 -0
  1315. package/umd/src/avatars/visuals/asciiOctopusAvatarVisual.d.ts +7 -0
  1316. package/umd/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  1317. package/umd/src/avatars/visuals/avatarVisualRegistry.d.ts +28 -0
  1318. package/umd/src/avatars/visuals/avatarVisualRegistry.test.d.ts +1 -0
  1319. package/umd/src/avatars/visuals/fractalAvatarVisual.d.ts +7 -0
  1320. package/umd/src/avatars/visuals/minecraft2AvatarVisual.d.ts +7 -0
  1321. package/umd/src/avatars/visuals/minecraftAvatarVisual.d.ts +7 -0
  1322. package/umd/src/avatars/visuals/minecraftAvatarVisualShared.d.ts +48 -0
  1323. package/umd/src/avatars/visuals/octopus2AvatarVisual.d.ts +7 -0
  1324. package/umd/src/avatars/visuals/octopus3AvatarVisual.d.ts +79 -0
  1325. package/umd/src/avatars/visuals/octopus3AvatarVisual.test.d.ts +1 -0
  1326. package/umd/src/avatars/visuals/octopus3d2AvatarVisual.d.ts +7 -0
  1327. package/umd/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  1328. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +37 -0
  1329. package/umd/src/avatars/visuals/octopusAvatarVisual.d.ts +7 -0
  1330. package/umd/src/avatars/visuals/octopusAvatarVisualShared.d.ts +175 -0
  1331. package/umd/src/avatars/visuals/octopusAvatarVisualShared.test.d.ts +1 -0
  1332. package/umd/src/avatars/visuals/orbAvatarVisual.d.ts +48 -0
  1333. package/umd/src/avatars/visuals/orbAvatarVisual.test.d.ts +1 -0
  1334. package/umd/src/avatars/visuals/pixelArtAvatarVisual.d.ts +7 -0
  1335. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +16 -7
  1336. package/umd/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -6
  1337. package/umd/src/book-2.0/agent-source/AgentReferenceResolver.d.ts +11 -0
  1338. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +6 -2
  1339. package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +8 -0
  1340. package/umd/src/book-2.0/agent-source/TeammateProfileResolver.d.ts +34 -0
  1341. package/umd/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  1342. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +13 -3
  1343. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts +1 -0
  1344. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
  1345. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/ParsedAgentSourceWithCommitments.d.ts +7 -0
  1346. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/applyCommitmentsToAgentModelRequirements.d.ts +14 -0
  1347. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/augmentAgentModelRequirementsFromSource.d.ts +14 -0
  1348. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.d.ts +10 -0
  1349. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/materializeInlineKnowledgeSources.d.ts +12 -0
  1350. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +9 -3
  1351. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
  1352. package/umd/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  1353. package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +13 -0
  1354. package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +13 -0
  1355. package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
  1356. package/umd/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  1357. package/umd/src/book-2.0/agent-source/padBook.d.ts +1 -4
  1358. package/umd/src/book-2.0/agent-source/parseAgentSource/ParseAgentSourceState.d.ts +10 -0
  1359. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +7 -0
  1360. package/umd/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.d.ts +8 -0
  1361. package/umd/src/book-2.0/agent-source/parseAgentSource/consumeConversationSampleCommitment.d.ts +8 -0
  1362. package/umd/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.d.ts +9 -0
  1363. package/umd/src/book-2.0/agent-source/parseAgentSource/ensureMetaFullname.d.ts +7 -0
  1364. package/umd/src/book-2.0/agent-source/parseAgentSource/extractAgentProfileText.d.ts +8 -0
  1365. package/umd/src/book-2.0/agent-source/parseAgentSource/extractInitialMessage.d.ts +7 -0
  1366. package/umd/src/book-2.0/agent-source/parseAgentSource/extractParsedAgentProfile.d.ts +8 -0
  1367. package/umd/src/book-2.0/agent-source/parseAgentSource.d.ts +0 -3
  1368. package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +39 -0
  1369. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
  1370. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
  1371. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.use.test.d.ts +1 -0
  1372. package/umd/src/book-2.0/agent-source/parseParameters.d.ts +1 -0
  1373. package/umd/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -4
  1374. package/umd/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +115 -0
  1375. package/umd/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
  1376. package/umd/src/book-2.0/agent-source/string_book.d.ts +1 -0
  1377. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +27 -0
  1378. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +25 -0
  1379. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +10 -0
  1380. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +14 -0
  1381. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +43 -0
  1382. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.test.d.ts +1 -0
  1383. package/umd/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -4
  1384. package/umd/src/book-3.0/Book.d.ts +39 -0
  1385. package/umd/src/book-3.0/Book.test.d.ts +1 -0
  1386. package/umd/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -4
  1387. package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -4
  1388. package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfileTooltip.d.ts +4 -0
  1389. package/umd/src/book-components/BookEditor/BookEditor.d.ts +28 -4
  1390. package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +6 -0
  1391. package/umd/src/book-components/BookEditor/BookEditorMonaco.d.ts +2 -0
  1392. package/umd/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
  1393. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
  1394. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
  1395. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +3 -0
  1396. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +30 -0
  1397. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
  1398. package/umd/src/book-components/BookEditor/useBookEditorMonacoDecorations.d.ts +6 -0
  1399. package/umd/src/book-components/BookEditor/useBookEditorMonacoDiagnostics.d.ts +9 -0
  1400. package/umd/src/book-components/BookEditor/useBookEditorMonacoInteractions.d.ts +40 -0
  1401. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +43 -1
  1402. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
  1403. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +34 -0
  1404. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +5 -1
  1405. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +24 -0
  1406. package/umd/src/book-components/Chat/AgentChat/AgentChat.d.ts +0 -3
  1407. package/umd/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
  1408. package/umd/src/book-components/Chat/AgentChip/AgentChip.d.ts +7 -6
  1409. package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +15 -0
  1410. package/umd/src/book-components/Chat/Chat/ChatActionsBar.test.d.ts +2 -0
  1411. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +6 -10
  1412. package/umd/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
  1413. package/umd/src/book-components/Chat/Chat/ChatInputAreaDictationPanel.d.ts +38 -0
  1414. package/umd/src/book-components/Chat/Chat/ChatInputUploadedFile.d.ts +10 -0
  1415. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +41 -17
  1416. package/umd/src/book-components/Chat/Chat/ChatMessageItem.test.d.ts +2 -0
  1417. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +28 -1
  1418. package/umd/src/book-components/Chat/Chat/ChatMessageMap.d.ts +0 -1
  1419. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +36 -0
  1420. package/umd/src/book-components/Chat/Chat/ChatMessageToolCallChips.d.ts +22 -0
  1421. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +515 -11
  1422. package/umd/src/book-components/Chat/Chat/ChatRatingModal.d.ts +10 -1
  1423. package/umd/src/book-components/Chat/Chat/ChatReplyPreview.d.ts +19 -0
  1424. package/umd/src/book-components/Chat/Chat/ChatSelfLearningSummary.d.ts +0 -3
  1425. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +28 -0
  1426. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  1427. package/umd/src/book-components/Chat/Chat/ChatToolCallModalComponents.d.ts +8 -5
  1428. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +47 -0
  1429. package/umd/src/book-components/Chat/Chat/StreamingFeaturePlaceholder.d.ts +34 -0
  1430. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +31 -0
  1431. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.test.d.ts +2 -0
  1432. package/umd/src/book-components/Chat/Chat/chatCssClassNames.d.ts +42 -0
  1433. package/umd/src/book-components/Chat/Chat/constants.d.ts +4 -3
  1434. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +76 -0
  1435. package/umd/src/book-components/Chat/Chat/createProgressCardChecklistMarkdown.d.ts +16 -0
  1436. package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +16 -0
  1437. package/umd/src/book-components/Chat/Chat/learnDictationDictionary.d.ts +7 -0
  1438. package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.d.ts +36 -0
  1439. package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +55 -0
  1440. package/umd/src/book-components/Chat/Chat/renderEmailToolCallDetails.d.ts +27 -0
  1441. package/umd/src/book-components/Chat/Chat/renderMemoryToolCallDetails.d.ts +32 -0
  1442. package/umd/src/book-components/Chat/Chat/renderPopupToolCallDetails.d.ts +33 -0
  1443. package/umd/src/book-components/Chat/Chat/renderRunBrowserToolCallDetails.d.ts +32 -0
  1444. package/umd/src/book-components/Chat/Chat/renderSearchToolCallDetails.d.ts +32 -0
  1445. package/umd/src/book-components/Chat/Chat/renderSelfLearningToolCallDetails.d.ts +39 -0
  1446. package/umd/src/book-components/Chat/Chat/renderTimeToolCallDetails.d.ts +39 -0
  1447. package/umd/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.d.ts +53 -0
  1448. package/umd/src/book-components/Chat/Chat/renderToolCallClockPanel.d.ts +34 -0
  1449. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +50 -0
  1450. package/umd/src/book-components/Chat/Chat/renderToolCallProgressPlaceholder.d.ts +30 -0
  1451. package/umd/src/book-components/Chat/Chat/renderWalletCredentialToolCallDetails.d.ts +27 -0
  1452. package/umd/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +146 -0
  1453. package/umd/src/book-components/Chat/Chat/resolveSpeechRecognitionUiDescriptor.d.ts +30 -0
  1454. package/umd/src/book-components/Chat/Chat/resolveToolCallProgressMessage.d.ts +10 -0
  1455. package/umd/src/book-components/Chat/Chat/useChatInputAreaAttachments.d.ts +32 -0
  1456. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +39 -0
  1457. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +53 -0
  1458. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +20 -0
  1459. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +29 -0
  1460. package/umd/src/book-components/Chat/Chat/useChatMessageAvatarTooltip.d.ts +31 -0
  1461. package/umd/src/book-components/Chat/Chat/useChatMessageSpeechPlayback.d.ts +29 -0
  1462. package/umd/src/book-components/Chat/Chat/useChatPostprocessedMessages.d.ts +17 -0
  1463. package/umd/src/book-components/Chat/Chat/useChatScrollState.d.ts +34 -0
  1464. package/umd/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +61 -0
  1465. package/umd/src/book-components/Chat/Chat/useChatToolCallState.d.ts +35 -0
  1466. package/umd/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +7 -1
  1467. package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
  1468. package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
  1469. package/umd/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +17 -1
  1470. package/umd/src/book-components/Chat/LlmChat/defaults.d.ts +0 -3
  1471. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +58 -0
  1472. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessages.d.ts +29 -0
  1473. package/umd/src/book-components/Chat/LlmChat/useLlmChatState.d.ts +53 -0
  1474. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +6 -5
  1475. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.test.d.ts +2 -0
  1476. package/umd/src/book-components/Chat/MockedChat/MockedChat.d.ts +21 -1
  1477. package/umd/src/book-components/Chat/MockedChat/constants.d.ts +0 -3
  1478. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +9 -4
  1479. package/umd/src/book-components/Chat/effects/components/ConfettiEffect.d.ts +3 -0
  1480. package/umd/src/book-components/Chat/effects/components/HeartsEffect.d.ts +3 -0
  1481. package/umd/src/book-components/Chat/effects/index.d.ts +0 -4
  1482. package/umd/src/book-components/Chat/effects/utils/detectEffects.d.ts +1 -0
  1483. package/umd/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +6 -3
  1484. package/umd/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
  1485. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.d.ts +20 -0
  1486. package/umd/src/book-components/Chat/hooks/useChatCompleteNotification.test.d.ts +2 -0
  1487. package/umd/src/book-components/Chat/hooks/useChatRatings.d.ts +10 -2
  1488. package/umd/src/book-components/Chat/hooks/useSendMessageToLlmChat.d.ts +4 -4
  1489. package/umd/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  1490. package/umd/src/book-components/Chat/save/_common/ChatSaveFormatHandler.d.ts +35 -0
  1491. package/umd/src/book-components/Chat/save/_common/chatExportRendering.d.ts +75 -0
  1492. package/umd/src/book-components/Chat/save/_common/createChatExportFilename.d.ts +11 -0
  1493. package/umd/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  1494. package/umd/src/book-components/Chat/save/_common/string_chat_format_name.d.ts +1 -0
  1495. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +13 -4
  1496. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  1497. package/umd/src/book-components/Chat/save/index.d.ts +5 -8
  1498. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +5 -3
  1499. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  1500. package/umd/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +5 -3
  1501. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +3 -7
  1502. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  1503. package/umd/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  1504. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +190 -7
  1505. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +13 -4
  1506. package/umd/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
  1507. package/umd/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
  1508. package/umd/src/book-components/Chat/utils/ExportFormat.d.ts +2 -0
  1509. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +5 -4
  1510. package/umd/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +2 -1
  1511. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +54 -0
  1512. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.test.d.ts +1 -0
  1513. package/umd/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
  1514. package/umd/src/book-components/Chat/utils/exportChatHistory.d.ts +0 -3
  1515. package/umd/src/book-components/Chat/utils/formatToolCallDateTime.d.ts +37 -0
  1516. package/umd/src/book-components/Chat/utils/formatToolCallLocalTime.d.ts +12 -0
  1517. package/umd/src/book-components/Chat/utils/formatToolCallTranslationTemplate.d.ts +10 -0
  1518. package/umd/src/book-components/Chat/utils/getChatMessageTimingDisplay.d.ts +5 -1
  1519. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +28 -3
  1520. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  1521. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  1522. package/umd/src/book-components/Chat/utils/loadAgentProfile.d.ts +14 -1
  1523. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +0 -3
  1524. package/umd/src/book-components/Chat/utils/parseImagePrompts.d.ts +1 -3
  1525. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
  1526. package/umd/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
  1527. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  1528. package/umd/src/book-components/Chat/utils/renderMarkdown.test.d.ts +1 -0
  1529. package/umd/src/book-components/Chat/utils/resolveChatMessageReplyPreviewText.d.ts +25 -0
  1530. package/umd/src/book-components/Chat/utils/resolveChatMessageReplySenderLabel.d.ts +12 -0
  1531. package/umd/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  1532. package/umd/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
  1533. package/umd/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
  1534. package/umd/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +43 -1
  1535. package/umd/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
  1536. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +27 -0
  1537. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
  1538. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +143 -0
  1539. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  1540. package/umd/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
  1541. package/umd/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
  1542. package/umd/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +20 -0
  1543. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +10 -0
  1544. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +10 -0
  1545. package/umd/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +11 -0
  1546. package/umd/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +11 -0
  1547. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +11 -0
  1548. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +11 -0
  1549. package/umd/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +9 -0
  1550. package/umd/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
  1551. package/umd/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
  1552. package/umd/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
  1553. package/umd/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
  1554. package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +18 -6
  1555. package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +6 -5
  1556. package/umd/src/book-components/Qr/BrandedQrCode.d.ts +5 -0
  1557. package/umd/src/book-components/Qr/GenericQrCode.d.ts +5 -0
  1558. package/umd/src/book-components/Qr/PromptbookQrCode.d.ts +5 -0
  1559. package/umd/src/book-components/Qr/useQrCode.d.ts +5 -2
  1560. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +4 -0
  1561. package/umd/src/book-components/_common/HamburgerMenu/HamburgerMenu.d.ts +4 -0
  1562. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +3 -3
  1563. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -3
  1564. package/umd/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
  1565. package/umd/src/book-components/_common/Tooltip/Tooltip.d.ts +3 -0
  1566. package/umd/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  1567. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -0
  1568. package/umd/src/book-components/icons/ArrowIcon.d.ts +30 -5
  1569. package/umd/src/book-components/icons/AttachmentIcon.d.ts +4 -0
  1570. package/umd/src/book-components/icons/CameraIcon.d.ts +4 -0
  1571. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -0
  1572. package/umd/src/book-components/icons/EmailIcon.d.ts +1 -0
  1573. package/umd/src/book-components/icons/MenuIcon.d.ts +1 -3
  1574. package/umd/src/book-components/icons/SaveIcon.d.ts +1 -0
  1575. package/umd/src/book-components/icons/SendIcon.d.ts +0 -3
  1576. package/umd/src/book-components/icons/SolidArrowButton.d.ts +28 -0
  1577. package/umd/src/book-components/icons/StopIcon.d.ts +8 -0
  1578. package/umd/src/book-components/icons/TeacherIcon.d.ts +1 -0
  1579. package/umd/src/cli/$runPromptbookCli.d.ts +6 -0
  1580. package/umd/src/cli/cli-commands/_boilerplate.d.ts +0 -4
  1581. package/umd/src/cli/cli-commands/about.d.ts +0 -6
  1582. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +54 -0
  1583. package/umd/src/cli/cli-commands/agent-folder/agentRunCliOptions.d.ts +25 -0
  1584. package/umd/src/cli/cli-commands/agent-folder/init.d.ts +10 -0
  1585. package/umd/src/cli/cli-commands/agent-folder/initializeAgentProjectConfiguration.d.ts +21 -0
  1586. package/umd/src/cli/cli-commands/agent-folder/initializeAgentRunnerCommand.d.ts +24 -0
  1587. package/umd/src/cli/cli-commands/agent-folder/printAgentInitializationSummary.d.ts +7 -0
  1588. package/umd/src/cli/cli-commands/agent-folder/run.d.ts +10 -0
  1589. package/umd/src/cli/cli-commands/agent-folder/run.test.d.ts +1 -0
  1590. package/umd/src/cli/cli-commands/agent-folder/runMultiple.d.ts +10 -0
  1591. package/umd/src/cli/cli-commands/agent-folder/tick.d.ts +10 -0
  1592. package/umd/src/cli/cli-commands/agent-folder.d.ts +16 -0
  1593. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +87 -0
  1594. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.test.d.ts +1 -0
  1595. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +7 -0
  1596. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +7 -0
  1597. package/umd/src/cli/cli-commands/agents-server/init.d.ts +9 -0
  1598. package/umd/src/cli/cli-commands/agents-server/init.test.d.ts +1 -0
  1599. package/umd/src/cli/cli-commands/agents-server/initializeAgentsServerProjectConfiguration.d.ts +17 -0
  1600. package/umd/src/cli/cli-commands/agents-server/printAgentsServerInitializationSummary.d.ts +7 -0
  1601. package/umd/src/cli/cli-commands/agents-server/run.d.ts +14 -0
  1602. package/umd/src/cli/cli-commands/agents-server/run.test.d.ts +1 -0
  1603. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +29 -0
  1604. package/umd/src/cli/cli-commands/agents-server.d.ts +8 -0
  1605. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +18 -0
  1606. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +14 -0
  1607. package/umd/src/cli/cli-commands/coder/agentsFile.d.ts +12 -0
  1608. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +137 -0
  1609. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.test.d.ts +1 -0
  1610. package/umd/src/cli/cli-commands/coder/ensureCoderEnvFile.d.ts +15 -0
  1611. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +7 -0
  1612. package/umd/src/cli/cli-commands/coder/ensureCoderMarkdownFile.d.ts +7 -0
  1613. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +7 -0
  1614. package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +7 -0
  1615. package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +7 -0
  1616. package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tags.d.ts +10 -0
  1617. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +10 -0
  1618. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.test.d.ts +1 -0
  1619. package/umd/src/cli/cli-commands/coder/formatDisplayPath.d.ts +6 -0
  1620. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +20 -0
  1621. package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  1622. package/umd/src/cli/cli-commands/coder/getDefaultCoderVscodeSettings.d.ts +6 -0
  1623. package/umd/src/cli/cli-commands/coder/getTypescriptModule.d.ts +19 -0
  1624. package/umd/src/cli/cli-commands/coder/getTypescriptModule.test.d.ts +1 -0
  1625. package/umd/src/cli/cli-commands/coder/init.d.ts +13 -0
  1626. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +25 -0
  1627. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +18 -0
  1628. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.test.d.ts +1 -0
  1629. package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +7 -0
  1630. package/umd/src/cli/cli-commands/coder/run.d.ts +10 -0
  1631. package/umd/src/cli/cli-commands/coder/run.test.d.ts +1 -0
  1632. package/umd/src/cli/cli-commands/coder/verify.d.ts +10 -0
  1633. package/umd/src/cli/cli-commands/coder/verify.test.d.ts +1 -0
  1634. package/umd/src/cli/cli-commands/coder.d.ts +18 -0
  1635. package/umd/src/cli/cli-commands/common/handleActionErrors.d.ts +13 -4
  1636. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +65 -0
  1637. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +130 -0
  1638. package/umd/src/cli/cli-commands/hello.d.ts +0 -5
  1639. package/umd/src/cli/cli-commands/list-models.d.ts +0 -4
  1640. package/umd/src/cli/cli-commands/list-scrapers.d.ts +0 -4
  1641. package/umd/src/cli/cli-commands/login.d.ts +0 -5
  1642. package/umd/src/cli/cli-commands/make.d.ts +1 -1
  1643. package/umd/src/cli/cli-commands/prettify.d.ts +0 -6
  1644. package/umd/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  1645. package/umd/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  1646. package/umd/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  1647. package/umd/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  1648. package/umd/src/cli/cli-commands/run.d.ts +1 -9
  1649. package/umd/src/cli/cli-commands/runInteractiveChatbot.d.ts +1 -5
  1650. package/umd/src/cli/cli-commands/start-agents-server.d.ts +0 -4
  1651. package/umd/src/cli/cli-commands/start-pipelines-server.d.ts +0 -5
  1652. package/umd/src/cli/cli-commands/test-command.d.ts +0 -7
  1653. package/umd/src/cli/common/$deprecateCliCommand.d.ts +8 -0
  1654. package/umd/src/cli/common/$deprecateCliCommand.test.d.ts +1 -0
  1655. package/umd/src/cli/common/$provideLlmToolsForCli.d.ts +6 -1
  1656. package/umd/src/cli/main.d.ts +2 -6
  1657. package/umd/src/cli/other/install.test.d.ts +1 -0
  1658. package/umd/src/cli/other/vpsInstall.test.d.ts +1 -0
  1659. package/umd/src/cli/promptbookCli.d.ts +0 -7
  1660. package/umd/src/cli/test/ptbk.d.ts +1 -1
  1661. package/umd/src/collection/agent-collection/AgentCollection.d.ts +0 -3
  1662. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
  1663. package/umd/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
  1664. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +51 -23
  1665. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabaseOptions.d.ts +3 -0
  1666. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
  1667. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.d.ts +40 -0
  1668. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/createAgentPersistenceRecords.test.d.ts +1 -0
  1669. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
  1670. package/umd/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  1671. package/umd/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +3 -2
  1672. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +11 -7
  1673. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromJson.d.ts +1 -0
  1674. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromPromise.d.ts +4 -3
  1675. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +3 -4
  1676. package/umd/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +2 -1
  1677. package/umd/src/collection/pipeline-collection/pipelineCollectionToJson.d.ts +0 -3
  1678. package/umd/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +2 -1
  1679. package/umd/src/commands/BOOK_VERSION/bookVersionCommandParser.d.ts +1 -0
  1680. package/umd/src/commands/EXPECT/ExpectCommand.d.ts +0 -3
  1681. package/umd/src/commands/EXPECT/expectCommandParser.d.ts +3 -2
  1682. package/umd/src/commands/FOREACH/ForeachCommand.d.ts +1 -0
  1683. package/umd/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  1684. package/umd/src/commands/FOREACH/foreachCommandParser.d.ts +1 -3
  1685. package/umd/src/commands/FORMAT/formatCommandParser.d.ts +1 -0
  1686. package/umd/src/commands/FORMFACTOR/FormfactorCommand.d.ts +1 -0
  1687. package/umd/src/commands/FORMFACTOR/formfactorCommandParser.d.ts +1 -0
  1688. package/umd/src/commands/JOKER/JokerCommand.d.ts +2 -1
  1689. package/umd/src/commands/JOKER/jokerCommandParser.d.ts +1 -0
  1690. package/umd/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +2 -1
  1691. package/umd/src/commands/KNOWLEDGE/knowledgeCommandParser.d.ts +1 -3
  1692. package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -5
  1693. package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.test.d.ts +0 -3
  1694. package/umd/src/commands/MODEL/ModelCommand.d.ts +1 -0
  1695. package/umd/src/commands/MODEL/modelCommandParser.d.ts +1 -0
  1696. package/umd/src/commands/PARAMETER/ParameterCommand.d.ts +3 -2
  1697. package/umd/src/commands/PARAMETER/parameterCommandParser.d.ts +1 -0
  1698. package/umd/src/commands/PERSONA/PersonaCommand.d.ts +3 -2
  1699. package/umd/src/commands/PERSONA/personaCommandParser.d.ts +1 -0
  1700. package/umd/src/commands/POSTPROCESS/PostprocessCommand.d.ts +2 -1
  1701. package/umd/src/commands/POSTPROCESS/postprocessCommandParser.d.ts +1 -0
  1702. package/umd/src/commands/SECTION/SectionCommand.d.ts +1 -0
  1703. package/umd/src/commands/SECTION/sectionCommandParser.d.ts +1 -0
  1704. package/umd/src/commands/URL/UrlCommand.d.ts +1 -0
  1705. package/umd/src/commands/URL/urlCommandParser.d.ts +1 -0
  1706. package/umd/src/commands/X_ACTION/ActionCommand.d.ts +1 -0
  1707. package/umd/src/commands/X_ACTION/actionCommandParser.d.ts +1 -3
  1708. package/umd/src/commands/X_INSTRUMENT/InstrumentCommand.d.ts +1 -0
  1709. package/umd/src/commands/X_INSTRUMENT/instrumentCommandParser.d.ts +1 -3
  1710. package/umd/src/commands/_BOILERPLATE/BoilerplateCommand.d.ts +1 -0
  1711. package/umd/src/commands/_BOILERPLATE/boilerplateCommandParser.d.ts +1 -0
  1712. package/umd/src/commands/_common/parseCommand.d.ts +1 -1
  1713. package/umd/src/commands/_common/stringifyCommand.d.ts +2 -2
  1714. package/umd/src/commands/_common/types/CommandParser.d.ts +2 -5
  1715. package/umd/src/commands/index.d.ts +0 -3
  1716. package/umd/src/commitments/ACTION/ACTION.d.ts +8 -5
  1717. package/umd/src/commitments/ACTION/ACTION.test.d.ts +1 -0
  1718. package/umd/src/commitments/CLOSED/CLOSED.d.ts +0 -3
  1719. package/umd/src/commitments/CLOSED/CLOSED.test.d.ts +0 -3
  1720. package/umd/src/commitments/COMPONENT/COMPONENT.d.ts +0 -3
  1721. package/umd/src/commitments/DELETE/DELETE.d.ts +7 -6
  1722. package/umd/src/commitments/DELETE/DELETE.test.d.ts +1 -0
  1723. package/umd/src/commitments/DICTIONARY/DICTIONARY.d.ts +0 -3
  1724. package/umd/src/commitments/FORMAT/FORMAT.d.ts +10 -7
  1725. package/umd/src/commitments/FORMAT/FORMAT.test.d.ts +1 -0
  1726. package/umd/src/commitments/FROM/FROM.d.ts +0 -3
  1727. package/umd/src/commitments/GOAL/GOAL.d.ts +4 -3
  1728. package/umd/src/commitments/IMPORT/IMPORT.d.ts +0 -3
  1729. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +4 -3
  1730. package/umd/src/commitments/LANGUAGE/LANGUAGE.d.ts +0 -3
  1731. package/umd/src/commitments/MEMORY/MEMORY.d.ts +4 -62
  1732. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
  1733. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
  1734. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
  1735. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
  1736. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
  1737. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
  1738. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  1739. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
  1740. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
  1741. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
  1742. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
  1743. package/umd/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
  1744. package/umd/src/commitments/MESSAGE/MESSAGE.d.ts +2 -5
  1745. package/umd/src/commitments/MESSAGE_SUFFIX/MESSAGE_SUFFIX.d.ts +0 -3
  1746. package/umd/src/commitments/META/META.d.ts +6 -3
  1747. package/umd/src/commitments/META/META_DESCRIPTION.d.ts +0 -3
  1748. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +26 -0
  1749. package/umd/src/commitments/META_COLOR/META_COLOR.d.ts +0 -3
  1750. package/umd/src/commitments/META_DISCLAIMER/META_DISCLAIMER.d.ts +0 -3
  1751. package/umd/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +30 -0
  1752. package/umd/src/commitments/META_FONT/META_FONT.d.ts +0 -3
  1753. package/umd/src/commitments/META_IMAGE/META_IMAGE.d.ts +0 -3
  1754. package/umd/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +30 -0
  1755. package/umd/src/commitments/META_LINK/META_LINK.d.ts +0 -3
  1756. package/umd/src/commitments/META_VOICE/META_VOICE.d.ts +36 -0
  1757. package/umd/src/commitments/MODEL/MODEL.d.ts +4 -3
  1758. package/umd/src/commitments/MODEL/MODEL.test.d.ts +1 -0
  1759. package/umd/src/commitments/OPEN/OPEN.d.ts +0 -3
  1760. package/umd/src/commitments/PERSONA/PERSONA.d.ts +7 -3
  1761. package/umd/src/commitments/RULE/RULE.d.ts +4 -3
  1762. package/umd/src/commitments/SAMPLE/SAMPLE.d.ts +13 -16
  1763. package/umd/src/commitments/SCENARIO/SCENARIO.d.ts +0 -3
  1764. package/umd/src/commitments/STYLE/STYLE.d.ts +9 -2
  1765. package/umd/src/commitments/TEAM/TEAM.d.ts +6 -5
  1766. package/umd/src/commitments/TEMPLATE/TEMPLATE.d.ts +10 -7
  1767. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +32 -0
  1768. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +6 -8
  1769. package/umd/src/commitments/USE_BROWSER/fetchUrlContent.d.ts +4 -7
  1770. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
  1771. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
  1772. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +39 -0
  1773. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  1774. package/umd/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  1775. package/umd/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  1776. package/umd/src/commitments/USE_CALENDAR/calendarReference.d.ts +65 -0
  1777. package/umd/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  1778. package/umd/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  1779. package/umd/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  1780. package/umd/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  1781. package/umd/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  1782. package/umd/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  1783. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +47 -0
  1784. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts +1 -0
  1785. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +6 -16
  1786. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
  1787. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
  1788. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
  1789. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  1790. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
  1791. package/umd/src/commitments/USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR.d.ts +0 -3
  1792. package/umd/src/commitments/USE_MCP/USE_MCP.d.ts +0 -3
  1793. package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +46 -0
  1794. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +36 -0
  1795. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
  1796. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +39 -0
  1797. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
  1798. package/umd/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
  1799. package/umd/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
  1800. package/umd/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
  1801. package/umd/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
  1802. package/umd/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
  1803. package/umd/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
  1804. package/umd/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
  1805. package/umd/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
  1806. package/umd/src/commitments/USE_PROJECT/projectReference.d.ts +49 -0
  1807. package/umd/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
  1808. package/umd/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  1809. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -5
  1810. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +38 -0
  1811. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
  1812. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
  1813. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
  1814. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +2 -5
  1815. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +11 -0
  1816. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +212 -0
  1817. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +38 -0
  1818. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
  1819. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
  1820. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
  1821. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
  1822. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  1823. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +78 -0
  1824. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
  1825. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
  1826. package/umd/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -5
  1827. package/umd/src/commitments/WALLET/WALLET.d.ts +21 -0
  1828. package/umd/src/commitments/WALLET/WALLET.test.d.ts +1 -0
  1829. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
  1830. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
  1831. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
  1832. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
  1833. package/umd/src/commitments/WALLET/createWalletTools.d.ts +7 -0
  1834. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
  1835. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
  1836. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
  1837. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
  1838. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
  1839. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
  1840. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +26 -0
  1841. package/umd/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +26 -0
  1842. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +52 -2
  1843. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +46 -3
  1844. package/umd/src/commitments/_base/createEmptyAgentModelRequirements.d.ts +0 -3
  1845. package/umd/src/commitments/_common/commitmentToolFunctions.d.ts +4 -5
  1846. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +12 -0
  1847. package/umd/src/commitments/_common/createWritingCommitmentSections.d.ts +18 -0
  1848. package/umd/src/commitments/_common/getAllCommitmentDefinitions.d.ts +1 -0
  1849. package/umd/src/commitments/_common/getAllCommitmentDefinitions.test.d.ts +1 -0
  1850. package/umd/src/commitments/_common/getAllCommitmentTypes.d.ts +1 -0
  1851. package/umd/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -5
  1852. package/umd/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  1853. package/umd/src/commitments/_common/getCommitmentDefinition.d.ts +1 -0
  1854. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.d.ts +51 -0
  1855. package/umd/src/commitments/_common/getCommitmentNoticeMetadata.test.d.ts +1 -0
  1856. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  1857. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.openClosed.test.d.ts +1 -0
  1858. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.order.test.d.ts +1 -0
  1859. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.use.test.d.ts +1 -0
  1860. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
  1861. package/umd/src/commitments/_common/isCommitmentSupported.d.ts +1 -0
  1862. package/umd/src/commitments/_common/sortCommitmentDefinitions.d.ts +31 -0
  1863. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +51 -0
  1864. package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +19 -0
  1865. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +109 -2
  1866. package/umd/src/commitments/index.d.ts +16 -6
  1867. package/umd/src/commitments/index.test.d.ts +1 -0
  1868. package/umd/src/config.d.ts +13 -6
  1869. package/umd/src/config.test.d.ts +0 -3
  1870. package/umd/src/constants/streaming.d.ts +0 -3
  1871. package/umd/src/constants.d.ts +0 -3
  1872. package/umd/src/conversion/archive/loadArchive.d.ts +1 -4
  1873. package/umd/src/conversion/archive/saveArchive.d.ts +1 -6
  1874. package/umd/src/conversion/compilePipeline.d.ts +2 -7
  1875. package/umd/src/conversion/compilePipelineOnRemoteServer.d.ts +2 -5
  1876. package/umd/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  1877. package/umd/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  1878. package/umd/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  1879. package/umd/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  1880. package/umd/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  1881. package/umd/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  1882. package/umd/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  1883. package/umd/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  1884. package/umd/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  1885. package/umd/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  1886. package/umd/src/conversion/parsePipeline.d.ts +1 -11
  1887. package/umd/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  1888. package/umd/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  1889. package/umd/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  1890. package/umd/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  1891. package/umd/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  1892. package/umd/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  1893. package/umd/src/conversion/pipelineJsonToString.d.ts +1 -7
  1894. package/umd/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  1895. package/umd/src/conversion/prettify/prettifyPipelineString.d.ts +0 -4
  1896. package/umd/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -8
  1897. package/umd/src/conversion/utils/extractParameterNamesFromTask.d.ts +2 -4
  1898. package/umd/src/conversion/validation/{_importPipeline.d.ts → _importPipeline.test.d.ts} +6 -4
  1899. package/umd/src/conversion/validation/pipelineStringToJson-parseErrors.test.d.ts +0 -3
  1900. package/umd/src/conversion/validation/validatePipeline-logicErrors.test.d.ts +0 -3
  1901. package/umd/src/conversion/validation/validatePipeline.d.ts +3 -9
  1902. package/umd/src/conversion/validation/validatePipeline.test.d.ts +0 -3
  1903. package/umd/src/dialogs/simple-prompt/SimplePromptInterfaceTools.d.ts +1 -4
  1904. package/umd/src/errors/0-BoilerplateError.d.ts +0 -3
  1905. package/umd/src/errors/0-index.d.ts +3 -3
  1906. package/umd/src/errors/ConflictError.d.ts +9 -0
  1907. package/umd/src/errors/DatabaseError.d.ts +0 -3
  1908. package/umd/src/errors/ExpectError.d.ts +2 -1
  1909. package/umd/src/errors/ParseError.d.ts +0 -3
  1910. package/umd/src/errors/PipelineExecutionError.d.ts +1 -4
  1911. package/umd/src/errors/utils/ErrorJson.d.ts +1 -1
  1912. package/umd/src/executables/$provideExecutablesForNode.d.ts +0 -5
  1913. package/umd/src/executables/apps/locateLibreoffice.d.ts +1 -5
  1914. package/umd/src/executables/apps/locatePandoc.d.ts +1 -5
  1915. package/umd/src/executables/apps/locateVscode.d.ts +7 -0
  1916. package/umd/src/executables/apps/locateVscode.test.d.ts +1 -0
  1917. package/umd/src/executables/browsers/locateBrowser.d.ts +9 -0
  1918. package/umd/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  1919. package/umd/src/executables/browsers/locateChrome.d.ts +7 -0
  1920. package/umd/src/executables/browsers/locateChrome.test.d.ts +1 -0
  1921. package/umd/src/executables/browsers/locateDefaultSystemBrowser.d.ts +9 -0
  1922. package/umd/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  1923. package/umd/src/executables/browsers/locateEdge.d.ts +7 -0
  1924. package/umd/src/executables/browsers/locateEdge.test.d.ts +1 -0
  1925. package/umd/src/executables/browsers/locateFirefox.d.ts +7 -0
  1926. package/umd/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  1927. package/umd/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  1928. package/umd/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  1929. package/umd/src/executables/browsers/locateSafari.d.ts +7 -0
  1930. package/umd/src/executables/locateApp.d.ts +1 -5
  1931. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +1 -5
  1932. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +1 -5
  1933. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -5
  1934. package/umd/src/execution/AbstractTaskResult.d.ts +1 -5
  1935. package/umd/src/execution/AvailableModel.d.ts +5 -5
  1936. package/umd/src/execution/CommonToolsOptions.d.ts +1 -6
  1937. package/umd/src/execution/Executables.d.ts +1 -1
  1938. package/umd/src/execution/ExecutionTask.d.ts +7 -6
  1939. package/umd/src/execution/FilesystemTools.d.ts +0 -3
  1940. package/umd/src/execution/LlmExecutionTools.d.ts +17 -11
  1941. package/umd/src/execution/LlmExecutionToolsConstructor.d.ts +0 -3
  1942. package/umd/src/execution/PipelineExecutor.d.ts +1 -4
  1943. package/umd/src/execution/PipelineExecutorResult.d.ts +2 -5
  1944. package/umd/src/execution/PromptResult.d.ts +4 -10
  1945. package/umd/src/execution/PromptbookFetch.d.ts +1 -1
  1946. package/umd/src/execution/PromptbookFetch.test-type.d.ts +0 -4
  1947. package/umd/src/execution/ScriptExecutionTools.d.ts +2 -6
  1948. package/umd/src/execution/UncertainNumber.d.ts +2 -2
  1949. package/umd/src/execution/Usage.d.ts +4 -3
  1950. package/umd/src/execution/UserInterfaceTools.d.ts +4 -2
  1951. package/umd/src/execution/assertsTaskSuccessful.d.ts +1 -3
  1952. package/umd/src/execution/createPipelineExecutor/00-createPipelineExecutor.d.ts +1 -0
  1953. package/umd/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  1954. package/umd/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -4
  1955. package/umd/src/execution/createPipelineExecutor/30-executeFormatSubvalues.d.ts +1 -1
  1956. package/umd/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +3 -4
  1957. package/umd/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  1958. package/umd/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  1959. package/umd/src/execution/createPipelineExecutor/getContextForTask.d.ts +3 -2
  1960. package/umd/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  1961. package/umd/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -5
  1962. package/umd/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  1963. package/umd/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  1964. package/umd/src/execution/createPipelineExecutor/knowledgePiecesToString.d.ts +0 -1
  1965. package/umd/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  1966. package/umd/src/execution/execution-report/ExecutionReportJson.d.ts +4 -3
  1967. package/umd/src/execution/execution-report/ExecutionReportString.d.ts +0 -3
  1968. package/umd/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  1969. package/umd/src/execution/execution-report/executionReportJsonToString.d.ts +0 -5
  1970. package/umd/src/execution/resolveTaskTldr.d.ts +32 -0
  1971. package/umd/src/execution/resolveTaskTldr.test.d.ts +1 -0
  1972. package/umd/src/execution/translation/automatic-translate/automatic-translators/AutomaticTranslator.d.ts +3 -1
  1973. package/umd/src/execution/translation/automatic-translate/automatic-translators/FakeAutomaticTranslator.d.ts +3 -1
  1974. package/umd/src/execution/translation/automatic-translate/automatic-translators/TranslatorOptions.d.ts +3 -1
  1975. package/umd/src/execution/translation/automatic-translate/automatic-translators/utils/extractMultiplicatedOccurrence.d.ts +2 -0
  1976. package/umd/src/execution/translation/automatic-translate/translateMessages.d.ts +3 -5
  1977. package/umd/src/execution/utils/$provideExecutionToolsForNode.d.ts +2 -6
  1978. package/umd/src/execution/utils/checkExpectations.d.ts +2 -5
  1979. package/umd/src/execution/utils/forEachAsync.d.ts +5 -1
  1980. package/umd/src/execution/utils/usage-constants.d.ts +0 -3
  1981. package/umd/src/execution/utils/usageToHuman.d.ts +2 -9
  1982. package/umd/src/execution/utils/validatePromptResult.d.ts +2 -1
  1983. package/umd/src/file-security-checkers/FileSecurityCheckResult.d.ts +33 -0
  1984. package/umd/src/file-security-checkers/FileSecurityChecker.d.ts +36 -0
  1985. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +37 -0
  1986. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
  1987. package/umd/src/formats/_common/FormatParser.d.ts +4 -11
  1988. package/umd/src/formats/_common/FormatSubvalueParser.d.ts +2 -6
  1989. package/umd/src/formats/csv/CsvFormatParser.d.ts +2 -8
  1990. package/umd/src/formats/csv/utils/csvParse.d.ts +1 -1
  1991. package/umd/src/formats/index.d.ts +0 -3
  1992. package/umd/src/formats/json/JsonFormatParser.d.ts +0 -11
  1993. package/umd/src/formats/text/TextFormatParser.d.ts +0 -9
  1994. package/umd/src/formats/xml/XmlFormatParser.d.ts +0 -11
  1995. package/umd/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +3 -6
  1996. package/umd/src/formfactors/_common/FormfactorDefinition.d.ts +1 -0
  1997. package/umd/src/formfactors/index.d.ts +2 -5
  1998. package/umd/src/formfactors/matcher/MatcherFormfactorDefinition.d.ts +1 -1
  1999. package/umd/src/formfactors/translator/TranslatorFormfactorDefinition.d.ts +1 -1
  2000. package/umd/src/high-level-abstractions/_common/HighLevelAbstraction.d.ts +0 -5
  2001. package/umd/src/high-level-abstractions/index.d.ts +0 -4
  2002. package/umd/src/high-level-abstractions/quick-chatbot/QuickChatbotHla.d.ts +0 -3
  2003. package/umd/src/import-plugins/FileImportPlugin.d.ts +1 -1
  2004. package/umd/src/llm-providers/_common/register/$llmToolsMetadataRegister.d.ts +2 -3
  2005. package/umd/src/llm-providers/_common/register/$llmToolsRegister.d.ts +2 -3
  2006. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -4
  2007. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -3
  2008. package/umd/src/llm-providers/_common/register/$provideLlmToolsForTestingAndScriptsAndPlayground.d.ts +3 -6
  2009. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +6 -9
  2010. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -18
  2011. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -5
  2012. package/umd/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -6
  2013. package/umd/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -7
  2014. package/umd/src/llm-providers/_common/register/LlmToolsOptions.d.ts +0 -4
  2015. package/umd/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +4 -1
  2016. package/umd/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -4
  2017. package/umd/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -5
  2018. package/umd/src/llm-providers/_common/utils/cache/cacheLlmTools.d.ts +1 -0
  2019. package/umd/src/llm-providers/_common/utils/count-total-usage/LlmExecutionToolsWithTotalUsage.d.ts +0 -4
  2020. package/umd/src/llm-providers/_common/utils/count-total-usage/countUsage.d.ts +1 -0
  2021. package/umd/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.d.ts +0 -7
  2022. package/umd/src/llm-providers/_common/utils/removeUnsupportedModelRequirements.d.ts +4 -0
  2023. package/umd/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +3 -1
  2024. package/umd/src/llm-providers/_multiple/getSingleLlmExecutionTools.d.ts +0 -4
  2025. package/umd/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +5 -8
  2026. package/umd/src/llm-providers/_multiple/playground/playground.d.ts +0 -3
  2027. package/umd/src/llm-providers/agent/Agent.d.ts +9 -6
  2028. package/umd/src/llm-providers/agent/Agent.test.d.ts +1 -0
  2029. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +41 -28
  2030. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  2031. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  2032. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  2033. package/umd/src/llm-providers/agent/AgentOptions.d.ts +8 -0
  2034. package/umd/src/llm-providers/agent/CreateAgentLlmExecutionToolsOptions.d.ts +9 -0
  2035. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +7 -6
  2036. package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +5 -1
  2037. package/umd/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  2038. package/umd/src/llm-providers/agent/playground/playground.d.ts +0 -6
  2039. package/umd/src/llm-providers/agent/register-configuration.d.ts +0 -5
  2040. package/umd/src/llm-providers/agent/register-constructor.d.ts +0 -4
  2041. package/umd/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
  2042. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +4 -11
  2043. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionToolsOptions.d.ts +3 -3
  2044. package/umd/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +3 -10
  2045. package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +4 -4
  2046. package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.test.d.ts +0 -3
  2047. package/umd/src/llm-providers/anthropic-claude/createAnthropicClaudeExecutionTools.d.ts +0 -7
  2048. package/umd/src/llm-providers/anthropic-claude/playground/playground.d.ts +0 -5
  2049. package/umd/src/llm-providers/anthropic-claude/register-configuration.d.ts +0 -3
  2050. package/umd/src/llm-providers/anthropic-claude/register-constructor.d.ts +0 -5
  2051. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -7
  2052. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +3 -3
  2053. package/umd/src/llm-providers/azure-openai/createAzureOpenAiExecutionTools.d.ts +0 -4
  2054. package/umd/src/llm-providers/azure-openai/playground/playground.d.ts +0 -4
  2055. package/umd/src/llm-providers/azure-openai/register-configuration.d.ts +0 -3
  2056. package/umd/src/llm-providers/azure-openai/register-constructor.d.ts +0 -4
  2057. package/umd/src/llm-providers/deepseek/DeepseekExecutionToolsOptions.d.ts +1 -0
  2058. package/umd/src/llm-providers/deepseek/createDeepseekExecutionTools.d.ts +0 -3
  2059. package/umd/src/llm-providers/deepseek/deepseek-models.d.ts +3 -8
  2060. package/umd/src/llm-providers/deepseek/register-configuration.d.ts +0 -3
  2061. package/umd/src/llm-providers/deepseek/register-constructor.d.ts +0 -4
  2062. package/umd/src/llm-providers/google/GoogleExecutionToolsOptions.d.ts +1 -0
  2063. package/umd/src/llm-providers/google/createGoogleExecutionTools.d.ts +0 -4
  2064. package/umd/src/llm-providers/google/google-models.d.ts +3 -8
  2065. package/umd/src/llm-providers/google/register-configuration.d.ts +0 -3
  2066. package/umd/src/llm-providers/google/register-constructor.d.ts +0 -4
  2067. package/umd/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +2 -6
  2068. package/umd/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -5
  2069. package/umd/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -4
  2070. package/umd/src/llm-providers/mocked/test/joker.test.d.ts +0 -3
  2071. package/umd/src/llm-providers/mocked/test/mocked-chat.test.d.ts +0 -4
  2072. package/umd/src/llm-providers/mocked/test/mocked-completion.test.d.ts +0 -3
  2073. package/umd/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -4
  2074. package/umd/src/llm-providers/ollama/OllamaExecutionToolsOptions.d.ts +1 -0
  2075. package/umd/src/llm-providers/ollama/ollama-models.d.ts +1 -4
  2076. package/umd/src/llm-providers/ollama/playground/playground.d.ts +0 -4
  2077. package/umd/src/llm-providers/ollama/register-configuration.d.ts +0 -3
  2078. package/umd/src/llm-providers/ollama/register-constructor.d.ts +0 -4
  2079. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +27 -63
  2080. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.test.d.ts +1 -0
  2081. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  2082. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  2083. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  2084. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  2085. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +38 -11
  2086. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  2087. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  2088. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  2089. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  2090. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  2091. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +16 -40
  2092. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionToolsOptions.d.ts +2 -0
  2093. package/umd/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  2094. package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  2095. package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  2096. package/umd/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  2097. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  2098. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  2099. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +3 -46
  2100. package/umd/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  2101. package/umd/src/llm-providers/openai/computeOpenAiUsage.d.ts +4 -4
  2102. package/umd/src/llm-providers/openai/computeOpenAiUsage.test.d.ts +0 -3
  2103. package/umd/src/llm-providers/openai/createOpenAiAssistantExecutionTools.d.ts +0 -4
  2104. package/umd/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -5
  2105. package/umd/src/llm-providers/openai/createOpenAiExecutionTools.d.ts +0 -4
  2106. package/umd/src/llm-providers/openai/openai-models.d.ts +2 -1
  2107. package/umd/src/llm-providers/openai/openai-models.test.d.ts +0 -3
  2108. package/umd/src/llm-providers/openai/playground/playground.d.ts +0 -4
  2109. package/umd/src/llm-providers/openai/register-configuration.d.ts +0 -3
  2110. package/umd/src/llm-providers/openai/register-constructor.d.ts +0 -4
  2111. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  2112. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  2113. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  2114. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +29 -0
  2115. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +29 -0
  2116. package/umd/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +3 -10
  2117. package/umd/src/llm-providers/remote/playground/playground.d.ts +0 -3
  2118. package/umd/src/llm-providers/vercel/playground/playground.d.ts +0 -4
  2119. package/umd/src/other/templates/getBookTemplates.d.ts +3 -6
  2120. package/umd/src/personas/preparePersona.d.ts +2 -8
  2121. package/umd/src/pipeline/PipelineInterface/PipelineInterface.d.ts +1 -0
  2122. package/umd/src/pipeline/PipelineInterface/constants.d.ts +0 -3
  2123. package/umd/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -12
  2124. package/umd/src/pipeline/PipelineJson/DialogTaskJson.d.ts +1 -3
  2125. package/umd/src/pipeline/PipelineJson/Expectations.d.ts +5 -5
  2126. package/umd/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -10
  2127. package/umd/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -6
  2128. package/umd/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  2129. package/umd/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -6
  2130. package/umd/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  2131. package/umd/src/pipeline/PipelineJson/PreparationJson.d.ts +4 -6
  2132. package/umd/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  2133. package/umd/src/pipeline/PipelineJson/ScriptTaskJson.d.ts +1 -4
  2134. package/umd/src/pipeline/PipelineJson/SimpleTaskJson.d.ts +1 -3
  2135. package/umd/src/pipeline/book-notation.d.ts +1 -4
  2136. package/umd/src/pipeline/isValidPipelineString.d.ts +1 -3
  2137. package/umd/src/pipeline/isValidPipelineString.test.d.ts +0 -3
  2138. package/umd/src/pipeline/prompt-notation/helpers/ParameterEscaping.d.ts +5 -0
  2139. package/umd/src/pipeline/prompt-notation/helpers/ParameterNaming.d.ts +1 -0
  2140. package/umd/src/pipeline/prompt-notation/helpers/ParameterSection.d.ts +2 -0
  2141. package/umd/src/pipeline/prompt-notation.d.ts +3 -6
  2142. package/umd/src/pipeline/prompt-notation.test.d.ts +0 -3
  2143. package/umd/src/pipeline/validatePipelineString.d.ts +1 -3
  2144. package/umd/src/playground/permanent/_boilerplate.d.ts +0 -3
  2145. package/umd/src/playground/permanent/agent-with-browser-playground.d.ts +0 -3
  2146. package/umd/src/playground/permanent/error-handling-playground.d.ts +0 -3
  2147. package/umd/src/playground/playground.d.ts +1 -3
  2148. package/umd/src/postprocessing/utils/extractBlock.d.ts +3 -2
  2149. package/umd/src/postprocessing/utils/extractJsonBlock.d.ts +3 -7
  2150. package/umd/src/prepare/PrepareAndScrapeOptions.d.ts +1 -5
  2151. package/umd/src/prepare/preparePipeline.d.ts +3 -2
  2152. package/umd/src/prepare/preparePipelineOnRemoteServer.d.ts +2 -5
  2153. package/umd/src/prepare/prepareTasks.d.ts +6 -10
  2154. package/umd/src/prepare/unpreparePipeline.d.ts +1 -5
  2155. package/umd/src/remote-server/RemoteServer.d.ts +3 -0
  2156. package/umd/src/remote-server/openapi.d.ts +3 -4
  2157. package/umd/src/remote-server/socket-types/_subtypes/Identification.d.ts +3 -7
  2158. package/umd/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  2159. package/umd/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  2160. package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Request.d.ts +0 -3
  2161. package/umd/src/remote-server/socket-types/listModels/PromptbookServer_ListModels_Response.d.ts +0 -3
  2162. package/umd/src/remote-server/startAgentServer.d.ts +7 -5
  2163. package/umd/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  2164. package/umd/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  2165. package/umd/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  2166. package/umd/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  2167. package/umd/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  2168. package/umd/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  2169. package/umd/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  2170. package/umd/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  2171. package/umd/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  2172. package/umd/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  2173. package/umd/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  2174. package/umd/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  2175. package/umd/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  2176. package/umd/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  2177. package/umd/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  2178. package/umd/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  2179. package/umd/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  2180. package/umd/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  2181. package/umd/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  2182. package/umd/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  2183. package/umd/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  2184. package/umd/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  2185. package/umd/src/remote-server/startRemoteServer.d.ts +1 -16
  2186. package/umd/src/remote-server/types/RemoteClientOptions.d.ts +1 -6
  2187. package/umd/src/remote-server/types/RemoteServerOptions.d.ts +12 -5
  2188. package/umd/src/remote-server/ui/ServerApp.d.ts +1 -0
  2189. package/umd/src/remote-server/ui/types.d.ts +3 -0
  2190. package/umd/src/scrapers/_boilerplate/BoilerplateScraper.d.ts +2 -8
  2191. package/umd/src/scrapers/_boilerplate/createBoilerplateScraper.d.ts +0 -3
  2192. package/umd/src/scrapers/_boilerplate/playground/boilerplate-scraper-playground.d.ts +0 -3
  2193. package/umd/src/scrapers/_boilerplate/register-constructor.d.ts +0 -4
  2194. package/umd/src/scrapers/_boilerplate/register-metadata.d.ts +0 -3
  2195. package/umd/src/scrapers/_common/Scraper.d.ts +4 -9
  2196. package/umd/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -4
  2197. package/umd/src/scrapers/_common/prepareKnowledgePieces.d.ts +1 -0
  2198. package/umd/src/scrapers/_common/register/$provideFilesystemForNode.d.ts +0 -4
  2199. package/umd/src/scrapers/_common/register/$provideScrapersForNode.d.ts +1 -4
  2200. package/umd/src/scrapers/_common/register/$provideScriptingForNode.d.ts +0 -4
  2201. package/umd/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -4
  2202. package/umd/src/scrapers/_common/register/$scrapersMetadataRegister.d.ts +2 -3
  2203. package/umd/src/scrapers/_common/register/$scrapersRegister.d.ts +2 -3
  2204. package/umd/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  2205. package/umd/src/scrapers/_common/register/ScraperConstructor.d.ts +0 -3
  2206. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -8
  2207. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.test.d.ts +0 -3
  2208. package/umd/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  2209. package/umd/src/scrapers/_common/utils/promptbookFetch.d.ts +0 -3
  2210. package/umd/src/scrapers/document/DocumentScraper.d.ts +2 -8
  2211. package/umd/src/scrapers/document/DocumentScraper.test.d.ts +0 -3
  2212. package/umd/src/scrapers/document/createDocumentScraper.d.ts +0 -3
  2213. package/umd/src/scrapers/document/playground/document-scraper-playground.d.ts +0 -3
  2214. package/umd/src/scrapers/document/register-constructor.d.ts +0 -4
  2215. package/umd/src/scrapers/document/register-metadata.d.ts +0 -3
  2216. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.d.ts +2 -8
  2217. package/umd/src/scrapers/document-legacy/LegacyDocumentScraper.test.d.ts +0 -3
  2218. package/umd/src/scrapers/document-legacy/createLegacyDocumentScraper.d.ts +0 -3
  2219. package/umd/src/scrapers/document-legacy/playground/legacy-document-scraper-playground.d.ts +0 -3
  2220. package/umd/src/scrapers/document-legacy/register-constructor.d.ts +0 -4
  2221. package/umd/src/scrapers/document-legacy/register-metadata.d.ts +0 -3
  2222. package/umd/src/scrapers/markdown/MarkdownScraper.d.ts +1 -4
  2223. package/umd/src/scrapers/markdown/MarkdownScraper.test.d.ts +0 -3
  2224. package/umd/src/scrapers/markdown/createMarkdownScraper.d.ts +0 -3
  2225. package/umd/src/scrapers/markdown/playground/markdown-scraper-playground.d.ts +0 -3
  2226. package/umd/src/scrapers/markdown/register-constructor.d.ts +0 -4
  2227. package/umd/src/scrapers/markdown/register-metadata.d.ts +0 -3
  2228. package/umd/src/scrapers/markitdown/MarkitdownScraper.d.ts +1 -7
  2229. package/umd/src/scrapers/markitdown/createMarkitdownScraper.d.ts +0 -4
  2230. package/umd/src/scrapers/markitdown/playground/markitdown-scraper-playground.d.ts +0 -3
  2231. package/umd/src/scrapers/markitdown/register-constructor.d.ts +0 -5
  2232. package/umd/src/scrapers/markitdown/register-metadata.d.ts +0 -3
  2233. package/umd/src/scrapers/pdf/PdfScraper.d.ts +1 -6
  2234. package/umd/src/scrapers/pdf/createPdfScraper.d.ts +0 -3
  2235. package/umd/src/scrapers/pdf/playground/pdf-scraper-playground.d.ts +0 -3
  2236. package/umd/src/scrapers/pdf/register-constructor.d.ts +0 -4
  2237. package/umd/src/scrapers/pdf/register-metadata.d.ts +0 -3
  2238. package/umd/src/scrapers/website/WebsiteScraper.d.ts +3 -9
  2239. package/umd/src/scrapers/website/createWebsiteScraper.d.ts +0 -3
  2240. package/umd/src/scrapers/website/playground/website-scraper-playground.d.ts +0 -3
  2241. package/umd/src/scrapers/website/register-constructor.d.ts +0 -4
  2242. package/umd/src/scrapers/website/register-metadata.d.ts +0 -3
  2243. package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.d.ts +1 -5
  2244. package/umd/src/scripting/javascript/JavascriptEvalExecutionTools.test.d.ts +0 -3
  2245. package/umd/src/scripting/javascript/JavascriptExecutionTools.d.ts +1 -0
  2246. package/umd/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -5
  2247. package/umd/src/scripting/javascript/postprocessing-functions.d.ts +1 -5
  2248. package/umd/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +3 -5
  2249. package/umd/src/search-engines/SearchEngine.d.ts +5 -1
  2250. package/umd/src/search-engines/SearchResult.d.ts +1 -1
  2251. package/umd/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  2252. package/umd/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  2253. package/umd/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  2254. package/umd/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  2255. package/umd/src/speech-recognition/BrowserSpeechRecognition.d.ts +0 -4
  2256. package/umd/src/speech-recognition/OpenAiSpeechRecognition.d.ts +74 -4
  2257. package/umd/src/speech-recognition/OpenAiSpeechRecognition.test.d.ts +1 -0
  2258. package/umd/src/storage/_common/PromptbookStorage.d.ts +0 -4
  2259. package/umd/src/storage/_common/PromptbookStorage.test-type.d.ts +0 -4
  2260. package/umd/src/storage/env-storage/$EnvStorage.d.ts +0 -3
  2261. package/umd/src/storage/file-cache-storage/FileCacheStorage.d.ts +0 -4
  2262. package/umd/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  2263. package/umd/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  2264. package/umd/src/storage/local-storage/getIndexedDbStorage.d.ts +0 -3
  2265. package/umd/src/storage/local-storage/getLocalStorage.d.ts +0 -3
  2266. package/umd/src/storage/local-storage/getSessionStorage.d.ts +0 -3
  2267. package/umd/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  2268. package/umd/src/storage/local-storage/utils/makePromptbookStorageFromIndexedDb.d.ts +1 -0
  2269. package/umd/src/storage/local-storage/utils/makePromptbookStorageFromWebStorage.d.ts +0 -4
  2270. package/umd/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  2271. package/umd/src/transpilers/_common/BookTranspilerOptions.d.ts +20 -0
  2272. package/umd/src/transpilers/_common/TranspiledTeamExport.d.ts +80 -0
  2273. package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +55 -0
  2274. package/umd/src/transpilers/_common/createZodSchemaSource.d.ts +40 -0
  2275. package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +18 -0
  2276. package/umd/src/transpilers/_common/formatUsedToolFunctions.test.d.ts +1 -0
  2277. package/umd/src/transpilers/_common/prepareSdkTranspilerContext.d.ts +48 -0
  2278. package/umd/src/transpilers/_common/register/$bookTranspilersRegister.d.ts +1 -3
  2279. package/umd/src/transpilers/_common/resolveClaudeModelName.d.ts +12 -0
  2280. package/umd/src/transpilers/_common/transpiledTeamTranspilers.test.d.ts +1 -0
  2281. package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +16 -0
  2282. package/umd/src/transpilers/agent-os/AgentOsTranspiler.test.d.ts +1 -0
  2283. package/umd/src/transpilers/agent-os/register.d.ts +12 -0
  2284. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +16 -0
  2285. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.test.d.ts +1 -0
  2286. package/umd/src/transpilers/anthropic-claude-managed/register.d.ts +12 -0
  2287. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +16 -0
  2288. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.test.d.ts +1 -0
  2289. package/umd/src/transpilers/anthropic-claude-sdk/register.d.ts +12 -0
  2290. package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +16 -0
  2291. package/umd/src/transpilers/e2b/E2BTranspiler.test.d.ts +1 -0
  2292. package/umd/src/transpilers/e2b/register.d.ts +12 -0
  2293. package/umd/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  2294. package/umd/src/transpilers/formatted-book-in-markdown/register.d.ts +2 -5
  2295. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +16 -0
  2296. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.test.d.ts +1 -0
  2297. package/umd/src/transpilers/openai-agents/register.d.ts +12 -0
  2298. package/umd/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  2299. package/umd/src/transpilers/openai-sdk/playground/playground.d.ts +0 -3
  2300. package/umd/src/transpilers/openai-sdk/register.d.ts +2 -5
  2301. package/umd/src/types/Arrayable.d.ts +1 -0
  2302. package/umd/src/types/InputParameters_private.d.ts +13 -0
  2303. package/umd/src/types/IntermediateFilesStrategy.d.ts +0 -3
  2304. package/umd/src/types/LlmCall.d.ts +1 -4
  2305. package/umd/src/types/LlmToolDefinition.d.ts +19 -8
  2306. package/umd/src/types/Message.d.ts +4 -3
  2307. package/umd/src/types/ModelRequirements.d.ts +5 -2
  2308. package/umd/src/types/ModelVariant.d.ts +3 -0
  2309. package/umd/src/types/Parameters.d.ts +31 -0
  2310. package/umd/src/types/Parameters_private.d.ts +18 -0
  2311. package/umd/src/types/Prompt.d.ts +8 -18
  2312. package/umd/src/types/ReservedParameters_private.d.ts +11 -0
  2313. package/umd/src/types/SpeechRecognition.d.ts +19 -1
  2314. package/umd/src/types/ToolCall.d.ts +55 -1
  2315. package/umd/src/types/Updatable.d.ts +1 -3
  2316. package/umd/src/types/number_bytes.d.ts +21 -0
  2317. package/umd/src/types/number_id.d.ts +13 -0
  2318. package/umd/src/types/number_likeness.d.ts +8 -0
  2319. package/umd/src/types/number_milliseconds.d.ts +33 -0
  2320. package/umd/src/types/number_percent.d.ts +18 -0
  2321. package/umd/src/types/number_positive.d.ts +16 -0
  2322. package/umd/src/types/number_usd.d.ts +10 -0
  2323. package/umd/src/types/string_agent_hash_private.d.ts +9 -0
  2324. package/umd/src/types/string_agent_name.d.ts +32 -0
  2325. package/umd/src/types/string_agent_name_in_book_private.d.ts +8 -0
  2326. package/umd/src/types/string_agent_name_private.d.ts +10 -0
  2327. package/umd/src/types/string_agent_permanent_id_private.d.ts +11 -0
  2328. package/umd/src/types/string_agent_url.d.ts +7 -0
  2329. package/umd/src/types/string_agent_url_private.d.ts +9 -0
  2330. package/umd/src/types/string_base64.d.ts +13 -0
  2331. package/umd/src/types/string_base64_private.d.ts +17 -0
  2332. package/umd/src/types/string_base_url.d.ts +7 -0
  2333. package/umd/src/types/string_base_url_private.d.ts +9 -0
  2334. package/umd/src/types/string_business_category_name.d.ts +5 -0
  2335. package/umd/src/types/string_business_category_name_private.d.ts +6 -0
  2336. package/umd/src/types/string_char_private.d.ts +8 -0
  2337. package/umd/src/types/string_chat_prompt_private.d.ts +9 -0
  2338. package/umd/src/types/string_completion_prompt_private.d.ts +9 -0
  2339. package/umd/src/types/string_email.d.ts +13 -0
  2340. package/umd/src/types/string_email_private.d.ts +16 -0
  2341. package/umd/src/types/string_filename.d.ts +39 -0
  2342. package/umd/src/types/string_host.d.ts +42 -0
  2343. package/umd/src/types/string_host_private.d.ts +55 -0
  2344. package/umd/src/types/string_href.d.ts +19 -0
  2345. package/umd/src/types/string_href_private.d.ts +24 -0
  2346. package/umd/src/types/string_knowledge_source_content.d.ts +29 -0
  2347. package/umd/src/types/string_markdown.d.ts +137 -0
  2348. package/umd/src/types/string_mime_type.d.ts +15 -0
  2349. package/umd/src/types/string_mime_type_private.d.ts +18 -0
  2350. package/umd/src/types/string_model_description_private.d.ts +8 -0
  2351. package/umd/src/types/string_model_name.d.ts +7 -0
  2352. package/umd/src/types/string_model_name_private.d.ts +8 -0
  2353. package/umd/src/types/string_name.d.ts +31 -0
  2354. package/umd/src/types/string_name_private.d.ts +9 -0
  2355. package/umd/src/types/string_page.d.ts +15 -0
  2356. package/umd/src/types/string_page_private.d.ts +9 -0
  2357. package/umd/src/types/string_parameter_name.d.ts +14 -0
  2358. package/umd/src/types/string_parameter_value_private.d.ts +9 -0
  2359. package/umd/src/types/string_person_fullname.d.ts +85 -0
  2360. package/umd/src/types/string_persona_description.d.ts +14 -0
  2361. package/umd/src/types/string_persona_description_private.d.ts +8 -0
  2362. package/umd/src/types/string_pipeline_root_url.d.ts +7 -0
  2363. package/umd/src/types/string_pipeline_root_url_private.d.ts +9 -0
  2364. package/umd/src/types/string_pipeline_url.d.ts +13 -0
  2365. package/umd/src/types/string_pipeline_url_private.d.ts +17 -0
  2366. package/umd/src/types/string_prompt.d.ts +49 -0
  2367. package/umd/src/types/string_prompt_image_private.d.ts +8 -0
  2368. package/umd/src/types/string_prompt_private.d.ts +8 -0
  2369. package/umd/src/types/string_promptbook_server_url.d.ts +7 -0
  2370. package/umd/src/types/string_promptbook_server_url_private.d.ts +9 -0
  2371. package/umd/src/types/string_reserved_parameter_name_private.d.ts +11 -0
  2372. package/umd/src/types/string_sha256.d.ts +44 -0
  2373. package/umd/src/types/string_system_message_private.d.ts +9 -0
  2374. package/umd/src/types/string_template_private.d.ts +8 -0
  2375. package/umd/src/types/string_text_prompt_private.d.ts +9 -0
  2376. package/umd/src/types/string_title.d.ts +8 -0
  2377. package/umd/src/types/string_title_private.d.ts +9 -0
  2378. package/umd/src/types/string_token.d.ts +58 -0
  2379. package/umd/src/types/string_url.d.ts +23 -0
  2380. package/umd/src/types/string_url_image.d.ts +7 -0
  2381. package/umd/src/types/string_url_image_private.d.ts +9 -0
  2382. package/umd/src/types/string_url_private.d.ts +8 -0
  2383. package/umd/src/types/typeAliasEmoji.d.ts +0 -3
  2384. package/umd/src/types/typeAliases.d.ts +15 -747
  2385. package/umd/src/utils/DEFAULT_THINKING_MESSAGES.d.ts +5 -1
  2386. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +66 -6
  2387. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.test.d.ts +1 -0
  2388. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +11 -0
  2389. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +15 -0
  2390. package/umd/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
  2391. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +10 -0
  2392. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +10 -0
  2393. package/umd/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +12 -0
  2394. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +12 -0
  2395. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +11 -0
  2396. package/umd/src/utils/chat/chatAttachments.d.ts +51 -0
  2397. package/umd/src/utils/chat/chatAttachments.test.d.ts +1 -0
  2398. package/umd/src/utils/chat/constants.d.ts +18 -0
  2399. package/umd/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
  2400. package/umd/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
  2401. package/umd/src/utils/chat/escapeRegExp.d.ts +6 -0
  2402. package/umd/src/utils/clientVersion.d.ts +0 -3
  2403. package/umd/src/utils/color/$randomColor.d.ts +0 -5
  2404. package/umd/src/utils/color/Color.d.ts +6 -45
  2405. package/umd/src/utils/color/ColorValue.d.ts +55 -0
  2406. package/umd/src/utils/color/css-colors.d.ts +0 -3
  2407. package/umd/src/utils/color/internal-utils/hslToRgb.d.ts +2 -6
  2408. package/umd/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -6
  2409. package/umd/src/utils/color/isHexColorString.d.ts +10 -0
  2410. package/umd/src/utils/color/operators/ColorTransformer.d.ts +2 -0
  2411. package/umd/src/utils/color/operators/darken.d.ts +1 -1
  2412. package/umd/src/utils/color/operators/grayscale.d.ts +1 -1
  2413. package/umd/src/utils/color/operators/lighten.d.ts +1 -4
  2414. package/umd/src/utils/color/operators/mixWithColor.d.ts +1 -1
  2415. package/umd/src/utils/color/operators/saturate.d.ts +1 -4
  2416. package/umd/src/utils/color/parseColorString.d.ts +11 -0
  2417. package/umd/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  2418. package/umd/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  2419. package/umd/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  2420. package/umd/src/utils/color/utils/areColorsEqual.d.ts +0 -3
  2421. package/umd/src/utils/color/utils/colorDistance.d.ts +2 -2
  2422. package/umd/src/utils/color/utils/colorHue.d.ts +0 -1
  2423. package/umd/src/utils/color/utils/colorHueDistance.d.ts +0 -1
  2424. package/umd/src/utils/color/utils/colorToDataUrl.d.ts +3 -4
  2425. package/umd/src/utils/database/uniqueConstraint.d.ts +26 -0
  2426. package/umd/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +4 -5
  2427. package/umd/src/utils/editable/edit-pipeline-string/deflatePipeline.d.ts +0 -3
  2428. package/umd/src/utils/editable/types/PipelineEditableSerialized.d.ts +3 -3
  2429. package/umd/src/utils/editable/utils/renamePipelineParameter.d.ts +5 -4
  2430. package/umd/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -7
  2431. package/umd/src/utils/environment/$detectRuntimeEnvironment.d.ts +0 -3
  2432. package/umd/src/utils/environment/$getGlobalScope.d.ts +1 -1
  2433. package/umd/src/utils/environment/$isRunningInBrowser.d.ts +0 -3
  2434. package/umd/src/utils/environment/$isRunningInJest.d.ts +0 -3
  2435. package/umd/src/utils/environment/$isRunningInNode.d.ts +0 -3
  2436. package/umd/src/utils/environment/$isRunningInWebWorker.d.ts +0 -3
  2437. package/umd/src/utils/execCommand/$execCommand.d.ts +0 -4
  2438. package/umd/src/utils/execCommand/$execCommands.d.ts +0 -3
  2439. package/umd/src/utils/execCommand/ExecCommandOptions.d.ts +3 -4
  2440. package/umd/src/utils/expectation-counters/constants.d.ts +0 -4
  2441. package/umd/src/utils/expectation-counters/countCharacters.d.ts +0 -4
  2442. package/umd/src/utils/expectation-counters/countLines.d.ts +0 -4
  2443. package/umd/src/utils/expectation-counters/countPages.d.ts +0 -4
  2444. package/umd/src/utils/expectation-counters/countParagraphs.d.ts +0 -4
  2445. package/umd/src/utils/expectation-counters/countSentences.d.ts +0 -4
  2446. package/umd/src/utils/expectation-counters/countWords.d.ts +0 -5
  2447. package/umd/src/utils/expectation-counters/index.d.ts +0 -4
  2448. package/umd/src/utils/files/$induceBookDownload.d.ts +0 -3
  2449. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -4
  2450. package/umd/src/utils/files/ObjectUrl.d.ts +2 -4
  2451. package/umd/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
  2452. package/umd/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
  2453. package/umd/src/utils/files/extensionToMimeType.d.ts +2 -2
  2454. package/umd/src/utils/files/getFileExtension.d.ts +2 -2
  2455. package/umd/src/utils/files/isDirectoryExisting.d.ts +1 -7
  2456. package/umd/src/utils/files/isExecutable.d.ts +0 -4
  2457. package/umd/src/utils/files/isFileExisting.d.ts +1 -6
  2458. package/umd/src/utils/files/listAllFiles.d.ts +2 -6
  2459. package/umd/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  2460. package/umd/src/utils/files/readResponseBytes.d.ts +15 -0
  2461. package/umd/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  2462. package/umd/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  2463. package/umd/src/utils/knowledge/inlineKnowledgeSource.d.ts +14 -7
  2464. package/umd/src/utils/knowledge/simplifyKnowledgeLabel.d.ts +2 -0
  2465. package/umd/src/utils/linguistic-hash/linguisticHash.d.ts +2 -1
  2466. package/umd/src/utils/linguistic-hash/linguisticHashTypes.d.ts +0 -3
  2467. package/umd/src/utils/linguistic-hash/linguisticHashWords.cs.d.ts +0 -3
  2468. package/umd/src/utils/linguistic-hash/linguisticHashWords.en.d.ts +0 -3
  2469. package/umd/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -5
  2470. package/umd/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  2471. package/umd/src/utils/markdown/createMarkdownTable.d.ts +1 -5
  2472. package/umd/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -4
  2473. package/umd/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +2 -4
  2474. package/umd/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +2 -1
  2475. package/umd/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +3 -5
  2476. package/umd/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  2477. package/umd/src/utils/markdown/humanizeAiText.d.ts +1 -4
  2478. package/umd/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -4
  2479. package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +2 -5
  2480. package/umd/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -4
  2481. package/umd/src/utils/markdown/humanizeAiTextSources.d.ts +1 -4
  2482. package/umd/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -4
  2483. package/umd/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  2484. package/umd/src/utils/markdown/prettifyMarkdown.d.ts +5 -3
  2485. package/umd/src/utils/markdown/promptbookifyAiText.d.ts +1 -4
  2486. package/umd/src/utils/markdown/removeMarkdownComments.d.ts +2 -2
  2487. package/umd/src/utils/markdown/removeMarkdownFormatting.d.ts +2 -1
  2488. package/umd/src/utils/markdown/removeMarkdownLinks.d.ts +1 -0
  2489. package/umd/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  2490. package/umd/src/utils/markdown/trimCodeBlock.d.ts +1 -1
  2491. package/umd/src/utils/markdown/trimEndOfCodeBlock.d.ts +1 -1
  2492. package/umd/src/utils/misc/$Register.d.ts +1 -1
  2493. package/umd/src/utils/misc/$getCurrentDate.d.ts +2 -1
  2494. package/umd/src/utils/misc/aboutPromptbookInformation.d.ts +4 -4
  2495. package/umd/src/utils/misc/computeHash.d.ts +2 -5
  2496. package/umd/src/utils/misc/debounce.d.ts +2 -0
  2497. package/umd/src/utils/misc/emojis.d.ts +3 -8
  2498. package/umd/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +8 -3
  2499. package/umd/src/utils/misc/parseNumber.d.ts +0 -4
  2500. package/umd/src/utils/misc/xAboutPromptbookInformation.d.ts +3 -4
  2501. package/umd/src/utils/normalization/IKeywords.d.ts +0 -3
  2502. package/umd/src/utils/normalization/nameToUriPart.d.ts +1 -0
  2503. package/umd/src/utils/normalization/nameToUriParts.d.ts +1 -0
  2504. package/umd/src/utils/normalization/normalize-to-kebab-case.d.ts +2 -3
  2505. package/umd/src/utils/normalization/normalizeTo_PascalCase.d.ts +2 -0
  2506. package/umd/src/utils/normalization/normalizeTo_SCREAMING_CASE.d.ts +2 -0
  2507. package/umd/src/utils/normalization/normalizeTo_camelCase.d.ts +2 -3
  2508. package/umd/src/utils/normalization/normalizeTo_snake_case.d.ts +1 -0
  2509. package/umd/src/utils/normalization/orderJson.d.ts +1 -0
  2510. package/umd/src/utils/normalization/orderJson.test.d.ts +0 -3
  2511. package/umd/src/utils/normalization/parseKeywords.d.ts +1 -4
  2512. package/umd/src/utils/normalization/parseKeywordsFromString.d.ts +1 -0
  2513. package/umd/src/utils/normalization/removeDiacritics.d.ts +1 -3
  2514. package/umd/src/utils/normalization/removeEmojis.d.ts +1 -0
  2515. package/umd/src/utils/normalization/removeQuotes.d.ts +1 -0
  2516. package/umd/src/utils/normalization/searchKeywords.d.ts +1 -3
  2517. package/umd/src/utils/normalization/suffixUrl.d.ts +1 -1
  2518. package/umd/src/utils/normalization/titleToName.d.ts +1 -0
  2519. package/umd/src/utils/normalization/unwrapResult.d.ts +1 -3
  2520. package/umd/src/utils/organization/$sideEffect.d.ts +1 -0
  2521. package/umd/src/utils/organization/TODO_USE.d.ts +1 -0
  2522. package/umd/src/utils/organization/just.d.ts +1 -0
  2523. package/umd/src/utils/organization/keepImported.d.ts +2 -1
  2524. package/umd/src/utils/organization/keepTypeImported.d.ts +1 -0
  2525. package/umd/src/utils/organization/keepUnused.d.ts +1 -0
  2526. package/umd/src/utils/organization/preserve.d.ts +1 -3
  2527. package/umd/src/utils/organization/really_any.d.ts +1 -0
  2528. package/umd/src/utils/organization/spaceTrim.d.ts +3 -2
  2529. package/umd/src/utils/parameters/extractParameterNames.d.ts +3 -2
  2530. package/umd/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +2 -2
  2531. package/umd/src/utils/parameters/numberToString.d.ts +1 -1
  2532. package/umd/src/utils/parameters/templateParameters.d.ts +4 -2
  2533. package/umd/src/utils/parameters/valueToString.d.ts +3 -3
  2534. package/umd/src/utils/random/$generateBookBoilerplate.d.ts +4 -4
  2535. package/umd/src/utils/random/$randomAgentPersona.d.ts +2 -4
  2536. package/umd/src/utils/random/$randomAgentRule.d.ts +2 -4
  2537. package/umd/src/utils/random/$randomFullnameWithColor.d.ts +5 -4
  2538. package/umd/src/utils/random/$randomItem.d.ts +0 -3
  2539. package/umd/src/utils/random/$randomSeed.d.ts +1 -4
  2540. package/umd/src/utils/random/$randomToken.d.ts +3 -6
  2541. package/umd/src/utils/random/EnglishNamePool.d.ts +10 -1
  2542. package/umd/src/utils/random/NamePool.d.ts +1 -1
  2543. package/umd/src/utils/serialization/$deepFreeze.d.ts +1 -3
  2544. package/umd/src/utils/serialization/checkSerializableAsJson.d.ts +2 -6
  2545. package/umd/src/utils/serialization/clonePipeline.d.ts +1 -3
  2546. package/umd/src/utils/serialization/deepClone.d.ts +1 -3
  2547. package/umd/src/utils/serialization/exportJson.d.ts +1 -3
  2548. package/umd/src/utils/serialization/isSerializableAsJson.d.ts +0 -5
  2549. package/umd/src/utils/serialization/jsonStringsToJsons.d.ts +1 -4
  2550. package/umd/src/utils/serialization/serializeToPromptbookJavascript.d.ts +6 -4
  2551. package/umd/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  2552. package/umd/src/utils/sets/difference.d.ts +1 -3
  2553. package/umd/src/utils/sets/intersection.d.ts +1 -0
  2554. package/umd/src/utils/sets/union.d.ts +1 -0
  2555. package/umd/src/utils/take/classes/TakeChain.d.ts +4 -1
  2556. package/umd/src/utils/take/interfaces/ITakeChain.d.ts +5 -1
  2557. package/umd/src/utils/take/interfaces/Takeable.d.ts +2 -1
  2558. package/umd/src/utils/take/take.d.ts +1 -1
  2559. package/umd/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
  2560. package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
  2561. package/umd/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
  2562. package/umd/src/utils/validators/email/isValidEmail.d.ts +1 -1
  2563. package/umd/src/utils/validators/filePath/isRootPath.d.ts +2 -5
  2564. package/umd/src/utils/validators/filePath/isRootPath.test.d.ts +0 -3
  2565. package/umd/src/utils/validators/filePath/isValidFilePath.d.ts +2 -4
  2566. package/umd/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +2 -1
  2567. package/umd/src/utils/validators/parameterName/validateParameterName.d.ts +2 -1
  2568. package/umd/src/utils/validators/semanticVersion/isValidPromptbookVersion.d.ts +2 -1
  2569. package/umd/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  2570. package/umd/src/utils/validators/url/extractUrlsFromText.d.ts +9 -0
  2571. package/umd/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
  2572. package/umd/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +13 -2
  2573. package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +10 -3
  2574. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +1 -4
  2575. package/umd/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -4
  2576. package/umd/src/utils/validators/url/isValidUrl.d.ts +1 -1
  2577. package/umd/src/utils/validators/url/normalizeDomainForMatching.d.ts +12 -0
  2578. package/umd/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
  2579. package/umd/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  2580. package/umd/src/version.d.ts +1 -1
  2581. package/umd/src/wizard/$getCompiledBook.d.ts +2 -5
  2582. package/umd/src/wizard/wizard.d.ts +5 -5
  2583. package/esm/src/commitments/USE/USE.d.ts +0 -53
  2584. package/umd/src/commitments/USE/USE.d.ts +0 -53
package/esm/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import spaceTrim$2, { spaceTrim as spaceTrim$1 } from 'spacetrim';
1
+ import { spaceTrim as spaceTrim$1 } from 'spacetrim';
2
2
  import { basename } from 'path';
3
3
  import { randomBytes } from 'crypto';
4
4
  import { SHA256 } from 'crypto-js';
@@ -18,7 +18,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
18
18
  * @generated
19
19
  * @see https://github.com/webgptorg/promptbook
20
20
  */
21
- const PROMPTBOOK_ENGINE_VERSION = '0.111.0-7';
21
+ const PROMPTBOOK_ENGINE_VERSION = '0.112.0-101';
22
22
  /**
23
23
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
24
24
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -28,16 +28,20 @@ const PROMPTBOOK_ENGINE_VERSION = '0.111.0-7';
28
28
  * Trims string from all 4 sides
29
29
  *
30
30
  * Note: This is a re-exported function from the `spacetrim` package which is
31
- * Developed by same author @hejny as this package
31
+ * Developed by same author @hejny as this package
32
32
  *
33
- * @public exported from `@promptbook/utils`
34
33
  * @see https://github.com/hejny/spacetrim#usage
34
+ *
35
+ * @public exported from `@promptbook/utils`
35
36
  */
36
37
  const spaceTrim = spaceTrim$1;
37
38
 
38
39
  /**
39
- * @private util of `@promptbook/color`
40
+ * Class implementing take chain.
41
+ *
40
42
  * @de
43
+ *
44
+ * @private util of `@promptbook/color`
41
45
  */
42
46
  class TakeChain {
43
47
  constructor(value) {
@@ -54,9 +58,9 @@ class TakeChain {
54
58
  *
55
59
  * @param {*} initialValue - The initial value.
56
60
  * @returns {Proxy<WithTake<TValue>>} - A proxy object with a `take` method.
61
+ * @deprecated [🤡] Use some better functional library instead of `TakeChain`
57
62
  *
58
63
  * @private util of `@promptbook/color`
59
- * @deprecated [🤡] Use some better functional library instead of `TakeChain`
60
64
  */
61
65
  function take(initialValue) {
62
66
  if (initialValue instanceof TakeChain) {
@@ -234,9 +238,7 @@ const CSS_COLORS = {
234
238
  yellow: '#ffff00',
235
239
  yellowgreen: '#9acd32',
236
240
  };
237
- /**
238
- * Note: [💞] Ignore a discrepancy between file name and entity name
239
- */
241
+ // Note: [💞] Ignore a discrepancy between file name and entity name
240
242
 
241
243
  /**
242
244
  * Validates that a channel value is a valid number within the range of 0 to 255.
@@ -266,7 +268,118 @@ function checkChannelValue(channelName, value) {
266
268
  }
267
269
  }
268
270
 
271
+ /**
272
+ * Shared immutable channel storage and serialization helpers for `Color`.
273
+ *
274
+ * @private base class of Color
275
+ */
276
+ class ColorValue {
277
+ constructor(red, green, blue, alpha = 255) {
278
+ this.red = red;
279
+ this.green = green;
280
+ this.blue = blue;
281
+ this.alpha = alpha;
282
+ checkChannelValue('Red', red);
283
+ checkChannelValue('Green', green);
284
+ checkChannelValue('Blue', blue);
285
+ checkChannelValue('Alpha', alpha);
286
+ }
287
+ /**
288
+ * Shortcut for `red` property
289
+ * Number from 0 to 255
290
+ * @alias red
291
+ */
292
+ get r() {
293
+ return this.red;
294
+ }
295
+ /**
296
+ * Shortcut for `green` property
297
+ * Number from 0 to 255
298
+ * @alias green
299
+ */
300
+ get g() {
301
+ return this.green;
302
+ }
303
+ /**
304
+ * Shortcut for `blue` property
305
+ * Number from 0 to 255
306
+ * @alias blue
307
+ */
308
+ get b() {
309
+ return this.blue;
310
+ }
311
+ /**
312
+ * Shortcut for `alpha` property
313
+ * Number from 0 (transparent) to 255 (opaque)
314
+ * @alias alpha
315
+ */
316
+ get a() {
317
+ return this.alpha;
318
+ }
319
+ /**
320
+ * Shortcut for `alpha` property
321
+ * Number from 0 (transparent) to 255 (opaque)
322
+ * @alias alpha
323
+ */
324
+ get opacity() {
325
+ return this.alpha;
326
+ }
327
+ /**
328
+ * Shortcut for 1-`alpha` property
329
+ */
330
+ get transparency() {
331
+ return 255 - this.alpha;
332
+ }
333
+ clone() {
334
+ return take(this.createColor(this.red, this.green, this.blue, this.alpha));
335
+ }
336
+ toString() {
337
+ return this.toHex();
338
+ }
339
+ toHex() {
340
+ if (this.alpha === 255) {
341
+ return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
342
+ .toString(16)
343
+ .padStart(2, '0')}`;
344
+ }
345
+ else {
346
+ return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
347
+ .toString(16)
348
+ .padStart(2, '0')}${this.alpha.toString(16).padStart(2, '0')}`;
349
+ }
350
+ }
351
+ toRgb() {
352
+ if (this.alpha === 255) {
353
+ return `rgb(${this.red}, ${this.green}, ${this.blue})`;
354
+ }
355
+ else {
356
+ return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
357
+ }
358
+ }
359
+ toHsl() {
360
+ throw new Error(`Getting HSL is not implemented`);
361
+ }
362
+ }
363
+
364
+ /**
365
+ * Checks if the given value is a valid hex color string
366
+ *
367
+ * @param value - value to check
368
+ * @returns true if the value is a valid hex color string (e.g., `#009edd`, `#fff`, etc.)
369
+ *
370
+ * @private function of Color
371
+ */
372
+ function isHexColorString(value) {
373
+ 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));
374
+ }
375
+
376
+ /**
377
+ * Constant for short hex lengths.
378
+ */
269
379
  const SHORT_HEX_LENGTHS = new Set([3, 4]);
380
+ /**
381
+ * Constant for long hex lengths.
382
+ */
270
383
  const LONG_HEX_LENGTHS = new Set([6, 8]);
271
384
  /**
272
385
  * Parses a hex string into RGBA channel values.
@@ -299,6 +412,9 @@ function parseHexColor(hex) {
299
412
  }
300
413
  return throwInvalidHex();
301
414
  }
415
+ /**
416
+ * Parses short hex channel.
417
+ */
302
418
  function parseShortHexChannel(char, onError) {
303
419
  if (!char) {
304
420
  return onError();
@@ -309,6 +425,9 @@ function parseShortHexChannel(char, onError) {
309
425
  }
310
426
  return parsed * 16;
311
427
  }
428
+ /**
429
+ * Parses long hex channel.
430
+ */
312
431
  function parseLongHexChannel(hex, start, onError) {
313
432
  const segment = hex.substr(start, 2);
314
433
  if (segment.length < 2) {
@@ -321,6 +440,9 @@ function parseLongHexChannel(hex, start, onError) {
321
440
  return parsed;
322
441
  }
323
442
 
443
+ /**
444
+ * Pattern matching hsl.
445
+ */
324
446
  const HSL_REGEX = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
325
447
  /**
326
448
  * Parses an HSL string into RGBA channel values.
@@ -346,6 +468,9 @@ function parseHslColor(hsl) {
346
468
  alpha: 255,
347
469
  };
348
470
  }
471
+ /**
472
+ * Handles convert hsl to Rgb.
473
+ */
349
474
  function convertHslToRgb(h, s, l) {
350
475
  const c = (1 - Math.abs(2 * l - 1)) * s;
351
476
  const x = c * (1 - Math.abs(((h / 60) % 2) - 1));
@@ -384,7 +509,13 @@ function convertHslToRgb(h, s, l) {
384
509
  };
385
510
  }
386
511
 
512
+ /**
513
+ * Pattern matching RGB.
514
+ */
387
515
  const RGB_REGEX = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
516
+ /**
517
+ * Pattern matching rgba.
518
+ */
388
519
  const RGBA_REGEX = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
389
520
  /**
390
521
  * Parses an RGB string into RGBA channel values.
@@ -426,6 +557,9 @@ function parseRgbaColor(rgba) {
426
557
  alpha: parseAlphaValue(match[4]),
427
558
  };
428
559
  }
560
+ /**
561
+ * Parses channel value.
562
+ */
429
563
  function parseChannelValue(value) {
430
564
  if (value.endsWith('%')) {
431
565
  const percent = parseFloat(value);
@@ -433,6 +567,9 @@ function parseChannelValue(value) {
433
567
  }
434
568
  return Math.round(parseFloat(value));
435
569
  }
570
+ /**
571
+ * Parses alpha value.
572
+ */
436
573
  function parseAlphaValue(value) {
437
574
  if (value.endsWith('%')) {
438
575
  const percent = parseFloat(value);
@@ -445,9 +582,55 @@ function parseAlphaValue(value) {
445
582
  return Math.round(parsed);
446
583
  }
447
584
 
585
+ /**
586
+ * Pattern matching hsl regex.
587
+ *
588
+ * @private function of Color
589
+ */
448
590
  const HSL_REGEX_PATTERN = /^hsl\(\s*([0-9.]+)\s*,\s*([0-9.]+)%\s*,\s*([0-9.]+)%\s*\)$/;
591
+ /**
592
+ * Pattern matching RGB regex.
593
+ *
594
+ * @private function of Color
595
+ */
449
596
  const RGB_REGEX_PATTERN = /^rgb\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
597
+ /**
598
+ * Pattern matching rgba regex.
599
+ *
600
+ * @private function of Color
601
+ */
450
602
  const RGBA_REGEX_PATTERN = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*\)$/;
603
+ /**
604
+ * Parses a supported color string into RGBA channels.
605
+ *
606
+ * @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`,...
607
+ * @returns RGBA channel values.
608
+ *
609
+ * @private function of Color
610
+ */
611
+ function parseColorString(color) {
612
+ const trimmed = color.trim();
613
+ const cssColor = CSS_COLORS[trimmed];
614
+ if (cssColor) {
615
+ return parseColorString(cssColor);
616
+ }
617
+ else if (isHexColorString(trimmed)) {
618
+ return parseHexColor(trimmed);
619
+ }
620
+ if (HSL_REGEX_PATTERN.test(trimmed)) {
621
+ return parseHslColor(trimmed);
622
+ }
623
+ else if (RGB_REGEX_PATTERN.test(trimmed)) {
624
+ return parseRgbColor(trimmed);
625
+ }
626
+ else if (RGBA_REGEX_PATTERN.test(trimmed)) {
627
+ return parseRgbaColor(trimmed);
628
+ }
629
+ else {
630
+ throw new Error(`Can not create a new Color instance from string "${trimmed}".`);
631
+ }
632
+ }
633
+
451
634
  /**
452
635
  * Color object represents an RGB color with alpha channel
453
636
  *
@@ -455,7 +638,7 @@ const RGBA_REGEX_PATTERN = /^rgba\(\s*([0-9.%-]+)\s*,\s*([0-9.%-]+)\s*,\s*([0-9.
455
638
  *
456
639
  * @public exported from `@promptbook/color`
457
640
  */
458
- class Color {
641
+ class Color extends ColorValue {
459
642
  /**
460
643
  * Creates a new Color instance from miscellaneous formats
461
644
  * - It can receive Color instance and just return the same instance
@@ -528,25 +711,7 @@ class Color {
528
711
  * @returns Color object
529
712
  */
530
713
  static fromString(color) {
531
- const trimmed = color.trim();
532
- if (CSS_COLORS[trimmed]) {
533
- return Color.fromString(CSS_COLORS[trimmed]);
534
- }
535
- else if (Color.isHexColorString(trimmed)) {
536
- return Color.fromHex(trimmed);
537
- }
538
- if (HSL_REGEX_PATTERN.test(trimmed)) {
539
- return Color.fromHsl(trimmed);
540
- }
541
- else if (RGB_REGEX_PATTERN.test(trimmed)) {
542
- return Color.fromRgbString(trimmed);
543
- }
544
- else if (RGBA_REGEX_PATTERN.test(trimmed)) {
545
- return Color.fromRgbaString(trimmed);
546
- }
547
- else {
548
- throw new Error(`Can not create a new Color instance from string "${trimmed}".`);
549
- }
714
+ return Color.fromColorChannels(parseColorString(color));
550
715
  }
551
716
  /**
552
717
  * Gets common color
@@ -576,8 +741,7 @@ class Color {
576
741
  * @returns Color object
577
742
  */
578
743
  static fromHex(hex) {
579
- const { red, green, blue, alpha } = parseHexColor(hex);
580
- return take(new Color(red, green, blue, alpha));
744
+ return Color.fromColorChannels(parseHexColor(hex));
581
745
  }
582
746
  /**
583
747
  * Creates a new Color instance from color in hsl format
@@ -586,8 +750,7 @@ class Color {
586
750
  * @returns Color object
587
751
  */
588
752
  static fromHsl(hsl) {
589
- const { red, green, blue, alpha } = parseHslColor(hsl);
590
- return take(new Color(red, green, blue, alpha));
753
+ return Color.fromColorChannels(parseHslColor(hsl));
591
754
  }
592
755
  /**
593
756
  * Creates a new Color instance from color in rgb format
@@ -596,8 +759,7 @@ class Color {
596
759
  * @returns Color object
597
760
  */
598
761
  static fromRgbString(rgb) {
599
- const { red, green, blue, alpha } = parseRgbColor(rgb);
600
- return take(new Color(red, green, blue, alpha));
762
+ return Color.fromColorChannels(parseRgbColor(rgb));
601
763
  }
602
764
  /**
603
765
  * Creates a new Color instance from color in rbga format
@@ -606,8 +768,7 @@ class Color {
606
768
  * @returns Color object
607
769
  */
608
770
  static fromRgbaString(rgba) {
609
- const { red, green, blue, alpha } = parseRgbaColor(rgba);
610
- return take(new Color(red, green, blue, alpha));
771
+ return Color.fromColorChannels(parseRgbaColor(rgba));
611
772
  }
612
773
  /**
613
774
  * Creates a new Color for color channels values
@@ -619,7 +780,7 @@ class Color {
619
780
  * @returns Color object
620
781
  */
621
782
  static fromValues(red, green, blue, alpha = 255) {
622
- return take(new Color(red, green, blue, alpha));
783
+ return Color.fromColorChannels({ red, green, blue, alpha });
623
784
  }
624
785
  /**
625
786
  * Checks if the given value is a valid Color object.
@@ -652,8 +813,7 @@ class Color {
652
813
  * @returns true if the value is a valid hex color string (e.g., `#009edd`, `#fff`, etc.)
653
814
  */
654
815
  static isHexColorString(value) {
655
- return (typeof value === 'string' &&
656
- /^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(value));
816
+ return isHexColorString(value);
657
817
  }
658
818
  /**
659
819
  * Creates new Color object
@@ -666,91 +826,13 @@ class Color {
666
826
  * @param alpha number from 0 (transparent) to 255 (opaque)
667
827
  */
668
828
  constructor(red, green, blue, alpha = 255) {
669
- this.red = red;
670
- this.green = green;
671
- this.blue = blue;
672
- this.alpha = alpha;
673
- checkChannelValue('Red', red);
674
- checkChannelValue('Green', green);
675
- checkChannelValue('Blue', blue);
676
- checkChannelValue('Alpha', alpha);
677
- }
678
- /**
679
- * Shortcut for `red` property
680
- * Number from 0 to 255
681
- * @alias red
682
- */
683
- get r() {
684
- return this.red;
685
- }
686
- /**
687
- * Shortcut for `green` property
688
- * Number from 0 to 255
689
- * @alias green
690
- */
691
- get g() {
692
- return this.green;
693
- }
694
- /**
695
- * Shortcut for `blue` property
696
- * Number from 0 to 255
697
- * @alias blue
698
- */
699
- get b() {
700
- return this.blue;
701
- }
702
- /**
703
- * Shortcut for `alpha` property
704
- * Number from 0 (transparent) to 255 (opaque)
705
- * @alias alpha
706
- */
707
- get a() {
708
- return this.alpha;
829
+ super(red, green, blue, alpha);
709
830
  }
710
- /**
711
- * Shortcut for `alpha` property
712
- * Number from 0 (transparent) to 255 (opaque)
713
- * @alias alpha
714
- */
715
- get opacity() {
716
- return this.alpha;
831
+ createColor(red, green, blue, alpha) {
832
+ return new Color(red, green, blue, alpha);
717
833
  }
718
- /**
719
- * Shortcut for 1-`alpha` property
720
- */
721
- get transparency() {
722
- return 255 - this.alpha;
723
- }
724
- clone() {
725
- return take(new Color(this.red, this.green, this.blue, this.alpha));
726
- }
727
- toString() {
728
- return this.toHex();
729
- }
730
- toHex() {
731
- if (this.alpha === 255) {
732
- return `#${this.red.toString(16).padStart(2, '0')}${this.green
733
- .toString(16)
734
- .padStart(2, '0')}${this.blue.toString(16).padStart(2, '0')}`;
735
- }
736
- else {
737
- return `#${this.red.toString(16).padStart(2, '0')}${this.green
738
- .toString(16)
739
- .padStart(2, '0')}${this.blue.toString(16).padStart(2, '0')}${this.alpha
740
- .toString(16)
741
- .padStart(2, '0')}`;
742
- }
743
- }
744
- toRgb() {
745
- if (this.alpha === 255) {
746
- return `rgb(${this.red}, ${this.green}, ${this.blue})`;
747
- }
748
- else {
749
- return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
750
- }
751
- }
752
- toHsl() {
753
- throw new Error(`Getting HSL is not implemented`);
834
+ static fromColorChannels({ red, green, blue, alpha }) {
835
+ return take(new Color(red, green, blue, alpha));
754
836
  }
755
837
  }
756
838
 
@@ -814,9 +896,7 @@ function hslToRgb(hue, saturation, lightness) {
814
896
  }
815
897
  return [Math.round(red * 255), Math.round(green * 255), Math.round(blue * 255)];
816
898
  }
817
- /**
818
- * TODO: Properly name all used internal variables
819
- */
899
+ // TODO: Properly name all used internal variables
820
900
 
821
901
  /**
822
902
  * Converts RGB values to HSL values
@@ -862,9 +942,7 @@ function rgbToHsl(red, green, blue) {
862
942
  }
863
943
  return [hue, saturation, lightness];
864
944
  }
865
- /**
866
- * TODO: Properly name all used internal variables
867
- */
945
+ // TODO: Properly name all used internal variables
868
946
 
869
947
  /**
870
948
  * Makes color transformer which lighten the given color
@@ -882,9 +960,7 @@ function lighten(amount) {
882
960
  return Color.fromValues(r, g, b, alpha);
883
961
  };
884
962
  }
885
- /**
886
- * TODO: Maybe implement by mix+hsl
887
- */
963
+ // TODO: Maybe implement by mix+hsl
888
964
 
889
965
  /**
890
966
  * Makes color transformer which saturate the given color
@@ -902,9 +978,36 @@ function saturate(amount) {
902
978
  return Color.fromValues(r, g, b, alpha);
903
979
  };
904
980
  }
981
+ // TODO: Maybe implement by mix+hsl
982
+
905
983
  /**
906
- * TODO: Maybe implement by mix+hsl
984
+ * Stable root directory used for Promptbook-owned temporary files and caches.
985
+ *
986
+ * @private internal utility for Promptbook temporary folders
907
987
  */
988
+ const PROMPTBOOK_TEMPORARY_DIRECTORY = '.promptbook';
989
+ /**
990
+ * Builds one normalized project-relative path inside Promptbook's dedicated temporary root.
991
+ *
992
+ * The returned path intentionally uses `/` separators so the same helper can be reused from
993
+ * Node.js and edge-safe code without depending on the Node `path` module.
994
+ *
995
+ * @private internal utility for Promptbook temporary folders
996
+ */
997
+ function getPromptbookTemporaryPath(...pathSegments) {
998
+ const normalizedPathSegments = pathSegments.flatMap(splitPathSegments).filter(Boolean);
999
+ return [PROMPTBOOK_TEMPORARY_DIRECTORY, ...normalizedPathSegments].join('/');
1000
+ }
1001
+ /**
1002
+ * Normalizes one raw path segment into slash-delimited pieces without empty items.
1003
+ */
1004
+ function splitPathSegments(pathSegment) {
1005
+ return pathSegment
1006
+ .split(/[\\/]+/u)
1007
+ .map((segment) => segment.trim())
1008
+ .filter(Boolean);
1009
+ }
1010
+ // Note: [💞] Ignore a discrepancy between file name and entity name
908
1011
 
909
1012
  /**
910
1013
  * Name for the Promptbook
@@ -948,6 +1051,9 @@ const PROMPTBOOK_COLOR = Color.fromString('promptbook');
948
1051
  LINE: Color.fromHex('#eeeeee'),
949
1052
  SEPARATOR: Color.fromHex('#cccccc'),
950
1053
  COMMITMENT: Color.fromHex('#DA0F78'),
1054
+ NOTE_COMMITMENT: Color.fromHex('#8080807e'),
1055
+ TODO_COMMITMENT_TEXT: Color.fromHex('#000000'),
1056
+ TODO_COMMITMENT_BACKGROUND: Color.fromHex('#FFEB3B'),
951
1057
  PARAMETER: Color.fromHex('#8e44ad'),
952
1058
  CODE_BLOCK: Color.fromHex('#7700ffff'),
953
1059
  });
@@ -997,6 +1103,31 @@ const VALUE_STRINGS = {
997
1103
  * @public exported from `@promptbook/utils`
998
1104
  */
999
1105
  const SMALL_NUMBER = 0.001;
1106
+ // <- TODO: [🕝] Make also `AGENTS_DIRNAME_ALTERNATIVES`
1107
+ /**
1108
+ * Where to store the temporary downloads
1109
+ *
1110
+ * Note: When the folder does not exist, it is created recursively
1111
+ *
1112
+ * @public exported from `@promptbook/core`
1113
+ */
1114
+ `./${getPromptbookTemporaryPath('download-cache')}`;
1115
+ /**
1116
+ * Where to store the cache of executions for promptbook CLI
1117
+ *
1118
+ * Note: When the folder does not exist, it is created recursively
1119
+ *
1120
+ * @public exported from `@promptbook/core`
1121
+ */
1122
+ `./${getPromptbookTemporaryPath('execution-cache')}`;
1123
+ /**
1124
+ * Where to store the scrape cache
1125
+ *
1126
+ * Note: When the folder does not exist, it is created recursively
1127
+ *
1128
+ * @public exported from `@promptbook/core`
1129
+ */
1130
+ `./${getPromptbookTemporaryPath('scrape-cache')}`;
1000
1131
  // <- TODO: [🧜‍♂️]
1001
1132
  /**
1002
1133
  * Default settings for parsing and generating CSV files in Promptbook.
@@ -1025,6 +1156,7 @@ parseInt(process.env.API_REQUEST_TIMEOUT || '90000');
1025
1156
  * Orders JSON object by keys
1026
1157
  *
1027
1158
  * @returns The same type of object as the input re-ordered
1159
+ *
1028
1160
  * @public exported from `@promptbook/utils`
1029
1161
  */
1030
1162
  function orderJson(options) {
@@ -1043,6 +1175,7 @@ function orderJson(options) {
1043
1175
  * Note: This function mutates the object and returns the original (but mutated-deep-freezed) object
1044
1176
  *
1045
1177
  * @returns The same object as the input, but deeply frozen
1178
+ *
1046
1179
  * @public exported from `@promptbook/utils`
1047
1180
  */
1048
1181
  function $deepFreeze(objectValue) {
@@ -1059,9 +1192,7 @@ function $deepFreeze(objectValue) {
1059
1192
  Object.freeze(objectValue);
1060
1193
  return objectValue;
1061
1194
  }
1062
- /**
1063
- * TODO: [🧠] Is there a way how to meaningfully test this utility
1064
- */
1195
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
1065
1196
 
1066
1197
  /**
1067
1198
  * Make error report URL for the given error
@@ -1071,7 +1202,7 @@ function $deepFreeze(objectValue) {
1071
1202
  function getErrorReportUrl(error) {
1072
1203
  const report = {
1073
1204
  title: `🐜 Error report from ${NAME}`,
1074
- body: spaceTrim$2((block) => `
1205
+ body: spaceTrim$1((block) => `
1075
1206
 
1076
1207
 
1077
1208
  \`${error.name || 'Error'}\` has occurred in the [${NAME}], please look into it @${ADMIN_GITHUB_NAME}.
@@ -1197,125 +1328,187 @@ function assertsError(whatWasThrown) {
1197
1328
  * - And much more...
1198
1329
  *
1199
1330
  * @throws UnexpectedError if the value is not serializable as JSON
1331
+ *
1200
1332
  * @public exported from `@promptbook/utils`
1201
1333
  */
1202
1334
  function checkSerializableAsJson(options) {
1203
- const { value, name, message } = options;
1335
+ checkSerializableValue(options);
1336
+ }
1337
+ // TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
1338
+ // TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
1339
+ // Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
1340
+ /**
1341
+ * Checks one value and dispatches to the appropriate specialized validator.
1342
+ *
1343
+ * @private function of `checkSerializableAsJson`
1344
+ */
1345
+ function checkSerializableValue(options) {
1346
+ const { value } = options;
1347
+ if (isSerializablePrimitive(value)) {
1348
+ return;
1349
+ }
1204
1350
  if (value === undefined) {
1205
- throw new UnexpectedError(`${name} is undefined`);
1351
+ throw new UnexpectedError(`${options.name} is undefined`);
1352
+ }
1353
+ if (typeof value === 'symbol') {
1354
+ throw new UnexpectedError(`${options.name} is symbol`);
1206
1355
  }
1207
- else if (value === null) {
1208
- return;
1356
+ if (typeof value === 'function') {
1357
+ throw new UnexpectedError(`${options.name} is function`);
1209
1358
  }
1210
- else if (typeof value === 'boolean') {
1359
+ if (Array.isArray(value)) {
1360
+ checkSerializableArray(options, value);
1211
1361
  return;
1212
1362
  }
1213
- else if (typeof value === 'number' && !isNaN(value)) {
1363
+ if (value !== null && typeof value === 'object') {
1364
+ checkSerializableObject(options, value);
1214
1365
  return;
1215
1366
  }
1216
- else if (typeof value === 'string') {
1217
- return;
1367
+ throwUnknownTypeError(options);
1368
+ }
1369
+ /**
1370
+ * Checks the primitive values that are directly JSON serializable.
1371
+ *
1372
+ * @private function of `checkSerializableAsJson`
1373
+ */
1374
+ function isSerializablePrimitive(value) {
1375
+ return (value === null ||
1376
+ typeof value === 'boolean' ||
1377
+ (typeof value === 'number' && !isNaN(value)) ||
1378
+ typeof value === 'string');
1379
+ }
1380
+ /**
1381
+ * Recursively checks JSON array items.
1382
+ *
1383
+ * @private function of `checkSerializableAsJson`
1384
+ */
1385
+ function checkSerializableArray(context, arrayValue) {
1386
+ for (let index = 0; index < arrayValue.length; index++) {
1387
+ checkSerializableAsJson({
1388
+ ...context,
1389
+ name: `${context.name}[${index}]`,
1390
+ value: arrayValue[index],
1391
+ });
1218
1392
  }
1219
- else if (typeof value === 'symbol') {
1220
- throw new UnexpectedError(`${name} is symbol`);
1393
+ }
1394
+ /**
1395
+ * Checks object-like values and dispatches special unsupported built-ins.
1396
+ *
1397
+ * @private function of `checkSerializableAsJson`
1398
+ */
1399
+ function checkSerializableObject(context, objectValue) {
1400
+ checkUnsupportedObjectType(context, objectValue);
1401
+ checkSerializableObjectEntries(context, objectValue);
1402
+ assertJsonStringificationSucceeds(context, objectValue);
1403
+ }
1404
+ /**
1405
+ * Rejects built-in objects that must be converted before JSON serialization.
1406
+ *
1407
+ * @private function of `checkSerializableAsJson`
1408
+ */
1409
+ function checkUnsupportedObjectType(context, objectValue) {
1410
+ if (objectValue instanceof Date) {
1411
+ throw new UnexpectedError(spaceTrim$1((block) => `
1412
+ \`${context.name}\` is Date
1413
+
1414
+ Use \`string_date_iso8601\` instead
1415
+
1416
+ Additional message for \`${context.name}\`:
1417
+ ${block(context.message || '(nothing)')}
1418
+ `));
1221
1419
  }
1222
- else if (typeof value === 'function') {
1223
- throw new UnexpectedError(`${name} is function`);
1420
+ if (objectValue instanceof Map) {
1421
+ throw new UnexpectedError(`${context.name} is Map`);
1224
1422
  }
1225
- else if (typeof value === 'object' && Array.isArray(value)) {
1226
- for (let i = 0; i < value.length; i++) {
1227
- checkSerializableAsJson({ name: `${name}[${i}]`, value: value[i], message });
1228
- }
1423
+ if (objectValue instanceof Set) {
1424
+ throw new UnexpectedError(`${context.name} is Set`);
1229
1425
  }
1230
- else if (typeof value === 'object') {
1231
- if (value instanceof Date) {
1232
- throw new UnexpectedError(spaceTrim$2((block) => `
1233
- \`${name}\` is Date
1234
-
1235
- Use \`string_date_iso8601\` instead
1236
-
1237
- Additional message for \`${name}\`:
1238
- ${block(message || '(nothing)')}
1239
- `));
1240
- }
1241
- else if (value instanceof Map) {
1242
- throw new UnexpectedError(`${name} is Map`);
1243
- }
1244
- else if (value instanceof Set) {
1245
- throw new UnexpectedError(`${name} is Set`);
1246
- }
1247
- else if (value instanceof RegExp) {
1248
- throw new UnexpectedError(`${name} is RegExp`);
1249
- }
1250
- else if (value instanceof Error) {
1251
- throw new UnexpectedError(spaceTrim$2((block) => `
1252
- \`${name}\` is unserialized Error
1426
+ if (objectValue instanceof RegExp) {
1427
+ throw new UnexpectedError(`${context.name} is RegExp`);
1428
+ }
1429
+ if (objectValue instanceof Error) {
1430
+ throw new UnexpectedError(spaceTrim$1((block) => `
1431
+ \`${context.name}\` is unserialized Error
1253
1432
 
1254
- Use function \`serializeError\`
1433
+ Use function \`serializeError\`
1255
1434
 
1256
- Additional message for \`${name}\`:
1257
- ${block(message || '(nothing)')}
1435
+ Additional message for \`${context.name}\`:
1436
+ ${block(context.message || '(nothing)')}
1258
1437
 
1259
- `));
1438
+ `));
1439
+ }
1440
+ }
1441
+ /**
1442
+ * Recursively checks object properties while preserving omitted `undefined` keys.
1443
+ *
1444
+ * @private function of `checkSerializableAsJson`
1445
+ */
1446
+ function checkSerializableObjectEntries(context, objectValue) {
1447
+ for (const [subName, subValue] of Object.entries(objectValue)) {
1448
+ if (subValue === undefined) {
1449
+ // Note: undefined in object is serializable - it is just omitted
1450
+ continue;
1260
1451
  }
1261
- else {
1262
- for (const [subName, subValue] of Object.entries(value)) {
1263
- if (subValue === undefined) {
1264
- // Note: undefined in object is serializable - it is just omitted
1265
- continue;
1266
- }
1267
- checkSerializableAsJson({ name: `${name}.${subName}`, value: subValue, message });
1268
- }
1269
- try {
1270
- JSON.stringify(value); // <- TODO: [0]
1271
- }
1272
- catch (error) {
1273
- assertsError(error);
1274
- throw new UnexpectedError(spaceTrim$2((block) => `
1275
- \`${name}\` is not serializable
1452
+ checkSerializableAsJson({
1453
+ ...context,
1454
+ name: `${context.name}.${subName}`,
1455
+ value: subValue,
1456
+ });
1457
+ }
1458
+ }
1459
+ /**
1460
+ * Uses `JSON.stringify` as the final guard for cases like circular references.
1461
+ *
1462
+ * @private function of `checkSerializableAsJson`
1463
+ */
1464
+ function assertJsonStringificationSucceeds(context, objectValue) {
1465
+ try {
1466
+ JSON.stringify(objectValue); // <- TODO: [0]
1467
+ }
1468
+ catch (error) {
1469
+ assertsError(error);
1470
+ throw new UnexpectedError(spaceTrim$1((block) => `
1471
+ \`${context.name}\` is not serializable
1276
1472
 
1277
- ${block(error.stack || error.message)}
1473
+ ${block(error.stack || error.message)}
1278
1474
 
1279
- Additional message for \`${name}\`:
1280
- ${block(message || '(nothing)')}
1281
- `));
1475
+ Additional message for \`${context.name}\`:
1476
+ ${block(context.message || '(nothing)')}
1477
+ `));
1478
+ }
1479
+ /*
1480
+ TODO: [0] Is there some more elegant way to check circular references?
1481
+ const seen = new Set();
1482
+ const stack = [{ value }];
1483
+ while (stack.length > 0) {
1484
+ const { value } = stack.pop()!;
1485
+ if (typeof value === 'object' && value !== null) {
1486
+ if (seen.has(value)) {
1487
+ throw new UnexpectedError(`${name} has circular reference`);
1282
1488
  }
1283
- /*
1284
- TODO: [0] Is there some more elegant way to check circular references?
1285
- const seen = new Set();
1286
- const stack = [{ value }];
1287
- while (stack.length > 0) {
1288
- const { value } = stack.pop()!;
1289
- if (typeof value === 'object' && value !== null) {
1290
- if (seen.has(value)) {
1291
- throw new UnexpectedError(`${name} has circular reference`);
1292
- }
1293
- seen.add(value);
1294
- if (Array.isArray(value)) {
1295
- stack.push(...value.map((value) => ({ value })));
1296
- } else {
1297
- stack.push(...Object.values(value).map((value) => ({ value })));
1298
- }
1299
- }
1489
+ seen.add(value);
1490
+ if (Array.isArray(value)) {
1491
+ stack.push(...value.map((value) => ({ value })));
1492
+ } else {
1493
+ stack.push(...Object.values(value).map((value) => ({ value })));
1300
1494
  }
1301
- */
1302
- return;
1303
1495
  }
1304
1496
  }
1305
- else {
1306
- throw new UnexpectedError(spaceTrim$2((block) => `
1307
- \`${name}\` is unknown type
1308
-
1309
- Additional message for \`${name}\`:
1310
- ${block(message || '(nothing)')}
1311
- `));
1312
- }
1497
+ */
1313
1498
  }
1314
1499
  /**
1315
- * TODO: Can be return type more type-safe? like `asserts options.value is JsonValue`
1316
- * TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
1317
- * Note: [🐠] This is how `checkSerializableAsJson` + `isSerializableAsJson` together can just retun true/false or rich error message
1500
+ * Throws the fallback error for unsupported value types like `bigint` and `NaN`.
1501
+ *
1502
+ * @private function of `checkSerializableAsJson`
1318
1503
  */
1504
+ function throwUnknownTypeError(context) {
1505
+ throw new UnexpectedError(spaceTrim$1((block) => `
1506
+ \`${context.name}\` is unknown type
1507
+
1508
+ Additional message for \`${context.name}\`:
1509
+ ${block(context.message || '(nothing)')}
1510
+ `));
1511
+ }
1319
1512
 
1320
1513
  /**
1321
1514
  * Creates a deep clone of the given object
@@ -1325,6 +1518,7 @@ function checkSerializableAsJson(options) {
1325
1518
  *
1326
1519
  * @param objectValue The object to clone.
1327
1520
  * @returns A deep, writable clone of the input object.
1521
+ *
1328
1522
  * @public exported from `@promptbook/utils`
1329
1523
  */
1330
1524
  function deepClone(objectValue) {
@@ -1341,9 +1535,7 @@ function deepClone(objectValue) {
1341
1535
  > return Object.assign({}, objectValue);
1342
1536
  */
1343
1537
  }
1344
- /**
1345
- * TODO: [🧠] Is there a way how to meaningfully test this utility
1346
- */
1538
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
1347
1539
 
1348
1540
  /**
1349
1541
  * Utility to export a JSON object from a function
@@ -1356,6 +1548,7 @@ function deepClone(objectValue) {
1356
1548
  * Note: This function does not mutates the given object
1357
1549
  *
1358
1550
  * @returns The same type of object as the input but read-only and re-ordered
1551
+ *
1359
1552
  * @public exported from `@promptbook/utils`
1360
1553
  */
1361
1554
  function exportJson(options) {
@@ -1375,9 +1568,7 @@ function exportJson(options) {
1375
1568
  $deepFreeze(orderedValue);
1376
1569
  return orderedValue;
1377
1570
  }
1378
- /**
1379
- * TODO: [🧠] Is there a way how to meaningfully test this utility
1380
- */
1571
+ // TODO: [🧠] Is there a way how to meaningfully test this utility
1381
1572
 
1382
1573
  /**
1383
1574
  * Nonce which is used for replacing things in strings
@@ -1417,9 +1608,7 @@ const RESERVED_PARAMETER_NAMES = exportJson({
1417
1608
  // <- TODO: Add [emoji] + instructions ACRY when adding new reserved parameter
1418
1609
  ],
1419
1610
  });
1420
- /**
1421
- * Note: [💞] Ignore a discrepancy between file name and entity name
1422
- */
1611
+ // Note: [💞] Ignore a discrepancy between file name and entity name
1423
1612
 
1424
1613
  /**
1425
1614
  * Normalizes a given text to camelCase format.
@@ -1431,6 +1620,7 @@ const RESERVED_PARAMETER_NAMES = exportJson({
1431
1620
  * @returns The camelCase formatted string.
1432
1621
  * @example 'helloWorld'
1433
1622
  * @example 'iLovePromptbook'
1623
+ *
1434
1624
  * @public exported from `@promptbook/utils`
1435
1625
  */
1436
1626
  function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
@@ -1471,14 +1661,13 @@ function normalizeTo_camelCase(text, _isFirstLetterCapital = false) {
1471
1661
  }
1472
1662
  return normalizedName;
1473
1663
  }
1474
- /**
1475
- * TODO: [🌺] Use some intermediate util splitWords
1476
- */
1664
+ // TODO: [🌺] Use some intermediate util splitWords
1477
1665
 
1478
1666
  /**
1479
1667
  * Tests if given string is valid file path.
1480
1668
  *
1481
1669
  * Note: This does not check if the file exists only if the path is valid
1670
+ *
1482
1671
  * @public exported from `@promptbook/utils`
1483
1672
  */
1484
1673
  function isValidFilePath(filename) {
@@ -1527,9 +1716,7 @@ function isValidFilePath(filename) {
1527
1716
  }
1528
1717
  return false;
1529
1718
  }
1530
- /**
1531
- * TODO: [🍏] Implement for MacOs
1532
- */
1719
+ // TODO: [🍏] Implement for MacOs
1533
1720
 
1534
1721
  /**
1535
1722
  * Tests if given string is valid URL.
@@ -1562,6 +1749,9 @@ function isValidUrl(url) {
1562
1749
  }
1563
1750
  }
1564
1751
 
1752
+ /**
1753
+ * Collection of default diacritics removal map.
1754
+ */
1565
1755
  const defaultDiacriticsRemovalMap = [
1566
1756
  {
1567
1757
  base: 'A',
@@ -1813,6 +2003,7 @@ for (let i = 0; i < defaultDiacriticsRemovalMap.length; i++) {
1813
2003
  *
1814
2004
  * @param input The string containing diacritics to be normalized.
1815
2005
  * @returns The string with diacritics removed or normalized.
2006
+ *
1816
2007
  * @public exported from `@promptbook/utils`
1817
2008
  */
1818
2009
  function removeDiacritics(input) {
@@ -1821,9 +2012,7 @@ function removeDiacritics(input) {
1821
2012
  return DIACRITIC_VARIANTS_LETTERS[character] || character;
1822
2013
  });
1823
2014
  }
1824
- /**
1825
- * TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
1826
- */
2015
+ // TODO: [Ж] Variant for cyrillic (and in general non-latin) letters
1827
2016
 
1828
2017
  /**
1829
2018
  * Converts a given text to kebab-case format.
@@ -1834,6 +2023,7 @@ function removeDiacritics(input) {
1834
2023
  * @returns The kebab-case formatted string.
1835
2024
  * @example 'hello-world'
1836
2025
  * @example 'i-love-promptbook'
2026
+ *
1837
2027
  * @public exported from `@promptbook/utils`
1838
2028
  */
1839
2029
  function normalizeToKebabCase(text) {
@@ -1874,9 +2064,7 @@ function normalizeToKebabCase(text) {
1874
2064
  normalizedName = normalizedName.replace(/-$/, '');
1875
2065
  return normalizedName;
1876
2066
  }
1877
- /**
1878
- * Note: [💞] Ignore a discrepancy between file name and entity name
1879
- */
2067
+ // Note: [💞] Ignore a discrepancy between file name and entity name
1880
2068
 
1881
2069
  /**
1882
2070
  * Removes emojis from a string and fix whitespaces
@@ -1885,6 +2073,7 @@ function normalizeToKebabCase(text) {
1885
2073
  *
1886
2074
  * @param text with emojis
1887
2075
  * @returns text without emojis
2076
+ *
1888
2077
  * @public exported from `@promptbook/utils`
1889
2078
  */
1890
2079
  function removeEmojis(text) {
@@ -1904,6 +2093,7 @@ function removeEmojis(text) {
1904
2093
  * @param value The title string to be converted to a name.
1905
2094
  * @returns A normalized name derived from the input title.
1906
2095
  * @example 'Hello World!' -> 'hello-world'
2096
+ *
1907
2097
  * @public exported from `@promptbook/utils`
1908
2098
  */
1909
2099
  function titleToName(value) {
@@ -2022,13 +2212,11 @@ function renderPromptbookMermaid(pipelineJson, options) {
2022
2212
  `);
2023
2213
  return promptbookMermaid;
2024
2214
  }
2025
- /**
2026
- * TODO: [🧠] FOREACH in mermaid graph
2027
- * TODO: [🧠] Knowledge in mermaid graph
2028
- * TODO: [🧠] Personas in mermaid graph
2029
- * TODO: Maybe use some Mermaid package instead of string templating
2030
- * TODO: [🕌] When more than 2 functionalities, split into separate functions
2031
- */
2215
+ // TODO: [🧠] FOREACH in mermaid graph
2216
+ // TODO: [🧠] Knowledge in mermaid graph
2217
+ // TODO: [🧠] Personas in mermaid graph
2218
+ // TODO: Maybe use some Mermaid package instead of string templating
2219
+ // TODO: [🕌] When more than 2 functionalities, split into separate functions
2032
2220
 
2033
2221
  /**
2034
2222
  * This error indicates problems parsing the format value
@@ -2086,6 +2274,19 @@ class CollectionError extends Error {
2086
2274
  }
2087
2275
  }
2088
2276
 
2277
+ /**
2278
+ * Signals that the requested operation could not be completed because the target already exists.
2279
+ *
2280
+ * @public exported from `@promptbook/core`
2281
+ */
2282
+ class ConflictError extends Error {
2283
+ constructor(message) {
2284
+ super(message);
2285
+ this.name = 'ConflictError';
2286
+ Object.setPrototypeOf(this, ConflictError.prototype);
2287
+ }
2288
+ }
2289
+
2089
2290
  /**
2090
2291
  * This error indicates error from the database
2091
2292
  *
@@ -2098,9 +2299,7 @@ class DatabaseError extends Error {
2098
2299
  Object.setPrototypeOf(this, DatabaseError.prototype);
2099
2300
  }
2100
2301
  }
2101
- /**
2102
- * TODO: [🐱‍🚀] Explain that NotFoundError ([🐱‍🚀] and other specific errors) has priority over DatabaseError in some contexts
2103
- */
2302
+ // TODO: [🐱‍🚀] Explain that NotFoundError ([🐱‍🚀] and other specific errors) has priority over DatabaseError in some contexts
2104
2303
 
2105
2304
  /**
2106
2305
  * This error type indicates that you try to use a feature that is not available in the current environment
@@ -2118,10 +2317,11 @@ class EnvironmentMismatchError extends Error {
2118
2317
  /**
2119
2318
  * This error occurs when some expectation is not met in the execution of the pipeline
2120
2319
  *
2121
- * @public exported from `@promptbook/core`
2122
2320
  * Note: Do not throw this error, its reserved for `checkExpectations` and `createPipelineExecutor` and public ONLY to be serializable through remote server
2123
2321
  * Note: Always thrown in `checkExpectations` and catched in `createPipelineExecutor` and rethrown as `PipelineExecutionError`
2124
2322
  * Note: This is a kindof subtype of PipelineExecutionError
2323
+ *
2324
+ * @public exported from `@promptbook/core`
2125
2325
  */
2126
2326
  class ExpectError extends Error {
2127
2327
  constructor(message) {
@@ -2236,9 +2436,7 @@ class ParseError extends Error {
2236
2436
  Object.setPrototypeOf(this, ParseError.prototype);
2237
2437
  }
2238
2438
  }
2239
- /**
2240
- * TODO: Maybe split `ParseError` and `ApplyError`
2241
- */
2439
+ // TODO: Maybe split `ParseError` and `ApplyError`
2242
2440
 
2243
2441
  /**
2244
2442
  * Generates random token
@@ -2246,16 +2444,15 @@ class ParseError extends Error {
2246
2444
  * Note: `$` is used to indicate that this function is not a pure function - it is not deterministic
2247
2445
  * Note: This function is cryptographically secure (it uses crypto.randomBytes internally)
2248
2446
  *
2249
- * @private internal helper function
2250
2447
  * @returns secure random token
2448
+ *
2449
+ * @private internal helper function
2251
2450
  */
2252
2451
  function $randomToken(randomness) {
2253
2452
  return randomBytes(randomness).toString('hex');
2254
2453
  }
2255
- /**
2256
- * TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
2257
- * TODO: Maybe use nanoid instead https://github.com/ai/nanoid
2258
- */
2454
+ // TODO: [🤶] Maybe export through `@promptbook/utils` or `@promptbook/random` package
2455
+ // TODO: Maybe use nanoid instead https://github.com/ai/nanoid
2259
2456
 
2260
2457
  /**
2261
2458
  * This error indicates errors during the execution of the pipeline
@@ -2272,9 +2469,7 @@ class PipelineExecutionError extends Error {
2272
2469
  Object.setPrototypeOf(this, PipelineExecutionError.prototype);
2273
2470
  }
2274
2471
  }
2275
- /**
2276
- * TODO: [🧠][🌂] Add id to all errors
2277
- */
2472
+ // TODO: [🧠][🌂] Add id to all errors
2278
2473
 
2279
2474
  /**
2280
2475
  * This error indicates that the promptbook object has valid syntax (=can be parsed) but contains logical errors (like circular dependencies)
@@ -2341,6 +2536,7 @@ const PROMPTBOOK_ERRORS = {
2341
2536
  WrappedError,
2342
2537
  NotAllowed,
2343
2538
  DatabaseError,
2539
+ ConflictError,
2344
2540
  // TODO: [🪑]> VersionMismatchError,
2345
2541
  };
2346
2542
  /**
@@ -2375,9 +2571,7 @@ const ALL_ERRORS = {
2375
2571
  ...PROMPTBOOK_ERRORS,
2376
2572
  ...COMMON_JAVASCRIPT_ERRORS,
2377
2573
  };
2378
- /**
2379
- * Note: [💞] Ignore a discrepancy between file name and entity name
2380
- */
2574
+ // Note: [💞] Ignore a discrepancy between file name and entity name
2381
2575
 
2382
2576
  /**
2383
2577
  * Deserializes the error object
@@ -2393,7 +2587,7 @@ function deserializeError(error, isStackAddedToMessage = true) {
2393
2587
  message = `${name}: ${message}`;
2394
2588
  }
2395
2589
  if (isStackAddedToMessage && stack !== undefined && stack !== '') {
2396
- message = spaceTrim$2((block) => `
2590
+ message = spaceTrim$1((block) => `
2397
2591
  ${block(message)}
2398
2592
 
2399
2593
  Original stack trace:
@@ -2414,7 +2608,7 @@ function serializeError(error) {
2414
2608
  const { name, message, stack } = error;
2415
2609
  const { id } = error;
2416
2610
  if (!Object.keys(ALL_ERRORS).includes(name)) {
2417
- console.error(spaceTrim$2((block) => `
2611
+ console.error(spaceTrim$1((block) => `
2418
2612
 
2419
2613
  Cannot serialize error with name "${name}"
2420
2614
 
@@ -2440,8 +2634,9 @@ function serializeError(error) {
2440
2634
  * @param array - Array to iterate over
2441
2635
  * @param options - Options for the function
2442
2636
  * @param callbackfunction - Function to call for each item
2443
- * @public exported from `@promptbook/utils`
2444
2637
  * @deprecated [🪂] Use queues instead
2638
+ *
2639
+ * @public exported from `@promptbook/utils`
2445
2640
  */
2446
2641
  async function forEachAsync(array, options, callbackfunction) {
2447
2642
  const { maxParallelCount = Infinity } = options;
@@ -2520,7 +2715,7 @@ function jsonParse(value) {
2520
2715
  }
2521
2716
  else if (typeof value !== 'string') {
2522
2717
  console.error('Can not parse JSON from non-string value.', { text: value });
2523
- throw new Error(spaceTrim$2(`
2718
+ throw new Error(spaceTrim$1(`
2524
2719
  Can not parse JSON from non-string value.
2525
2720
 
2526
2721
  The value type: ${typeof value}
@@ -2534,7 +2729,7 @@ function jsonParse(value) {
2534
2729
  if (!(error instanceof Error)) {
2535
2730
  throw error;
2536
2731
  }
2537
- throw new Error(spaceTrim$2((block) => `
2732
+ throw new Error(spaceTrim$1((block) => `
2538
2733
  ${block(error.message)}
2539
2734
 
2540
2735
  The expected JSON text:
@@ -2600,8 +2795,8 @@ function numberToString(value) {
2600
2795
  * This is useful and used in the `templateParameters` function
2601
2796
  *
2602
2797
  * Note: This function is not just calling `toString` method
2603
- * It's more complex and can handle this conversion specifically for LLM models
2604
- * See `VALUE_STRINGS`
2798
+ * It's more complex and can handle this conversion specifically for LLM models
2799
+ * See `VALUE_STRINGS`
2605
2800
  *
2606
2801
  * Note: There are 2 similar functions
2607
2802
  * - `valueToString` converts value to string for LLM models as human-readable string
@@ -2652,12 +2847,13 @@ function valueToString(value) {
2652
2847
  * Replaces parameters in template with values from parameters object
2653
2848
  *
2654
2849
  * Note: This function is not places strings into string,
2655
- * It's more complex and can handle this operation specifically for LLM models
2850
+ * It's more complex and can handle this operation specifically for LLM models
2656
2851
  *
2657
2852
  * @param template the template with parameters in {curly} braces
2658
2853
  * @param parameters the object with parameters
2659
2854
  * @returns the template with replaced parameters
2660
2855
  * @throws {PipelineExecutionError} if parameter is not defined, not closed, or not opened
2856
+ *
2661
2857
  * @public exported from `@promptbook/utils`
2662
2858
  */
2663
2859
  function templateParameters(template, parameters) {
@@ -2741,6 +2937,7 @@ const PROMPT_PARAMETER_ESCAPE_WITH_BRACES_PATTERN = /[{}$`]/g;
2741
2937
  * Normalizes a JSON string so it can be safely rendered without double escaping.
2742
2938
  *
2743
2939
  * @param value Candidate JSON string.
2940
+ *
2744
2941
  * @private function of ParameterEscaping
2745
2942
  */
2746
2943
  function normalizeJsonString(value) {
@@ -2755,32 +2952,27 @@ function normalizeJsonString(value) {
2755
2952
  * Hides brackets in a string to avoid confusion with template parameters.
2756
2953
  *
2757
2954
  * @param value Input string with literal brackets.
2955
+ *
2758
2956
  * @private function of ParameterEscaping
2759
2957
  */
2760
2958
  function hideBrackets(value) {
2761
- return value
2762
- .split('{')
2763
- .join(`${REPLACING_NONCE}beginbracket`)
2764
- .split('}')
2765
- .join(`${REPLACING_NONCE}endbracket`);
2959
+ return value.split('{').join(`${REPLACING_NONCE}beginbracket`).split('}').join(`${REPLACING_NONCE}endbracket`);
2766
2960
  }
2767
2961
  /**
2768
2962
  * Restores hidden brackets.
2769
2963
  *
2770
2964
  * @param value String with hidden brackets.
2965
+ *
2771
2966
  * @private function of ParameterEscaping
2772
2967
  */
2773
2968
  function restoreBrackets(value) {
2774
- return value
2775
- .split(`${REPLACING_NONCE}beginbracket`)
2776
- .join('{')
2777
- .split(`${REPLACING_NONCE}endbracket`)
2778
- .join('}');
2969
+ return value.split(`${REPLACING_NONCE}beginbracket`).join('{').split(`${REPLACING_NONCE}endbracket`).join('}');
2779
2970
  }
2780
2971
  /**
2781
2972
  * Decides whether a parameter can be inlined safely.
2782
2973
  *
2783
2974
  * @param value Parameter rendered as string.
2975
+ *
2784
2976
  * @private function of ParameterEscaping
2785
2977
  */
2786
2978
  function shouldInlineParameterValue(value) {
@@ -2794,6 +2986,7 @@ function shouldInlineParameterValue(value) {
2794
2986
  *
2795
2987
  * @param value Parameter value to escape.
2796
2988
  * @param options Escape options for additional characters.
2989
+ *
2797
2990
  * @private function of ParameterEscaping
2798
2991
  */
2799
2992
  function escapePromptParameterValue(value, options) {
@@ -2819,6 +3012,7 @@ const ParameterEscaping = {
2819
3012
  * Builds numeric parameter names (1, 2, ...).
2820
3013
  *
2821
3014
  * @param index Zero-based parameter index.
3015
+ *
2822
3016
  * @private function of ParameterNaming
2823
3017
  */
2824
3018
  function buildNumericParameterName(index) {
@@ -2828,6 +3022,7 @@ function buildNumericParameterName(index) {
2828
3022
  * Builds alphabetic parameter names (a, b, ..., aa).
2829
3023
  *
2830
3024
  * @param index Zero-based parameter index.
3025
+ *
2831
3026
  * @private function of ParameterNaming
2832
3027
  */
2833
3028
  function buildAlphabeticParameterName(index) {
@@ -2844,6 +3039,7 @@ function buildAlphabeticParameterName(index) {
2844
3039
  * Converts a positive integer into a Roman numeral string.
2845
3040
  *
2846
3041
  * @param value Positive integer value.
3042
+ *
2847
3043
  * @private function of ParameterNaming
2848
3044
  */
2849
3045
  function toRomanNumeral(value) {
@@ -2876,6 +3072,7 @@ function toRomanNumeral(value) {
2876
3072
  * Builds Roman numeral parameter names (I, II, ...).
2877
3073
  *
2878
3074
  * @param index Zero-based parameter index.
3075
+ *
2879
3076
  * @private function of ParameterNaming
2880
3077
  */
2881
3078
  function buildRomanParameterName(index) {
@@ -2886,6 +3083,7 @@ function buildRomanParameterName(index) {
2886
3083
  *
2887
3084
  * @param prefix Prefix string.
2888
3085
  * @param builder Base builder function.
3086
+ *
2889
3087
  * @private function of ParameterNaming
2890
3088
  */
2891
3089
  function buildPrefixedParameterName(prefix, builder) {
@@ -2907,6 +3105,7 @@ const PARAMETER_NAME_STRATEGIES = [
2907
3105
  * Collects bracketed tokens from parameter values to avoid placeholder collisions.
2908
3106
  *
2909
3107
  * @param values Parameter values to scan.
3108
+ *
2910
3109
  * @private function of ParameterNaming
2911
3110
  */
2912
3111
  function collectBracketedParameterTokens(values) {
@@ -2927,6 +3126,7 @@ function collectBracketedParameterTokens(values) {
2927
3126
  * Builds placeholder names while avoiding collisions with parameter content.
2928
3127
  *
2929
3128
  * @param values Parameter values to scan for conflicting tokens.
3129
+ *
2930
3130
  * @private function of ParameterNaming
2931
3131
  */
2932
3132
  function buildParameterNames(values) {
@@ -2957,6 +3157,7 @@ const ParameterNaming = {
2957
3157
  * Formats the placeholder used in the prompt body for a parameter.
2958
3158
  *
2959
3159
  * @param name Parameter placeholder name.
3160
+ *
2960
3161
  * @private function of ParameterSection
2961
3162
  */
2962
3163
  function formatParameterPlaceholder(name) {
@@ -2966,6 +3167,7 @@ function formatParameterPlaceholder(name) {
2966
3167
  * Formats a single line entry for structured parameters.
2967
3168
  *
2968
3169
  * @param item Parameter entry data.
3170
+ *
2969
3171
  * @private function of ParameterSection
2970
3172
  */
2971
3173
  function formatParameterListItem(item) {
@@ -2977,13 +3179,14 @@ function formatParameterListItem(item) {
2977
3179
  * Builds the structured parameters section appended to the prompt.
2978
3180
  *
2979
3181
  * @param items Parameter entries to include.
3182
+ *
2980
3183
  * @private function of ParameterSection
2981
3184
  */
2982
3185
  function buildParametersSection(items) {
2983
3186
  const entries = items
2984
3187
  .flatMap((item) => formatParameterListItem(item).split(/\r?\n/))
2985
3188
  .filter((line) => line !== '');
2986
- return spaceTrim$2((block) => `
3189
+ return spaceTrim$1((block) => `
2987
3190
  **Parameters:**
2988
3191
  ${block(entries.join('\n'))}
2989
3192
 
@@ -3052,11 +3255,12 @@ function isPromptString(value) {
3052
3255
  * @param strings
3053
3256
  * @param values
3054
3257
  * @returns prompt content wrapped as a PromptString
3258
+ *
3055
3259
  * @public exported from `@promptbook/utils`
3056
3260
  */
3057
3261
  function prompt(strings, ...values) {
3058
3262
  if (values.length === 0) {
3059
- return new PromptString(spaceTrim$2(strings.join('')));
3263
+ return new PromptString(spaceTrim$1(strings.join('')));
3060
3264
  }
3061
3265
  const stringsWithHiddenParameters = strings.map((stringsItem) => ParameterEscaping.hideBrackets(stringsItem));
3062
3266
  const parameterMetadata = values.map((value) => {
@@ -3097,7 +3301,7 @@ function prompt(strings, ...values) {
3097
3301
  ? `${result}${stringsItem}`
3098
3302
  : `${result}${stringsItem}${ParameterSection.formatParameterPlaceholder(parameterName)}`;
3099
3303
  }, '');
3100
- pipelineString = spaceTrim$2(pipelineString);
3304
+ pipelineString = spaceTrim$1(pipelineString);
3101
3305
  try {
3102
3306
  pipelineString = templateParameters(pipelineString, parameters);
3103
3307
  }
@@ -3106,7 +3310,7 @@ function prompt(strings, ...values) {
3106
3310
  throw error;
3107
3311
  }
3108
3312
  console.error({ pipelineString, parameters, parameterNames: parameterNamesOrdered, error });
3109
- throw new UnexpectedError(spaceTrim$2((block) => `
3313
+ throw new UnexpectedError(spaceTrim$1((block) => `
3110
3314
  Internal error in prompt template literal
3111
3315
 
3112
3316
  ${block(JSON.stringify({ strings, values }, null, 4))}}
@@ -3145,14 +3349,22 @@ function prompt(strings, ...values) {
3145
3349
  * 3) `book` for notating and validating entire books exported from `@promptbook/utils`
3146
3350
  *
3147
3351
  * @alias prompt
3352
+ *
3148
3353
  * @public exported from `@promptbook/utils`
3149
3354
  */
3150
3355
  const promptTemplate = prompt;
3356
+ // TODO: Maybe split into multiple files
3357
+ // TODO: [🧠][🈴] Where is the best location for this file
3358
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3359
+
3151
3360
  /**
3152
- * TODO: Maybe split into multiple files
3153
- * TODO: [🧠][🈴] Where is the best location for this file
3154
- * Note: [💞] Ignore a discrepancy between file name and entity name
3361
+ * @@@
3362
+ *
3363
+ * @public exported from `@promptbook/utils`
3155
3364
  */
3365
+ function escapeRegExp(value) {
3366
+ return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
3367
+ }
3156
3368
 
3157
3369
  /**
3158
3370
  * HTTP header used by Promptbook clients to advertise their release version.
@@ -3187,7 +3399,7 @@ function isClientVersionCompatible(version) {
3187
3399
  */
3188
3400
  function formatClientVersionMismatchMessage(clientVersion) {
3189
3401
  const reportedVersion = clientVersion !== null && clientVersion !== void 0 ? clientVersion : 'unknown';
3190
- return spaceTrim$2(`
3402
+ return spaceTrim$1(`
3191
3403
  A new version of Promptbook is available.
3192
3404
  Please refresh the page to keep using the latest experience (currently using v${reportedVersion}).
3193
3405
  `);
@@ -3239,9 +3451,7 @@ function getClientVersionFromHeaders(headers) {
3239
3451
  const value = normalizedHeaders.get(CLIENT_VERSION_HEADER);
3240
3452
  return value ? value.trim() : null;
3241
3453
  }
3242
- /**
3243
- * Note: [💞] Ignore a discrepancy between file name and entity name
3244
- */
3454
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3245
3455
 
3246
3456
  /**
3247
3457
  * Detects if the code is running in a browser environment in main thread (Not in a web worker)
@@ -3258,9 +3468,7 @@ function $isRunningInBrowser() {
3258
3468
  return false;
3259
3469
  }
3260
3470
  }
3261
- /**
3262
- * TODO: [🎺]
3263
- */
3471
+ // TODO: [🎺]
3264
3472
 
3265
3473
  /**
3266
3474
  * Detects if the code is running in jest environment
@@ -3278,9 +3486,7 @@ function $isRunningInJest() {
3278
3486
  return false;
3279
3487
  }
3280
3488
  }
3281
- /**
3282
- * TODO: [🎺]
3283
- */
3489
+ // TODO: [🎺]
3284
3490
 
3285
3491
  /**
3286
3492
  * Detects if the code is running in a Node.js environment
@@ -3297,9 +3503,7 @@ function $isRunningInNode() {
3297
3503
  return false;
3298
3504
  }
3299
3505
  }
3300
- /**
3301
- * TODO: [🎺]
3302
- */
3506
+ // TODO: [🎺]
3303
3507
 
3304
3508
  /**
3305
3509
  * Detects if the code is running in a web worker
@@ -3319,9 +3523,7 @@ function $isRunningInWebWorker() {
3319
3523
  return false;
3320
3524
  }
3321
3525
  }
3322
- /**
3323
- * TODO: [🎺]
3324
- */
3526
+ // TODO: [🎺]
3325
3527
 
3326
3528
  /**
3327
3529
  * Returns information about the current runtime environment
@@ -3338,9 +3540,7 @@ function $detectRuntimeEnvironment() {
3338
3540
  isRunningInWebWorker: $isRunningInWebWorker(),
3339
3541
  };
3340
3542
  }
3341
- /**
3342
- * TODO: [🎺] Also detect and report node version here
3343
- */
3543
+ // TODO: [🎺] Also detect and report node version here
3344
3544
 
3345
3545
  /**
3346
3546
  * Number of characters per standard line with 11pt Arial font size.
@@ -3354,10 +3554,8 @@ const CHARACTERS_PER_STANDARD_LINE = 63;
3354
3554
  * @public exported from `@promptbook/utils`
3355
3555
  */
3356
3556
  const LINES_PER_STANDARD_PAGE = 44;
3357
- /**
3358
- * TODO: [🧠] Should be this `constants.ts` or `config.ts`?
3359
- * Note: [💞] Ignore a discrepancy between file name and entity name
3360
- */
3557
+ // TODO: [🧠] Should be this `constants.ts` or `config.ts`?
3558
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3361
3559
 
3362
3560
  /**
3363
3561
  * Counts number of characters in the text
@@ -3373,10 +3571,8 @@ function countCharacters(text) {
3373
3571
  text = text.replace(/\p{Extended_Pictographic}(\u{200D}\p{Extended_Pictographic})*/gu, '-');
3374
3572
  return text.length;
3375
3573
  }
3376
- /**
3377
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3378
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3379
- */
3574
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3575
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3380
3576
 
3381
3577
  /**
3382
3578
  * Counts number of lines in the text
@@ -3394,10 +3590,8 @@ function countLines(text) {
3394
3590
  const lines = text.split(/\r?\n/);
3395
3591
  return lines.reduce((count, line) => count + Math.max(Math.ceil(line.length / CHARACTERS_PER_STANDARD_LINE), 1), 0);
3396
3592
  }
3397
- /**
3398
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3399
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3400
- */
3593
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3594
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3401
3595
 
3402
3596
  /**
3403
3597
  * Counts number of pages in the text
@@ -3409,10 +3603,8 @@ function countLines(text) {
3409
3603
  function countPages(text) {
3410
3604
  return Math.ceil(countLines(text) / LINES_PER_STANDARD_PAGE);
3411
3605
  }
3412
- /**
3413
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3414
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3415
- */
3606
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3607
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3416
3608
 
3417
3609
  /**
3418
3610
  * Counts number of paragraphs in the text
@@ -3422,10 +3614,8 @@ function countPages(text) {
3422
3614
  function countParagraphs(text) {
3423
3615
  return text.split(/\n\s*\n/).filter((paragraph) => paragraph.trim() !== '').length;
3424
3616
  }
3425
- /**
3426
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3427
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3428
- */
3617
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3618
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3429
3619
 
3430
3620
  /**
3431
3621
  * Split text into sentences
@@ -3443,10 +3633,8 @@ function splitIntoSentences(text) {
3443
3633
  function countSentences(text) {
3444
3634
  return splitIntoSentences(text).length;
3445
3635
  }
3446
- /**
3447
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3448
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3449
- */
3636
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3637
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3450
3638
 
3451
3639
  /**
3452
3640
  * Counts number of words in the text
@@ -3460,11 +3648,9 @@ function countWords(text) {
3460
3648
  text = text.replace(/([a-z])([A-Z])/g, '$1 $2');
3461
3649
  return text.split(/[^a-zа-я0-9]+/i).filter((word) => word.length > 0).length;
3462
3650
  }
3463
- /**
3464
- * TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3465
- * TODO: [🧠][✌️] Make some Promptbook-native token system
3466
- * TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
3467
- */
3651
+ // TODO: [🥴] Implement counting in formats - like JSON, CSV, XML,...
3652
+ // TODO: [🧠][✌️] Make some Promptbook-native token system
3653
+ // TODO: [✌️] `countWords` should be just `splitWords(...).length`, and all other counters should use this pattern as well
3468
3654
 
3469
3655
  /**
3470
3656
  * Index of all counter functions
@@ -3479,10 +3665,8 @@ const CountUtils = {
3479
3665
  LINES: countLines,
3480
3666
  PAGES: countPages,
3481
3667
  };
3482
- /**
3483
- * TODO: [🧠][🤠] This should be probably as part of `TextFormatParser`
3484
- * Note: [💞] Ignore a discrepancy between file name and entity name
3485
- */
3668
+ // TODO: [🧠][🤠] This should be probably as part of `TextFormatParser`
3669
+ // Note: [💞] Ignore a discrepancy between file name and entity name
3486
3670
 
3487
3671
  /**
3488
3672
  * Computes SHA-256 hash of the given object
@@ -3490,11 +3674,9 @@ const CountUtils = {
3490
3674
  * @public exported from `@promptbook/utils`
3491
3675
  */
3492
3676
  function computeHash(value) {
3493
- return SHA256(hexEncoder.parse(spaceTrim$2(valueToString(value)))).toString( /* hex */);
3677
+ return SHA256(hexEncoder.parse(spaceTrim$1(valueToString(value)))).toString( /* hex */);
3494
3678
  }
3495
- /**
3496
- * TODO: [🥬][🥬] Use this ACRY
3497
- */
3679
+ // TODO: [🥬][🥬] Use this ACRY
3498
3680
 
3499
3681
  /**
3500
3682
  * Makes first letter of a string uppercase
@@ -3671,6 +3853,9 @@ const ADJECTIVES$1 = [
3671
3853
  'prvotní',
3672
3854
  'hbitý',
3673
3855
  ];
3856
+ /**
3857
+ * Collection of nouns.
3858
+ */
3674
3859
  const NOUNS$1 = [
3675
3860
  'jablko',
3676
3861
  'nebe',
@@ -3884,6 +4069,9 @@ const NOUNS$1 = [
3884
4069
  'okno',
3885
4070
  'chodba',
3886
4071
  ];
4072
+ /**
4073
+ * Collection of verbs.
4074
+ */
3887
4075
  const VERBS$1 = [
3888
4076
  'skáče',
3889
4077
  'tančí',
@@ -4056,9 +4244,7 @@ const LINGUISTIC_HASH_WORD_LISTS_CS = {
4056
4244
  noun: NOUNS$1,
4057
4245
  verb: VERBS$1,
4058
4246
  };
4059
- /**
4060
- * Note: [💞] Ignore a discrepancy between file name and entity name
4061
- */
4247
+ // Note: [💞] Ignore a discrepancy between file name and entity name
4062
4248
 
4063
4249
  /**
4064
4250
  * @@@
@@ -4314,6 +4500,9 @@ const ADJECTIVES = [
4314
4500
  'macro',
4315
4501
  'mini',
4316
4502
  ];
4503
+ /**
4504
+ * Collection of nouns.
4505
+ */
4317
4506
  const NOUNS = [
4318
4507
  'apple',
4319
4508
  'sky',
@@ -4553,6 +4742,9 @@ const NOUNS = [
4553
4742
  'roof',
4554
4743
  'floor',
4555
4744
  ];
4745
+ /**
4746
+ * Collection of verbs.
4747
+ */
4556
4748
  const VERBS = [
4557
4749
  'jumping',
4558
4750
  'dancing',
@@ -4748,9 +4940,7 @@ const LINGUISTIC_HASH_WORD_LISTS_EN = {
4748
4940
  noun: NOUNS,
4749
4941
  verb: VERBS,
4750
4942
  };
4751
- /**
4752
- * Note: [💞] Ignore a discrepancy between file name and entity name
4753
- */
4943
+ // Note: [💞] Ignore a discrepancy between file name and entity name
4754
4944
 
4755
4945
  /**
4756
4946
  * Default language used for linguistic hashes.
@@ -4925,8 +5115,9 @@ function normalizeLinguisticHashWordCount(wordCount) {
4925
5115
  /**
4926
5116
  * Creates a human-readable hash as a short, story-like phrase.
4927
5117
  *
4928
- * @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
4929
5118
  * {@link MIN_LINGUISTIC_HASH_WORD_COUNT}..{@link MAX_LINGUISTIC_HASH_WORD_COUNT})
5119
+ *
5120
+ * @param wordCount how many words to include (defaults to {@link DEFAULT_LINGUISTIC_HASH_WORD_COUNT}, clamped to
4930
5121
  * @param language optional language code (defaults to {@link DEFAULT_LINGUISTIC_HASH_LANGUAGE})
4931
5122
  *
4932
5123
  * @public exported from `@promptbook/utils`
@@ -4945,6 +5136,7 @@ async function linguisticHash(input, wordCount, language) {
4945
5136
  * Note: `$` is used to indicate that this function is not a pure function - it is not deterministic because it depends on the current time
4946
5137
  *
4947
5138
  * @returns string_date branded type
5139
+ *
4948
5140
  * @public exported from `@promptbook/utils`
4949
5141
  */
4950
5142
  function $getCurrentDate() {
@@ -4952,6 +5144,8 @@ function $getCurrentDate() {
4952
5144
  }
4953
5145
 
4954
5146
  /**
5147
+ * Handles debounce.
5148
+ *
4955
5149
  * @public exported from `@promptbook/utils`
4956
5150
  */
4957
5151
  function debounce(fn, delay) {
@@ -5030,10 +5224,8 @@ function parseNumber(value) {
5030
5224
  }
5031
5225
  return num;
5032
5226
  }
5033
- /**
5034
- * TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
5035
- * TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
5036
- */
5227
+ // TODO: Maybe use sth. like safe-eval in fraction/calculation case @see https://www.npmjs.com/package/safe-eval
5228
+ // TODO: [🧠][🌻] Maybe export through `@promptbook/markdown-utils` not `@promptbook/utils`
5037
5229
 
5038
5230
  /**
5039
5231
  * Makes first letter of a string lowercase
@@ -5055,6 +5247,7 @@ function decapitalize(word) {
5055
5247
  * @returns The normalized text in SCREAMING_CASE format.
5056
5248
  * @example 'HELLO_WORLD'
5057
5249
  * @example 'I_LOVE_PROMPTBOOK'
5250
+ *
5058
5251
  * @public exported from `@promptbook/utils`
5059
5252
  */
5060
5253
  function normalizeTo_SCREAMING_CASE(text) {
@@ -5108,6 +5301,7 @@ function normalizeTo_SCREAMING_CASE(text) {
5108
5301
  *
5109
5302
  * @param {string} input
5110
5303
  * @returns {Set} of keywords without diacritics in lowercase
5304
+ *
5111
5305
  * @public exported from `@promptbook/utils`
5112
5306
  */
5113
5307
  function parseKeywordsFromString(input) {
@@ -5142,6 +5336,7 @@ function isValidKeyword(keyword) {
5142
5336
  * @param name The string to be converted to a URI-compatible format.
5143
5337
  * @returns A URI-compatible string derived from the input name.
5144
5338
  * @example 'Hello World' -> 'hello-world'
5339
+ *
5145
5340
  * @public exported from `@promptbook/utils`
5146
5341
  */
5147
5342
  function nameToUriPart(name) {
@@ -5160,6 +5355,7 @@ function nameToUriPart(name) {
5160
5355
  * @param name The name to be converted into URI parts.
5161
5356
  * @returns An array of URI-compatible parts derived from the name.
5162
5357
  * @example 'Example Name' -> ['example', 'name']
5358
+ *
5163
5359
  * @public exported from `@promptbook/utils`
5164
5360
  */
5165
5361
  function nameToUriParts(name) {
@@ -5189,6 +5385,7 @@ function normalizeMessageText(text) {
5189
5385
  * @returns
5190
5386
  * @example 'HelloWorld'
5191
5387
  * @example 'ILovePromptbook'
5388
+ *
5192
5389
  * @public exported from `@promptbook/utils`
5193
5390
  */
5194
5391
  function normalizeTo_PascalCase(text) {
@@ -5204,6 +5401,7 @@ function normalizeTo_PascalCase(text) {
5204
5401
  * @returns The normalized text in snake_case format.
5205
5402
  * @example 'hello_world'
5206
5403
  * @example 'i_love_promptbook'
5404
+ *
5207
5405
  * @public exported from `@promptbook/utils`
5208
5406
  */
5209
5407
  function normalizeTo_snake_case(text) {
@@ -5228,6 +5426,7 @@ function normalizeWhitespaces(sentence) {
5228
5426
  *
5229
5427
  * @param input of any kind
5230
5428
  * @returns {Set} of keywords without diacritics in lowercase
5429
+ *
5231
5430
  * @public exported from `@promptbook/utils`
5232
5431
  */
5233
5432
  function parseKeywords(input) {
@@ -5249,10 +5448,8 @@ function parseKeywords(input) {
5249
5448
  return new Set();
5250
5449
  }
5251
5450
  }
5252
- /**
5253
- * Note: Not using spread in input param because of keeping second parameter for options
5254
- * TODO: [🌺] Use some intermediate util splitWords
5255
- */
5451
+ // Note: Not using spread in input param because of keeping second parameter for options
5452
+ // TODO: [🌺] Use some intermediate util splitWords
5256
5453
 
5257
5454
  /**
5258
5455
  * Removes quotes from a string
@@ -5266,6 +5463,7 @@ function parseKeywords(input) {
5266
5463
  *
5267
5464
  * @param text optionally quoted text
5268
5465
  * @returns text without quotes
5466
+ *
5269
5467
  * @public exported from `@promptbook/utils`
5270
5468
  */
5271
5469
  function removeQuotes(text) {
@@ -5284,6 +5482,7 @@ function removeQuotes(text) {
5284
5482
  * @param haystack
5285
5483
  * @param needle
5286
5484
  * @returns
5485
+ *
5287
5486
  * @public exported from `@promptbook/utils`
5288
5487
  */
5289
5488
  function searchKeywords(haystack, needle) {
@@ -5294,9 +5493,7 @@ function searchKeywords(haystack, needle) {
5294
5493
  }
5295
5494
  return true;
5296
5495
  }
5297
- /**
5298
- * TODO: Rename to `isKeywordInKeywords`
5299
- */
5496
+ // TODO: Rename to `isKeywordInKeywords`
5300
5497
 
5301
5498
  /**
5302
5499
  * Adds suffix to the URL
@@ -5320,6 +5517,7 @@ function suffixUrl(value, suffix) {
5320
5517
  *
5321
5518
  * @param text optionally quoted text
5322
5519
  * @returns text without quotes
5520
+ *
5323
5521
  * @public exported from `@promptbook/utils`
5324
5522
  */
5325
5523
  function unwrapResult(text, options) {
@@ -5394,15 +5592,14 @@ function unwrapResult(text, options) {
5394
5592
  return processedText;
5395
5593
  }
5396
5594
  }
5397
- /**
5398
- * TODO: [🧠] Should this also unwrap the (parenthesis)
5399
- */
5595
+ // TODO: [🧠] Should this also unwrap the (parenthesis)
5400
5596
 
5401
5597
  /**
5402
5598
  * Parses the task and returns the list of all parameter names
5403
5599
  *
5404
5600
  * @param template the string template with parameters in {curly} braces
5405
5601
  * @returns the list of parameter names
5602
+ *
5406
5603
  * @public exported from `@promptbook/utils`
5407
5604
  */
5408
5605
  function extractParameterNames(template) {
@@ -5422,6 +5619,7 @@ function extractParameterNames(template) {
5422
5619
  *
5423
5620
  * @param pipeline The pipeline to clone.
5424
5621
  * @returns A new PipelineJson object with the same properties as the input.
5622
+ *
5425
5623
  * @public exported from `@promptbook/utils`
5426
5624
  */
5427
5625
  function clonePipeline(pipeline) {
@@ -5443,9 +5641,7 @@ function clonePipeline(pipeline) {
5443
5641
  sources,
5444
5642
  };
5445
5643
  }
5446
- /**
5447
- * TODO: [🍙] Make some standard order of json properties
5448
- */
5644
+ // TODO: [🍙] Make some standard order of json properties
5449
5645
 
5450
5646
  // <- TODO: Auto convert to type `import { ... } from 'type-fest';`
5451
5647
  /**
@@ -5464,7 +5660,6 @@ function clonePipeline(pipeline) {
5464
5660
  * - `Symbol` objects are not serializable
5465
5661
  * - And much more...
5466
5662
  *
5467
- *
5468
5663
  * @public exported from `@promptbook/utils`
5469
5664
  */
5470
5665
  function isSerializableAsJson(value) {
@@ -5476,14 +5671,12 @@ function isSerializableAsJson(value) {
5476
5671
  return false;
5477
5672
  }
5478
5673
  }
5479
- /**
5480
- * TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
5481
- * TODO: [🧠][💺] Can be done this on type-level?
5482
- */
5674
+ // TODO: [🧠][main] !!3 In-memory cache of same values to prevent multiple checks
5675
+ // TODO: [🧠][💺] Can be done this on type-level?
5483
5676
 
5484
5677
  /**
5485
5678
  * Recursively converts JSON strings to JSON objects
5486
-
5679
+ *
5487
5680
  * @public exported from `@promptbook/utils`
5488
5681
  */
5489
5682
  function jsonStringsToJsons(object) {
@@ -5507,9 +5700,7 @@ function jsonStringsToJsons(object) {
5507
5700
  }
5508
5701
  return newObject;
5509
5702
  }
5510
- /**
5511
- * TODO: Type the return type correctly
5512
- */
5703
+ // TODO: Type the return type correctly
5513
5704
 
5514
5705
  /**
5515
5706
  * Function `serializeToPromptbookJavascript` will serialize a value to a javascript representation using `@promptbook/*` entities where possible.
@@ -5519,7 +5710,10 @@ function jsonStringsToJsons(object) {
5519
5710
  function serializeToPromptbookJavascript(value) {
5520
5711
  let serializedValue;
5521
5712
  let imports = [];
5522
- if (value === null || value === undefined || typeof value === 'number' || typeof value === 'boolean') {
5713
+ if (value === undefined) {
5714
+ serializedValue = 'undefined';
5715
+ }
5716
+ else if (value === null || typeof value === 'number' || typeof value === 'boolean') {
5523
5717
  serializedValue = JSON.stringify(value, null, 4);
5524
5718
  }
5525
5719
  else if (Array.isArray(value)) {
@@ -5535,7 +5729,7 @@ function serializeToPromptbookJavascript(value) {
5535
5729
  imports.push(`import { Color } from '@promptbook/color';`);
5536
5730
  }
5537
5731
  else if (typeof value === 'string') {
5538
- const trimmed = spaceTrim$2(value);
5732
+ const trimmed = spaceTrim$1(value);
5539
5733
  if (trimmed.includes('\n')) {
5540
5734
  // Multiline string -> use `spaceTrim`
5541
5735
  serializedValue = `spaceTrim(\`\n${value.replace(/`/g, '\\`')}\n\`)`;
@@ -5569,14 +5763,13 @@ function serializeToPromptbookJavascript(value) {
5569
5763
  const uniqueImports = Array.from(new Set(imports)).filter((importStatement) => !!importStatement && importStatement.trim().length > 0);
5570
5764
  return { imports: uniqueImports, value: serializedValue };
5571
5765
  }
5572
- /**
5573
- * TODO: Dynamic indentation passable through options in a second argument
5574
- */
5766
+ // TODO: Dynamic indentation passable through options in a second argument
5575
5767
 
5576
5768
  /**
5577
5769
  * Create difference set of two sets.
5578
5770
  *
5579
5771
  * @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
5772
+ *
5580
5773
  * @public exported from `@promptbook/utils`
5581
5774
  */
5582
5775
  function difference(a, b, isEqual = (a, b) => a === b) {
@@ -5588,14 +5781,13 @@ function difference(a, b, isEqual = (a, b) => a === b) {
5588
5781
  }
5589
5782
  return diff;
5590
5783
  }
5591
- /**
5592
- * TODO: [🧠][💯] Maybe also implement symmetricDifference
5593
- */
5784
+ // TODO: [🧠][💯] Maybe also implement symmetricDifference
5594
5785
 
5595
5786
  /**
5596
5787
  * Creates a new set with all elements that are present in all sets
5597
5788
  *
5598
5789
  * @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
5790
+ *
5599
5791
  * @public exported from `@promptbook/utils`
5600
5792
  */
5601
5793
  function intersection(...sets) {
@@ -5621,6 +5813,7 @@ function intersection(...sets) {
5621
5813
  * Creates a new set with all elements that are present in either set
5622
5814
  *
5623
5815
  * @deprecated use new javascript set methods instead @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
5816
+ *
5624
5817
  * @public exported from `@promptbook/utils`
5625
5818
  */
5626
5819
  function union(...sets) {
@@ -5652,6 +5845,7 @@ function isValidEmail(email) {
5652
5845
  * Determines if the given path is a root path.
5653
5846
  *
5654
5847
  * Note: This does not check if the file exists only if the path is valid
5848
+ *
5655
5849
  * @public exported from `@promptbook/utils`
5656
5850
  */
5657
5851
  function isRootPath(value) {
@@ -5663,15 +5857,14 @@ function isRootPath(value) {
5663
5857
  }
5664
5858
  return false;
5665
5859
  }
5666
- /**
5667
- * TODO: [🍏] Make for MacOS paths
5668
- */
5860
+ // TODO: [🍏] Make for MacOS paths
5669
5861
 
5670
5862
  /**
5671
5863
  * Checks if the given value is a valid JavaScript identifier name.
5672
5864
  *
5673
5865
  * @param javascriptName The value to check for JavaScript identifier validity.
5674
5866
  * @returns `true` if the value is a valid JavaScript name, false otherwise.
5867
+ *
5675
5868
  * @public exported from `@promptbook/utils`
5676
5869
  */
5677
5870
  function isValidJavascriptName(javascriptName) {
@@ -5704,12 +5897,13 @@ function isValidSemanticVersion(version) {
5704
5897
  * Tests if given string is valid promptbook version
5705
5898
  * It looks into list of known promptbook versions.
5706
5899
  *
5707
- * @see https://www.npmjs.com/package/promptbook?activeTab=versions
5708
5900
  * 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.
5709
5901
  * Note: There are two similar functions:
5710
5902
  * - `isValidSemanticVersion` which tests any semantic version
5711
5903
  * - `isValidPromptbookVersion` *(this one)* which tests just Promptbook versions
5712
5904
  *
5905
+ * @see https://www.npmjs.com/package/promptbook?activeTab=versions
5906
+ *
5713
5907
  * @public exported from `@promptbook/utils`
5714
5908
  */
5715
5909
  function isValidPromptbookVersion(version) {
@@ -5732,7 +5926,8 @@ function isValidPromptbookVersion(version) {
5732
5926
  *
5733
5927
  * @public exported from `@promptbook/utils`
5734
5928
  */
5735
- function isHostnameOnPrivateNetwork(hostname) {
5929
+ function isHostnameOnPrivateNetwork(hostname, options = {}) {
5930
+ const { allowLocalhost = false } = options;
5736
5931
  if (hostname === 'example.com' ||
5737
5932
  hostname === 'localhost' ||
5738
5933
  hostname.endsWith('.localhost') ||
@@ -5740,7 +5935,7 @@ function isHostnameOnPrivateNetwork(hostname) {
5740
5935
  hostname.endsWith('.test') ||
5741
5936
  hostname === '127.0.0.1' ||
5742
5937
  hostname === '::1') {
5743
- return true;
5938
+ return !allowLocalhost;
5744
5939
  }
5745
5940
  if (hostname.includes(':')) {
5746
5941
  // IPv6
@@ -5763,15 +5958,17 @@ function isHostnameOnPrivateNetwork(hostname) {
5763
5958
  * - `isUrlOnPrivateNetwork` *(this one)* which tests full URL
5764
5959
  * - `isHostnameOnPrivateNetwork` which tests just hostname
5765
5960
  *
5766
- * @param {string} ipAddress - The IP address to check.
5961
+ * @param {string} url - The URL to check.
5962
+ * @param {IsUrlOnPrivateNetworkOptions} options - Options for the check.
5767
5963
  * @returns {boolean} Returns true if the IP address is reserved for private networks or localhost, otherwise false.
5964
+ *
5768
5965
  * @public exported from `@promptbook/utils`
5769
5966
  */
5770
- function isUrlOnPrivateNetwork(url) {
5967
+ function isUrlOnPrivateNetwork(url, options = {}) {
5771
5968
  if (typeof url === 'string') {
5772
5969
  url = new URL(url);
5773
5970
  }
5774
- return isHostnameOnPrivateNetwork(url.hostname);
5971
+ return isHostnameOnPrivateNetwork(url.hostname, options);
5775
5972
  }
5776
5973
 
5777
5974
  /**
@@ -5803,9 +6000,7 @@ function isValidAgentUrl(url) {
5803
6000
  */
5804
6001
  return true;
5805
6002
  }
5806
- /**
5807
- * TODO: [🐠] Maybe more info why the URL is invalid
5808
- */
6003
+ // TODO: [🐠] Maybe more info why the URL is invalid
5809
6004
 
5810
6005
  /**
5811
6006
  * Tests if given string is valid pipeline URL URL.
@@ -5836,9 +6031,7 @@ function isValidPipelineUrl(url) {
5836
6031
  */
5837
6032
  return true;
5838
6033
  }
5839
- /**
5840
- * TODO: [🐠] Maybe more info why the URL is invalid
5841
- */
6034
+ // TODO: [🐠] Maybe more info why the URL is invalid
5842
6035
 
5843
6036
  /**
5844
6037
  * Checks if value is valid uuid
@@ -5854,5 +6047,5 @@ function isValidUuid(value) {
5854
6047
  return /^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i.test(value);
5855
6048
  }
5856
6049
 
5857
- export { $deepFreeze, $detectRuntimeEnvironment, $getCurrentDate, $isRunningInBrowser, $isRunningInJest, $isRunningInNode, $isRunningInWebWorker, BOOK_LANGUAGE_VERSION, CHARACTERS_PER_STANDARD_LINE, CLIENT_LATEST_VERSION, CLIENT_VERSION_HEADER, ClientVersionMismatchError, CountUtils, DIACRITIC_VARIANTS_LETTERS, LINES_PER_STANDARD_PAGE, PROMPTBOOK_ENGINE_VERSION, PromptString, SMALL_NUMBER, VALUE_STRINGS, attachClientVersionHeader, capitalize, checkSerializableAsJson, clonePipeline, computeHash, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, debounce, decapitalize, deepClone, deserializeError, difference, exportJson, extractParameterNames, forEachAsync, formatClientVersionMismatchMessage, getClientVersionFromHeaders, intersection, isClientVersionCompatible, isHostnameOnPrivateNetwork, isRootPath, isSerializableAsJson, isUrlOnPrivateNetwork, isValidAgentUrl, isValidCsvString, isValidEmail, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidKeyword, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, isValidXmlString, jsonParse, jsonStringsToJsons, linguisticHash, nameToUriPart, nameToUriParts, normalizeMessageText, normalizeToKebabCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_camelCase, normalizeTo_snake_case, normalizeWhitespaces, numberToString, orderJson, parseKeywords, parseKeywordsFromString, parseNumber, prompt, promptTemplate, removeDiacritics, removeEmojis, removeQuotes, renderPromptbookMermaid, searchKeywords, serializeError, serializeToPromptbookJavascript, spaceTrim, splitIntoSentences, suffixUrl, templateParameters, titleToName, union, unwrapResult, valueToString };
6050
+ export { $deepFreeze, $detectRuntimeEnvironment, $getCurrentDate, $isRunningInBrowser, $isRunningInJest, $isRunningInNode, $isRunningInWebWorker, BOOK_LANGUAGE_VERSION, CHARACTERS_PER_STANDARD_LINE, CLIENT_LATEST_VERSION, CLIENT_VERSION_HEADER, ClientVersionMismatchError, CountUtils, DIACRITIC_VARIANTS_LETTERS, LINES_PER_STANDARD_PAGE, PROMPTBOOK_ENGINE_VERSION, PromptString, SMALL_NUMBER, VALUE_STRINGS, attachClientVersionHeader, capitalize, checkSerializableAsJson, clonePipeline, computeHash, countCharacters, countLines, countPages, countParagraphs, countSentences, countWords, debounce, decapitalize, deepClone, deserializeError, difference, escapeRegExp, exportJson, extractParameterNames, forEachAsync, formatClientVersionMismatchMessage, getClientVersionFromHeaders, intersection, isClientVersionCompatible, isHostnameOnPrivateNetwork, isRootPath, isSerializableAsJson, isUrlOnPrivateNetwork, isValidAgentUrl, isValidCsvString, isValidEmail, isValidFilePath, isValidJavascriptName, isValidJsonString, isValidKeyword, isValidPipelineUrl, isValidPromptbookVersion, isValidSemanticVersion, isValidUrl, isValidUuid, isValidXmlString, jsonParse, jsonStringsToJsons, linguisticHash, nameToUriPart, nameToUriParts, normalizeMessageText, normalizeToKebabCase, normalizeTo_PascalCase, normalizeTo_SCREAMING_CASE, normalizeTo_camelCase, normalizeTo_snake_case, normalizeWhitespaces, numberToString, orderJson, parseKeywords, parseKeywordsFromString, parseNumber, prompt, promptTemplate, removeDiacritics, removeEmojis, removeQuotes, renderPromptbookMermaid, searchKeywords, serializeError, serializeToPromptbookJavascript, spaceTrim, splitIntoSentences, suffixUrl, templateParameters, titleToName, union, unwrapResult, valueToString };
5858
6051
  //# sourceMappingURL=index.es.js.map