@promptbook/markdown-utils 0.114.0-4 → 0.114.0-40

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 (324) hide show
  1. package/README.md +9 -9
  2. package/esm/index.es.js +1 -1
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +4 -0
  5. package/esm/src/_packages/types.index.d.ts +4 -0
  6. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  7. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  8. package/esm/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  9. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  10. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  11. package/esm/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  12. package/esm/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  13. package/esm/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  14. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  15. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  16. package/esm/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  17. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  18. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  19. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  20. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  21. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  22. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  23. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  24. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  25. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  26. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  27. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  28. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  29. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  30. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  31. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  32. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  33. package/esm/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  34. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  35. package/esm/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  36. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  37. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  38. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  39. package/esm/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  40. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  41. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  42. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  43. package/esm/src/cli/cli-commands/coder/agentCliOptions.d.ts +21 -0
  44. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  45. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  46. package/esm/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +33 -0
  47. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  48. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +4 -2
  49. package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  50. package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  51. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
  52. package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  53. package/esm/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  54. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +8 -5
  55. package/esm/src/cli/cli-commands/coder/list.d.ts +10 -0
  56. package/esm/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  57. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +19 -1
  58. package/esm/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  59. package/esm/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  60. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  61. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  62. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  63. package/esm/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  64. package/esm/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  65. package/esm/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +46 -0
  66. package/esm/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  67. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  68. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  69. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  70. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  71. package/esm/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  72. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  73. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  74. package/esm/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  75. package/esm/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  76. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  77. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  78. package/esm/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  79. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  80. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  81. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  82. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +4 -3
  83. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  84. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  85. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  86. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  87. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  88. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  89. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  90. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  91. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  92. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  93. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  94. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  95. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  96. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  97. package/esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  98. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  99. package/esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  100. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  101. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  102. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  103. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  104. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  105. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  106. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  107. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  108. package/esm/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  109. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  110. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  111. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  112. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  113. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  114. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  115. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  116. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  117. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  118. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  119. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  120. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  121. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  122. package/esm/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  123. package/esm/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  124. package/esm/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  125. package/esm/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +19 -0
  126. package/esm/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  127. package/esm/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  128. package/esm/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  129. package/esm/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  130. package/esm/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  131. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  132. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  133. package/esm/src/commitments/index.d.ts +1 -1
  134. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  135. package/esm/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  136. package/esm/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  137. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  138. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  139. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  140. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  141. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  142. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  143. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  144. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  145. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  146. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  147. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  148. package/esm/src/utils/files/findFilesByGlob.d.ts +28 -0
  149. package/esm/src/utils/misc/debounce.d.ts +4 -2
  150. package/esm/src/utils/misc/debounce.test.d.ts +1 -0
  151. package/esm/src/utils/misc/emojis.d.ts +3 -2
  152. package/esm/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  153. package/esm/src/version.d.ts +1 -1
  154. package/package.json +1 -4
  155. package/umd/index.umd.js +1 -1
  156. package/umd/index.umd.js.map +1 -1
  157. package/umd/src/_packages/components.index.d.ts +4 -0
  158. package/umd/src/_packages/types.index.d.ts +4 -0
  159. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  160. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  161. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  162. package/umd/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  163. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  164. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  165. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts +1 -0
  166. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  167. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  168. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts +1 -0
  169. package/umd/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  170. package/umd/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  171. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  172. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  173. package/umd/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  174. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  175. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  176. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  177. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  178. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  179. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  180. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  181. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  182. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  183. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  184. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  185. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  186. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  187. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  188. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  189. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  190. package/umd/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  191. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  192. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  193. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  194. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  195. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  196. package/umd/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  197. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  198. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  199. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  200. package/umd/src/cli/cli-commands/coder/agentCliOptions.d.ts +21 -0
  201. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  202. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  203. package/umd/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +33 -0
  204. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  205. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +4 -2
  206. package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  207. package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  208. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +1 -1
  209. package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  210. package/umd/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  211. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +8 -5
  212. package/umd/src/cli/cli-commands/coder/list.d.ts +10 -0
  213. package/umd/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  214. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +19 -1
  215. package/umd/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  216. package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  217. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  218. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  219. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  220. package/umd/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  221. package/umd/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  222. package/umd/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +46 -0
  223. package/umd/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  224. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  225. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  226. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  227. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  228. package/umd/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  229. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  230. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  231. package/umd/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  232. package/umd/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  233. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  234. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  235. package/umd/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  236. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  237. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  238. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  239. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +4 -3
  240. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  241. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  242. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  243. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  244. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  245. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  246. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  247. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  248. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  249. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  250. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  251. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  252. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  253. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  254. package/umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  255. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  256. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  257. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  258. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  259. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  260. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  261. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  262. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  263. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  264. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  265. package/umd/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  266. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  267. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  268. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  269. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  270. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  271. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  272. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  273. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  274. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  275. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  276. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  277. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  278. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  279. package/umd/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  280. package/umd/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  281. package/umd/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  282. package/umd/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +19 -0
  283. package/umd/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  284. package/umd/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  285. package/umd/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  286. package/umd/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  287. package/umd/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  288. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  289. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  290. package/umd/src/commitments/index.d.ts +1 -1
  291. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  292. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  293. package/umd/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  294. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  295. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  296. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  297. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  298. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  299. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  300. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  301. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  302. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  303. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  304. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  305. package/umd/src/utils/files/findFilesByGlob.d.ts +28 -0
  306. package/umd/src/utils/misc/debounce.d.ts +4 -2
  307. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  308. package/umd/src/utils/misc/emojis.d.ts +3 -2
  309. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  310. package/umd/src/version.d.ts +1 -1
  311. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  312. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  313. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  314. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  315. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  316. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  317. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  318. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  319. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  320. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  321. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  322. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts} +0 -0
  323. /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
  324. /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts} +0 -0
@@ -0,0 +1,66 @@
1
+ import type { NpmPackageInstallationLocation } from '../npm/buildNpmPackageInstallCommand';
2
+ /**
3
+ * Npm packages which directly provide the `ptbk` executable.
4
+ *
5
+ * `ptbk` is the preferred package and forwards to `@promptbook/cli`; the latter can also be installed directly.
6
+ *
7
+ * @private internal utility of `promptbookCli`
8
+ */
9
+ export declare const PROMPTBOOK_CLI_NPM_PACKAGE_NAMES: readonly ["ptbk", "@promptbook/cli"];
10
+ /**
11
+ * Npm package which directly provides the `ptbk` executable.
12
+ *
13
+ * @private internal utility of `promptbookCli`
14
+ */
15
+ export type PromptbookCliNpmPackageName = (typeof PROMPTBOOK_CLI_NPM_PACKAGE_NAMES)[number];
16
+ /**
17
+ * Place where one Promptbook CLI package is installed.
18
+ *
19
+ * @private internal utility of `promptbookCli`
20
+ */
21
+ export type PromptbookCliInstallationLocation = NpmPackageInstallationLocation;
22
+ /**
23
+ * Fields shared by local and global Promptbook CLI installations.
24
+ *
25
+ * @private internal utility of `PromptbookCliInstallation`
26
+ */
27
+ type PromptbookCliInstallationBase = {
28
+ /**
29
+ * Npm package that provides the CLI.
30
+ */
31
+ readonly npmPackageName: PromptbookCliNpmPackageName;
32
+ /**
33
+ * Version from the installed package's `package.json`.
34
+ */
35
+ readonly installedVersion: string;
36
+ };
37
+ /**
38
+ * One directly declared local Promptbook CLI installation.
39
+ *
40
+ * @private internal utility of `promptbookCli`
41
+ */
42
+ export type LocalPromptbookCliInstallation = PromptbookCliInstallationBase & {
43
+ /**
44
+ * Local manifest section containing the package.
45
+ */
46
+ readonly installationLocation: Exclude<PromptbookCliInstallationLocation, 'global'>;
47
+ /**
48
+ * Project directory containing the `package.json` which declares the package.
49
+ */
50
+ readonly projectPath: string;
51
+ };
52
+ /**
53
+ * One directly installed global Promptbook CLI package.
54
+ *
55
+ * @private internal utility of `promptbookCli`
56
+ */
57
+ export type GlobalPromptbookCliInstallation = PromptbookCliInstallationBase & {
58
+ readonly installationLocation: 'global';
59
+ };
60
+ /**
61
+ * One local or global Promptbook CLI package that can be updated.
62
+ *
63
+ * @private internal utility of `promptbookCli`
64
+ */
65
+ export type PromptbookCliInstallation = LocalPromptbookCliInstallation | GlobalPromptbookCliInstallation;
66
+ export {};
@@ -0,0 +1,26 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Result of comparing one installed Promptbook CLI package with the newest published version.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type PromptbookCliInstallationState = 'up-to-date' | 'outdated' | 'unknown';
8
+ /**
9
+ * Version status of one Promptbook CLI installation.
10
+ *
11
+ * @private internal utility of `promptbookCli`
12
+ */
13
+ export type PromptbookCliInstallationStatus = {
14
+ /**
15
+ * Installed CLI package being checked.
16
+ */
17
+ readonly installation: PromptbookCliInstallation;
18
+ /**
19
+ * Result of comparing the installed version with the newest published version.
20
+ */
21
+ readonly installationState: PromptbookCliInstallationState;
22
+ /**
23
+ * Newest published package version, or `null` when npm could not be reached.
24
+ */
25
+ readonly latestVersion: string | null;
26
+ };
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallation } from './PromptbookCliInstallation';
2
+ /**
3
+ * Builds the npm command that updates one existing Promptbook CLI installation.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function buildPromptbookCliInstallCommand(installation: PromptbookCliInstallation): string;
@@ -0,0 +1,7 @@
1
+ import type { PromptbookCliInstallationStatus } from './PromptbookCliInstallationStatus';
2
+ /**
3
+ * Formats the warning shown when one or more Promptbook CLI installations are outdated.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export declare function formatPromptbookCliInstallationWarning(statuses: ReadonlyArray<PromptbookCliInstallationStatus>): string;
@@ -0,0 +1,45 @@
1
+ import type { Command as Program } from 'commander';
2
+ /**
3
+ * Commander option bag for opting out of every interactive question.
4
+ *
5
+ * @private internal utility of `promptbookCli`
6
+ */
7
+ export type QuestionsCliOptions = {
8
+ readonly questions: boolean;
9
+ };
10
+ /**
11
+ * Normalized interactive-questions option shared by every `ptbk coder` command which can ask something.
12
+ *
13
+ * @private internal utility of `promptbookCli`
14
+ */
15
+ export type NormalizedQuestionsCliOptions = {
16
+ readonly isAskingQuestionsEnabled: boolean;
17
+ };
18
+ /**
19
+ * Description block shared by the `ptbk coder` commands which can ask interactive questions.
20
+ *
21
+ * @private internal utility of `promptbookCli`
22
+ */
23
+ export declare const QUESTIONS_DESCRIPTION: string;
24
+ /**
25
+ * Registers the shared `--no-questions` option on a `ptbk coder` command which can ask interactive questions.
26
+ *
27
+ * @private internal utility of `promptbookCli`
28
+ */
29
+ export declare function addQuestionsOption(command: Program): void;
30
+ /**
31
+ * Converts the Commander questions flag into the normalized interactive-questions option.
32
+ *
33
+ * @private internal utility of `promptbookCli`
34
+ */
35
+ export declare function normalizeQuestionsCliOptions(cliOptions: QuestionsCliOptions): NormalizedQuestionsCliOptions;
36
+ /**
37
+ * Asserts that a command which waits for a user confirmation before each prompt is allowed to ask for it.
38
+ *
39
+ * @throws {NotAllowed} when `--no-auto` is combined with `--no-questions`
40
+ * @private internal utility of `promptbookCli`
41
+ */
42
+ export declare function assertUserConfirmationIsAllowed(options: {
43
+ readonly isAskingQuestionsEnabled: boolean;
44
+ readonly isWaitingForUser: boolean;
45
+ }): void;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Locates a bundled agent in either the source checkout or the generated CLI package.
3
+ *
4
+ * @private internal utility of CLI agent initialization
5
+ */
6
+ export declare function resolveBundledAgentBookPath(relativeFilePath: string): Promise<string>;
@@ -0,0 +1,19 @@
1
+ import type { AgentReferenceResolver } from '../../../book-2.0/agent-source/AgentReferenceResolver';
2
+ import type { string_book } from '../../../book-2.0/agent-source/string_book';
3
+ /**
4
+ * Resolved source together with the profile resolver used when compiling TEAM commitments.
5
+ *
6
+ * @private internal type of CLI agent resolution
7
+ */
8
+ export type ResolvedLocalAgentSource = {
9
+ readonly agentSource: string_book;
10
+ readonly agentReferenceResolver: AgentReferenceResolver;
11
+ /** Newly created books which the coder may include in its initialization commit. */
12
+ readonly createdAgentBookPaths: ReadonlyArray<string>;
13
+ };
14
+ /**
15
+ * Applies the shared Agent Server inheritance rules to a repository's local and remote books.
16
+ *
17
+ * @private internal utility of CLI agent resolution
18
+ */
19
+ export declare function resolveLocalAgentSource(agentBookPath: string, currentWorkingDirectory: string): Promise<ResolvedLocalAgentSource>;
@@ -3,6 +3,9 @@ import type { $side_effect } from '../../utils/organization/$side_effect';
3
3
  /**
4
4
  * Marks one CLI command as deprecated while keeping it available for existing callers.
5
5
  *
6
+ * Deprecated commands are not advertised anymore - they are hidden from the list of commands in the help of their
7
+ * parent command, they warn when they are used and they explain the deprecation in their own help.
8
+ *
6
9
  * @private utility of CLI
7
10
  */
8
11
  export declare function $deprecateCliCommand(command: Command, deprecationMessage: string): $side_effect;
@@ -0,0 +1,11 @@
1
+ import type { Command } from 'commander';
2
+ import type { $side_effect } from '../../utils/organization/$side_effect';
3
+ /**
4
+ * Keeps one already registered CLI command out of the help of its parent command while the command itself stays
5
+ * fully usable - it can still be run, it still has its own help and it is still reachable through `ptbk help <command>`.
6
+ *
7
+ * Note: `$` is used to indicate that this function is not a pure function - it changes how the CLI renders its help
8
+ *
9
+ * @private utility of CLI
10
+ */
11
+ export declare function $hideCliCommandFromHelp(command: Command): $side_effect;
@@ -0,0 +1,18 @@
1
+ import type { Command } from 'commander';
2
+ import type { $side_effect } from '../../utils/organization/$side_effect';
3
+ /**
4
+ * Makes one CLI command which only groups subcommands ask for a subcommand instead of doing anything on its own.
5
+ *
6
+ * Note: `$` is used to indicate that this function is not a pure function - it registers an action in the CLI
7
+ *
8
+ * @private utility of CLI
9
+ */
10
+ export declare function $requireCliSubcommand(command: Command): $side_effect;
11
+ /**
12
+ * Asks for a subcommand of one CLI command, prints its help and exits the process.
13
+ *
14
+ * Note: `$` is used to indicate that this function is not a pure function - it writes to the console and exits the process
15
+ *
16
+ * @private utility of CLI
17
+ */
18
+ export declare function $reportMissingCliSubcommand(command: Command): never;
@@ -0,0 +1 @@
1
+ export {};
@@ -84,8 +84,23 @@ export declare class AgentCollectionInSupabase {
84
84
  private mapAgentBasicInformationRow;
85
85
  /**
86
86
  * Retrieves the permanent ID of an agent by its name or permanent ID.
87
+ *
88
+ * An agent that still exists always wins over a soft-deleted one, so a name that was deleted and
89
+ * later created again resolves to the agent that is live now instead of to the recycle-bin leftover.
90
+ * Soft-deleted agents stay resolvable as a fallback because the recycle bin restores them by name
91
+ * or permanent id.
87
92
  */
88
93
  getAgentPermanentId(agentNameOrPermanentId: string_agent_name | string_agent_permanent_id): Promise<string_agent_permanent_id>;
94
+ /**
95
+ * Looks up the permanent id of the oldest agent matching one name or permanent id.
96
+ *
97
+ * @param agentNameOrPermanentId - Agent name or stable permanent identifier to match.
98
+ * @param options - Whether soft-deleted agents may be matched as well.
99
+ * @returns Permanent id of the matched agent, or `null` when nothing matches.
100
+ *
101
+ * @private internal helper of `AgentCollectionInSupabase`
102
+ */
103
+ private findAgentPermanentId;
89
104
  /**
90
105
  * Retrieves the source code of an agent by its name or permanent ID.
91
106
  */
@@ -3,23 +3,30 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
3
3
  /**
4
4
  * `WRITING RULES` commitment definition.
5
5
  *
6
- * It adds constraints that apply strictly to writing style and presentation
7
- * rather than task-solving behavior.
6
+ * The `WRITING RULES`/`WRITING RULE` commitment adds constraints that apply strictly to writing style
7
+ * and presentation rather than task-solving behavior.
8
+ *
9
+ * Example usage in agent source:
10
+ *
11
+ * ```book
12
+ * WRITING RULES Keep every response under 120 words
13
+ * WRITING RULE Always end the message with an emoji
14
+ * ```
8
15
  *
9
16
  * @private [🪔] Maybe export the commitments through some package
10
17
  */
11
- export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES'> {
12
- constructor();
18
+ export declare class WritingRulesCommitmentDefinition extends BaseCommitmentDefinition<'WRITING RULES' | 'WRITING RULE'> {
19
+ constructor(type?: 'WRITING RULES' | 'WRITING RULE');
13
20
  /**
14
- * Short one-line description of `WRITING RULES`.
21
+ * Short one-line description of `WRITING RULES`/`WRITING RULE`.
15
22
  */
16
23
  get description(): string;
17
24
  /**
18
- * Icon for `WRITING RULES`.
25
+ * Icon for `WRITING RULES`/`WRITING RULE`.
19
26
  */
20
27
  get icon(): string;
21
28
  /**
22
- * Markdown documentation for `WRITING RULES`.
29
+ * Markdown documentation for `WRITING RULES`/`WRITING RULE` commitment.
23
30
  */
24
31
  get documentation(): string;
25
32
  applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
@@ -55,4 +55,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
55
55
  *
56
56
  * @private Use functions to access commitments instead of this array directly
57
57
  */
58
- export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDescriptionCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaFullnameCommitmentDefinition, MetaIdCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaThinkingMessageCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
58
+ export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDescriptionCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaFullnameCommitmentDefinition, MetaIdCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaThinkingMessageCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
@@ -1,7 +1,7 @@
1
1
  import type { string_executable_path } from '../../types/string_filename';
2
2
  import type { LocateAppOptions } from '../locateApp';
3
3
  /**
4
- * Attempts to locate the specified application on a Windows system by searching common installation directories.
4
+ * Attempts to locate the specified application on a Windows system by searching PATH and common installation directories.
5
5
  * Returns the path to the executable if found, or null otherwise.
6
6
  *
7
7
  * @private within the repository
@@ -17,7 +17,10 @@ export type VercelExecutionToolsOptions = CommonToolsOptions & Pick<LlmExecution
17
17
  */
18
18
  readonly availableModels: ReadonlyArray<AvailableModel>;
19
19
  /**
20
- * Additional settings for chat models when calling `vercelProvider.chat('model-name', settings)`
20
+ * Additional settings for chat models, for example `temperature` or `providerOptions`
21
+ *
22
+ * Note: Since Vercel AI SDK v5 these settings belong to the model call, not to
23
+ * `vercelProvider.chat('model-name')` which takes just the model name
21
24
  */
22
- readonly additionalChatSettings?: Partial<Parameters<VercelProvider['chat']>[1]>;
25
+ readonly additionalChatSettings?: Partial<Omit<Parameters<ReturnType<VercelProvider['chat']>['doGenerate']>[0], 'prompt'>>;
23
26
  };
@@ -0,0 +1,76 @@
1
+ /**
2
+ * One file an answered agent message created, edited or deleted inside one project.
3
+ *
4
+ * Note: [🚉] This is fully serializable as JSON
5
+ *
6
+ * @private internal type of the agent-message runtime
7
+ */
8
+ export type AgentMessageProjectChangedFile = {
9
+ /**
10
+ * Path of the file relative to the project root, using `/` separators.
11
+ */
12
+ readonly path: string;
13
+ /**
14
+ * Count of lines added to the file.
15
+ */
16
+ readonly insertionCount: number;
17
+ /**
18
+ * Count of lines removed from the file.
19
+ */
20
+ readonly deletionCount: number;
21
+ };
22
+ /**
23
+ * Everything answering one single message changed inside one agent project.
24
+ *
25
+ * Each agent project is a git repository and every answer which modifies it is committed there
26
+ * automatically, so this describes exactly one such commit — the trace of what one message really
27
+ * did to one project, which a chat can show below the answer that did it.
28
+ *
29
+ * Note: [🚉] This is fully serializable as JSON
30
+ *
31
+ * @private internal type of the agent-message runtime
32
+ */
33
+ export type AgentMessageProjectChange = {
34
+ /**
35
+ * Directory name of the changed project inside the agent `projects/` folder.
36
+ */
37
+ readonly projectName: string;
38
+ /**
39
+ * Full hash of the commit holding the changes of this message.
40
+ */
41
+ readonly commitHash: string;
42
+ /**
43
+ * ISO 8601 timestamp when the changes were committed.
44
+ */
45
+ readonly committedAt: string;
46
+ /**
47
+ * Files the message changed, ordered as git reports them.
48
+ */
49
+ readonly changedFiles: ReadonlyArray<AgentMessageProjectChangedFile>;
50
+ /**
51
+ * Count of lines added across all changed files.
52
+ */
53
+ readonly insertionCount: number;
54
+ /**
55
+ * Count of lines removed across all changed files.
56
+ */
57
+ readonly deletionCount: number;
58
+ /**
59
+ * Unified diff of the commit, shortened when the change is too large to carry into a chat.
60
+ */
61
+ readonly diff: string;
62
+ /**
63
+ * Whether `diff` holds only the beginning of the real diff.
64
+ */
65
+ readonly isDiffTruncated: boolean;
66
+ };
67
+ /**
68
+ * Validates one already-parsed JSON value as a project change.
69
+ *
70
+ * @param value - Raw serialized project change.
71
+ * @returns The typed project change, or `null` when the value does not match the expected shape,
72
+ * so consumers can silently skip foreign or malformed entries.
73
+ *
74
+ * @private internal utility of the agent-message runtime
75
+ */
76
+ export declare function normalizeAgentMessageProjectChange(value: unknown): AgentMessageProjectChange | null;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Category of one external source an answered agent message touched.
3
+ *
4
+ * - `integration` is a third-party service reached through an integration, for example Gmail.
5
+ * - `website` is a concrete web address the agent fetched or browsed.
6
+ * - `search` is a lookup the agent ran against a web search engine.
7
+ *
8
+ * @private internal type of the agent-message runtime
9
+ */
10
+ export type AgentMessageTouchedExternalSourceKind = 'integration' | 'website' | 'search';
11
+ /**
12
+ * One source outside the agent itself which answering a single message viewed or edited.
13
+ *
14
+ * Everything the agent does inside its own folder stays internal and is never described here;
15
+ * this records only the reach beyond it, so a chat can tell which outside services and websites
16
+ * one answer really involved.
17
+ *
18
+ * Note: [🚉] This is fully serializable as JSON
19
+ *
20
+ * @private internal type of the agent-message runtime
21
+ */
22
+ export type AgentMessageTouchedExternalSource = {
23
+ /**
24
+ * Category of the touched source.
25
+ */
26
+ readonly kind: AgentMessageTouchedExternalSourceKind;
27
+ /**
28
+ * User-facing name of the source, for example `Gmail`, `example.com` or the search query.
29
+ */
30
+ readonly name: string;
31
+ /**
32
+ * Address of the source, when the touch names a concrete one.
33
+ */
34
+ readonly url?: string;
35
+ };
36
+ /**
37
+ * Validates one already-parsed JSON value as a touched external source.
38
+ *
39
+ * @param value - Raw serialized source.
40
+ * @returns The typed source, or `null` when the value does not match the expected shape, so
41
+ * consumers can silently skip foreign or malformed entries.
42
+ *
43
+ * @private internal utility of the agent-message runtime
44
+ */
45
+ export declare function normalizeAgentMessageTouchedExternalSource(value: unknown): AgentMessageTouchedExternalSource | null;
@@ -0,0 +1,62 @@
1
+ /**
2
+ * One string-keyed payload of a coding-harness tool invocation.
3
+ *
4
+ * @private internal type of agent-message runtime logs
5
+ */
6
+ type RuntimeLogToolInput = Record<string, unknown>;
7
+ /**
8
+ * One content block of a Claude Code `stream-json` assistant event.
9
+ *
10
+ * @private internal type of agent-message runtime logs
11
+ */
12
+ export type AgentMessageRuntimeLogContentBlock = {
13
+ readonly type?: string;
14
+ readonly text?: string;
15
+ readonly name?: string;
16
+ readonly input?: RuntimeLogToolInput;
17
+ };
18
+ /**
19
+ * One file path touched by a Codex `file_change` item.
20
+ *
21
+ * @private internal type of agent-message runtime logs
22
+ */
23
+ export type AgentMessageRuntimeLogFileChange = {
24
+ readonly path?: string;
25
+ };
26
+ /**
27
+ * Minimal shape of one coding-harness runtime log event.
28
+ *
29
+ * The runtime log mixes two harness formats — Claude Code `stream-json` (`type`/`message`) and
30
+ * Codex JSONL (`type`/`item`) — so both are described by one permissive structure and every
31
+ * consumer reads only the fields it understands.
32
+ *
33
+ * @private internal type of agent-message runtime logs
34
+ */
35
+ export type AgentMessageRuntimeLogEvent = {
36
+ readonly type?: string;
37
+ readonly message?: {
38
+ readonly content?: ReadonlyArray<AgentMessageRuntimeLogContentBlock>;
39
+ };
40
+ readonly item?: {
41
+ readonly type?: string;
42
+ readonly command?: string;
43
+ readonly exit_code?: number | null;
44
+ readonly changes?: ReadonlyArray<AgentMessageRuntimeLogFileChange>;
45
+ readonly server?: string;
46
+ readonly tool?: string;
47
+ readonly query?: string;
48
+ };
49
+ };
50
+ /**
51
+ * Parses every structured event out of one coding-harness runtime log.
52
+ *
53
+ * The local agent runner streams the answering harness output into a live runtime log file, one
54
+ * JSON event per line, optionally prefixed by shell noise. Lines without a usable JSON object are
55
+ * skipped so a partially written or interleaved log never breaks its consumers.
56
+ *
57
+ * @param logText - Raw runtime log content.
58
+ * @returns Structured events in the order they were streamed.
59
+ * @private internal utility of the agent-message runtime
60
+ */
61
+ export declare function parseAgentMessageRuntimeLogEvents(logText: string | null | undefined): ReadonlyArray<AgentMessageRuntimeLogEvent>;
62
+ export {};
@@ -5,9 +5,9 @@
5
5
  * Claude Code `--output-format stream-json`) into a live runtime log file next to the queued
6
6
  * message. This helper extracts the most recent natural-language assistant narration so the
7
7
  * durable chat can show what the agent is doing right now instead of a generic thinking
8
- * placeholder. Only plain assistant text is surfaced; raw tool payloads, JSON envelopes and
9
- * other technical details are intentionally ignored, and harnesses that do not stream
10
- * structured text simply resolve to `null` so the caller keeps its existing behavior.
8
+ * placeholder. Only concrete, safe activity is surfaced; raw tool payloads, JSON envelopes,
9
+ * and private reasoning are intentionally ignored. When no concrete activity is known, this
10
+ * resolves to `null` so the caller keeps the browser's rotating generic thinking state.
11
11
  *
12
12
  * @param logText - Raw runtime log content.
13
13
  * @returns Latest human-readable activity snippet, or `null` when none can be resolved.
@@ -0,0 +1,18 @@
1
+ import type { AgentMessageTouchedExternalSource } from './AgentMessageTouchedExternalSource';
2
+ /**
3
+ * Resolves which sources outside the agent one coding harness touched while answering a single message.
4
+ *
5
+ * The runtime log streams what the harness really did, so a source counts as touched when the
6
+ * harness reached it in a tool invocation — calling an integration, fetching a web address,
7
+ * searching the web, or running a network client in the shell. Only tool payloads are inspected:
8
+ * tool results and assistant narration are ignored so a service merely mentioned in the
9
+ * conversation is never reported, and addresses of the machine the agent runs on are dropped
10
+ * because they are internal.
11
+ *
12
+ * @param options - Raw runtime log content of one answered message.
13
+ * @returns Touched external sources without duplicates, ordered by first appearance.
14
+ * @private internal utility of the agent-message runtime
15
+ */
16
+ export declare function resolveAgentMessageTouchedExternalSources(options: {
17
+ readonly logText: string | null | undefined;
18
+ }): ReadonlyArray<AgentMessageTouchedExternalSource>;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Resolves which projects one coding harness touched while answering a single message.
3
+ *
4
+ * The runtime log streams what the harness really did, so a project counts as touched when the
5
+ * harness named it in a tool invocation — reading, searching, running, or editing files inside
6
+ * `projects/<project-name>/`. Only tool payloads are inspected: tool results and assistant
7
+ * narration are ignored so a project merely mentioned in the conversation is never reported.
8
+ *
9
+ * Every candidate is matched against the projects that really exist, which both filters prompt
10
+ * placeholders such as `projects/<project-name>/` and keeps the reported names canonical.
11
+ *
12
+ * @param options - Raw runtime log content and the project directory names of the agent.
13
+ * @returns Touched project names in the canonical spelling, ordered by first appearance.
14
+ * @private internal utility of the agent-message runtime
15
+ */
16
+ export declare function resolveAgentMessageTouchedProjectNames(options: {
17
+ readonly logText: string | null | undefined;
18
+ readonly knownProjectNames: ReadonlyArray<string>;
19
+ }): ReadonlyArray<string>;
@@ -75,9 +75,12 @@ export type CreateTerminalAgentAvatarVisualOptions = {
75
75
  */
76
76
  readonly colorDepth?: AsciiArtColorDepth;
77
77
  /**
78
- * Platform-specific canvas factory used to rasterize the visual.
78
+ * Platform-specific canvas factory used to rasterize pixel-based visuals.
79
+ *
80
+ * Character-based visuals such as `AsciiOctopus` paint the terminal grid directly, so they
81
+ * render without any canvas; a pixel-based visual renders an empty frame when it is missing.
79
82
  */
80
- readonly createCanvas: CreateCanvasForAsciiArt;
83
+ readonly createCanvas?: CreateCanvasForAsciiArt;
81
84
  };
82
85
  /**
83
86
  * Resolves the built-in avatar visual selected for terminal rendering of one agent source.
@@ -62,6 +62,12 @@ export type ConvertImageDataToAsciiArtOptions = {
62
62
  */
63
63
  readonly alphaThreshold?: number;
64
64
  };
65
+ /**
66
+ * Default alpha channel value below which a cell is rendered as terminal background.
67
+ *
68
+ * @private within the repository
69
+ */
70
+ export declare const DEFAULT_ALPHA_THRESHOLD = 32;
65
71
  /**
66
72
  * Converts raw RGBA image pixels into colored ASCII art for ANSI terminals.
67
73
  *