@promptbook/node 0.112.0-99 → 0.112.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/README.md +37 -21
  2. package/esm/index.es.js +26872 -22411
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
  5. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
  6. package/esm/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
  7. package/esm/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
  8. package/esm/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
  9. package/esm/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
  10. package/esm/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
  11. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
  12. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
  13. package/esm/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
  14. package/esm/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
  15. package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  16. package/esm/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
  17. package/esm/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
  18. package/esm/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
  19. package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
  20. package/esm/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
  21. package/esm/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
  22. package/esm/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
  23. package/esm/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
  24. package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
  25. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
  26. package/esm/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
  27. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
  28. package/esm/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
  29. package/esm/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
  30. package/esm/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
  31. package/esm/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
  32. package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
  33. package/esm/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
  34. package/esm/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
  35. package/esm/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
  36. package/esm/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
  37. package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
  38. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
  39. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
  40. package/esm/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
  41. package/esm/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
  42. package/esm/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
  43. package/esm/src/_packages/components.index.d.ts +4 -0
  44. package/esm/src/_packages/core.index.d.ts +0 -2
  45. package/esm/src/_packages/node.index.d.ts +40 -0
  46. package/esm/src/_packages/types.index.d.ts +18 -0
  47. package/esm/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  48. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  49. package/esm/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  50. package/esm/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  51. package/esm/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  52. package/esm/src/book-3.0/CliAgent.d.ts +66 -0
  53. package/esm/src/book-3.0/CliAgent.test.d.ts +1 -0
  54. package/esm/src/book-3.0/LiteAgent.d.ts +68 -0
  55. package/esm/src/book-3.0/LiteAgent.test.d.ts +1 -0
  56. package/esm/src/book-3.0/agentFolderPaths.d.ts +30 -0
  57. package/esm/src/book-3.0/cliAgentEnv.d.ts +33 -0
  58. package/esm/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  59. package/esm/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  60. package/esm/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  61. package/esm/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  62. package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  63. package/esm/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  64. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  65. package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  66. package/esm/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  67. package/esm/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  68. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  69. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  70. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  71. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  72. package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  73. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  74. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  75. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  76. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  77. package/esm/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  78. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  79. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  80. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  81. package/esm/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  82. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  83. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  84. package/esm/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  85. package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  86. package/esm/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  87. package/esm/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  88. package/esm/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  89. package/esm/src/book-components/_common/Modal/Modal.d.ts +1 -1
  90. package/esm/src/book-components/icons/AboutIcon.d.ts +1 -1
  91. package/esm/src/book-components/icons/DownloadIcon.d.ts +1 -1
  92. package/esm/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  93. package/esm/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  94. package/esm/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  95. package/esm/src/cli/cli-commands/agent/chat.d.ts +10 -0
  96. package/esm/src/cli/cli-commands/agent/exec.d.ts +10 -0
  97. package/esm/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  98. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  99. package/esm/src/cli/cli-commands/agent.d.ts +14 -0
  100. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +17 -1
  101. package/esm/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  102. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  103. package/esm/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  104. package/esm/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  105. package/esm/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  106. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  107. package/esm/src/cli/cli-commands/coder/server.d.ts +13 -0
  108. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  109. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  110. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  111. package/esm/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  112. package/esm/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  113. package/esm/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  114. package/esm/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  115. package/esm/src/utils/isTimingSafeEqualString.d.ts +25 -0
  116. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  117. package/esm/src/version.d.ts +1 -1
  118. package/package.json +2 -2
  119. package/umd/index.umd.js +26885 -22410
  120. package/umd/index.umd.js.map +1 -1
  121. package/umd/scripts/run-agent-chat/executeAgentChatTurn.d.ts +28 -0
  122. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +4 -0
  123. package/umd/scripts/run-agent-messages/messages/buildAgentMessageScriptPath.d.ts +5 -0
  124. package/umd/scripts/run-agent-messages/messages/createAgentRunnerSystemMessage.d.ts +10 -0
  125. package/umd/scripts/run-codex-prompts/common/ProgressiveBackoff.d.ts +44 -0
  126. package/umd/scripts/run-codex-prompts/common/appendCoderContext.d.ts +4 -0
  127. package/umd/scripts/run-codex-prompts/common/formatUnknownErrorDetails.d.ts +4 -0
  128. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScript.d.ts +5 -0
  129. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptUntilMarkerIdle.d.ts +6 -0
  130. package/umd/scripts/run-codex-prompts/common/runGoScript/$runGoScriptWithOutput.d.ts +5 -0
  131. package/umd/scripts/run-codex-prompts/common/runGoScript/buildScriptLogPath.d.ts +4 -0
  132. package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +14 -0
  133. package/umd/scripts/run-codex-prompts/common/runGoScript/printLiveScriptChunk.d.ts +4 -0
  134. package/umd/scripts/run-codex-prompts/common/runGoScript/runBashScriptWithOutput.d.ts +5 -0
  135. package/umd/scripts/run-codex-prompts/common/runGoScript/runScriptUntilMarkerIdle.d.ts +6 -0
  136. package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +28 -0
  137. package/umd/scripts/run-codex-prompts/common/runGoScript/shouldDeleteTemporaryArtifact.d.ts +7 -0
  138. package/umd/scripts/run-codex-prompts/common/runGoScript/toPosixPath.d.ts +4 -0
  139. package/umd/scripts/run-codex-prompts/common/runGoScript/withPromptRuntimeLog.d.ts +6 -0
  140. package/umd/scripts/run-codex-prompts/common/runGoScript/withTempScript.d.ts +5 -0
  141. package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +24 -0
  142. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +19 -0
  143. package/umd/scripts/run-codex-prompts/runners/claude-code/buildClaudeScript.d.ts +5 -0
  144. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeJsonOutput.d.ts +5 -0
  145. package/umd/scripts/run-codex-prompts/runners/cline/ClineRunner.d.ts +19 -0
  146. package/umd/scripts/run-codex-prompts/runners/cline/buildClineScript.d.ts +5 -0
  147. package/umd/scripts/run-codex-prompts/runners/gemini/GeminiRunner.d.ts +23 -0
  148. package/umd/scripts/run-codex-prompts/runners/gemini/buildGeminiScript.d.ts +5 -0
  149. package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +35 -0
  150. package/umd/scripts/run-codex-prompts/runners/gemini/parseGeminiUsageFromOutput.d.ts +9 -0
  151. package/umd/scripts/run-codex-prompts/runners/github-copilot/GitHubCopilotRunner.d.ts +19 -0
  152. package/umd/scripts/run-codex-prompts/runners/github-copilot/buildGitHubCopilotScript.d.ts +5 -0
  153. package/umd/scripts/run-codex-prompts/runners/openai-codex/CodexFailureHandling.d.ts +21 -0
  154. package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +20 -0
  155. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexScript.d.ts +5 -0
  156. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +10 -0
  157. package/umd/scripts/run-codex-prompts/runners/opencode/OpencodeRunner.d.ts +19 -0
  158. package/umd/scripts/run-codex-prompts/runners/opencode/buildOpencodeScript.d.ts +5 -0
  159. package/umd/scripts/run-codex-prompts/runners/opencode/parseOpencodeJsonOutput.d.ts +5 -0
  160. package/umd/src/_packages/components.index.d.ts +4 -0
  161. package/umd/src/_packages/core.index.d.ts +0 -2
  162. package/umd/src/_packages/node.index.d.ts +40 -0
  163. package/umd/src/_packages/types.index.d.ts +18 -0
  164. package/umd/src/avatars/avatarAnimationScheduler.d.ts +4 -0
  165. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +1 -1
  166. package/umd/src/avatars/visuals/octopus3d3AvatarVisual.d.ts +7 -0
  167. package/umd/src/avatars/visuals/octopus3d4AvatarVisual.d.ts +7 -0
  168. package/umd/src/book-3.0/BookNodeAgentSource.d.ts +38 -0
  169. package/umd/src/book-3.0/CliAgent.d.ts +66 -0
  170. package/umd/src/book-3.0/CliAgent.test.d.ts +1 -0
  171. package/umd/src/book-3.0/LiteAgent.d.ts +68 -0
  172. package/umd/src/book-3.0/LiteAgent.test.d.ts +1 -0
  173. package/umd/src/book-3.0/agentFolderPaths.d.ts +30 -0
  174. package/umd/src/book-3.0/cliAgentEnv.d.ts +33 -0
  175. package/umd/src/book-components/BookEditor/BookEditor.d.ts +6 -5
  176. package/umd/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.d.ts +12 -0
  177. package/umd/src/book-components/BookEditor/BookEditorBrowserConfig.d.ts +2 -0
  178. package/umd/src/book-components/BookEditor/BookEditorForClient.d.ts +7 -0
  179. package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +1 -0
  180. package/umd/src/book-components/BookEditor/BookEditorTheme.d.ts +24 -0
  181. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +9 -0
  182. package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +1 -6
  183. package/umd/src/book-components/BookEditor/useBookEditorMonacoLifecycle.d.ts +1 -4
  184. package/umd/src/book-components/BookEditor/useBookEditorMonacoStyles.d.ts +2 -1
  185. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +2 -0
  186. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  187. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  188. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +5 -0
  189. package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +2 -0
  190. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +3 -1
  191. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +20 -0
  192. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -0
  193. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -0
  194. package/umd/src/book-components/Chat/SourceChip/SourceChip.d.ts +6 -1
  195. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.d.ts +12 -0
  196. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +4 -0
  197. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +1 -1
  198. package/umd/src/book-components/Chat/types/CitationLabelResolver.d.ts +8 -0
  199. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +9 -0
  200. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.d.ts +14 -0
  201. package/umd/src/book-components/Chat/utils/decodeJsonUnicodeEscapesInMarkdownText.test.d.ts +1 -0
  202. package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +10 -0
  203. package/umd/src/book-components/Chat/utils/parseCitationsFromContent.d.ts +4 -0
  204. package/umd/src/book-components/_common/Dropdown/Dropdown.d.ts +1 -1
  205. package/umd/src/book-components/_common/MenuHoisting/MenuHoistingContext.d.ts +1 -1
  206. package/umd/src/book-components/_common/Modal/Modal.d.ts +1 -1
  207. package/umd/src/book-components/icons/AboutIcon.d.ts +1 -1
  208. package/umd/src/book-components/icons/DownloadIcon.d.ts +1 -1
  209. package/umd/src/book-components/icons/ExitFullscreenIcon.d.ts +1 -1
  210. package/umd/src/book-components/icons/FullscreenIcon.d.ts +1 -1
  211. package/umd/src/cli/cli-commands/agent/agentCliOptions.d.ts +38 -0
  212. package/umd/src/cli/cli-commands/agent/chat.d.ts +10 -0
  213. package/umd/src/cli/cli-commands/agent/exec.d.ts +10 -0
  214. package/umd/src/cli/cli-commands/agent/run.test.d.ts +1 -0
  215. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -24
  216. package/umd/src/cli/cli-commands/agent.d.ts +14 -0
  217. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +17 -1
  218. package/umd/src/cli/cli-commands/agents-server/run.d.ts +6 -0
  219. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +9 -2
  220. package/umd/src/cli/cli-commands/coder/ThinkingLevel.d.ts +1 -1
  221. package/umd/src/cli/cli-commands/coder/ensureCoderDeveloperAgentFile.d.ts +25 -0
  222. package/umd/src/cli/cli-commands/coder/find-unwritten.d.ts +10 -0
  223. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +2 -0
  224. package/umd/src/cli/cli-commands/coder/server.d.ts +13 -0
  225. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +14 -0
  226. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -25
  227. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +22 -0
  228. package/umd/src/commitments/_common/teamInternalAgentAccess.d.ts +9 -1
  229. package/umd/src/llm-providers/_common/register/$provideLlmToolsConfigurationFromEnv.d.ts +1 -1
  230. package/umd/src/llm-providers/_common/register/$provideLlmToolsFromEnv.d.ts +1 -1
  231. package/umd/src/scrapers/website/utils/createShowdownConverter.d.ts +2 -2
  232. package/umd/src/utils/isTimingSafeEqualString.d.ts +25 -0
  233. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +5 -0
  234. package/umd/src/version.d.ts +1 -1
@@ -0,0 +1,28 @@
1
+ import type { AgentCliHistoryMessage, AgentCliRunOptions } from './AgentCliRunOptions';
2
+ /**
3
+ * Result of one local agent CLI turn.
4
+ */
5
+ export type AgentChatTurnResult = {
6
+ readonly answer: string;
7
+ readonly workspacePath: string;
8
+ readonly messageFilePath: string;
9
+ readonly agentPath: string;
10
+ };
11
+ /**
12
+ * Options for executing one local agent CLI turn.
13
+ */
14
+ export type ExecuteAgentChatTurnOptions = AgentCliRunOptions & {
15
+ readonly messages: ReadonlyArray<AgentCliHistoryMessage>;
16
+ readonly workspacePath?: string;
17
+ };
18
+ /**
19
+ * Executes one user turn by asking the selected harness to append `MESSAGE @Agent` to a temporary thread book.
20
+ */
21
+ export declare function executeAgentChatTurn(options: ExecuteAgentChatTurnOptions): Promise<AgentChatTurnResult>;
22
+ /**
23
+ * Creates an isolated workspace path under the project-local Promptbook temporary directory.
24
+ */
25
+ export declare function createAgentChatWorkspacePath(options: {
26
+ readonly currentWorkingDirectory: string;
27
+ readonly agentPath: string;
28
+ }): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Builds the prompt sent to the selected coding runner for one queued user-thread book.
3
+ */
4
+ export declare function buildAgentMessagePrompt(messageRelativePath: string, agentSystemMessage: string): string;
@@ -0,0 +1,5 @@
1
+ import type { AgentMessageFile } from './AgentMessageFile';
2
+ /**
3
+ * Builds a temporary script path for one agent message runner invocation.
4
+ */
5
+ export declare function buildAgentMessageScriptPath(projectPath: string, messageFile: AgentMessageFile): string;
@@ -0,0 +1,10 @@
1
+ import type { AgentModelRequirements } from '../../../src/book-2.0/agent-source/AgentModelRequirements';
2
+ import type { string_book } from '../../../src/book-2.0/agent-source/string_book';
3
+ /**
4
+ * Compiles agent source into the behavior text passed to CLI harness runners.
5
+ */
6
+ export declare function createAgentRunnerSystemMessage(agentSource: string_book): Promise<string>;
7
+ /**
8
+ * Formats prepared model requirements for a text-only CLI harness prompt.
9
+ */
10
+ export declare function formatAgentModelRequirementsForRunner(modelRequirements: AgentModelRequirements): string;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Default progressive delays used for rate-limit retries:
3
+ * 1 minute, 2 minutes, 5 minutes, 10 minutes, and 30 minutes.
4
+ */
5
+ export declare const DEFAULT_PROGRESSIVE_BACKOFF_DELAYS_MS: readonly number[];
6
+ /**
7
+ * Options for one progressive backoff counter.
8
+ */
9
+ export type ProgressiveBackoffOptions = {
10
+ delaysMs?: readonly number[];
11
+ maxDelayMs?: number;
12
+ jitterRatio?: number;
13
+ random?: () => number;
14
+ };
15
+ /**
16
+ * Stateful progressive backoff counter with optional jitter and capped maximum delay.
17
+ */
18
+ export declare class ProgressiveBackoff {
19
+ private readonly delaysMs;
20
+ private readonly maxDelayMs;
21
+ private readonly jitterRatio;
22
+ private readonly random;
23
+ private failuresSinceSuccess;
24
+ /**
25
+ * Creates one progressive backoff counter.
26
+ */
27
+ constructor(options?: ProgressiveBackoffOptions);
28
+ /**
29
+ * Number of consecutive failures since the last successful reset.
30
+ */
31
+ get retryCount(): number;
32
+ /**
33
+ * Returns the next delay and advances the backoff counter by one failed attempt.
34
+ */
35
+ nextDelayMs(): number;
36
+ /**
37
+ * Resets backoff state after one successful call.
38
+ */
39
+ reset(): void;
40
+ /**
41
+ * Resolves the non-jittered delay for the given retry index.
42
+ */
43
+ private resolveBaseDelayMs;
44
+ }
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Appends optional coding context to a runner prompt.
3
+ */
4
+ export declare function appendCoderContext(prompt: string, context: string | undefined): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Formats one unknown error-like value into readable text for logs and feedback.
3
+ */
4
+ export declare function formatUnknownErrorDetails(error: unknown): string;
@@ -0,0 +1,5 @@
1
+ import type { RunGoScriptOptions } from './RunGoScriptOptions';
2
+ /**
3
+ * Creates a temporary script file, runs it, and cleans it up unless preservation is requested or the run fails.
4
+ */
5
+ export declare function $runGoScript(options: RunGoScriptOptions): Promise<void>;
@@ -0,0 +1,6 @@
1
+ import type { RunGoScriptUntilMarkerIdleOptions } from './RunGoScriptUntilMarkerIdleOptions';
2
+ /**
3
+ * Creates a temporary script file, runs it, waits for a completion marker and idle time, and cleans it up unless preservation is requested or the run fails.
4
+ * Returns the captured output for post-processing.
5
+ */
6
+ export declare function $runGoScriptUntilMarkerIdle(options: RunGoScriptUntilMarkerIdleOptions): Promise<string>;
@@ -0,0 +1,5 @@
1
+ import type { RunGoScriptOptions } from './RunGoScriptOptions';
2
+ /**
3
+ * Creates a temporary script file, runs it, captures output, and cleans it up unless preservation is requested or the run fails.
4
+ */
5
+ export declare function $runGoScriptWithOutput(options: RunGoScriptOptions): Promise<string>;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Builds the temporary live runtime log path for one prompt script and its sibling test script.
3
+ */
4
+ export declare function buildScriptLogPath(scriptPath: string): string;
@@ -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 {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Prints one live shell output chunk to the terminal when console mirroring is enabled.
3
+ */
4
+ export declare function printLiveScriptChunk(chunk: string, source: 'stdout' | 'stderr', shouldPrintLiveOutput: boolean): void;
@@ -0,0 +1,5 @@
1
+ import type { RunGoScriptOptions } from './RunGoScriptOptions';
2
+ /**
3
+ * Runs one temporary bash script, optionally mirroring its raw input/output into a live runtime log file.
4
+ */
5
+ export declare function runBashScriptWithOutput(options: RunGoScriptOptions): Promise<string>;
@@ -0,0 +1,6 @@
1
+ import type { RunScriptUntilMarkerIdleOptions } from './RunScriptUntilMarkerIdleOptions';
2
+ /**
3
+ * Runs a script until a completion marker is observed and output is idle for a set timeout.
4
+ * Returns the captured output.
5
+ */
6
+ export declare function runScriptUntilMarkerIdle(options: RunScriptUntilMarkerIdleOptions): Promise<string>;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Environment variable read by the shell wrapper to tee live output into the temporary runtime log file.
3
+ */
4
+ export declare const PTBK_CODER_LOG_FILE_ENV_NAME = "PTBK_CODER_LOG_FILE";
5
+ /**
6
+ * Shapes one bash invocation that optionally mirrors live script output into a temporary log file.
7
+ */
8
+ export declare function buildLoggedBashExecution(scriptPath: string, logPath?: string): {
9
+ args: string[];
10
+ env?: Record<string, string>;
11
+ };
12
+ /**
13
+ * Appends one execution-start section with the raw script input before the shell begins producing output.
14
+ */
15
+ export declare function appendScriptExecutionLogStart({ scriptPath, scriptContent, logPath, }: {
16
+ scriptPath: string;
17
+ scriptContent: string;
18
+ logPath?: string;
19
+ }): Promise<void>;
20
+ /**
21
+ * Appends one execution-finish section after the shell settles.
22
+ */
23
+ export declare function appendScriptExecutionLogFinish({ scriptPath, logPath, status, details, }: {
24
+ scriptPath: string;
25
+ logPath?: string;
26
+ status: string;
27
+ details?: unknown;
28
+ }): Promise<void>;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Decides whether one temporary prompt artifact should be deleted after a round finishes.
3
+ */
4
+ export declare function shouldDeleteTemporaryArtifact({ preserveArtifactsOnSuccess, hasFailed, }: {
5
+ preserveArtifactsOnSuccess?: boolean;
6
+ hasFailed: boolean;
7
+ }): boolean;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Converts a file path to POSIX format.
3
+ */
4
+ export declare function toPosixPath(filePath: string): string;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Runs one prompt-processing round with a dedicated temporary runtime log file that is cleaned up only after successful non-preserved runs.
3
+ */
4
+ export declare function withPromptRuntimeLog<T>(scriptPath: string, handler: (logPath: string) => Promise<T>, options?: {
5
+ preserveArtifactsOnSuccess?: boolean;
6
+ }): Promise<T>;
@@ -0,0 +1,5 @@
1
+ import type { RunGoScriptOptions } from './RunGoScriptOptions';
2
+ /**
3
+ * Creates a temporary script file, runs a handler, and cleans it up unless preservation is requested or the run fails.
4
+ */
5
+ export declare function withTempScript<T>(options: RunGoScriptOptions, handler: (scriptPath: string) => Promise<T>): Promise<T>;
@@ -0,0 +1,24 @@
1
+ import type { RunOptions } from '../cli/RunOptions';
2
+ import type { PromptRunner } from '../runners/types/PromptRunner';
3
+ /**
4
+ * Runner metadata used in prompt status lines.
5
+ */
6
+ type RunnerMetadata = {
7
+ runnerName: string;
8
+ modelName?: string;
9
+ };
10
+ /**
11
+ * Resolved runner setup used by `runCodexPrompts`.
12
+ */
13
+ type PromptRunnerResolution = {
14
+ runner: PromptRunner;
15
+ actualRunnerModel?: string;
16
+ runnerMetadata: RunnerMetadata;
17
+ };
18
+ /**
19
+ * Resolves the configured prompt runner together with status-line metadata.
20
+ *
21
+ * @private function of runCodexPrompts
22
+ */
23
+ export declare function resolvePromptRunner(options: RunOptions): PromptRunnerResolution;
24
+ export {};
@@ -0,0 +1,19 @@
1
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
2
+ import type { PromptRunResult } from '../types/PromptRunResult';
3
+ import type { PromptRunner } from '../types/PromptRunner';
4
+ import type { ClaudeCodeRunnerOptions } from './ClaudeCodeRunnerOptions';
5
+ /**
6
+ * Runs prompts via the Claude Code CLI.
7
+ */
8
+ export declare class ClaudeCodeRunner implements PromptRunner {
9
+ private readonly options;
10
+ readonly name = "claude-code";
11
+ /**
12
+ * Creates a new Claude Code runner.
13
+ */
14
+ constructor(options?: ClaudeCodeRunnerOptions);
15
+ /**
16
+ * Runs the prompt using Claude Code and parses usage output.
17
+ */
18
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import type { ClaudeScriptOptions } from './ClaudeScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Claude Code with the prompt and coding context.
4
+ */
5
+ export declare function buildClaudeScript(options: ClaudeScriptOptions): string;
@@ -0,0 +1,5 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ /**
3
+ * Parses Claude Code JSON output and extracts usage information.
4
+ */
5
+ export declare function parseClaudeCodeJsonOutput(output: string): Usage;
@@ -0,0 +1,19 @@
1
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
2
+ import type { PromptRunResult } from '../types/PromptRunResult';
3
+ import type { PromptRunner } from '../types/PromptRunner';
4
+ import type { ClineRunnerOptions } from './ClineRunnerOptions';
5
+ /**
6
+ * Runs prompts via the Cline CLI.
7
+ */
8
+ export declare class ClineRunner implements PromptRunner {
9
+ private readonly options;
10
+ readonly name = "cline";
11
+ /**
12
+ * Creates a new Cline runner.
13
+ */
14
+ constructor(options: ClineRunnerOptions);
15
+ /**
16
+ * Runs the prompt using the Cline CLI.
17
+ */
18
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import type { ClineScriptOptions } from './ClineScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Cline with the prompt and coding context.
4
+ */
5
+ export declare function buildClineScript(options: ClineScriptOptions): string;
@@ -0,0 +1,23 @@
1
+ import type { PromptRunner } from '../types/PromptRunner';
2
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
3
+ import type { PromptRunResult } from '../types/PromptRunResult';
4
+ import type { GeminiRunnerOptions } from './GeminiRunnerOptions';
5
+ /**
6
+ * Default Gemini model used by the coding runner.
7
+ */
8
+ export declare const DEFAULT_GEMINI_MODEL = "gemini-3.1-pro-preview";
9
+ /**
10
+ * Runs prompts via the Gemini CLI.
11
+ */
12
+ export declare class GeminiRunner implements PromptRunner {
13
+ private readonly options;
14
+ readonly name = "gemini";
15
+ /**
16
+ * Creates a new Gemini runner.
17
+ */
18
+ constructor(options: GeminiRunnerOptions);
19
+ /**
20
+ * Runs the prompt using Gemini and parses usage output.
21
+ */
22
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
23
+ }
@@ -0,0 +1,5 @@
1
+ import type { GeminiScriptOptions } from './GeminiScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Gemini with the prompt and coding context.
4
+ */
5
+ export declare function buildGeminiScript(options: GeminiScriptOptions): string;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The pricing for Gemini models per 1 million tokens in USD.
3
+ *
4
+ * Note: This is an estimation.
5
+ *
6
+ * @see https://ai.google.dev/pricing
7
+ */
8
+ export declare const GEMINI_PRICING: {
9
+ 'gemini-1.5-flash': {
10
+ input: number;
11
+ output: number;
12
+ };
13
+ };
14
+ /**
15
+ * The model to use for price estimation.
16
+ */
17
+ export declare const GEMINI_MODEL_FOR_ESTIMATION = "gemini-1.5-flash";
18
+ /**
19
+ * Gemini pricing entry per 1 million tokens.
20
+ */
21
+ export type GeminiPricing = {
22
+ input: number;
23
+ output: number;
24
+ };
25
+ /**
26
+ * Resolves Gemini pricing for the requested model.
27
+ *
28
+ * It first tries exact match, then prefix match, then falls back to a stable
29
+ * default pricing model.
30
+ */
31
+ export declare function resolveGeminiPricing(modelName?: string): GeminiPricing;
32
+ /**
33
+ * A an estimation of how many characters are in one token.
34
+ */
35
+ export declare const CHARS_PER_TOKEN = 4;
@@ -0,0 +1,9 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ /**
3
+ * Parses Gemini CLI output and extracts usage information.
4
+ *
5
+ * @param output The output from the Gemini CLI.
6
+ * @param prompt The prompt that was sent to the Gemini CLI.
7
+ * @param modelName The Gemini model used for this run.
8
+ */
9
+ export declare function parseGeminiUsageFromOutput(output: string, prompt: string, modelName?: string): Usage;
@@ -0,0 +1,19 @@
1
+ import type { PromptRunner } from '../types/PromptRunner';
2
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
3
+ import type { PromptRunResult } from '../types/PromptRunResult';
4
+ import type { GitHubCopilotRunnerOptions } from './GitHubCopilotRunnerOptions';
5
+ /**
6
+ * Runs prompts via the GitHub Copilot CLI.
7
+ */
8
+ export declare class GitHubCopilotRunner implements PromptRunner {
9
+ private readonly options;
10
+ readonly name = "github-copilot";
11
+ /**
12
+ * Creates a new GitHub Copilot runner.
13
+ */
14
+ constructor(options: GitHubCopilotRunnerOptions);
15
+ /**
16
+ * Runs the prompt using GitHub Copilot CLI.
17
+ */
18
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import type { GitHubCopilotScriptOptions } from './GitHubCopilotScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs GitHub Copilot CLI with the prompt and coding context.
4
+ */
5
+ export declare function buildGitHubCopilotScript(options: GitHubCopilotScriptOptions): string;
@@ -0,0 +1,21 @@
1
+ import { NotAllowed } from '../../../../src/errors/NotAllowed';
2
+ /**
3
+ * Failure category used by OpenAI Codex retry/fail-fast handling.
4
+ */
5
+ export type CodexFailureKind = 'credits-required' | 'rate-limit' | 'other';
6
+ /**
7
+ * Classifies one Codex failure message into retry/fail-fast categories.
8
+ */
9
+ export declare function classifyCodexFailure(details: string): CodexFailureKind;
10
+ /**
11
+ * Builds a fail-fast error for cases where credit spending is disallowed.
12
+ */
13
+ export declare function buildCreditsDisallowedError(details: string): NotAllowed;
14
+ /**
15
+ * Extracts a text description from unknown thrown values.
16
+ */
17
+ export declare function extractCodexFailureDetails(error: unknown): string;
18
+ /**
19
+ * Trims very long CLI error output to keep logs and thrown messages readable.
20
+ */
21
+ export declare function limitErrorDetails(details: string, maxChars?: number): string;
@@ -0,0 +1,20 @@
1
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
2
+ import type { PromptRunResult } from '../types/PromptRunResult';
3
+ import type { PromptRunner } from '../types/PromptRunner';
4
+ import type { OpenAiCodexRunnerOptions } from './OpenAiCodexRunnerOptions';
5
+ /**
6
+ * Runs prompts via the OpenAI Codex CLI.
7
+ */
8
+ export declare class OpenAiCodexRunner implements PromptRunner {
9
+ private readonly options;
10
+ readonly name = "codex";
11
+ private readonly rateLimitBackoff;
12
+ /**
13
+ * Creates a new Codex runner.
14
+ */
15
+ constructor(options: OpenAiCodexRunnerOptions);
16
+ /**
17
+ * Runs the Codex prompt in a temporary script and waits for completion output.
18
+ */
19
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
20
+ }
@@ -0,0 +1,5 @@
1
+ import type { CodexScriptOptions } from './CodexScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Codex with the prompt and coding context.
4
+ */
5
+ export declare function buildCodexScript(options: CodexScriptOptions): string;
@@ -0,0 +1,10 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ /**
3
+ * Heuristic share of the total tokens that are expected to come from completion tokens
4
+ * when Codex only reports a single total value.
5
+ */
6
+ export declare const DEFAULT_CODEX_COMPLETION_SHARE = 0.1;
7
+ /**
8
+ * Builds usage stats from Codex CLI output.
9
+ */
10
+ export declare function buildCodexUsageFromOutput(output: string, modelName: string): Usage;
@@ -0,0 +1,19 @@
1
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
2
+ import type { PromptRunResult } from '../types/PromptRunResult';
3
+ import type { PromptRunner } from '../types/PromptRunner';
4
+ import type { OpencodeRunnerOptions } from './OpencodeRunnerOptions';
5
+ /**
6
+ * Runs prompts via the Opencode CLI.
7
+ */
8
+ export declare class OpencodeRunner implements PromptRunner {
9
+ private readonly options;
10
+ readonly name = "opencode";
11
+ /**
12
+ * Creates a new Opencode runner.
13
+ */
14
+ constructor(options: OpencodeRunnerOptions);
15
+ /**
16
+ * Runs the prompt using Opencode and parses usage output.
17
+ */
18
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
19
+ }
@@ -0,0 +1,5 @@
1
+ import type { OpencodeScriptOptions } from './OpencodeScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Opencode with the prompt and coding context.
4
+ */
5
+ export declare function buildOpencodeScript(options: OpencodeScriptOptions): string;
@@ -0,0 +1,5 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ /**
3
+ * Parses Opencode JSON output and extracts usage information.
4
+ */
5
+ export declare function parseOpencodeJsonOutput(output: string): Usage;
@@ -12,6 +12,7 @@ import type { BookEditorUploadProgressCallback } from '../book-components/BookEd
12
12
  import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
13
13
  import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
14
14
  import { BookEditor } from '../book-components/BookEditor/BookEditor';
15
+ import { BookEditorForClient } from '../book-components/BookEditor/BookEditorForClient';
15
16
  import { AgentChat } from '../book-components/Chat/AgentChat/AgentChat';
16
17
  import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
17
18
  import { Chat } from '../book-components/Chat/Chat/Chat';
@@ -65,6 +66,7 @@ import type { ChatProgressCard } from '../book-components/Chat/types/ChatMessage
65
66
  import type { ChatMessageReplyingTo } from '../book-components/Chat/types/ChatMessage';
66
67
  import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
67
68
  import type { ChatParticipant } from '../book-components/Chat/types/ChatParticipant';
69
+ import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
68
70
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
69
71
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
70
72
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
@@ -95,6 +97,7 @@ export type { BookEditorUploadProgressCallback };
95
97
  export type { BookEditorUploadOptions };
96
98
  export type { BookEditorProps };
97
99
  export { BookEditor };
100
+ export { BookEditorForClient };
98
101
  export { AgentChat };
99
102
  export type { AgentChatProps };
100
103
  export { Chat };
@@ -148,6 +151,7 @@ export type { ChatProgressCard };
148
151
  export type { ChatMessageReplyingTo };
149
152
  export type { ChatMessage };
150
153
  export type { ChatParticipant };
154
+ export type { CitationLabelResolver };
151
155
  export type { MessageButton };
152
156
  export { parseMessageButtons };
153
157
  export { ArrowIcon };
@@ -221,7 +221,6 @@ import { normalizeChatAttachments } from '../utils/chat/chatAttachments/normaliz
221
221
  import { resolveChatAttachmentContents } from '../utils/chat/chatAttachments/resolveChatAttachmentContents';
222
222
  import { aboutPromptbookInformation } from '../utils/misc/aboutPromptbookInformation';
223
223
  import { $generateBookBoilerplate } from '../utils/random/$generateBookBoilerplate';
224
- import { CORE_AGENTS_SERVER } from '../../servers';
225
224
  import { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES } from '../../servers';
226
225
  import { PUBLIC_AGENTS_SERVERS } from '../../servers';
227
226
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
@@ -447,6 +446,5 @@ export { normalizeChatAttachments };
447
446
  export { resolveChatAttachmentContents };
448
447
  export { aboutPromptbookInformation };
449
448
  export { $generateBookBoilerplate };
450
- export { CORE_AGENTS_SERVER };
451
449
  export { CORE_AGENTS_SERVER_WELL_KNOWN_AGENT_NAMES };
452
450
  export { PUBLIC_AGENTS_SERVERS };
@@ -1,4 +1,24 @@
1
1
  import { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION } from '../version';
2
+ import { AGENT_BOOK_FILE_PATH } from '../book-3.0/agentFolderPaths';
3
+ import { AGENT_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
4
+ import { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
5
+ import { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
6
+ import { AGENT_FAILED_MESSAGES_DIRECTORY_PATH } from '../book-3.0/agentFolderPaths';
7
+ import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
8
+ import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
9
+ import type { CliAgentHarness } from '../book-3.0/CliAgent';
10
+ import type { CliAgentThinkingLevel } from '../book-3.0/CliAgent';
11
+ import type { CliAgentRunOptions } from '../book-3.0/CliAgent';
12
+ import type { CliAgentOptions } from '../book-3.0/CliAgent';
13
+ import { CliAgent } from '../book-3.0/CliAgent';
14
+ import { CLI_AGENT_HARNESS_NAMES } from '../book-3.0/cliAgentEnv';
15
+ import { CLI_AGENT_THINKING_LEVEL_VALUES } from '../book-3.0/cliAgentEnv';
16
+ import { PTBK_HARNESS_ENV } from '../book-3.0/cliAgentEnv';
17
+ import { PTBK_MODEL_ENV } from '../book-3.0/cliAgentEnv';
18
+ import { PTBK_THINKING_LEVEL_ENV } from '../book-3.0/cliAgentEnv';
19
+ import type { LiteAgentOptions } from '../book-3.0/LiteAgent';
20
+ import type { LiteAgentRunOptions } from '../book-3.0/LiteAgent';
21
+ import { LiteAgent } from '../book-3.0/LiteAgent';
2
22
  import { createPipelineCollectionFromDirectory } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory';
3
23
  import { getAllCommitmentsToolFunctionsForNode } from '../commitments/_common/getAllCommitmentsToolFunctionsForNode';
4
24
  import { $provideExecutablesForNode } from '../executables/$provideExecutablesForNode';
@@ -12,6 +32,26 @@ import { FileCacheStorage } from '../storage/file-cache-storage/FileCacheStorage
12
32
  import { $execCommand } from '../utils/execCommand/$execCommand';
13
33
  import { $execCommands } from '../utils/execCommand/$execCommands';
14
34
  export { BOOK_LANGUAGE_VERSION, PROMPTBOOK_ENGINE_VERSION };
35
+ export { AGENT_BOOK_FILE_PATH };
36
+ export { AGENT_MESSAGES_DIRECTORY_PATH };
37
+ export { AGENT_QUEUED_MESSAGES_DIRECTORY_PATH };
38
+ export { AGENT_FINISHED_MESSAGES_DIRECTORY_PATH };
39
+ export { AGENT_FAILED_MESSAGES_DIRECTORY_PATH };
40
+ export type { BookNodeAgentSource };
41
+ export type { BookNodeAgentSourceOptions };
42
+ export type { CliAgentHarness };
43
+ export type { CliAgentThinkingLevel };
44
+ export type { CliAgentRunOptions };
45
+ export type { CliAgentOptions };
46
+ export { CliAgent };
47
+ export { CLI_AGENT_HARNESS_NAMES };
48
+ export { CLI_AGENT_THINKING_LEVEL_VALUES };
49
+ export { PTBK_HARNESS_ENV };
50
+ export { PTBK_MODEL_ENV };
51
+ export { PTBK_THINKING_LEVEL_ENV };
52
+ export type { LiteAgentOptions };
53
+ export type { LiteAgentRunOptions };
54
+ export { LiteAgent };
15
55
  export { createPipelineCollectionFromDirectory };
16
56
  export { getAllCommitmentsToolFunctionsForNode };
17
57
  export { $provideExecutablesForNode };