@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
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Viewport of one live page-preview browser session, in CSS pixels.
3
+ *
4
+ * @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
5
+ */
6
+ export type PagePreviewViewport = {
7
+ readonly width: number;
8
+ readonly height: number;
9
+ };
10
+ /**
11
+ * Smallest viewport accepted for one live page-preview browser session.
12
+ *
13
+ * @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
14
+ */
15
+ export declare const PAGE_PREVIEW_MIN_VIEWPORT: PagePreviewViewport;
16
+ /**
17
+ * Largest viewport accepted for one live page-preview browser session.
18
+ *
19
+ * @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
20
+ */
21
+ export declare const PAGE_PREVIEW_MAX_VIEWPORT: PagePreviewViewport;
22
+ /**
23
+ * Viewport used when the client did not measure its preview area yet.
24
+ *
25
+ * @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
26
+ */
27
+ export declare const PAGE_PREVIEW_DEFAULT_VIEWPORT: PagePreviewViewport;
28
+ /**
29
+ * Clamps one requested page-preview viewport into the supported bounds.
30
+ *
31
+ * @param width - Requested viewport width.
32
+ * @param height - Requested viewport height.
33
+ * @returns Rounded viewport within the supported bounds, or `null` when the values are not finite numbers.
34
+ *
35
+ * @private utility shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
36
+ */
37
+ export declare function clampPagePreviewViewport(width: unknown, height: unknown): PagePreviewViewport | null;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Prefix of every live page-preview browser session id.
3
+ *
4
+ * @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
5
+ */
6
+ export declare const PAGE_PREVIEW_SESSION_ID_PREFIX = "page-preview-";
7
+ /**
8
+ * Pattern accepted for client-created page-preview session identifiers.
9
+ *
10
+ * @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
11
+ */
12
+ export declare const PAGE_PREVIEW_SESSION_ID_PATTERN: RegExp;
13
+ /**
14
+ * Creates one client-side page-preview browser session id.
15
+ *
16
+ * @returns Session id accepted by the Agents Server page-preview routes.
17
+ *
18
+ * @private utility of `<LiveBrowserPreview/>`
19
+ */
20
+ export declare function createPagePreviewSessionId(): string;
@@ -0,0 +1,13 @@
1
+ import type { PagePreviewInputEvent } from './PagePreviewInputEvent';
2
+ /**
3
+ * Validates and normalizes one untrusted page-preview input payload into a typed input event.
4
+ *
5
+ * Note: This performs only structural validation shared by client and server — the Agents Server
6
+ * additionally re-checks `goto` URLs against private/internal targets before navigating.
7
+ *
8
+ * @param payload - Unknown JSON payload (usually the parsed request body).
9
+ * @returns Normalized input event or `null` when the payload is invalid.
10
+ *
11
+ * @private utility shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
12
+ */
13
+ export declare function normalizePagePreviewInputEvent(payload: unknown): PagePreviewInputEvent | null;
@@ -0,0 +1,8 @@
1
+ import type { id } from '../../../types/string_token';
2
+ import type { ChatMessage } from '../types/ChatMessage';
3
+ /**
4
+ * Resolves the stable key used for local chat feedback state.
5
+ *
6
+ * @private utility of `<Chat/>`
7
+ */
8
+ export declare function resolveChatRatingMessageKey(message: Pick<ChatMessage, 'id' | 'content'>): id;
@@ -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,11 +1,13 @@
1
1
  /// <reference types="react" />
2
2
  import type { string_markdown } from '../../../types/string_markdown';
3
+ import type { MarkdownInlineReference } from '../utils/renderMarkdown';
3
4
  /**
4
5
  * Props for markdown content.
5
6
  */
6
7
  type MarkdownContentProps = {
7
8
  content: string_markdown;
8
9
  className?: string;
10
+ inlineReferences?: ReadonlyArray<MarkdownInlineReference>;
9
11
  onCreateAgent?: (bookContent: string) => void;
10
12
  theme?: 'LIGHT' | 'DARK';
11
13
  };
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -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
@@ -4,6 +4,84 @@ import type { string_html, string_markdown } from '../../../types/string_markdow
4
4
  */
5
5
  type RenderMarkdownOptions = {
6
6
  readonly citationReferenceClassName?: string;
7
+ readonly inlineReferences?: ReadonlyArray<MarkdownInlineReference>;
8
+ readonly inlineReferenceClassName?: string;
9
+ };
10
+ /**
11
+ * One inline markdown reference converted from `[[reference]]` into a safe link chip.
12
+ *
13
+ * @public exported from `@promptbook/components`
14
+ */
15
+ export type MarkdownInlineReference = {
16
+ /**
17
+ * Raw reference text between `[[` and `]]`.
18
+ */
19
+ readonly reference: string;
20
+ /**
21
+ * Human-readable label rendered inside the link chip.
22
+ */
23
+ readonly label: string;
24
+ /**
25
+ * Link target for the rendered reference.
26
+ */
27
+ readonly href: string;
28
+ /**
29
+ * Optional hover title for the rendered reference.
30
+ */
31
+ readonly title?: string;
32
+ /**
33
+ * Optional expandable menu shown when the reference chip is clicked.
34
+ */
35
+ readonly menu?: MarkdownInlineReferenceMenu;
36
+ };
37
+ /**
38
+ * Status displayed alongside an expandable markdown inline reference.
39
+ *
40
+ * @public exported from `@promptbook/components`
41
+ */
42
+ export type MarkdownInlineReferenceMenuStatus = {
43
+ /**
44
+ * Accessible text describing the current reference status.
45
+ */
46
+ readonly label: string;
47
+ /**
48
+ * Whether the status should be rendered as active.
49
+ */
50
+ readonly isActive: boolean;
51
+ };
52
+ /**
53
+ * One destination in an expandable markdown inline reference menu.
54
+ *
55
+ * @public exported from `@promptbook/components`
56
+ */
57
+ export type MarkdownInlineReferenceMenuOption = {
58
+ /**
59
+ * Text rendered for the option.
60
+ */
61
+ readonly label: string;
62
+ /**
63
+ * New-tab destination, or `null` while the option is unavailable.
64
+ */
65
+ readonly href: string | null;
66
+ /**
67
+ * Optional hover text for the option.
68
+ */
69
+ readonly title?: string;
70
+ };
71
+ /**
72
+ * Expandable menu configuration for a markdown inline reference.
73
+ *
74
+ * @public exported from `@promptbook/components`
75
+ */
76
+ export type MarkdownInlineReferenceMenu = {
77
+ /**
78
+ * Current reference status shown in the chip and menu.
79
+ */
80
+ readonly status: MarkdownInlineReferenceMenuStatus;
81
+ /**
82
+ * New-tab actions listed in the expanded menu.
83
+ */
84
+ readonly options: ReadonlyArray<MarkdownInlineReferenceMenuOption>;
7
85
  };
8
86
  /**
9
87
  * Convert markdown content to HTML.
@@ -0,0 +1,149 @@
1
+ import type { ParsedCitation } from './parseCitationsFromContent';
2
+ /**
3
+ * Broad source category used by chat citation chips.
4
+ *
5
+ * @private utility type of `<Chat/>` citation rendering
6
+ */
7
+ export type CitationSourceKind = 'archive' | 'audio' | 'code' | 'document' | 'file' | 'image' | 'json' | 'plain-text' | 'presentation' | 'spreadsheet' | 'table' | 'video' | 'website';
8
+ /**
9
+ * Image subtype when the citation source carries enough information to identify it.
10
+ *
11
+ * @private utility type of `<Chat/>` citation rendering
12
+ */
13
+ export type CitationImageFormat = 'avif' | 'gif' | 'image' | 'jpeg' | 'png' | 'svg' | 'webp';
14
+ /**
15
+ * Render-ready metadata for one citation source.
16
+ *
17
+ * @private utility type of `<Chat/>` citation rendering
18
+ */
19
+ export type CitationSourceDisplay = {
20
+ /**
21
+ * Broad source category.
22
+ */
23
+ readonly kind: CitationSourceKind;
24
+ /**
25
+ * Human-readable fallback label used before optional host metadata resolution.
26
+ */
27
+ readonly label: string;
28
+ /**
29
+ * Best known HTTP(S) target for previews and URL snippets.
30
+ */
31
+ readonly targetUrl?: string;
32
+ /**
33
+ * Image URL that can be rendered as a thumbnail.
34
+ */
35
+ readonly thumbnailUrl?: string;
36
+ /**
37
+ * Lower-cased file extension when one is known.
38
+ */
39
+ readonly extension?: string;
40
+ /**
41
+ * Image subtype when known.
42
+ */
43
+ readonly imageFormat?: CitationImageFormat;
44
+ };
45
+ /**
46
+ * Internal source signature before final labels/preview URLs are resolved.
47
+ *
48
+ * @private utility type of `<Chat/>` citation rendering
49
+ */
50
+ export type CitationSourceSignature = {
51
+ /**
52
+ * Broad source category.
53
+ */
54
+ readonly kind: CitationSourceKind;
55
+ /**
56
+ * Image subtype when known.
57
+ */
58
+ readonly imageFormat?: CitationImageFormat;
59
+ };
60
+ /**
61
+ * Resolves render-ready source metadata for one citation.
62
+ *
63
+ * @param citation - Citation metadata from a rendered chat message.
64
+ * @returns Display label, source category, and optional preview URLs.
65
+ *
66
+ * @private utility of `<Chat/>` citation rendering
67
+ */
68
+ export declare function resolveCitationSourceDisplay(citation: ParsedCitation): CitationSourceDisplay;
69
+ /**
70
+ * Returns whether the provided value is a valid HTTP(S) URL.
71
+ *
72
+ * @param value - Candidate string to inspect.
73
+ * @returns True when the value parses as an HTTP or HTTPS URL.
74
+ *
75
+ * @private utility of `<Chat/>` citation rendering
76
+ */
77
+ export declare function isCitationSourceUrl(value: string): boolean;
78
+ /**
79
+ * Determines whether a citation should be displayed as a text snippet instead of a file/URL.
80
+ *
81
+ * @param citation - Parsed citation metadata.
82
+ * @returns True when the citation looks like inline text instead of a document or URL.
83
+ *
84
+ * @private utility of `<Chat/>` citation rendering
85
+ */
86
+ export declare function isPlainTextCitationSource(citation: ParsedCitation): boolean;
87
+ /**
88
+ * Creates a readable fallback label from a citation source when no title metadata is available.
89
+ *
90
+ * @param source - Raw citation source value.
91
+ * @returns Human-friendly source label.
92
+ *
93
+ * @private utility of `<Chat/>` citation rendering
94
+ */
95
+ export declare function createReadableCitationSourceDisplayLabel(source: string): string;
96
+ /**
97
+ * Creates a compact host/path label for URL-backed file citations.
98
+ *
99
+ * @param rawUrl - Raw URL value.
100
+ * @returns URL snippet such as `github.com/.../source.json`, or null for invalid URLs.
101
+ *
102
+ * @private utility of `<Chat/>` citation rendering
103
+ */
104
+ export declare function createCitationUrlSnippet(rawUrl: string): string | null;
105
+ /**
106
+ * Resolves a source signature from a file extension.
107
+ *
108
+ * @param extension - Lower- or mixed-case file extension.
109
+ * @returns Source signature or null for unknown extensions.
110
+ *
111
+ * @private utility of `<Chat/>` citation rendering
112
+ */
113
+ export declare function resolveCitationSourceSignatureFromFileExtension(extension: string | null | undefined): CitationSourceSignature | null;
114
+ /**
115
+ * Resolves a source signature from an HTTP content type.
116
+ *
117
+ * @param contentType - Raw Content-Type header value.
118
+ * @returns Source signature or null when the content type is not specific enough.
119
+ *
120
+ * @private utility of `<Chat/>` citation rendering
121
+ */
122
+ export declare function resolveCitationSourceSignatureFromContentType(contentType: string): CitationSourceSignature | null;
123
+ /**
124
+ * Resolves a source signature from decoded source text.
125
+ *
126
+ * @param source - Raw citation source text.
127
+ * @returns Source signature for JSON/binary-like source text, otherwise null.
128
+ *
129
+ * @private utility of `<Chat/>` citation rendering
130
+ */
131
+ export declare function resolveRawCitationSourceSignature(source: string): CitationSourceSignature | null;
132
+ /**
133
+ * Resolves a source signature from response bytes.
134
+ *
135
+ * @param bytes - Leading response bytes.
136
+ * @returns Source signature for known binary formats, otherwise null.
137
+ *
138
+ * @private utility of `<Chat/>` citation rendering
139
+ */
140
+ export declare function resolveCitationSourceSignatureFromBytes(bytes: Uint8Array): CitationSourceSignature | null;
141
+ /**
142
+ * Creates a generic fallback label for a source signature.
143
+ *
144
+ * @param signature - Source signature.
145
+ * @returns Human-readable fallback label.
146
+ *
147
+ * @private utility of `<Chat/>` citation rendering
148
+ */
149
+ export declare function createCitationSourceSignatureFallbackLabel(signature: CitationSourceSignature): string;
@@ -7,6 +7,15 @@
7
7
  * @private internal helper for Promptbook chat placeholders
8
8
  */
9
9
  export declare function normalizeThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string>): ReadonlyArray<string>;
10
+ /**
11
+ * Parses configured thinking-message variants without applying default fallbacks.
12
+ *
13
+ * @param thinkingMessages Raw thinking-message variants.
14
+ * @returns Trimmed non-empty variants.
15
+ *
16
+ * @private internal helper for Promptbook chat placeholders
17
+ */
18
+ export declare function parseThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string> | null): ReadonlyArray<string>;
10
19
  /**
11
20
  * Returns a random delay used between browser-side thinking-message rotations.
12
21
  *
@@ -1,5 +1,5 @@
1
- import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
2
- export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
1
+ import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
2
+ export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
3
3
  /**
4
4
  * Relative path to local knowledge files initialized by `ptbk agent-folder init`.
5
5
  *
@@ -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";
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Paths needed after the Agents Server production build is ready.
3
+ *
4
+ * @private internal type of `buildAgentsServer`
5
+ */
6
+ export type AgentsServerBuildArtifacts = {
7
+ readonly appPath: string;
8
+ readonly nodeModulesPath: string;
9
+ readonly nextCliPath: string;
10
+ };
11
+ /**
12
+ * Runtime paths resolved for Agents Server commands before choosing build or dev execution.
13
+ *
14
+ * @private internal type of `buildAgentsServer`
15
+ */
16
+ export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
17
+ readonly isAppPathMaterialized: boolean;
18
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Fingerprints all runtime source paths that can affect the local Agents Server build.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function createAgentsServerBuildSourceFingerprint(appPath: string): Promise<string>;
@@ -0,0 +1,28 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Environment variable passed to the bundled Next app so webpack can resolve dependencies
4
+ * installed beside `ptbk` even when the app sources are materialized into a project cache.
5
+ *
6
+ * @private internal constant of `buildAgentsServer`
7
+ */
8
+ export declare const PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV = "PTBK_AGENTS_SERVER_NODE_MODULES_PATH";
9
+ /**
10
+ * Environment variable consumed by `apps/agents-server/next.config.ts` to throttle build workers.
11
+ *
12
+ * @private internal constant of `buildAgentsServer`
13
+ */
14
+ export declare const PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV = "PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT";
15
+ /**
16
+ * Environment variable used only by the CLI-owned production build.
17
+ *
18
+ * @private internal constant of `buildAgentsServer`
19
+ */
20
+ export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
21
+ /**
22
+ * Adds dependency-resolution environment required by the materialized Agents Server runtime.
23
+ *
24
+ * @private internal utility of `buildAgentsServer`
25
+ */
26
+ export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
27
+ readonly isNextValidationIgnored?: boolean;
28
+ }): NodeJS.ProcessEnv;
@@ -0,0 +1,19 @@
1
+ /// <reference types="node" />
2
+ import type { PreparedAgentsServerRuntime } from './PreparedAgentsServerRuntime';
3
+ /**
4
+ * Inputs controlling one cached Agents Server production build.
5
+ */
6
+ type EnsureAgentsServerBuildOptions = {
7
+ readonly appPath?: string;
8
+ readonly environment?: NodeJS.ProcessEnv;
9
+ readonly isBuildForced?: boolean;
10
+ readonly onBuildEvent?: (event: string) => void;
11
+ readonly onBuildOutput?: (chunk: string) => void;
12
+ };
13
+ /**
14
+ * Ensures that the local Agents Server production build exists and matches its source fingerprint.
15
+ *
16
+ * @private internal utility of `buildAgentsServer`
17
+ */
18
+ export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
19
+ export {};
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Runtime paths copied into the CLI package and used by the Agents Server production build.
3
+ */
4
+ declare const AGENTS_SERVER_BUILD_INPUT_RELATIVE_PATHS: readonly ["apps/agents-server", "apps/_common", "src", "books", "package.json", "package-lock.json", "security.config.ts", "servers.ts", "tsconfig.json"];
5
+ /**
6
+ * Returns runtime input paths that can affect the materialized runtime and build fingerprint.
7
+ *
8
+ * @private internal utility of `buildAgentsServer`
9
+ */
10
+ export declare function getAgentsServerBuildInputRelativePaths(): typeof AGENTS_SERVER_BUILD_INPUT_RELATIVE_PATHS;
11
+ export {};
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true when one folder contains the Next Agents Server app marker files.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isAgentsServerAppPath(candidate: string): Promise<boolean>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true when the app path points at the project-local materialized runtime.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isAgentsServerAppPathMaterialized(appPath: string): boolean;
@@ -0,0 +1,7 @@
1
+ import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
2
+ /**
3
+ * Returns true when the production build marker and source fingerprint still match.
4
+ *
5
+ * @private internal utility of `buildAgentsServer`
6
+ */
7
+ export declare function isAgentsServerBuildCacheCurrent(options: AgentsServerBuildCacheOptions): Promise<boolean>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true for test files that should not affect packaged Agents Server builds.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isAgentsServerBuildInputTestFile(inputBasename: string): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true when a directory segment should not affect Agents Server production builds.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isExcludedAgentsServerBuildInputDirectoryName(directoryName: string): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true for non-build files and folders inside shared runtime source paths.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isExcludedAgentsServerBuildInputPath(inputPath: string, runtimeRootPath: string): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true for runtime source files and folders that are not needed by the Agents Server build.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isExcludedAgentsServerRuntimeSourcePath(sourceRuntimeRelativePath: string): boolean;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Returns true when one path exists as a regular file.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function isFile(path: string): Promise<boolean>;