@promptbook/types 0.114.0-0 → 0.114.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 (252) hide show
  1. package/README.md +20 -27
  2. package/esm/src/_packages/components.index.d.ts +4 -0
  3. package/esm/src/_packages/types.index.d.ts +4 -0
  4. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  5. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  6. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  7. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
  8. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
  9. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
  10. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  11. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  12. package/esm/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
  13. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
  14. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
  15. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
  16. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  17. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  18. package/esm/src/cli/cli-commands/coder/ping.d.ts +10 -0
  19. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  20. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  21. package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
  22. package/esm/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  23. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  24. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  25. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  26. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  27. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  28. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  29. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  30. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  31. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  32. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  33. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  34. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  35. package/esm/src/cli/common/loadPromptsModule.d.ts +16 -0
  36. package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  37. package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
  38. package/esm/src/commitments/index.d.ts +4 -12
  39. package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
  40. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  41. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
  42. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
  43. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
  44. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
  45. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
  46. package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
  47. package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
  48. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
  49. package/esm/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
  50. package/esm/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
  51. package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  52. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  53. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  54. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  55. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  56. package/esm/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
  57. package/esm/src/utils/misc/debounce.d.ts +4 -2
  58. package/esm/src/version.d.ts +1 -1
  59. package/package.json +2 -2
  60. package/umd/src/_packages/components.index.d.ts +4 -0
  61. package/umd/src/_packages/types.index.d.ts +4 -0
  62. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  63. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  64. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  65. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
  66. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
  67. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
  68. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  69. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  70. package/umd/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
  71. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
  72. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
  73. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
  74. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  75. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  76. package/umd/src/cli/cli-commands/coder/ping.d.ts +10 -0
  77. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  78. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  79. package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
  80. package/umd/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  81. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  82. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  83. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  84. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  85. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  86. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  87. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  88. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  89. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  90. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  91. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  92. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  93. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  94. package/umd/src/cli/common/loadPromptsModule.d.ts +16 -0
  95. package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  96. package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
  97. package/umd/src/commitments/index.d.ts +4 -12
  98. package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
  99. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  100. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
  101. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
  102. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
  103. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
  104. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
  105. package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
  106. package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
  107. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
  108. package/umd/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
  109. package/umd/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
  110. package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  111. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  112. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  113. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  114. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  115. package/umd/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
  116. package/umd/src/utils/misc/debounce.d.ts +4 -2
  117. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  118. package/umd/src/version.d.ts +1 -1
  119. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  120. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  121. package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  122. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  123. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  124. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  125. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  126. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  127. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  128. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  129. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  130. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  131. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  132. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  133. package/esm/src/commitments/META/META.d.ts +0 -65
  134. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  135. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  136. package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  137. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  138. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  139. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  140. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  141. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  142. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  143. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  144. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  145. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  146. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  147. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  148. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  149. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  150. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  151. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  152. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  153. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  154. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  155. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  156. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  157. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  158. package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
  159. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  160. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  161. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  162. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  163. package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  164. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  165. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  166. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  167. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  168. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  169. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  170. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  171. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  172. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  173. package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  174. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  175. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  176. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  177. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  178. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  179. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  180. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  181. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  182. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  183. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  184. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  185. package/umd/src/commitments/META/META.d.ts +0 -65
  186. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  187. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  188. package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  189. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  190. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  191. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  192. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  193. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  194. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  195. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  196. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  197. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  198. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  199. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  200. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  201. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  202. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  203. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  204. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  205. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  206. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  207. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  208. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  209. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  210. package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
  211. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  212. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  213. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  214. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  215. package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  216. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  217. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  218. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  219. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  220. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  221. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  222. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  223. /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  224. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  225. /package/esm/src/cli/cli-commands/{common/harness/isHarnessVersionOutdated.test.d.ts → coder/boilerplateCount.test.d.ts} +0 -0
  226. /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  227. /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
  228. /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
  229. /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  230. /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  231. /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  232. /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  233. /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  234. /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  235. /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  236. /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
  237. /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
  238. /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
  239. /package/umd/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  240. /package/umd/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  241. /package/umd/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
  242. /package/umd/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  243. /package/umd/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
  244. /package/umd/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
  245. /package/umd/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  246. /package/umd/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  247. /package/umd/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  248. /package/umd/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  249. /package/umd/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  250. /package/umd/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  251. /package/umd/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  252. /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
@@ -0,0 +1,26 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Result of comparing one installed Promptbook CLI package with the newest published version.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type PromptbookCliInstallationState = 'up-to-date' | 'outdated' | 'unknown';
8
+ /**
9
+ * Version status of one Promptbook CLI installation.
10
+ *
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export type PromptbookCliInstallationStatus = {
14
+ /**
15
+ * Installed CLI package being checked.
16
+ */
17
+ readonly installation: PromptbookCliInstallation;
18
+ /**
19
+ * Result of comparing the installed version with the newest published version.
20
+ */
21
+ readonly installationState: PromptbookCliInstallationState;
22
+ /**
23
+ * Newest published package version, or `null` when npm could not be reached.
24
+ */
25
+ readonly latestVersion: string | null;
26
+ };
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Builds the npm command that updates one existing Promptbook CLI installation.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function buildPromptbookCliInstallCommand(installation: PromptbookCliInstallation): string;
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallationStatus } from './PromptbookCliInstallationStatus';
2
+ /**
3
+ * Formats the warning shown when one or more Promptbook CLI installations are outdated.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function formatPromptbookCliInstallationWarning(statuses: ReadonlyArray<PromptbookCliInstallationStatus>): string;
@@ -0,0 +1,16 @@
1
+ /// <reference types="prompts" />
2
+ /**
3
+ * Loads the interactive terminal prompt library (`prompts`) on demand
4
+ *
5
+ * Note: [🐌] Loaded lazily to keep the startup of the `ptbk` CLI utility fast - most commands never ask the user
6
+ * anything interactively
7
+ *
8
+ * @private internal utility of Promptbook CLI
9
+ */
10
+ export declare const loadPromptsModule: () => Promise<{
11
+ default: typeof import("prompts");
12
+ inject: typeof import("prompts").inject;
13
+ override: typeof import("prompts").override;
14
+ prompt: any;
15
+ prompts: typeof import("prompts").prompts;
16
+ }>;
@@ -1,16 +1,19 @@
1
1
  import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
2
  import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
- * COMPONENT commitment definition
4
+ * META FULLNAME commitment definition
5
5
  *
6
- * The COMPONENT commitment defines a UI component that the agent can render in the chat.
6
+ * The `META FULLNAME` commitment sets the full display name of the agent, which can differ
7
+ * from the agent name on the first line of the agent source, for example when the agent
8
+ * should be presented with academic titles.
9
+ * This commitment is metadata-only and does not modify model requirements.
7
10
  *
8
11
  * @private [🪔] Maybe export the commitments through some package
9
12
  */
10
- export declare class ComponentCommitmentDefinition extends BaseCommitmentDefinition<'COMPONENT'> {
13
+ export declare class MetaFullnameCommitmentDefinition extends BaseCommitmentDefinition<'META FULLNAME'> {
11
14
  constructor();
12
15
  /**
13
- * Short one-line description of COMPONENT.
16
+ * Short one-line description of META FULLNAME.
14
17
  */
15
18
  get description(): string;
16
19
  /**
@@ -18,7 +21,7 @@ export declare class ComponentCommitmentDefinition extends BaseCommitmentDefinit
18
21
  */
19
22
  get icon(): string;
20
23
  /**
21
- * Markdown documentation for COMPONENT commitment.
24
+ * Markdown documentation for META FULLNAME commitment.
22
25
  */
23
26
  get documentation(): string;
24
27
  applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
@@ -0,0 +1,32 @@
1
+ import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
2
+ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
+ /**
4
+ * META ID commitment definition
5
+ *
6
+ * The `META ID` commitment carries the permanent id of the agent when an agent source is moved
7
+ * between systems. It is a low-level commitment which is normally written and stripped by the
8
+ * persistence layer instead of being written by hand.
9
+ * This commitment is metadata-only and does not modify model requirements.
10
+ *
11
+ * @private [🪔] Maybe export the commitments through some package
12
+ */
13
+ export declare class MetaIdCommitmentDefinition extends BaseCommitmentDefinition<'META ID'> {
14
+ constructor();
15
+ /**
16
+ * Short one-line description of META ID.
17
+ */
18
+ get description(): string;
19
+ /**
20
+ * Icon for this commitment.
21
+ */
22
+ get icon(): string;
23
+ /**
24
+ * `META ID` is written by the persistence layer, not by agent authors.
25
+ */
26
+ get isLowLevel(): boolean;
27
+ /**
28
+ * Markdown documentation for META ID commitment.
29
+ */
30
+ get documentation(): string;
31
+ applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
32
+ }
@@ -1,6 +1,5 @@
1
1
  import { ActionCommitmentDefinition } from './ACTION/ACTION';
2
2
  import { ClosedCommitmentDefinition } from './CLOSED/CLOSED';
3
- import { ComponentCommitmentDefinition } from './COMPONENT/COMPONENT';
4
3
  import { DeleteCommitmentDefinition } from './DELETE/DELETE';
5
4
  import { DictionaryCommitmentDefinition } from './DICTIONARY/DICTIONARY';
6
5
  import { FormatCommitmentDefinition } from './FORMAT/FORMAT';
@@ -9,19 +8,20 @@ import { GoalCommitmentDefinition } from './GOAL/GOAL';
9
8
  import { ImportCommitmentDefinition } from './IMPORT/IMPORT';
10
9
  import { KnowledgeCommitmentDefinition } from './KNOWLEDGE/KNOWLEDGE';
11
10
  import { LanguageCommitmentDefinition } from './LANGUAGE/LANGUAGE';
12
- import { MemoryCommitmentDefinition } from './MEMORY/MEMORY';
13
11
  import { AgentMessageCommitmentDefinition } from './MESSAGE/AgentMessageCommitmentDefinition';
14
12
  import { InitialMessageCommitmentDefinition } from './MESSAGE/InitialMessageCommitmentDefinition';
15
13
  import { InternalMessageCommitmentDefinition } from './MESSAGE/InternalMessageCommitmentDefinition';
16
14
  import { MessageCommitmentDefinition } from './MESSAGE/MESSAGE';
17
15
  import { UserMessageCommitmentDefinition } from './MESSAGE/UserMessageCommitmentDefinition';
18
16
  import { MessageSuffixCommitmentDefinition } from './MESSAGE_SUFFIX/MESSAGE_SUFFIX';
19
- import { MetaCommitmentDefinition } from './META/META';
20
17
  import { MetaAvatarCommitmentDefinition } from './META_AVATAR/META_AVATAR';
21
18
  import { MetaColorCommitmentDefinition } from './META_COLOR/META_COLOR';
19
+ import { MetaDescriptionCommitmentDefinition } from './META_DESCRIPTION/META_DESCRIPTION';
22
20
  import { MetaDomainCommitmentDefinition } from './META_DOMAIN/META_DOMAIN';
23
21
  import { MetaDisclaimerCommitmentDefinition } from './META_DISCLAIMER/META_DISCLAIMER';
24
22
  import { MetaFontCommitmentDefinition } from './META_FONT/META_FONT';
23
+ import { MetaFullnameCommitmentDefinition } from './META_FULLNAME/META_FULLNAME';
24
+ import { MetaIdCommitmentDefinition } from './META_ID/META_ID';
25
25
  import { MetaImageCommitmentDefinition } from './META_IMAGE/META_IMAGE';
26
26
  import { MetaInputPlaceholderCommitmentDefinition } from './META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER';
27
27
  import { MetaLinkCommitmentDefinition } from './META_LINK/META_LINK';
@@ -38,21 +38,13 @@ import { ScenarioCommitmentDefinition } from './SCENARIO/SCENARIO';
38
38
  import { StyleCommitmentDefinition } from './STYLE/STYLE';
39
39
  import { TeamCommitmentDefinition } from './TEAM/TEAM';
40
40
  import { TemplateCommitmentDefinition } from './TEMPLATE/TEMPLATE';
41
- import { UseBrowserCommitmentDefinition } from './USE_BROWSER/USE_BROWSER';
42
41
  import { UseCalendarCommitmentDefinition } from './USE_CALENDAR/USE_CALENDAR';
43
- import { UseDeepSearchCommitmentDefinition } from './USE_DEEPSEARCH/USE_DEEPSEARCH';
44
- import { UseEmailCommitmentDefinition } from './USE_EMAIL/USE_EMAIL';
45
42
  import { UseImageGeneratorCommitmentDefinition } from './USE_IMAGE_GENERATOR/USE_IMAGE_GENERATOR';
46
43
  import { UseMcpCommitmentDefinition } from './USE_MCP/USE_MCP';
47
44
  import { UsePopupCommitmentDefinition } from './USE_POPUP/USE_POPUP';
48
45
  import { UsePrivacyCommitmentDefinition } from './USE_PRIVACY/USE_PRIVACY';
49
46
  import { UseProjectCommitmentDefinition } from './USE_PROJECT/USE_PROJECT';
50
- import { UseSearchEngineCommitmentDefinition } from './USE_SEARCH_ENGINE/USE_SEARCH_ENGINE';
51
- import { UseSpawnCommitmentDefinition } from './USE_SPAWN/USE_SPAWN';
52
- import { UseTimeoutCommitmentDefinition } from './USE_TIMEOUT/USE_TIMEOUT';
53
- import { UseTimeCommitmentDefinition } from './USE_TIME/USE_TIME';
54
47
  import { UseUserLocationCommitmentDefinition } from './USE_USER_LOCATION/USE_USER_LOCATION';
55
- import { WalletCommitmentDefinition } from './WALLET/WALLET';
56
48
  import { WritingRulesCommitmentDefinition } from './WRITING_RULES/WRITING_RULES';
57
49
  import { WritingSampleCommitmentDefinition } from './WRITING_SAMPLE/WRITING_SAMPLE';
58
50
  import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplementedCommitmentDefinition';
@@ -63,4 +55,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
63
55
  *
64
56
  * @private Use functions to access commitments instead of this array directly
65
57
  */
66
- 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, MetaThinkingMessageCommitmentDefinition, 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">];
58
+ export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDescriptionCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaFullnameCommitmentDefinition, MetaIdCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaThinkingMessageCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
@@ -45,7 +45,7 @@ export declare class Agent extends AgentLlmExecutionTools implements LlmExecutio
45
45
  links: Array<string_agent_url>;
46
46
  /**
47
47
  * Capabilities of the agent
48
- * This is parsed from commitments like USE BROWSER, USE SEARCH ENGINE, KNOWLEDGE, etc.
48
+ * This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
49
49
  */
50
50
  capabilities: Array<AgentCapability>;
51
51
  /**
@@ -1,4 +1,4 @@
1
- import Anthropic from '@anthropic-ai/sdk';
1
+ import type Anthropic from '@anthropic-ai/sdk';
2
2
  import type { ChatParticipant } from '../../book-components/Chat/types/ChatParticipant';
3
3
  import type { AvailableModel } from '../../execution/AvailableModel';
4
4
  import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
@@ -1,4 +1,4 @@
1
- import { OpenAIClient } from '@azure/openai';
1
+ import type { OpenAIClient } from '@azure/openai';
2
2
  import type { ChatParticipant } from '../../book-components/Chat/types/ChatParticipant';
3
3
  import type { AvailableModel } from '../../execution/AvailableModel';
4
4
  import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
@@ -1,4 +1,4 @@
1
- import { Agent as AgentFromKit } from '@openai/agents';
1
+ import type { Agent as AgentFromKit } from '@openai/agents';
2
2
  import type { CallChatModelStreamOptions, LlmExecutionTools } from '../../execution/LlmExecutionTools';
3
3
  import type { ChatPromptResult } from '../../execution/PromptResult';
4
4
  import type { ModelRequirements } from '../../types/ModelRequirements';
@@ -38,7 +38,7 @@ export declare class OpenAiAgentKitExecutionToolsToolBuilder {
38
38
  buildAgentKitTools(options: {
39
39
  readonly tools?: ModelRequirements['tools'];
40
40
  readonly vectorStoreId?: string;
41
- }): Array<AgentKitTool>;
41
+ }): Promise<Array<AgentKitTool>>;
42
42
  /**
43
43
  * Resolves the stored Promptbook tool result for one AgentKit tool call.
44
44
  */
@@ -73,7 +73,7 @@ export declare class OpenAiAgentKitExecutionToolsToolBuilder {
73
73
  */
74
74
  private normalizeAgentKitToolParameters;
75
75
  /**
76
- * Creates the native Agent SDK tool used for `USE DEEPSEARCH`.
76
+ * Creates the native Agent SDK tool used for the DeepSearch capability.
77
77
  */
78
78
  private createDeepSearchAgentKitTool;
79
79
  /**
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  import type { ChatPromptResult } from '../../execution/PromptResult';
3
3
  import type { Prompt } from '../../types/Prompt';
4
4
  import type { string_date_iso8601, string_token } from '../../types/string_token';
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  import type { ChatPromptResult } from '../../execution/PromptResult';
3
3
  import type { ScriptExecutionTools } from '../../execution/ScriptExecutionTools';
4
4
  import type { Prompt } from '../../types/Prompt';
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  import type { AvailableModel } from '../../execution/AvailableModel';
3
3
  import type { CompletionPromptResult, EmbeddingPromptResult, ImagePromptResult } from '../../execution/PromptResult';
4
4
  import type { Usage } from '../../execution/Usage';
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  import type { OpenAiCompatibleExecutionToolsNonProxiedOptions } from './OpenAiCompatibleExecutionToolsOptions';
3
3
  /**
4
4
  * Manages OpenAI-compatible client creation plus shared retry and rate-limit behavior.
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  import type { AvailableModel } from '../../../execution/AvailableModel';
3
3
  import type { ChatPromptResult } from '../../../execution/PromptResult';
4
4
  import type { Usage } from '../../../execution/Usage';
@@ -0,0 +1,203 @@
1
+ /// <reference types="node" />
2
+ /**
3
+ * Loads the OpenAI AgentKit SDK (`@openai/agents`) on demand
4
+ *
5
+ * Note: [🐌] The AgentKit SDK is one of the heaviest dependencies of Promptbook, loading it eagerly would slow down
6
+ * every single run of the `ptbk` CLI utility even when no AgentKit agent is used
7
+ *
8
+ * @private internal utility of `@promptbook/openai`
9
+ */
10
+ export declare const loadOpenAiAgentsModule: () => Promise<{
11
+ default: typeof import("@openai/agents");
12
+ applyPatchTool: typeof import("@openai/agents").applyPatchTool;
13
+ shellTool: typeof import("@openai/agents").shellTool;
14
+ realtime: typeof import("@openai/agents-realtime");
15
+ RuntimeEventEmitter: typeof import("events");
16
+ Agent: typeof import("@openai/agents").Agent;
17
+ AgentsError: typeof import("@openai/agents").AgentsError;
18
+ GuardrailExecutionError: typeof import("@openai/agents").GuardrailExecutionError;
19
+ InputGuardrailTripwireTriggered: typeof import("@openai/agents").InputGuardrailTripwireTriggered;
20
+ MaxTurnsExceededError: typeof import("@openai/agents").MaxTurnsExceededError;
21
+ ModelBehaviorError: typeof import("@openai/agents").ModelBehaviorError;
22
+ OutputGuardrailTripwireTriggered: typeof import("@openai/agents").OutputGuardrailTripwireTriggered;
23
+ ToolInputGuardrailTripwireTriggered: typeof import("@openai/agents").ToolInputGuardrailTripwireTriggered;
24
+ ToolOutputGuardrailTripwireTriggered: typeof import("@openai/agents").ToolOutputGuardrailTripwireTriggered;
25
+ ToolCallError: typeof import("@openai/agents").ToolCallError;
26
+ ToolTimeoutError: typeof import("@openai/agents").ToolTimeoutError;
27
+ UserError: typeof import("@openai/agents").UserError;
28
+ SystemError: typeof import("@openai/agents").SystemError;
29
+ RunAgentUpdatedStreamEvent: typeof import("@openai/agents").RunAgentUpdatedStreamEvent;
30
+ RunRawModelStreamEvent: typeof import("@openai/agents").RunRawModelStreamEvent;
31
+ RunItemStreamEvent: typeof import("@openai/agents").RunItemStreamEvent;
32
+ defineOutputGuardrail: typeof import("@openai/agents").defineOutputGuardrail;
33
+ ToolGuardrailFunctionOutputFactory: {
34
+ allow(outputInfo?: any): import("@openai/agents").ToolGuardrailFunctionOutput;
35
+ rejectContent(message: string, outputInfo?: any): import("@openai/agents").ToolGuardrailFunctionOutput;
36
+ throwException(outputInfo?: any): import("@openai/agents").ToolGuardrailFunctionOutput;
37
+ };
38
+ defineToolInputGuardrail: typeof import("@openai/agents").defineToolInputGuardrail;
39
+ defineToolOutputGuardrail: typeof import("@openai/agents").defineToolOutputGuardrail;
40
+ resolveToolInputGuardrails: typeof import("@openai/agents").resolveToolInputGuardrails;
41
+ resolveToolOutputGuardrails: typeof import("@openai/agents").resolveToolOutputGuardrails;
42
+ getHandoff: typeof import("@openai/agents").getHandoff;
43
+ getTransferMessage: typeof import("@openai/agents").getTransferMessage;
44
+ Handoff: typeof import("@openai/agents").Handoff;
45
+ handoff: typeof import("@openai/agents").handoff;
46
+ assistant: typeof import("@openai/agents").assistant;
47
+ system: typeof import("@openai/agents").system;
48
+ user: typeof import("@openai/agents").user;
49
+ extractAllTextOutput: typeof import("@openai/agents").extractAllTextOutput;
50
+ RunHandoffCallItem: typeof import("@openai/agents").RunHandoffCallItem;
51
+ RunHandoffOutputItem: typeof import("@openai/agents").RunHandoffOutputItem;
52
+ RunMessageOutputItem: typeof import("@openai/agents").RunMessageOutputItem;
53
+ RunReasoningItem: typeof import("@openai/agents").RunReasoningItem;
54
+ RunToolApprovalItem: typeof import("@openai/agents").RunToolApprovalItem;
55
+ RunToolCallItem: typeof import("@openai/agents").RunToolCallItem;
56
+ RunToolCallOutputItem: typeof import("@openai/agents").RunToolCallOutputItem;
57
+ AgentHooks: typeof import("@openai/agents").AgentHooks;
58
+ getLogger: typeof import("@openai/agents").getLogger;
59
+ applyDiff: typeof import("@openai/agents").applyDiff;
60
+ getAllMcpTools: typeof import("@openai/agents").getAllMcpTools;
61
+ invalidateServerToolsCache: typeof import("@openai/agents").invalidateServerToolsCache;
62
+ mcpToFunctionTool: typeof import("@openai/agents").mcpToFunctionTool;
63
+ MCPServerStdio: typeof import("@openai/agents").MCPServerStdio;
64
+ MCPServerStreamableHttp: typeof import("@openai/agents").MCPServerStreamableHttp;
65
+ MCPServerSSE: typeof import("@openai/agents").MCPServerSSE;
66
+ MCPServers: typeof import("@openai/agents").MCPServers;
67
+ connectMcpServers: typeof import("@openai/agents").connectMcpServers;
68
+ createMCPToolStaticFilter: typeof import("@openai/agents").createMCPToolStaticFilter;
69
+ OPENAI_DEFAULT_MODEL_ENV_VARIABLE_NAME: "OPENAI_DEFAULT_MODEL";
70
+ gpt5ReasoningSettingsRequired: typeof import("@openai/agents").gpt5ReasoningSettingsRequired;
71
+ getDefaultModel: typeof import("@openai/agents").getDefaultModel;
72
+ getDefaultModelSettings: typeof import("@openai/agents").getDefaultModelSettings;
73
+ isGpt5Default: typeof import("@openai/agents").isGpt5Default;
74
+ setDefaultModelProvider: typeof import("@openai/agents").setDefaultModelProvider;
75
+ RunResult: typeof import("@openai/agents").RunResult;
76
+ StreamedRunResult: typeof import("@openai/agents").StreamedRunResult;
77
+ run: typeof import("@openai/agents").run;
78
+ Runner: typeof import("@openai/agents").Runner;
79
+ RunContext: typeof import("@openai/agents").RunContext;
80
+ RunState: typeof import("@openai/agents").RunState;
81
+ computerTool: typeof import("@openai/agents").computerTool;
82
+ hostedMcpTool: typeof import("@openai/agents").hostedMcpTool;
83
+ tool: typeof import("@openai/agents").tool;
84
+ invokeFunctionTool: typeof import("@openai/agents").invokeFunctionTool;
85
+ getGlobalTraceProvider: typeof import("@openai/agents").getGlobalTraceProvider;
86
+ TraceProvider: typeof import("@openai/agents").TraceProvider;
87
+ runToolInputGuardrails: typeof import("@openai/agents").runToolInputGuardrails;
88
+ runToolOutputGuardrails: typeof import("@openai/agents").runToolOutputGuardrails;
89
+ RequestUsage: typeof import("@openai/agents").RequestUsage;
90
+ Usage: typeof import("@openai/agents").Usage;
91
+ isOpenAIResponsesCompactionAwareSession: typeof import("@openai/agents").isOpenAIResponsesCompactionAwareSession;
92
+ MemorySession: typeof import("@openai/agents").MemorySession;
93
+ protocol: typeof import("@openai/agents-core/dist/types/protocol");
94
+ addTraceProcessor(processor: import("@openai/agents").TracingProcessor): void;
95
+ setTraceProcessors(processors: import("@openai/agents").TracingProcessor[]): void;
96
+ setTracingDisabled(disabled: boolean): void;
97
+ startTraceExportLoop(): void;
98
+ getCurrentSpan: typeof import("@openai/agents").getCurrentSpan;
99
+ getCurrentTrace: typeof import("@openai/agents").getCurrentTrace;
100
+ getOrCreateTrace: typeof import("@openai/agents").getOrCreateTrace;
101
+ resetCurrentSpan: typeof import("@openai/agents").resetCurrentSpan;
102
+ setCurrentSpan: typeof import("@openai/agents").setCurrentSpan;
103
+ withTrace: typeof import("@openai/agents").withTrace;
104
+ BatchTraceProcessor: typeof import("@openai/agents").BatchTraceProcessor;
105
+ ConsoleSpanExporter: typeof import("@openai/agents").ConsoleSpanExporter;
106
+ NoopSpan: typeof import("@openai/agents").NoopSpan;
107
+ Span: typeof import("@openai/agents").Span;
108
+ NoopTrace: typeof import("@openai/agents").NoopTrace;
109
+ Trace: typeof import("@openai/agents").Trace;
110
+ generateGroupId: typeof import("@openai/agents").generateGroupId;
111
+ generateSpanId: typeof import("@openai/agents").generateSpanId;
112
+ generateTraceId: typeof import("@openai/agents").generateTraceId;
113
+ createResponseSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").ResponseSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").ResponseSpanData>;
114
+ createAgentSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").AgentSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").AgentSpanData>;
115
+ createFunctionSpan(options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").FunctionSpanData>> & {
116
+ data: {
117
+ name: string;
118
+ };
119
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").FunctionSpanData>;
120
+ createHandoffSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").HandoffSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").HandoffSpanData>;
121
+ createGenerationSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").GenerationSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").GenerationSpanData>;
122
+ createCustomSpan(options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").CustomSpanData>> & {
123
+ data: {
124
+ name: string;
125
+ };
126
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").CustomSpanData>;
127
+ createGuardrailSpan(options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").GuardrailSpanData>> & {
128
+ data: {
129
+ name: string;
130
+ };
131
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").GuardrailSpanData>;
132
+ createTranscriptionSpan(options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").TranscriptionSpanData>> & {
133
+ data: {
134
+ input: {
135
+ data: string;
136
+ format: (string & {}) | "pcm";
137
+ };
138
+ };
139
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").TranscriptionSpanData>;
140
+ createSpeechSpan(options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").SpeechSpanData>> & {
141
+ data: {
142
+ output: {
143
+ data: string;
144
+ format: (string & {}) | "pcm";
145
+ };
146
+ };
147
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").SpeechSpanData>;
148
+ createSpeechGroupSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").SpeechGroupSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").SpeechGroupSpanData>;
149
+ createMCPListToolsSpan(options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").MCPListToolsSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined): import("@openai/agents").Span<import("@openai/agents").MCPListToolsSpanData>;
150
+ withResponseSpan: <TOutput>(fn: (span: import("@openai/agents").Span<import("@openai/agents").ResponseSpanData>) => Promise<TOutput>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").ResponseSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput>;
151
+ withAgentSpan: <TOutput_1>(fn: (span: import("@openai/agents").Span<import("@openai/agents").AgentSpanData>) => Promise<TOutput_1>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").AgentSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_1>;
152
+ withFunctionSpan: <TOutput_2>(fn: (span: import("@openai/agents").Span<import("@openai/agents").FunctionSpanData>) => Promise<TOutput_2>, options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").FunctionSpanData>> & {
153
+ data: {
154
+ name: string;
155
+ };
156
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_2>;
157
+ withHandoffSpan: <TOutput_3>(fn: (span: import("@openai/agents").Span<import("@openai/agents").HandoffSpanData>) => Promise<TOutput_3>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").HandoffSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_3>;
158
+ withGenerationSpan: <TOutput_4>(fn: (span: import("@openai/agents").Span<import("@openai/agents").GenerationSpanData>) => Promise<TOutput_4>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").GenerationSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_4>;
159
+ withCustomSpan: <TOutput_5>(fn: (span: import("@openai/agents").Span<import("@openai/agents").CustomSpanData>) => Promise<TOutput_5>, options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").CustomSpanData>> & {
160
+ data: {
161
+ name: string;
162
+ };
163
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_5>;
164
+ withGuardrailSpan: <TOutput_6>(fn: (span: import("@openai/agents").Span<import("@openai/agents").GuardrailSpanData>) => Promise<TOutput_6>, options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").GuardrailSpanData>> & {
165
+ data: {
166
+ name: string;
167
+ };
168
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_6>;
169
+ withTranscriptionSpan: <TOutput_7>(fn: (span: import("@openai/agents").Span<import("@openai/agents").TranscriptionSpanData>) => Promise<TOutput_7>, options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").TranscriptionSpanData>> & {
170
+ data: {
171
+ input: {
172
+ data: string;
173
+ format: (string & {}) | "pcm";
174
+ };
175
+ };
176
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_7>;
177
+ withSpeechSpan: <TOutput_8>(fn: (span: import("@openai/agents").Span<import("@openai/agents").SpeechSpanData>) => Promise<TOutput_8>, options: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").SpeechSpanData>> & {
178
+ data: {
179
+ output: {
180
+ data: string;
181
+ format: (string & {}) | "pcm";
182
+ };
183
+ };
184
+ }, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_8>;
185
+ withSpeechGroupSpan: <TOutput_9>(fn: (span: import("@openai/agents").Span<import("@openai/agents").SpeechGroupSpanData>) => Promise<TOutput_9>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").SpeechGroupSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_9>;
186
+ withMCPListToolsSpan: <TOutput_10>(fn: (span: import("@openai/agents").Span<import("@openai/agents").MCPListToolsSpanData>) => Promise<TOutput_10>, options?: import("@openai/agents-core/types").DeepPartial<import("@openai/agents-core/dist/tracing/provider").CreateSpanOptions<import("@openai/agents").MCPListToolsSpanData>> | undefined, parent?: import("@openai/agents").Trace | import("@openai/agents").Span<any> | undefined) => Promise<TOutput_10>;
187
+ OpenAIProvider: typeof import("@openai/agents").OpenAIProvider;
188
+ OpenAIResponsesModel: typeof import("@openai/agents").OpenAIResponsesModel;
189
+ OpenAIChatCompletionsModel: typeof import("@openai/agents").OpenAIChatCompletionsModel;
190
+ setDefaultOpenAIClient: typeof import("@openai/agents").setDefaultOpenAIClient;
191
+ setOpenAIAPI: typeof import("@openai/agents").setOpenAIAPI;
192
+ setDefaultOpenAIKey: typeof import("@openai/agents").setDefaultOpenAIKey;
193
+ setTracingExportApiKey: typeof import("@openai/agents").setTracingExportApiKey;
194
+ setDefaultOpenAITracingExporter: typeof import("@openai/agents").setDefaultOpenAITracingExporter;
195
+ OpenAITracingExporter: typeof import("@openai/agents").OpenAITracingExporter;
196
+ webSearchTool: typeof import("@openai/agents").webSearchTool;
197
+ fileSearchTool: typeof import("@openai/agents").fileSearchTool;
198
+ codeInterpreterTool: typeof import("@openai/agents").codeInterpreterTool;
199
+ imageGenerationTool: typeof import("@openai/agents").imageGenerationTool;
200
+ OpenAIConversationsSession: typeof import("@openai/agents").OpenAIConversationsSession;
201
+ startOpenAIConversationsSession: typeof import("@openai/agents").startOpenAIConversationsSession;
202
+ OpenAIResponsesCompactionSession: typeof import("@openai/agents").OpenAIResponsesCompactionSession;
203
+ }>;
@@ -1,4 +1,4 @@
1
- import OpenAI from 'openai';
1
+ import type OpenAI from 'openai';
2
2
  /**
3
3
  * Uploads files to OpenAI and returns their IDs
4
4
  *
@@ -8,12 +8,11 @@
8
8
  * 4. Returns the scraped markdown content
9
9
  *
10
10
  * WARNING: This function should NOT be used directly in browser environments.
11
- * For browser environments, use fetchUrlContentViaBrowser which proxies through
12
- * the Agents Server API endpoint at /api/scrape
11
+ * For browser environments, proxy the request through the Agents Server API endpoint at /api/scrape
13
12
  *
14
13
  * @param url The URL to fetch and scrape
15
14
  * @returns Markdown content from the URL
16
15
  *
17
- * @private internal utility for USE BROWSER commitment
16
+ * @private internal scraping utility
18
17
  */
19
18
  export declare function fetchUrlContent(url: string): Promise<string>;
@@ -5,9 +5,9 @@
5
5
  * Claude Code `--output-format stream-json`) into a live runtime log file next to the queued
6
6
  * message. This helper extracts the most recent natural-language assistant narration so the
7
7
  * durable chat can show what the agent is doing right now instead of a generic thinking
8
- * placeholder. Only plain assistant text is surfaced; raw tool payloads, JSON envelopes and
9
- * other technical details are intentionally ignored, and harnesses that do not stream
10
- * structured text simply resolve to `null` so the caller keeps its existing behavior.
8
+ * placeholder. Only concrete, safe activity is surfaced; raw tool payloads, JSON envelopes,
9
+ * and private reasoning are intentionally ignored. When no concrete activity is known, this
10
+ * resolves to `null` so the caller keeps the browser's rotating generic thinking state.
11
11
  *
12
12
  * @param logText - Raw runtime log content.
13
13
  * @returns Latest human-readable activity snippet, or `null` when none can be resolved.
@@ -75,9 +75,12 @@ export type CreateTerminalAgentAvatarVisualOptions = {
75
75
  */
76
76
  readonly colorDepth?: AsciiArtColorDepth;
77
77
  /**
78
- * Platform-specific canvas factory used to rasterize the visual.
78
+ * Platform-specific canvas factory used to rasterize pixel-based visuals.
79
+ *
80
+ * Character-based visuals such as `AsciiOctopus` paint the terminal grid directly, so they
81
+ * render without any canvas; a pixel-based visual renders an empty frame when it is missing.
79
82
  */
80
- readonly createCanvas: CreateCanvasForAsciiArt;
83
+ readonly createCanvas?: CreateCanvasForAsciiArt;
81
84
  };
82
85
  /**
83
86
  * Resolves the built-in avatar visual selected for terminal rendering of one agent source.
@@ -62,6 +62,12 @@ export type ConvertImageDataToAsciiArtOptions = {
62
62
  */
63
63
  readonly alphaThreshold?: number;
64
64
  };
65
+ /**
66
+ * Default alpha channel value below which a cell is rendered as terminal background.
67
+ *
68
+ * @private within the repository
69
+ */
70
+ export declare const DEFAULT_ALPHA_THRESHOLD = 32;
65
71
  /**
66
72
  * Converts raw RGBA image pixels into colored ASCII art for ANSI terminals.
67
73
  *
@@ -0,0 +1,46 @@
1
+ import type { AsciiArtColorDepth } from './convertImageDataToAsciiArt';
2
+ /**
3
+ * ANSI escape sequence that resets all colors and attributes.
4
+ *
5
+ * @private within the repository
6
+ */
7
+ export declare const ANSI_RESET = "\u001B[0m";
8
+ /**
9
+ * One opaque 24-bit color which should be written into an ANSI escape sequence.
10
+ *
11
+ * @private within the repository
12
+ */
13
+ export type AnsiRgbColor = {
14
+ /**
15
+ * Red channel in the range `[0, 255]`.
16
+ */
17
+ readonly red: number;
18
+ /**
19
+ * Green channel in the range `[0, 255]`.
20
+ */
21
+ readonly green: number;
22
+ /**
23
+ * Blue channel in the range `[0, 255]`.
24
+ */
25
+ readonly blue: number;
26
+ };
27
+ /**
28
+ * Creates the ANSI escape code that sets the foreground color of following characters.
29
+ *
30
+ * @param color Color painted onto the characters.
31
+ * @param colorDepth Color depth supported by the target terminal.
32
+ * @returns ANSI escape sequence.
33
+ *
34
+ * @private within the repository
35
+ */
36
+ export declare function createAnsiForegroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;
37
+ /**
38
+ * Creates the ANSI escape code that sets the background color of following characters.
39
+ *
40
+ * @param color Color painted behind the characters.
41
+ * @param colorDepth Color depth supported by the target terminal.
42
+ * @returns ANSI escape sequence.
43
+ *
44
+ * @private within the repository
45
+ */
46
+ export declare function createAnsiBackgroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;