@promptbook/cli 0.112.0-66 → 0.112.0-70

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 (764) hide show
  1. package/README.md +3 -3
  2. package/esm/index.es.js +24823 -24466
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-agent-messages/main/listLocalAgentRunnerProjects.d.ts +11 -0
  5. package/esm/scripts/run-agent-messages/main/loadAgentMessageQueueSnapshot.d.ts +25 -0
  6. package/esm/scripts/run-agent-messages/main/pullLatestChangesForAgentQueueIfEnabled.d.ts +9 -0
  7. package/esm/scripts/run-agent-messages/main/runAgentMessages.d.ts +3 -1
  8. package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +7 -0
  9. package/esm/scripts/run-agent-messages/main/synchronizeGithubAgentRunnerRepositories.d.ts +27 -0
  10. package/esm/scripts/run-agent-messages/main/tickAgentMessages.d.ts +5 -2
  11. package/esm/scripts/run-agent-messages/main/validateAgentWatchOptions.d.ts +5 -0
  12. package/esm/scripts/run-agent-messages/main/withCurrentWorkingDirectory.d.ts +4 -0
  13. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +1 -1
  14. package/esm/scripts/run-agent-messages/messages/listQueuedAgentMessages.d.ts +1 -1
  15. package/esm/scripts/run-agent-messages/ui/buildAgentRunInitialsVisual.d.ts +1 -1
  16. package/esm/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +15 -0
  17. package/esm/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +4 -0
  18. package/esm/scripts/run-codex-prompts/git/agentGitIdentity.d.ts +4 -0
  19. package/esm/src/_packages/core.index.d.ts +2 -0
  20. package/esm/src/avatars/AvatarOrImage.d.ts +2 -1
  21. package/esm/src/avatars/avatarRenderingUtils.d.ts +1 -1
  22. package/esm/src/avatars/renderAvatarVisual.d.ts +1 -2
  23. package/esm/src/avatars/types/AvatarDefinition.d.ts +2 -1
  24. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +3 -2
  25. package/esm/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  26. package/esm/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  27. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +5 -1
  28. package/esm/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -2
  29. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +1 -1
  30. package/esm/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  31. package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +4 -1
  32. package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -1
  33. package/esm/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  34. package/esm/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  35. package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +1 -1
  36. package/esm/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -1
  37. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +1 -1
  38. package/esm/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -1
  39. package/esm/src/book-3.0/Book.d.ts +33 -0
  40. package/esm/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -1
  41. package/esm/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -1
  42. package/esm/src/book-components/BookEditor/BookEditor.d.ts +4 -1
  43. package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +1 -1
  44. package/esm/src/book-components/Chat/AgentChip/AgentChip.d.ts +1 -1
  45. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +2 -2
  46. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -1
  47. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +1 -1
  48. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +4 -4
  49. package/esm/src/book-components/Chat/Chat/ChatRatingModal.d.ts +1 -1
  50. package/esm/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +2 -2
  51. package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -2
  52. package/esm/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +2 -2
  53. package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +1 -1
  54. package/esm/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +1 -1
  55. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +1 -1
  56. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +1 -1
  57. package/esm/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +1 -1
  58. package/esm/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +3 -3
  59. package/esm/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +2 -2
  60. package/esm/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +1 -1
  61. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -1
  62. package/esm/src/book-components/Chat/hooks/useChatRatings.d.ts +2 -2
  63. package/esm/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  64. package/esm/src/book-components/Chat/types/ChatMessage.d.ts +6 -2
  65. package/esm/src/book-components/Chat/types/ChatParticipant.d.ts +5 -3
  66. package/esm/src/book-components/Chat/utils/citationHelpers.d.ts +1 -1
  67. package/esm/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +1 -1
  68. package/esm/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +1 -1
  69. package/esm/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +2 -2
  70. package/esm/src/book-components/Chat/utils/loadAgentProfile.d.ts +2 -1
  71. package/esm/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  72. package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +1 -1
  73. package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +1 -1
  74. package/esm/src/book-components/Qr/useQrCode.d.ts +1 -1
  75. package/esm/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  76. package/esm/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
  77. package/esm/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
  78. package/esm/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
  79. package/esm/src/cli/cli-commands/agent.d.ts +3 -2
  80. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  81. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -1
  82. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  83. package/esm/src/cli/common/$provideLlmToolsForCli.d.ts +1 -1
  84. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +3 -3
  85. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  86. package/esm/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  87. package/esm/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +1 -1
  88. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +2 -1
  89. package/esm/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +1 -1
  90. package/esm/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +1 -1
  91. package/esm/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +1 -1
  92. package/esm/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  93. package/esm/src/commands/JOKER/JokerCommand.d.ts +1 -1
  94. package/esm/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +1 -1
  95. package/esm/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -2
  96. package/esm/src/commands/PARAMETER/ParameterCommand.d.ts +2 -2
  97. package/esm/src/commands/PERSONA/PersonaCommand.d.ts +2 -2
  98. package/esm/src/commands/POSTPROCESS/PostprocessCommand.d.ts +1 -1
  99. package/esm/src/commands/_common/parseCommand.d.ts +1 -1
  100. package/esm/src/commands/_common/stringifyCommand.d.ts +1 -1
  101. package/esm/src/commands/_common/types/CommandParser.d.ts +2 -1
  102. package/esm/src/commitments/MEMORY/MEMORY.d.ts +2 -2
  103. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +1 -1
  104. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +1 -1
  105. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +1 -1
  106. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +1 -1
  107. package/esm/src/commitments/TEAM/TEAM.d.ts +2 -2
  108. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +2 -2
  109. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +1 -1
  110. package/esm/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +1 -1
  111. package/esm/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +1 -1
  112. package/esm/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +1 -1
  113. package/esm/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  114. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +2 -2
  115. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +2 -2
  116. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  117. package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +2 -2
  118. package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +2 -2
  119. package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +1 -1
  120. package/esm/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +1 -1
  121. package/esm/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +1 -1
  122. package/esm/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  123. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -2
  124. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +2 -2
  125. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +1 -1
  126. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +2 -2
  127. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +1 -1
  128. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +2 -2
  129. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +1 -1
  130. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +1 -1
  131. package/esm/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -2
  132. package/esm/src/commitments/WALLET/WALLET.d.ts +1 -1
  133. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +1 -1
  134. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +1 -1
  135. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +1 -1
  136. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +1 -1
  137. package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +2 -2
  138. package/esm/src/commitments/_base/CommitmentDefinition.d.ts +2 -2
  139. package/esm/src/commitments/_common/commitmentToolFunctions.d.ts +2 -2
  140. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +1 -1
  141. package/esm/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -1
  142. package/esm/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  143. package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  144. package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +1 -1
  145. package/esm/src/commitments/_common/toolRuntimeContext.d.ts +1 -1
  146. package/esm/src/config.d.ts +5 -1
  147. package/esm/src/conversion/archive/loadArchive.d.ts +1 -1
  148. package/esm/src/conversion/archive/saveArchive.d.ts +1 -1
  149. package/esm/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -1
  150. package/esm/src/conversion/utils/extractParameterNamesFromTask.d.ts +1 -1
  151. package/esm/src/errors/PipelineExecutionError.d.ts +1 -1
  152. package/esm/src/errors/utils/ErrorJson.d.ts +1 -1
  153. package/esm/src/executables/apps/locateLibreoffice.d.ts +1 -1
  154. package/esm/src/executables/apps/locatePandoc.d.ts +1 -1
  155. package/esm/src/executables/apps/locateVscode.d.ts +1 -1
  156. package/esm/src/executables/browsers/locateBrowser.d.ts +1 -1
  157. package/esm/src/executables/browsers/locateChrome.d.ts +1 -1
  158. package/esm/src/executables/browsers/locateDefaultSystemBrowser.d.ts +1 -1
  159. package/esm/src/executables/browsers/locateEdge.d.ts +1 -1
  160. package/esm/src/executables/browsers/locateFirefox.d.ts +1 -1
  161. package/esm/src/executables/browsers/locateInternetExplorer.d.ts +1 -1
  162. package/esm/src/executables/browsers/locateSafari.d.ts +1 -1
  163. package/esm/src/executables/locateApp.d.ts +1 -1
  164. package/esm/src/executables/platforms/locateAppOnLinux.d.ts +1 -1
  165. package/esm/src/executables/platforms/locateAppOnMacOs.d.ts +1 -1
  166. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  167. package/esm/src/execution/AbstractTaskResult.d.ts +1 -1
  168. package/esm/src/execution/AvailableModel.d.ts +5 -1
  169. package/esm/src/execution/CommonToolsOptions.d.ts +1 -1
  170. package/esm/src/execution/Executables.d.ts +1 -1
  171. package/esm/src/execution/ExecutionTask.d.ts +3 -2
  172. package/esm/src/execution/LlmExecutionTools.d.ts +2 -1
  173. package/esm/src/execution/PipelineExecutor.d.ts +1 -1
  174. package/esm/src/execution/PipelineExecutorResult.d.ts +2 -2
  175. package/esm/src/execution/PromptResult.d.ts +3 -1
  176. package/esm/src/execution/PromptbookFetch.d.ts +1 -1
  177. package/esm/src/execution/ScriptExecutionTools.d.ts +2 -2
  178. package/esm/src/execution/UncertainNumber.d.ts +2 -2
  179. package/esm/src/execution/UserInterfaceTools.d.ts +1 -2
  180. package/esm/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  181. package/esm/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -1
  182. package/esm/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +2 -1
  183. package/esm/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  184. package/esm/src/execution/createPipelineExecutor/getContextForTask.d.ts +2 -2
  185. package/esm/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  186. package/esm/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -1
  187. package/esm/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  188. package/esm/src/execution/execution-report/ExecutionReportJson.d.ts +3 -3
  189. package/esm/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  190. package/esm/src/execution/utils/usageToHuman.d.ts +1 -1
  191. package/esm/src/execution/utils/validatePromptResult.d.ts +1 -1
  192. package/esm/src/file-security-checkers/FileSecurityCheckResult.d.ts +2 -1
  193. package/esm/src/file-security-checkers/FileSecurityChecker.d.ts +3 -1
  194. package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +1 -1
  195. package/esm/src/formats/_common/FormatParser.d.ts +2 -2
  196. package/esm/src/formats/_common/FormatSubvalueParser.d.ts +2 -3
  197. package/esm/src/formats/csv/utils/csvParse.d.ts +1 -1
  198. package/esm/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +2 -3
  199. package/esm/src/import-plugins/FileImportPlugin.d.ts +1 -1
  200. package/esm/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -1
  201. package/esm/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +3 -2
  202. package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
  203. package/esm/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -1
  204. package/esm/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -1
  205. package/esm/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +3 -1
  206. package/esm/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -1
  207. package/esm/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -2
  208. package/esm/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +2 -1
  209. package/esm/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +2 -1
  210. package/esm/src/llm-providers/agent/Agent.d.ts +6 -2
  211. package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +3 -1
  212. package/esm/src/llm-providers/agent/RemoteAgent.d.ts +2 -2
  213. package/esm/src/llm-providers/agent/RemoteAgentOptions.d.ts +1 -1
  214. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -1
  215. package/esm/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  216. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -1
  217. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +2 -3
  218. package/esm/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
  219. package/esm/src/llm-providers/google/google-models.d.ts +1 -1
  220. package/esm/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -1
  221. package/esm/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -1
  222. package/esm/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -1
  223. package/esm/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -1
  224. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +3 -2
  225. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  226. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +3 -1
  227. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  228. package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -1
  229. package/esm/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  230. package/esm/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +2 -2
  231. package/esm/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -1
  232. package/esm/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +1 -1
  233. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +2 -1
  234. package/esm/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +2 -1
  235. package/esm/src/other/templates/getBookTemplates.d.ts +1 -1
  236. package/esm/src/personas/preparePersona.d.ts +1 -1
  237. package/esm/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -8
  238. package/esm/src/pipeline/PipelineJson/Expectations.d.ts +1 -2
  239. package/esm/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -6
  240. package/esm/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -3
  241. package/esm/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  242. package/esm/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -3
  243. package/esm/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  244. package/esm/src/pipeline/PipelineJson/PreparationJson.d.ts +1 -1
  245. package/esm/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  246. package/esm/src/pipeline/prompt-notation.d.ts +1 -1
  247. package/esm/src/postprocessing/utils/extractBlock.d.ts +1 -1
  248. package/esm/src/postprocessing/utils/extractJsonBlock.d.ts +1 -2
  249. package/esm/src/prepare/PrepareAndScrapeOptions.d.ts +1 -1
  250. package/esm/src/remote-server/socket-types/_subtypes/Identification.d.ts +2 -2
  251. package/esm/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  252. package/esm/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  253. package/esm/src/remote-server/startAgentServer.d.ts +1 -1
  254. package/esm/src/remote-server/types/RemoteClientOptions.d.ts +1 -1
  255. package/esm/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
  256. package/esm/src/scrapers/_common/Scraper.d.ts +4 -4
  257. package/esm/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -1
  258. package/esm/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -1
  259. package/esm/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  260. package/esm/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  261. package/esm/src/scrapers/website/WebsiteScraper.d.ts +2 -3
  262. package/esm/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -2
  263. package/esm/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +2 -2
  264. package/esm/src/search-engines/SearchEngine.d.ts +2 -1
  265. package/esm/src/search-engines/SearchResult.d.ts +1 -1
  266. package/esm/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  267. package/esm/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  268. package/esm/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  269. package/esm/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  270. package/esm/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  271. package/esm/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  272. package/esm/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  273. package/esm/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  274. package/esm/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +1 -1
  275. package/esm/src/transpilers/_common/formatUsedToolFunctions.d.ts +1 -1
  276. package/esm/src/transpilers/agent-os/AgentOsTranspiler.d.ts +1 -1
  277. package/esm/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +1 -1
  278. package/esm/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +1 -1
  279. package/esm/src/transpilers/e2b/E2BTranspiler.d.ts +1 -1
  280. package/esm/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  281. package/esm/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +1 -1
  282. package/esm/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  283. package/esm/src/types/LlmCall.d.ts +1 -1
  284. package/esm/src/types/LlmToolDefinition.d.ts +2 -1
  285. package/esm/src/types/Message.d.ts +4 -3
  286. package/esm/src/types/ModelRequirements.d.ts +4 -2
  287. package/esm/src/types/Prompt.d.ts +7 -12
  288. package/esm/src/types/SpeechRecognition.d.ts +1 -1
  289. package/esm/src/types/ToolCall.d.ts +1 -1
  290. package/esm/src/types/string_email.d.ts +1 -1
  291. package/esm/src/types/string_host.d.ts +1 -1
  292. package/esm/src/types/string_person_fullname.d.ts +1 -1
  293. package/esm/src/types/string_token.d.ts +1 -1
  294. package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -1
  295. package/esm/src/utils/color/Color.d.ts +2 -1
  296. package/esm/src/utils/color/internal-utils/hslToRgb.d.ts +2 -3
  297. package/esm/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -3
  298. package/esm/src/utils/color/operators/darken.d.ts +1 -1
  299. package/esm/src/utils/color/operators/grayscale.d.ts +1 -1
  300. package/esm/src/utils/color/operators/lighten.d.ts +1 -1
  301. package/esm/src/utils/color/operators/mixWithColor.d.ts +1 -1
  302. package/esm/src/utils/color/operators/saturate.d.ts +1 -1
  303. package/esm/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  304. package/esm/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  305. package/esm/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  306. package/esm/src/utils/color/utils/colorToDataUrl.d.ts +3 -1
  307. package/esm/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
  308. package/esm/src/utils/editable/types/PipelineEditableSerialized.d.ts +1 -1
  309. package/esm/src/utils/editable/utils/renamePipelineParameter.d.ts +1 -1
  310. package/esm/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -1
  311. package/esm/src/utils/files/$induceFileDownload.d.ts +1 -1
  312. package/esm/src/utils/files/ObjectUrl.d.ts +2 -1
  313. package/esm/src/utils/files/extensionToMimeType.d.ts +2 -2
  314. package/esm/src/utils/files/getFileExtension.d.ts +2 -2
  315. package/esm/src/utils/files/isDirectoryExisting.d.ts +1 -1
  316. package/esm/src/utils/files/isFileExisting.d.ts +1 -1
  317. package/esm/src/utils/files/listAllFiles.d.ts +1 -1
  318. package/esm/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  319. package/esm/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  320. package/esm/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  321. package/esm/src/utils/knowledge/inlineKnowledgeSource.d.ts +3 -1
  322. package/esm/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
  323. package/esm/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  324. package/esm/src/utils/markdown/createMarkdownTable.d.ts +1 -2
  325. package/esm/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -1
  326. package/esm/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -1
  327. package/esm/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
  328. package/esm/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +1 -1
  329. package/esm/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  330. package/esm/src/utils/markdown/humanizeAiText.d.ts +1 -1
  331. package/esm/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -1
  332. package/esm/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  333. package/esm/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -1
  334. package/esm/src/utils/markdown/humanizeAiTextSources.d.ts +1 -1
  335. package/esm/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -1
  336. package/esm/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  337. package/esm/src/utils/markdown/prettifyMarkdown.d.ts +1 -1
  338. package/esm/src/utils/markdown/promptbookifyAiText.d.ts +1 -1
  339. package/esm/src/utils/markdown/removeMarkdownComments.d.ts +1 -2
  340. package/esm/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -1
  341. package/esm/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  342. package/esm/src/utils/misc/$Register.d.ts +1 -1
  343. package/esm/src/utils/misc/$getCurrentDate.d.ts +1 -1
  344. package/esm/src/utils/misc/aboutPromptbookInformation.d.ts +1 -1
  345. package/esm/src/utils/misc/computeHash.d.ts +2 -2
  346. package/esm/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +1 -1
  347. package/esm/src/utils/normalization/suffixUrl.d.ts +1 -1
  348. package/esm/src/utils/organization/keepImported.d.ts +1 -1
  349. package/esm/src/utils/parameters/extractParameterNames.d.ts +2 -2
  350. package/esm/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -1
  351. package/esm/src/utils/parameters/numberToString.d.ts +1 -1
  352. package/esm/src/utils/parameters/templateParameters.d.ts +2 -1
  353. package/esm/src/utils/parameters/valueToString.d.ts +1 -1
  354. package/esm/src/utils/random/$generateBookBoilerplate.d.ts +1 -1
  355. package/esm/src/utils/random/$randomAgentPersona.d.ts +1 -1
  356. package/esm/src/utils/random/$randomAgentRule.d.ts +1 -1
  357. package/esm/src/utils/random/$randomFullnameWithColor.d.ts +1 -1
  358. package/esm/src/utils/random/$randomSeed.d.ts +1 -1
  359. package/esm/src/utils/random/$randomToken.d.ts +1 -1
  360. package/esm/src/utils/random/NamePool.d.ts +1 -1
  361. package/esm/src/utils/serialization/checkSerializableAsJson.d.ts +1 -1
  362. package/esm/src/utils/serialization/serializeToPromptbookJavascript.d.ts +1 -1
  363. package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
  364. package/esm/src/utils/validators/email/isValidEmail.d.ts +1 -1
  365. package/esm/src/utils/validators/filePath/isRootPath.d.ts +1 -2
  366. package/esm/src/utils/validators/filePath/isValidFilePath.d.ts +1 -1
  367. package/esm/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +1 -1
  368. package/esm/src/utils/validators/parameterName/validateParameterName.d.ts +1 -1
  369. package/esm/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  370. package/esm/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +1 -1
  371. package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +2 -2
  372. package/esm/src/utils/validators/url/isValidAgentUrl.d.ts +1 -1
  373. package/esm/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -1
  374. package/esm/src/utils/validators/url/isValidUrl.d.ts +1 -1
  375. package/esm/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  376. package/esm/src/version.d.ts +1 -1
  377. package/esm/src/wizard/$getCompiledBook.d.ts +2 -1
  378. package/esm/src/wizard/wizard.d.ts +4 -1
  379. package/package.json +1 -1
  380. package/umd/index.umd.js +25395 -25038
  381. package/umd/index.umd.js.map +1 -1
  382. package/umd/scripts/run-agent-messages/main/listLocalAgentRunnerProjects.d.ts +11 -0
  383. package/umd/scripts/run-agent-messages/main/loadAgentMessageQueueSnapshot.d.ts +25 -0
  384. package/umd/scripts/run-agent-messages/main/pullLatestChangesForAgentQueueIfEnabled.d.ts +9 -0
  385. package/umd/scripts/run-agent-messages/main/runAgentMessages.d.ts +3 -1
  386. package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +7 -0
  387. package/umd/scripts/run-agent-messages/main/synchronizeGithubAgentRunnerRepositories.d.ts +27 -0
  388. package/umd/scripts/run-agent-messages/main/tickAgentMessages.d.ts +5 -2
  389. package/umd/scripts/run-agent-messages/main/validateAgentWatchOptions.d.ts +5 -0
  390. package/umd/scripts/run-agent-messages/main/withCurrentWorkingDirectory.d.ts +4 -0
  391. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +1 -1
  392. package/umd/scripts/run-agent-messages/messages/listQueuedAgentMessages.d.ts +1 -1
  393. package/umd/scripts/run-agent-messages/ui/buildAgentRunInitialsVisual.d.ts +1 -1
  394. package/umd/scripts/run-agent-messages/ui/initializeAgentRunUi.d.ts +15 -0
  395. package/umd/scripts/run-agent-messages/ui/loadAgentRunUiMetadata.d.ts +4 -0
  396. package/umd/scripts/run-codex-prompts/git/agentGitIdentity.d.ts +4 -0
  397. package/umd/src/_packages/core.index.d.ts +2 -0
  398. package/umd/src/avatars/AvatarOrImage.d.ts +2 -1
  399. package/umd/src/avatars/avatarRenderingUtils.d.ts +1 -1
  400. package/umd/src/avatars/renderAvatarVisual.d.ts +1 -2
  401. package/umd/src/avatars/types/AvatarDefinition.d.ts +2 -1
  402. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +3 -2
  403. package/umd/src/avatars/visuals/avatar3dProjectionShared.d.ts +141 -0
  404. package/umd/src/avatars/visuals/octopus3dAvatarVisual.d.ts +7 -0
  405. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +5 -1
  406. package/umd/src/book-2.0/agent-source/AgentModelRequirements.d.ts +3 -2
  407. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +1 -1
  408. package/umd/src/book-2.0/agent-source/computeAgentHash.d.ts +2 -2
  409. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +4 -1
  410. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.d.ts +1 -1
  411. package/umd/src/book-2.0/agent-source/createDefaultAgentName.d.ts +2 -2
  412. package/umd/src/book-2.0/agent-source/normalizeAgentName.d.ts +1 -1
  413. package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +1 -1
  414. package/umd/src/book-2.0/agent-source/parseTeamCommitment.d.ts +1 -1
  415. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +1 -1
  416. package/umd/src/book-2.0/utils/generatePlaceholderAgentProfileImageUrl.d.ts +3 -1
  417. package/umd/src/book-3.0/Book.d.ts +33 -0
  418. package/umd/src/book-3.0/Book.test.d.ts +1 -0
  419. package/umd/src/book-components/AvatarProfile/AvatarChip/AvatarChip.d.ts +1 -1
  420. package/umd/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.d.ts +1 -1
  421. package/umd/src/book-components/BookEditor/BookEditor.d.ts +4 -1
  422. package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +1 -1
  423. package/umd/src/book-components/Chat/AgentChip/AgentChip.d.ts +1 -1
  424. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +2 -2
  425. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -1
  426. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +1 -1
  427. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +4 -4
  428. package/umd/src/book-components/Chat/Chat/ChatRatingModal.d.ts +1 -1
  429. package/umd/src/book-components/Chat/Chat/ChatToolCallModalContent.d.ts +2 -2
  430. package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +2 -2
  431. package/umd/src/book-components/Chat/Chat/createChatMessageToolCallRenderModel.d.ts +2 -2
  432. package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +1 -1
  433. package/umd/src/book-components/Chat/Chat/resolveRunBrowserToolCallDetailsState.d.ts +1 -1
  434. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictation.d.ts +1 -1
  435. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationPersistence.d.ts +1 -1
  436. package/umd/src/book-components/Chat/Chat/useChatInputAreaDictationSupport.d.ts +1 -1
  437. package/umd/src/book-components/Chat/Chat/useChatToolCallModalState.d.ts +3 -3
  438. package/umd/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +2 -2
  439. package/umd/src/book-components/Chat/LlmChat/useLlmChatMessageHandler.d.ts +1 -1
  440. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +1 -1
  441. package/umd/src/book-components/Chat/hooks/useChatRatings.d.ts +2 -2
  442. package/umd/src/book-components/Chat/save/_common/ChatSaveFormatDefinition.d.ts +2 -1
  443. package/umd/src/book-components/Chat/types/ChatMessage.d.ts +6 -2
  444. package/umd/src/book-components/Chat/types/ChatParticipant.d.ts +5 -3
  445. package/umd/src/book-components/Chat/utils/citationHelpers.d.ts +1 -1
  446. package/umd/src/book-components/Chat/utils/collectTeamToolCallSummary.d.ts +1 -1
  447. package/umd/src/book-components/Chat/utils/createCitationFootnoteRenderModel.d.ts +1 -1
  448. package/umd/src/book-components/Chat/utils/getToolCallChipletInfo.d.ts +2 -2
  449. package/umd/src/book-components/Chat/utils/loadAgentProfile.d.ts +2 -1
  450. package/umd/src/book-components/Chat/utils/resolveCitationUrl.d.ts +1 -1
  451. package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +1 -1
  452. package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +1 -1
  453. package/umd/src/book-components/Qr/useQrCode.d.ts +1 -1
  454. package/umd/src/book-components/_common/react-utils/classNames.d.ts +1 -1
  455. package/umd/src/cli/cli-commands/agent/agentProjectPaths.d.ts +2 -2
  456. package/umd/src/cli/cli-commands/agent/initializeAgentRunnerCommand.d.ts +22 -0
  457. package/umd/src/cli/cli-commands/agent/runMultiple.d.ts +10 -0
  458. package/umd/src/cli/cli-commands/agent.d.ts +3 -2
  459. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +1 -1
  460. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +1 -1
  461. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
  462. package/umd/src/cli/common/$provideLlmToolsForCli.d.ts +1 -1
  463. package/umd/src/cli/other/install.test.d.ts +1 -0
  464. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +3 -3
  465. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
  466. package/umd/src/collection/pipeline-collection/PipelineCollection.d.ts +1 -1
  467. package/umd/src/collection/pipeline-collection/SimplePipelineCollection.d.ts +1 -1
  468. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromDirectory.d.ts +2 -1
  469. package/umd/src/collection/pipeline-collection/constructors/createPipelineCollectionFromUrl.d.ts +1 -1
  470. package/umd/src/collection/pipeline-collection/constructors/createPipelineSubcollection.d.ts +1 -1
  471. package/umd/src/commands/BOOK_VERSION/BookVersionCommand.d.ts +1 -1
  472. package/umd/src/commands/FOREACH/ForeachJson.d.ts +1 -1
  473. package/umd/src/commands/JOKER/JokerCommand.d.ts +1 -1
  474. package/umd/src/commands/KNOWLEDGE/KnowledgeCommand.d.ts +1 -1
  475. package/umd/src/commands/KNOWLEDGE/utils/knowledgeSourceContentToName.d.ts +2 -2
  476. package/umd/src/commands/PARAMETER/ParameterCommand.d.ts +2 -2
  477. package/umd/src/commands/PERSONA/PersonaCommand.d.ts +2 -2
  478. package/umd/src/commands/POSTPROCESS/PostprocessCommand.d.ts +1 -1
  479. package/umd/src/commands/_common/parseCommand.d.ts +1 -1
  480. package/umd/src/commands/_common/stringifyCommand.d.ts +1 -1
  481. package/umd/src/commands/_common/types/CommandParser.d.ts +2 -1
  482. package/umd/src/commitments/MEMORY/MEMORY.d.ts +2 -2
  483. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +1 -1
  484. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +1 -1
  485. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +1 -1
  486. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +1 -1
  487. package/umd/src/commitments/TEAM/TEAM.d.ts +2 -2
  488. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +2 -2
  489. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +1 -1
  490. package/umd/src/commitments/USE_CALENDAR/USE_CALENDAR.d.ts +1 -1
  491. package/umd/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.d.ts +1 -1
  492. package/umd/src/commitments/USE_CALENDAR/getUseCalendarToolTitles.d.ts +1 -1
  493. package/umd/src/commitments/USE_CALENDAR/resolveUseCalendarToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  494. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +2 -2
  495. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +2 -2
  496. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +1 -1
  497. package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +2 -2
  498. package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +2 -2
  499. package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +1 -1
  500. package/umd/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +1 -1
  501. package/umd/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +1 -1
  502. package/umd/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +1 -1
  503. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +2 -2
  504. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +2 -2
  505. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +1 -1
  506. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +2 -2
  507. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +1 -1
  508. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +2 -2
  509. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +1 -1
  510. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +1 -1
  511. package/umd/src/commitments/USE_USER_LOCATION/USE_USER_LOCATION.d.ts +2 -2
  512. package/umd/src/commitments/WALLET/WALLET.d.ts +1 -1
  513. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +1 -1
  514. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +1 -1
  515. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +1 -1
  516. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +1 -1
  517. package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +2 -2
  518. package/umd/src/commitments/_base/CommitmentDefinition.d.ts +2 -2
  519. package/umd/src/commitments/_common/commitmentToolFunctions.d.ts +2 -2
  520. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +1 -1
  521. package/umd/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.d.ts +1 -1
  522. package/umd/src/commitments/_common/getAllCommitmentsToolTitles.d.ts +1 -1
  523. package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.d.ts +1 -1
  524. package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +1 -1
  525. package/umd/src/commitments/_common/toolRuntimeContext.d.ts +1 -1
  526. package/umd/src/config.d.ts +5 -1
  527. package/umd/src/conversion/archive/loadArchive.d.ts +1 -1
  528. package/umd/src/conversion/archive/saveArchive.d.ts +1 -1
  529. package/umd/src/conversion/prettify/renderPipelineMermaidOptions.d.ts +1 -1
  530. package/umd/src/conversion/utils/extractParameterNamesFromTask.d.ts +1 -1
  531. package/umd/src/errors/PipelineExecutionError.d.ts +1 -1
  532. package/umd/src/errors/utils/ErrorJson.d.ts +1 -1
  533. package/umd/src/executables/apps/locateLibreoffice.d.ts +1 -1
  534. package/umd/src/executables/apps/locatePandoc.d.ts +1 -1
  535. package/umd/src/executables/apps/locateVscode.d.ts +1 -1
  536. package/umd/src/executables/browsers/locateBrowser.d.ts +1 -1
  537. package/umd/src/executables/browsers/locateChrome.d.ts +1 -1
  538. package/umd/src/executables/browsers/locateDefaultSystemBrowser.d.ts +1 -1
  539. package/umd/src/executables/browsers/locateEdge.d.ts +1 -1
  540. package/umd/src/executables/browsers/locateFirefox.d.ts +1 -1
  541. package/umd/src/executables/browsers/locateInternetExplorer.d.ts +1 -1
  542. package/umd/src/executables/browsers/locateSafari.d.ts +1 -1
  543. package/umd/src/executables/locateApp.d.ts +1 -1
  544. package/umd/src/executables/platforms/locateAppOnLinux.d.ts +1 -1
  545. package/umd/src/executables/platforms/locateAppOnMacOs.d.ts +1 -1
  546. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  547. package/umd/src/execution/AbstractTaskResult.d.ts +1 -1
  548. package/umd/src/execution/AvailableModel.d.ts +5 -1
  549. package/umd/src/execution/CommonToolsOptions.d.ts +1 -1
  550. package/umd/src/execution/Executables.d.ts +1 -1
  551. package/umd/src/execution/ExecutionTask.d.ts +3 -2
  552. package/umd/src/execution/LlmExecutionTools.d.ts +2 -1
  553. package/umd/src/execution/PipelineExecutor.d.ts +1 -1
  554. package/umd/src/execution/PipelineExecutorResult.d.ts +2 -2
  555. package/umd/src/execution/PromptResult.d.ts +3 -1
  556. package/umd/src/execution/PromptbookFetch.d.ts +1 -1
  557. package/umd/src/execution/ScriptExecutionTools.d.ts +2 -2
  558. package/umd/src/execution/UncertainNumber.d.ts +2 -2
  559. package/umd/src/execution/UserInterfaceTools.d.ts +1 -2
  560. package/umd/src/execution/createPipelineExecutor/10-executePipeline.d.ts +1 -1
  561. package/umd/src/execution/createPipelineExecutor/20-executeTask.d.ts +1 -1
  562. package/umd/src/execution/createPipelineExecutor/40-executeAttempts.d.ts +2 -1
  563. package/umd/src/execution/createPipelineExecutor/filterJustOutputParameters.d.ts +1 -1
  564. package/umd/src/execution/createPipelineExecutor/getContextForTask.d.ts +2 -2
  565. package/umd/src/execution/createPipelineExecutor/getExamplesForTask.d.ts +2 -2
  566. package/umd/src/execution/createPipelineExecutor/getKnowledgeForTask.d.ts +3 -1
  567. package/umd/src/execution/createPipelineExecutor/getReservedParametersForTask.d.ts +1 -2
  568. package/umd/src/execution/execution-report/ExecutionReportJson.d.ts +3 -3
  569. package/umd/src/execution/execution-report/ExecutionReportStringOptions.d.ts +1 -1
  570. package/umd/src/execution/utils/usageToHuman.d.ts +1 -1
  571. package/umd/src/execution/utils/validatePromptResult.d.ts +1 -1
  572. package/umd/src/file-security-checkers/FileSecurityCheckResult.d.ts +2 -1
  573. package/umd/src/file-security-checkers/FileSecurityChecker.d.ts +3 -1
  574. package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +1 -1
  575. package/umd/src/formats/_common/FormatParser.d.ts +2 -2
  576. package/umd/src/formats/_common/FormatSubvalueParser.d.ts +2 -3
  577. package/umd/src/formats/csv/utils/csvParse.d.ts +1 -1
  578. package/umd/src/formfactors/_common/AbstractFormfactorDefinition.d.ts +2 -3
  579. package/umd/src/import-plugins/FileImportPlugin.d.ts +1 -1
  580. package/umd/src/llm-providers/_common/register/$provideEnvFilename.d.ts +1 -1
  581. package/umd/src/llm-providers/_common/register/$provideLlmToolsForWizardOrCli.d.ts +3 -2
  582. package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage.d.ts +2 -1
  583. package/umd/src/llm-providers/_common/register/LlmToolsConfiguration.d.ts +1 -1
  584. package/umd/src/llm-providers/_common/register/LlmToolsMetadata.d.ts +2 -1
  585. package/umd/src/llm-providers/_common/register/createLlmToolsFromConfiguration.d.ts +3 -1
  586. package/umd/src/llm-providers/_common/utils/assertUniqueModels.d.ts +1 -1
  587. package/umd/src/llm-providers/_common/utils/cache/CacheItem.d.ts +2 -2
  588. package/umd/src/llm-providers/_multiple/MultipleLlmExecutionTools.d.ts +2 -1
  589. package/umd/src/llm-providers/_multiple/joinLlmExecutionTools.d.ts +2 -1
  590. package/umd/src/llm-providers/agent/Agent.d.ts +6 -2
  591. package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +3 -1
  592. package/umd/src/llm-providers/agent/RemoteAgent.d.ts +2 -2
  593. package/umd/src/llm-providers/agent/RemoteAgentOptions.d.ts +1 -1
  594. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +2 -1
  595. package/umd/src/llm-providers/anthropic-claude/anthropic-claude-models.d.ts +1 -1
  596. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +2 -1
  597. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionToolsOptions.d.ts +2 -3
  598. package/umd/src/llm-providers/deepseek/deepseek-models.d.ts +1 -1
  599. package/umd/src/llm-providers/google/google-models.d.ts +1 -1
  600. package/umd/src/llm-providers/mocked/$fakeTextToExpectations.d.ts +1 -1
  601. package/umd/src/llm-providers/mocked/MockedEchoLlmExecutionTools.d.ts +2 -1
  602. package/umd/src/llm-providers/mocked/MockedFackedLlmExecutionTools.d.ts +2 -1
  603. package/umd/src/llm-providers/ollama/OllamaExecutionTools.d.ts +2 -1
  604. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +3 -2
  605. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsOptions.d.ts +1 -1
  606. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +3 -1
  607. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsOptions.d.ts +1 -1
  608. package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +3 -1
  609. package/umd/src/llm-providers/openai/OpenAiExecutionTools.d.ts +2 -1
  610. package/umd/src/llm-providers/openai/OpenAiVectorStoreHandler.d.ts +2 -2
  611. package/umd/src/llm-providers/openai/createOpenAiCompatibleExecutionTools.d.ts +3 -1
  612. package/umd/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.d.ts +1 -1
  613. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +2 -1
  614. package/umd/src/llm-providers/remote/RemoteLlmExecutionTools.d.ts +2 -1
  615. package/umd/src/other/templates/getBookTemplates.d.ts +1 -1
  616. package/umd/src/personas/preparePersona.d.ts +1 -1
  617. package/umd/src/pipeline/PipelineJson/CommonTaskJson.d.ts +4 -8
  618. package/umd/src/pipeline/PipelineJson/Expectations.d.ts +1 -2
  619. package/umd/src/pipeline/PipelineJson/KnowledgePieceJson.d.ts +4 -6
  620. package/umd/src/pipeline/PipelineJson/KnowledgeSourceJson.d.ts +3 -3
  621. package/umd/src/pipeline/PipelineJson/ParameterJson.d.ts +2 -3
  622. package/umd/src/pipeline/PipelineJson/PersonaJson.d.ts +3 -3
  623. package/umd/src/pipeline/PipelineJson/PipelineJson.d.ts +6 -9
  624. package/umd/src/pipeline/PipelineJson/PreparationJson.d.ts +1 -1
  625. package/umd/src/pipeline/PipelineJson/PromptTaskJson.d.ts +1 -1
  626. package/umd/src/pipeline/prompt-notation.d.ts +1 -1
  627. package/umd/src/postprocessing/utils/extractBlock.d.ts +1 -1
  628. package/umd/src/postprocessing/utils/extractJsonBlock.d.ts +1 -2
  629. package/umd/src/prepare/PrepareAndScrapeOptions.d.ts +1 -1
  630. package/umd/src/remote-server/socket-types/_subtypes/Identification.d.ts +2 -2
  631. package/umd/src/remote-server/socket-types/_subtypes/identificationToPromptbookToken.d.ts +1 -1
  632. package/umd/src/remote-server/socket-types/_subtypes/promptbookTokenToIdentification.d.ts +1 -1
  633. package/umd/src/remote-server/startAgentServer.d.ts +1 -1
  634. package/umd/src/remote-server/types/RemoteClientOptions.d.ts +1 -1
  635. package/umd/src/remote-server/types/RemoteServerOptions.d.ts +2 -1
  636. package/umd/src/scrapers/_common/Scraper.d.ts +4 -4
  637. package/umd/src/scrapers/_common/ScraperIntermediateSource.d.ts +1 -1
  638. package/umd/src/scrapers/_common/register/$registeredScrapersMessage.d.ts +1 -1
  639. package/umd/src/scrapers/_common/register/ScraperAndConverterMetadata.d.ts +3 -1
  640. package/umd/src/scrapers/_common/utils/getScraperIntermediateSource.d.ts +1 -1
  641. package/umd/src/scrapers/website/WebsiteScraper.d.ts +2 -3
  642. package/umd/src/scripting/javascript/JavascriptExecutionToolsOptions.d.ts +2 -2
  643. package/umd/src/scripting/javascript/utils/extractVariablesFromJavascript.d.ts +2 -2
  644. package/umd/src/search-engines/SearchEngine.d.ts +2 -1
  645. package/umd/src/search-engines/SearchResult.d.ts +1 -1
  646. package/umd/src/search-engines/bing/BingSearchEngine.d.ts +2 -1
  647. package/umd/src/search-engines/dummy/DummySearchEngine.d.ts +2 -1
  648. package/umd/src/search-engines/google/GoogleSearchEngine.d.ts +2 -1
  649. package/umd/src/search-engines/serp/SerpSearchEngine.d.ts +2 -1
  650. package/umd/src/storage/file-cache-storage/FileCacheStorageOptions.d.ts +1 -1
  651. package/umd/src/storage/file-cache-storage/utils/nameToSubfolderPath.d.ts +1 -1
  652. package/umd/src/storage/local-storage/utils/IndexedDbStorageOptions.d.ts +1 -1
  653. package/umd/src/transpilers/_common/BookTranspiler.d.ts +4 -2
  654. package/umd/src/transpilers/_common/createTranspiledTeamRuntimeSection.d.ts +1 -1
  655. package/umd/src/transpilers/_common/formatUsedToolFunctions.d.ts +1 -1
  656. package/umd/src/transpilers/agent-os/AgentOsTranspiler.d.ts +1 -1
  657. package/umd/src/transpilers/anthropic-claude-managed/AnthropicClaudeManagedTranspiler.d.ts +1 -1
  658. package/umd/src/transpilers/anthropic-claude-sdk/AnthropicClaudeSdkTranspiler.d.ts +1 -1
  659. package/umd/src/transpilers/e2b/E2BTranspiler.d.ts +1 -1
  660. package/umd/src/transpilers/formatted-book-in-markdown/FormattedBookInMarkdownTranspiler.d.ts +1 -1
  661. package/umd/src/transpilers/openai-agents/OpenAiAgentsTranspiler.d.ts +1 -1
  662. package/umd/src/transpilers/openai-sdk/OpenAiSdkTranspiler.d.ts +1 -1
  663. package/umd/src/types/LlmCall.d.ts +1 -1
  664. package/umd/src/types/LlmToolDefinition.d.ts +2 -1
  665. package/umd/src/types/Message.d.ts +4 -3
  666. package/umd/src/types/ModelRequirements.d.ts +4 -2
  667. package/umd/src/types/Prompt.d.ts +7 -12
  668. package/umd/src/types/SpeechRecognition.d.ts +1 -1
  669. package/umd/src/types/ToolCall.d.ts +1 -1
  670. package/umd/src/types/string_email.d.ts +1 -1
  671. package/umd/src/types/string_host.d.ts +1 -1
  672. package/umd/src/types/string_person_fullname.d.ts +1 -1
  673. package/umd/src/types/string_token.d.ts +1 -1
  674. package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -1
  675. package/umd/src/utils/color/Color.d.ts +2 -1
  676. package/umd/src/utils/color/internal-utils/hslToRgb.d.ts +2 -3
  677. package/umd/src/utils/color/internal-utils/rgbToHsl.d.ts +2 -3
  678. package/umd/src/utils/color/operators/darken.d.ts +1 -1
  679. package/umd/src/utils/color/operators/grayscale.d.ts +1 -1
  680. package/umd/src/utils/color/operators/lighten.d.ts +1 -1
  681. package/umd/src/utils/color/operators/mixWithColor.d.ts +1 -1
  682. package/umd/src/utils/color/operators/saturate.d.ts +1 -1
  683. package/umd/src/utils/color/parsers/parseHexColor.d.ts +1 -1
  684. package/umd/src/utils/color/parsers/parseHslColor.d.ts +1 -1
  685. package/umd/src/utils/color/parsers/parseRgbColor.d.ts +1 -1
  686. package/umd/src/utils/color/utils/colorToDataUrl.d.ts +3 -1
  687. package/umd/src/utils/editable/edit-pipeline-string/addPipelineCommand.d.ts +1 -1
  688. package/umd/src/utils/editable/types/PipelineEditableSerialized.d.ts +1 -1
  689. package/umd/src/utils/editable/utils/renamePipelineParameter.d.ts +1 -1
  690. package/umd/src/utils/editable/utils/stringifyPipelineJson.d.ts +1 -1
  691. package/umd/src/utils/files/$induceFileDownload.d.ts +1 -1
  692. package/umd/src/utils/files/ObjectUrl.d.ts +2 -1
  693. package/umd/src/utils/files/extensionToMimeType.d.ts +2 -2
  694. package/umd/src/utils/files/getFileExtension.d.ts +2 -2
  695. package/umd/src/utils/files/isDirectoryExisting.d.ts +1 -1
  696. package/umd/src/utils/files/isFileExisting.d.ts +1 -1
  697. package/umd/src/utils/files/listAllFiles.d.ts +1 -1
  698. package/umd/src/utils/files/mimeTypeToExtension.d.ts +2 -2
  699. package/umd/src/utils/filesystem/promptbookTemporaryPath.d.ts +27 -0
  700. package/umd/src/utils/filesystem/promptbookTemporaryPath.test.d.ts +1 -0
  701. package/umd/src/utils/knowledge/inlineKnowledgeSource.d.ts +3 -1
  702. package/umd/src/utils/markdown/addAutoGeneratedSection.d.ts +2 -2
  703. package/umd/src/utils/markdown/createMarkdownChart.d.ts +1 -1
  704. package/umd/src/utils/markdown/createMarkdownTable.d.ts +1 -2
  705. package/umd/src/utils/markdown/escapeMarkdownBlock.d.ts +1 -1
  706. package/umd/src/utils/markdown/extractAllBlocksFromMarkdown.d.ts +1 -1
  707. package/umd/src/utils/markdown/extractAllListItemsFromMarkdown.d.ts +1 -1
  708. package/umd/src/utils/markdown/extractOneBlockFromMarkdown.d.ts +1 -1
  709. package/umd/src/utils/markdown/flattenMarkdown.d.ts +1 -1
  710. package/umd/src/utils/markdown/humanizeAiText.d.ts +1 -1
  711. package/umd/src/utils/markdown/humanizeAiTextEllipsis.d.ts +1 -1
  712. package/umd/src/utils/markdown/humanizeAiTextEmdashed.d.ts +1 -1
  713. package/umd/src/utils/markdown/humanizeAiTextQuotes.d.ts +1 -1
  714. package/umd/src/utils/markdown/humanizeAiTextSources.d.ts +1 -1
  715. package/umd/src/utils/markdown/humanizeAiTextWhitespace.d.ts +1 -1
  716. package/umd/src/utils/markdown/parseMarkdownSection.d.ts +1 -1
  717. package/umd/src/utils/markdown/prettifyMarkdown.d.ts +1 -1
  718. package/umd/src/utils/markdown/promptbookifyAiText.d.ts +1 -1
  719. package/umd/src/utils/markdown/removeMarkdownComments.d.ts +1 -2
  720. package/umd/src/utils/markdown/removeMarkdownFormatting.d.ts +1 -1
  721. package/umd/src/utils/markdown/splitMarkdownIntoSections.d.ts +1 -1
  722. package/umd/src/utils/misc/$Register.d.ts +1 -1
  723. package/umd/src/utils/misc/$getCurrentDate.d.ts +1 -1
  724. package/umd/src/utils/misc/aboutPromptbookInformation.d.ts +1 -1
  725. package/umd/src/utils/misc/computeHash.d.ts +2 -2
  726. package/umd/src/utils/misc/injectCssModuleIntoShadowRoot.d.ts +1 -1
  727. package/umd/src/utils/normalization/suffixUrl.d.ts +1 -1
  728. package/umd/src/utils/organization/keepImported.d.ts +1 -1
  729. package/umd/src/utils/parameters/extractParameterNames.d.ts +2 -2
  730. package/umd/src/utils/parameters/mapAvailableToExpectedParameters.d.ts +1 -1
  731. package/umd/src/utils/parameters/numberToString.d.ts +1 -1
  732. package/umd/src/utils/parameters/templateParameters.d.ts +2 -1
  733. package/umd/src/utils/parameters/valueToString.d.ts +1 -1
  734. package/umd/src/utils/random/$generateBookBoilerplate.d.ts +1 -1
  735. package/umd/src/utils/random/$randomAgentPersona.d.ts +1 -1
  736. package/umd/src/utils/random/$randomAgentRule.d.ts +1 -1
  737. package/umd/src/utils/random/$randomFullnameWithColor.d.ts +1 -1
  738. package/umd/src/utils/random/$randomSeed.d.ts +1 -1
  739. package/umd/src/utils/random/$randomToken.d.ts +1 -1
  740. package/umd/src/utils/random/NamePool.d.ts +1 -1
  741. package/umd/src/utils/serialization/checkSerializableAsJson.d.ts +1 -1
  742. package/umd/src/utils/serialization/serializeToPromptbookJavascript.d.ts +1 -1
  743. package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +1 -1
  744. package/umd/src/utils/validators/email/isValidEmail.d.ts +1 -1
  745. package/umd/src/utils/validators/filePath/isRootPath.d.ts +1 -2
  746. package/umd/src/utils/validators/filePath/isValidFilePath.d.ts +1 -1
  747. package/umd/src/utils/validators/javascriptName/isValidJavascriptName.d.ts +1 -1
  748. package/umd/src/utils/validators/parameterName/validateParameterName.d.ts +1 -1
  749. package/umd/src/utils/validators/semanticVersion/isValidSemanticVersion.d.ts +1 -1
  750. package/umd/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +1 -1
  751. package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +2 -2
  752. package/umd/src/utils/validators/url/isValidAgentUrl.d.ts +1 -1
  753. package/umd/src/utils/validators/url/isValidPipelineUrl.d.ts +1 -1
  754. package/umd/src/utils/validators/url/isValidUrl.d.ts +1 -1
  755. package/umd/src/utils/validators/uuid/isValidUuid.d.ts +1 -1
  756. package/umd/src/version.d.ts +1 -1
  757. package/umd/src/wizard/$getCompiledBook.d.ts +2 -1
  758. package/umd/src/wizard/wizard.d.ts +4 -1
  759. package/esm/servers.d.ts +0 -59
  760. package/esm/src/utils/files/getPromptbookTempPath.d.ts +0 -24
  761. package/umd/servers.d.ts +0 -59
  762. package/umd/src/utils/files/getPromptbookTempPath.d.ts +0 -24
  763. /package/esm/src/{utils/files/getPromptbookTempPath.test.d.ts → book-3.0/Book.test.d.ts} +0 -0
  764. /package/{umd/src/utils/files/getPromptbookTempPath.test.d.ts → esm/src/cli/other/install.test.d.ts} +0 -0
@@ -0,0 +1,11 @@
1
+ /**
2
+ * One local direct-child repository that looks like a Promptbook agent runner project.
3
+ */
4
+ export type LocalAgentRunnerProject = {
5
+ readonly directoryName: string;
6
+ readonly projectPath: string;
7
+ };
8
+ /**
9
+ * Lists local agent runner repositories from direct child directories of the given root.
10
+ */
11
+ export declare function listLocalAgentRunnerProjects(rootPath: string): Promise<ReadonlyArray<LocalAgentRunnerProject>>;
@@ -0,0 +1,25 @@
1
+ import type { AgentMessageFile } from '../messages/AgentMessageFile';
2
+ /**
3
+ * Queue counts and files used to render the agent-run dashboard.
4
+ */
5
+ export type AgentMessageQueueSnapshot = {
6
+ readonly queuedMessages: ReadonlyArray<AgentMessageFile>;
7
+ readonly finishedMessageCount: number;
8
+ };
9
+ /**
10
+ * Reads current queued and finished message counts for the agent dashboard.
11
+ */
12
+ export declare function loadAgentMessageQueueSnapshot(projectPath: string): Promise<AgentMessageQueueSnapshot>;
13
+ /**
14
+ * Converts agent queue counts into the prompt-style snapshot used by the shared rich UI state.
15
+ */
16
+ export declare function createAgentQueueProgressSnapshot(queueSnapshot: AgentMessageQueueSnapshot): {
17
+ done: number;
18
+ forAgent: number;
19
+ belowMinimumPriority: number;
20
+ toBeWritten: number;
21
+ };
22
+ /**
23
+ * Returns the normalized queued-messages path shown in the UI.
24
+ */
25
+ export declare function getQueuedAgentMessagesDirectoryLabel(): string;
@@ -0,0 +1,9 @@
1
+ import type { AgentRunOptions } from '../AgentRunOptions';
2
+ /**
3
+ * Pulls the latest Git changes for the agent queue when `--auto-pull` is enabled.
4
+ */
5
+ export declare function pullLatestChangesForAgentQueueIfEnabled(options: {
6
+ readonly projectPath: string;
7
+ readonly runOptions: AgentRunOptions;
8
+ readonly logMessage?: string;
9
+ }): Promise<number | undefined>;
@@ -2,4 +2,6 @@ import type { AgentRunOptions } from '../AgentRunOptions';
2
2
  /**
3
3
  * Watches the queued message directory and answers messages one by one.
4
4
  */
5
- export declare function runAgentMessages(options: AgentRunOptions): Promise<void>;
5
+ export declare function runAgentMessages(options: AgentRunOptions, controls?: {
6
+ readonly shouldContinue?: () => boolean;
7
+ }): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import type { AgentRunOptions } from '../AgentRunOptions';
2
+ /**
3
+ * Watches all direct child agent repositories from the current directory in one shared session.
4
+ */
5
+ export declare function runMultipleAgentMessages(options: AgentRunOptions, controls?: {
6
+ readonly shouldContinue?: () => boolean;
7
+ }): Promise<void>;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Environment variable carrying the GitHub token used to discover and clone agent repositories.
3
+ */
4
+ export declare const PROMPTBOOK_AGENT_RUNNER_GITHUB_TOKEN_ENV = "PROMPTBOOK_AGENT_RUNNER_GITHUB_TOKEN";
5
+ /**
6
+ * Environment variable carrying the GitHub owner whose `agent-*` repositories should be mirrored locally.
7
+ */
8
+ export declare const PROMPTBOOK_AGENT_RUNNER_GITHUB_OWNER_ENV = "PROMPTBOOK_AGENT_RUNNER_GITHUB_OWNER";
9
+ /**
10
+ * Result of one GitHub synchronization round.
11
+ */
12
+ export type GithubAgentRunnerRepositoriesSynchronizationResult = {
13
+ readonly clonedRepositoryNames: ReadonlyArray<string>;
14
+ readonly owner?: string;
15
+ readonly synchronizedAt?: number;
16
+ };
17
+ /**
18
+ * Loads the optional GitHub repository-mirroring configuration for multi-agent runs.
19
+ */
20
+ export declare function loadAgentRunnerGithubConfiguration(): {
21
+ readonly token: string;
22
+ readonly owner: string;
23
+ } | null;
24
+ /**
25
+ * Clones missing `agent-*` repositories from the configured GitHub owner into the direct child directories of `rootPath`.
26
+ */
27
+ export declare function synchronizeGithubAgentRunnerRepositories(rootPath: string): Promise<GithubAgentRunnerRepositoriesSynchronizationResult>;
@@ -1,11 +1,13 @@
1
+ import { type CoderRunUiHandle } from '../../run-codex-prompts/ui/renderCoderRunUi';
1
2
  import type { AgentRunOptions } from '../AgentRunOptions';
2
3
  import type { AgentMessageFile } from '../messages/AgentMessageFile';
3
4
  import { type FinishedAgentMessageFile } from '../messages/moveAgentMessageToFinished';
4
5
  /**
5
- * Result of one `ptbk agent tick` invocation.
6
+ * Result of one `ptbk agent run-once` invocation.
6
7
  */
7
8
  export type AgentTickResult = {
8
9
  readonly isMessageProcessed: boolean;
10
+ readonly autoPullTimestamp?: number;
9
11
  readonly queuedMessage?: AgentMessageFile;
10
12
  readonly finishedMessage?: FinishedAgentMessageFile;
11
13
  };
@@ -14,8 +16,9 @@ export type AgentTickResult = {
14
16
  */
15
17
  export type TickAgentMessagesOptions = {
16
18
  readonly isQuietWhenIdle?: boolean;
19
+ readonly uiHandle?: CoderRunUiHandle;
17
20
  };
18
21
  /**
19
- * Answers one queued markdown message and moves it to `messages/finished`.
22
+ * Answers one queued `.book` message thread and moves it to `messages/finished`.
20
23
  */
21
24
  export declare function tickAgentMessages(options: AgentRunOptions, tickOptions?: TickAgentMessagesOptions): Promise<AgentTickResult>;
@@ -0,0 +1,5 @@
1
+ import type { AgentRunOptions } from '../AgentRunOptions';
2
+ /**
3
+ * Validates constraints specific to never-ending agent watch loops.
4
+ */
5
+ export declare function validateAgentWatchOptions(commandDisplayName: string, options: AgentRunOptions): void;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Runs one async callback from a temporary current working directory and always restores the previous directory.
3
+ */
4
+ export declare function withCurrentWorkingDirectory<T>(directoryPath: string, callback: () => Promise<T>): Promise<T>;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Builds the prompt sent to the selected coding runner for one queued user message.
2
+ * Builds the prompt sent to the selected coding runner for one queued user-thread book.
3
3
  */
4
4
  export declare function buildAgentMessagePrompt(messageRelativePath: string): string;
@@ -1,5 +1,5 @@
1
1
  import type { AgentMessageFile } from './AgentMessageFile';
2
2
  /**
3
- * Lists queued markdown message files in deterministic filename order.
3
+ * Lists queued `.book` message files in deterministic filename order.
4
4
  */
5
5
  export declare function listQueuedAgentMessages(projectPath: string): Promise<ReadonlyArray<AgentMessageFile>>;
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Builds a compact centered initials banner for `ptbk agent run`.
2
+ * Builds a compact centered banner that shows the local agent name.
3
3
  */
4
4
  export declare function buildAgentRunInitialsVisual(agentName: string, totalWidth: number): readonly string[];
@@ -0,0 +1,15 @@
1
+ import type { AgentRunOptions } from '../AgentRunOptions';
2
+ import { type AgentMessageQueueSnapshot } from '../main/loadAgentMessageQueueSnapshot';
3
+ import { type CoderRunUiHandle } from '../../run-codex-prompts/ui/renderCoderRunUi';
4
+ /**
5
+ * Creates and seeds the persistent rich terminal UI used by `ptbk agent run`.
6
+ */
7
+ export declare function initializeAgentRunUi(projectPath: string, options: AgentRunOptions, queueSnapshot: AgentMessageQueueSnapshot): Promise<CoderRunUiHandle | undefined>;
8
+ /**
9
+ * Updates the persistent rich UI to the idle watch state.
10
+ */
11
+ export declare function updateAgentRunUiForWatching(uiHandle: CoderRunUiHandle, queueSnapshot: AgentMessageQueueSnapshot, statusMessage?: string): void;
12
+ /**
13
+ * Updates the persistent rich UI while the runner refreshes the queue repository.
14
+ */
15
+ export declare function updateAgentRunUiForPulling(uiHandle: CoderRunUiHandle, queueSnapshot: AgentMessageQueueSnapshot, statusMessage: string): void;
@@ -10,6 +10,10 @@ export type AgentRunUiMetadata = {
10
10
  * Reads the local agent title and latest queued user message for the rich agent dashboard.
11
11
  */
12
12
  export declare function loadAgentRunUiMetadata(projectPath: string, queuedMessage: AgentMessageFile): Promise<AgentRunUiMetadata>;
13
+ /**
14
+ * Reads the local `agent.book` title and falls back to a stable generic name when unavailable.
15
+ */
16
+ export declare function readLocalAgentName(projectPath: string): Promise<string>;
13
17
  /**
14
18
  * Extracts the latest `MESSAGE @User` block while preserving the original line breaks.
15
19
  */
@@ -25,3 +25,7 @@ export declare function buildAgentGitSigningFlag(identity?: AgentGitIdentity | u
25
25
  * Prints a one-time style tip when coding-agent commits fall back to the user's default Git configuration.
26
26
  */
27
27
  export declare function printAgentGitIdentityTipIfNeeded(): void;
28
+ /**
29
+ * Defers the coding-agent Git identity tip until process shutdown so long-running UIs stay uninterrupted.
30
+ */
31
+ export declare function printAgentGitIdentityTipAtProcessExitIfNeeded(): void;
@@ -13,6 +13,7 @@ import { validateBook } from '../book-2.0/agent-source/string_book';
13
13
  import { DEFAULT_BOOK } from '../book-2.0/agent-source/string_book';
14
14
  import { createStandaloneBookLanguageMarkdown } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
15
15
  import { generatePlaceholderAgentProfileImageUrl } from '../book-2.0/utils/generatePlaceholderAgentProfileImageUrl';
16
+ import { Book } from '../book-3.0/Book';
16
17
  import { AgentCollectionInSupabase } from '../collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase';
17
18
  import { createPipelineCollectionFromJson } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromJson';
18
19
  import { createPipelineCollectionFromPromise } from '../collection/pipeline-collection/constructors/createPipelineCollectionFromPromise';
@@ -238,6 +239,7 @@ export { validateBook };
238
239
  export { DEFAULT_BOOK };
239
240
  export { createStandaloneBookLanguageMarkdown };
240
241
  export { generatePlaceholderAgentProfileImageUrl };
242
+ export { Book };
241
243
  export { AgentCollectionInSupabase };
242
244
  export { createPipelineCollectionFromJson };
243
245
  export { createPipelineCollectionFromPromise };
@@ -1,5 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
- import type { string_css_class, string_url_image } from '../types/typeAliases';
2
+ import type { string_css_class } from '../types/string_markdown';
3
+ import type { string_url_image } from '../types/string_url_image';
3
4
  import type { AvatarDefinition } from './types/AvatarDefinition';
4
5
  import type { AvatarSurfaceStyle, AvatarVisualId } from './types/AvatarVisualDefinition';
5
6
  /**
@@ -1,5 +1,5 @@
1
1
  import type { AgentBasicInformation } from '../book-2.0/agent-source/AgentBasicInformation';
2
- import type { string_color } from '../types/typeAliases';
2
+ import type { string_color } from '../types/string_person_fullname';
3
3
  import type { AvatarDefinition } from './types/AvatarDefinition';
4
4
  import type { AvatarPalette, AvatarSurfaceStyle } from './types/AvatarVisualDefinition';
5
5
  /**
@@ -1,6 +1,5 @@
1
- import type { RenderAvatarVisualOptions } from './types/AvatarVisualDefinition';
2
1
  import type { AvatarDefinition } from './types/AvatarDefinition';
3
- import type { AvatarPalette, AvatarSurfaceStyle, AvatarVisualDefinition, AvatarVisualId } from './types/AvatarVisualDefinition';
2
+ import type { AvatarPalette, AvatarSurfaceStyle, AvatarVisualDefinition, AvatarVisualId, RenderAvatarVisualOptions } from './types/AvatarVisualDefinition';
4
3
  /**
5
4
  * Stable render data derived once from the avatar definition, surface, and visual id.
6
5
  *
@@ -1,4 +1,5 @@
1
- import type { string_agent_hash, string_agent_name, string_color } from '../../types/typeAliases';
1
+ import type { string_agent_hash, string_agent_name } from '../../types/string_agent_name';
2
+ import type { string_color } from '../../types/string_person_fullname';
2
3
  /**
3
4
  * Normalized identity payload used by all canvas avatar visuals.
4
5
  *
@@ -1,12 +1,13 @@
1
1
  import type { CSSProperties } from 'react';
2
- import type { string_color, string_css_class } from '../../types/typeAliases';
2
+ import type { string_css_class } from '../../types/string_markdown';
3
+ import type { string_color } from '../../types/string_person_fullname';
3
4
  import type { AvatarDefinition } from './AvatarDefinition';
4
5
  /**
5
6
  * Supported built-in avatar visual identifiers.
6
7
  *
7
8
  * @private shared contract for the avatar rendering system
8
9
  */
9
- export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
10
+ export type AvatarVisualId = 'pixel-art' | 'octopus' | 'octopus2' | 'octopus3' | 'octopus3d' | 'ascii-octopus' | 'minecraft' | 'minecraft2' | 'fractal' | 'orb';
10
11
  /**
11
12
  * Derived color palette used by avatar visuals.
12
13
  *
@@ -0,0 +1,141 @@
1
+ /**
2
+ * One 3D point used by the shared avatar projection helpers.
3
+ *
4
+ * @private helper of the 3D avatar visuals
5
+ */
6
+ export type Point3D = {
7
+ readonly x: number;
8
+ readonly y: number;
9
+ readonly z: number;
10
+ };
11
+ /**
12
+ * One projected 2D point derived from scene-space 3D coordinates.
13
+ *
14
+ * @private helper of the 3D avatar visuals
15
+ */
16
+ export type ProjectedPoint = {
17
+ readonly x: number;
18
+ readonly y: number;
19
+ readonly z: number;
20
+ };
21
+ /**
22
+ * Default camera distance ratio shared by the proper-3D avatar visuals.
23
+ *
24
+ * @private helper of the 3D avatar visuals
25
+ */
26
+ export declare const DEFAULT_3D_CAMERA_DISTANCE_RATIO = 1.4;
27
+ /**
28
+ * Clamps one number into the provided range.
29
+ *
30
+ * @param value Input value.
31
+ * @param minimumValue Inclusive lower bound.
32
+ * @param maximumValue Inclusive upper bound.
33
+ * @returns Clamped value.
34
+ *
35
+ * @private helper of the 3D avatar visuals
36
+ */
37
+ export declare function clampNumber(value: number, minimumValue: number, maximumValue: number): number;
38
+ /**
39
+ * Rotates one point around the local Y axis.
40
+ *
41
+ * @param point Source point.
42
+ * @param angle Rotation angle in radians.
43
+ * @returns Rotated point.
44
+ *
45
+ * @private helper of the 3D avatar visuals
46
+ */
47
+ export declare function rotatePointAroundY(point: Point3D, angle: number): Point3D;
48
+ /**
49
+ * Rotates one point around the local X axis.
50
+ *
51
+ * @param point Source point.
52
+ * @param angle Rotation angle in radians.
53
+ * @returns Rotated point.
54
+ *
55
+ * @private helper of the 3D avatar visuals
56
+ */
57
+ export declare function rotatePointAroundX(point: Point3D, angle: number): Point3D;
58
+ /**
59
+ * Applies the local rotations and translation to one scene point.
60
+ *
61
+ * @param localPoint Point in local object space.
62
+ * @param center Object center in scene space.
63
+ * @param rotationX Object pitch in radians.
64
+ * @param rotationY Object yaw in radians.
65
+ * @returns Transformed scene-space point.
66
+ *
67
+ * @private helper of the 3D avatar visuals
68
+ */
69
+ export declare function transformScenePoint(localPoint: Point3D, center: Point3D, rotationX: number, rotationY: number): Point3D;
70
+ /**
71
+ * Projects one scene point into canvas coordinates.
72
+ *
73
+ * @param point Scene-space point.
74
+ * @param size Canvas size in CSS pixels.
75
+ * @param sceneCenterX Horizontal scene center.
76
+ * @param sceneCenterY Vertical scene center.
77
+ * @param cameraDistanceRatio Optional camera distance ratio.
78
+ * @returns Projected point.
79
+ *
80
+ * @private helper of the 3D avatar visuals
81
+ */
82
+ export declare function projectScenePoint(point: Point3D, size: number, sceneCenterX: number, sceneCenterY: number, cameraDistanceRatio?: number): ProjectedPoint;
83
+ /**
84
+ * Interpolates between two projected points.
85
+ *
86
+ * @param startPoint Start point.
87
+ * @param endPoint End point.
88
+ * @param ratio Interpolation ratio in the range `[0, 1]`.
89
+ * @returns Interpolated projected point.
90
+ *
91
+ * @private helper of the 3D avatar visuals
92
+ */
93
+ export declare function interpolateProjectedPoint(startPoint: ProjectedPoint, endPoint: ProjectedPoint, ratio: number): ProjectedPoint;
94
+ /**
95
+ * Subtracts one 3D point from another.
96
+ *
97
+ * @param leftPoint Left point.
98
+ * @param rightPoint Right point.
99
+ * @returns Difference vector.
100
+ *
101
+ * @private helper of the 3D avatar visuals
102
+ */
103
+ export declare function subtractPoint3D(leftPoint: Point3D, rightPoint: Point3D): Point3D;
104
+ /**
105
+ * Computes the 3D cross product of two vectors.
106
+ *
107
+ * @param leftVector Left vector.
108
+ * @param rightVector Right vector.
109
+ * @returns Cross product.
110
+ *
111
+ * @private helper of the 3D avatar visuals
112
+ */
113
+ export declare function crossProduct3D(leftVector: Point3D, rightVector: Point3D): Point3D;
114
+ /**
115
+ * Computes the 3D dot product of two vectors.
116
+ *
117
+ * @param leftVector Left vector.
118
+ * @param rightVector Right vector.
119
+ * @returns Dot product.
120
+ *
121
+ * @private helper of the 3D avatar visuals
122
+ */
123
+ export declare function dotProduct3D(leftVector: Point3D, rightVector: Point3D): number;
124
+ /**
125
+ * Normalizes one 3D vector while keeping zero vectors stable.
126
+ *
127
+ * @param vector Source vector.
128
+ * @returns Normalized vector.
129
+ *
130
+ * @private helper of the 3D avatar visuals
131
+ */
132
+ export declare function normalizeVector3(vector: Point3D): Point3D;
133
+ /**
134
+ * Measures the perimeter of one projected quad.
135
+ *
136
+ * @param corners Quad corners.
137
+ * @returns Perimeter length.
138
+ *
139
+ * @private helper of the 3D avatar visuals
140
+ */
141
+ export declare function getProjectedQuadPerimeter(corners: readonly [ProjectedPoint, ProjectedPoint, ProjectedPoint, ProjectedPoint]): number;
@@ -0,0 +1,7 @@
1
+ import type { AvatarVisualDefinition } from '../types/AvatarVisualDefinition';
2
+ /**
3
+ * Proper 3D Octopus visual built from projected organic meshes and tentacles.
4
+ *
5
+ * @private built-in avatar visual
6
+ */
7
+ export declare const octopus3dAvatarVisual: AvatarVisualDefinition;
@@ -1,5 +1,9 @@
1
- import type { string_agent_hash, string_agent_name, string_agent_permanent_id, string_agent_url, string_color, string_fonts, string_url_image } from '../../types/typeAliases';
2
1
  import type { AvatarVisualId } from '../../avatars/types/AvatarVisualDefinition';
2
+ import type { string_agent_hash, string_agent_name, string_agent_permanent_id } from '../../types/string_agent_name';
3
+ import type { string_agent_url } from '../../types/string_agent_url';
4
+ import type { string_fonts } from '../../types/string_markdown';
5
+ import type { string_color } from '../../types/string_person_fullname';
6
+ import type { string_url_image } from '../../types/string_url_image';
3
7
  /**
4
8
  * Unified parameter representation that supports two different notations:
5
9
  * 1. @Parameter - single word parameter starting with @
@@ -1,6 +1,7 @@
1
1
  import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
2
- import type { string_agent_url, string_knowledge_source_link } from '../../types/typeAliases';
3
- import { chococake } from '../../utils/organization/really_any';
2
+ import type { string_agent_url } from '../../types/string_agent_url';
3
+ import type { string_knowledge_source_link } from '../../types/string_knowledge_source_content';
4
+ import type { chococake } from '../../utils/organization/really_any';
4
5
  /**
5
6
  * Model requirements for an agent
6
7
  *
@@ -1,5 +1,5 @@
1
1
  import type { ParsedCommitment } from '../../commitments/_base/ParsedCommitment';
2
- import { string_agent_name } from '../../types/typeAliases';
2
+ import type { string_agent_name } from '../../types/string_agent_name';
3
3
  /**
4
4
  * Result of parsing agent source for commitments
5
5
  *
@@ -1,5 +1,5 @@
1
- import { string_agent_hash } from '../../types/typeAliases';
2
- import { string_book } from './string_book';
1
+ import type { string_agent_hash } from '../../types/string_agent_name';
2
+ import type { string_book } from './string_book';
3
3
  /**
4
4
  * Computes SHA-256 hash of the agent source
5
5
  *
@@ -1,6 +1,9 @@
1
1
  import type { AvailableModel } from '../../execution/AvailableModel';
2
2
  import type { LlmExecutionTools } from '../../execution/LlmExecutionTools';
3
- import type { string_agent_name, string_model_name, string_system_message, string_url_image } from '../../types/typeAliases';
3
+ import type { string_agent_name } from '../../types/string_agent_name';
4
+ import type { string_model_name } from '../../types/string_model_name';
5
+ import type { string_system_message } from '../../types/string_prompt';
6
+ import type { string_url_image } from '../../types/string_url_image';
4
7
  import type { AgentModelRequirements } from './AgentModelRequirements';
5
8
  import type { CreateAgentModelRequirementsOptions } from './CreateAgentModelRequirementsOptions';
6
9
  import type { string_book } from './string_book';
@@ -1,4 +1,4 @@
1
- import type { string_model_name } from '../../types/typeAliases';
1
+ import type { string_model_name } from '../../types/string_model_name';
2
2
  import type { AgentModelRequirements } from './AgentModelRequirements';
3
3
  import type { CreateAgentModelRequirementsOptions } from './CreateAgentModelRequirementsOptions';
4
4
  import type { string_book } from './string_book';
@@ -1,5 +1,5 @@
1
- import { string_agent_name } from '../../types/typeAliases';
2
- import { string_book } from './string_book';
1
+ import type { string_agent_name } from '../../types/string_agent_name';
2
+ import type { string_book } from './string_book';
3
3
  /**
4
4
  * Creates temporary default agent name based on agent source hash
5
5
  *
@@ -1,4 +1,4 @@
1
- import { string_agent_name } from '../../types/typeAliases';
1
+ import type { string_agent_name } from '../../types/string_agent_name';
2
2
  /**
3
3
  * Normalizes agent name from arbitrary string to valid agent name
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { string_agent_name } from '../../types/typeAliases';
1
+ import type { string_agent_name } from '../../types/string_agent_name';
2
2
  import type { string_book } from './string_book';
3
3
  /**
4
4
  * Parsed prelude of one agent source.
@@ -1,4 +1,4 @@
1
- import type { string_agent_url } from '../../types/typeAliases';
1
+ import type { string_agent_url } from '../../types/string_agent_url';
2
2
  /**
3
3
  * Parsed TEAM teammate entry.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { string_markdown } from '../../types/string_markdown';
1
+ import type { string_markdown } from '../../types/string_markdown';
2
2
  /**
3
3
  * Creates one standalone markdown guide for Book language (Book 2.0 / agent language).
4
4
  *
@@ -1,4 +1,6 @@
1
- import type { string_agent_name, string_agent_permanent_id, string_url, string_url_image } from '../../types/typeAliases';
1
+ import type { string_agent_name, string_agent_permanent_id } from '../../types/string_agent_name';
2
+ import type { string_url } from '../../types/string_url';
3
+ import type { string_url_image } from '../../types/string_url_image';
2
4
  /**
3
5
  * Generates an image for the agent to use as profile image
4
6
  *
@@ -0,0 +1,33 @@
1
+ import type { string_book } from '../book-2.0/agent-source/string_book';
2
+ import type { ChatMessage } from '../book-components/Chat/types/ChatMessage';
3
+ /**
4
+ * Parser for the agent source for Promptbook agents in book language
5
+ *
6
+ * @public exported from `@promptbook/core`
7
+ */
8
+ export declare class Book {
9
+ readonly agentName: string;
10
+ readonly commitments: ReadonlyArray<Commitment>;
11
+ private readonly messageBlocks;
12
+ static parse(source: string_book): Book;
13
+ /**
14
+ * Creates one Book from already structured message blocks.
15
+ *
16
+ * @public exported from `@promptbook/core`
17
+ */
18
+ static fromMessages(messages: ReadonlyArray<Pick<ChatMessage, 'content'> & {
19
+ sender: string;
20
+ }>, options?: {
21
+ agentName?: string;
22
+ commitments?: ReadonlyArray<Commitment>;
23
+ }): Book;
24
+ private constructor();
25
+ stringify(): string_book;
26
+ getMessages(): ReadonlyArray<ChatMessage>;
27
+ }
28
+ type Commitment = {
29
+ type: string;
30
+ subject: string;
31
+ content: string;
32
+ };
33
+ export {};
@@ -1,5 +1,5 @@
1
1
  import type { AgentBasicInformation } from '../../../book-2.0/agent-source/AgentBasicInformation';
2
- import type { string_css_class } from '../../../types/typeAliases';
2
+ import type { string_css_class } from '../../../types/string_markdown';
3
3
  /**
4
4
  * Props of `AvatarChip`
5
5
  *
@@ -1,7 +1,7 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import type { AgentBasicInformation } from '../../../book-2.0/agent-source/AgentBasicInformation';
3
3
  import type { string_book } from '../../../book-2.0/agent-source/string_book';
4
- import type { string_css_class } from '../../../types/typeAliases';
4
+ import type { string_css_class } from '../../../types/string_markdown';
5
5
  /**
6
6
  * Props of `AvatarProfile`
7
7
  *
@@ -1,7 +1,10 @@
1
1
  import { CSSProperties } from 'react';
2
2
  import type { Promisable } from 'type-fest';
3
3
  import type { string_book } from '../../book-2.0/agent-source/string_book';
4
- import type { number_percent, number_positive, string_css_value, string_knowledge_source_content } from '../../types/typeAliases';
4
+ import type { number_percent } from '../../types/number_percent';
5
+ import type { number_positive } from '../../types/number_positive';
6
+ import type { string_knowledge_source_content } from '../../types/string_knowledge_source_content';
7
+ import type { string_css_value } from '../../types/string_markdown';
5
8
  import type { HoistedMenuItem } from '../_common/MenuHoisting/MenuHoistingContext';
6
9
  /**
7
10
  * Monaco diagnostic shown inside `BookEditor`.
@@ -1,4 +1,4 @@
1
- import { HoistedMenuItem } from '../_common/MenuHoisting/MenuHoistingContext';
1
+ import type { HoistedMenuItem } from '../_common/MenuHoisting/MenuHoistingContext';
2
2
  /**
3
3
  * Props for book editor actionbar.
4
4
  */
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import type { string_url } from '../../../types/typeAliases';
2
+ import type { string_url } from '../../../types/string_url';
3
3
  /**
4
4
  * Agent profile information for chip display
5
5
  */
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { id } from '../../../types/typeAliases';
2
+ import type { id } from '../../../types/string_token';
3
3
  import type { ChatMessage } from '../types/ChatMessage';
4
4
  import type { ChatParticipant } from '../types/ChatParticipant';
5
- import { type ParsedCitation } from '../utils/parseCitationsFromContent';
5
+ import type { ParsedCitation } from '../utils/parseCitationsFromContent';
6
6
  import type { ChatProps } from './ChatProps';
7
7
  /**
8
8
  * Props for the `ChatMessageItem` component
@@ -1,6 +1,6 @@
1
1
  import type { UIEvent } from 'react';
2
2
  import type { Promisable } from 'type-fest';
3
- import type { id } from '../../../types/typeAliases';
3
+ import type { id } from '../../../types/string_token';
4
4
  import type { ChatMessage } from '../types/ChatMessage';
5
5
  import type { ChatParticipant } from '../types/ChatParticipant';
6
6
  import type { ParsedCitation } from '../utils/parseCitationsFromContent';