@promptbook/types 0.114.0-5 → 0.114.0-50

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 (426) hide show
  1. package/README.md +50 -31
  2. package/esm/src/_packages/components.index.d.ts +4 -0
  3. package/esm/src/_packages/types.index.d.ts +4 -0
  4. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  5. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  6. package/esm/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  7. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  8. package/esm/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +2 -0
  9. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  10. package/esm/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  11. package/esm/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  12. package/esm/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  13. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  14. package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  15. package/esm/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  16. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  17. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  18. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  19. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  20. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  21. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  22. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  23. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  24. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  25. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  26. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  27. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  28. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  29. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  30. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  31. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  32. package/esm/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  33. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  34. package/esm/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  35. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  36. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  37. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  38. package/esm/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  39. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  40. package/esm/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  41. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  42. package/esm/src/cli/cli-commands/coder/add.d.ts +22 -1
  43. package/esm/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
  44. package/esm/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -0
  45. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  46. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  47. package/esm/src/cli/cli-commands/coder/coderAgentRole.d.ts +21 -0
  48. package/esm/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
  49. package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
  50. package/esm/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
  51. package/esm/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
  52. package/esm/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  53. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
  54. package/esm/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
  55. package/esm/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
  56. package/esm/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  57. package/esm/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  58. package/esm/src/cli/cli-commands/coder/findLegacyCoderCheckCallers.d.ts +5 -0
  59. package/esm/src/cli/cli-commands/coder/fix.d.ts +7 -0
  60. package/esm/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
  61. package/esm/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
  62. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
  63. package/esm/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
  64. package/esm/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  65. package/esm/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  66. package/esm/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +18 -6
  67. package/esm/src/cli/cli-commands/coder/list.d.ts +10 -0
  68. package/esm/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  69. package/esm/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +21 -1
  70. package/esm/src/cli/cli-commands/coder/plan.d.ts +7 -0
  71. package/esm/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
  72. package/esm/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
  73. package/esm/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
  74. package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
  75. package/esm/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
  76. package/esm/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
  77. package/esm/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
  78. package/esm/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
  79. package/esm/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
  80. package/esm/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
  81. package/esm/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
  82. package/esm/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
  83. package/esm/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
  84. package/esm/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
  85. package/esm/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
  86. package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
  87. package/esm/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
  88. package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
  89. package/esm/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
  90. package/esm/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
  91. package/esm/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
  92. package/esm/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  93. package/esm/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
  94. package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
  95. package/esm/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
  96. package/esm/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
  97. package/esm/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  98. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  99. package/esm/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
  100. package/esm/src/cli/cli-commands/coder.d.ts +3 -0
  101. package/esm/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  102. package/esm/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  103. package/esm/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +48 -0
  104. package/esm/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
  105. package/esm/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
  106. package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
  107. package/esm/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  108. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  109. package/esm/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  110. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  111. package/esm/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  112. package/esm/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  113. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  114. package/esm/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  115. package/esm/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  116. package/esm/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  117. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  118. package/esm/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  119. package/esm/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  120. package/esm/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
  121. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  122. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  123. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  124. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +6 -3
  125. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  126. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  127. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  128. package/esm/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
  129. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  130. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  131. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  132. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  133. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  134. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  135. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  136. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  137. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  138. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  139. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  140. package/esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  141. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  142. package/esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  143. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  144. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  145. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  146. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  147. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  148. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  149. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  150. package/esm/src/cli/cli-commands/common/projectCliOptions.d.ts +30 -0
  151. package/esm/src/cli/cli-commands/common/projectCliOptions.test.d.ts +1 -0
  152. package/esm/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  153. package/esm/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  154. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  155. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  156. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  157. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  158. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  159. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  160. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  161. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  162. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  163. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  164. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  165. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  166. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  167. package/esm/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  168. package/esm/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  169. package/esm/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  170. package/esm/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +26 -0
  171. package/esm/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
  172. package/esm/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
  173. package/esm/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
  174. package/esm/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -0
  175. package/esm/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  176. package/esm/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  177. package/esm/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  178. package/esm/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  179. package/esm/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  180. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  181. package/esm/src/commitments/TEAM/TEAM.test.d.ts +1 -0
  182. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  183. package/esm/src/commitments/index.d.ts +1 -1
  184. package/esm/src/conversion/archive/loadJsZipModule.d.ts +10 -0
  185. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  186. package/esm/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  187. package/esm/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  188. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  189. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  190. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  191. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  192. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  193. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  194. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  195. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  196. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  197. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  198. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  199. package/esm/src/utils/files/findFilesByGlob.d.ts +28 -0
  200. package/esm/src/utils/misc/debounce.d.ts +4 -2
  201. package/esm/src/utils/misc/debounce.test.d.ts +1 -0
  202. package/esm/src/utils/misc/emojis.d.ts +3 -2
  203. package/esm/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  204. package/esm/src/version.d.ts +1 -1
  205. package/package.json +2 -5
  206. package/umd/src/_packages/components.index.d.ts +4 -0
  207. package/umd/src/_packages/types.index.d.ts +4 -0
  208. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  209. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  210. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  211. package/umd/src/book-2.0/agent-source/AgentReferenceResolutionIssue.d.ts +45 -0
  212. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  213. package/umd/src/book-2.0/agent-source/CreateAgentModelRequirementsOptions.d.ts +2 -0
  214. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  215. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts +1 -0
  216. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  217. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.d.ts +14 -0
  218. package/umd/src/book-2.0/agent-source/deduplicateSystemMessage.test.d.ts +1 -0
  219. package/umd/src/book-2.0/agent-source/explicitFromCommitment.d.ts +62 -0
  220. package/umd/src/book-2.0/agent-source/extractAgentReferenceTokens.d.ts +32 -0
  221. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  222. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  223. package/umd/src/book-2.0/agent-source/resolveInheritedAgentSource.d.ts +73 -0
  224. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +1 -1
  225. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  226. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  227. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  228. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  229. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  230. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  231. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  232. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  233. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  234. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  235. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  236. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  237. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  238. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  239. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  240. package/umd/src/book-components/Chat/MockedChat/MockedChat.test.d.ts +2 -0
  241. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  242. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  243. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  244. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  245. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  246. package/umd/src/cli/$initializePromptbookCliProgram.d.ts +8 -0
  247. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.d.ts +10 -0
  248. package/umd/src/cli/cli-commands/coder/$ensureCoderHarnessGitignoreRules.test.d.ts +1 -0
  249. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  250. package/umd/src/cli/cli-commands/coder/add.d.ts +22 -1
  251. package/umd/src/cli/cli-commands/coder/agentCliOptions.d.ts +27 -0
  252. package/umd/src/cli/cli-commands/coder/augmentCoderAgentTeam.d.ts +7 -0
  253. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +1 -1
  254. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +8 -21
  255. package/umd/src/cli/cli-commands/coder/coderAgentRole.d.ts +21 -0
  256. package/umd/src/cli/cli-commands/coder/coderReferencedArtifacts.d.ts +34 -0
  257. package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.d.ts +8 -0
  258. package/umd/src/cli/cli-commands/coder/ensureCoderDefaultAgentFiles.test.d.ts +1 -0
  259. package/umd/src/cli/cli-commands/coder/ensureCoderGitattributesFile.d.ts +13 -0
  260. package/umd/src/cli/cli-commands/coder/ensureCoderGitignoreFile.d.ts +14 -1
  261. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.d.ts +5 -2
  262. package/umd/src/cli/cli-commands/coder/ensureCoderPackageJsonFile.test.d.ts +1 -0
  263. package/umd/src/cli/cli-commands/coder/ensureCoderRoleAgentFile.d.ts +12 -0
  264. package/umd/src/cli/cli-commands/coder/ensureCoderVscodeSettingsFile.d.ts +2 -0
  265. package/umd/src/cli/cli-commands/coder/ensureDirectory.d.ts +6 -0
  266. package/umd/src/cli/cli-commands/coder/findLegacyCoderCheckCallers.d.ts +5 -0
  267. package/umd/src/cli/cli-commands/coder/fix.d.ts +7 -0
  268. package/umd/src/cli/cli-commands/coder/fix.test.d.ts +1 -0
  269. package/umd/src/cli/cli-commands/coder/fixWorkflow.test.d.ts +1 -0
  270. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +2 -2
  271. package/umd/src/cli/cli-commands/coder/getCoderInitializationCommitPaths.d.ts +9 -0
  272. package/umd/src/cli/cli-commands/coder/getDefaultCoderPackageJsonScripts.d.ts +6 -0
  273. package/umd/src/cli/cli-commands/coder/init.test.d.ts +1 -0
  274. package/umd/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.d.ts +18 -6
  275. package/umd/src/cli/cli-commands/coder/list.d.ts +10 -0
  276. package/umd/src/cli/cli-commands/coder/list.test.d.ts +1 -0
  277. package/umd/src/cli/cli-commands/coder/mergeStringRecordJsonFile.d.ts +21 -1
  278. package/umd/src/cli/cli-commands/coder/plan.d.ts +7 -0
  279. package/umd/src/cli/cli-commands/coder/planning/assertPlanningCommitSafe.d.ts +6 -0
  280. package/umd/src/cli/cli-commands/coder/planning/assertPlanningPrdCommitScope.d.ts +7 -0
  281. package/umd/src/cli/cli-commands/coder/planning/assertPlanningRuntimePath.d.ts +6 -0
  282. package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.d.ts +8 -0
  283. package/umd/src/cli/cli-commands/coder/planning/createPlanningTerminal.test.d.ts +1 -0
  284. package/umd/src/cli/cli-commands/coder/planning/createPlanningWorkspace.d.ts +11 -0
  285. package/umd/src/cli/cli-commands/coder/planning/discussPlanningTurn.d.ts +15 -0
  286. package/umd/src/cli/cli-commands/coder/planning/fixtures/snapshotPlanningProject.d.ts +5 -0
  287. package/umd/src/cli/cli-commands/coder/planning/planningGitSync.test.d.ts +1 -0
  288. package/umd/src/cli/cli-commands/coder/planning/planningPackagedCli.test.d.ts +1 -0
  289. package/umd/src/cli/cli-commands/coder/planning/planningProtocol.d.ts +152 -0
  290. package/umd/src/cli/cli-commands/coder/planning/planningTeam.test.d.ts +1 -0
  291. package/umd/src/cli/cli-commands/coder/planning/preparePlanningChanges.d.ts +16 -0
  292. package/umd/src/cli/cli-commands/coder/planning/readPlanningContext.d.ts +6 -0
  293. package/umd/src/cli/cli-commands/coder/planning/resolvePlanningPath.d.ts +7 -0
  294. package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.d.ts +30 -0
  295. package/umd/src/cli/cli-commands/coder/planning/runPlanningHarness.test.d.ts +1 -0
  296. package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.d.ts +24 -0
  297. package/umd/src/cli/cli-commands/coder/planning/runPlanningSession.test.d.ts +1 -0
  298. package/umd/src/cli/cli-commands/coder/planning/savePlanningChanges.d.ts +7 -0
  299. package/umd/src/cli/cli-commands/coder/prepareCoderPackageJsonScripts.d.ts +12 -0
  300. package/umd/src/cli/cli-commands/coder/printCoderRunFailure.d.ts +6 -0
  301. package/umd/src/cli/cli-commands/coder/printInitializationSummary.d.ts +2 -1
  302. package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.d.ts +13 -0
  303. package/umd/src/cli/cli-commands/coder/promptsReadmeTemplate.test.d.ts +1 -0
  304. package/umd/src/cli/cli-commands/coder/readCoderAgentBook.d.ts +8 -0
  305. package/umd/src/cli/cli-commands/coder/server.test.d.ts +1 -0
  306. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  307. package/umd/src/cli/cli-commands/coder/workspacePreflight.test.d.ts +1 -0
  308. package/umd/src/cli/cli-commands/coder.d.ts +3 -0
  309. package/umd/src/cli/cli-commands/common/$askForConfirmation.d.ts +11 -0
  310. package/umd/src/cli/cli-commands/common/$askForConfirmation.test.d.ts +1 -0
  311. package/umd/src/cli/cli-commands/common/LocalAgentBookCollection.d.ts +48 -0
  312. package/umd/src/cli/cli-commands/common/coderCheckCliOptions.d.ts +21 -0
  313. package/umd/src/cli/cli-commands/common/coderCheckCliOptions.test.d.ts +1 -0
  314. package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +1 -1
  315. package/umd/src/cli/cli-commands/common/createLocalAgentReferenceResolver.d.ts +8 -0
  316. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.d.ts +12 -0
  317. package/umd/src/cli/cli-commands/common/disk-space/$assertSufficientFreeDiskSpace.test.d.ts +1 -0
  318. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.d.ts +11 -0
  319. package/umd/src/cli/cli-commands/common/disk-space/$readFreeDiskSpaceStatus.test.d.ts +1 -0
  320. package/umd/src/cli/cli-commands/common/disk-space/FreeDiskSpaceStatus.d.ts +33 -0
  321. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.d.ts +6 -0
  322. package/umd/src/cli/cli-commands/common/disk-space/formatFreeDiskSpaceBytes.test.d.ts +1 -0
  323. package/umd/src/cli/cli-commands/common/disk-space/formatLowFreeDiskSpaceWarning.d.ts +10 -0
  324. package/umd/src/cli/cli-commands/common/disk-space/freeDiskSpaceConstants.d.ts +28 -0
  325. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.d.ts +7 -0
  326. package/umd/src/cli/cli-commands/common/disk-space/resolveFreeDiskSpaceLevel.test.d.ts +1 -0
  327. package/umd/src/cli/cli-commands/common/ensureAdamAgentBook.d.ts +12 -0
  328. package/umd/src/cli/cli-commands/common/ensureProjectTextFile.d.ts +7 -0
  329. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +3 -2
  330. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  331. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  332. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +6 -3
  333. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  334. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  335. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  336. package/umd/src/cli/cli-commands/common/harness/HARNESS_DEFAULT_MODELS.d.ts +25 -0
  337. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +62 -0
  338. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  339. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  340. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  341. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  342. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  343. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  344. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  345. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  346. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  347. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  348. package/umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts +11 -0
  349. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  350. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  351. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  352. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  353. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  354. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  355. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  356. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  357. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  358. package/umd/src/cli/cli-commands/common/projectCliOptions.d.ts +30 -0
  359. package/umd/src/cli/cli-commands/common/projectCliOptions.test.d.ts +1 -0
  360. package/umd/src/cli/cli-commands/common/projectInitialization.d.ts +6 -0
  361. package/umd/src/cli/cli-commands/common/promptPriorityCliOptions.d.ts +7 -0
  362. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  363. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  364. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  365. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +15 -0
  366. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  367. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  368. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  369. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  370. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  371. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  372. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  373. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  374. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  375. package/umd/src/cli/cli-commands/common/questionsCliOptions.d.ts +45 -0
  376. package/umd/src/cli/cli-commands/common/questionsCliOptions.test.d.ts +1 -0
  377. package/umd/src/cli/cli-commands/common/resolveBundledAgentBookPath.d.ts +6 -0
  378. package/umd/src/cli/cli-commands/common/resolveLocalAgentSource.d.ts +26 -0
  379. package/umd/src/cli/cli-commands/common/validateCoderRunOptions.d.ts +6 -0
  380. package/umd/src/cli/cli-commands/common/workspaceRepository.d.ts +48 -0
  381. package/umd/src/cli/cli-commands/common/workspaceRepository.test.d.ts +1 -0
  382. package/umd/src/cli/cli-commands/common/workspaceRepositoryCliOptions.d.ts +11 -0
  383. package/umd/src/cli/common/$deprecateCliCommand.d.ts +3 -0
  384. package/umd/src/cli/common/$hideCliCommandFromHelp.d.ts +11 -0
  385. package/umd/src/cli/common/$hideCliCommandFromHelp.test.d.ts +1 -0
  386. package/umd/src/cli/common/$requireCliSubcommand.d.ts +18 -0
  387. package/umd/src/cli/common/$requireCliSubcommand.test.d.ts +1 -0
  388. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  389. package/umd/src/commitments/TEAM/TEAM.test.d.ts +1 -0
  390. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  391. package/umd/src/commitments/index.d.ts +1 -1
  392. package/umd/src/conversion/archive/loadJsZipModule.d.ts +10 -0
  393. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  394. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  395. package/umd/src/llm-providers/vercel/VercelExecutionToolsOptions.d.ts +5 -2
  396. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  397. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  398. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  399. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  400. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  401. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  402. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  403. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  404. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  405. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  406. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  407. package/umd/src/utils/files/findFilesByGlob.d.ts +28 -0
  408. package/umd/src/utils/misc/debounce.d.ts +4 -2
  409. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  410. package/umd/src/utils/misc/emojis.d.ts +3 -2
  411. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  412. package/umd/src/version.d.ts +1 -1
  413. package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  414. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  415. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  416. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  417. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  418. package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +0 -13
  419. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +0 -9
  420. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  421. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  422. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  423. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  424. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.deduplication.test.d.ts} +0 -0
  425. /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
  426. /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
@@ -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
  *
@@ -0,0 +1,46 @@
1
+ import type { AsciiArtColorDepth } from './convertImageDataToAsciiArt';
2
+ /**
3
+ * ANSI escape sequence that resets all colors and attributes.
4
+ *
5
+ * @private within the repository
6
+ */
7
+ export declare const ANSI_RESET = "\u001B[0m";
8
+ /**
9
+ * One opaque 24-bit color which should be written into an ANSI escape sequence.
10
+ *
11
+ * @private within the repository
12
+ */
13
+ export type AnsiRgbColor = {
14
+ /**
15
+ * Red channel in the range `[0, 255]`.
16
+ */
17
+ readonly red: number;
18
+ /**
19
+ * Green channel in the range `[0, 255]`.
20
+ */
21
+ readonly green: number;
22
+ /**
23
+ * Blue channel in the range `[0, 255]`.
24
+ */
25
+ readonly blue: number;
26
+ };
27
+ /**
28
+ * Creates the ANSI escape code that sets the foreground color of following characters.
29
+ *
30
+ * @param color Color painted onto the characters.
31
+ * @param colorDepth Color depth supported by the target terminal.
32
+ * @returns ANSI escape sequence.
33
+ *
34
+ * @private within the repository
35
+ */
36
+ export declare function createAnsiForegroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;
37
+ /**
38
+ * Creates the ANSI escape code that sets the background color of following characters.
39
+ *
40
+ * @param color Color painted behind the characters.
41
+ * @param colorDepth Color depth supported by the target terminal.
42
+ * @returns ANSI escape sequence.
43
+ *
44
+ * @private within the repository
45
+ */
46
+ export declare function createAnsiBackgroundColorCode(color: AnsiRgbColor, colorDepth: AsciiArtColorDepth): string;
@@ -0,0 +1,28 @@
1
+ import { type GlobOptionsWithFileTypesUnset } from 'glob';
2
+ import type { string_filename } from '../../types/string_filename';
3
+ /**
4
+ * Options of `findFilesByGlob`
5
+ *
6
+ * Note: These are the options of `glob` itself, only `ignore` also accepts a readonly array
7
+ * @see https://www.npmjs.com/package/glob#options
8
+ *
9
+ * @private internal type of `findFilesByGlob`
10
+ */
11
+ export type FindFilesByGlobOptions = Omit<GlobOptionsWithFileTypesUnset, 'ignore'> & {
12
+ /**
13
+ * Glob patterns which are excluded from the result
14
+ */
15
+ readonly ignore?: string | ReadonlyArray<string>;
16
+ };
17
+ /**
18
+ * Finds all filenames matching a glob pattern
19
+ *
20
+ * Note: This is the single place where `glob` is used, so that every caller gets the same shape of results
21
+ * on every operating system - POSIX separators and a stable order - which `glob` itself does not guarantee
22
+ *
23
+ * @param pattern Glob pattern to match, for example `./src/**\/*.ts`
24
+ * @param options Options passed to `glob`
25
+ * @returns Matching filenames with `/` separators, sorted alphabetically
26
+ * @private within the repository
27
+ */
28
+ export declare function findFilesByGlob(pattern: string, options?: FindFilesByGlobOptions): Promise<Array<string_filename>>;
@@ -1,7 +1,9 @@
1
1
  import type { TODO_any } from '../organization/TODO_any';
2
2
  /**
3
- * Handles debounce.
3
+ * Creates a debounced function that runs after calls have been quiet for the given delay.
4
4
  *
5
5
  * @public exported from `@promptbook/utils`
6
6
  */
7
- export declare function debounce<T extends (...args: TODO_any[]) => void>(fn: T, delay: number): (...args: Parameters<T>) => void;
7
+ export declare function debounce<T extends (...args: TODO_any[]) => void>(fn: T, delay: number): ((...args: Parameters<T>) => void) & {
8
+ cancel: () => void;
9
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -10,9 +10,10 @@ import type { string_char_emoji } from '../../types/typeAliasEmoji';
10
10
  */
11
11
  export declare const EMOJIS_IN_CATEGORIES: Record<string, ReadonlyArray<string_char_emoji>>;
12
12
  /**
13
- * All possible emoji chars like "🍆", "🍡", "🍤"...
13
+ * Curated repository catalogue of emoji and legacy pictographic symbols.
14
14
  *
15
- * @deprecated Use /\p{Extended_Pictographic}/ instead
15
+ * Code that needs to generate a valid Unicode emoji should apply its own validation
16
+ * to this catalogue rather than assume every entry is an emoji.
16
17
  *
17
18
  * @private within the repository
18
19
  */
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
15
15
  export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
16
16
  /**
17
17
  * Represents the version string of the Promptbook engine.
18
- * It follows semantic versioning (e.g., `0.114.0-4`).
18
+ * It follows semantic versioning (e.g., `0.114.0-49`).
19
19
  *
20
20
  * @generated
21
21
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@promptbook/types",
3
- "version": "0.114.0-5",
3
+ "version": "0.114.0-50",
4
4
  "description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
5
5
  "private": false,
6
6
  "sideEffects": false,
@@ -90,12 +90,9 @@
90
90
  "node": ">=18.18.0",
91
91
  "npm": ">=8.0.0"
92
92
  },
93
- "overrides": {
94
- "zod": "$zod"
95
- },
96
93
  "types": "./esm/src/_packages/types.index.d.ts",
97
94
  "typings": "./esm/src/_packages/types.index.d.ts",
98
95
  "peerDependencies": {
99
- "@promptbook/core": "0.114.0-5"
96
+ "@promptbook/core": "0.114.0-50"
100
97
  }
101
98
  }
@@ -70,8 +70,10 @@ import type { CitationLabelResolver } from '../book-components/Chat/types/Citati
70
70
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
71
71
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
72
72
  import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
73
+ import type { MarkdownInlineReferenceIcon } from '../book-components/Chat/utils/renderMarkdown';
73
74
  import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
74
75
  import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
76
+ import type { MarkdownInlineReferenceMenuAction } from '../book-components/Chat/utils/renderMarkdown';
75
77
  import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
76
78
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
77
79
  import { MicIcon } from '../book-components/icons/MicIcon';
@@ -159,8 +161,10 @@ export type { CitationLabelResolver };
159
161
  export type { MessageButton };
160
162
  export { parseMessageButtons };
161
163
  export type { MarkdownInlineReference };
164
+ export type { MarkdownInlineReferenceIcon };
162
165
  export type { MarkdownInlineReferenceMenuStatus };
163
166
  export type { MarkdownInlineReferenceMenuOption };
167
+ export type { MarkdownInlineReferenceMenuAction };
164
168
  export type { MarkdownInlineReferenceMenu };
165
169
  export { ArrowIcon };
166
170
  export { MicIcon };
@@ -62,8 +62,10 @@ import type { CitationLabelResolver } from '../book-components/Chat/types/Citati
62
62
  import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
63
63
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
64
64
  import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
65
+ import type { MarkdownInlineReferenceIcon } from '../book-components/Chat/utils/renderMarkdown';
65
66
  import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
66
67
  import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
68
+ import type { MarkdownInlineReferenceMenuAction } from '../book-components/Chat/utils/renderMarkdown';
67
69
  import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
68
70
  import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing/TeamToolResult';
69
71
  import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
@@ -511,8 +513,10 @@ export type { CitationLabelResolver };
511
513
  export type { ParsedCitation };
512
514
  export type { MessageButton };
513
515
  export type { MarkdownInlineReference };
516
+ export type { MarkdownInlineReferenceIcon };
514
517
  export type { MarkdownInlineReferenceMenuStatus };
515
518
  export type { MarkdownInlineReferenceMenuOption };
519
+ export type { MarkdownInlineReferenceMenuAction };
516
520
  export type { MarkdownInlineReferenceMenu };
517
521
  export type { TeamToolResult };
518
522
  export type { QrCodeOptions };
@@ -0,0 +1,80 @@
1
+ import type { AsciiArtColorDepth } from '../utils/ascii-art/convertImageDataToAsciiArt';
2
+ import type { ResolvedAvatarRenderDefinition } from './renderAvatarVisual';
3
+ import type { AvatarDefinition } from './types/AvatarDefinition';
4
+ import type { AvatarSurfaceStyle, AvatarVisualId, AvatarVisualTerminalTextGrid } from './types/AvatarVisualDefinition';
5
+ /**
6
+ * Options shared by the terminal-text avatar renderers.
7
+ *
8
+ * @private within the repository
9
+ */
10
+ export type RenderAvatarVisualTerminalTextOptions = {
11
+ /**
12
+ * Stable visual identity of the rendered agent avatar.
13
+ */
14
+ readonly avatarDefinition: AvatarDefinition;
15
+ /**
16
+ * Built-in avatar visual to render, the same one used on the website.
17
+ */
18
+ readonly visualId: AvatarVisualId;
19
+ /**
20
+ * Surface used to derive the avatar palette.
21
+ *
22
+ * @default 'framed'
23
+ */
24
+ readonly surface?: AvatarSurfaceStyle;
25
+ /**
26
+ * Output width in terminal character cells.
27
+ */
28
+ readonly columns: number;
29
+ /**
30
+ * Output height in terminal character cells.
31
+ */
32
+ readonly rows: number;
33
+ /**
34
+ * Animation timestamp for animated visuals.
35
+ */
36
+ readonly timeMs: number;
37
+ /**
38
+ * Optional stable render data reused across frames.
39
+ */
40
+ readonly resolvedAvatarRenderDefinition?: ResolvedAvatarRenderDefinition;
41
+ };
42
+ /**
43
+ * Options for `renderAvatarVisualTerminalTextLines`.
44
+ *
45
+ * @private within the repository
46
+ */
47
+ export type RenderAvatarVisualTerminalTextLinesOptions = RenderAvatarVisualTerminalTextOptions & {
48
+ /**
49
+ * Color depth of the emitted ANSI escape codes.
50
+ *
51
+ * @default 'TRUE_COLOR'
52
+ */
53
+ readonly colorDepth?: AsciiArtColorDepth;
54
+ };
55
+ /**
56
+ * Renders one frame of a character-based avatar visual straight into terminal character cells.
57
+ *
58
+ * Visuals which are themselves made of characters, for example `AsciiOctopus`, lose their identity
59
+ * when they are rasterized onto a canvas and converted back into half-block ASCII art - every glyph
60
+ * is averaged away into a colored blob. Such visuals expose `renderTerminalText`, which paints the
61
+ * terminal grid directly and is used instead of the raster pipeline.
62
+ *
63
+ * The square avatar is centered inside the requested grid the same way `renderAvatarVisualAsciiArt`
64
+ * centers the avatar canvas inside a wider terminal frame.
65
+ *
66
+ * @param options Avatar identity, visual selection, and output grid size.
67
+ * @returns Grid of `rows` rows of `columns` cells, or `null` when the visual has no terminal renderer.
68
+ *
69
+ * @private within the repository
70
+ */
71
+ export declare function renderAvatarVisualTerminalTextGrid(options: RenderAvatarVisualTerminalTextOptions): AvatarVisualTerminalTextGrid | null;
72
+ /**
73
+ * Renders one frame of a character-based avatar visual into ANSI-colored terminal lines.
74
+ *
75
+ * @param options Avatar identity, visual selection, output grid size, and ANSI color depth.
76
+ * @returns One ANSI-colored string per output row, or `null` when the visual has no terminal renderer.
77
+ *
78
+ * @private within the repository
79
+ */
80
+ export declare function renderAvatarVisualTerminalTextLines(options: RenderAvatarVisualTerminalTextLinesOptions): ReadonlyArray<string> | null;
@@ -72,6 +72,52 @@ export type AvatarVisualRenderContext = {
72
72
  * @private shared contract for the avatar rendering system
73
73
  */
74
74
  export type AvatarVisual = (context: AvatarVisualRenderContext) => void;
75
+ /**
76
+ * One painted character cell of a terminal-text avatar frame.
77
+ *
78
+ * @private shared contract for the avatar rendering system
79
+ */
80
+ export type AvatarVisualTerminalTextCell = {
81
+ /**
82
+ * Single character painted in the cell.
83
+ */
84
+ readonly character: string;
85
+ /**
86
+ * Color of the character as a CSS color string, optionally with an alpha channel.
87
+ */
88
+ readonly color: string_color;
89
+ };
90
+ /**
91
+ * One rendered terminal-text avatar frame as a grid of character cells.
92
+ *
93
+ * Rows are ordered top to bottom, cells left to right, and `null` leaves the terminal background visible.
94
+ *
95
+ * @private shared contract for the avatar rendering system
96
+ */
97
+ export type AvatarVisualTerminalTextGrid = ReadonlyArray<ReadonlyArray<AvatarVisualTerminalTextCell | null>>;
98
+ /**
99
+ * Rendering context forwarded to a terminal-text avatar visual.
100
+ *
101
+ * Unlike `AvatarVisualRenderContext` this carries no canvas, because the visual paints
102
+ * character cells of a fixed terminal grid instead of pixels.
103
+ *
104
+ * @private shared contract for the avatar rendering system
105
+ */
106
+ export type AvatarVisualTerminalTextRenderContext = {
107
+ readonly columns: number;
108
+ readonly rows: number;
109
+ readonly timeMs: number;
110
+ readonly avatarDefinition: AvatarDefinition;
111
+ readonly palette: AvatarPalette;
112
+ readonly createRandom: (salt: string) => () => number;
113
+ readonly interaction: AvatarInteractionState;
114
+ };
115
+ /**
116
+ * Signature of one terminal-text avatar visual renderer.
117
+ *
118
+ * @private shared contract for the avatar rendering system
119
+ */
120
+ export type AvatarVisualTerminalText = (context: AvatarVisualTerminalTextRenderContext) => AvatarVisualTerminalTextGrid;
75
121
  /**
76
122
  * Metadata and renderer for one built-in avatar visual.
77
123
  *
@@ -84,6 +130,14 @@ export type AvatarVisualDefinition = {
84
130
  readonly isAnimated: boolean;
85
131
  readonly supportsPointerTracking?: boolean;
86
132
  readonly render: AvatarVisual;
133
+ /**
134
+ * Optional native terminal renderer of visuals which are themselves made of characters.
135
+ *
136
+ * Character-based visuals lose their identity when they are rasterized onto a canvas and
137
+ * converted back into half-block ASCII art, so they paint the terminal character grid directly.
138
+ * Visuals without this renderer are rasterized through `renderAvatarVisualAsciiArt` instead.
139
+ */
140
+ readonly renderTerminalText?: AvatarVisualTerminalText;
87
141
  };
88
142
  /**
89
143
  * Props of the shared `<Avatar/>` component.