@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
@@ -1,745 +1,13 @@
1
- import type { TupleToUnion } from 'type-fest';
2
- import { RESERVED_PARAMETER_NAMES } from '../constants';
3
- import type { really_unknown } from '../utils/organization/really_unknown';
1
+ export type { InputParameters, Parameters, ReservedParameters, string_agent_hash, string_agent_name, string_agent_name_in_book, string_agent_permanent_id, string_business_category_name, string_char, string_chat_prompt, string_completion_prompt, string_model_description, string_model_name, string_name, string_page, string_parameter_name, string_parameter_value, string_persona_description, string_prompt, string_prompt_image, string_reserved_parameter_name, string_system_message, string_template, string_text_prompt, string_title, } from './string_parameter_name';
2
+ export type { string_base_58, string_file_extension, string_semantic_version, string_sha256, string_uuid, string_version_dependency, } from './string_sha256';
3
+ export type { string_css, string_css_class, string_css_property, string_css_selector, string_css_value, string_fonts, string_html, string_javascript, string_json, string_markdown, string_markdown_codeblock_language, string_markdown_section, string_markdown_section_content, string_markdown_text, string_promptbook_documentation_url, string_script, string_svg, string_typescript, string_xml, } from './string_markdown';
4
+ export type { string_absolute_dirname, string_absolute_filename, string_dirname, string_executable_path, string_filename, string_relative_dirname, string_relative_filename, } from './string_filename';
5
+ export type { string_base64, string_base_url, string_data_url, string_domain, string_email, string_emails, string_host, string_hostname, string_href, string_ip_address, string_mime_type, string_mime_type_with_wildcard, string_origin, string_pipeline_root_url, string_pipeline_url, string_pipeline_url_with_task_hash, string_promptbook_server_url, string_protocol, string_tdl, string_uri, string_uri_part, string_url, string_url_image, string_agent_url, } from './string_url';
6
+ export type { string_knowledge_source_content, string_knowledge_source_link } from './string_knowledge_source_content';
7
+ export type { string_attribute, string_attribute_value_scope, string_color, string_javascript_name, string_legal_entity, string_license, string_person_firstname, string_person_fullname, string_person_lastname, string_person_profile, string_postprocessing_function_name, string_translate_language, string_translate_name, string_translate_name_not_normalized, } from './string_person_fullname';
8
+ export type { id, string_app_id, string_date_iso8601, string_language, string_license_token, string_password, string_pgp_key, string_promptbook_token, string_ssh_key, string_token, string_user_id, task_id, } from './string_token';
9
+ export type { number_bytes, number_days, number_gigabytes, number_hours, number_id, number_integer, number_kilobytes, number_likeness, number_linecol_number, number_megabytes, number_milliseconds, number_minutes, number_model_temperature, number_months, number_negative, number_percent, number_port, number_positive, number_seconds, number_seed, number_terabytes, number_tokens, number_usd, number_weeks, number_years, } from './number_usd';
4
10
  /**
5
- * Semantic helper
6
- */
7
- export type string_business_category_name = 'restaurant' | 'grocery' | 'person' | 'conference' | string;
8
- /**
9
- * Semantic helper
10
- *
11
- * For example `"gpt-4"`
12
- */
13
- 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;
14
- /**
15
- * Semantic helper
16
- *
17
- * For example `"How many eyes does a cat have?"`
18
- */
19
- export type string_prompt = string;
20
- /**
21
- * Semantic helper
22
- *
23
- * For example `"A cat wearing a hat"`
24
- */
25
- export type string_prompt_image = string;
26
- /**
27
- * Semantic helper
28
- *
29
- * For example `"A cat wearing a {item}"`
30
- */
31
- export type string_template = string;
32
- /**
33
- * Semantic helper
34
- *
35
- * For example `"How many hats does the cat wear?"`
36
- */
37
- export type string_text_prompt = string_prompt;
38
- /**
39
- * Semantic helper
40
- *
41
- * For example `"How many hats does the cat wear?"`
42
- */
43
- export type string_chat_prompt = string_text_prompt;
44
- /**
45
- * Semantic helper
46
- *
47
- * For example `"You are an AI assistant. You are here to help me with my work."`
48
- */
49
- export type string_system_message = string_text_prompt;
50
- /**
51
- * Semantic helper
52
- *
53
- * For example `"Following is a text about cats: Once upon a time there was a cat"`
54
- */
55
- export type string_completion_prompt = string_text_prompt;
56
- /**
57
- * Semantic helper
58
- *
59
- * For example `"index"` or `"explanation"`
60
- * Always in kebab-case
61
- */
62
- export type string_page = 'index' | string;
63
- /**
64
- * Semantic helper
65
- *
66
- * For example `"text/plain"` or `"application/collboard"`
67
- */
68
- export type string_mime_type = string;
69
- /**
70
- * Semantic helper
71
- *
72
- * For example `"text/*"` or `"image/*"`
73
- *
74
- *
75
- * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#unique_file_type_specifiers
76
- */
77
- export type string_mime_type_with_wildcard = string;
78
- /**
79
- * Semantic helper
80
- *
81
- * For example `"a"`
82
- */
83
- export type string_char = string;
84
- /**
85
- * Semantic helper
86
- * Unique identifier of anything
87
- *
88
- * For example `"ainautes"`
89
- */
90
- export type string_name = string;
91
- /**
92
- * Semantic helper
93
- * Unique identifier of anything
94
- *
95
- * For example `"eventTitle"`
96
- */
97
- export type string_parameter_name = string_name;
98
- /**
99
- * Semantic helper
100
- * Unique identifier of parameter
101
- *
102
- * For example `"DevConf 2024"`
103
- */
104
- export type string_parameter_value = string;
105
- /**
106
- * Parameters of the pipeline
107
- *
108
- * There are three types of parameters:
109
- * - **INPUT PARAMETERs** are required to execute the pipeline.
110
- * - **Intermediate parameters** are used internally in the pipeline.
111
- * - **OUTPUT PARAMETERs** are not used internally in the pipeline, but are returned as the result of the pipeline execution.
112
- *
113
- * Note: [🚉] This is fully serializable as JSON
114
- * @see https://ptbk.io/parameters
115
- */
116
- export type Parameters = Exclude<Record<string_parameter_name, string_parameter_value>, ReservedParameters>;
117
- /**
118
- * Parameters to pass to execution of the pipeline
119
- *
120
- * Note: [🚉] This should be fully serializable as JSON
121
- * @see https://ptbk.io/parameters
122
- */
123
- export type InputParameters = Exclude<Record<string_parameter_name, really_unknown>, ReservedParameters>;
124
- /**
125
- * Semantic helper
126
- * Unique identifier of reserved parameter
127
- *
128
- * For example `"context"`
129
- */
130
- export type string_reserved_parameter_name = TupleToUnion<typeof RESERVED_PARAMETER_NAMES>;
131
- /**
132
- * Represents a mapping of reserved parameter names to their values.
133
- * Reserved parameters are used internally by the pipeline and should not be set by users.
134
- *
135
- * Note: [🚉] This is fully serializable as JSON
136
- */
137
- export type ReservedParameters = Record<string_reserved_parameter_name, string_parameter_value>;
138
- /**
139
- * Semantic helper
140
- * Title of anything
141
- *
142
- * For example `"Ai*nautes"`
143
- */
144
- export type string_title = string;
145
- /**
146
- * Semantic helper
147
- *
148
- * For example `"My AI Assistant"`
149
- *
150
- * TODO: !!!! Brand the type
151
- */
152
- export type string_agent_name = string;
153
- /**
154
- * Semantic helper
155
- *
156
- * For example `"My AI Assistant"`
157
- */
158
- export type string_agent_name_in_book = string;
159
- /**
160
- * Semantic helper
161
- *
162
- * For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
163
- */
164
- export type string_agent_hash = string_sha256;
165
- /**
166
- * Semantic helper
167
- *
168
- * For example `"3mJr7AoUXx2Wqd"`
169
- *
170
- * TODO: !!!! Brand the type
171
- */
172
- export type string_agent_permanent_id = string_base_58;
173
- /**
174
- * Unstructured description of the persona
175
- *
176
- * For example `"Skilled copywriter"`
177
- */
178
- export type string_persona_description = string;
179
- /**
180
- * Unstructured description of the model
181
- *
182
- * For example `"Model with logical reasoning and creative mindset"`
183
- */
184
- export type string_model_description = string;
185
- /**
186
- * Source of one knowledge piece.
187
- *
188
- * It can be a link, a relative path to file or direct text content.
189
- *
190
- * For example `"https://pavolhejny.com/"`
191
- * For example `"./pavol-hejny-cv.pdf"`
192
- * For example `"Pavol Hejný has web https://pavolhejny.com/"`
193
- * For example `"Pavol Hejný is web developer and creator of Promptbook and Collboard"`
194
- *
195
- * Note: Distinguishes between `string_knowledge_source_content` and `string_knowledge_source_link`:
196
- * `string_knowledge_source_content` refers to the actual content or source of knowledge
197
- * `string_knowledge_source_link` refers to a reference or link to the knowledge source
198
- */
199
- export type string_knowledge_source_content = string_knowledge_source_link | string_markdown;
200
- /**
201
- * One link to a knowledge source.
202
- *
203
- * It can be a URL or relative path.
204
- *
205
- * For example `"https://pavolhejny.com/"`
206
- * For example `"./pavol-hejny-cv.pdf"`
207
- *
208
- * 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.
209
- */
210
- export type string_knowledge_source_link = string_url | string_filename;
211
- /**
212
- * Semantic helper
213
- *
214
- * For example `"<div>Hello World!</div>"`
215
- */
216
- export type string_html = string;
217
- /**
218
- * Semantic helper
219
- *
220
- * For example `"<foo>bar</foo>"`
221
- *
222
- *
223
- * TODO: [🎞️] Probably use some object-based method for working with XMLs
224
- */
225
- export type string_xml = string;
226
- /**
227
- * Semantic helper
228
- *
229
- * For example `"**Hello** World!"`
230
- *
231
- * @public exported from `@promptbook/markdown-utils`
232
- */
233
- export type string_markdown = string;
234
- /**
235
- * Semantic helper
236
- *
237
- * Markdown text with exactly ONE heading on first line NO less NO more
238
- *
239
- * @public exported from `@promptbook/markdown-utils`
240
- */
241
- export type string_markdown_section = string;
242
- /**
243
- * Semantic helper
244
- *
245
- * Markdown without any headings like h1, h2
246
- * BUT with formatting, lists, blockquotes, blocks, etc. is allowed
247
- *
248
- * @public exported from `@promptbook/markdown-utils`
249
- */
250
- export type string_markdown_section_content = string;
251
- /**
252
- * Semantic helper
253
- *
254
- * Markdown text without any structure like h1, h2, lists, blockquotes, blocks, etc.
255
- * BUT with bold, italic, etc. is allowed
256
- *
257
- * For example `"**Hello** World!"`
258
- *
259
- * @public exported from `@promptbook/markdown-utils`
260
- */
261
- export type string_markdown_text = string;
262
- /**
263
- * Semantic helper
264
- *
265
- * Markdown code block language
266
- *
267
- * For example ```js -> `"js"`
268
- *
269
- * @public exported from `@promptbook/markdown-utils`
270
- */
271
- export type string_markdown_codeblock_language = 'book' | 'markdown' | 'text' | 'javascript' | 'css' | 'json';
272
- /**
273
- * A URL pointing to Promptbook documentation or a specific discussion.
274
- *
275
- * For example: `https://github.com/webgptorg/promptbook/discussions/123`
276
- */
277
- export type string_promptbook_documentation_url = `https://github.com/webgptorg/promptbook/discussions/${number | `@@${string}`}`;
278
- /**
279
- * Semantic helper
280
- *
281
- * For example `"towns.cz"`
282
- */
283
- export type string_domain = string;
284
- /**
285
- * Semantic helper
286
- *
287
- * For example `"https://*.pavolhejny.com/*"`
288
- */
289
- export type string_origin = string;
290
- /**
291
- * Semantic helper
292
- *
293
- * For example `"com"`
294
- */
295
- export type string_tdl = string;
296
- /**
297
- * Semantic helper
298
- *
299
- * For example `.foo{border: 1px solid red}`
300
- */
301
- export type string_css = string;
302
- /**
303
- * Semantic helper
304
- *
305
- * For example `"<svg><circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" /></svg>"`
306
- */
307
- export type string_svg = string;
308
- /**
309
- * Semantic helper
310
- *
311
- * For example `console.info("Hello World!")` or `print("Hello World!")`
312
- */
313
- export type string_script = string;
314
- /**
315
- * Semantic helper
316
- *
317
- * For example `console.info("Hello World!")`
318
- */
319
- export type string_javascript = string;
320
- /**
321
- * Semantic helper
322
- *
323
- * For example `console.info("Hello World!" as string)`
324
- */
325
- export type string_typescript = string;
326
- /**
327
- * Semantic helper for JSON strings
328
- *
329
- * Note: TType is a type of the JSON object inside the string
330
- *
331
- * For example `{"foo": "bar"}`
332
- */
333
- export type string_json<TType> = string & {
334
- _type: 'string_json';
335
- scheme: TType;
336
- };
337
- /**
338
- * Semantic helper
339
- *
340
- * For example `menu`
341
- */
342
- export type string_css_class = string;
343
- /**
344
- * Semantic helper
345
- *
346
- * For example `border`
347
- */
348
- export type string_css_property = string;
349
- /**
350
- * Semantic helper
351
- *
352
- * For example `"Arial, sans-serif"`
353
- */
354
- export type string_fonts = string;
355
- /**
356
- * Semantic helper
357
- *
358
- * For example `13px`
359
- */
360
- export type string_css_value = string | number;
361
- /**
362
- * Semantic helper
363
- *
364
- * For example `.foo`
365
- */
366
- export type string_css_selector = string;
367
- /**
368
- * Semantic helper
369
- *
370
- * For example `"https://collboard.com/9SeSQTupmQHwuSrLi"`
371
- */
372
- export type string_url = string;
373
- /**
374
- * Semantic helper
375
- *
376
- * For example `"https://s1.ptbk.io/promptbook"`
377
- */
378
- export type string_promptbook_server_url = string;
379
- /**
380
- * Semantic helper
381
- *
382
- * For example `"https://collboard.com"`
383
- */
384
- export type string_base_url = string;
385
- /**
386
- * Semantic helper
387
- *
388
- * For example `"https://promptbook.studio/webgpt/"`
389
- */
390
- export type string_pipeline_root_url = string;
391
- /**
392
- * Semantic helper
393
- *
394
- * For example `"https://s6.ptbk.io/agents/agent-007"`
395
- */
396
- export type string_agent_url = string;
397
- /**
398
- * Semantic helper
399
- *
400
- * For example `"https://promptbook.studio/webgpt/write-website-content-cs.book"`
401
- */
402
- export type string_pipeline_url = string;
403
- /**
404
- * Semantic helper
405
- *
406
- * For example `"https://promptbook.studio/webgpt/write-website-content-cs.book#keywords"`
407
- */
408
- export type string_pipeline_url_with_task_hash = string;
409
- /**
410
- * Semantic helper
411
- *
412
- * For example `"data:text/plain;base64,SGVsbG8sIFdvcmxkIQ=="`
413
- */
414
- export type string_data_url = `data:${string_mime_type};base64,${string_base64}`;
415
- /**
416
- * Semantic helper
417
- *
418
- * For example `"SGVsbG8sIFdvcmxkIQ=="`
419
- */
420
- export type string_base64 = string;
421
- /**
422
- * Semantic helper
423
- *
424
- * For example `"https://collboard.com/9SeSQTupmQHwuSrLi"` OR `/9SeSQTupmQHwuSrLi`
425
- */
426
- export type string_href = string;
427
- /**
428
- * Semantic helper
429
- *
430
- * For example `"https://collboard.com/9SeSQTupmQHwuSrLi.png?width=1200&height=630"`
431
- */
432
- export type string_url_image = string;
433
- /**
434
- * Semantic helper
435
- *
436
- * For example `"C:/Users/me/AppData/Local/Pandoc/pandoc.exe"`
437
- * For example `"C:/Program Files/LibreOffice/program/swriter.exe"`
438
- */
439
- export type string_executable_path = string;
440
- /**
441
- * Semantic helper
442
- *
443
- * For example `"/9SeSQTupmQHwuSrLi"`
444
- */
445
- export type string_uri = string;
446
- /**
447
- * Semantic helper
448
- *
449
- * For example `"9SeSQTupmQHwuSrLi"`
450
- */
451
- export type string_uri_part = string;
452
- /**
453
- * Semantic helper
454
- *
455
- * For example `"localhost"` or `"collboard.com"`
456
- */
457
- export type string_hostname = string;
458
- /**
459
- * Semantic helper
460
- *
461
- * For example `"localhost:9977"` or `"collboard.com"`
462
- */
463
- export type string_host = string;
464
- /**
465
- * Semantic helper
466
- */
467
- export type string_protocol = 'http:' | 'https:';
468
- /**
469
- * Semantic helper
470
- *
471
- * For example `"192.168.1.1"` (IPv4)
472
- * For example `"2001:0db8:85a3:0000:0000:8a2e:0370:7334"` (IPv6)
473
- */
474
- export type string_ip_address = string;
475
- /**
476
- * Semantic helper
477
- *
478
- * For example `"pavol@hejny.org"`
479
- */
480
- export type string_email = string;
481
- /**
482
- * Semantic helper
483
- *
484
- * For example `"pavol@hejny.org, jirka@webgpt.cz"`
485
- */
486
- export type string_emails = string;
487
- /**
488
- * Branded type for UUIDs version 4
489
- * This will not allow to pass some random string where should be only a valid UUID
490
- *
491
- * Use utils:
492
- * - `randomUuid` to generate
493
- * - `isValidUuid to check validity
494
- *
495
- * For example `"5a0a153d-7be9-4018-9eda-e0e2e2b89bd9"`
496
- * TODO: [🥬] Make some system for hashes and ids of promptbook
497
- */
498
- export type string_uuid = string & {
499
- readonly _type: 'uuid';
500
- };
501
- /**
502
- * Application identifier, used to distinguish different apps or clients.
503
- *
504
- * For example: 'cli', 'playground', or a custom app id.
505
- */
506
- export type string_app_id = id | 'app';
507
- /**
508
- * End user identifier, can be a user id or email address.
509
- * Used for tracking and abuse prevention.
510
- */
511
- export type string_user_id = id | string_email;
512
- /**
513
- * Semantic helper
514
- *
515
- * For example `"b126926439c5fcb83609888a11283723c1ef137c0ad599a77a1be81812bd221d"`
516
- */
517
- export type string_sha256 = string;
518
- /**
519
- * Semantic helper
520
- *
521
- * For example `"4JmF3b2J5dGVz"`
522
- */
523
- export type string_base_58 = string;
524
- /**
525
- * Semantic helper
526
- *
527
- * For example `"4.2.4"`
528
- */
529
- export type string_semantic_version = string;
530
- /**
531
- * Semantic helper
532
- *
533
- * For example `"^4.2.4"`
534
- */
535
- export type string_version_dependency = string;
536
- /**
537
- * Semantic helper
538
- *
539
- * For example `"png"`
540
- */
541
- export type string_file_extension = string;
542
- /**
543
- * Semantic helper
544
- *
545
- * For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
546
- */
547
- export type string_absolute_filename = string;
548
- /**
549
- * Semantic helper
550
- *
551
- * For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
552
- */
553
- export type string_relative_filename = string;
554
- /**
555
- * Semantic helper
556
- */
557
- export type string_filename = string_absolute_filename | string_relative_filename;
558
- /**
559
- * Semantic helper
560
- *
561
- * For example `"C:/Users/me/work/collboard/modules-sdk/src/colldev/commands/develop/ColldevDevelop.tsx"`
562
- */
563
- export type string_absolute_dirname = string;
564
- /**
565
- * Semantic helper
566
- *
567
- * For example `"./src/colldev/commands/develop/ColldevDevelop.tsx"`
568
- */
569
- export type string_relative_dirname = string;
570
- /**
571
- * Semantic helper
572
- */
573
- export type string_dirname = string_absolute_dirname | string_relative_dirname;
574
- /**
575
- * Semantic helper
576
- *
577
- * For example `"John Smith"`
578
- */
579
- export type string_person_fullname = `${string_person_firstname} ${string_person_lastname}` | string;
580
- /**
581
- * Semantic helper
582
- *
583
- * For example `"John Smith"`
584
- */
585
- export type string_person_firstname = string;
586
- /**
587
- * Semantic helper
588
- *
589
- * For example `"John Smith"`
590
- */
591
- export type string_person_lastname = string;
592
- /**
593
- * Semantic helper
594
- * Full profile of the person with his email and web (like in package.json)
595
- *
596
- * For example `"Pavol Hejný <pavol@hejny.org> (https://pavolhejny.com)"`
597
- */
598
- export type string_person_profile = string;
599
- /**
600
- * Semantic helper
601
- *
602
- * For example `"MIT"`
603
- */
604
- export type string_license = string;
605
- /**
606
- * Semantic helper
607
- *
608
- * For example `"Pavol Hejný <pavol@ptbk.io> (https://www.pavolhejny.com/)"`
609
- * For example `"AI Web, LLC <legal@ptbk.io> (https://www.ptbk.io/)"`
610
- */
611
- export type string_legal_entity = string | string_person_profile | string_title;
612
- /**
613
- * Semantic helper for attributes
614
- *
615
- * - case insensitive
616
- *
617
- * For example `"color"`
618
- */
619
- export type string_attribute = string;
620
- /**
621
- * Semantic helper for attributes context
622
- * Each attribute value scope with a attribute name has its own current value
623
- *
624
- * - case insensitive
625
- *
626
- * For example `"tools"`
627
- */
628
- export type string_attribute_value_scope = string;
629
- /**
630
- * Semantic helper for css/html colors
631
- *
632
- * For example `"white"` or `"#009edd"`
633
- */
634
- export type string_color = string;
635
- /**
636
- * Semantic helper; For example "SHARE_ICON/EDIT_LINK"
637
- */
638
- export type string_translate_name = string;
639
- /**
640
- * Semantic helper; For example "ShareIcon/ edit link"
641
- */
642
- export type string_translate_name_not_normalized = string;
643
- /**
644
- * Semantic helper; For example "cs" or "en"
645
- * Implementing ISO 639-1
646
- *
647
- * TODO: Probably use enum
648
- */
649
- export type string_translate_language = 'en' | 'cs';
650
- /**
651
- * Semantic helper; For example "callbackName" or "renderMe"
652
- */
653
- export type string_javascript_name = string;
654
- /**
655
- * Semantic helper; For example "unwrapResult" or "spaceTrim"
656
- */
657
- export type string_postprocessing_function_name = string;
658
- export type id = string | number;
659
- export type task_id = string;
660
- export type string_token = string;
661
- /**
662
- * Semantic helper
663
- *
664
- * Made by `identificationToPromptbookToken` exported from `@promptbook/core`
665
- */
666
- export type string_promptbook_token = string_token;
667
- export type string_license_token = string_token;
668
- export type string_password = string;
669
- export type string_ssh_key = string;
670
- export type string_pgp_key = string;
671
- /**
672
- * Language as a string, e.g. 'en-US', 'cs-CZ', 'en'
673
- */
674
- export type string_language = string;
675
- /**
676
- * Semantic helper for `Date.toISOString()` result
677
- *
678
- * @example "2011-10-05T14:48:00.000Z".
679
- * @see https://en.wikipedia.org/wiki/ISO_8601
680
- * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
681
- */
682
- export type string_date_iso8601 = `${number}-${number}-${number}${string}${number}:${number}:${number}${string}`;
683
- /**
684
- * Semantic helper for US Dollars
685
- */
686
- export type number_usd = number;
687
- /**
688
- * Semantic helper for incremental IDs
689
- */
690
- export type number_id = number_integer & (number_positive | 0);
691
- /**
692
- * Semantic helper for number of rows and columns
693
- */
694
- export type number_linecol_number = number_integer & number_positive;
695
- /**
696
- * Semantic helper for number of tokens
697
- */
698
- export type number_tokens = number_integer & (number_positive | 0);
699
- export type number_positive = number;
700
- export type number_negative = number;
701
- export type number_integer = number;
702
- export type number_port = number_positive & number_integer;
703
- /**
704
- * Semantic helper;
705
- * Percentage from 0 to 1 (100%) (and below and above)
706
- */
707
- export type number_percent = number;
708
- /**
709
- * Semantic helper;
710
- * Model temperature
711
- */
712
- export type number_model_temperature = number_percent;
713
- /**
714
- * Semantic helper;
715
- * Seed for random generator
716
- *
717
- * Percentage from 0 to 1 (100%)
718
- * TODO: Is seed (in OpenAI) number from 0 to 1?
719
- */
720
- export type number_seed = number_percent;
721
- /**
722
- * Likeness of the wallpaper
723
- *
724
- * - 👍 is equivalent to 1
725
- * - 👎 is equivalent to -1
726
- * - ❤ is equivalent to more than 1
727
- */
728
- export type number_likeness = number;
729
- export type number_milliseconds = number_integer;
730
- export type number_seconds = number;
731
- export type number_minutes = number;
732
- export type number_hours = number;
733
- export type number_days = number;
734
- export type number_weeks = number;
735
- export type number_months = number;
736
- export type number_years = number;
737
- export type number_bytes = number_integer & number_positive;
738
- export type number_kilobytes = number_positive;
739
- export type number_megabytes = number_positive;
740
- export type number_gigabytes = number_positive;
741
- export type number_terabytes = number_positive;
742
- /**.
743
11
  * TODO: [main] !!3 Change "For example" to @example
744
12
  * TODO: Change to branded types
745
13
  * TODO: Delete type aliases that are not exported or used internally