@promptbook/google 0.113.0-8 → 0.114.0-0

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 (392) hide show
  1. package/README.md +4 -3
  2. package/esm/index.es.js +122 -122
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +8 -0
  5. package/esm/src/_packages/core.index.d.ts +4 -0
  6. package/esm/src/_packages/types.index.d.ts +14 -2
  7. package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  8. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  9. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  10. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  11. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  12. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  13. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  14. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  15. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  16. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  17. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  18. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  19. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  20. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  21. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  22. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  23. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  24. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  25. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  26. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  27. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  28. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  29. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  30. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  31. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  32. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  33. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  34. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  35. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  36. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  37. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  38. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  39. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  40. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  41. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  42. package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  43. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  44. package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  45. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  46. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  47. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  48. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  49. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  51. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  52. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  53. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  54. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  55. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  56. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  57. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  58. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  59. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  60. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  61. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  62. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  63. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  64. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  65. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  66. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  67. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  68. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  69. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  70. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  71. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  72. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  73. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  74. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  75. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  76. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  77. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  78. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  79. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  80. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  81. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  82. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  83. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  84. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  85. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  86. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  87. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  88. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  89. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  90. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  91. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  92. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  93. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  94. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  95. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  96. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  97. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  98. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  99. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  100. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  101. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  102. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  103. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  104. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  105. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  106. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  107. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  108. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  109. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  110. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  111. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  112. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  113. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  114. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  115. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  116. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  117. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  118. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  119. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  120. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  121. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  122. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  123. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  124. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  125. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  126. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  127. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  128. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  129. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  130. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  131. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  132. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  133. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  134. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  135. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  136. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  137. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  138. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  139. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  140. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  141. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  142. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  143. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  144. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  145. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  146. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  147. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  148. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  149. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  150. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  151. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  152. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  153. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  154. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  155. package/esm/src/commitments/META/META.d.ts +4 -2
  156. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  157. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  158. package/esm/src/commitments/index.d.ts +2 -1
  159. package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  160. package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  161. package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  162. package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  163. package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  164. package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  165. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  166. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  167. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  168. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  169. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  170. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  171. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  172. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  173. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  174. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  175. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  176. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  177. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  178. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  179. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  180. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  181. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  182. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  183. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  184. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  185. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  186. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  187. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  188. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  189. package/esm/src/utils/color/Color.d.ts +1 -1
  190. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  191. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  192. package/esm/src/version.d.ts +1 -1
  193. package/package.json +2 -2
  194. package/umd/index.umd.js +122 -122
  195. package/umd/index.umd.js.map +1 -1
  196. package/umd/src/_packages/components.index.d.ts +8 -0
  197. package/umd/src/_packages/core.index.d.ts +4 -0
  198. package/umd/src/_packages/types.index.d.ts +14 -2
  199. package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  200. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  201. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  202. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  203. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  204. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  205. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  206. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  207. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  208. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  209. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  210. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  211. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  212. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  213. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  214. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  215. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  216. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  217. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  218. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  219. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  220. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  221. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  222. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  223. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  224. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  225. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  226. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  227. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  228. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  229. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  230. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  231. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  232. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  233. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  234. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  235. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  236. package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  237. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  238. package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  239. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  240. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  241. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  242. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  243. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  244. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  245. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  246. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  247. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  248. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  249. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  250. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  251. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  252. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  253. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  254. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  255. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  256. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  257. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  258. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  259. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  260. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  261. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  262. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  263. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  264. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  265. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  266. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  267. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  268. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  269. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  270. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  271. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  272. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  273. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  274. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  275. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  276. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  277. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  278. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  279. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  280. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  281. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  282. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  283. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  284. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  285. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  286. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  287. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  288. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  289. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  290. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  291. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  292. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  293. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  294. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  295. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  296. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  297. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  298. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  299. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  300. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  301. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  302. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  303. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  304. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  305. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  306. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  307. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  308. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  309. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  310. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  311. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  312. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  313. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  314. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  315. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  316. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  317. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  318. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  319. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  320. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  321. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  322. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  323. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  324. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  325. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  326. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  327. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  328. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  329. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  330. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  331. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  332. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  333. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  334. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  335. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  336. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  337. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  338. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  339. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  340. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  341. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  342. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  343. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  344. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  345. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  346. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  347. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  348. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  349. package/umd/src/commitments/META/META.d.ts +4 -2
  350. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  351. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  352. package/umd/src/commitments/index.d.ts +2 -1
  353. package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  354. package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  355. package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  356. package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  357. package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  358. package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  359. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  360. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  361. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  362. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  363. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  364. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  365. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  366. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  367. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  368. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  369. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  370. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  371. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  372. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  373. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  374. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  375. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  376. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  377. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  378. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  379. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  380. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  381. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  382. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  383. package/umd/src/utils/color/Color.d.ts +1 -1
  384. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  385. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  386. package/umd/src/version.d.ts +1 -1
  387. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  388. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  389. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  390. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  391. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  392. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -0,0 +1,120 @@
1
+ import type { MutableRefObject } from 'react';
2
+ import type { Promisable } from 'type-fest';
3
+ /**
4
+ * Type describing upload status.
5
+ *
6
+ * @private function of BookEditorMonaco
7
+ */
8
+ type UploadStatus = 'queued' | 'uploading' | 'paused' | 'completed' | 'failed';
9
+ /**
10
+ * Type describing upload item.
11
+ */
12
+ export type UploadItem = {
13
+ readonly id: string;
14
+ readonly fileName: string;
15
+ readonly fileSize: number;
16
+ readonly status: UploadStatus;
17
+ readonly progress: number;
18
+ readonly loadedBytes: number;
19
+ readonly totalBytes: number;
20
+ readonly startedAt: number | null;
21
+ readonly completedAt: number | null;
22
+ readonly errorMessage?: string;
23
+ };
24
+ /**
25
+ * Type describing upload progress update.
26
+ *
27
+ * @private function of BookEditorMonaco
28
+ */
29
+ export type UploadProgressUpdate = {
30
+ readonly progress: number;
31
+ readonly loadedBytes: number;
32
+ readonly totalBytes: number;
33
+ };
34
+ /**
35
+ * Type describing placeholder entry inserted into Monaco while the file uploads.
36
+ *
37
+ * @private function of BookEditorMonaco
38
+ */
39
+ export type UploadPlaceholderEntry = {
40
+ readonly id: string;
41
+ readonly file: File;
42
+ readonly placeholder: string;
43
+ };
44
+ /**
45
+ * Type describing upload stats.
46
+ */
47
+ export type UploadStats = {
48
+ readonly totalFiles: number;
49
+ readonly queuedFiles: number;
50
+ readonly uploadingFiles: number;
51
+ readonly pausedFiles: number;
52
+ readonly failedFiles: number;
53
+ readonly completedFiles: number;
54
+ readonly totalBytes: number;
55
+ readonly uploadedBytes: number;
56
+ readonly progress: number;
57
+ readonly elapsedMs: number;
58
+ readonly speedBytesPerSecond: number;
59
+ };
60
+ /**
61
+ * Type describing book editor monaco upload progress callback.
62
+ *
63
+ * @private function of BookEditorMonaco
64
+ */
65
+ export type BookEditorMonacoUploadProgressCallback = (progress: number, stats?: {
66
+ loadedBytes: number;
67
+ totalBytes: number;
68
+ }) => void;
69
+ /**
70
+ * Options for book editor monaco upload.
71
+ *
72
+ * @private function of BookEditorMonaco
73
+ */
74
+ export type BookEditorMonacoUploadOptions = {
75
+ readonly onProgress?: BookEditorMonacoUploadProgressCallback;
76
+ readonly abortSignal?: AbortSignal;
77
+ };
78
+ /**
79
+ * Type describing book editor monaco on file upload.
80
+ *
81
+ * @private function of BookEditorMonaco
82
+ */
83
+ export type BookEditorMonacoOnFileUpload = (file: File, options?: BookEditorMonacoUploadOptions | BookEditorMonacoUploadProgressCallback) => Promisable<string>;
84
+ /**
85
+ * Setter-like updater used by upload state helpers.
86
+ *
87
+ * @private function of BookEditorMonaco
88
+ */
89
+ export type SetUploadItems = (updater: (items: UploadItem[]) => UploadItem[]) => void;
90
+ /**
91
+ * Single-upload updater used by upload state helpers.
92
+ *
93
+ * @private function of BookEditorMonaco
94
+ */
95
+ export type UpdateUploadItem = (uploadId: string, createNextUploadItem: (uploadItem: UploadItem) => UploadItem) => void;
96
+ /**
97
+ * Mutable upload items reference shared across upload helpers.
98
+ *
99
+ * @private function of BookEditorMonaco
100
+ */
101
+ export type UploadItemsRef = MutableRefObject<UploadItem[]>;
102
+ /**
103
+ * Mutable upload file registry reference shared across upload helpers.
104
+ *
105
+ * @private function of BookEditorMonaco
106
+ */
107
+ export type UploadFilesRef = MutableRefObject<Map<string, File>>;
108
+ /**
109
+ * Mutable Monaco decoration registry reference shared across upload helpers.
110
+ *
111
+ * @private function of BookEditorMonaco
112
+ */
113
+ export type UploadDecorationIdsRef = MutableRefObject<Map<string, string>>;
114
+ /**
115
+ * Type describing the callback used to enqueue debounced progress updates.
116
+ *
117
+ * @private function of BookEditorMonaco
118
+ */
119
+ export type QueueProgressUpdate = (uploadId: string, progress: number, loadedBytes: number, totalBytes: number) => void;
120
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Clears an optional scheduled timer when it exists.
3
+ *
4
+ * @private function of BookEditorMonaco
5
+ */
6
+ export declare function clearScheduledTimer(timerId: number | null): void;
@@ -0,0 +1,26 @@
1
+ import type { editor } from 'monaco-editor';
2
+ import type { SetUploadItems, UploadPlaceholderEntry } from './bookEditorMonacoUploadTypes';
3
+ /**
4
+ * Type describing monaco editor.
5
+ *
6
+ * @private function of BookEditorMonaco
7
+ */
8
+ type MonacoEditor = typeof import('monaco-editor');
9
+ /**
10
+ * Props for Monaco placeholder insertion.
11
+ *
12
+ * @private function of BookEditorMonaco
13
+ */
14
+ type EnqueueFilesForUploadProps = {
15
+ readonly editor: editor.IStandaloneCodeEditor | null;
16
+ readonly monaco: MonacoEditor | null;
17
+ readonly registerUploadPlaceholderResources: (placeholders: ReadonlyArray<UploadPlaceholderEntry>, decorationIds: ReadonlyArray<string>) => void;
18
+ readonly setUploadItems: SetUploadItems;
19
+ };
20
+ /**
21
+ * Inserts Monaco placeholders and queues matching upload items.
22
+ *
23
+ * @private function of BookEditorMonaco
24
+ */
25
+ export declare function enqueueFilesForUpload({ editor, monaco, registerUploadPlaceholderResources, setUploadItems, }: EnqueueFilesForUploadProps): (files: ReadonlyArray<File>) => boolean;
26
+ export {};
@@ -0,0 +1,23 @@
1
+ import type { editor } from 'monaco-editor';
2
+ import type { UploadDecorationIdsRef, UploadFilesRef, UploadPlaceholderEntry } from './bookEditorMonacoUploadTypes';
3
+ /**
4
+ * Props for Monaco placeholder and replacement synchronization.
5
+ *
6
+ * @private function of BookEditorMonaco
7
+ */
8
+ type UseBookEditorMonacoUploadEditorSyncProps = {
9
+ readonly editor: editor.IStandaloneCodeEditor | null;
10
+ readonly uploadFilesRef: UploadFilesRef;
11
+ readonly uploadDecorationIdsRef: UploadDecorationIdsRef;
12
+ };
13
+ /**
14
+ * Manages Monaco placeholder insertion and later replacement with uploaded URLs.
15
+ *
16
+ * @private function of BookEditorMonaco
17
+ */
18
+ export declare function useBookEditorMonacoUploadEditorSync({ editor, uploadFilesRef, uploadDecorationIdsRef, }: UseBookEditorMonacoUploadEditorSyncProps): {
19
+ registerUploadPlaceholderResources: (placeholders: ReadonlyArray<UploadPlaceholderEntry>, decorationIds: ReadonlyArray<string>) => void;
20
+ queueEditorReplacement: (uploadId: string, replacementText: string) => void;
21
+ clearEditorSync: () => void;
22
+ };
23
+ export {};
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import type { SetUploadItems, UpdateUploadItem, UploadItem, UploadStats } from './bookEditorMonacoUploadTypes';
3
+ /**
4
+ * Updates one upload item while leaving every other item untouched.
5
+ *
6
+ * @private function of BookEditorMonaco
7
+ */
8
+ export declare function replaceUploadItemById(uploadItems: ReadonlyArray<UploadItem>, uploadId: string, updateUploadItem: (uploadItem: UploadItem) => UploadItem): Array<UploadItem>;
9
+ /**
10
+ * Internal upload item state shared by Monaco upload helpers.
11
+ *
12
+ * @private function of BookEditorMonaco
13
+ */
14
+ export declare function useBookEditorMonacoUploadItemsState(): {
15
+ uploadItems: UploadItem[];
16
+ uploadItemsRef: import("react").RefObject<UploadItem[]>;
17
+ setUploadItems: SetUploadItems;
18
+ updateUploadItem: UpdateUploadItem;
19
+ uploadStats: UploadStats;
20
+ activeUploadItems: UploadItem[];
21
+ };
@@ -0,0 +1,12 @@
1
+ import type { SetUploadItems } from './bookEditorMonacoUploadTypes';
2
+ /**
3
+ * Debounces upload progress updates before they hit React state.
4
+ *
5
+ * @private function of BookEditorMonaco
6
+ */
7
+ export declare function useBookEditorMonacoUploadProgressQueue({ setUploadItems, }: {
8
+ readonly setUploadItems: SetUploadItems;
9
+ }): {
10
+ queueProgressUpdate: (uploadId: string, progress: number, loadedBytes: number, totalBytes: number) => void;
11
+ clearProgressQueue: () => void;
12
+ };
@@ -0,0 +1,27 @@
1
+ import type { BookEditorMonacoOnFileUpload, QueueProgressUpdate, SetUploadItems, UpdateUploadItem, UploadFilesRef, UploadItemsRef } from './bookEditorMonacoUploadTypes';
2
+ /**
3
+ * Props for upload queue processing and pause/resume handling.
4
+ *
5
+ * @private function of BookEditorMonaco
6
+ */
7
+ type UseBookEditorMonacoUploadQueueProps = {
8
+ readonly onFileUpload?: BookEditorMonacoOnFileUpload;
9
+ readonly uploadItemsRef: UploadItemsRef;
10
+ readonly uploadFilesRef: UploadFilesRef;
11
+ readonly queueProgressUpdate: QueueProgressUpdate;
12
+ readonly queueEditorReplacement: (uploadId: string, replacementText: string) => void;
13
+ readonly setUploadItems: SetUploadItems;
14
+ readonly updateUploadItem: UpdateUploadItem;
15
+ };
16
+ /**
17
+ * Manages upload concurrency, retries, pausing and completion side effects.
18
+ *
19
+ * @private function of BookEditorMonaco
20
+ */
21
+ export declare function useBookEditorMonacoUploadQueue({ onFileUpload, uploadItemsRef, uploadFilesRef, queueProgressUpdate, queueEditorReplacement, setUploadItems, updateUploadItem, }: UseBookEditorMonacoUploadQueueProps): {
22
+ pauseUpload: (uploadId: string) => void;
23
+ resumeUpload: (uploadId: string) => void;
24
+ queueUploadProcessing: () => void;
25
+ clearUploadQueue: () => void;
26
+ };
27
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { SetUploadItems, UploadDecorationIdsRef, UploadFilesRef, UploadItem } from './bookEditorMonacoUploadTypes';
2
+ /**
3
+ * Clears upload UI state shortly after all uploads finish.
4
+ *
5
+ * @private function of BookEditorMonaco
6
+ */
7
+ export declare function useCompletedUploadsAutoClear({ uploadItems, uploadFilesRef, uploadDecorationIdsRef, setUploadItems, }: {
8
+ readonly uploadItems: ReadonlyArray<UploadItem>;
9
+ readonly uploadFilesRef: UploadFilesRef;
10
+ readonly uploadDecorationIdsRef: UploadDecorationIdsRef;
11
+ readonly setUploadItems: SetUploadItems;
12
+ }): void;
@@ -1,62 +1,10 @@
1
1
  import type { editor } from 'monaco-editor';
2
- import type { Promisable } from 'type-fest';
2
+ import type { BookEditorMonacoOnFileUpload } from './useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
3
+ export type { UploadItem, UploadStats } from './useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
3
4
  /**
4
5
  * Type describing monaco editor.
5
6
  */
6
7
  type MonacoEditor = typeof import('monaco-editor');
7
- /**
8
- * Type describing upload status.
9
- */
10
- type UploadStatus = 'queued' | 'uploading' | 'paused' | 'completed' | 'failed';
11
- /**
12
- * Type describing upload item.
13
- */
14
- export type UploadItem = {
15
- readonly id: string;
16
- readonly fileName: string;
17
- readonly fileSize: number;
18
- readonly status: UploadStatus;
19
- readonly progress: number;
20
- readonly loadedBytes: number;
21
- readonly totalBytes: number;
22
- readonly startedAt: number | null;
23
- readonly completedAt: number | null;
24
- readonly errorMessage?: string;
25
- };
26
- /**
27
- * Type describing upload stats.
28
- */
29
- export type UploadStats = {
30
- readonly totalFiles: number;
31
- readonly queuedFiles: number;
32
- readonly uploadingFiles: number;
33
- readonly pausedFiles: number;
34
- readonly failedFiles: number;
35
- readonly completedFiles: number;
36
- readonly totalBytes: number;
37
- readonly uploadedBytes: number;
38
- readonly progress: number;
39
- readonly elapsedMs: number;
40
- readonly speedBytesPerSecond: number;
41
- };
42
- /**
43
- * Type describing book editor monaco upload progress callback.
44
- */
45
- type BookEditorMonacoUploadProgressCallback = (progress: number, stats?: {
46
- loadedBytes: number;
47
- totalBytes: number;
48
- }) => void;
49
- /**
50
- * Options for book editor monaco upload.
51
- */
52
- type BookEditorMonacoUploadOptions = {
53
- readonly onProgress?: BookEditorMonacoUploadProgressCallback;
54
- readonly abortSignal?: AbortSignal;
55
- };
56
- /**
57
- * Type describing book editor monaco on file upload.
58
- */
59
- type BookEditorMonacoOnFileUpload = (file: File, options?: BookEditorMonacoUploadOptions | BookEditorMonacoUploadProgressCallback) => Promisable<string>;
60
8
  /**
61
9
  * Props for use book editor monaco uploads.
62
10
  */
@@ -71,11 +19,10 @@ type UseBookEditorMonacoUploadsProps = {
71
19
  * @private function of BookEditorMonaco
72
20
  */
73
21
  export declare function useBookEditorMonacoUploads({ editor, monaco, onFileUpload }: UseBookEditorMonacoUploadsProps): {
74
- activeUploadItems: UploadItem[];
75
- uploadItems: UploadItem[];
76
- uploadStats: UploadStats;
22
+ activeUploadItems: import("./useBookEditorMonacoUploads/bookEditorMonacoUploadTypes").UploadItem[];
23
+ uploadItems: import("./useBookEditorMonacoUploads/bookEditorMonacoUploadTypes").UploadItem[];
24
+ uploadStats: import("./useBookEditorMonacoUploads/bookEditorMonacoUploadTypes").UploadStats;
77
25
  handleFiles: (files: File[]) => Promise<void>;
78
26
  pauseUpload: (uploadId: string) => void;
79
27
  resumeUpload: (uploadId: string) => void;
80
28
  };
81
- export {};
@@ -13,6 +13,11 @@ export type ChatCitationModalProps = {
13
13
  participants: ReadonlyArray<ChatParticipant>;
14
14
  resolveCitationLabel?: CitationLabelResolver;
15
15
  soundSystem?: ChatSoundSystem;
16
+ /**
17
+ * Optional agent identifier (name or permanent id) scoping the live browser fallback
18
+ * to the agent's persistent server-side browser profile.
19
+ */
20
+ agentIdentifier?: string;
16
21
  onClose: () => void;
17
22
  };
18
23
  /**
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { MouseEventHandler } from 'react';
2
+ /**
3
+ * Star values available in the chat feedback UI.
4
+ *
5
+ * @private constant of `<Chat/>`
6
+ */
7
+ export declare const CHAT_FEEDBACK_STAR_RATINGS: readonly [1, 2, 3, 4, 5];
8
+ /**
9
+ * Props for the shared chat feedback star icon.
10
+ *
11
+ * @private type of `<Chat/>`
12
+ */
13
+ type ChatFeedbackStarProps = {
14
+ readonly isActive: boolean;
15
+ readonly inactiveColor: string;
16
+ readonly className?: string;
17
+ readonly onClick?: MouseEventHandler<HTMLSpanElement>;
18
+ readonly onMouseEnter?: MouseEventHandler<HTMLSpanElement>;
19
+ readonly onMouseLeave?: MouseEventHandler<HTMLSpanElement>;
20
+ };
21
+ /**
22
+ * Resolves the inactive color for stars in the feedback controls.
23
+ *
24
+ * @param mode Current chat color mode.
25
+ * @param tone Visual weight for the inactive star.
26
+ * @returns Hex color for an inactive star.
27
+ *
28
+ * @private function of `<Chat/>`
29
+ */
30
+ export declare function resolveChatFeedbackStarInactiveColor(mode: 'LIGHT' | 'DARK', tone?: 'subtle' | 'muted'): "#888" | "#666" | "#ccc" | "#555";
31
+ /**
32
+ * Renders one CSS-colored feedback star.
33
+ *
34
+ * @private component of `<Chat/>`
35
+ */
36
+ export declare function ChatFeedbackStar({ isActive, inactiveColor, className, onClick, onMouseEnter, onMouseLeave, }: ChatFeedbackStarProps): import("react/jsx-runtime").JSX.Element;
37
+ export {};
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ import type { ChatMessage } from '../types/ChatMessage';
3
+ /**
4
+ * One attachment payload displayed by the chat image preview modal.
5
+ *
6
+ * @private type of `<ChatImageAttachmentModal/>`
7
+ */
8
+ type ChatImageAttachment = NonNullable<ChatMessage['attachments']>[number];
9
+ /**
10
+ * Props for the chat image attachment preview modal.
11
+ *
12
+ * @private props of `<ChatImageAttachmentModal/>`
13
+ */
14
+ type ChatImageAttachmentModalProps = {
15
+ readonly attachment: ChatImageAttachment | null;
16
+ readonly mode?: 'LIGHT' | 'DARK';
17
+ readonly onClose: () => void;
18
+ };
19
+ /**
20
+ * Modal that previews an image attachment without leaving the chat surface.
21
+ *
22
+ * @private component of `<Chat/>`
23
+ */
24
+ export declare function ChatImageAttachmentModal({ attachment, mode, onClose }: ChatImageAttachmentModalProps): import("react").ReactPortal | null;
25
+ export {};
@@ -4,6 +4,7 @@ import type { WithTake } from '../../../utils/take/interfaces/ITakeChain';
4
4
  import type { ChatMessage } from '../types/ChatMessage';
5
5
  import type { ChatParticipant } from '../types/ChatParticipant';
6
6
  import type { ChatProps, ChatSoundSystem } from './ChatProps';
7
+ import type { ChatComposerDraft } from './useChatInputAreaComposer';
7
8
  /**
8
9
  * Wrapper for consistent button-click sound handling.
9
10
  *
@@ -22,6 +23,7 @@ export type ChatInputAreaProps = {
22
23
  speechRecognition?: ChatProps['speechRecognition'];
23
24
  speechRecognitionLanguage?: ChatProps['speechRecognitionLanguage'];
24
25
  defaultMessage?: string;
26
+ draftMessage?: ChatComposerDraft;
25
27
  replyingToMessage?: ChatMessage | null;
26
28
  onCancelReply?: ChatProps['onCancelReply'];
27
29
  enterBehavior?: ChatProps['enterBehavior'];
@@ -36,6 +38,7 @@ export type ChatInputAreaProps = {
36
38
  onButtonClick: ChatInputButtonClickHandler;
37
39
  chatInputClassName?: string;
38
40
  chatUiTranslations?: ChatProps['chatUiTranslations'];
41
+ mode?: 'LIGHT' | 'DARK';
39
42
  };
40
43
  /**
41
44
  * Renders the chat input area with text, file upload, and voice controls.
@@ -0,0 +1,27 @@
1
+ import { type CSSProperties } from 'react';
2
+ import type { ChatMessage } from '../types/ChatMessage';
3
+ /**
4
+ * One uploaded file attached to a chat message.
5
+ *
6
+ * @private type of `<Chat/>`
7
+ */
8
+ export type ChatMessageAttachment = NonNullable<ChatMessage['attachments']>[number];
9
+ /**
10
+ * Props accepted by the shared attachment chip list.
11
+ *
12
+ * @private props of `<Chat/>`
13
+ */
14
+ type ChatMessageAttachmentsProps = {
15
+ readonly attachments: ReadonlyArray<ChatMessageAttachment>;
16
+ readonly mode: 'LIGHT' | 'DARK';
17
+ readonly className?: string;
18
+ readonly style?: CSSProperties;
19
+ readonly onRemoveAttachment?: (attachment: ChatMessageAttachment, attachmentIndex: number) => void;
20
+ };
21
+ /**
22
+ * Renders chat attachment chips and the shared image preview modal.
23
+ *
24
+ * @private component of `<Chat/>`
25
+ */
26
+ export declare function ChatMessageAttachments({ attachments, mode, className, style, onRemoveAttachment, }: ChatMessageAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
27
+ export {};
@@ -9,7 +9,7 @@ import type { ChatProps } from './ChatProps';
9
9
  *
10
10
  * @private props for internal subcomponent
11
11
  */
12
- type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'onQuickMessageButton' | 'participants'> & {
12
+ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'onQuickMessageButton' | 'onQuickMessageDraftButton' | 'participants'> & {
13
13
  message: ChatMessage;
14
14
  participant: ChatParticipant | undefined;
15
15
  isLastMessage: boolean;
@@ -76,6 +76,10 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'on
76
76
  * Optional cached metadata keyed by TEAM tool names to enrich tool call chips.
77
77
  */
78
78
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
79
+ /**
80
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
81
+ */
82
+ markdownInlineReferences?: ChatProps['markdownInlineReferences'];
79
83
  /**
80
84
  * Controls whether assistant replies render as bubbles or article blocks.
81
85
  */
@@ -44,12 +44,17 @@ export type ChatMessageListProps = {
44
44
  onMessage?: (messageContent: string) => Promisable<void>;
45
45
  onActionButton?: ChatProps['onActionButton'];
46
46
  onQuickMessageButton?: ChatProps['onQuickMessageButton'];
47
+ onQuickMessageDraftButton?: ChatProps['onQuickMessageDraftButton'];
47
48
  onReplyToMessage?: ChatProps['onReplyToMessage'];
48
49
  canReplyToMessage?: ChatProps['canReplyToMessage'];
49
50
  onCreateAgent?: (bookContent: string) => void;
50
51
  toolTitles?: Record<string, string>;
51
52
  teammates?: ChatProps['teammates'];
52
53
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
54
+ /**
55
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
56
+ */
57
+ markdownInlineReferences?: ChatProps['markdownInlineReferences'];
53
58
  visualMode?: ChatProps['visualMode'];
54
59
  onToolCallClick?: (toolCall: NonNullable<ChatMessage['toolCalls']>[number]) => void;
55
60
  onCitationClick?: (citation: ParsedCitation) => void;
@@ -1,4 +1,5 @@
1
1
  import type { ChatMessage } from '../types/ChatMessage';
2
+ import type { MarkdownInlineReference } from '../utils/renderMarkdown';
2
3
  import type { ChatMessageContentSegment } from '../utils/splitMessageContentIntoSegments';
3
4
  import type { StreamingFeaturePlaceholderKind } from './StreamingFeaturePlaceholder';
4
5
  /**
@@ -23,6 +24,10 @@ export type ChatMessageRichContentProps = {
23
24
  * Optional callback for creating a new agent from a book code block.
24
25
  */
25
26
  readonly onCreateAgent?: (bookContent: string) => void;
27
+ /**
28
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
29
+ */
30
+ readonly markdownInlineReferences?: ReadonlyArray<MarkdownInlineReference>;
26
31
  /**
27
32
  * Resolved theme used by nested code blocks and editors.
28
33
  */
@@ -10,6 +10,7 @@ import type { ChatMessage } from '../types/ChatMessage';
10
10
  import type { ChatParticipant } from '../types/ChatParticipant';
11
11
  import type { CitationLabelResolver } from '../types/CitationLabelResolver';
12
12
  import type { ChatSaveFormatHandlerMap } from '../save/_common/ChatSaveFormatHandler';
13
+ import type { MarkdownInlineReference } from '../utils/renderMarkdown';
13
14
  /**
14
15
  * Response data returned by the optional `onFeedback` handler.
15
16
  *
@@ -440,6 +441,14 @@ export type ChatProps = {
440
441
  * The title of the chat
441
442
  */
442
443
  readonly title?: string;
444
+ /**
445
+ * Optional identifier (name or permanent id) of the agent owning this chat.
446
+ *
447
+ * When set, server-side live browser previews opened from the chat (for example from
448
+ * knowledge citation chips) run inside the agent's persistent browser profile, so logins
449
+ * performed by the user in the live session are saved for the agent's future browsing.
450
+ */
451
+ readonly agentIdentifier?: string;
443
452
  /**
444
453
  * Messages to render - they are rendered as they are
445
454
  */
@@ -474,6 +483,14 @@ export type ChatProps = {
474
483
  * When not provided, quick message buttons fall back to `onMessage`.
475
484
  */
476
485
  onQuickMessageButton?(messageContent: string): Promisable<void>;
486
+ /**
487
+ * Called when user clicks a quick draft-message button parsed from message markdown.
488
+ *
489
+ * Unlike `onQuickMessageButton`, this prefills the composer with an editable draft
490
+ * instead of sending the message. When not provided, `<Chat/>` prefills its own
491
+ * composer so the draft can be edited before sending.
492
+ */
493
+ onQuickMessageDraftButton?(messageDraftContent: string): Promisable<void>;
477
494
  /**
478
495
  * Optional callback fired when the user starts replying to one existing message.
479
496
  */
@@ -677,6 +694,10 @@ export type ChatProps = {
677
694
  * Optional cached agent metadata keyed by TEAM tool names to improve chip rendering.
678
695
  */
679
696
  readonly teamAgentProfiles?: Record<string, AgentChipData>;
697
+ /**
698
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
699
+ */
700
+ readonly markdownInlineReferences?: ReadonlyArray<MarkdownInlineReference>;
680
701
  /**
681
702
  * Optional callback to create a new agent from the template.
682
703
  * If provided, renders the [Create Agent] button for book code blocks.
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -6,10 +6,33 @@
6
6
  export type CitationIframePreviewProps = {
7
7
  src: string;
8
8
  title: string;
9
+ /**
10
+ * Optional agent identifier (name or permanent id) scoping the live browser fallback
11
+ * to the agent's persistent server-side browser profile.
12
+ */
13
+ agentIdentifier?: string;
14
+ /**
15
+ * Optional close handler passed to the live browser toolbar when the preview fills a modal.
16
+ */
17
+ onClose?: () => void;
18
+ /**
19
+ * Reports whether the URL is embedded directly or shown through the live browser fallback.
20
+ */
21
+ onStatusChange?: (status: CitationIframePreviewStatus) => void;
22
+ /**
23
+ * Initial preview status used when the parent already knows the resolved mode.
24
+ */
25
+ initialStatus?: CitationIframePreviewStatus;
9
26
  };
27
+ /**
28
+ * Internal status of the iframe embed check.
29
+ *
30
+ * @private type of `<CitationIframePreview/>`
31
+ */
32
+ export type CitationIframePreviewStatus = 'loading' | 'embed' | 'browser-stream';
10
33
  /**
11
34
  * Renders a citation URL preview as an iframe when the target page allows embedding,
12
- * or falls back to a live server-side browser stream with an "Open in new tab" link
35
+ * or falls back to an interactive live server-side browser session (`<LiveBrowserPreview/>`)
13
36
  * when it does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
14
37
  *
15
38
  * Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
@@ -17,4 +40,4 @@ export type CitationIframePreviewProps = {
17
40
  *
18
41
  * @private component of `<ChatCitationModal/>`
19
42
  */
20
- export declare function CitationIframePreview({ src, title }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare function CitationIframePreview({ src, title, agentIdentifier, onClose, onStatusChange, initialStatus, }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Props of the live browser preview.
3
+ *
4
+ * @private component of `<ChatCitationModal/>`
5
+ */
6
+ export type LiveBrowserPreviewProps = {
7
+ /**
8
+ * URL opened in the remote headless browser.
9
+ */
10
+ readonly src: string;
11
+ /**
12
+ * Human-readable title of the previewed source.
13
+ */
14
+ readonly title: string;
15
+ /**
16
+ * Optional agent identifier (name or permanent id).
17
+ *
18
+ * When set, the live session runs inside the agent's persistent server-side browser profile,
19
+ * so actions like logging into a website are saved for the agent's future browsing.
20
+ */
21
+ readonly agentIdentifier?: string;
22
+ /**
23
+ * Optional close handler for modal-hosted previews.
24
+ */
25
+ readonly onClose?: () => void;
26
+ };
27
+ /**
28
+ * Remote-desktop-like live preview of one server-side headless browser session.
29
+ *
30
+ * Renders the MJPEG stream of the Agents Server page-preview route and forwards natural
31
+ * browser interactions to it — hovering, clicking, double-clicking, dragging and text
32
+ * selection (raw pointer presses with click counts), scrolling, typing and keyboard
33
+ * shortcuts. A browser-like toolbar adds history navigation, an editable address bar,
34
+ * local zoom (Ctrl+wheel or buttons), and a full screen mode. The remote viewport follows
35
+ * the size of the preview area, so the page is always rendered at the size the user sees.
36
+ *
37
+ * @private component of `<ChatCitationModal/>`
38
+ */
39
+ export declare function LiveBrowserPreview({ src, title, agentIdentifier, onClose }: LiveBrowserPreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};