@promptbook/cli 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 (750) hide show
  1. package/README.md +20 -27
  2. package/agents/default/developer.book +1 -0
  3. package/apps/agents-server/README.md +1 -1
  4. package/apps/agents-server/{USE_TIMEOUT_CHIP_QA.md → TIMEOUT_CHIP_QA.md} +1 -1
  5. package/apps/agents-server/next.config.ts +33 -0
  6. package/apps/agents-server/package.json +11 -9
  7. package/apps/agents-server/playwright.config.ts +28 -38
  8. package/apps/agents-server/scripts/build-agents-server.js +98 -0
  9. package/apps/agents-server/scripts/build-e2e.js +48 -0
  10. package/apps/agents-server/scripts/ensure-root-dependencies.js +86 -0
  11. package/apps/agents-server/scripts/generate-reserved-paths/generate-reserved-paths.ts +30 -16
  12. package/apps/agents-server/scripts/kill-port.js +163 -0
  13. package/apps/agents-server/scripts/prerender-homepage.js +1 -1
  14. package/apps/agents-server/scripts/run-e2e-tests.js +47 -0
  15. package/apps/agents-server/scripts/run-npm.js +118 -0
  16. package/apps/agents-server/src/app/admin/email-server/page.tsx +17 -10
  17. package/apps/agents-server/src/app/admin/messages/MessageParticipants.tsx +84 -0
  18. package/apps/agents-server/src/app/admin/messages/MessageStatus.tsx +96 -0
  19. package/apps/agents-server/src/app/admin/messages/MessagesClient.tsx +21 -32
  20. package/apps/agents-server/src/app/admin/messages/messageAdminPresentation.ts +289 -0
  21. package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskRow.tsx +2 -0
  22. package/apps/agents-server/src/app/admin/task-manager/[taskId]/TaskManagerTaskDetailClient.tsx +2 -0
  23. package/apps/agents-server/src/app/admin/task-manager/taskManagerTaskPresentation.tsx +23 -0
  24. package/apps/agents-server/src/app/agents/[agentName]/AgentChatWrapper.tsx +5 -9
  25. package/apps/agents-server/src/app/agents/[agentName]/AgentProfileChat.tsx +5 -9
  26. package/apps/agents-server/src/app/agents/[agentName]/api/book/route.ts +8 -0
  27. package/apps/agents-server/src/app/agents/[agentName]/api/chat/resolveAgentChatRouteContext.ts +8 -16
  28. package/apps/agents-server/src/app/agents/[agentName]/api/timeouts/[timeoutId]/route.ts +10 -153
  29. package/apps/agents-server/src/app/agents/[agentName]/api/timeouts/route.ts +9 -4
  30. package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/[chatId]/route.ts +3 -0
  31. package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/[chatId]/stream/route.ts +2 -0
  32. package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/resolveUserChatScope.ts +8 -1
  33. package/apps/agents-server/src/app/agents/[agentName]/api/user-chats/route.ts +15 -7
  34. package/apps/agents-server/src/app/agents/[agentName]/api/voice/route.ts +4 -9
  35. package/apps/agents-server/src/app/agents/[agentName]/book/useBookEditorSaving.ts +18 -28
  36. package/apps/agents-server/src/app/agents/[agentName]/chat/AgentChatHistoryClient.tsx +19 -1
  37. package/apps/agents-server/src/app/agents/[agentName]/chat/AgentChatSidebarDefault.tsx +17 -5
  38. package/apps/agents-server/src/app/agents/[agentName]/chat/AgentGoalChatNotice.tsx +23 -0
  39. package/apps/agents-server/src/app/agents/[agentName]/chat/AgentGoalChatPlannedMessages.tsx +168 -0
  40. package/apps/agents-server/src/app/agents/[agentName]/chat/CanonicalAgentChatPanel.tsx +6 -0
  41. package/apps/agents-server/src/app/agents/[agentName]/chat/CanonicalAgentChatSurface.tsx +18 -9
  42. package/apps/agents-server/src/app/agents/[agentName]/chat/ExternalUserChatAdminActions.tsx +51 -3
  43. package/apps/agents-server/src/app/agents/[agentName]/chat/TeamMemberFrozenChatPrimaryAgentLink.tsx +31 -0
  44. package/apps/agents-server/src/app/agents/[agentName]/chat/useAgentChatSidebarState.ts +26 -2
  45. package/apps/agents-server/src/app/agents/[agentName]/goal/page.tsx +35 -0
  46. package/apps/agents-server/src/app/agents/[agentName]/projectRuntimeActions.ts +97 -0
  47. package/apps/agents-server/src/app/agents/[agentName]/projects/[projectName]/actions.ts +5 -50
  48. package/apps/agents-server/src/app/agents/[agentName]/projects/[projectName]/page.tsx +2 -2
  49. package/apps/agents-server/src/app/api/admin/dns-records/cloudflare/route.ts +26 -16
  50. package/apps/agents-server/src/app/api/elevenlabs/tts/route.ts +3 -3
  51. package/apps/agents-server/src/app/api/emails/incoming/stalwart/route.ts +9 -2
  52. package/apps/agents-server/src/app/api/internal/agent-goal-chat-planned-messages/route.ts +146 -0
  53. package/apps/agents-server/src/app/api/onboarding/book/route.ts +7 -6
  54. package/apps/agents-server/src/app/api/scrape/route.ts +1 -1
  55. package/apps/agents-server/src/app/layout.tsx +31 -0
  56. package/apps/agents-server/src/app/superadmin/servers/ServersRegistryTable.tsx +124 -129
  57. package/apps/agents-server/src/app/superadmin/servers/useServersRegistryState.ts +15 -7
  58. package/apps/agents-server/src/app/system/user-wallet/UserWalletDraft.ts +2 -2
  59. package/apps/agents-server/src/components/AgentNaming/legacyAgentTextTranslations.cs.yaml +7 -0
  60. package/apps/agents-server/src/components/AgentProfile/AgentCapabilityChips.tsx +1 -24
  61. package/apps/agents-server/src/components/AgentProfile/AgentProfile.tsx +10 -3
  62. package/apps/agents-server/src/components/AgentProjects/AgentProjectIcon.tsx +137 -0
  63. package/apps/agents-server/src/components/AgentProjects/AgentProjectItem.tsx +26 -10
  64. package/apps/agents-server/src/components/AgentProjects/useAgentProjectMarkdownReferences.ts +184 -0
  65. package/apps/agents-server/src/components/CloudflareDnsWizard/CloudflareDnsApiTokenImportStep.tsx +5 -6
  66. package/apps/agents-server/src/components/CloudflareDnsWizard/CloudflareDnsCheckStep.tsx +6 -5
  67. package/apps/agents-server/src/components/CloudflareDnsWizard/CloudflareDnsManualStep.tsx +10 -14
  68. package/apps/agents-server/src/components/CloudflareDnsWizard/CloudflareDnsWizard.tsx +11 -20
  69. package/apps/agents-server/src/components/CloudflareDnsWizard/useCloudflareDnsRecordImport.ts +5 -6
  70. package/apps/agents-server/src/components/DnsRecordsInstructions/DnsRecordsInstructions.tsx +91 -57
  71. package/apps/agents-server/src/components/DnsRecordsInstructions/DnsRecordsSectionPanel.tsx +63 -0
  72. package/apps/agents-server/src/components/DnsRecordsInstructions/DnsRecordsSectionVariantTabs.tsx +67 -0
  73. package/apps/agents-server/src/components/DnsRecordsInstructions/DnsRecordsTable.tsx +40 -0
  74. package/apps/agents-server/src/components/Header/Header.tsx +8 -0
  75. package/apps/agents-server/src/components/Header/HeaderTypes.ts +5 -0
  76. package/apps/agents-server/src/components/Header/buildActiveAgentViewItems.ts +5 -4
  77. package/apps/agents-server/src/components/Header/buildHeaderSystemMenuItems.ts +118 -30
  78. package/apps/agents-server/src/components/Header/createAgentViewLabel.tsx +4 -4
  79. package/apps/agents-server/src/components/Header/resolveActiveAgentNavigation.ts +2 -2
  80. package/apps/agents-server/src/components/Header/resolveHeaderSystemActivities.ts +86 -0
  81. package/apps/agents-server/src/components/Homepage/AgentCard.tsx +0 -3
  82. package/apps/agents-server/src/components/Homepage/useAgentsListImportExportState.ts +22 -10
  83. package/apps/agents-server/src/components/LayoutWrapper/LayoutWrapper.tsx +8 -0
  84. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/ManGoBookEditor.tsx +82 -0
  85. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/WizardShell.tsx +2 -2
  86. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/steps/BookStep.tsx +13 -16
  87. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/steps/ZadaniStep.tsx +4 -4
  88. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/config/bookSections.ts +23 -16
  89. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/lib/bookSource.ts +54 -0
  90. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/services/bookService.ts +15 -8
  91. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/services/createManGoAgentSource.ts +3 -37
  92. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/services/createManGoOpenEditorRequest.ts +1 -1
  93. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/state/OnboardingProvider.tsx +2 -2
  94. package/apps/agents-server/src/components/NewAgentDialog/NewAgentWizardState.ts +0 -12
  95. package/apps/agents-server/src/components/NewAgentDialog/NewAgentWizardUseSetupStep.tsx +0 -58
  96. package/apps/agents-server/src/components/NewAgentDialog/newAgentWizardPresets.ts +0 -56
  97. package/apps/agents-server/src/components/UsersList/CreateUserDialog.tsx +13 -22
  98. package/apps/agents-server/src/components/UsersList/PasswordGeneratorDialog.tsx +216 -0
  99. package/apps/agents-server/src/components/UsersList/UsersList.tsx +16 -11
  100. package/apps/agents-server/src/components/UsersList/generateSecurePassword.ts +112 -24
  101. package/apps/agents-server/src/components/UsersList/userDialogClassNames.ts +11 -0
  102. package/apps/agents-server/src/components/WalletRecordDialog/useWalletRecordDialogState.ts +1 -1
  103. package/apps/agents-server/src/components/_utils/generateMetaTxt.ts +1 -1
  104. package/apps/agents-server/src/database/migratePrefix.ts +13 -12
  105. package/apps/agents-server/src/database/migrations/2026-08-0100-agent-goal-chat-source.sql +10 -0
  106. package/apps/agents-server/src/generated/reservedPaths.ts +42 -42
  107. package/apps/agents-server/src/languages/ServerTranslationKeys.ts +20 -11
  108. package/apps/agents-server/src/languages/translations/czech.yaml +20 -11
  109. package/apps/agents-server/src/languages/translations/english.yaml +20 -11
  110. package/apps/agents-server/src/message-providers/email/smtp/SmtpMessageProvider.ts +1 -1
  111. package/apps/agents-server/src/message-providers/email/stalwart/StalwartMessageProvider.ts +57 -18
  112. package/apps/agents-server/src/message-providers/email/stalwart/parseInboundStalwartEmail.ts +17 -2
  113. package/apps/agents-server/src/tools/$provideOpenAiAgentKitExecutionToolsForServer.ts +0 -191
  114. package/apps/agents-server/src/tools/$provideOpenAiAssistantExecutionToolsForServer.ts +0 -3
  115. package/apps/agents-server/src/tools/agentGoalChatTimeoutToolFunctions.ts +180 -0
  116. package/apps/agents-server/src/tools/agentGoalChatTimeoutTools.ts +92 -0
  117. package/apps/agents-server/src/tools/createServerChatRuntimeTools.ts +20 -0
  118. package/apps/agents-server/src/tools/getAllToolFunctionsForServer.ts +2 -0
  119. package/apps/agents-server/src/tools/run_browser.ts +1 -1
  120. package/apps/agents-server/src/tools/send_email.ts +3 -3
  121. package/apps/agents-server/src/utils/agentGoalChat/agentGoalChatConstants.ts +14 -0
  122. package/apps/agents-server/src/utils/agentGoalChat/agentGoalChatIdentity.ts +28 -0
  123. package/apps/agents-server/src/utils/agentGoalChat/agentGoalChatPlannedMessageActions.ts +307 -0
  124. package/apps/agents-server/src/utils/agentGoalChat/appendAgentGoalChatNote.ts +43 -0
  125. package/apps/agents-server/src/utils/agentGoalChat/canAccessAgentGoalChat.ts +14 -0
  126. package/apps/agents-server/src/utils/agentGoalChat/createAgentGoalChatNoteContent.ts +92 -0
  127. package/apps/agents-server/src/utils/agentGoalChat/enqueueAgentGoalChatTurn.ts +167 -0
  128. package/apps/agents-server/src/utils/agentGoalChat/ensureAgentGoalChat.ts +66 -0
  129. package/apps/agents-server/src/utils/agentGoalChat/prependAgentGoalChatSummarySeed.ts +40 -0
  130. package/apps/agents-server/src/utils/agentGoalChat/recordAgentGoalChatLifecycleNote.ts +53 -0
  131. package/apps/agents-server/src/utils/agentGoalChat/resolveAgentGoalChatOwnerUserId.ts +104 -0
  132. package/apps/agents-server/src/utils/agentGoalChat/resolveEffectiveAgentGoal.ts +29 -0
  133. package/apps/agents-server/src/utils/agentGoalChat/scheduleAgentGoalChatModifiedNote.ts +85 -0
  134. package/apps/agents-server/src/utils/agentGoalChat.ts +24 -0
  135. package/apps/agents-server/src/utils/agentProjects/AgentProjectInfo.ts +10 -1
  136. package/apps/agents-server/src/utils/agentProjects/AgentProjectReferenceInfo.ts +5 -2
  137. package/apps/agents-server/src/utils/agentProjects/AgentProjectRuntimeActionResult.ts +14 -0
  138. package/apps/agents-server/src/utils/agentProjects/agentProjectFileNames.ts +21 -0
  139. package/apps/agents-server/src/utils/agentProjects/agentProjectHrefs.ts +20 -0
  140. package/apps/agents-server/src/utils/agentProjects/agentProjectsPaths.ts +15 -5
  141. package/apps/agents-server/src/utils/agentProjects/createAgentProjectDnsRecords.ts +53 -7
  142. package/apps/agents-server/src/utils/agentProjects/createAgentProjectInitials.ts +36 -0
  143. package/apps/agents-server/src/utils/agentProjects/createAgentProjectMarkdownReferences.ts +143 -28
  144. package/apps/agents-server/src/utils/agentProjects/createAgentProjectsDnsRecordsSection.ts +113 -0
  145. package/apps/agents-server/src/utils/agentProjects/createStaticAgentProjectServer.ts +2 -6
  146. package/apps/agents-server/src/utils/agentProjects/humanizeAgentProjectName.ts +25 -0
  147. package/apps/agents-server/src/utils/agentProjects/listAgentProjectChatReferences.ts +10 -3
  148. package/apps/agents-server/src/utils/agentProjects/parseAgentProjectIndexHtml.ts +167 -0
  149. package/apps/agents-server/src/utils/agentProjects/readAgentProjectIndexHtmlProfile.ts +24 -0
  150. package/apps/agents-server/src/utils/agentProjects/readAgentProjectReadme.ts +3 -53
  151. package/apps/agents-server/src/utils/agentProjects/readAgentProjectRootTextFile.ts +73 -0
  152. package/apps/agents-server/src/utils/agentProjects/resolveAgentProjectFaviconRelativePath.ts +108 -0
  153. package/apps/agents-server/src/utils/agentProjects/resolveAgentProjectInfo.ts +12 -3
  154. package/apps/agents-server/src/utils/agentProjects/{resolveAgentProjectReadmeProfile.ts → resolveAgentProjectProfile.ts} +33 -33
  155. package/apps/agents-server/src/utils/agentProjects/resolveAgentProjectPublicUrls.ts +34 -0
  156. package/apps/agents-server/src/utils/bookLanguageDocumentation/createBookLanguageDocumentationPdfResponse.ts +19 -17
  157. package/apps/agents-server/src/utils/chatTasksAdmin.ts +9 -0
  158. package/apps/agents-server/src/utils/createAgentWithDefaultVisibility.ts +8 -0
  159. package/apps/agents-server/src/utils/dnsRecords/DnsRecordInstruction.ts +20 -0
  160. package/apps/agents-server/src/utils/dnsRecords/DnsRecordsSection.ts +77 -0
  161. package/apps/agents-server/src/utils/dnsRecords/createServerDnsRecordsSections.ts +58 -0
  162. package/apps/agents-server/src/utils/dnsRecords/createServerDomainDnsRecordsSection.ts +48 -0
  163. package/apps/agents-server/src/utils/dnsRecords/dnsRecordGroups.ts +52 -0
  164. package/apps/agents-server/src/utils/dnsRecords/resolveDnsRecordBatchPlan.ts +47 -1
  165. package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/adminChatTaskSqlQuery.ts +41 -36
  166. package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/mapAdminChatTaskFallbackRows.ts +3 -0
  167. package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/mapAdminChatTaskSqlRows.ts +2 -0
  168. package/apps/agents-server/src/utils/handleChatCompletion/createHandleChatCompletionPromptContext.ts +3 -2
  169. package/apps/agents-server/src/utils/handleChatCompletion/resolveHandleChatCompletionRuntime.ts +4 -12
  170. package/apps/agents-server/src/utils/localChatRunner/parseLocalTeamConversations.ts +281 -0
  171. package/apps/agents-server/src/utils/localChatRunner/persistLocalTeamConversations.ts +71 -0
  172. package/apps/agents-server/src/utils/localChatRunner/prepareLocalTeamConversationWorkspace.ts +233 -0
  173. package/apps/agents-server/src/utils/localChatRunner/processLocalUserChatJob.ts +37 -6
  174. package/apps/agents-server/src/utils/manGoOnboarding/manGoOnboardingAgentBooks.ts +2 -14
  175. package/apps/agents-server/src/utils/manGoOnboarding/manGoOnboardingAgentRuntime.ts +21 -73
  176. package/apps/agents-server/src/utils/messages/parseUseEmailSmtpCredential.ts +1 -1
  177. package/apps/agents-server/src/utils/resolveUseEmailSmtpCredential.ts +1 -1
  178. package/apps/agents-server/src/utils/serverManagement/createManagedServer/insertManagedServerRegistryRow.ts +2 -2
  179. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerCoreAgents.ts +7 -6
  180. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerDefaultAgents.ts +5 -4
  181. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerMetadata.ts +3 -2
  182. package/apps/agents-server/src/utils/serverManagement/createManagedServer/seedServerUsers.ts +3 -2
  183. package/apps/agents-server/src/utils/serverManagement/deleteManagedServer.ts +2 -2
  184. package/apps/agents-server/src/utils/stalwart/createEmailDnsInstructions.ts +9 -5
  185. package/apps/agents-server/src/utils/stalwart/createEmailDnsRecordsSection.ts +53 -0
  186. package/apps/agents-server/src/utils/stalwart/readStalwartEmailSnapshot.ts +23 -5
  187. package/apps/agents-server/src/utils/stalwart/stalwartBootstrap.ts +2 -1
  188. package/apps/agents-server/src/utils/stalwart/stalwartMailBridge.ts +7 -0
  189. package/apps/agents-server/src/utils/useEmailSmtpWalletConstants.ts +5 -5
  190. package/apps/agents-server/src/utils/userChat/UserChatRecord.ts +13 -0
  191. package/apps/agents-server/src/utils/userChat/UserChatSource.ts +14 -0
  192. package/apps/agents-server/src/utils/userChat/appendQueuedUserChatTurn.ts +9 -2
  193. package/apps/agents-server/src/utils/userChat/createRunUserChatJobExecutionContext.ts +7 -17
  194. package/apps/agents-server/src/utils/userChat/createUserChatSummary.ts +10 -2
  195. package/apps/agents-server/src/utils/userChat/finalizeUserChatJob.ts +3 -2
  196. package/apps/agents-server/src/utils/userChat/getUserChat.ts +16 -1
  197. package/apps/agents-server/src/utils/userChat/getUserChatForJobRunner.ts +31 -0
  198. package/apps/agents-server/src/utils/userChat/listUserChats.ts +113 -110
  199. package/apps/agents-server/src/utils/userChat/persistFrozenUserChat.ts +21 -6
  200. package/apps/agents-server/src/utils/userChat/resolveUserChatWorkerInternalToken.ts +5 -4
  201. package/apps/agents-server/src/utils/userChat/runImmediateUserChatAnswer.ts +2 -6
  202. package/apps/agents-server/src/utils/userChat/runUserChatJob.ts +2 -6
  203. package/apps/agents-server/src/utils/userChat/teamMemberUserChatContext.ts +63 -0
  204. package/apps/agents-server/src/utils/userChat/userChatMessageLifecycle.ts +6 -1
  205. package/apps/agents-server/src/utils/userChat.ts +5 -1
  206. package/apps/agents-server/src/utils/userChatClient/cancelAgentUserTimeout.ts +2 -2
  207. package/apps/agents-server/src/utils/userChatClient/fetchAgentUserTimeouts.ts +2 -2
  208. package/apps/agents-server/src/utils/userChatClient.ts +9 -31
  209. package/apps/agents-server/src/utils/userChatTimeout/UserChatTimeoutRecord.ts +10 -2
  210. package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutStore/claimNextDueUserChatTimeout.ts +28 -25
  211. package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutStore/getAgentScopedUserChatTimeout.ts +8 -4
  212. package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutStore/listAgentUserChatTimeouts.ts +4 -1
  213. package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutStore/recoverExpiredRunningUserChatTimeouts.ts +3 -2
  214. package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutWorker.ts +55 -0
  215. package/apps/agents-server/src/utils/userWallet/UserWalletRecord.ts +1 -1
  216. package/apps/agents-server/src/utils/userWallet/resolveUseEmailSmtpCredentialFromWallet.ts +1 -1
  217. package/apps/agents-server/src/utils/vpsSelfUpdate/deleteVpsSelfUpdateInstalledVersion.ts +2 -1
  218. package/apps/agents-server/src/utils/vpsSelfUpdate/isVpsSelfUpdateJobRunning.ts +16 -0
  219. package/apps/agents-server/src/utils/vpsSelfUpdate/startVpsSelfUpdate.ts +2 -1
  220. package/apps/agents-server/src/utils/vpsSelfUpdate.ts +1 -0
  221. package/apps/agents-server/tests/e2e/e2eEnvironment.cjs +49 -0
  222. package/esm/apps/agents-server/src/utils/agentGoalChat/agentGoalChatConstants.d.ts +12 -0
  223. package/esm/index.es.js +5260 -6573
  224. package/esm/index.es.js.map +1 -1
  225. package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +8 -0
  226. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  227. package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  228. package/esm/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  229. package/esm/scripts/run-agent-messages/messages/finalizeAgentTeamConversationWorkspace.d.ts +16 -0
  230. package/esm/scripts/run-agent-messages/messages/loadAgentTeamConversationWorkspace.d.ts +6 -0
  231. package/esm/scripts/run-codex-prompts/common/createCoderRunStepTracker.d.ts +48 -0
  232. package/esm/scripts/run-codex-prompts/common/normalizeLineEndingsInChangedFiles.d.ts +2 -3
  233. package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +7 -0
  234. package/esm/scripts/run-codex-prompts/git/coderCommitScope.d.ts +31 -0
  235. package/esm/scripts/run-codex-prompts/git/coderGitSync.d.ts +56 -0
  236. package/esm/scripts/run-codex-prompts/git/commitChanges.d.ts +12 -3
  237. package/esm/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +40 -0
  238. package/esm/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -1
  239. package/esm/scripts/run-codex-prompts/ping/buildCoderPingPrompt.d.ts +20 -0
  240. package/esm/scripts/run-codex-prompts/ping/extractCoderPingAnswer.d.ts +9 -0
  241. package/esm/scripts/run-codex-prompts/ping/pingCoderHarness.d.ts +23 -0
  242. package/esm/scripts/run-codex-prompts/ping/printCoderPingResult.d.ts +5 -0
  243. package/esm/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +43 -0
  244. package/esm/scripts/run-codex-prompts/prompts/findNextTodoPrompt.d.ts +2 -1
  245. package/esm/scripts/run-codex-prompts/prompts/formatCoderRunSteps.d.ts +6 -3
  246. package/esm/scripts/run-codex-prompts/prompts/isPromptCompatibleWithRunner.d.ts +27 -0
  247. package/esm/scripts/run-codex-prompts/prompts/isPromptSectionUnfinished.d.ts +8 -0
  248. package/esm/scripts/run-codex-prompts/prompts/listRunnablePrompts.d.ts +2 -1
  249. package/esm/scripts/run-codex-prompts/prompts/listUpcomingTasks.d.ts +2 -1
  250. package/esm/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +1 -1
  251. package/esm/scripts/run-codex-prompts/prompts/markPromptInProgress.d.ts +27 -0
  252. package/esm/scripts/run-codex-prompts/prompts/resolvePromptStatusLine.d.ts +19 -0
  253. package/esm/scripts/run-codex-prompts/prompts/writePromptStatusLine.d.ts +9 -0
  254. package/esm/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
  255. package/esm/scripts/run-codex-prompts/server/coderServerHtml.d.ts +1 -1
  256. package/esm/scripts/run-codex-prompts/server/updatePromptSection.d.ts +1 -1
  257. package/esm/scripts/run-codex-prompts/testing/TestBeforeMode.d.ts +16 -0
  258. package/esm/scripts/run-codex-prompts/testing/createTestBeforeRepairPrompt.d.ts +9 -0
  259. package/esm/scripts/run-codex-prompts/testing/limitTestOutput.d.ts +4 -0
  260. package/esm/scripts/run-codex-prompts/testing/runPromptTestCommand.d.ts +1 -2
  261. package/esm/scripts/run-codex-prompts/testing/runPromptWithTestFeedback.d.ts +6 -0
  262. package/esm/scripts/run-codex-prompts/testing/runTestBefore.d.ts +24 -0
  263. package/esm/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +5 -5
  264. package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiTerminalFrameUpdate.d.ts +27 -0
  265. package/esm/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -0
  266. package/esm/scripts/verify-prompts/$orderPromptFiles.d.ts +9 -0
  267. package/esm/scripts/verify-prompts/VerifyPromptsOrder.d.ts +26 -0
  268. package/esm/scripts/verify-prompts/verify-prompts.d.ts +8 -2
  269. package/esm/src/_packages/components.index.d.ts +4 -0
  270. package/esm/src/_packages/types.index.d.ts +4 -0
  271. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  272. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  273. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  274. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
  275. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
  276. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
  277. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  278. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  279. package/esm/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
  280. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
  281. package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
  282. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
  283. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  284. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  285. package/esm/src/cli/cli-commands/coder/ping.d.ts +10 -0
  286. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  287. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  288. package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
  289. package/esm/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  290. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  291. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  292. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  293. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  294. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  295. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  296. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  297. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  298. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  299. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  300. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  301. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  302. package/esm/src/cli/common/loadPromptsModule.d.ts +16 -0
  303. package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  304. package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
  305. package/esm/src/commitments/index.d.ts +4 -12
  306. package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
  307. package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  308. package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
  309. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
  310. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
  311. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
  312. package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
  313. package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
  314. package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
  315. package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
  316. package/esm/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
  317. package/esm/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
  318. package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  319. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  320. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  321. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  322. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  323. package/esm/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
  324. package/esm/src/utils/misc/debounce.d.ts +4 -2
  325. package/esm/src/version.d.ts +1 -1
  326. package/package.json +1 -1
  327. package/src/_packages/components.index.ts +4 -0
  328. package/src/_packages/components.readme.md +1 -1
  329. package/src/_packages/types.index.ts +4 -0
  330. package/src/avatars/renderAvatarVisualTerminalText.ts +249 -0
  331. package/src/avatars/types/AvatarVisualDefinition.ts +60 -0
  332. package/src/avatars/visuals/asciiOctopusAvatarVisual.ts +144 -22
  333. package/src/book-2.0/agent-source/AgentBasicInformation.ts +3 -9
  334. package/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments/filterCommitmentsForAgentModelRequirements.ts +0 -23
  335. package/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.ts +0 -2
  336. package/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.ts +16 -31
  337. package/src/book-2.0/agent-source/parseAgentSource/createCapabilitiesFromCommitment.ts +0 -35
  338. package/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.ts +1 -15
  339. package/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.ts +1 -27
  340. package/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.ts +96 -44
  341. package/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.ts +23 -71
  342. package/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.ts +22 -67
  343. package/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.ts +9 -1
  344. package/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.ts +5 -55
  345. package/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.ts +278 -4
  346. package/src/book-3.0/AgentTeamConversationWorkspace.ts +172 -0
  347. package/src/book-3.0/LiteAgent.ts +11 -9
  348. package/src/book-components/BookEditor/useBookEditorMonacoLanguage.ts +1 -1
  349. package/src/book-components/BookEditor/useBookEditorMonacoStyles.ts +56 -55
  350. package/src/book-components/Chat/Chat/Chat.module.css +1 -8
  351. package/src/book-components/Chat/Chat/ChatMessageMap.tsx +8 -4
  352. package/src/book-components/Chat/Chat/ChatProps.tsx +3 -2
  353. package/src/book-components/Chat/MarkdownContent/MarkdownContent.module.css +85 -17
  354. package/src/book-components/Chat/MarkdownContent/MarkdownContent.tsx +116 -2
  355. package/src/book-components/Chat/save/react/exports/chat-preview-2025-10-13 (1).jsx +95 -5
  356. package/src/book-components/Chat/utils/$provideServerDomWindow.ts +77 -0
  357. package/src/book-components/Chat/utils/renderMarkdown.ts +716 -44
  358. package/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.ts +14 -0
  359. package/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.ts +1 -0
  360. package/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.ts +1 -0
  361. package/src/cli/cli-commands/coder/add.ts +40 -12
  362. package/src/cli/cli-commands/coder/agentCodingFile.ts +6 -129
  363. package/src/cli/cli-commands/coder/boilerplateCount.ts +139 -0
  364. package/src/cli/cli-commands/coder/generate-boilerplates.ts +81 -47
  365. package/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.ts +7 -4
  366. package/src/cli/cli-commands/coder/init.ts +29 -2
  367. package/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.ts +1 -4
  368. package/src/cli/cli-commands/coder/ping.ts +72 -0
  369. package/src/cli/cli-commands/coder/run.ts +35 -4
  370. package/src/cli/cli-commands/coder/verify.ts +55 -16
  371. package/src/cli/cli-commands/coder.ts +4 -0
  372. package/src/cli/cli-commands/common/coderGitSyncCliOptions.ts +82 -0
  373. package/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.ts +2 -2
  374. package/src/cli/cli-commands/common/harness/$checkHarnessInstallation.ts +6 -4
  375. package/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.ts +2 -2
  376. package/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.ts +2 -1
  377. package/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.ts → npm/$askForNpmPackageInstallationApproval.ts} +3 -3
  378. package/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.ts +49 -0
  379. package/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.ts +28 -0
  380. package/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.ts +25 -0
  381. package/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.ts +165 -0
  382. package/src/cli/cli-commands/common/projectInitialization.ts +10 -1
  383. package/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.ts +69 -0
  384. package/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.ts +117 -0
  385. package/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.ts +259 -0
  386. package/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.ts +55 -0
  387. package/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.ts +76 -0
  388. package/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.ts +32 -0
  389. package/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.ts +13 -0
  390. package/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.ts +45 -0
  391. package/src/cli/cli-commands/run/prepareRunCommandResources.ts +2 -1
  392. package/src/cli/cli-commands/run/resolveRunInputParameters.ts +2 -1
  393. package/src/cli/cli-commands/runInteractiveChatbot.ts +2 -1
  394. package/src/cli/common/$provideLlmToolsForCli.ts +2 -1
  395. package/src/cli/common/loadPromptsModule.ts +13 -0
  396. package/src/commands/FORMAT/formatCommandParser.ts +2 -2
  397. package/src/commitments/ACTION/ACTION.ts +3 -3
  398. package/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.ts +1 -1
  399. package/src/commitments/META_FULLNAME/META_FULLNAME.ts +70 -0
  400. package/src/commitments/META_ID/META_ID.ts +78 -0
  401. package/src/commitments/_common/getAllCommitmentsToolFunctionsForNode.ts +1 -49
  402. package/src/commitments/index.ts +6 -24
  403. package/src/conversion/archive/loadArchive.ts +2 -1
  404. package/src/conversion/archive/loadJsZipModule.ts +10 -0
  405. package/src/conversion/archive/saveArchive.ts +2 -1
  406. package/src/llm-providers/agent/Agent.ts +1 -1
  407. package/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.ts +13 -1
  408. package/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.ts +13 -1
  409. package/src/llm-providers/openai/OpenAiAgentKitExecutionTools.ts +6 -2
  410. package/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.ts +9 -7
  411. package/src/llm-providers/openai/OpenAiAssistantExecutionTools.ts +1 -1
  412. package/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.ts +1 -1
  413. package/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.ts +1 -1
  414. package/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.ts +1 -1
  415. package/src/llm-providers/openai/OpenAiCompatibleRequestManager.ts +12 -1
  416. package/src/llm-providers/openai/utils/buildToolInvocationScript.ts +21 -18
  417. package/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.ts +1 -1
  418. package/src/llm-providers/openai/utils/loadOpenAiAgentsModule.ts +11 -0
  419. package/src/llm-providers/openai/utils/uploadFilesToOpenAi.ts +1 -1
  420. package/src/other/templates/getTemplatesPipelineCollection.ts +786 -1141
  421. package/src/remote-server/createRemoteClient.ts +12 -1
  422. package/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.ts +8 -9
  423. package/src/scrapers/website/WebsiteScraper.ts +22 -2
  424. package/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.ts +157 -3
  425. package/src/utils/agents/terminalAgentAvatarVisual.ts +31 -3
  426. package/src/utils/ascii-art/convertImageDataToAsciiArt.ts +9 -109
  427. package/src/utils/ascii-art/createAnsiColorCode.ts +132 -0
  428. package/src/utils/misc/createLazyModuleLoader.ts +27 -0
  429. package/src/utils/misc/debounce.ts +26 -5
  430. package/src/version.ts +2 -2
  431. package/src/versions.txt +8 -1
  432. package/umd/apps/agents-server/src/utils/agentGoalChat/agentGoalChatConstants.d.ts +12 -0
  433. package/umd/index.umd.js +5718 -7025
  434. package/umd/index.umd.js.map +1 -1
  435. package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +8 -0
  436. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  437. package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  438. package/umd/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  439. package/umd/scripts/run-agent-messages/messages/finalizeAgentTeamConversationWorkspace.d.ts +16 -0
  440. package/umd/scripts/run-agent-messages/messages/loadAgentTeamConversationWorkspace.d.ts +6 -0
  441. package/umd/scripts/run-codex-prompts/common/createCoderRunStepTracker.d.ts +48 -0
  442. package/umd/scripts/run-codex-prompts/common/normalizeLineEndingsInChangedFiles.d.ts +2 -3
  443. package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +7 -0
  444. package/umd/scripts/run-codex-prompts/git/coderCommitScope.d.ts +31 -0
  445. package/umd/scripts/run-codex-prompts/git/coderGitSync.d.ts +56 -0
  446. package/umd/scripts/run-codex-prompts/git/commitChanges.d.ts +12 -3
  447. package/umd/scripts/run-codex-prompts/git/workingTreeChanges.d.ts +40 -0
  448. package/umd/scripts/run-codex-prompts/main/resolvePromptRunner.d.ts +8 -1
  449. package/umd/scripts/run-codex-prompts/ping/buildCoderPingPrompt.d.ts +20 -0
  450. package/umd/scripts/run-codex-prompts/ping/extractCoderPingAnswer.d.ts +9 -0
  451. package/umd/scripts/run-codex-prompts/ping/pingCoderHarness.d.ts +23 -0
  452. package/umd/scripts/run-codex-prompts/ping/printCoderPingResult.d.ts +5 -0
  453. package/umd/scripts/run-codex-prompts/prompts/buildPromptStatusDetails.d.ts +43 -0
  454. package/umd/scripts/run-codex-prompts/prompts/findNextTodoPrompt.d.ts +2 -1
  455. package/umd/scripts/run-codex-prompts/prompts/formatCoderRunSteps.d.ts +6 -3
  456. package/umd/scripts/run-codex-prompts/prompts/isPromptCompatibleWithRunner.d.ts +27 -0
  457. package/umd/scripts/run-codex-prompts/prompts/isPromptSectionUnfinished.d.ts +8 -0
  458. package/umd/scripts/run-codex-prompts/prompts/listRunnablePrompts.d.ts +2 -1
  459. package/umd/scripts/run-codex-prompts/prompts/listUpcomingTasks.d.ts +2 -1
  460. package/umd/scripts/run-codex-prompts/prompts/markPromptDone.d.ts +1 -1
  461. package/umd/scripts/run-codex-prompts/prompts/markPromptInProgress.d.ts +27 -0
  462. package/umd/scripts/run-codex-prompts/prompts/resolvePromptStatusLine.d.ts +19 -0
  463. package/umd/scripts/run-codex-prompts/prompts/writePromptStatusLine.d.ts +9 -0
  464. package/umd/scripts/run-codex-prompts/server/buildCoderServerPromptResponse.d.ts +1 -1
  465. package/umd/scripts/run-codex-prompts/server/coderServerHtml.d.ts +1 -1
  466. package/umd/scripts/run-codex-prompts/server/updatePromptSection.d.ts +1 -1
  467. package/umd/scripts/run-codex-prompts/testing/TestBeforeMode.d.ts +16 -0
  468. package/umd/scripts/run-codex-prompts/testing/createTestBeforeRepairPrompt.d.ts +9 -0
  469. package/umd/scripts/run-codex-prompts/testing/limitTestOutput.d.ts +4 -0
  470. package/umd/scripts/run-codex-prompts/testing/runPromptTestCommand.d.ts +1 -2
  471. package/umd/scripts/run-codex-prompts/testing/runPromptWithTestFeedback.d.ts +6 -0
  472. package/umd/scripts/run-codex-prompts/testing/runTestBefore.d.ts +24 -0
  473. package/umd/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +5 -5
  474. package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiTerminalFrameUpdate.d.ts +27 -0
  475. package/umd/scripts/run-codex-prompts/ui/buildRunUiFrameShared.d.ts +1 -0
  476. package/umd/scripts/verify-prompts/$orderPromptFiles.d.ts +9 -0
  477. package/umd/scripts/verify-prompts/VerifyPromptsOrder.d.ts +26 -0
  478. package/umd/scripts/verify-prompts/verify-prompts.d.ts +8 -2
  479. package/umd/src/_packages/components.index.d.ts +4 -0
  480. package/umd/src/_packages/types.index.d.ts +4 -0
  481. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  482. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  483. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  484. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
  485. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
  486. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
  487. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  488. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  489. package/umd/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
  490. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
  491. package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
  492. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
  493. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  494. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  495. package/umd/src/cli/cli-commands/coder/ping.d.ts +10 -0
  496. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  497. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  498. package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
  499. package/umd/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  500. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  501. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  502. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  503. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  504. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  505. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  506. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  507. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  508. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  509. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  510. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  511. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  512. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  513. package/umd/src/cli/common/loadPromptsModule.d.ts +16 -0
  514. package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  515. package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
  516. package/umd/src/commitments/index.d.ts +4 -12
  517. package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
  518. package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
  519. package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
  520. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
  521. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
  522. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
  523. package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
  524. package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
  525. package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
  526. package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
  527. package/umd/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
  528. package/umd/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
  529. package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  530. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  531. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  532. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  533. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  534. package/umd/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
  535. package/umd/src/utils/misc/debounce.d.ts +4 -2
  536. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  537. package/umd/src/version.d.ts +1 -1
  538. package/apps/agents-server/scripts/ignore-kill-eperm.js +0 -31
  539. package/apps/agents-server/src/app/agents/[agentName]/api/timeouts/actions/route.ts +0 -103
  540. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsClient.tsx +0 -43
  541. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsEditDialog.tsx +0 -98
  542. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsFiltersCard.tsx +0 -75
  543. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsHeader.tsx +0 -53
  544. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsSummaryMetrics.tsx +0 -70
  545. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsTableCard.tsx +0 -58
  546. package/apps/agents-server/src/app/agents/[agentName]/timeouts/AgentTimeoutsTableRow.tsx +0 -242
  547. package/apps/agents-server/src/app/agents/[agentName]/timeouts/loading.tsx +0 -15
  548. package/apps/agents-server/src/app/agents/[agentName]/timeouts/page.tsx +0 -28
  549. package/apps/agents-server/src/app/agents/[agentName]/timeouts/useAgentTimeoutsClientState.ts +0 -769
  550. package/apps/agents-server/src/app/api/onboarding/draft/route.ts +0 -23
  551. package/apps/agents-server/src/components/AgentProjectDnsInstructions/AgentProjectDnsInstructions.tsx +0 -182
  552. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/BookLanguagePanel.tsx +0 -125
  553. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/MarkdownBookEditor.tsx +0 -154
  554. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/components/MarkdownPreview.tsx +0 -188
  555. package/apps/agents-server/src/components/NewAgentDialog/ManGoNewAgentWizard/services/draftService.ts +0 -32
  556. package/apps/agents-server/src/tools/configureTimeoutToolRuntimeAdapterForServer.ts +0 -381
  557. package/apps/agents-server/src/utils/emails/extractUseEmailConfigurationFromAgentSource.ts +0 -42
  558. package/apps/agents-server/src/utils/userChatClient/runAgentUserTimeoutBulkAction.ts +0 -24
  559. package/apps/agents-server/src/utils/userChatClient/updateAgentUserTimeout.ts +0 -25
  560. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  561. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  562. package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  563. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  564. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  565. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  566. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  567. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  568. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  569. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  570. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  571. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  572. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  573. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  574. package/esm/src/commitments/META/META.d.ts +0 -65
  575. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  576. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  577. package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  578. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  579. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  580. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  581. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  582. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  583. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  584. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  585. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  586. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  587. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  588. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  589. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  590. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  591. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  592. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  593. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  594. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  595. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  596. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  597. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  598. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  599. package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
  600. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  601. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  602. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  603. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  604. package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  605. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  606. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  607. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  608. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  609. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  610. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  611. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  612. package/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.ts +0 -34
  613. package/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.ts +0 -28
  614. package/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.ts +0 -39
  615. package/src/commitments/COMPONENT/COMPONENT.ts +0 -70
  616. package/src/commitments/MEMORY/MEMORY.ts +0 -94
  617. package/src/commitments/MEMORY/MemoryToolNames.ts +0 -13
  618. package/src/commitments/MEMORY/MemoryToolRuntimeAdapter.ts +0 -180
  619. package/src/commitments/MEMORY/createMemorySystemMessage.ts +0 -27
  620. package/src/commitments/MEMORY/createMemoryToolFunctions.ts +0 -134
  621. package/src/commitments/MEMORY/createMemoryTools.ts +0 -115
  622. package/src/commitments/MEMORY/getMemoryCommitmentDocumentation.ts +0 -47
  623. package/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.ts +0 -104
  624. package/src/commitments/MEMORY/getMemoryToolTitles.ts +0 -16
  625. package/src/commitments/MEMORY/parseMemoryToolArgs.ts +0 -126
  626. package/src/commitments/MEMORY/resolveMemoryRuntimeContext.ts +0 -23
  627. package/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.ts +0 -26
  628. package/src/commitments/META/META.ts +0 -168
  629. package/src/commitments/USE/TODO.txt +0 -1
  630. package/src/commitments/USE/aggregateUseCommitmentSystemMessages.ts +0 -219
  631. package/src/commitments/USE_BROWSER/TODO.txt +0 -1
  632. package/src/commitments/USE_BROWSER/USE_BROWSER.ts +0 -257
  633. package/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.ts +0 -45
  634. package/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.ts +0 -83
  635. package/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.ts +0 -146
  636. package/src/commitments/USE_EMAIL/USE_EMAIL.ts +0 -201
  637. package/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.ts +0 -75
  638. package/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.ts +0 -44
  639. package/src/commitments/USE_EMAIL/sendEmailViaBrowser.ts +0 -47
  640. package/src/commitments/USE_SEARCH_ENGINE/TODO.txt +0 -1
  641. package/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.ts +0 -171
  642. package/src/commitments/USE_SPAWN/USE_SPAWN.ts +0 -150
  643. package/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.ts +0 -42
  644. package/src/commitments/USE_SPAWN/spawnAgentViaBrowser.ts +0 -50
  645. package/src/commitments/USE_TIME/USE_TIME.ts +0 -177
  646. package/src/commitments/USE_TIMEOUT/TimeoutToolNames.ts +0 -13
  647. package/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.ts +0 -255
  648. package/src/commitments/USE_TIMEOUT/USE_TIMEOUT.ts +0 -117
  649. package/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.ts +0 -22
  650. package/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.ts +0 -361
  651. package/src/commitments/USE_TIMEOUT/createTimeoutTools.ts +0 -127
  652. package/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.ts +0 -67
  653. package/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.ts +0 -460
  654. package/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.ts +0 -36
  655. package/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.ts +0 -26
  656. package/src/commitments/WALLET/WALLET.ts +0 -71
  657. package/src/commitments/WALLET/WalletToolNames.ts +0 -14
  658. package/src/commitments/WALLET/WalletToolRuntimeAdapter.ts +0 -180
  659. package/src/commitments/WALLET/createWalletSystemMessage.ts +0 -22
  660. package/src/commitments/WALLET/createWalletToolFunctions.ts +0 -145
  661. package/src/commitments/WALLET/createWalletTools.ts +0 -129
  662. package/src/commitments/WALLET/getWalletCommitmentDocumentation.ts +0 -14
  663. package/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.ts +0 -64
  664. package/src/commitments/WALLET/getWalletToolTitles.ts +0 -17
  665. package/src/commitments/WALLET/parseWalletToolArgs.ts +0 -231
  666. package/src/commitments/WALLET/resolveWalletRuntimeContext.ts +0 -23
  667. package/src/commitments/WALLET/setWalletToolRuntimeAdapter.ts +0 -26
  668. package/src/commitments/_common/createSerpSearchToolFunction.ts +0 -46
  669. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  670. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  671. package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  672. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  673. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  674. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  675. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  676. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  677. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  678. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  679. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  680. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  681. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  682. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  683. package/umd/src/commitments/META/META.d.ts +0 -65
  684. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  685. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  686. package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  687. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  688. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  689. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  690. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  691. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  692. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  693. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  694. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  695. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  696. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  697. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  698. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  699. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  700. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  701. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  702. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  703. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  704. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  705. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  706. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  707. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  708. package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
  709. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  710. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  711. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  712. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  713. package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  714. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  715. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  716. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  717. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  718. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  719. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  720. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  721. /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  722. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  723. /package/esm/src/cli/cli-commands/{common/harness/isHarnessVersionOutdated.test.d.ts → coder/boilerplateCount.test.d.ts} +0 -0
  724. /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  725. /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
  726. /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
  727. /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  728. /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  729. /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  730. /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  731. /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  732. /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  733. /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  734. /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
  735. /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
  736. /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
  737. /package/umd/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  738. /package/umd/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  739. /package/umd/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
  740. /package/umd/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  741. /package/umd/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
  742. /package/umd/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
  743. /package/umd/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  744. /package/umd/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  745. /package/umd/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  746. /package/umd/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  747. /package/umd/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  748. /package/umd/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  749. /package/umd/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  750. /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
@@ -0,0 +1,8 @@
1
+ import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
2
+ /**
3
+ * Builds the planned-message instructions available to an Agents Server-managed coding agent.
4
+ *
5
+ * Planned messages always target the agent's singleton goal chat, regardless of the chat in which
6
+ * the command is invoked.
7
+ */
8
+ export declare function buildAgentGoalChatPromptSection(runtimeApi: AgentServerRuntimePromptApi | undefined): string;
@@ -1,8 +1,19 @@
1
+ import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
1
2
  import { type AgentProjectsPromptSectionOptions } from './buildAgentProjectsPromptSection';
3
+ import { type AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
2
4
  /**
3
5
  * Options adjusting the generated agent message prompt.
4
6
  */
5
- export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions;
7
+ export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions & {
8
+ /**
9
+ * Optional local TEAM roster prepared by the Agents Server for this user turn.
10
+ */
11
+ teamWorkspace?: AgentTeamPromptWorkspace;
12
+ /**
13
+ * Internal API details used to manage planned messages in the agent's singleton goal chat.
14
+ */
15
+ goalChatRuntimeApi?: AgentServerRuntimePromptApi;
16
+ };
6
17
  /**
7
18
  * Builds the prompt sent to the selected coding runner for one queued user-thread book.
8
19
  */
@@ -1,20 +1,8 @@
1
+ import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
1
2
  /**
2
3
  * Internal runtime API details available to Agents Server-managed local agents.
3
4
  */
4
- export type AgentProjectRuntimePromptApi = {
5
- /**
6
- * Permanent id of the agent currently answering the message.
7
- */
8
- readonly agentPermanentId: string;
9
- /**
10
- * Environment variable containing the Agents Server origin.
11
- */
12
- readonly serverUrlEnvironmentVariableName: string;
13
- /**
14
- * Environment variable containing the internal worker token.
15
- */
16
- readonly tokenEnvironmentVariableName: string;
17
- };
5
+ export type AgentProjectRuntimePromptApi = AgentServerRuntimePromptApi;
18
6
  /**
19
7
  * Options of the projects prompt section shared by every coding harness.
20
8
  */
@@ -0,0 +1,12 @@
1
+ import { type AgentTeamConversationWorkspaceManifest } from '../../../src/book-3.0/AgentTeamConversationWorkspace';
2
+ /**
3
+ * TEAM workspace information made visible to one coding-harness prompt.
4
+ */
5
+ export type AgentTeamPromptWorkspace = {
6
+ readonly relativeWorkspacePath: string;
7
+ readonly manifest: AgentTeamConversationWorkspaceManifest;
8
+ };
9
+ /**
10
+ * Builds the optional single-run TEAM consultation instructions for a coding harness.
11
+ */
12
+ export declare function buildAgentTeamPromptSection(workspace: AgentTeamPromptWorkspace | undefined): string;
@@ -0,0 +1,16 @@
1
+ import type { AgentMessageFile } from './AgentMessageFile';
2
+ import type { AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
3
+ /**
4
+ * TEAM transcript files retained next to the finished user message.
5
+ */
6
+ export type FinishedAgentTeamConversationWorkspace = {
7
+ readonly relativePaths: ReadonlyArray<string>;
8
+ };
9
+ /**
10
+ * Moves harness-created TEAM conversation transcripts into the finished-message history.
11
+ */
12
+ export declare function finalizeAgentTeamConversationWorkspace(options: {
13
+ readonly projectPath: string;
14
+ readonly queuedMessage: AgentMessageFile;
15
+ readonly workspace: AgentTeamPromptWorkspace | null;
16
+ }): Promise<FinishedAgentTeamConversationWorkspace | null>;
@@ -0,0 +1,6 @@
1
+ import type { AgentMessageFile } from './AgentMessageFile';
2
+ import type { AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
3
+ /**
4
+ * Loads the optional TEAM roster snapshot for one queued message.
5
+ */
6
+ export declare function loadAgentTeamConversationWorkspace(projectPath: string, queuedMessage: AgentMessageFile): Promise<AgentTeamPromptWorkspace | null>;
@@ -0,0 +1,48 @@
1
+ import type { CodexLoginMethod } from '../../../src/book-3.0/codexLoginMethod';
2
+ import type { CoderRunStep, CoderRunStepKind } from './CoderRunStep';
3
+ /**
4
+ * Progress of one prompt round, reported right before a new step starts.
5
+ */
6
+ export type CoderRunStepProgress = {
7
+ /**
8
+ * Kind of the step which is about to start.
9
+ */
10
+ readonly startedStepKind: CoderRunStepKind;
11
+ /**
12
+ * Steps of the same prompt round which have already finished, in the order they ran.
13
+ */
14
+ readonly finishedSteps: ReadonlyArray<CoderRunStep>;
15
+ /**
16
+ * Authentication method the harness reported, as soon as one of the finished steps revealed it.
17
+ */
18
+ readonly loginMethod?: CodexLoginMethod;
19
+ };
20
+ /**
21
+ * Notified right before one coder run step starts.
22
+ */
23
+ export type OnCoderRunStepStarted = (progress: CoderRunStepProgress) => Promise<void>;
24
+ /**
25
+ * Collects the measured steps of one prompt round and announces every step which starts.
26
+ */
27
+ export type CoderRunStepTracker = {
28
+ /**
29
+ * Steps which have finished so far, in the order they ran.
30
+ */
31
+ readonly steps: ReadonlyArray<CoderRunStep>;
32
+ /**
33
+ * Announces that one step is about to start.
34
+ */
35
+ readonly startStep: (kind: CoderRunStepKind) => Promise<void>;
36
+ /**
37
+ * Records one finished step together with the authentication method its runner reported.
38
+ */
39
+ readonly finishStep: (step: CoderRunStep, loginMethod?: CodexLoginMethod) => void;
40
+ };
41
+ /**
42
+ * Creates the step tracker of one prompt round.
43
+ *
44
+ * The tracker is the single place which knows which steps have finished and which one is running,
45
+ * so both the finished `[x]` status line and the intermediate `[^]` in-progress status lines are
46
+ * built from the very same data.
47
+ */
48
+ export declare function createCoderRunStepTracker(onStepStarted?: OnCoderRunStepStarted): CoderRunStepTracker;
@@ -1,9 +1,8 @@
1
+ import type { WorkingTreeChangesSnapshot } from '../git/workingTreeChanges';
1
2
  /**
2
3
  * Snapshot of file hashes for files that were already dirty before a coding round started.
3
4
  */
4
- export type ChangedFilesSnapshot = {
5
- readonly changedFileHashes: ReadonlyMap<string, string>;
6
- };
5
+ export type ChangedFilesSnapshot = WorkingTreeChangesSnapshot;
7
6
  /**
8
7
  * Options for normalizing line endings in files changed during one coding round.
9
8
  */
@@ -2,6 +2,13 @@
2
2
  * Environment variable read by the shell wrapper to tee live output into the temporary runtime log file.
3
3
  */
4
4
  export declare const PTBK_CODER_LOG_FILE_ENV_NAME = "PTBK_CODER_LOG_FILE";
5
+ /**
6
+ * Log line which separates the raw script input from the raw script output of one execution section.
7
+ *
8
+ * Readers of a runtime log split on this marker to look only at what the harness really produced,
9
+ * without the generated script and the prompt it embeds.
10
+ */
11
+ export declare const SCRIPT_EXECUTION_LOG_RAW_OUTPUT_MARKER = "--- raw output ---";
5
12
  /**
6
13
  * Shapes one bash invocation that optionally mirrors live script output into a temporary log file.
7
14
  */
@@ -0,0 +1,31 @@
1
+ import type { WorkingTreeChangesSnapshot } from './workingTreeChanges';
2
+ /**
3
+ * Working tree state captured right before one `ptbk coder` operation starts changing the project.
4
+ *
5
+ * Note: This is the single mechanism which every `ptbk coder` command uses to commit only the files relevant
6
+ * for the operation it has just performed, instead of everything which happens to be changed in the project.
7
+ */
8
+ export type CoderCommitScope = {
9
+ /**
10
+ * Project the operation runs in.
11
+ */
12
+ readonly projectPath: string;
13
+ /**
14
+ * Files which were already changed before the operation started.
15
+ */
16
+ readonly snapshotBeforeOperation: WorkingTreeChangesSnapshot;
17
+ };
18
+ /**
19
+ * Captures the working tree state before one `ptbk coder` operation changes anything.
20
+ *
21
+ * The captured scope is passed to the commit of the very same operation, which then commits exactly the files
22
+ * this operation has created, changed, moved or deleted.
23
+ */
24
+ export declare function captureCoderCommitScope(projectPath: string): Promise<CoderCommitScope>;
25
+ /**
26
+ * Resolves the repository-relative paths which one `ptbk coder` operation has really changed.
27
+ *
28
+ * Files which were already changed before the operation started and which the operation did not touch are
29
+ * never part of the result, so they stay in the working tree instead of being swept into the commit.
30
+ */
31
+ export declare function resolveCoderCommitScopePaths(scope: CoderCommitScope): Promise<ReadonlyArray<string>>;
@@ -0,0 +1,56 @@
1
+ import type { CoderCommitScope } from './coderCommitScope';
2
+ /**
3
+ * Automatic git synchronization of the project changes made by one `ptbk coder` command.
4
+ *
5
+ * Note: This is the single place where pulling, committing and pushing of `ptbk coder` project changes is
6
+ * implemented, every command which offers `--commit`, `--auto-push` and `--auto-pull` reuses it.
7
+ */
8
+ export type CoderGitSyncOptions = {
9
+ /**
10
+ * Commit the changes made by the command.
11
+ */
12
+ readonly isCommitEnabled: boolean;
13
+ /**
14
+ * Push the created commit to the remote repository.
15
+ */
16
+ readonly isAutoPushEnabled: boolean;
17
+ /**
18
+ * Pull the latest changes from the remote repository before the command changes anything.
19
+ */
20
+ readonly isAutoPullEnabled: boolean;
21
+ };
22
+ /**
23
+ * Git synchronization which leaves the repository completely untouched.
24
+ *
25
+ * Note: This is the default for every command and helper which supports the git synchronization.
26
+ */
27
+ export declare const DISABLED_CODER_GIT_SYNC_OPTIONS: CoderGitSyncOptions;
28
+ /**
29
+ * Pulls the latest repository changes and captures the working tree state before a `ptbk coder` command
30
+ * changes the project.
31
+ *
32
+ * The returned scope is handed over to `$commitCoderChanges` of the very same command, which then commits
33
+ * exactly the files this command has changed.
34
+ */
35
+ export declare function $startCoderGitSync(options: {
36
+ readonly gitSync: CoderGitSyncOptions;
37
+ readonly projectPath?: string;
38
+ }): Promise<CoderCommitScope>;
39
+ /**
40
+ * Pulls the latest repository changes before a `ptbk coder` command changes the project.
41
+ */
42
+ export declare function $pullCoderChanges(options: {
43
+ readonly gitSync: CoderGitSyncOptions;
44
+ readonly projectPath?: string;
45
+ }): Promise<void>;
46
+ /**
47
+ * Commits - and when requested also pushes - the changes one `ptbk coder` command has just made.
48
+ *
49
+ * Note: Only the files this very command has changed are committed, everything else is left in the working tree.
50
+ * Note: A command which changed nothing is left alone instead of creating an empty commit.
51
+ */
52
+ export declare function $commitCoderChanges(options: {
53
+ readonly gitSync: CoderGitSyncOptions;
54
+ readonly commitMessage: string;
55
+ readonly commitScope: CoderCommitScope;
56
+ }): Promise<void>;
@@ -1,14 +1,23 @@
1
1
  /**
2
2
  * Commits staged changes with the provided message using the dedicated coding-agent identity when configured,
3
3
  * otherwise falls back to the default Git configuration. Remote pushing is opt-in via `options.autoPush`,
4
- * `options.includePaths` can restrict staging, `options.onlyPaths` can restrict the commit pathspec,
4
+ * `options.relevantPaths` restricts both the staging and the commit to the files of the current operation,
5
5
  * `options.excludePaths` can keep temporary artifacts out of the created commit and
6
6
  * `options.isEmptyCommitAllowed` keeps a round without any file change from failing.
7
+ *
8
+ * Note: The temporary commit message file is written inside the project, so it is always excluded from the commit
9
+ * itself for projects which do not keep the Promptbook temporary directory out of version control.
7
10
  */
8
11
  export declare function commitChanges(message: string, options?: {
9
12
  autoPush?: boolean;
10
- includePaths?: ReadonlyArray<string>;
11
- onlyPaths?: ReadonlyArray<string>;
13
+ /**
14
+ * Repository-relative paths which are relevant for the current operation.
15
+ *
16
+ * Only these paths are staged and only they end up in the created commit, so unrelated changes of the
17
+ * project are left in the working tree. Everything is committed when the paths are not provided at all,
18
+ * while an empty list commits nothing but the file changes already staged before.
19
+ */
20
+ relevantPaths?: ReadonlyArray<string>;
12
21
  excludePaths?: ReadonlyArray<string>;
13
22
  projectPath?: string;
14
23
  isEmptyCommitAllowed?: boolean;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Snapshot of file hashes for files that were already dirty before one operation started.
3
+ *
4
+ * Note: This is the single source of truth about which files one `ptbk coder` operation has really changed,
5
+ * used both for normalizing line endings and for committing only the relevant files.
6
+ */
7
+ export type WorkingTreeChangesSnapshot = {
8
+ /**
9
+ * Hash of every dirty file at the moment the snapshot was taken.
10
+ *
11
+ * A file which was dirty but could not be hashed (a deleted file or a non-regular file) is stored as `null`,
12
+ * so it can be told apart from a file which was not dirty at all.
13
+ */
14
+ readonly changedFileHashes: ReadonlyMap<string, string | null>;
15
+ };
16
+ /**
17
+ * Captures hashes for files that are dirty before one operation starts.
18
+ */
19
+ export declare function captureWorkingTreeChangesSnapshot(projectPath: string): Promise<WorkingTreeChangesSnapshot>;
20
+ /**
21
+ * Lists the repository-relative paths which really changed since the snapshot was taken.
22
+ *
23
+ * A file which was already dirty before and was not touched afterwards is not listed, so the result contains
24
+ * exactly the files changed by the operation which the snapshot wraps.
25
+ */
26
+ export declare function listFilesChangedSinceSnapshot(projectPath: string, snapshot: WorkingTreeChangesSnapshot): Promise<ReadonlyArray<string>>;
27
+ /**
28
+ * Lists dirty tracked files and untracked files in the working tree.
29
+ */
30
+ export declare function listWorkingTreeChangedFiles(projectPath: string): Promise<ReadonlyArray<string>>;
31
+ /**
32
+ * Reads the content hash of one repository-relative working tree file.
33
+ *
34
+ * @returns Hash of a regular file, otherwise `null` for a deleted or non-regular file.
35
+ */
36
+ export declare function readWorkingTreeFileHash(projectPath: string, relativePath: string): Promise<string | null>;
37
+ /**
38
+ * Normalizes Git output paths for internal matching.
39
+ */
40
+ export declare function normalizeGitFilePath(filePath: string): string;
@@ -7,6 +7,13 @@ type RunnerMetadata = {
7
7
  runnerName: string;
8
8
  modelName?: string;
9
9
  };
10
+ /**
11
+ * Subset of `RunOptions` which decides which prompt runner is created and how it is labeled.
12
+ *
13
+ * Commands that only need one configured harness — such as `ptbk coder ping` — pass just these
14
+ * fields instead of assembling a complete `RunOptions` for a run they never start.
15
+ */
16
+ export type PromptRunnerSelectionOptions = Pick<RunOptions, 'agentName' | 'model' | 'thinkingLevel' | 'allowCredits' | 'isVerbose' | 'isMachineReadableProgressEnabled'>;
10
17
  /**
11
18
  * Resolved runner setup used by `runCodexPrompts`.
12
19
  */
@@ -20,5 +27,5 @@ type PromptRunnerResolution = {
20
27
  *
21
28
  * @private function of runCodexPrompts
22
29
  */
23
- export declare function resolvePromptRunner(options: RunOptions): PromptRunnerResolution;
30
+ export declare function resolvePromptRunner(options: PromptRunnerSelectionOptions): PromptRunnerResolution;
24
31
  export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Marker the pinged harness is asked to prefix its answer with, so the reply can be recognized
3
+ * in the raw runner output of every supported harness.
4
+ *
5
+ * Note: The marker must stay free of regular-expression metacharacters, because
6
+ * `extractCoderPingAnswer` builds its pattern from it.
7
+ */
8
+ export declare const CODER_PING_ANSWER_MARKER = "PTBK-CODER-PING-ANSWER";
9
+ /**
10
+ * Answer a working harness and model returns for the dummy work of `ptbk coder ping`.
11
+ */
12
+ export declare const CODER_PING_EXPECTED_ANSWER: string;
13
+ /**
14
+ * Builds the dummy prompt sent by `ptbk coder ping`.
15
+ *
16
+ * The work is intentionally the smallest possible one that still reaches the model: it spends a
17
+ * negligible amount of the harness quota, it needs no tool and it explicitly forbids touching the
18
+ * project, so a ping leaves the project exactly as it was.
19
+ */
20
+ export declare function buildCoderPingPrompt(): string;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Extracts the answer of a pinged harness from the runtime log of its runner shell.
3
+ *
4
+ * Only the raw output of the last execution is searched, so the answer marker contained in the
5
+ * prompt of the raw input is never mistaken for the answer of the harness.
6
+ *
7
+ * @returns The answer of the harness, or `null` when the harness produced no recognizable answer
8
+ */
9
+ export declare function extractCoderPingAnswer(runtimeLog: string): string | null;
@@ -0,0 +1,23 @@
1
+ import type { PromptRunnerSelectionOptions } from '../main/resolvePromptRunner';
2
+ import type { CoderPingResult } from './CoderPingResult';
3
+ /**
4
+ * Options for one `ptbk coder ping` round trip.
5
+ */
6
+ export type PingCoderHarnessOptions = PromptRunnerSelectionOptions & {
7
+ /**
8
+ * Project the harness is started in. Defaults to the current working directory.
9
+ */
10
+ readonly projectPath?: string;
11
+ /**
12
+ * Mirrors the live harness output to the terminal instead of only reporting the compact result.
13
+ */
14
+ readonly shouldPrintLiveOutput?: boolean;
15
+ };
16
+ /**
17
+ * Sends one tiny dummy prompt through the selected harness and model and measures the round trip.
18
+ *
19
+ * The ping reuses the very same runner the coding queue uses, so it really exercises the configured
20
+ * harness, model, thinking level and authentication — including the retry behavior on rate limits.
21
+ * Both temporary artifacts it creates are removed again, so the project is left as it was.
22
+ */
23
+ export declare function pingCoderHarness(options: PingCoderHarnessOptions): Promise<CoderPingResult>;
@@ -0,0 +1,5 @@
1
+ import type { CoderPingResult } from './CoderPingResult';
2
+ /**
3
+ * Prints the compact summary of one finished `ptbk coder ping`.
4
+ */
5
+ export declare function printCoderPingResult(result: CoderPingResult): void;
@@ -0,0 +1,43 @@
1
+ import { type CodexLoginMethod } from '../../../src/book-3.0/codexLoginMethod';
2
+ import type { ThinkingLevel } from '../../../src/cli/cli-commands/coder/ThinkingLevel';
3
+ import type { CoderRunStep, CoderRunStepKind } from '../common/CoderRunStep';
4
+ /**
5
+ * Everything one prompt status line says after its checklist marker.
6
+ */
7
+ export type BuildPromptStatusDetailsOptions = {
8
+ /**
9
+ * Steps of the prompt round which have already finished, each with its own price and duration.
10
+ */
11
+ readonly steps: ReadonlyArray<CoderRunStep>;
12
+ /**
13
+ * Step which has already started but has not finished yet, reported as `Implementation in progress`.
14
+ */
15
+ readonly inProgressStepKind?: CoderRunStepKind;
16
+ /**
17
+ * Harness which runs the prompt.
18
+ */
19
+ readonly runnerName: string | undefined;
20
+ /**
21
+ * Model the harness runs the prompt with.
22
+ */
23
+ readonly modelName: string | undefined;
24
+ /**
25
+ * How many coding attempts the prompt has taken so far.
26
+ */
27
+ readonly attemptCount: number;
28
+ /**
29
+ * Authentication method the harness reported, when it is already known.
30
+ */
31
+ readonly loginMethod?: CodexLoginMethod;
32
+ /**
33
+ * Reasoning effort the harness runs the prompt with.
34
+ */
35
+ readonly thinkingLevel?: ThinkingLevel;
36
+ };
37
+ /**
38
+ * Builds the shared body of a prompt status line, used by both the in-progress `[^]` and the done `[x]` status.
39
+ *
40
+ * Produces details such as
41
+ * ``by OpenAI Codex `gpt-5.6-luna` thinking `max` (ChatGPT account) - Implementation ~$0.2036 10 minutes``.
42
+ */
43
+ export declare function buildPromptStatusDetails(options: BuildPromptStatusDetailsOptions): string;
@@ -1,7 +1,8 @@
1
1
  import type { PromptFile } from './types/PromptFile';
2
2
  import type { PromptSelection } from './types/PromptSelection';
3
+ import type { PromptRunnerIdentity } from './isPromptCompatibleWithRunner';
3
4
  import type { PriorityFilter } from './priorityFilter';
4
5
  /**
5
6
  * Selects the next runnable prompt based on priority.
6
7
  */
7
- export declare function findNextTodoPrompt(files: PromptFile[], priorityFilter?: PriorityFilter): PromptSelection | undefined;
8
+ export declare function findNextTodoPrompt(files: PromptFile[], priorityFilter?: PriorityFilter, promptRunnerIdentity?: PromptRunnerIdentity): PromptSelection | undefined;
@@ -1,9 +1,12 @@
1
- import type { CoderRunStep } from '../common/CoderRunStep';
1
+ import type { CoderRunStep, CoderRunStepKind } from '../common/CoderRunStep';
2
2
  /**
3
- * Formats the per-step usage breakdown recorded for one finished prompt.
3
+ * Formats the per-step usage breakdown recorded for one prompt.
4
4
  *
5
5
  * Produces a `; `-separated summary such as
6
6
  * `Implementation $8.01 6 hours; Testing 1 hour; Fixing $3.14 2 hours` where each coding step carries its
7
7
  * price and duration and each verification step carries only its duration.
8
+ *
9
+ * @param steps - Steps which have already finished
10
+ * @param inProgressStepKind - Step which has started but has not finished yet, appended as `Testing in progress`
8
11
  */
9
- export declare function formatCoderRunSteps(steps: ReadonlyArray<CoderRunStep>): string;
12
+ export declare function formatCoderRunSteps(steps: ReadonlyArray<CoderRunStep>, inProgressStepKind?: CoderRunStepKind): string;
@@ -0,0 +1,27 @@
1
+ import type { PromptFile } from './types/PromptFile';
2
+ import type { PromptSection } from './types/PromptSection';
3
+ /**
4
+ * Names of the harness and model currently selected for a coder run.
5
+ */
6
+ export type PromptRunnerIdentity = {
7
+ /**
8
+ * Stable harness identifier, for example `github-copilot`.
9
+ */
10
+ readonly harnessName?: string;
11
+ /**
12
+ * Effective model identifier, for example `gpt-5.5`.
13
+ */
14
+ readonly modelName?: string;
15
+ };
16
+ /**
17
+ * Checks whether a prompt is unrestricted or matches the selected harness/model.
18
+ *
19
+ * A prompt status line can contain one or more backtick-delimited model or harness
20
+ * names. Matching is intentionally based on normalized substrings so a token such as
21
+ * `gpt` selects any `gpt-*` model and `opus` selects a `claude-opus-*` model.
22
+ */
23
+ export declare function isPromptCompatibleWithRunner(file: PromptFile, section: PromptSection, promptRunnerIdentity?: PromptRunnerIdentity): boolean;
24
+ /**
25
+ * Extracts model and harness tokens from a prompt status line.
26
+ */
27
+ export declare function extractPromptRunnerTokens(statusLine: string): string[];
@@ -0,0 +1,8 @@
1
+ import type { PromptSection } from './types/PromptSection';
2
+ /**
3
+ * Checks whether one prompt section still has open coding work.
4
+ *
5
+ * A `[ ]` prompt has not been started at all and a `[^]` prompt was left in the middle of its
6
+ * implementation, so a file containing either of them is not finished yet.
7
+ */
8
+ export declare function isPromptSectionUnfinished(section: PromptSection): boolean;
@@ -1,7 +1,8 @@
1
1
  import type { PromptFile } from './types/PromptFile';
2
2
  import type { PromptSelection } from './types/PromptSelection';
3
+ import { type PromptRunnerIdentity } from './isPromptCompatibleWithRunner';
3
4
  import type { PriorityFilter } from './priorityFilter';
4
5
  /**
5
6
  * Lists todo prompts that are ready to run (no authoring placeholders).
6
7
  */
7
- export declare function listRunnablePrompts(files: PromptFile[], priorityFilter?: PriorityFilter): PromptSelection[];
8
+ export declare function listRunnablePrompts(files: PromptFile[], priorityFilter?: PriorityFilter, promptRunnerIdentity?: PromptRunnerIdentity): PromptSelection[];
@@ -1,7 +1,8 @@
1
1
  import type { PromptFile } from './types/PromptFile';
2
2
  import type { UpcomingTask } from './types/UpcomingTask';
3
+ import type { PromptRunnerIdentity } from './isPromptCompatibleWithRunner';
3
4
  import type { PriorityFilter } from './priorityFilter';
4
5
  /**
5
6
  * Lists upcoming tasks that are ready to run (no authoring placeholders).
6
7
  */
7
- export declare function listUpcomingTasks(files: PromptFile[], priorityFilter?: PriorityFilter): UpcomingTask[];
8
+ export declare function listUpcomingTasks(files: PromptFile[], priorityFilter?: PriorityFilter, promptRunnerIdentity?: PromptRunnerIdentity): UpcomingTask[];
@@ -1,4 +1,4 @@
1
- import { type CodexLoginMethod } from '../../../src/book-3.0/codexLoginMethod';
1
+ import type { CodexLoginMethod } from '../../../src/book-3.0/codexLoginMethod';
2
2
  import type { ThinkingLevel } from '../../../src/cli/cli-commands/coder/ThinkingLevel';
3
3
  import type { CoderRunStep } from '../common/CoderRunStep';
4
4
  import type { PromptFile } from './types/PromptFile';
@@ -0,0 +1,27 @@
1
+ import { type BuildPromptStatusDetailsOptions } from './buildPromptStatusDetails';
2
+ import type { PromptFile } from './types/PromptFile';
3
+ import type { PromptSection } from './types/PromptSection';
4
+ /**
5
+ * Input for marking one prompt section as being implemented right now.
6
+ */
7
+ export type MarkPromptInProgressOptions = BuildPromptStatusDetailsOptions & {
8
+ /**
9
+ * Prompt file the marked section belongs to.
10
+ */
11
+ readonly file: PromptFile;
12
+ /**
13
+ * Section which is being implemented right now.
14
+ */
15
+ readonly section: PromptSection;
16
+ /**
17
+ * Step which has just started, always present because a prompt is only in progress while a step runs.
18
+ */
19
+ readonly inProgressStepKind: NonNullable<BuildPromptStatusDetailsOptions['inProgressStepKind']>;
20
+ };
21
+ /**
22
+ * Marks a prompt section as being implemented right now and records the steps finished so far.
23
+ *
24
+ * The `[^]` status is deliberately never reverted: when the coder is killed or crashes, the status stays
25
+ * in the prompt file as the signal that this task was left in the middle of its implementation.
26
+ */
27
+ export declare function markPromptInProgress(options: MarkPromptInProgressOptions): void;
@@ -0,0 +1,19 @@
1
+ import type { PromptFile } from './types/PromptFile';
2
+ import type { PromptSection } from './types/PromptSection';
3
+ /**
4
+ * Status line of one prompt section together with the index it lives on.
5
+ */
6
+ export type ResolvedPromptStatusLine = {
7
+ /**
8
+ * Index of the status line within `file.lines`.
9
+ */
10
+ readonly statusLineIndex: number;
11
+ /**
12
+ * Current content of the status line, including its indentation and checklist marker.
13
+ */
14
+ readonly line: string;
15
+ };
16
+ /**
17
+ * Resolves the status line of one prompt section so it can be rewritten.
18
+ */
19
+ export declare function resolvePromptStatusLine(file: PromptFile, section: PromptSection): ResolvedPromptStatusLine;
@@ -0,0 +1,9 @@
1
+ import type { PromptFile } from './types/PromptFile';
2
+ import type { PromptSection } from './types/PromptSection';
3
+ /**
4
+ * Rewrites the status line of one prompt section while preserving its indentation.
5
+ *
6
+ * Only a todo `[ ]` or an in-progress `[^]` status line is rewritten, so an already finalized
7
+ * `[x]`, `[!]` or `[-]` status is never overwritten by accident.
8
+ */
9
+ export declare function writePromptStatusLine(file: PromptFile, section: PromptSection, replacementStatusLine: string): void;
@@ -10,7 +10,7 @@ export type CoderServerBoardColumn = 'backlog' | 'low-priority' | 'todo' | 'in-p
10
10
  * UI tag attached to one prompt card.
11
11
  */
12
12
  export type CoderServerPromptTag = {
13
- readonly id: 'not-ready' | 'unwritten' | 'implementing' | 'verifying';
13
+ readonly id: 'not-ready' | 'unwritten' | 'left-in-progress' | 'implementing' | 'verifying';
14
14
  readonly label: string;
15
15
  };
16
16
  /**