@promptbook/documents 0.113.0-8 → 0.113.0-9

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 (221) hide show
  1. package/esm/index.es.js +459 -453
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/src/_packages/types.index.d.ts +2 -2
  4. package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  5. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  6. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  7. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  8. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  9. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  10. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  11. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  12. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  13. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  14. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  15. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  16. package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  17. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  18. package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  19. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
  20. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
  21. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
  22. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  23. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  24. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  25. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  26. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  27. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  28. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  29. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  30. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  31. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  32. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  33. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  34. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  35. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  36. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  37. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  38. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  39. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  40. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  41. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  42. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  43. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  44. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  45. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  46. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  47. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  48. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  49. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  50. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  51. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  52. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  53. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  54. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  55. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  56. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  57. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  58. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  59. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  61. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
  62. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  63. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  64. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  65. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  66. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  67. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  68. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  69. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  70. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  71. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  72. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  73. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  74. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  75. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  76. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  77. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  78. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  79. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  80. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  81. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  82. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  83. package/esm/src/commitments/META/META.d.ts +2 -2
  84. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  85. package/esm/src/commitments/index.d.ts +1 -1
  86. package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  87. package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  88. package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  89. package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  90. package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  91. package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  92. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  93. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  94. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  95. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  96. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  97. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  98. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  99. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  100. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  101. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  102. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  103. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  104. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  105. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  106. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  107. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  108. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  109. package/esm/src/utils/color/Color.d.ts +1 -1
  110. package/esm/src/version.d.ts +1 -1
  111. package/package.json +2 -2
  112. package/umd/index.umd.js +459 -453
  113. package/umd/index.umd.js.map +1 -1
  114. package/umd/src/_packages/types.index.d.ts +2 -2
  115. package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  116. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  117. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  118. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  119. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  120. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  121. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  122. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  123. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  124. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  125. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  126. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  127. package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  128. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  129. package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  130. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
  131. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
  132. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
  133. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  134. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  135. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  136. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  137. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  138. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  139. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  140. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  141. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  142. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  143. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  144. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  145. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  146. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  147. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  148. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  149. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  150. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  151. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  152. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  153. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  154. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  155. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  156. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  157. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  158. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  159. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  160. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  161. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  162. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  163. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  164. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  165. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  166. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  167. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  168. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  169. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  170. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  171. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  172. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
  173. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  174. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  175. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  176. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  177. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  178. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  179. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  180. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  181. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  182. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  183. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  184. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  185. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  186. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  187. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  188. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  189. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  190. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  191. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  192. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  193. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  194. package/umd/src/commitments/META/META.d.ts +2 -2
  195. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  196. package/umd/src/commitments/index.d.ts +1 -1
  197. package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  198. package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  199. package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  200. package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  201. package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  202. package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  203. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  204. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  205. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  206. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  207. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  208. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  209. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  210. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  211. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  212. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  213. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  214. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  215. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  216. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  217. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  218. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  219. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  220. package/umd/src/utils/color/Color.d.ts +1 -1
  221. package/umd/src/version.d.ts +1 -1
@@ -20,8 +20,8 @@ import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProf
20
20
  import type { BookEditorUploadProgressCallback } from '../book-components/BookEditor/BookEditor';
21
21
  import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
22
22
  import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
23
- import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads';
24
- import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads';
23
+ import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
24
+ import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
25
25
  import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
26
26
  import type { AgentChipData } from '../book-components/Chat/AgentChip/AgentChip';
27
27
  import type { AgentChipProps } from '../book-components/Chat/AgentChip/AgentChip';
@@ -1,6 +1,7 @@
1
1
  import type { AsciiArtColorDepth } from '../utils/ascii-art/convertImageDataToAsciiArt';
2
+ import type { ResolvedAvatarRenderDefinition } from './renderAvatarVisual';
2
3
  import type { AvatarDefinition } from './types/AvatarDefinition';
3
- import type { AvatarVisualId } from './types/AvatarVisualDefinition';
4
+ import type { AvatarSurfaceStyle, AvatarVisualId } from './types/AvatarVisualDefinition';
4
5
  /**
5
6
  * Default output width of the ASCII avatar in terminal character cells.
6
7
  *
@@ -30,6 +31,12 @@ export type RenderAvatarVisualAsciiArtOptions = {
30
31
  * Built-in avatar visual to render, the same one used on the website.
31
32
  */
32
33
  readonly visualId: AvatarVisualId;
34
+ /**
35
+ * Surface used to composite the avatar before ASCII conversion.
36
+ *
37
+ * @default 'framed'
38
+ */
39
+ readonly surface?: AvatarSurfaceStyle;
33
40
  /**
34
41
  * Output width in terminal character cells.
35
42
  *
@@ -54,6 +61,22 @@ export type RenderAvatarVisualAsciiArtOptions = {
54
61
  * @default `STATIC_AVATAR_ASCII_ART_FRAME_TIME_MS`
55
62
  */
56
63
  readonly timeMs?: number;
64
+ /**
65
+ * Source canvas width in CSS pixels before ASCII conversion.
66
+ *
67
+ * @default `DEFAULT_AVATAR_SIZE`
68
+ */
69
+ readonly canvasWidth?: number;
70
+ /**
71
+ * Source canvas height in CSS pixels before ASCII conversion.
72
+ *
73
+ * @default `DEFAULT_AVATAR_SIZE`
74
+ */
75
+ readonly canvasHeight?: number;
76
+ /**
77
+ * Optional stable render data reused across frames.
78
+ */
79
+ readonly resolvedAvatarRenderDefinition?: ResolvedAvatarRenderDefinition;
57
80
  /**
58
81
  * Platform-specific canvas factory used to rasterize the visual.
59
82
  */
@@ -1,5 +1,5 @@
1
1
  import type { AvatarPalette } from '../types/AvatarVisualDefinition';
2
- import { type Point3D, type ProjectedPoint } from './avatar3dProjectionShared';
2
+ import type { Point3D, ProjectedPoint } from './avatar3dProjectionShared';
3
3
  /**
4
4
  * Eye-style knobs shared by the proper-3D octopus visuals.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { UploadItem, UploadStats } from './useBookEditorMonacoUploads';
1
+ import type { UploadItem, UploadStats } from './useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
2
2
  /**
3
3
  * Props for book editor monaco upload panel.
4
4
  */
@@ -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 {};
@@ -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;
@@ -44,6 +44,7 @@ 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;
@@ -474,6 +474,14 @@ export type ChatProps = {
474
474
  * When not provided, quick message buttons fall back to `onMessage`.
475
475
  */
476
476
  onQuickMessageButton?(messageContent: string): Promisable<void>;
477
+ /**
478
+ * Called when user clicks a quick draft-message button parsed from message markdown.
479
+ *
480
+ * Unlike `onQuickMessageButton`, this prefills the composer with an editable draft
481
+ * instead of sending the message. When not provided, `<Chat/>` prefills its own
482
+ * composer so the draft can be edited before sending.
483
+ */
484
+ onQuickMessageDraftButton?(messageDraftContent: string): Promisable<void>;
477
485
  /**
478
486
  * Optional callback fired when the user starts replying to one existing message.
479
487
  */
@@ -2,6 +2,17 @@ import { type ChangeEvent, type KeyboardEvent as ReactKeyboardEvent, type Mutabl
2
2
  import type { ChatMessage } from '../types/ChatMessage';
3
3
  import type { ChatInputUploadedFile } from './ChatInputUploadedFile';
4
4
  import type { ChatProps, ChatSoundSystem } from './ChatProps';
5
+ /**
6
+ * One programmatic request to replace the composer content with an editable draft.
7
+ *
8
+ * A fresh object identity is used for every request so repeated draft insertions
9
+ * (even with identical text) re-apply to the composer.
10
+ *
11
+ * @private function of `<ChatInputArea/>`
12
+ */
13
+ export type ChatComposerDraft = {
14
+ readonly content: string;
15
+ };
5
16
  /**
6
17
  * Props for `useChatInputAreaComposer`.
7
18
  *
@@ -11,6 +22,7 @@ type UseChatInputAreaComposerProps = {
11
22
  readonly onMessage?: ChatProps['onMessage'];
12
23
  readonly onChange?: ChatProps['onChange'];
13
24
  readonly defaultMessage?: string;
25
+ readonly draftMessage?: ChatComposerDraft;
14
26
  readonly enterBehavior?: ChatProps['enterBehavior'];
15
27
  readonly resolveEnterBehavior?: ChatProps['resolveEnterBehavior'];
16
28
  readonly isFocusedOnLoad?: boolean;
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -1,4 +1,4 @@
1
- import { type ToolCall } from '../../../types/ToolCall';
1
+ import type { ToolCall } from '../../../types/ToolCall';
2
2
  /**
3
3
  * Returns true when one tool call represents a user-facing action.
4
4
  *
@@ -8,6 +8,19 @@ export type MessageQuickButton = {
8
8
  text: string;
9
9
  message: string;
10
10
  };
11
+ /**
12
+ * Represents a quick draft-message button parsed from chat markdown.
13
+ *
14
+ * Unlike `MessageQuickButton`, clicking this button prefills the composer with an
15
+ * editable draft instead of sending the message immediately.
16
+ *
17
+ * @private internal helper type of `MessageButton`
18
+ */
19
+ export type MessageDraftQuickButton = {
20
+ type: 'messageDraft';
21
+ text: string;
22
+ messageDraft: string;
23
+ };
11
24
  /**
12
25
  * Represents a quick action button parsed from chat markdown.
13
26
  *
@@ -23,9 +36,10 @@ export type ActionQuickButton = {
23
36
  *
24
37
  * @public exported from `@promptbook/components`
25
38
  */
26
- export type MessageButton = MessageQuickButton | ActionQuickButton;
39
+ export type MessageButton = MessageQuickButton | MessageDraftQuickButton | ActionQuickButton;
27
40
  /**
28
- * Parses markdown quick buttons in the format `[Button Text](?message=...)` or `[Button Text](?action=...)`.
41
+ * Parses markdown quick buttons in the format `[Button Text](?message=...)`, `[Button Text](?messageDraft=...)`
42
+ * or `[Button Text](?action=...)`.
29
43
  * Returns both the content without supported quick buttons and the extracted button definitions.
30
44
  *
31
45
  * @param content The markdown content that may contain buttons
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Metadata file stored beside the production Next build output.
3
+ *
4
+ * @private internal constant of `buildAgentsServer`
5
+ */
6
+ export declare const AGENTS_SERVER_BUILD_CACHE_FILENAME = ".ptbk-agents-server-build-cache.json";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Version of the CLI-owned Agents Server build cache metadata.
3
+ *
4
+ * @private internal constant of `buildAgentsServer`
5
+ */
6
+ export declare const AGENTS_SERVER_BUILD_CACHE_VERSION = 1;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Next production build marker required before a cached build is reused.
3
+ *
4
+ * @private internal constant of `buildAgentsServer`
5
+ */
6
+ export declare const AGENTS_SERVER_NEXT_BUILD_ID_FILENAME = "BUILD_ID";
@@ -0,0 +1,10 @@
1
+ import { AGENTS_SERVER_BUILD_CACHE_VERSION } from './AGENTS_SERVER_BUILD_CACHE_VERSION';
2
+ /**
3
+ * Metadata persisted after one successful Agents Server production build.
4
+ *
5
+ * @private internal type of `buildAgentsServer`
6
+ */
7
+ export type AgentsServerBuildCache = {
8
+ readonly version: typeof AGENTS_SERVER_BUILD_CACHE_VERSION;
9
+ readonly sourceFingerprint: string;
10
+ };
@@ -0,0 +1,10 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Input paths required to validate or update the cached Agents Server build.
4
+ *
5
+ * @private internal type of `buildAgentsServer`
6
+ */
7
+ export type AgentsServerBuildCacheOptions = {
8
+ readonly appPath: string;
9
+ readonly environment?: NodeJS.ProcessEnv;
10
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Directory segment used for Node package installs.
3
+ *
4
+ * @private internal constant of `buildAgentsServer`
5
+ */
6
+ export declare const NODE_MODULES_DIRECTORY_NAME = "node_modules";