@promptbook/javascript 0.111.0-7 → 0.112.0-12

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 (527) hide show
  1. package/esm/index.es.js +14 -7
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/components.index.d.ts +2 -0
  4. package/esm/src/_packages/core.index.d.ts +26 -0
  5. package/esm/src/_packages/markdown-utils.index.d.ts +5 -5
  6. package/esm/src/_packages/types.index.d.ts +250 -228
  7. package/esm/src/_packages/utils.index.d.ts +2 -0
  8. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +4 -1
  9. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -1
  10. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +2 -2
  11. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
  12. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
  13. package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +12 -0
  14. package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +12 -0
  15. package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
  16. package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +38 -0
  17. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
  18. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
  19. package/esm/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +110 -0
  20. package/esm/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
  21. package/esm/src/book-components/BookEditor/BookEditor.d.ts +15 -0
  22. package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +2 -0
  23. package/esm/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
  24. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
  25. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
  26. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +28 -0
  27. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
  28. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +27 -0
  29. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
  30. package/esm/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
  31. package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +1 -0
  32. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +2 -0
  33. package/esm/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
  34. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +6 -1
  35. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +3 -0
  36. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +56 -0
  37. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +11 -0
  38. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  39. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +32 -0
  40. package/esm/src/book-components/Chat/Chat/chatCssClassNames.d.ts +41 -0
  41. package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +44 -0
  42. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +40 -0
  43. package/esm/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +5 -0
  44. package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
  45. package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
  46. package/esm/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +16 -0
  47. package/esm/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +1 -1
  48. package/esm/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
  49. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +16 -0
  50. package/esm/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
  51. package/esm/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
  52. package/esm/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
  53. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  54. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
  55. package/esm/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
  56. package/esm/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
  57. package/esm/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
  58. package/esm/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +29 -1
  59. package/esm/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
  60. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +24 -0
  61. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
  62. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +123 -0
  63. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  64. package/esm/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
  65. package/esm/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
  66. package/esm/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +19 -0
  67. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +9 -0
  68. package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +9 -0
  69. package/esm/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +10 -0
  70. package/esm/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +10 -0
  71. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +10 -0
  72. package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +10 -0
  73. package/esm/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +8 -0
  74. package/esm/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
  75. package/esm/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
  76. package/esm/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
  77. package/esm/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
  78. package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +14 -0
  79. package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -0
  80. package/esm/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
  81. package/esm/src/book-components/icons/ArrowIcon.d.ts +30 -5
  82. package/esm/src/book-components/icons/SolidArrowButton.d.ts +28 -0
  83. package/esm/src/book-components/icons/StopIcon.d.ts +8 -0
  84. package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tag.d.ts +14 -0
  85. package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +14 -0
  86. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +14 -0
  87. package/esm/src/cli/cli-commands/coder/run.d.ts +14 -0
  88. package/esm/src/cli/cli-commands/coder/verify.d.ts +14 -0
  89. package/esm/src/cli/cli-commands/coder.d.ts +21 -0
  90. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
  91. package/esm/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
  92. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +52 -8
  93. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
  94. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
  95. package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -3
  96. package/esm/src/commitments/MEMORY/MEMORY.d.ts +4 -59
  97. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
  98. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
  99. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
  100. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
  101. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
  102. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
  103. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  104. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
  105. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
  106. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
  107. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
  108. package/esm/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
  109. package/esm/src/commitments/MESSAGE/MESSAGE.d.ts +2 -2
  110. package/esm/src/commitments/META/META.d.ts +4 -0
  111. package/esm/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +33 -0
  112. package/esm/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +33 -0
  113. package/esm/src/commitments/META_VOICE/META_VOICE.d.ts +39 -0
  114. package/esm/src/commitments/SAMPLE/SAMPLE.d.ts +13 -13
  115. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +1 -1
  116. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
  117. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
  118. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +42 -0
  119. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  120. package/esm/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  121. package/esm/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  122. package/esm/src/commitments/USE_CALENDAR/calendarReference.d.ts +68 -0
  123. package/esm/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  124. package/esm/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  125. package/esm/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  126. package/esm/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  127. package/esm/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  128. package/esm/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  129. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +4 -11
  130. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
  131. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
  132. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
  133. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
  134. package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +49 -0
  135. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +39 -0
  136. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
  137. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +42 -0
  138. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
  139. package/esm/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
  140. package/esm/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
  141. package/esm/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
  142. package/esm/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
  143. package/esm/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
  144. package/esm/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
  145. package/esm/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
  146. package/esm/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
  147. package/esm/src/commitments/USE_PROJECT/projectReference.d.ts +52 -0
  148. package/esm/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
  149. package/esm/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  150. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +41 -0
  151. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
  152. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
  153. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
  154. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +9 -0
  155. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +90 -0
  156. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +41 -0
  157. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
  158. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
  159. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
  160. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
  161. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  162. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +34 -0
  163. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
  164. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
  165. package/esm/src/commitments/WALLET/WALLET.d.ts +24 -0
  166. package/esm/src/commitments/WALLET/WALLET.test.d.ts +1 -0
  167. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
  168. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
  169. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
  170. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
  171. package/esm/src/commitments/WALLET/createWalletTools.d.ts +7 -0
  172. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
  173. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
  174. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
  175. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
  176. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
  177. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
  178. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +29 -0
  179. package/esm/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +29 -0
  180. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  181. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +23 -0
  182. package/esm/src/commitments/_common/createWritingCommitmentSections.d.ts +19 -0
  183. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
  184. package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +22 -0
  185. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +99 -0
  186. package/esm/src/commitments/index.d.ts +13 -1
  187. package/esm/src/config.d.ts +3 -0
  188. package/esm/src/errors/0-index.d.ts +3 -0
  189. package/esm/src/errors/ConflictError.d.ts +9 -0
  190. package/esm/src/executables/apps/locateVscode.d.ts +7 -0
  191. package/esm/src/executables/apps/locateVscode.test.d.ts +1 -0
  192. package/esm/src/executables/browsers/locateBrowser.d.ts +10 -0
  193. package/esm/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  194. package/esm/src/executables/browsers/locateChrome.d.ts +7 -0
  195. package/esm/src/executables/browsers/locateChrome.test.d.ts +1 -0
  196. package/esm/src/executables/browsers/locateDefaultSystemBrowser.d.ts +10 -0
  197. package/esm/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  198. package/esm/src/executables/browsers/locateEdge.d.ts +7 -0
  199. package/esm/src/executables/browsers/locateEdge.test.d.ts +1 -0
  200. package/esm/src/executables/browsers/locateFirefox.d.ts +7 -0
  201. package/esm/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  202. package/esm/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  203. package/esm/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  204. package/esm/src/executables/browsers/locateSafari.d.ts +7 -0
  205. package/esm/src/execution/LlmExecutionTools.d.ts +12 -1
  206. package/esm/src/execution/Usage.d.ts +4 -0
  207. package/esm/src/execution/utils/usageToHuman.d.ts +1 -0
  208. package/esm/src/file-security-checkers/FileSecurityCheckResult.d.ts +32 -0
  209. package/esm/src/file-security-checkers/FileSecurityChecker.d.ts +34 -0
  210. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +36 -0
  211. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
  212. package/esm/src/llm-providers/agent/Agent.d.ts +2 -2
  213. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +2 -2
  214. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +2 -1
  215. package/esm/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
  216. package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +3 -1
  217. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +33 -3
  218. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +2 -2
  219. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +2 -2
  220. package/esm/src/llm-providers/openai/computeOpenAiUsage.d.ts +3 -1
  221. package/esm/src/playground/playground.d.ts +1 -0
  222. package/esm/src/speech-recognition/OpenAiSpeechRecognition.d.ts +49 -1
  223. package/esm/src/types/SpeechRecognition.d.ts +14 -0
  224. package/esm/src/types/ToolCall.d.ts +56 -0
  225. package/esm/src/types/number_usd.d.ts +110 -0
  226. package/esm/src/types/string_filename.d.ts +39 -0
  227. package/esm/src/types/string_knowledge_source_content.d.ts +29 -0
  228. package/esm/src/types/string_markdown.d.ts +138 -0
  229. package/esm/src/types/string_parameter_name.d.ts +170 -0
  230. package/esm/src/types/string_person_fullname.d.ts +85 -0
  231. package/esm/src/types/string_sha256.d.ts +44 -0
  232. package/esm/src/types/string_token.d.ts +58 -0
  233. package/esm/src/types/string_url.d.ts +146 -0
  234. package/esm/src/types/typeAliases.d.ts +9 -741
  235. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +10 -0
  236. package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +14 -0
  237. package/esm/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
  238. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +9 -0
  239. package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +9 -0
  240. package/esm/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +11 -0
  241. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +11 -0
  242. package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +10 -0
  243. package/esm/src/utils/chat/chatAttachments.d.ts +54 -0
  244. package/esm/src/utils/chat/chatAttachments.test.d.ts +1 -0
  245. package/esm/src/utils/chat/constants.d.ts +21 -0
  246. package/esm/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
  247. package/esm/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
  248. package/esm/src/utils/chat/escapeRegExp.d.ts +6 -0
  249. package/esm/src/utils/database/uniqueConstraint.d.ts +28 -0
  250. package/esm/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
  251. package/esm/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
  252. package/esm/src/utils/files/readResponseBytes.d.ts +14 -0
  253. package/esm/src/utils/random/EnglishNamePool.d.ts +9 -1
  254. package/esm/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
  255. package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
  256. package/esm/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
  257. package/esm/src/utils/validators/url/extractUrlsFromText.d.ts +8 -0
  258. package/esm/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
  259. package/esm/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +12 -1
  260. package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +8 -2
  261. package/esm/src/utils/validators/url/normalizeDomainForMatching.d.ts +11 -0
  262. package/esm/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
  263. package/esm/src/version.d.ts +1 -1
  264. package/package.json +2 -2
  265. package/umd/index.umd.js +14 -7
  266. package/umd/index.umd.js.map +1 -1
  267. package/umd/src/_packages/components.index.d.ts +2 -0
  268. package/umd/src/_packages/core.index.d.ts +26 -0
  269. package/umd/src/_packages/markdown-utils.index.d.ts +5 -5
  270. package/umd/src/_packages/types.index.d.ts +250 -228
  271. package/umd/src/_packages/utils.index.d.ts +2 -0
  272. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +4 -1
  273. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -1
  274. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +2 -2
  275. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
  276. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
  277. package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +12 -0
  278. package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +12 -0
  279. package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
  280. package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +38 -0
  281. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
  282. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
  283. package/umd/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +110 -0
  284. package/umd/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
  285. package/umd/src/book-components/BookEditor/BookEditor.d.ts +15 -0
  286. package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +2 -0
  287. package/umd/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
  288. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
  289. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
  290. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +28 -0
  291. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
  292. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +27 -0
  293. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
  294. package/umd/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
  295. package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +1 -0
  296. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +2 -0
  297. package/umd/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
  298. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +6 -1
  299. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +3 -0
  300. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +56 -0
  301. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +11 -0
  302. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.test.d.ts +2 -0
  303. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +32 -0
  304. package/umd/src/book-components/Chat/Chat/chatCssClassNames.d.ts +41 -0
  305. package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +44 -0
  306. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +40 -0
  307. package/umd/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +5 -0
  308. package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
  309. package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
  310. package/umd/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +16 -0
  311. package/umd/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +1 -1
  312. package/umd/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
  313. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +16 -0
  314. package/umd/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
  315. package/umd/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
  316. package/umd/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
  317. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.timeout.test.d.ts +1 -0
  318. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
  319. package/umd/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
  320. package/umd/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
  321. package/umd/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
  322. package/umd/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +29 -1
  323. package/umd/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
  324. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +24 -0
  325. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
  326. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +123 -0
  327. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.test.d.ts +1 -0
  328. package/umd/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
  329. package/umd/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
  330. package/umd/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +19 -0
  331. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +9 -0
  332. package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +9 -0
  333. package/umd/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +10 -0
  334. package/umd/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +10 -0
  335. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +10 -0
  336. package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +10 -0
  337. package/umd/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +8 -0
  338. package/umd/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
  339. package/umd/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
  340. package/umd/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
  341. package/umd/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
  342. package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +14 -0
  343. package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -0
  344. package/umd/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
  345. package/umd/src/book-components/icons/ArrowIcon.d.ts +30 -5
  346. package/umd/src/book-components/icons/SolidArrowButton.d.ts +28 -0
  347. package/umd/src/book-components/icons/StopIcon.d.ts +8 -0
  348. package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tag.d.ts +14 -0
  349. package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +14 -0
  350. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +14 -0
  351. package/umd/src/cli/cli-commands/coder/run.d.ts +14 -0
  352. package/umd/src/cli/cli-commands/coder/verify.d.ts +14 -0
  353. package/umd/src/cli/cli-commands/coder.d.ts +21 -0
  354. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
  355. package/umd/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
  356. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +52 -8
  357. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
  358. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
  359. package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -3
  360. package/umd/src/commitments/MEMORY/MEMORY.d.ts +4 -59
  361. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
  362. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
  363. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
  364. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
  365. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
  366. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
  367. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  368. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
  369. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
  370. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
  371. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
  372. package/umd/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
  373. package/umd/src/commitments/MESSAGE/MESSAGE.d.ts +2 -2
  374. package/umd/src/commitments/META/META.d.ts +4 -0
  375. package/umd/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +33 -0
  376. package/umd/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +33 -0
  377. package/umd/src/commitments/META_VOICE/META_VOICE.d.ts +39 -0
  378. package/umd/src/commitments/SAMPLE/SAMPLE.d.ts +13 -13
  379. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +1 -1
  380. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
  381. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
  382. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +42 -0
  383. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.test.d.ts +1 -0
  384. package/umd/src/commitments/USE_CALENDAR/UseCalendarToolNames.d.ts +13 -0
  385. package/umd/src/commitments/USE_CALENDAR/UseCalendarWallet.d.ts +9 -0
  386. package/umd/src/commitments/USE_CALENDAR/calendarReference.d.ts +68 -0
  387. package/umd/src/commitments/USE_CALENDAR/callGoogleCalendarApi.d.ts +19 -0
  388. package/umd/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +8 -0
  389. package/umd/src/commitments/USE_CALENDAR/createUseCalendarTools.d.ts +7 -0
  390. package/umd/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +7 -0
  391. package/umd/src/commitments/USE_CALENDAR/normalizeConfiguredCalendars.d.ts +19 -0
  392. package/umd/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  393. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +4 -11
  394. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
  395. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
  396. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
  397. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
  398. package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +49 -0
  399. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +39 -0
  400. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
  401. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +42 -0
  402. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
  403. package/umd/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
  404. package/umd/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
  405. package/umd/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
  406. package/umd/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
  407. package/umd/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
  408. package/umd/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
  409. package/umd/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
  410. package/umd/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
  411. package/umd/src/commitments/USE_PROJECT/projectReference.d.ts +52 -0
  412. package/umd/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
  413. package/umd/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
  414. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +41 -0
  415. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
  416. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
  417. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
  418. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +9 -0
  419. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +90 -0
  420. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +41 -0
  421. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
  422. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
  423. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
  424. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
  425. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
  426. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +34 -0
  427. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
  428. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
  429. package/umd/src/commitments/WALLET/WALLET.d.ts +24 -0
  430. package/umd/src/commitments/WALLET/WALLET.test.d.ts +1 -0
  431. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
  432. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
  433. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
  434. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
  435. package/umd/src/commitments/WALLET/createWalletTools.d.ts +7 -0
  436. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
  437. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
  438. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
  439. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
  440. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
  441. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
  442. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +29 -0
  443. package/umd/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +29 -0
  444. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
  445. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +23 -0
  446. package/umd/src/commitments/_common/createWritingCommitmentSections.d.ts +19 -0
  447. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
  448. package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +22 -0
  449. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +99 -0
  450. package/umd/src/commitments/index.d.ts +13 -1
  451. package/umd/src/config.d.ts +3 -0
  452. package/umd/src/errors/0-index.d.ts +3 -0
  453. package/umd/src/errors/ConflictError.d.ts +9 -0
  454. package/umd/src/executables/apps/locateVscode.d.ts +7 -0
  455. package/umd/src/executables/apps/locateVscode.test.d.ts +1 -0
  456. package/umd/src/executables/browsers/locateBrowser.d.ts +10 -0
  457. package/umd/src/executables/browsers/locateBrowser.test.d.ts +1 -0
  458. package/umd/src/executables/browsers/locateChrome.d.ts +7 -0
  459. package/umd/src/executables/browsers/locateChrome.test.d.ts +1 -0
  460. package/umd/src/executables/browsers/locateDefaultSystemBrowser.d.ts +10 -0
  461. package/umd/src/executables/browsers/locateDefaultSystemBrowser.test.d.ts +1 -0
  462. package/umd/src/executables/browsers/locateEdge.d.ts +7 -0
  463. package/umd/src/executables/browsers/locateEdge.test.d.ts +1 -0
  464. package/umd/src/executables/browsers/locateFirefox.d.ts +7 -0
  465. package/umd/src/executables/browsers/locateFirefox.test.d.ts +1 -0
  466. package/umd/src/executables/browsers/locateInternetExplorer.d.ts +7 -0
  467. package/umd/src/executables/browsers/locateInternetExplorer.test.d.ts +1 -0
  468. package/umd/src/executables/browsers/locateSafari.d.ts +7 -0
  469. package/umd/src/execution/LlmExecutionTools.d.ts +12 -1
  470. package/umd/src/execution/Usage.d.ts +4 -0
  471. package/umd/src/execution/utils/usageToHuman.d.ts +1 -0
  472. package/umd/src/file-security-checkers/FileSecurityCheckResult.d.ts +32 -0
  473. package/umd/src/file-security-checkers/FileSecurityChecker.d.ts +34 -0
  474. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +36 -0
  475. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
  476. package/umd/src/llm-providers/agent/Agent.d.ts +2 -2
  477. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +2 -2
  478. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +2 -1
  479. package/umd/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
  480. package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +3 -1
  481. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +33 -3
  482. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +2 -2
  483. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +2 -2
  484. package/umd/src/llm-providers/openai/computeOpenAiUsage.d.ts +3 -1
  485. package/umd/src/playground/playground.d.ts +1 -0
  486. package/umd/src/speech-recognition/OpenAiSpeechRecognition.d.ts +49 -1
  487. package/umd/src/types/SpeechRecognition.d.ts +14 -0
  488. package/umd/src/types/ToolCall.d.ts +56 -0
  489. package/umd/src/types/number_usd.d.ts +110 -0
  490. package/umd/src/types/string_filename.d.ts +39 -0
  491. package/umd/src/types/string_knowledge_source_content.d.ts +29 -0
  492. package/umd/src/types/string_markdown.d.ts +138 -0
  493. package/umd/src/types/string_parameter_name.d.ts +170 -0
  494. package/umd/src/types/string_person_fullname.d.ts +85 -0
  495. package/umd/src/types/string_sha256.d.ts +44 -0
  496. package/umd/src/types/string_token.d.ts +58 -0
  497. package/umd/src/types/string_url.d.ts +146 -0
  498. package/umd/src/types/typeAliases.d.ts +9 -741
  499. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +10 -0
  500. package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +14 -0
  501. package/umd/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
  502. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +9 -0
  503. package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +9 -0
  504. package/umd/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +11 -0
  505. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +11 -0
  506. package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +10 -0
  507. package/umd/src/utils/chat/chatAttachments.d.ts +54 -0
  508. package/umd/src/utils/chat/chatAttachments.test.d.ts +1 -0
  509. package/umd/src/utils/chat/constants.d.ts +21 -0
  510. package/umd/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
  511. package/umd/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
  512. package/umd/src/utils/chat/escapeRegExp.d.ts +6 -0
  513. package/umd/src/utils/database/uniqueConstraint.d.ts +28 -0
  514. package/umd/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
  515. package/umd/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
  516. package/umd/src/utils/files/readResponseBytes.d.ts +14 -0
  517. package/umd/src/utils/random/EnglishNamePool.d.ts +9 -1
  518. package/umd/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
  519. package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
  520. package/umd/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
  521. package/umd/src/utils/validators/url/extractUrlsFromText.d.ts +8 -0
  522. package/umd/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
  523. package/umd/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +12 -1
  524. package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +8 -2
  525. package/umd/src/utils/validators/url/normalizeDomainForMatching.d.ts +11 -0
  526. package/umd/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
  527. package/umd/src/version.d.ts +1 -1
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Semantic helper
3
+ *
4
+ * For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
5
+ */
6
+ export type string_absolute_filename = string;
7
+ /**
8
+ * Semantic helper
9
+ *
10
+ * For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
11
+ */
12
+ export type string_relative_filename = string;
13
+ /**
14
+ * Semantic helper
15
+ */
16
+ export type string_filename = string_absolute_filename | string_relative_filename;
17
+ /**
18
+ * Semantic helper
19
+ *
20
+ * For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
21
+ */
22
+ export type string_absolute_dirname = string;
23
+ /**
24
+ * Semantic helper
25
+ *
26
+ * For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
27
+ */
28
+ export type string_relative_dirname = string;
29
+ /**
30
+ * Semantic helper
31
+ */
32
+ export type string_dirname = string_absolute_dirname | string_relative_dirname;
33
+ /**
34
+ * Semantic helper
35
+ *
36
+ * For example `"C:/Users/me/AppData/Local/Pandoc/pandoc.exe"`
37
+ * For example `"C:/Program Files/LibreOffice/program/swriter.exe"`
38
+ */
39
+ export type string_executable_path = string;
@@ -0,0 +1,29 @@
1
+ import type { string_filename } from './string_filename';
2
+ import type { string_markdown } from './string_markdown';
3
+ import type { string_url } from './string_url';
4
+ /**
5
+ * Source of one knowledge piece.
6
+ *
7
+ * It can be a link, a relative path to file or direct text content.
8
+ *
9
+ * For example `"https://pavolhejny.com/"`
10
+ * For example `"./pavol-hejny-cv.pdf"`
11
+ * For example `"Pavol Hejný has web https://pavolhejny.com/"`
12
+ * For example `"Pavol Hejný is web developer and creator of Promptbook and Collboard"`
13
+ *
14
+ * Note: Distinguishes between `string_knowledge_source_content` and `string_knowledge_source_link`:
15
+ * `string_knowledge_source_content` refers to the actual content or source of knowledge
16
+ * `string_knowledge_source_link` refers to a reference or link to the knowledge source
17
+ */
18
+ export type string_knowledge_source_content = string_knowledge_source_link | string_markdown;
19
+ /**
20
+ * One link to a knowledge source.
21
+ *
22
+ * It can be a URL or relative path.
23
+ *
24
+ * For example `"https://pavolhejny.com/"`
25
+ * For example `"./pavol-hejny-cv.pdf"`
26
+ *
27
+ * Note: string_knowledge_source_link refers to a reference or link to the knowledge source, while string_knowledge_source_content can be the link or the actual content.
28
+ */
29
+ export type string_knowledge_source_link = string_url | string_filename;
@@ -0,0 +1,138 @@
1
+ /**
2
+ * Semantic helper
3
+ *
4
+ * For example `"<div>Hello World!</div>"`
5
+ */
6
+ export type string_html = string;
7
+ /**
8
+ * Semantic helper
9
+ *
10
+ * For example `"<foo>bar</foo>"`
11
+ *
12
+ *
13
+ * TODO: [🎞️] Probably use some object-based method for working with XMLs
14
+ */
15
+ export type string_xml = string;
16
+ /**
17
+ * Semantic helper
18
+ *
19
+ * For example `"**Hello** World!"`
20
+ *
21
+ * @public exported from `@promptbook/markdown-utils`
22
+ */
23
+ export type string_markdown = string;
24
+ /**
25
+ * Semantic helper
26
+ *
27
+ * Markdown text with exactly ONE heading on first line NO less NO more
28
+ *
29
+ * @public exported from `@promptbook/markdown-utils`
30
+ */
31
+ export type string_markdown_section = string;
32
+ /**
33
+ * Semantic helper
34
+ *
35
+ * Markdown without any headings like h1, h2
36
+ * BUT with formatting, lists, blockquotes, blocks, etc. is allowed
37
+ *
38
+ * @public exported from `@promptbook/markdown-utils`
39
+ */
40
+ export type string_markdown_section_content = string;
41
+ /**
42
+ * Semantic helper
43
+ *
44
+ * Markdown text without any structure like h1, h2, lists, blockquotes, blocks, etc.
45
+ * BUT with bold, italic, etc. is allowed
46
+ *
47
+ * For example `"**Hello** World!"`
48
+ *
49
+ * @public exported from `@promptbook/markdown-utils`
50
+ */
51
+ export type string_markdown_text = string;
52
+ /**
53
+ * Semantic helper
54
+ *
55
+ * Markdown code block language
56
+ *
57
+ * For example ```js -> `"js"`
58
+ *
59
+ * @public exported from `@promptbook/markdown-utils`
60
+ */
61
+ export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' | 'javascript' | 'css' | 'json';
62
+ /**
63
+ * A URL pointing to Promptbook documentation or a specific discussion.
64
+ *
65
+ * For example: `https://github.com/webgptorg/promptbook/discussions/123`
66
+ */
67
+ export type string_promptbook_documentation_url = `https://github.com/webgptorg/promptbook/discussions/${number | `@@${string}`}`;
68
+ /**
69
+ * Semantic helper
70
+ *
71
+ * For example `.foo{border: 1px solid red}`
72
+ */
73
+ export type string_css = string;
74
+ /**
75
+ * Semantic helper
76
+ *
77
+ * For example `"<svg><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>"`
78
+ */
79
+ export type string_svg = string;
80
+ /**
81
+ * Semantic helper
82
+ *
83
+ * For example `console.info("Hello World!")` or `print("Hello World!")`
84
+ */
85
+ export type string_script = string;
86
+ /**
87
+ * Semantic helper
88
+ *
89
+ * For example `console.info("Hello World!")`
90
+ */
91
+ export type string_javascript = string;
92
+ /**
93
+ * Semantic helper
94
+ *
95
+ * For example `console.info("Hello World!" as string)`
96
+ */
97
+ export type string_typescript = string;
98
+ /**
99
+ * Semantic helper for JSON strings
100
+ *
101
+ * Note: TType is a type of the JSON object inside the string
102
+ *
103
+ * For example `{"foo": "bar"}`
104
+ */
105
+ export type string_json<TType> = string & {
106
+ _type: 'string_json';
107
+ scheme: TType;
108
+ };
109
+ /**
110
+ * Semantic helper
111
+ *
112
+ * For example `menu`
113
+ */
114
+ export type string_css_class = string;
115
+ /**
116
+ * Semantic helper
117
+ *
118
+ * For example `border`
119
+ */
120
+ export type string_css_property = string;
121
+ /**
122
+ * Semantic helper
123
+ *
124
+ * For example `"Arial, sans-serif"`
125
+ */
126
+ export type string_fonts = string;
127
+ /**
128
+ * Semantic helper
129
+ *
130
+ * For example `13px`
131
+ */
132
+ export type string_css_value = string | number;
133
+ /**
134
+ * Semantic helper
135
+ *
136
+ * For example `.foo`
137
+ */
138
+ export type string_css_selector = string;
@@ -0,0 +1,170 @@
1
+ import type { TupleToUnion } from 'type-fest';
2
+ import { RESERVED_PARAMETER_NAMES } from '../constants';
3
+ import type { really_unknown } from '../utils/organization/really_unknown';
4
+ import { string_base_58, string_sha256 } from './string_sha256';
5
+ /**
6
+ * Semantic helper
7
+ */
8
+ export type string_business_category_name = 'restaurant' | 'grocery' | 'person' | 'conference' | string;
9
+ /**
10
+ * Semantic helper
11
+ *
12
+ * For example `"gpt-4"`
13
+ */
14
+ export type string_model_name = 'gpt-4' | 'gpt-4-0314' | 'gpt-4-0613' | 'gpt-4-32k' | 'gpt-4-32k-0314' | 'gpt-4-32k-0613' | 'gpt-3.5-turbo' | 'gpt-3.5-turbo-16k' | 'gpt-3.5-turbo-0301' | 'gpt-3.5-turbo-0613' | 'gpt-3.5-turbo-16k-0613' | string;
15
+ /**
16
+ * Semantic helper
17
+ *
18
+ * For example `"How many eyes does a cat have?"`
19
+ */
20
+ export type string_prompt = string;
21
+ /**
22
+ * Semantic helper
23
+ *
24
+ * For example `"A cat wearing a hat"`
25
+ */
26
+ export type string_prompt_image = string;
27
+ /**
28
+ * Semantic helper
29
+ *
30
+ * For example `"A cat wearing a {item}"`
31
+ */
32
+ export type string_template = string;
33
+ /**
34
+ * Semantic helper
35
+ *
36
+ * For example `"How many hats does the cat wear?"`
37
+ */
38
+ export type string_text_prompt = string_prompt;
39
+ /**
40
+ * Semantic helper
41
+ *
42
+ * For example `"How many hats does the cat wear?"`
43
+ */
44
+ export type string_chat_prompt = string_text_prompt;
45
+ /**
46
+ * Semantic helper
47
+ *
48
+ * For example `"You are an AI assistant. You are here to help me with my work."`
49
+ */
50
+ export type string_system_message = string_text_prompt;
51
+ /**
52
+ * Semantic helper
53
+ *
54
+ * For example `"Following is a text about cats: Once upon a time there was a cat"`
55
+ */
56
+ export type string_completion_prompt = string_text_prompt;
57
+ /**
58
+ * Semantic helper
59
+ *
60
+ * For example `"index"` or `"explanation"`
61
+ * Always in kebab-case
62
+ */
63
+ export type string_page = 'index' | string;
64
+ /**
65
+ * Semantic helper
66
+ *
67
+ * For example `"a"`
68
+ */
69
+ export type string_char = string;
70
+ /**
71
+ * Semantic helper
72
+ * Unique identifier of anything
73
+ *
74
+ * For example `"ainautes"`
75
+ */
76
+ export type string_name = string;
77
+ /**
78
+ * Semantic helper
79
+ * Unique identifier of anything
80
+ *
81
+ * For example `"eventTitle"`
82
+ */
83
+ export type string_parameter_name = string_name;
84
+ /**
85
+ * Semantic helper
86
+ * Unique identifier of parameter
87
+ *
88
+ * For example `"DevConf 2024"`
89
+ */
90
+ export type string_parameter_value = string;
91
+ /**
92
+ * Parameters of the pipeline
93
+ *
94
+ * There are three types of parameters:
95
+ * - **INPUT PARAMETERs** are required to execute the pipeline.
96
+ * - **Intermediate parameters** are used internally in the pipeline.
97
+ * - **OUTPUT PARAMETERs** are not used internally in the pipeline, but are returned as the result of the pipeline execution.
98
+ *
99
+ * Note: [🚉] This is fully serializable as JSON
100
+ * @see https://ptbk.io/parameters
101
+ */
102
+ export type Parameters = Exclude<Record<string_parameter_name, string_parameter_value>, ReservedParameters>;
103
+ /**
104
+ * Parameters to pass to execution of the pipeline
105
+ *
106
+ * Note: [🚉] This should be fully serializable as JSON
107
+ * @see https://ptbk.io/parameters
108
+ */
109
+ export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>;
110
+ /**
111
+ * Semantic helper
112
+ * Unique identifier of reserved parameter
113
+ *
114
+ * For example `"context"`
115
+ */
116
+ export type string_reserved_parameter_name = TupleToUnion<typeof RESERVED_PARAMETER_NAMES>;
117
+ /**
118
+ * Represents a mapping of reserved parameter names to their values.
119
+ * Reserved parameters are used internally by the pipeline and should not be set by users.
120
+ *
121
+ * Note: [🚉] This is fully serializable as JSON
122
+ */
123
+ export type ReservedParameters = Record<string_reserved_parameter_name, string_parameter_value>;
124
+ /**
125
+ * Semantic helper
126
+ * Title of anything
127
+ *
128
+ * For example `"Ai*nautes"`
129
+ */
130
+ export type string_title = string;
131
+ /**
132
+ * Semantic helper
133
+ *
134
+ * For example `"My AI Assistant"`
135
+ *
136
+ * TODO: !!!! Brand the type
137
+ */
138
+ export type string_agent_name = string;
139
+ /**
140
+ * Semantic helper
141
+ *
142
+ * For example `"My AI Assistant"`
143
+ */
144
+ export type string_agent_name_in_book = string;
145
+ /**
146
+ * Semantic helper
147
+ *
148
+ * For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
149
+ */
150
+ export type string_agent_hash = string_sha256;
151
+ /**
152
+ * Semantic helper
153
+ *
154
+ * For example `"3mJr7AoUXx2Wqd"`
155
+ *
156
+ * TODO: !!!! Brand the type
157
+ */
158
+ export type string_agent_permanent_id = string_base_58;
159
+ /**
160
+ * Unstructured description of the persona
161
+ *
162
+ * For example `"Skilled copywriter"`
163
+ */
164
+ export type string_persona_description = string;
165
+ /**
166
+ * Unstructured description of the model
167
+ *
168
+ * For example `"Model with logical reasoning and creative mindset"`
169
+ */
170
+ export type string_model_description = string;
@@ -0,0 +1,85 @@
1
+ import type { string_title } from './string_parameter_name';
2
+ /**
3
+ * Semantic helper
4
+ *
5
+ * For example `"John Smith"`
6
+ */
7
+ export type string_person_fullname = `${string_person_firstname} ${string_person_lastname}` | string;
8
+ /**
9
+ * Semantic helper
10
+ *
11
+ * For example `"John Smith"`
12
+ */
13
+ export type string_person_firstname = string;
14
+ /**
15
+ * Semantic helper
16
+ *
17
+ * For example `"John Smith"`
18
+ */
19
+ export type string_person_lastname = string;
20
+ /**
21
+ * Semantic helper
22
+ * Full profile of the person with his email and web (like in package.json)
23
+ *
24
+ * For example `"Pavol Hejný <pavol@hejny.org> (https://pavolhejny.com)"`
25
+ */
26
+ export type string_person_profile = string;
27
+ /**
28
+ * Semantic helper
29
+ *
30
+ * For example `"MIT"`
31
+ */
32
+ export type string_license = string;
33
+ /**
34
+ * Semantic helper
35
+ *
36
+ * For example `"Pavol Hejný <pavol@ptbk.io> (https://www.pavolhejny.com/)"`
37
+ * For example `"AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)"`
38
+ */
39
+ export type string_legal_entity = string | string_person_profile | string_title;
40
+ /**
41
+ * Semantic helper for attributes
42
+ *
43
+ * - case insensitive
44
+ *
45
+ * For example `"color"`
46
+ */
47
+ export type string_attribute = string;
48
+ /**
49
+ * Semantic helper for attributes context
50
+ * Each attribute value scope with a attribute name has its own current value
51
+ *
52
+ * - case insensitive
53
+ *
54
+ * For example `"tools"`
55
+ */
56
+ export type string_attribute_value_scope = string;
57
+ /**
58
+ * Semantic helper for css/html colors
59
+ *
60
+ * For example `"white"` or `"#009edd"`
61
+ */
62
+ export type string_color = string;
63
+ /**
64
+ * Semantic helper; For example "SHARE_ICON/EDIT_LINK"
65
+ */
66
+ export type string_translate_name = string;
67
+ /**
68
+ * Semantic helper; For example "ShareIcon/ edit link"
69
+ */
70
+ export type string_translate_name_not_normalized = string;
71
+ /**
72
+ * Semantic helper; For example "cs" or "en"
73
+ * Implementing ISO 639-1
74
+ *
75
+ * TODO: Probably use enum
76
+ */
77
+ export type string_translate_language = 'en' | 'cs';
78
+ /**
79
+ * Semantic helper; For example "callbackName" or "renderMe"
80
+ */
81
+ export type string_javascript_name = string;
82
+ /**
83
+ * Semantic helper; For example "unwrapResult" or "spaceTrim"
84
+ */
85
+ export type string_postprocessing_function_name = string;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Branded type for UUIDs version 4
3
+ * This will not allow to pass some random string where should be only a valid UUID
4
+ *
5
+ * Use utils:
6
+ * - `randomUuid` to generate
7
+ * - `isValidUuid to check validity
8
+ *
9
+ * For example `"5a0a153d-7be9-4018-9eda-e0e2e2b89bd9"`
10
+ * TODO: [🥬] Make some system for hashes and ids of promptbook
11
+ */
12
+ export type string_uuid = string & {
13
+ readonly _type: 'uuid';
14
+ };
15
+ /**
16
+ * Semantic helper
17
+ *
18
+ * For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
19
+ */
20
+ export type string_sha256 = string;
21
+ /**
22
+ * Semantic helper
23
+ *
24
+ * For example `"4JmF3b2J5dGVz"`
25
+ */
26
+ export type string_base_58 = string;
27
+ /**
28
+ * Semantic helper
29
+ *
30
+ * For example `"4.2.4"`
31
+ */
32
+ export type string_semantic_version = string;
33
+ /**
34
+ * Semantic helper
35
+ *
36
+ * For example `"^4.2.4"`
37
+ */
38
+ export type string_version_dependency = string;
39
+ /**
40
+ * Semantic helper
41
+ *
42
+ * For example `"png"`
43
+ */
44
+ export type string_file_extension = string;
@@ -0,0 +1,58 @@
1
+ import type { string_email } from './string_url';
2
+ /**
3
+ * Generic identifier helper.
4
+ */
5
+ export type id = string | number;
6
+ /**
7
+ * Task identifier helper.
8
+ */
9
+ export type task_id = string;
10
+ /**
11
+ * Token string helper.
12
+ */
13
+ export type string_token = string;
14
+ /**
15
+ * Semantic helper
16
+ *
17
+ * Made by `identificationToPromptbookToken` exported from `@promptbook/core`
18
+ */
19
+ export type string_promptbook_token = string_token;
20
+ /**
21
+ * License token helper.
22
+ */
23
+ export type string_license_token = string_token;
24
+ /**
25
+ * Password helper.
26
+ */
27
+ export type string_password = string;
28
+ /**
29
+ * SSH key helper.
30
+ */
31
+ export type string_ssh_key = string;
32
+ /**
33
+ * PGP key helper.
34
+ */
35
+ export type string_pgp_key = string;
36
+ /**
37
+ * Language as a string, e.g. 'en-US', 'cs-CZ', 'en'
38
+ */
39
+ export type string_language = string;
40
+ /**
41
+ * Semantic helper for `Date.toISOString()` result
42
+ *
43
+ * @example "2011-10-05T14:48:00.000Z".
44
+ * @see https://en.wikipedia.org/wiki/ISO_8601
45
+ * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
46
+ */
47
+ export type string_date_iso8601 = `${number}-${number}-${number}${string}${number}:${number}:${number}${string}`;
48
+ /**
49
+ * Application identifier, used to distinguish different apps or clients.
50
+ *
51
+ * For example: 'cli', 'playground', or a custom app id.
52
+ */
53
+ export type string_app_id = id | 'app';
54
+ /**
55
+ * End user identifier, can be a user id or email address.
56
+ * Used for tracking and abuse prevention.
57
+ */
58
+ export type string_user_id = id | string_email;
@@ -0,0 +1,146 @@
1
+ /**
2
+ * Semantic helper
3
+ *
4
+ * For example `"text/plain"` or `"application/collboard"`
5
+ */
6
+ export type string_mime_type = string;
7
+ /**
8
+ * Semantic helper
9
+ *
10
+ * For example `"text/*"` or `"image/*"`
11
+ *
12
+ *
13
+ * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
14
+ */
15
+ export type string_mime_type_with_wildcard = string;
16
+ /**
17
+ * Semantic helper
18
+ *
19
+ * For example `"towns.cz"`
20
+ */
21
+ export type string_domain = string;
22
+ /**
23
+ * Semantic helper
24
+ *
25
+ * For example `"https://*.pavolhejny.com/*"`
26
+ */
27
+ export type string_origin = string;
28
+ /**
29
+ * Semantic helper
30
+ *
31
+ * For example `"com"`
32
+ */
33
+ export type string_tdl = string;
34
+ /**
35
+ * Semantic helper
36
+ *
37
+ * For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
38
+ */
39
+ export type string_url = string;
40
+ /**
41
+ * Semantic helper
42
+ *
43
+ * For example `"https://s1.ptbk.io/promptbook"`
44
+ */
45
+ export type string_promptbook_server_url = string;
46
+ /**
47
+ * Semantic helper
48
+ *
49
+ * For example `"https://collboard.com"`
50
+ */
51
+ export type string_base_url = string;
52
+ /**
53
+ * Semantic helper
54
+ *
55
+ * For example `"https://promptbook.studio/webgpt/"`
56
+ */
57
+ export type string_pipeline_root_url = string;
58
+ /**
59
+ * Semantic helper
60
+ *
61
+ * For example `"https://s6.ptbk.io/agents/agent-007"`
62
+ */
63
+ export type string_agent_url = string;
64
+ /**
65
+ * Semantic helper
66
+ *
67
+ * For example `"https://promptbook.studio/webgpt/write-website-content-cs.book"`
68
+ */
69
+ export type string_pipeline_url = string;
70
+ /**
71
+ * Semantic helper
72
+ *
73
+ * For example `"https://promptbook.studio/webgpt/write-website-content-cs.book#keywords"`
74
+ */
75
+ export type string_pipeline_url_with_task_hash = string;
76
+ /**
77
+ * Semantic helper
78
+ *
79
+ * For example `"SGVsbG8sIFdvcmxkIQ=="`
80
+ */
81
+ export type string_base64 = string;
82
+ /**
83
+ * Semantic helper
84
+ *
85
+ * For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
86
+ */
87
+ export type string_data_url = `data:${string_mime_type};base64,${string_base64}`;
88
+ /**
89
+ * Semantic helper
90
+ *
91
+ * For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
92
+ */
93
+ export type string_href = string;
94
+ /**
95
+ * Semantic helper
96
+ *
97
+ * For example `"https://collboard.com/9SeSQTupmQHwuSrLi.png?width=1200&height=630"`
98
+ */
99
+ export type string_url_image = string;
100
+ /**
101
+ * Semantic helper
102
+ *
103
+ * For example `"/9SeSQTupmQHwuSrLi"`
104
+ */
105
+ export type string_uri = string;
106
+ /**
107
+ * Semantic helper
108
+ *
109
+ * For example `"9SeSQTupmQHwuSrLi"`
110
+ */
111
+ export type string_uri_part = string;
112
+ /**
113
+ * Semantic helper
114
+ *
115
+ * For example `"localhost"` or `"collboard.com"`
116
+ */
117
+ export type string_hostname = string;
118
+ /**
119
+ * Semantic helper
120
+ *
121
+ * For example `"localhost:9977"` or `"collboard.com"`
122
+ */
123
+ export type string_host = string;
124
+ /**
125
+ * Semantic helper
126
+ */
127
+ export type string_protocol = 'http:' | 'https:';
128
+ /**
129
+ * Semantic helper
130
+ *
131
+ * For example `"192.168.1.1"` (IPv4)
132
+ * For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
133
+ */
134
+ export type string_ip_address = string;
135
+ /**
136
+ * Semantic helper
137
+ *
138
+ * For example `"pavol@hejny.org"`
139
+ */
140
+ export type string_email = string;
141
+ /**
142
+ * Semantic helper
143
+ *
144
+ * For example `"pavol@hejny.org, jirka@webgpt.cz"`
145
+ */
146
+ export type string_emails = string;