@promptbook/node 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 (412) hide show
  1. package/README.md +4 -3
  2. package/esm/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
  3. package/esm/index.es.js +1975 -1267
  4. package/esm/index.es.js.map +1 -1
  5. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
  6. package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
  7. package/esm/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
  8. package/esm/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -0
  9. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
  10. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
  11. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
  12. package/esm/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
  13. package/esm/src/_packages/components.index.d.ts +8 -0
  14. package/esm/src/_packages/core.index.d.ts +4 -0
  15. package/esm/src/_packages/types.index.d.ts +14 -2
  16. package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  17. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  18. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  19. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  20. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  21. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  22. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  23. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  24. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  25. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  26. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  27. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  28. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  29. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  30. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  31. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  32. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  33. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  34. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  35. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  36. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  37. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  38. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  39. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  40. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  41. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  42. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  43. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  44. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  45. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  46. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  47. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  48. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  49. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  51. package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  52. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  53. package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  54. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  55. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  56. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  57. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  58. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  59. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  60. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  61. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  62. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  63. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  64. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  65. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  66. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  67. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  68. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  69. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  70. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  71. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  72. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  73. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  74. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  75. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  76. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  77. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  78. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  79. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  80. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  81. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  82. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  83. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  84. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  85. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  86. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  87. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  88. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  89. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  90. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  91. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  92. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  93. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  94. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  95. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  96. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  97. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  98. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  99. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  100. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  101. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  102. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  103. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  104. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  105. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  106. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  107. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  108. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  109. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  110. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  111. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  112. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  113. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  114. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  115. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  116. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  117. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  118. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  119. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  120. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  121. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  122. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  123. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  124. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  125. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  126. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  127. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  128. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  129. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  130. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  131. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  132. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  133. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  134. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  135. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  136. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  137. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  138. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  139. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  140. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  141. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  142. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  143. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  144. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  145. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  146. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  147. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  148. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  149. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  150. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  151. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  152. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  153. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  154. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  155. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  156. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  157. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  158. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  159. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  160. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  161. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  162. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  163. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  164. package/esm/src/commitments/META/META.d.ts +4 -2
  165. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  166. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  167. package/esm/src/commitments/index.d.ts +2 -1
  168. package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  169. package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  170. package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  171. package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  172. package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  173. package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  174. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  175. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  176. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  177. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  178. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  179. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  180. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  181. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  182. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  183. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  184. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  185. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  186. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  187. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  188. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  189. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  190. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  191. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  192. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  193. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  194. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  195. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  196. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  197. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  198. package/esm/src/utils/color/Color.d.ts +1 -1
  199. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  200. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  201. package/esm/src/version.d.ts +1 -1
  202. package/package.json +2 -2
  203. package/umd/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
  204. package/umd/index.umd.js +1979 -1271
  205. package/umd/index.umd.js.map +1 -1
  206. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
  207. package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
  208. package/umd/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
  209. package/umd/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -0
  210. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
  211. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
  212. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
  213. package/umd/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
  214. package/umd/src/_packages/components.index.d.ts +8 -0
  215. package/umd/src/_packages/core.index.d.ts +4 -0
  216. package/umd/src/_packages/types.index.d.ts +14 -2
  217. package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  218. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  219. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  220. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  221. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  222. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  223. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  224. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  225. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  226. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  227. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  228. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  229. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  230. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  231. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  232. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  233. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  234. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  235. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  236. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  237. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  238. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  239. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  240. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  241. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  242. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  243. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  244. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  245. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  246. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  247. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  248. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  249. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  250. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  251. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  252. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  253. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  254. package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  255. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  256. package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  257. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  258. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  259. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  260. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  261. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  262. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  263. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  264. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  265. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  266. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  267. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  268. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  269. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  270. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  271. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  272. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  273. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  274. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  275. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  276. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  277. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  278. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  279. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  280. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  281. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  282. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  283. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  284. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  285. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  286. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  287. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  288. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  289. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  290. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  291. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  292. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  293. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  294. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  295. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  296. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  297. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  298. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  299. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  300. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  301. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  302. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  303. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  304. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  305. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  306. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  307. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  308. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  309. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  310. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  311. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  312. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  313. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  314. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  315. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  316. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  317. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  318. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  319. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  320. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  321. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  322. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  323. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  324. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  325. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  326. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  327. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  328. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  329. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  330. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  331. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  332. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  333. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  334. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  335. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  336. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  337. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  338. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  339. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  340. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  341. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  342. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  343. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  344. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  345. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  346. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  347. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  348. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  349. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  350. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  351. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  352. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  353. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  354. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  355. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  356. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  357. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  358. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  359. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  360. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  361. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  362. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  363. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  364. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  365. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  366. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  367. package/umd/src/commitments/META/META.d.ts +4 -2
  368. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  369. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  370. package/umd/src/commitments/index.d.ts +2 -1
  371. package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  372. package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  373. package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  374. package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  375. package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  376. package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  377. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  378. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  379. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  380. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  381. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  382. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  383. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  384. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  385. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  386. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  387. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  388. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  389. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  390. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  391. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  392. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  393. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  394. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  395. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  396. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  397. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  398. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  399. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  400. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  401. package/umd/src/utils/color/Color.d.ts +1 -1
  402. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  403. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  404. package/umd/src/version.d.ts +1 -1
  405. package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
  406. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  407. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  408. package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
  409. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  410. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  411. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  412. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -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 {};
@@ -0,0 +1,71 @@
1
+ import type { PagePreviewNavigationAction } from './PagePreviewInputEvent';
2
+ /**
3
+ * Props of the live browser preview toolbar.
4
+ *
5
+ * @private component of `<LiveBrowserPreview/>`
6
+ */
7
+ export type LiveBrowserPreviewToolbarProps = {
8
+ /**
9
+ * URL shown in the address input (either the user's draft or the remote page URL).
10
+ */
11
+ readonly displayedUrl: string;
12
+ /**
13
+ * URL of the remote page used by the "Open in new tab" link.
14
+ */
15
+ readonly externalUrl: string;
16
+ /**
17
+ * Whether the remote browser can navigate back, `null` when unknown.
18
+ */
19
+ readonly canGoBack: boolean | null;
20
+ /**
21
+ * Whether the remote browser can navigate forward, `null` when unknown.
22
+ */
23
+ readonly canGoForward: boolean | null;
24
+ /**
25
+ * Current local zoom level (`1` = 100%).
26
+ */
27
+ readonly zoomLevel: number;
28
+ /**
29
+ * Whether the preview is currently in full screen mode.
30
+ */
31
+ readonly isFullscreen: boolean;
32
+ /**
33
+ * Sends one history navigation to the remote browser.
34
+ */
35
+ readonly onNavigate: (action: PagePreviewNavigationAction) => void;
36
+ /**
37
+ * Updates the address-input draft, `null` restores the live remote URL.
38
+ */
39
+ readonly onUrlDraftChange: (draft: string | null) => void;
40
+ /**
41
+ * Navigates the remote browser to the submitted address.
42
+ */
43
+ readonly onUrlSubmit: (url: string) => void;
44
+ /**
45
+ * Zooms the local preview in.
46
+ */
47
+ readonly onZoomIn: () => void;
48
+ /**
49
+ * Zooms the local preview out.
50
+ */
51
+ readonly onZoomOut: () => void;
52
+ /**
53
+ * Resets the local preview zoom to 100%.
54
+ */
55
+ readonly onZoomReset: () => void;
56
+ /**
57
+ * Toggles the full screen mode of the preview.
58
+ */
59
+ readonly onToggleFullscreen: () => void;
60
+ /**
61
+ * Optional close handler shown when the preview fills a modal dialog.
62
+ */
63
+ readonly onClose?: () => void;
64
+ };
65
+ /**
66
+ * Browser-like toolbar of the live page preview with history navigation, an editable
67
+ * address bar, local zoom controls, full screen toggle, and an "Open in new tab" link.
68
+ *
69
+ * @private component of `<LiveBrowserPreview/>`
70
+ */
71
+ export declare function LiveBrowserPreviewToolbar(props: LiveBrowserPreviewToolbarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Pointer button forwarded from the client to the live page-preview browser.
3
+ *
4
+ * @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
5
+ */
6
+ export type PagePreviewPointerButton = 'left' | 'middle' | 'right';
7
+ /**
8
+ * Browser-history action forwarded from the preview toolbar.
9
+ *
10
+ * @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
11
+ */
12
+ export type PagePreviewNavigationAction = 'back' | 'forward' | 'reload';
13
+ /**
14
+ * One remote-control event forwarded from the live page-preview client to the headless browser.
15
+ *
16
+ * Pointer coordinates are expressed as ratios of the streamed viewport (`0` to `1`), so the client
17
+ * does not need to know the exact remote viewport size.
18
+ *
19
+ * - `move` — hover / pointer movement
20
+ * - `down` / `up` — raw pointer press and release (drag, text selection, double-click via `clickCount`)
21
+ * - `click` — legacy single click kept for backward compatibility with older preview clients
22
+ * - `wheel` — scrolling
23
+ * - `keydown` / `keyup` — keyboard typing and shortcuts, `key` uses `KeyboardEvent.key` values
24
+ * - `resize` — the client preview area changed, the remote viewport should follow
25
+ * - `navigate` — browser-history navigation from the preview toolbar
26
+ * - `goto` — navigate to one absolute HTTP(S) URL from the preview toolbar
27
+ *
28
+ * @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
29
+ */
30
+ export type PagePreviewInputEvent = {
31
+ readonly type: 'move';
32
+ readonly xRatio: number;
33
+ readonly yRatio: number;
34
+ } | {
35
+ readonly type: 'down';
36
+ readonly xRatio: number;
37
+ readonly yRatio: number;
38
+ readonly button: PagePreviewPointerButton;
39
+ readonly clickCount: number;
40
+ } | {
41
+ readonly type: 'up';
42
+ readonly xRatio: number;
43
+ readonly yRatio: number;
44
+ readonly button: PagePreviewPointerButton;
45
+ readonly clickCount: number;
46
+ } | {
47
+ readonly type: 'click';
48
+ readonly xRatio: number;
49
+ readonly yRatio: number;
50
+ } | {
51
+ readonly type: 'wheel';
52
+ readonly xRatio: number;
53
+ readonly yRatio: number;
54
+ readonly deltaX: number;
55
+ readonly deltaY: number;
56
+ } | {
57
+ readonly type: 'keydown';
58
+ readonly key: string;
59
+ } | {
60
+ readonly type: 'keyup';
61
+ readonly key: string;
62
+ } | {
63
+ readonly type: 'resize';
64
+ readonly width: number;
65
+ readonly height: number;
66
+ } | {
67
+ readonly type: 'navigate';
68
+ readonly action: PagePreviewNavigationAction;
69
+ } | {
70
+ readonly type: 'goto';
71
+ readonly url: string;
72
+ };
@@ -0,0 +1,64 @@
1
+ import type { PagePreviewInputEvent } from './PagePreviewInputEvent';
2
+ import type { PagePreviewSessionState } from './PagePreviewSessionState';
3
+ /**
4
+ * Options of one `PagePreviewInputQueue`.
5
+ *
6
+ * @private type of `PagePreviewInputQueue`
7
+ */
8
+ export type PagePreviewInputQueueOptions = {
9
+ /**
10
+ * Page-preview browser session id the events belong to.
11
+ */
12
+ readonly sessionId: string;
13
+ /**
14
+ * Endpoint receiving the input events, defaults to `/api/page-preview/input`.
15
+ */
16
+ readonly endpointUrl?: string;
17
+ /**
18
+ * Called with the fresh session navigation state returned by the server after each delivered event.
19
+ */
20
+ readonly onSessionState?: (state: PagePreviewSessionState) => void;
21
+ };
22
+ /**
23
+ * Delivers remote-control events of one live page-preview browser session to the Agents Server.
24
+ *
25
+ * Events are sent strictly one after another so the remote browser receives them in order
26
+ * (crucial for drags and text selection). While one request is in flight, bursty events are
27
+ * coalesced: consecutive `move` events collapse into the latest one, consecutive `wheel`
28
+ * events accumulate their deltas, and only the latest `resize` is kept.
29
+ *
30
+ * @private utility of `<LiveBrowserPreview/>`
31
+ */
32
+ export declare class PagePreviewInputQueue {
33
+ private readonly options;
34
+ private readonly pendingEvents;
35
+ private isFlushing;
36
+ private isDisposed;
37
+ constructor(options: PagePreviewInputQueueOptions);
38
+ /**
39
+ * Enqueues one input event for ordered delivery.
40
+ *
41
+ * @param inputEvent - Event to forward to the remote browser.
42
+ */
43
+ send(inputEvent: PagePreviewInputEvent): void;
44
+ /**
45
+ * Stops the queue and drops all undelivered events.
46
+ */
47
+ dispose(): void;
48
+ /**
49
+ * Adds one event to the queue, merging it with the trailing event when possible.
50
+ *
51
+ * @param inputEvent - Event to enqueue.
52
+ */
53
+ private coalesceIntoPendingEvents;
54
+ /**
55
+ * Delivers pending events one by one until the queue is drained.
56
+ */
57
+ private flushPendingEvents;
58
+ /**
59
+ * Sends one event to the server, surfacing the returned session state.
60
+ *
61
+ * @param inputEvent - Event to deliver.
62
+ */
63
+ private deliverInputEvent;
64
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Navigation state of one live page-preview browser session, shown in the preview toolbar.
3
+ *
4
+ * `canGoBack` / `canGoForward` are `null` when the server cannot inspect the remote history
5
+ * (for example when the CDP session is unavailable) — the toolbar keeps its buttons enabled then.
6
+ *
7
+ * @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
8
+ */
9
+ export type PagePreviewSessionState = {
10
+ readonly url: string;
11
+ readonly title: string | null;
12
+ readonly canGoBack: boolean | null;
13
+ readonly canGoForward: boolean | null;
14
+ };