@promptbook/cli 0.112.0-71 → 0.112.0-73

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 (223) hide show
  1. package/esm/index.es.js +12075 -9548
  2. package/esm/index.es.js.map +1 -1
  3. package/esm/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +33 -0
  4. package/esm/scripts/run-agent-messages/main/synchronizeGithubAgentRunnerRepositories.d.ts +5 -1
  5. package/esm/scripts/run-agent-messages/main/tickAgentMessages.d.ts +21 -0
  6. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +1 -1
  7. package/esm/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +4 -0
  8. package/esm/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +25 -0
  9. package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  10. package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +1 -0
  11. package/esm/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +1 -1
  12. package/esm/scripts/run-codex-prompts/prompts/buildScriptPath.d.ts +2 -2
  13. package/esm/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +25 -0
  14. package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +19 -0
  15. package/esm/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +4 -0
  16. package/esm/src/book-3.0/Book.d.ts +6 -0
  17. package/esm/src/book-components/Chat/save/_common/chatExportRendering.d.ts +28 -0
  18. package/esm/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  19. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +1 -1
  20. package/esm/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  21. package/esm/src/book-components/Chat/save/index.d.ts +4 -4
  22. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +1 -1
  23. package/esm/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  24. package/esm/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +3 -2
  25. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +2 -2
  26. package/esm/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  27. package/esm/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  28. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  29. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  30. package/esm/src/cli/cli-commands/agent/agentRunCliOptions.d.ts +14 -2
  31. package/esm/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +2 -0
  32. package/esm/src/cli/cli-commands/common/handleActionErrors.d.ts +9 -4
  33. package/esm/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  34. package/esm/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  35. package/esm/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  36. package/esm/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  37. package/esm/src/cli/cli-commands/run.d.ts +1 -1
  38. package/esm/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  39. package/esm/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  40. package/esm/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  41. package/esm/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  42. package/esm/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  43. package/esm/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  44. package/esm/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  45. package/esm/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  46. package/esm/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  47. package/esm/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  48. package/esm/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  49. package/esm/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  50. package/esm/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  51. package/esm/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  52. package/esm/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  53. package/esm/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  54. package/esm/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  55. package/esm/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  56. package/esm/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  57. package/esm/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  58. package/esm/src/execution/resolveTaskTldr.d.ts +32 -0
  59. package/esm/src/execution/resolveTaskTldr.test.d.ts +1 -0
  60. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +22 -63
  61. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  62. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  63. package/esm/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  64. package/esm/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  65. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +16 -93
  66. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  67. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  68. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  69. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +24 -120
  70. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  71. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  72. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  73. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  74. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +9 -28
  75. package/esm/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  76. package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  77. package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  78. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  79. package/esm/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  80. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +1 -98
  81. package/esm/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  82. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  83. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  84. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  85. package/esm/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  86. package/esm/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  87. package/esm/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  88. package/esm/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  89. package/esm/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  90. package/esm/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  91. package/esm/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  92. package/esm/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  93. package/esm/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  94. package/esm/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  95. package/esm/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  96. package/esm/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  97. package/esm/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  98. package/esm/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  99. package/esm/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  100. package/esm/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  101. package/esm/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  102. package/esm/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  103. package/esm/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  104. package/esm/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  105. package/esm/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  106. package/esm/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  107. package/esm/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  108. package/esm/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -0
  109. package/esm/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  110. package/esm/src/version.d.ts +1 -1
  111. package/package.json +1 -1
  112. package/umd/index.umd.js +12077 -9551
  113. package/umd/index.umd.js.map +1 -1
  114. package/umd/scripts/run-agent-messages/main/agentIgnorePatterns.d.ts +33 -0
  115. package/umd/scripts/run-agent-messages/main/synchronizeGithubAgentRunnerRepositories.d.ts +5 -1
  116. package/umd/scripts/run-agent-messages/main/tickAgentMessages.d.ts +21 -0
  117. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +1 -1
  118. package/umd/scripts/run-agent-messages/ui/agentRunUiConstants.d.ts +4 -0
  119. package/umd/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +25 -0
  120. package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  121. package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +1 -0
  122. package/umd/scripts/run-codex-prompts/git/pullLatestChanges.d.ts +1 -1
  123. package/umd/scripts/run-codex-prompts/prompts/buildScriptPath.d.ts +2 -2
  124. package/umd/scripts/run-codex-prompts/ui/CoderRunUiState.d.ts +25 -0
  125. package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +19 -0
  126. package/umd/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +4 -0
  127. package/umd/src/book-3.0/Book.d.ts +6 -0
  128. package/umd/src/book-components/Chat/save/_common/chatExportRendering.d.ts +28 -0
  129. package/umd/src/book-components/Chat/save/_common/getPromptbookExportBranding.d.ts +18 -0
  130. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.d.ts +1 -1
  131. package/umd/src/book-components/Chat/save/html/htmlSaveFormatDefinition.test.d.ts +1 -0
  132. package/umd/src/book-components/Chat/save/index.d.ts +4 -4
  133. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.d.ts +1 -1
  134. package/umd/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.test.d.ts +1 -0
  135. package/umd/src/book-components/Chat/save/pdf/buildChatPdf.d.ts +3 -2
  136. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.d.ts +2 -2
  137. package/umd/src/book-components/Chat/save/pdf/pdfSaveFormatDefinition.test.d.ts +1 -0
  138. package/umd/src/book-components/Chat/save/react/reactSaveFormatDefinition.test.d.ts +1 -0
  139. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.test.d.ts +1 -0
  140. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +26 -0
  141. package/umd/src/cli/cli-commands/agent/agentRunCliOptions.d.ts +14 -2
  142. package/umd/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +2 -0
  143. package/umd/src/cli/cli-commands/common/handleActionErrors.d.ts +9 -4
  144. package/umd/src/cli/cli-commands/run/prepareRunCommandResources.d.ts +20 -0
  145. package/umd/src/cli/cli-commands/run/resolveRunInputParameters.d.ts +12 -0
  146. package/umd/src/cli/cli-commands/run/runCommandAction.d.ts +21 -0
  147. package/umd/src/cli/cli-commands/run/runPipelineExecution.d.ts +14 -0
  148. package/umd/src/cli/cli-commands/run.d.ts +1 -1
  149. package/umd/src/conversion/parsePipeline/applyPipelineHead.d.ts +8 -0
  150. package/umd/src/conversion/parsePipeline/createInitialPipelineJson.d.ts +8 -0
  151. package/umd/src/conversion/parsePipeline/createUniqueSectionNameResolver.d.ts +14 -0
  152. package/umd/src/conversion/parsePipeline/defineParameter.d.ts +8 -0
  153. package/umd/src/conversion/parsePipeline/extractPipelineDescription.d.ts +6 -0
  154. package/umd/src/conversion/parsePipeline/finalizeParsedPipeline.d.ts +8 -0
  155. package/umd/src/conversion/parsePipeline/getPipelineIdentification.d.ts +7 -0
  156. package/umd/src/conversion/parsePipeline/parsePreparedPipelineSections.d.ts +18 -0
  157. package/umd/src/conversion/parsePipeline/preparePipelineString.d.ts +8 -0
  158. package/umd/src/conversion/parsePipeline/processPipelineSection.d.ts +9 -0
  159. package/umd/src/conversion/pipelineJsonToString/appendMarkdownBlock.d.ts +7 -0
  160. package/umd/src/conversion/pipelineJsonToString/createPipelineCommands.d.ts +7 -0
  161. package/umd/src/conversion/pipelineJsonToString/createPipelineIntroduction.d.ts +8 -0
  162. package/umd/src/conversion/pipelineJsonToString/createTaskSerialization.d.ts +23 -0
  163. package/umd/src/conversion/pipelineJsonToString/stringifyCommands.d.ts +7 -0
  164. package/umd/src/conversion/pipelineJsonToString/stringifyTask.d.ts +8 -0
  165. package/umd/src/conversion/pipelineJsonToString.test.d.ts +1 -0
  166. package/umd/src/execution/createPipelineExecutor/executeSingleAttempt.d.ts +31 -0
  167. package/umd/src/execution/createPipelineExecutor/handleAttemptFailure.d.ts +40 -0
  168. package/umd/src/execution/createPipelineExecutor/reportPromptExecution.d.ts +34 -0
  169. package/umd/src/execution/resolveTaskTldr.d.ts +32 -0
  170. package/umd/src/execution/resolveTaskTldr.test.d.ts +1 -0
  171. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +22 -63
  172. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsAgentKitRunner.d.ts +51 -0
  173. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsOpenAiAssistantRunner.d.ts +43 -0
  174. package/umd/src/llm-providers/agent/AgentLlmExecutionToolsPromptPreparer.d.ts +41 -0
  175. package/umd/src/llm-providers/agent/emitAgentLlmExecutionToolsAssistantPreparationProgress.d.ts +26 -0
  176. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +16 -93
  177. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsInputBuilder.d.ts +41 -0
  178. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOutputTypeMapper.d.ts +56 -0
  179. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +99 -0
  180. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +24 -120
  181. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsProgressReporter.d.ts +62 -0
  182. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsPromptBuilder.d.ts +29 -0
  183. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +63 -0
  184. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +89 -0
  185. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +9 -28
  186. package/umd/src/llm-providers/openai/OpenAiCompatibleModelCatalog.d.ts +31 -0
  187. package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +57 -0
  188. package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +29 -0
  189. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchHandler.d.ts +51 -0
  190. package/umd/src/llm-providers/openai/OpenAiVectorStoreFileBatchPoller.d.ts +75 -0
  191. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +1 -98
  192. package/umd/src/llm-providers/openai/OpenAiVectorStoreKnowledgeSourcePreparer.d.ts +44 -0
  193. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatProgressReporter.d.ts +86 -0
  194. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.d.ts +57 -0
  195. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.d.ts +57 -0
  196. package/umd/src/remote-server/startRemoteServer/RemoteServerRuntime.d.ts +14 -0
  197. package/umd/src/remote-server/startRemoteServer/SocketResponse.d.ts +9 -0
  198. package/umd/src/remote-server/startRemoteServer/StartRemoteServerConfiguration.d.ts +18 -0
  199. package/umd/src/remote-server/startRemoteServer/createRemoteServerExpressApp.d.ts +7 -0
  200. package/umd/src/remote-server/startRemoteServer/createRemoteServerHandle.d.ts +11 -0
  201. package/umd/src/remote-server/startRemoteServer/createSocketServer.d.ts +9 -0
  202. package/umd/src/remote-server/startRemoteServer/getExecutionToolsFromIdentification.d.ts +12 -0
  203. package/umd/src/remote-server/startRemoteServer/registerBookRoutes.d.ts +7 -0
  204. package/umd/src/remote-server/startRemoteServer/registerExecutionRoutes.d.ts +7 -0
  205. package/umd/src/remote-server/startRemoteServer/registerListModelsSocketHandler.d.ts +8 -0
  206. package/umd/src/remote-server/startRemoteServer/registerLoginRoute.d.ts +7 -0
  207. package/umd/src/remote-server/startRemoteServer/registerNotFoundRoute.d.ts +7 -0
  208. package/umd/src/remote-server/startRemoteServer/registerOpenAiCompatibleChatCompletionsRoute.d.ts +7 -0
  209. package/umd/src/remote-server/startRemoteServer/registerOpenApiRoutes.d.ts +7 -0
  210. package/umd/src/remote-server/startRemoteServer/registerPreparePipelineSocketHandler.d.ts +8 -0
  211. package/umd/src/remote-server/startRemoteServer/registerPromptSocketHandler.d.ts +8 -0
  212. package/umd/src/remote-server/startRemoteServer/registerRemoteServerHttpRoutes.d.ts +7 -0
  213. package/umd/src/remote-server/startRemoteServer/registerRemoteServerSocketHandlers.d.ts +8 -0
  214. package/umd/src/remote-server/startRemoteServer/registerServerIndexRoute.d.ts +7 -0
  215. package/umd/src/remote-server/startRemoteServer/resolveStartRemoteServerConfiguration.d.ts +8 -0
  216. package/umd/src/remote-server/startRemoteServer/respondToSocketRequest.d.ts +8 -0
  217. package/umd/src/remote-server/startRemoteServer/startListening.d.ts +9 -0
  218. package/umd/src/scrapers/_common/utils/makeKnowledgeSourceHandler.d.ts +14 -1
  219. package/umd/src/utils/serialization/serializeToPromptbookJavascript.d.ts +2 -0
  220. package/umd/src/utils/serialization/serializeToPromptbookJavascript.test.d.ts +1 -0
  221. package/umd/src/version.d.ts +1 -1
  222. package/esm/scripts/run-agent-messages/main/withCurrentWorkingDirectory.d.ts +0 -4
  223. package/umd/scripts/run-agent-messages/main/withCurrentWorkingDirectory.d.ts +0 -4
@@ -0,0 +1,33 @@
1
+ import type { string_book } from '../../../src/book-2.0/agent-source/string_book';
2
+ /**
3
+ * Prefix used by external runner repositories whose names carry the stable agent id.
4
+ */
5
+ export declare const AGENT_RUNNER_REPOSITORY_PREFIX = "agent-";
6
+ /**
7
+ * Agent identity fields tested by `ptbk agent run-multiple --ignore`.
8
+ */
9
+ export type AgentIgnoreIdentity = {
10
+ readonly agentName?: string;
11
+ readonly normalizedAgentName?: string;
12
+ readonly agentId?: string;
13
+ readonly repositoryName?: string;
14
+ };
15
+ /**
16
+ * Case-insensitive wildcard matcher for `ptbk agent run-multiple --ignore`.
17
+ */
18
+ export type AgentIgnoreMatcher = {
19
+ readonly isEnabled: boolean;
20
+ readonly isIgnored: (identity: AgentIgnoreIdentity) => boolean;
21
+ };
22
+ /**
23
+ * Creates a case-insensitive matcher for agent ignore patterns.
24
+ */
25
+ export declare function createAgentIgnoreMatcher(ignorePatterns: readonly string[] | undefined): AgentIgnoreMatcher;
26
+ /**
27
+ * Builds ignore identity fields from an agent source book.
28
+ */
29
+ export declare function createAgentIgnoreIdentityFromAgentSource(agentSource: string_book): AgentIgnoreIdentity;
30
+ /**
31
+ * Extracts the stable id part from canonical `agent-<id>` runner repository names.
32
+ */
33
+ export declare function resolveAgentIdFromRepositoryName(repositoryName: string): string | undefined;
@@ -1,3 +1,4 @@
1
+ import { type AgentIgnoreMatcher } from './agentIgnorePatterns';
1
2
  /**
2
3
  * Environment variable carrying the GitHub token used to discover and clone agent repositories.
3
4
  */
@@ -11,6 +12,7 @@ export declare const PROMPTBOOK_AGENT_RUNNER_GITHUB_OWNER_ENV = "PROMPTBOOK_AGEN
11
12
  */
12
13
  export type GithubAgentRunnerRepositoriesSynchronizationResult = {
13
14
  readonly clonedRepositoryNames: ReadonlyArray<string>;
15
+ readonly ignoredRepositoryNames?: ReadonlyArray<string>;
14
16
  readonly owner?: string;
15
17
  readonly synchronizedAt?: number;
16
18
  };
@@ -24,4 +26,6 @@ export declare function loadAgentRunnerGithubConfiguration(): {
24
26
  /**
25
27
  * Clones missing `agent-*` repositories from the configured GitHub owner into the direct child directories of `rootPath`.
26
28
  */
27
- export declare function synchronizeGithubAgentRunnerRepositories(rootPath: string): Promise<GithubAgentRunnerRepositoriesSynchronizationResult>;
29
+ export declare function synchronizeGithubAgentRunnerRepositories(rootPath: string, options?: {
30
+ readonly ignoreMatcher?: AgentIgnoreMatcher;
31
+ }): Promise<GithubAgentRunnerRepositoriesSynchronizationResult>;
@@ -1,4 +1,6 @@
1
+ import type { PromptStats } from '../../run-codex-prompts/prompts/types/PromptStats';
1
2
  import { type CoderRunUiHandle } from '../../run-codex-prompts/ui/renderCoderRunUi';
3
+ import type { AgentRunMessagePreviewSection, AgentRunStatusTableRow } from '../../run-codex-prompts/ui/buildCoderRunUiFrame';
2
4
  import type { AgentRunOptions } from '../AgentRunOptions';
3
5
  import type { AgentMessageFile } from '../messages/AgentMessageFile';
4
6
  import { type FinishedAgentMessageFile } from '../messages/moveAgentMessageToFinished';
@@ -16,7 +18,26 @@ export type AgentTickResult = {
16
18
  */
17
19
  export type TickAgentMessagesOptions = {
18
20
  readonly isQuietWhenIdle?: boolean;
21
+ readonly projectPath?: string;
19
22
  readonly uiHandle?: CoderRunUiHandle;
23
+ readonly uiPresentation?: AgentTickUiPresentation;
24
+ };
25
+ /**
26
+ * Optional rich UI presentation overrides used by shared multi-agent sessions.
27
+ */
28
+ export type AgentTickUiPresentation = {
29
+ readonly isSharedDashboard?: boolean;
30
+ readonly sessionAgentName?: string;
31
+ readonly agentStatusLines?: readonly string[];
32
+ readonly agentStatusTableRows?: readonly AgentRunStatusTableRow[];
33
+ readonly messagePreviewLines?: readonly string[];
34
+ readonly messagePreviewSections?: readonly AgentRunMessagePreviewSection[];
35
+ readonly progressStats?: PromptStats;
36
+ readonly completedAgentStatusLines?: readonly string[];
37
+ readonly completedAgentStatusTableRows?: readonly AgentRunStatusTableRow[];
38
+ readonly completedMessagePreviewLines?: readonly string[];
39
+ readonly completedMessagePreviewSections?: readonly AgentRunMessagePreviewSection[];
40
+ readonly completedProgressStats?: PromptStats;
20
41
  };
21
42
  /**
22
43
  * Answers one queued `.book` message thread and moves it to `messages/finished`.
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Builds the prompt sent to the selected coding runner for one queued user-thread book.
3
3
  */
4
- export declare function buildAgentMessagePrompt(messageRelativePath: string): string;
4
+ export declare function buildAgentMessagePrompt(messageRelativePath: string, agentSystemMessage: string): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Shared idle placeholder rendered in the rich `ptbk agent` terminal UI.
3
+ */
4
+ export declare const WAITING_FOR_MESSAGE_LABEL = "Waiting for the message";
@@ -6,14 +6,39 @@ export type AgentRunUiMetadata = {
6
6
  readonly localAgentName: string;
7
7
  readonly latestUserMessageLines: readonly string[];
8
8
  };
9
+ /**
10
+ * Local agent identity rendered in the rich `ptbk agent run` dashboard.
11
+ */
12
+ export type AgentRunUiIdentity = {
13
+ readonly localAgentName: string;
14
+ readonly normalizedAgentName?: string;
15
+ readonly agentId?: string;
16
+ readonly localAgentUrl?: string;
17
+ };
18
+ /**
19
+ * Preview of one queued `.book` thread used by the rich terminal UI.
20
+ */
21
+ export type AgentRunQueuedMessagePreview = {
22
+ readonly queuedMessage: AgentMessageFile;
23
+ readonly latestUserMessageLines: readonly string[];
24
+ readonly latestUserMessageSummary: string;
25
+ };
9
26
  /**
10
27
  * Reads the local agent title and latest queued user message for the rich agent dashboard.
11
28
  */
12
29
  export declare function loadAgentRunUiMetadata(projectPath: string, queuedMessage: AgentMessageFile): Promise<AgentRunUiMetadata>;
30
+ /**
31
+ * Reads and summarizes the latest queued user message from one thread book.
32
+ */
33
+ export declare function loadAgentRunQueuedMessagePreview(queuedMessage: AgentMessageFile): Promise<AgentRunQueuedMessagePreview>;
13
34
  /**
14
35
  * Reads the local `agent.book` title and falls back to a stable generic name when unavailable.
15
36
  */
16
37
  export declare function readLocalAgentName(projectPath: string): Promise<string>;
38
+ /**
39
+ * Reads the local `agent.book` identity and falls back to stable defaults when unavailable.
40
+ */
41
+ export declare function readLocalAgentUiIdentity(projectPath: string): Promise<AgentRunUiIdentity>;
17
42
  /**
18
43
  * Extracts the latest `MESSAGE @User` block while preserving the original line breaks.
19
44
  */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Options used to build one Promptbook-owned temporary shell script path.
3
+ */
4
+ type BuildTemporaryPromptScriptPathOptions = {
5
+ readonly projectPath: string;
6
+ readonly scriptDirectoryName: string;
7
+ readonly sourceFileName: string;
8
+ readonly suffix?: string;
9
+ };
10
+ /**
11
+ * Builds a normalized temporary shell script path for prompt runners.
12
+ */
13
+ export declare function buildTemporaryPromptScriptPath(options: BuildTemporaryPromptScriptPathOptions): string;
14
+ export {};
@@ -7,4 +7,5 @@ export declare function commitChanges(message: string, options?: {
7
7
  autoPush?: boolean;
8
8
  includePaths?: ReadonlyArray<string>;
9
9
  excludePaths?: ReadonlyArray<string>;
10
+ projectPath?: string;
10
11
  }): Promise<void>;
@@ -1,4 +1,4 @@
1
1
  /**
2
2
  * Pulls the latest repository changes before the next prompt starts.
3
3
  */
4
- export declare function pullLatestChanges(): Promise<void>;
4
+ export declare function pullLatestChanges(projectPath?: string): Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import type { PromptFile } from './types/PromptFile';
2
2
  import type { PromptSection } from './types/PromptSection';
3
3
  /**
4
- * Builds the script path for a prompt section.
4
+ * Builds the temporary script path for a prompt section.
5
5
  */
6
- export declare function buildScriptPath(file: PromptFile, section: PromptSection): string;
6
+ export declare function buildScriptPath(file: PromptFile, section: PromptSection, projectPath?: string): string;
@@ -2,6 +2,7 @@
2
2
  import { EventEmitter } from 'events';
3
3
  import moment from 'moment';
4
4
  import { type CoderRunProgressSnapshot } from '../common/buildCoderRunProgressSnapshot';
5
+ import type { AgentRunMessagePreviewSection, AgentRunStatusTableRow } from './buildCoderRunUiFrame';
5
6
  import type { PromptStats } from '../prompts/types/PromptStats';
6
7
  /**
7
8
  * Execution phase of the coder run process.
@@ -40,10 +41,14 @@ export type { CoderRunProgressSnapshot };
40
41
  export declare class CoderRunUiState extends EventEmitter {
41
42
  config: CoderRunConfig;
42
43
  currentPromptLabel: string;
44
+ currentScriptPaths: string[];
43
45
  currentAttempt: number;
44
46
  maxAttempts: number;
45
47
  detailLines: string[];
46
48
  messagePreviewLines: string[];
49
+ messagePreviewSections: AgentRunMessagePreviewSection[];
50
+ agentStatusLines: string[];
51
+ agentStatusTableRows: AgentRunStatusTableRow[];
47
52
  pendingEnterLabel: string | undefined;
48
53
  agentOutputLines: string[];
49
54
  phase: CoderRunPhase;
@@ -77,6 +82,14 @@ export declare class CoderRunUiState extends EventEmitter {
77
82
  * Sets the label of the prompt currently being processed and resets per-prompt state.
78
83
  */
79
84
  setCurrentPrompt(label: string): void;
85
+ /**
86
+ * Sets the temporary shell script currently used by the active prompt.
87
+ */
88
+ setCurrentScriptPath(scriptPath: string | undefined): void;
89
+ /**
90
+ * Sets multiple temporary shell scripts used by a shared multi-agent session.
91
+ */
92
+ setCurrentScriptPaths(scriptPaths: readonly string[]): void;
80
93
  /**
81
94
  * Updates the current retry attempt number.
82
95
  */
@@ -101,6 +114,18 @@ export declare class CoderRunUiState extends EventEmitter {
101
114
  * Replaces the exact user-message preview lines shown in agent-specific panels.
102
115
  */
103
116
  setMessagePreviewLines(messagePreviewLines: string[]): void;
117
+ /**
118
+ * Replaces the structured user-message panels shown in agent-specific dashboards.
119
+ */
120
+ setMessagePreviewSections(messagePreviewSections: AgentRunMessagePreviewSection[]): void;
121
+ /**
122
+ * Replaces agent status rows shown by agent-specific terminal frames.
123
+ */
124
+ setAgentStatusLines(agentStatusLines: string[]): void;
125
+ /**
126
+ * Replaces structured agent status rows shown by agent-specific terminal frames.
127
+ */
128
+ setAgentStatusTableRows(agentStatusTableRows: AgentRunStatusTableRow[]): void;
104
129
  /**
105
130
  * Sets or clears the Enter-key action label shown in the controls panel.
106
131
  */
@@ -15,16 +15,35 @@ export type BuildCoderRunUiFrameOptions = {
15
15
  readonly config: CoderRunConfig;
16
16
  readonly phase: CoderRunPhase;
17
17
  readonly currentPromptLabel: string;
18
+ readonly currentScriptPaths?: readonly string[];
18
19
  readonly currentAttempt: number;
19
20
  readonly maxAttempts: number;
20
21
  readonly statusMessage: string;
21
22
  readonly detailLines: readonly string[];
22
23
  readonly messagePreviewLines?: readonly string[];
24
+ readonly messagePreviewSections?: readonly AgentRunMessagePreviewSection[];
25
+ readonly agentStatusLines?: readonly string[];
26
+ readonly agentStatusTableRows?: readonly AgentRunStatusTableRow[];
23
27
  readonly pendingEnterLabel?: string;
24
28
  readonly agentOutputLines: readonly string[];
25
29
  readonly errors: readonly string[];
26
30
  readonly progress: CoderRunProgressSnapshot;
27
31
  };
32
+ /**
33
+ * Structured row rendered in the agent-run `Agents` table.
34
+ */
35
+ export type AgentRunStatusTableRow = {
36
+ readonly status: 'Idle' | 'Answering';
37
+ readonly agentName: string;
38
+ readonly url: string;
39
+ };
40
+ /**
41
+ * Structured user-message panel rendered by the agent-run dashboard.
42
+ */
43
+ export type AgentRunMessagePreviewSection = {
44
+ readonly title: string;
45
+ readonly messagePreviewLines: readonly string[];
46
+ };
28
47
  /**
29
48
  * Builds the complete boxed terminal frame for the rich `ptbk coder run` UI.
30
49
  */
@@ -35,6 +35,10 @@ export declare function renderBox(title: string, lines: readonly string[], total
35
35
  * Builds one aligned labeled line inside the session box.
36
36
  */
37
37
  export declare function buildLabeledSessionLine(label: string, value: string, bodyWidth: number): string;
38
+ /**
39
+ * Builds session rows with clickable links to active temporary runner shell scripts.
40
+ */
41
+ export declare function buildScriptPathSessionRows(scriptPaths: readonly string[], bodyWidth: number): readonly SessionRow[];
38
42
  /**
39
43
  * Builds the colored phase badge shown in the session box.
40
44
  */
@@ -24,6 +24,12 @@ export declare class Book {
24
24
  private constructor();
25
25
  stringify(): string_book;
26
26
  getMessages(): ReadonlyArray<ChatMessage>;
27
+ /**
28
+ * Gets the newest parsed chat message written by the given sender.
29
+ *
30
+ * @public exported from `@promptbook/core`
31
+ */
32
+ getLatestMessageBySender(sender: string): ChatMessage | null;
27
33
  }
28
34
  type Commitment = {
29
35
  type: string;
@@ -0,0 +1,28 @@
1
+ import type { ChatParticipant } from '../../types/ChatParticipant';
2
+ /**
3
+ * Minimal participant visuals needed by chat exports.
4
+ *
5
+ * @private internal utility of chat save format definitions
6
+ */
7
+ export type ChatExportParticipantVisuals = {
8
+ readonly displayName: string;
9
+ readonly accentColor: string;
10
+ };
11
+ /**
12
+ * Formats exported timestamps into a compact human-readable label.
13
+ *
14
+ * @private internal utility of chat save format definitions
15
+ */
16
+ export declare function formatChatExportTimestamp(value?: string | Date): string;
17
+ /**
18
+ * Builds a participant lookup indexed by both raw and upper-cased names.
19
+ *
20
+ * @private internal utility of chat save format definitions
21
+ */
22
+ export declare function buildChatExportParticipantMap(participants: ReadonlyArray<ChatParticipant>): ReadonlyMap<string, ChatParticipant>;
23
+ /**
24
+ * Resolves the display label and accent color for one message sender.
25
+ *
26
+ * @private internal utility of chat save format definitions
27
+ */
28
+ export declare function resolveChatExportParticipantVisuals(participants: ReadonlyMap<string, ChatParticipant>, sender: string): ChatExportParticipantVisuals;
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Promptbook branding metadata embedded into standalone chat exports.
3
+ */
4
+ type PromptbookExportBranding = {
5
+ readonly productName: string;
6
+ readonly creatorTool: string;
7
+ readonly metadataSummary: string;
8
+ readonly keywords: ReadonlyArray<string>;
9
+ readonly commentLines: ReadonlyArray<string>;
10
+ readonly detailLines: ReadonlyArray<string>;
11
+ };
12
+ /**
13
+ * Builds shared Promptbook export branding for standalone save formats.
14
+ *
15
+ * @private internal utility of chat save format definitions
16
+ */
17
+ export declare function getPromptbookExportBranding(): PromptbookExportBranding;
18
+ export {};
@@ -7,7 +7,7 @@ import type { ChatParticipant } from '../../types/ChatParticipant';
7
7
  */
8
8
  export declare const htmlSaveFormatDefinition: {
9
9
  readonly formatName: "html";
10
- readonly label: "Html";
10
+ readonly label: "HTML";
11
11
  readonly getContent: ({ title, messages, participants }: {
12
12
  readonly title: string;
13
13
  readonly messages: readonly ChatMessage[];
@@ -26,7 +26,7 @@ export declare const CHAT_SAVE_FORMATS: readonly [{
26
26
  }, {
27
27
  readonly formatName: "md";
28
28
  readonly label: "Markdown";
29
- readonly getContent: ({ messages }: {
29
+ readonly getContent: ({ messages, participants }: {
30
30
  readonly title: string;
31
31
  readonly messages: readonly import("../types/ChatMessage").ChatMessage[];
32
32
  readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[];
@@ -35,7 +35,7 @@ export declare const CHAT_SAVE_FORMATS: readonly [{
35
35
  readonly fileExtension: "md";
36
36
  }, {
37
37
  readonly formatName: "html";
38
- readonly label: "Html";
38
+ readonly label: "HTML";
39
39
  readonly getContent: ({ title, messages, participants }: {
40
40
  readonly title: string;
41
41
  readonly messages: readonly import("../types/ChatMessage").ChatMessage[];
@@ -55,8 +55,8 @@ export declare const CHAT_SAVE_FORMATS: readonly [{
55
55
  readonly fileExtension: "jsx";
56
56
  }, {
57
57
  readonly formatName: "pdf";
58
- readonly label: "Pdf";
59
- readonly getContent: ({ messages, participants }: {
58
+ readonly label: "PDF";
59
+ readonly getContent: ({ title, messages, participants }: {
60
60
  readonly title: string;
61
61
  readonly messages: readonly import("../types/ChatMessage").ChatMessage[];
62
62
  readonly participants: readonly import("../types/ChatParticipant").ChatParticipant[];
@@ -6,7 +6,7 @@
6
6
  export declare const mdSaveFormatDefinition: {
7
7
  readonly formatName: "md";
8
8
  readonly label: "Markdown";
9
- readonly getContent: ({ messages }: {
9
+ readonly getContent: ({ messages, participants }: {
10
10
  readonly title: string;
11
11
  readonly messages: readonly import("../../types/ChatMessage").ChatMessage[];
12
12
  readonly participants: readonly import("../../types/ChatParticipant").ChatParticipant[];
@@ -1,12 +1,13 @@
1
1
  import type { ChatMessage } from '../../types/ChatMessage';
2
2
  import type { ChatParticipant } from '../../types/ChatParticipant';
3
3
  /**
4
- * Creates a minimal PDF representation of the provided chat.
4
+ * Builds a polished PDF representation of the provided chat.
5
5
  *
6
+ * @param title - Title used in the PDF heading and metadata.
6
7
  * @param messages - Messages that should be included in the PDF export.
7
8
  * @param participants - Optional participant metadata to resolve sender names.
8
9
  * @returns Binary data for the generated PDF file.
9
10
  *
10
11
  * @private Internal helper used by `pdfSaveFormatDefinition`.
11
12
  */
12
- export declare function buildChatPdf(messages: ReadonlyArray<ChatMessage>, participants?: ReadonlyArray<ChatParticipant>): Uint8Array;
13
+ export declare function buildChatPdf(title: string, messages: ReadonlyArray<ChatMessage>, participants?: ReadonlyArray<ChatParticipant>): Uint8Array;
@@ -5,8 +5,8 @@
5
5
  */
6
6
  export declare const pdfSaveFormatDefinition: {
7
7
  readonly formatName: "pdf";
8
- readonly label: "Pdf";
9
- readonly getContent: ({ messages, participants }: {
8
+ readonly label: "PDF";
9
+ readonly getContent: ({ title, messages, participants }: {
10
10
  readonly title: string;
11
11
  readonly messages: readonly import("../../types/ChatMessage").ChatMessage[];
12
12
  readonly participants: readonly import("../../types/ChatParticipant").ChatParticipant[];
@@ -0,0 +1,26 @@
1
+ import type { string_html, string_markdown } from '../../../types/string_markdown';
2
+ /**
3
+ * Options for markdown rendering.
4
+ */
5
+ type RenderMarkdownOptions = {
6
+ readonly citationReferenceClassName?: string;
7
+ };
8
+ /**
9
+ * Convert markdown content to HTML.
10
+ *
11
+ * @param markdown - The markdown content to convert.
12
+ * @returns HTML string ready for rendering.
13
+ *
14
+ * @private internal utility of chat components and exports
15
+ */
16
+ export declare function renderMarkdown(markdown: string_markdown, options?: RenderMarkdownOptions): string_html;
17
+ /**
18
+ * Detects whether text appears to contain markdown syntax.
19
+ *
20
+ * @param markdown - The text to inspect.
21
+ * @returns Whether the text contains known markdown markers.
22
+ *
23
+ * @private internal utility of chat components and exports
24
+ */
25
+ export declare function isMarkdownContent(markdown: string_markdown): boolean;
26
+ export {};
@@ -4,10 +4,22 @@ import type { NormalizedPromptRunnerCliOptions, PromptRunnerCliOptions } from '.
4
4
  *
5
5
  * @private internal utility of `ptbk agent`
6
6
  */
7
- export type AgentRunCliOptions = PromptRunnerCliOptions;
7
+ export type AgentRunCliOptions = PromptRunnerCliOptions & {
8
+ readonly autoClone?: boolean;
9
+ readonly ignore?: string | readonly string[];
10
+ };
11
+ /**
12
+ * Normalized options passed from `ptbk agent` CLI commands to the message runner.
13
+ *
14
+ * @private internal utility of `ptbk agent`
15
+ */
16
+ export type NormalizedAgentRunCliOptions = NormalizedPromptRunnerCliOptions & {
17
+ readonly autoClone: boolean;
18
+ readonly ignorePatterns: readonly string[];
19
+ };
8
20
  /**
9
21
  * Converts Commander options into the `scripts/run-agent-messages` option shape.
10
22
  *
11
23
  * @private internal utility of `ptbk agent`
12
24
  */
13
- export declare function createAgentRunOptionsFromCliOptions(cliOptions: AgentRunCliOptions): NormalizedPromptRunnerCliOptions;
25
+ export declare function createAgentRunOptionsFromCliOptions(cliOptions: AgentRunCliOptions): NormalizedAgentRunCliOptions;
@@ -11,6 +11,8 @@ type InitializeAgentRunnerCommandOptions = {
11
11
  readonly aliases?: ReadonlyArray<string>;
12
12
  readonly summary: string;
13
13
  readonly featureLines: ReadonlyArray<string>;
14
+ readonly isExitingOnSuccess?: boolean;
15
+ readonly configureCommand?: (command: Program) => void;
14
16
  readonly loadExecutor: () => Promise<(runOptions: ReturnType<typeof createAgentRunOptionsFromCliOptions>) => Promise<unknown>>;
15
17
  };
16
18
  /**
@@ -4,12 +4,17 @@ import type { Command as Program } from 'commander';
4
4
  */
5
5
  type actionCallbackFunction = Parameters<Program['action']>[0];
6
6
  /**
7
- * Wraps action to handle error console logging and exit process with error code
7
+ * Options controlling CLI process-exit behavior after one command action finishes.
8
8
  *
9
- * @param action Action to be wrapped in error handling
10
- * @returns Wrapped action
9
+ * @private internal helper type for CLI commands
10
+ */
11
+ type HandleActionErrorsOptions = {
12
+ readonly isExitingOnSuccess?: boolean;
13
+ };
14
+ /**
15
+ * Wraps action to handle error console logging and exit process with error code.
11
16
  *
12
17
  * @private internal helper function for CLI commands
13
18
  */
14
- export declare function handleActionErrors(action: actionCallbackFunction): actionCallbackFunction;
19
+ export declare function handleActionErrors(action: actionCallbackFunction, options?: HandleActionErrorsOptions): actionCallbackFunction;
15
20
  export {};
@@ -0,0 +1,20 @@
1
+ import type { PipelineExecutor } from '../../../execution/PipelineExecutor';
2
+ import type { PipelineJson } from '../../../pipeline/PipelineJson/PipelineJson';
3
+ import type { PrepareAndScrapeOptions } from '../../../prepare/PrepareAndScrapeOptions';
4
+ import type { RunCommandCliOptions } from './runCommandAction';
5
+ /**
6
+ * Prepares the tools, pipeline, and executor required to run one `ptbk run` invocation.
7
+ *
8
+ * @private internal utility of `$initializeRunCommand`
9
+ */
10
+ export declare function prepareRunCommandResources(options: {
11
+ readonly pipelineSource?: string;
12
+ readonly cliOptions: RunCommandCliOptions;
13
+ readonly prepareAndScrapeOptions: Pick<PrepareAndScrapeOptions, 'isVerbose'> & {
14
+ readonly isCacheReloaded: boolean;
15
+ };
16
+ readonly logStage: (stage: string) => void;
17
+ }): Promise<{
18
+ readonly pipeline: PipelineJson;
19
+ readonly pipelineExecutor: PipelineExecutor;
20
+ }>;
@@ -0,0 +1,12 @@
1
+ import type { PipelineJson } from '../../../pipeline/PipelineJson/PipelineJson';
2
+ import type { string_parameter_name, string_parameter_value } from '../../../types/string_name';
3
+ /**
4
+ * Resolves all missing input parameters while keeping the current interactive and non-interactive behavior.
5
+ *
6
+ * @private internal utility of `$initializeRunCommand`
7
+ */
8
+ export declare function resolveRunInputParameters(options: {
9
+ readonly pipeline: PipelineJson;
10
+ readonly inputParameters: Record<string_parameter_name, string_parameter_value>;
11
+ readonly isInteractive: boolean;
12
+ }): Promise<Record<string_parameter_name, string_parameter_value>>;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * CLI options consumed by the `run` command action.
3
+ *
4
+ * @private internal utility of `$initializeRunCommand`
5
+ */
6
+ export type RunCommandCliOptions = {
7
+ readonly reload: boolean;
8
+ readonly interactive: boolean;
9
+ readonly formfactor: boolean;
10
+ readonly json?: string;
11
+ readonly verbose: boolean;
12
+ readonly saveReport?: string;
13
+ readonly provider: string;
14
+ readonly remoteServerUrl: string;
15
+ };
16
+ /**
17
+ * Runs the whole `ptbk run` flow as a top-down orchestration of focused steps.
18
+ *
19
+ * @private internal utility of `$initializeRunCommand`
20
+ */
21
+ export declare function runCommandAction(pipelineSource: string | undefined, cliOptions: RunCommandCliOptions): Promise<void | never>;
@@ -0,0 +1,14 @@
1
+ import type { PipelineExecutor } from '../../../execution/PipelineExecutor';
2
+ import type { string_parameter_name, string_parameter_value } from '../../../types/string_name';
3
+ /**
4
+ * Executes the pipeline, persists any requested report, and prints the final CLI output.
5
+ *
6
+ * @private internal utility of `$initializeRunCommand`
7
+ */
8
+ export declare function runPipelineExecution(options: {
9
+ readonly pipelineExecutor: PipelineExecutor;
10
+ readonly inputParameters: Record<string_parameter_name, string_parameter_value>;
11
+ readonly isVerbose: boolean;
12
+ readonly json?: string;
13
+ readonly saveReport?: string;
14
+ }): Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { Command as Program } from 'commander';
1
+ import { Command as Program } from 'commander';
2
2
  import type { $side_effect } from '../../utils/organization/$side_effect';
3
3
  /**
4
4
  * Initializes `run` command for Promptbook CLI utilities
@@ -0,0 +1,8 @@
1
+ import type { $PipelineJson } from '../../commands/_common/types/CommandParser';
2
+ import type { MarkdownSection } from '../../utils/markdown/parseMarkdownSection';
3
+ /**
4
+ * Applies the pipeline head title, description, and head-level commands.
5
+ *
6
+ * @private internal utility of `parsePipeline`
7
+ */
8
+ export declare function applyPipelineHead(pipelineHead: MarkdownSection, $pipelineJson: $PipelineJson): void;
@@ -0,0 +1,8 @@
1
+ import type { $PipelineJson } from '../../commands/_common/types/CommandParser';
2
+ import type { PipelineString } from '../../pipeline/PipelineString';
3
+ /**
4
+ * Creates the mutable pipeline JSON structure used throughout parsing.
5
+ *
6
+ * @private internal utility of `parsePipeline`
7
+ */
8
+ export declare function createInitialPipelineJson(pipelineString: PipelineString): $PipelineJson;