@promptbook/vercel 0.113.0-0 → 0.113.0-10

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 (242) hide show
  1. package/README.md +1 -17
  2. package/esm/index.es.js +122 -122
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/types.index.d.ts +2 -2
  5. package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +98 -0
  6. package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  7. package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  8. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  9. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  10. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  11. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  12. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  13. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  14. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  15. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  16. package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  17. package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  18. package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  19. package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  20. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
  21. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
  22. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
  23. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  24. package/esm/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
  25. package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
  26. package/esm/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
  27. package/esm/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
  28. package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
  29. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  30. package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  31. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  32. package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  33. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  34. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  35. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  36. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  37. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  38. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  39. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  40. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  41. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  42. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  43. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  44. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  45. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  46. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  47. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  48. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  49. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  50. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  51. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  52. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  53. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  54. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  55. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  56. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  57. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  58. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  59. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  60. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  61. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  62. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  63. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  64. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  65. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  66. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  67. package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  68. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
  69. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  70. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  71. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  72. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  73. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  74. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  75. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  76. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  77. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  78. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  79. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  80. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  81. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  82. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  83. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  84. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  85. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  86. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  87. package/esm/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
  88. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  89. package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  90. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  91. package/esm/src/commitments/META/META.d.ts +2 -2
  92. package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  93. package/esm/src/commitments/index.d.ts +1 -1
  94. package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  95. package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  96. package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  97. package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  98. package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  99. package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  100. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  101. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  102. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  103. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  104. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  105. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  106. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  107. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  108. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  109. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  110. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  111. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  112. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  113. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  114. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  115. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  116. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  117. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  118. package/esm/src/utils/ascii-art/$detectTerminalAnsiColorDepth.d.ts +15 -0
  119. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +80 -0
  120. package/esm/src/utils/color/Color.d.ts +1 -1
  121. package/esm/src/version.d.ts +1 -1
  122. package/package.json +2 -2
  123. package/umd/index.umd.js +122 -122
  124. package/umd/index.umd.js.map +1 -1
  125. package/umd/src/_packages/types.index.d.ts +2 -2
  126. package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +98 -0
  127. package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
  128. package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
  129. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
  130. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
  131. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
  132. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
  133. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
  134. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
  135. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
  136. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
  137. package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
  138. package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
  139. package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
  140. package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
  141. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
  142. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
  143. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
  144. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
  145. package/umd/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
  146. package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
  147. package/umd/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
  148. package/umd/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
  149. package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
  150. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
  151. package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
  152. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
  153. package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
  154. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
  155. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
  156. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
  157. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
  158. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
  159. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
  160. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
  161. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
  162. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
  163. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
  164. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
  165. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
  166. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
  167. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
  168. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
  169. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
  170. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
  171. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
  172. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
  173. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
  174. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
  175. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
  176. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
  177. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
  178. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
  179. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
  180. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
  181. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
  182. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
  183. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
  184. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
  185. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
  186. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
  187. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
  188. package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
  189. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
  190. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
  191. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
  192. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
  193. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
  194. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
  195. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
  196. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
  197. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
  198. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
  199. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
  200. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
  201. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
  202. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
  203. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
  204. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
  205. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
  206. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
  207. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
  208. package/umd/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
  209. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  210. package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
  211. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  212. package/umd/src/commitments/META/META.d.ts +2 -2
  213. package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
  214. package/umd/src/commitments/index.d.ts +1 -1
  215. package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
  216. package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
  217. package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
  218. package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
  219. package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
  220. package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
  221. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
  222. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
  223. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
  224. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
  225. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
  226. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
  227. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
  228. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  229. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
  230. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
  231. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
  232. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
  233. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
  234. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
  235. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
  236. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
  237. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  238. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
  239. package/umd/src/utils/ascii-art/$detectTerminalAnsiColorDepth.d.ts +15 -0
  240. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +80 -0
  241. package/umd/src/utils/color/Color.d.ts +1 -1
  242. package/umd/src/version.d.ts +1 -1
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copies the bundled runtime into the launch project when the original app lives under `node_modules`.
3
+ *
4
+ * @private internal utility of `buildAgentsServer`
5
+ */
6
+ export declare function synchronizeMaterializedAgentsServerRuntime(options: {
7
+ readonly materializedRuntimeRootPath: string;
8
+ readonly nodeModulesPath: string;
9
+ readonly sourceAppPath: string;
10
+ readonly sourceRuntimeRootPath: string;
11
+ }): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
2
+ /**
3
+ * Persists the source fingerprint for the just-created production build.
4
+ *
5
+ * @private internal utility of `buildAgentsServer`
6
+ */
7
+ export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCacheOptions): Promise<void>;
@@ -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,16 @@
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_USER_CHAT_WORKER_TOKEN: string;
10
+ };
11
+ /**
12
+ * Creates the subprocess environment for Next and its internal local runner bridge.
13
+ *
14
+ * @private internal utility of `startAgentsServer`
15
+ */
16
+ 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';
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,10 @@
1
+ /**
2
+ * Creates a Commander argument parser that accepts only positive 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 positive integer.
7
+ *
8
+ * @private internal utility of `promptbookCli`
9
+ */
10
+ export declare function createPositiveIntegerOptionParser(optionName: string): (value: string) => number;
@@ -1,6 +1,6 @@
1
1
  import { Command as Program } from 'commander';
2
- import type { ThinkingLevel } from '../coder/ThinkingLevel';
3
2
  import { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV } from '../../../book-3.0/cliAgentEnv';
3
+ import type { ThinkingLevel } from '../coder/ThinkingLevel';
4
4
  export { PTBK_HARNESS_ENV, PTBK_MODEL_ENV, PTBK_THINKING_LEVEL_ENV };
5
5
  /**
6
6
  * Runner identifiers supported by Promptbook CLI agent orchestration commands.
@@ -1,5 +1,5 @@
1
+ import type { AgentVisibility } from '../../book-2.0/agent-source/agentSourceVisibility';
1
2
  import type { string_book } from '../../book-2.0/agent-source/string_book';
2
- import { type AgentVisibility } from '../../book-2.0/agent-source/agentSourceVisibility';
3
3
  import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
4
4
  /**
5
5
  * Supported visibility options for agent creation.
@@ -1,5 +1,5 @@
1
1
  import type { AgentBasicInformation } from '../../../../book-2.0/agent-source/AgentBasicInformation';
2
- import { type AgentVisibility } from '../../../../book-2.0/agent-source/agentSourceVisibility';
2
+ import type { AgentVisibility } from '../../../../book-2.0/agent-source/agentSourceVisibility';
3
3
  import type { string_book } from '../../../../book-2.0/agent-source/string_book';
4
4
  import type { string_agent_permanent_id } from '../../../../types/string_agent_name';
5
5
  /**
@@ -4,7 +4,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
4
4
  * META commitment definition
5
5
  *
6
6
  * The META commitment handles all meta-information about the agent such as:
7
- * - META AVATAR: Sets the agent's built-in default avatar visual
7
+ * - META AVATAR / META VISUAL: Sets the agent's built-in default avatar visual
8
8
  * - META IMAGE: Sets the agent's avatar/profile image URL
9
9
  * - META LINK: Provides profile/source links for the person the agent models
10
10
  * - META DOMAIN: Sets the canonical custom domain/host of the agent
@@ -19,7 +19,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
19
19
  * Example usage in agent source:
20
20
  *
21
21
  * ```book
22
- * META AVATAR pixel-art
22
+ * META VISUAL pixel-art
23
23
  * META IMAGE https://example.com/avatar.jpg
24
24
  * META LINK https://twitter.com/username
25
25
  * META DOMAIN my-agent.com
@@ -1,15 +1,19 @@
1
1
  import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
2
  import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
+ /**
4
+ * META AVATAR / META VISUAL commitment type.
5
+ */
6
+ type MetaAvatarCommitmentType = 'META AVATAR' | 'META VISUAL';
3
7
  /**
4
8
  * META AVATAR commitment definition
5
9
  *
6
- * The `META AVATAR` commitment sets the built-in default avatar visual used when
7
- * the agent does not provide an explicit `META IMAGE`.
10
+ * The `META AVATAR` and `META VISUAL` commitments set the built-in default avatar visual
11
+ * used when the agent does not provide an explicit `META IMAGE`.
8
12
  *
9
13
  * @private [🪔] Maybe export the commitments through some package
10
14
  */
11
- export declare class MetaAvatarCommitmentDefinition extends BaseCommitmentDefinition<'META AVATAR'> {
12
- constructor();
15
+ export declare class MetaAvatarCommitmentDefinition extends BaseCommitmentDefinition<MetaAvatarCommitmentType> {
16
+ constructor(type?: MetaAvatarCommitmentType);
13
17
  /**
14
18
  * Short one-line description of META AVATAR.
15
19
  */
@@ -24,3 +28,4 @@ export declare class MetaAvatarCommitmentDefinition extends BaseCommitmentDefini
24
28
  get documentation(): string;
25
29
  applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
26
30
  }
31
+ export {};
@@ -62,4 +62,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
62
62
  *
63
63
  * @private Use functions to access commitments instead of this array directly
64
64
  */
65
- export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, WalletCommitmentDefinition, WalletCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
65
+ export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, WalletCommitmentDefinition, WalletCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
@@ -0,0 +1,16 @@
1
+ import type { PipelineJson } from '../../../pipeline/PipelineJson/PipelineJson';
2
+ /**
3
+ * Shared validation context for one pipeline validation pass.
4
+ *
5
+ * @private type of `validatePipeline`
6
+ */
7
+ export type PipelineValidationContext = {
8
+ pipeline: PipelineJson;
9
+ pipelineIdentification: string;
10
+ };
11
+ /**
12
+ * Creates the shared validation context for one pipeline.
13
+ *
14
+ * @private function of `validatePipeline`
15
+ */
16
+ export declare function createPipelineValidationContext(pipeline: PipelineJson): PipelineValidationContext;
@@ -0,0 +1,7 @@
1
+ import type { PipelineValidationContext } from './createPipelineValidationContext';
2
+ /**
3
+ * Validates that the expected top-level collections have array structure.
4
+ *
5
+ * @private function of `validatePipeline`
6
+ */
7
+ export declare function validatePipelineCollectionsStructure({ pipeline, pipelineIdentification, }: PipelineValidationContext): void;
@@ -0,0 +1,7 @@
1
+ import type { PipelineValidationContext } from './createPipelineValidationContext';
2
+ /**
3
+ * Validates that task dependencies can be resolved without cycles or missing definitions.
4
+ *
5
+ * @private function of `validatePipeline`
6
+ */
7
+ export declare function validatePipelineDependencyResolution({ pipeline, pipelineIdentification, }: PipelineValidationContext): void;