@promptbook/wizard 0.113.0-8 → 0.114.0-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/README.md +4 -3
  2. package/esm/index.es.js +1196 -1084
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +8 -0
  5. package/esm/src/_packages/core.index.d.ts +4 -0
  6. package/esm/src/_packages/types.index.d.ts +14 -2
  7. package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  8. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  9. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  10. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  11. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  12. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  13. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  14. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  15. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  16. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  17. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  18. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  19. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  20. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  21. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  22. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  23. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  24. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  25. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  26. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  27. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  28. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  29. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  30. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  31. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  32. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  33. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  34. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  35. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  36. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  37. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  38. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  39. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  40. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  41. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  42. package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  43. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  44. package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  45. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  46. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  47. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  48. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  49. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  51. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  52. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  53. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  54. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  55. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  56. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  57. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  58. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  59. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  60. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  61. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  62. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  63. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  64. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  65. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  66. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  67. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  68. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  69. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  70. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  71. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  72. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  73. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  74. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  75. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  76. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  77. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  78. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  79. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  80. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  81. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  82. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  83. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  84. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  85. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  86. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  87. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  88. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  89. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  90. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  91. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  92. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  93. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  94. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  95. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  96. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  97. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  98. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  99. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  100. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  101. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  102. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  103. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  104. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  105. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  106. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  107. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  108. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  109. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  110. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  111. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  112. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  113. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  114. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  115. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  116. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  117. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  118. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  119. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  120. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  121. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  122. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  123. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  124. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  125. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  126. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  127. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  128. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  129. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  130. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  131. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  132. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  133. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  134. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  135. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  136. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  137. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  138. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  139. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  140. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  141. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  142. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  143. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  144. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  145. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  146. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  147. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  148. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  149. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  150. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  151. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  152. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  153. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  154. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  155. package/esm/src/commitments/META/META.d.ts +4 -2
  156. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  157. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  158. package/esm/src/commitments/index.d.ts +2 -1
  159. package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  160. package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  161. package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  162. package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  163. package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  164. package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  165. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  166. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  167. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  168. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  169. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  170. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  171. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  172. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  173. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  174. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  175. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  176. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  177. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  178. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  179. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  180. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  181. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  182. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  183. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  184. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  185. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  186. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  187. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  188. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  189. package/esm/src/utils/color/Color.d.ts +1 -1
  190. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  191. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  192. package/esm/src/version.d.ts +1 -1
  193. package/package.json +2 -2
  194. package/umd/index.umd.js +1196 -1084
  195. package/umd/index.umd.js.map +1 -1
  196. package/umd/src/_packages/components.index.d.ts +8 -0
  197. package/umd/src/_packages/core.index.d.ts +4 -0
  198. package/umd/src/_packages/types.index.d.ts +14 -2
  199. package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
  200. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  201. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  202. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  203. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  204. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  205. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  206. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  207. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  208. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  209. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  210. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  211. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  212. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  213. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  214. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  215. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  216. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  217. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  218. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  219. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  220. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  221. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  222. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  223. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  224. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  225. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  226. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  227. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  228. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  229. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  230. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  231. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  232. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  233. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  234. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  235. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  236. package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  237. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  238. package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  239. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +5 -1
  240. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
  241. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  242. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
  243. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  244. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  245. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  246. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  247. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  248. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  249. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  250. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  251. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  252. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  253. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  254. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  255. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  256. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  257. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  258. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  259. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  260. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  261. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  262. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  263. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  264. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  265. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  266. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  267. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  268. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  269. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  270. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  271. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  272. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  273. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  274. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  275. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  276. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  277. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  278. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  279. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  280. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  281. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  282. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  283. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  284. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  285. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  286. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  287. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  288. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  289. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  290. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  291. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  292. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  293. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  294. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  295. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  296. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  297. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  298. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  299. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  300. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  301. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  302. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  303. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +17 -0
  304. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  305. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  306. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  307. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  308. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  309. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  310. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  311. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  312. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  313. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  314. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  315. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  316. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  317. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  318. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  319. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  320. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  321. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  322. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  323. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  324. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  325. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  326. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  327. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  328. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  329. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  330. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  331. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  332. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  333. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  334. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  335. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  336. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  337. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  338. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  339. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  340. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  341. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  342. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  343. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  344. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  345. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  346. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  347. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  348. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  349. package/umd/src/commitments/META/META.d.ts +4 -2
  350. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  351. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  352. package/umd/src/commitments/index.d.ts +2 -1
  353. package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  354. package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  355. package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  356. package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  357. package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  358. package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  359. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  360. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  361. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  362. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  363. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  364. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  365. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  366. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  367. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  368. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  369. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  370. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  371. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  372. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  373. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  374. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  375. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  376. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  377. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  378. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  379. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  380. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  381. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  382. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  383. package/umd/src/utils/color/Color.d.ts +1 -1
  384. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  385. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  386. package/umd/src/version.d.ts +1 -1
  387. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  388. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  389. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  390. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  391. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  392. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -1,109 +1,8 @@
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 `ptbk agents-server`
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 `ptbk agents-server`
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 `ptbk agents-server`
19
- */
20
- export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
21
- /**
22
- * Inputs controlling one cached Agents Server production build.
23
- *
24
- * @private internal type of `ptbk agents-server`
25
- */
26
- type EnsureAgentsServerBuildOptions = {
27
- readonly appPath?: string;
28
- readonly environment?: NodeJS.ProcessEnv;
29
- readonly isBuildForced?: boolean;
30
- readonly onBuildEvent?: (event: string) => void;
31
- readonly onBuildOutput?: (chunk: string) => void;
32
- };
33
- /**
34
- * Paths needed after the Agents Server production build is ready.
35
- *
36
- * @private internal type of `ptbk agents-server`
37
- */
38
- export type AgentsServerBuildArtifacts = {
39
- readonly appPath: string;
40
- readonly nodeModulesPath: string;
41
- readonly nextCliPath: string;
42
- };
43
- /**
44
- * Runtime paths resolved for Agents Server commands before choosing build or dev execution.
45
- *
46
- * @private internal type of `ptbk agents-server`
47
- */
48
- export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
49
- readonly isAppPathMaterialized: boolean;
50
- };
51
- /**
52
- * Input paths required to validate or update the cached Agents Server build.
53
- *
54
- * @private internal type of `ptbk agents-server`
55
- */
56
- type AgentsServerBuildCacheOptions = {
57
- readonly appPath: string;
58
- readonly environment?: NodeJS.ProcessEnv;
59
- };
60
- /**
61
- * Ensures that the local Agents Server production build exists and matches its source fingerprint.
62
- *
63
- * @private internal utility of `ptbk agents-server`
64
- */
65
- export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
66
- /**
67
- * Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
68
- *
69
- * @private internal utility of `ptbk agents-server`
70
- */
71
- export declare function prepareAgentsServerRuntime(options?: {
72
- readonly appPath?: string;
73
- }): Promise<PreparedAgentsServerRuntime>;
74
- /**
75
- * Returns true when the production build marker and source fingerprint still match.
76
- *
77
- * @private internal utility of `ptbk agents-server`
78
- */
79
- export declare function isAgentsServerBuildCacheCurrent(options: AgentsServerBuildCacheOptions): Promise<boolean>;
80
- /**
81
- * Persists the source fingerprint for the just-created production build.
82
- *
83
- * @private internal utility of `ptbk agents-server`
84
- */
85
- export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCacheOptions): Promise<void>;
86
- /**
87
- * Finds the Agents Server app in a source checkout or generated CLI package.
88
- *
89
- * @private internal utility of `ptbk agents-server`
90
- */
91
- export declare function resolveAgentsServerAppPath(): Promise<string>;
92
- /**
93
- * Adds dependency-resolution environment required by the materialized Agents Server runtime.
94
- *
95
- * @private internal utility of `ptbk agents-server`
96
- */
97
- export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
98
- readonly isNextValidationIgnored?: boolean;
99
- }): NodeJS.ProcessEnv;
100
- /**
101
- * Uses the source checkout app directly, but copies npm-packaged app sources out of `node_modules`.
102
- *
103
- * @private internal utility of `ptbk agents-server`
104
- */
105
- export declare function resolveAgentsServerBuildAppPath(options: {
106
- readonly nodeModulesPath: string;
107
- readonly sourceAppPath: string;
108
- }): Promise<string>;
109
- export {};
1
+ export { createAgentsServerRuntimeEnvironment, PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV, PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV, PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV, } from './buildAgentsServer/createAgentsServerRuntimeEnvironment';
2
+ export { ensureAgentsServerBuild } from './buildAgentsServer/ensureAgentsServerBuild';
3
+ export { isAgentsServerBuildCacheCurrent } from './buildAgentsServer/isAgentsServerBuildCacheCurrent';
4
+ export { prepareAgentsServerRuntime } from './buildAgentsServer/prepareAgentsServerRuntime';
5
+ export { resolveAgentsServerAppPath } from './buildAgentsServer/resolveAgentsServerAppPath';
6
+ export { resolveAgentsServerBuildAppPath } from './buildAgentsServer/resolveAgentsServerBuildAppPath';
7
+ export { writeAgentsServerBuildCache } from './buildAgentsServer/writeAgentsServerBuildCache';
8
+ export type { AgentsServerBuildArtifacts, PreparedAgentsServerRuntime, } from './buildAgentsServer/PreparedAgentsServerRuntime';
@@ -1,4 +1,4 @@
1
- import { type EnsureProjectEnvFileResult } from '../common/projectInitialization';
1
+ import type { EnsureProjectEnvFileResult } from '../common/projectInitialization';
2
2
  /**
3
3
  * Ensures `.env` contains all required Agents Server configuration entries.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { type ProjectInitializationStatus } from '../common/projectInitialization';
1
+ import type { ProjectInitializationStatus } from '../common/projectInitialization';
2
2
  /**
3
3
  * Ensures `.gitignore` excludes local Agents Server runtime artifacts.
4
4
  *
@@ -0,0 +1,17 @@
1
+ /// <reference types="node" />
2
+ import type { number_port } from '../../../../types/number_positive';
3
+ /**
4
+ * Subprocess environment carrying the explicit local worker credential.
5
+ *
6
+ * @private internal type of `startAgentsServer`
7
+ */
8
+ export type AgentsServerChildEnvironment = NodeJS.ProcessEnv & {
9
+ readonly PTBK_AGENTS_SERVER_URL: string;
10
+ readonly PTBK_AGENTS_SERVER_USER_CHAT_WORKER_TOKEN: string;
11
+ };
12
+ /**
13
+ * Creates the subprocess environment for Next and its internal local runner bridge.
14
+ *
15
+ * @private internal utility of `startAgentsServer`
16
+ */
17
+ export declare function createAgentsServerChildEnvironment(port: number_port, agentRootPath: string): AgentsServerChildEnvironment;
@@ -0,0 +1,30 @@
1
+ /// <reference types="node" />
2
+ import { type WriteStream } from 'fs';
3
+ import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
4
+ /**
5
+ * Logger handles kept open for the foreground Agents Server lifetime.
6
+ *
7
+ * @private internal type of `startAgentsServer`
8
+ */
9
+ export type AgentsServerLogStreams = {
10
+ readonly next: WriteStream;
11
+ readonly runner: WriteStream;
12
+ };
13
+ /**
14
+ * Creates file streams for service output persisted below `./logs`.
15
+ *
16
+ * @private internal utility of `startAgentsServer`
17
+ */
18
+ export declare function createAgentsServerLogStreams(runtimePaths: AgentsServerRuntimePaths): AgentsServerLogStreams;
19
+ /**
20
+ * Closes all foreground service log streams.
21
+ *
22
+ * @private internal utility of `startAgentsServer`
23
+ */
24
+ export declare function closeAgentsServerLogStreams(logStreams: AgentsServerLogStreams): void;
25
+ /**
26
+ * Appends one timestamped runner lifecycle event into its persistent log file.
27
+ *
28
+ * @private internal utility of `startAgentsServer`
29
+ */
30
+ export declare function logRunnerEvent(logStream: WriteStream, event: string): void;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Captures foreground file locations for one Agents Server launch.
3
+ *
4
+ * @private internal type of `startAgentsServer`
5
+ */
6
+ export type AgentsServerRuntimePaths = {
7
+ readonly launchWorkingDirectory: string;
8
+ readonly appPath: string;
9
+ readonly agentRootPath: string;
10
+ readonly logDirectoryPath: string;
11
+ readonly nextLogPath: string;
12
+ readonly runnerLogPath: string;
13
+ };
14
+ /**
15
+ * Resolves local app, agent-root, and log paths for one foreground launch.
16
+ *
17
+ * @private internal utility of `startAgentsServer`
18
+ */
19
+ export declare function resolveAgentsServerRuntimePaths(): Promise<AgentsServerRuntimePaths>;
@@ -0,0 +1,37 @@
1
+ /// <reference types="node" />
2
+ import type { CoderRunUiHandle } from '../../../../../scripts/run-codex-prompts/ui/renderCoderRunUi';
3
+ /**
4
+ * Mutable supervisor state shared with child-process and watcher callbacks.
5
+ *
6
+ * @private internal type of `startAgentsServer`
7
+ */
8
+ export type AgentsServerSupervisorState = {
9
+ isContinuing: boolean;
10
+ uiHandle?: CoderRunUiHandle;
11
+ lastUserChatJobWorkerError?: {
12
+ message: string;
13
+ repeatCount: number;
14
+ };
15
+ nextExit?: {
16
+ code: number | null;
17
+ signal: NodeJS.Signals | null;
18
+ };
19
+ };
20
+ /**
21
+ * Adds one Next or worker output line to the rich terminal UI when it is active.
22
+ *
23
+ * @private internal utility of `startAgentsServer`
24
+ */
25
+ export declare function addUiOutput(state: AgentsServerSupervisorState, output: string): void;
26
+ /**
27
+ * Adds one service error line to the rich terminal UI when it is active.
28
+ *
29
+ * @private internal utility of `startAgentsServer`
30
+ */
31
+ export declare function addUiError(state: AgentsServerSupervisorState, error: string): void;
32
+ /**
33
+ * Throws when the server child stopped while the watcher was still expected to be foreground work.
34
+ *
35
+ * @private internal utility of `startAgentsServer`
36
+ */
37
+ export declare function assertNextServerStillRunning(state: AgentsServerSupervisorState): void;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Local runner limits loaded from the running Agents Server app.
3
+ *
4
+ * @private internal type of `startAgentsServer`
5
+ */
6
+ export type LocalAgentRunnerLimits = {
7
+ readonly maxFailedAttempts: number;
8
+ readonly maxParallelMessages: number;
9
+ };
@@ -0,0 +1,13 @@
1
+ import type { PreparedAgentsServerRuntime } from '../buildAgentsServer/PreparedAgentsServerRuntime';
2
+ import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
3
+ import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
4
+ /**
5
+ * Prepared Next runtime and child environment used by one foreground launch.
6
+ *
7
+ * @private internal type of `startAgentsServer`
8
+ */
9
+ export type PreparedAgentsServerLaunch = {
10
+ readonly runtimeArtifacts: PreparedAgentsServerRuntime;
11
+ readonly runtimeChildEnvironment: AgentsServerChildEnvironment;
12
+ readonly runtimePaths: AgentsServerRuntimePaths;
13
+ };
@@ -0,0 +1,24 @@
1
+ import type { number_port } from '../../../../types/number_positive';
2
+ import type { ThinkingLevel } from '../../coder/ThinkingLevel';
3
+ import type { PromptRunnerHarnessName } from '../../common/promptRunnerCliOptions';
4
+ /**
5
+ * Next runtime mode supported by the local Agents Server foreground launcher.
6
+ *
7
+ * @private internal type of `startAgentsServer`
8
+ */
9
+ export type AgentsServerNextRuntimeMode = 'start' | 'dev';
10
+ /**
11
+ * Options required to start the foreground Agents Server service group.
12
+ *
13
+ * @private internal type of `startAgentsServer`
14
+ */
15
+ export type StartAgentsServerOptions = {
16
+ readonly port: number_port;
17
+ readonly agentName: PromptRunnerHarnessName;
18
+ readonly model?: string;
19
+ readonly noUi: boolean;
20
+ readonly thinkingLevel?: ThinkingLevel;
21
+ readonly allowCredits: boolean;
22
+ readonly nextRuntimeMode: AgentsServerNextRuntimeMode;
23
+ readonly isBuildForced: boolean;
24
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Builds a foreground failure message for one internal Agents Server route.
3
+ *
4
+ * @private internal utility of `startAgentsServer`
5
+ */
6
+ export declare function createInternalRouteErrorMessage(routeLabel: string, response: Response, details: string | null): string;
@@ -0,0 +1,9 @@
1
+ import type { AgentRunOptions } from '../../../../../scripts/run-agent-messages/AgentRunOptions';
2
+ import type { LocalAgentRunnerLimits } from './LocalAgentRunnerLimits';
3
+ import type { StartAgentsServerOptions } from './StartAgentsServerOptions';
4
+ /**
5
+ * Creates local no-git agent runner options for folders managed by the Agents Server database.
6
+ *
7
+ * @private internal utility of `startAgentsServer`
8
+ */
9
+ export declare function createLocalAgentRunOptions(options: StartAgentsServerOptions, localAgentRunnerLimits: LocalAgentRunnerLimits): AgentRunOptions;
@@ -0,0 +1,13 @@
1
+ /// <reference types="node" />
2
+ import type { WriteStream } from 'fs';
3
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
4
+ /**
5
+ * Persists one child output chunk and forwards readable lines into UI or plain output.
6
+ *
7
+ * @private internal utility of `startAgentsServer`
8
+ */
9
+ export declare function forwardChildOutput(chunk: string, options: {
10
+ readonly label: string;
11
+ readonly logStream: WriteStream;
12
+ readonly state: AgentsServerSupervisorState;
13
+ }): void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Loads launch-directory `.env` values without overriding explicit process environment.
3
+ *
4
+ * @private internal utility of `startAgentsServer`
5
+ */
6
+ export declare function loadAgentsServerProjectEnvironment(launchWorkingDirectory: string): void;
@@ -0,0 +1,18 @@
1
+ import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
2
+ import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
3
+ import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
4
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
5
+ import type { PreparedAgentsServerLaunch } from './PreparedAgentsServerLaunch';
6
+ import type { StartAgentsServerOptions } from './StartAgentsServerOptions';
7
+ /**
8
+ * Prepares the shared Next runtime for either production start or hot-reloading development mode.
9
+ *
10
+ * @private internal utility of `startAgentsServer`
11
+ */
12
+ export declare function prepareAgentsServerLaunch(options: {
13
+ readonly childEnvironment: AgentsServerChildEnvironment;
14
+ readonly logStreams: AgentsServerLogStreams;
15
+ readonly startOptions: StartAgentsServerOptions;
16
+ readonly runtimePaths: AgentsServerRuntimePaths;
17
+ readonly state: AgentsServerSupervisorState;
18
+ }): Promise<PreparedAgentsServerLaunch>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Reads an internal route error payload so foreground logs show the route-level reason.
3
+ *
4
+ * @private internal utility of `startAgentsServer`
5
+ */
6
+ export declare function readInternalRouteErrorDetails(response: Response): Promise<string | null>;
@@ -0,0 +1,7 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Resolves the optional Next hostname from the prepared child environment.
4
+ *
5
+ * @private internal utility of `startAgentsServer`
6
+ */
7
+ export declare function resolveAgentsServerChildHostname(environment: NodeJS.ProcessEnv): string | null;
@@ -0,0 +1,20 @@
1
+ /// <reference types="node" />
2
+ import { type ChildProcess } from 'child_process';
3
+ import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
4
+ import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
5
+ import type { AgentsServerRuntimePaths } from './AgentsServerRuntimePaths';
6
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
7
+ import type { StartAgentsServerOptions } from './StartAgentsServerOptions';
8
+ /**
9
+ * Starts the configured Next server mode and wires its logs into the foreground dashboard.
10
+ *
11
+ * @private internal utility of `startAgentsServer`
12
+ */
13
+ export declare function startNextServer(options: {
14
+ readonly nextCliPath: string;
15
+ readonly startOptions: StartAgentsServerOptions;
16
+ readonly runtimePaths: AgentsServerRuntimePaths;
17
+ readonly childEnvironment: AgentsServerChildEnvironment;
18
+ readonly logStreams: AgentsServerLogStreams;
19
+ readonly state: AgentsServerSupervisorState;
20
+ }): ChildProcess;
@@ -0,0 +1,15 @@
1
+ import type { number_port } from '../../../../types/number_positive';
2
+ import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
3
+ import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
4
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
5
+ /**
6
+ * Starts periodic internal worker calls that queue and reconcile local message-folder jobs.
7
+ *
8
+ * @private internal utility of `startAgentsServer`
9
+ */
10
+ export declare function startUserChatJobWorkerPump(options: {
11
+ readonly port: number_port;
12
+ readonly environment: AgentsServerChildEnvironment;
13
+ readonly logStreams: AgentsServerLogStreams;
14
+ readonly state: AgentsServerSupervisorState;
15
+ }): () => void;
@@ -0,0 +1,8 @@
1
+ /// <reference types="node" />
2
+ import type { ChildProcess } from 'child_process';
3
+ /**
4
+ * Stops only the child process spawned for the local Next server.
5
+ *
6
+ * @private internal utility of `startAgentsServer`
7
+ */
8
+ export declare function stopChildProcess(commandProcess: ChildProcess | undefined): void;
@@ -0,0 +1,16 @@
1
+ import type { number_port } from '../../../../types/number_positive';
2
+ import type { AgentsServerChildEnvironment } from './AgentsServerChildEnvironment';
3
+ import type { AgentsServerLogStreams } from './AgentsServerLogStreams';
4
+ import type { AgentsServerSupervisorState } from './AgentsServerSupervisorState';
5
+ import type { LocalAgentRunnerLimits } from './LocalAgentRunnerLimits';
6
+ /**
7
+ * Waits until the internal Next route can return current local runner limits.
8
+ *
9
+ * @private internal utility of `startAgentsServer`
10
+ */
11
+ export declare function waitForLocalAgentRunnerLimits(options: {
12
+ readonly port: number_port;
13
+ readonly environment: AgentsServerChildEnvironment;
14
+ readonly logStreams: AgentsServerLogStreams;
15
+ readonly state: AgentsServerSupervisorState;
16
+ }): Promise<LocalAgentRunnerLimits>;
@@ -1,36 +1,9 @@
1
- import type { ThinkingLevel } from '../coder/ThinkingLevel';
2
- import type { PromptRunnerHarnessName } from '../common/promptRunnerCliOptions';
3
- import type { number_port } from '../../../types/number_positive';
4
- /**
5
- * Next runtime mode supported by the local Agents Server foreground launcher.
6
- *
7
- * @private internal type of `ptbk agents-server`
8
- */
9
- export type AgentsServerNextRuntimeMode = 'start' | 'dev';
10
- /**
11
- * Options required to start the foreground Agents Server service group.
12
- *
13
- * @private internal type of `ptbk agents-server`
14
- */
15
- export type StartAgentsServerOptions = {
16
- readonly port: number_port;
17
- readonly agentName: PromptRunnerHarnessName;
18
- readonly model?: string;
19
- readonly noUi: boolean;
20
- readonly thinkingLevel?: ThinkingLevel;
21
- readonly allowCredits: boolean;
22
- readonly nextRuntimeMode: AgentsServerNextRuntimeMode;
23
- readonly isBuildForced: boolean;
24
- };
1
+ import type { StartAgentsServerOptions } from './startAgentsServer/StartAgentsServerOptions';
2
+ export { loadAgentsServerProjectEnvironment } from './startAgentsServer/loadAgentsServerProjectEnvironment';
3
+ export type { AgentsServerNextRuntimeMode, StartAgentsServerOptions, } from './startAgentsServer/StartAgentsServerOptions';
25
4
  /**
26
5
  * Starts the Agents Server web app and local coding-agent queue workers in the foreground.
27
6
  *
28
7
  * @private internal utility of `ptbk agents-server`
29
8
  */
30
9
  export declare function startAgentsServer(options: StartAgentsServerOptions): Promise<void>;
31
- /**
32
- * Loads launch-directory `.env` values without overriding explicit process environment.
33
- *
34
- * @private internal utility of `ptbk agents-server`
35
- */
36
- export declare function loadAgentsServerProjectEnvironment(launchWorkingDirectory: string): void;
@@ -0,0 +1,36 @@
1
+ import type { Command as Program } from 'commander';
2
+ import type { $side_effect } from '../../../utils/organization/$side_effect';
3
+ /**
4
+ * Initializes `coder add` command for Promptbook CLI utilities
5
+ *
6
+ * Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
7
+ *
8
+ * @private internal function of `promptbookCli`
9
+ */
10
+ export declare function $initializeCoderAddCommand(program: Program): $side_effect;
11
+ /**
12
+ * Result of adding one prompt file with `coder add`.
13
+ *
14
+ * @private internal utility of `coder add` command
15
+ */
16
+ export type AddCoderPromptResult = {
17
+ /**
18
+ * Project-relative path of the created prompt file.
19
+ */
20
+ readonly filePath: string;
21
+ /**
22
+ * Emoji tag assigned to the created prompt, for example `[✨🪴]`.
23
+ */
24
+ readonly emojiTag: string;
25
+ };
26
+ /**
27
+ * Adds one ready-to-run prompt file containing a single prompt built from the description and template.
28
+ *
29
+ * @private internal utility of `coder add` command
30
+ */
31
+ export declare function addCoderPrompt({ projectPath, description, priority, templateOption, }: {
32
+ readonly projectPath: string;
33
+ readonly description: string;
34
+ readonly priority: number;
35
+ readonly templateOption?: string;
36
+ }): Promise<AddCoderPromptResult>;
@@ -0,0 +1 @@
1
+ export {};
@@ -135,3 +135,27 @@ export declare function resolveCoderPromptTemplate({ projectPath, templateOption
135
135
  readonly projectPath: string;
136
136
  readonly templateOption?: string;
137
137
  }): Promise<ResolvedCoderPromptTemplate>;
138
+ /**
139
+ * Builds one prompt section (status line, emoji-tagged title, and body) shared by
140
+ * `coder generate-boilerplates` and `coder add`.
141
+ *
142
+ * @private internal utility of `ptbk coder`
143
+ */
144
+ export declare function buildCoderPromptSection({ statusLine, emojiTag, title, body, }: {
145
+ /**
146
+ * Checklist status marker of the section, for example `[-]`, `[ ]`, or `[ ] !!`.
147
+ */
148
+ readonly statusLine: string;
149
+ /**
150
+ * Emoji tag rendered before the title, for example `[✨🪴]`.
151
+ */
152
+ readonly emojiTag: string;
153
+ /**
154
+ * Single-line title rendered right after the emoji tag.
155
+ */
156
+ readonly title: string;
157
+ /**
158
+ * Markdown body rendered below the title.
159
+ */
160
+ readonly body: string;
161
+ }): string;
@@ -5,6 +5,7 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
5
5
  *
6
6
  * The coder command provides utilities for automated coding:
7
7
  * - init: Initialize coder configuration in current project
8
+ * - add: Add one ready-to-run prompt file to the queue
8
9
  * - generate-boilerplates: Generate prompt boilerplate files
9
10
  * - find-refactor-candidates: Find files that need refactoring
10
11
  * - run: Run coding prompts with AI agents
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Creates a Commander argument parser that accepts only non-negative integers.
3
+ *
4
+ * The returned parser is meant to be passed as the coercion callback of `command.option(...)`.
5
+ * It throws a branded `NotAllowed` error with a clear message referencing the given option name
6
+ * when the provided value is not a non-negative integer.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function createNonNegativeIntegerOptionParser(optionName: string): (value: string) => number;
@@ -0,0 +1,9 @@
1
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
2
+ /**
3
+ * Reports one detected harness installation status and offers to install or update the harness.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it asks the user and installs npm packages
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $applyHarnessInstallationStatus(status: HarnessInstallationStatus): Promise<void>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Asks the user in the terminal whether the harness should be installed or updated right now.
3
+ *
4
+ * Note: `$` is used to indicate that this function is not a pure function - it reads the answer from stdin
5
+ *
6
+ * @returns `true` when the user confirms, `false` when the user declines or the terminal is not interactive
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare function $askForHarnessInstallationApproval(question: string): Promise<boolean>;
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ import type { HarnessInstallationStatus } from './HarnessInstallationStatus';
3
+ /**
4
+ * Detects whether one CLI coding harness is installed globally and whether it is up to date.
5
+ *
6
+ * Note: `$` is used to indicate that this function is not a pure function - it runs the harness command and queries npm
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $checkHarnessInstallation(definition: HarnessDefinition): Promise<HarnessInstallationStatus>;
@@ -0,0 +1,13 @@
1
+ import type { PromptRunnerHarnessName } from '../promptRunnerCliOptions';
2
+ /**
3
+ * Checks that every given CLI coding harness is installed globally and up to date and offers to
4
+ * install or update the ones which are not.
5
+ *
6
+ * Harness names which are `undefined`, for example when no `--harness` is selected in a dry run,
7
+ * are ignored so that every call site can pass its raw selection.
8
+ *
9
+ * Note: `$` is used to indicate that this function is not a pure function - it may install npm packages
10
+ *
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export declare function $ensureHarnessInstallations(harnessNames: ReadonlyArray<PromptRunnerHarnessName | undefined>): Promise<void>;
@@ -0,0 +1,13 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Installs or updates one CLI coding harness globally through npm.
4
+ *
5
+ * A failed installation is reported but never aborts the running command, because the harness check
6
+ * is only an assistant - the command itself may still work with a manually managed harness.
7
+ *
8
+ * Note: `$` is used to indicate that this function is not a pure function - it installs a global npm package
9
+ *
10
+ * @returns `true` when the harness has been installed, `false` when the installation failed
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export declare function $installHarness(definition: HarnessDefinition): Promise<boolean>;
@@ -0,0 +1,10 @@
1
+ import type { HarnessDefinition } from './HarnessDefinition';
2
+ /**
3
+ * Reads the version of the globally installed harness command.
4
+ *
5
+ * Note: `$` is used to indicate that this function is not a pure function - it runs the harness command
6
+ *
7
+ * @returns The installed version or `null` when the harness command is not available globally
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function $resolveInstalledHarnessVersion(definition: HarnessDefinition): Promise<string | null>;