@promptbook/node 0.114.0-3 → 0.114.0-30

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 (376) hide show
  1. package/README.md +10 -18
  2. package/esm/index.es.js +2117 -4853
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
  5. package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  6. package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  7. package/esm/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  8. package/esm/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
  9. package/esm/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
  10. package/esm/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
  11. package/esm/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
  12. package/esm/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  13. package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
  14. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
  15. package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
  16. package/esm/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
  17. package/esm/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
  18. package/esm/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
  19. package/esm/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
  20. package/esm/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
  21. package/esm/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
  22. package/esm/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
  23. package/esm/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
  24. package/esm/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
  25. package/esm/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
  26. package/esm/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
  27. package/esm/src/_packages/components.index.d.ts +4 -0
  28. package/esm/src/_packages/types.index.d.ts +4 -0
  29. package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  30. package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  31. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  32. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  33. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  34. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  35. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  36. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  37. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  38. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  39. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  40. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  41. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  42. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  43. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  44. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  45. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  46. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  47. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  48. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  49. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  50. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  51. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  52. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  53. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  54. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  55. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  56. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  57. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  58. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  59. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  60. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  61. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  62. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
  63. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  64. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  65. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  66. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  67. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  68. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  69. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  70. package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  71. package/{umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  72. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  73. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  74. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  75. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  76. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  77. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  78. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  79. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  80. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  81. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  82. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  83. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  84. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  85. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  86. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  87. package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  88. package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
  89. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  90. package/esm/src/commitments/index.d.ts +4 -12
  91. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  92. package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
  93. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  94. package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  95. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  96. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  97. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  98. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  99. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  100. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  101. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  102. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  103. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  104. package/esm/src/utils/misc/debounce.d.ts +4 -2
  105. package/esm/src/utils/misc/emojis.d.ts +3 -2
  106. package/esm/src/version.d.ts +1 -1
  107. package/package.json +2 -5
  108. package/umd/index.umd.js +2117 -4854
  109. package/umd/index.umd.js.map +1 -1
  110. package/umd/scripts/run-agent-messages/messages/buildAgentGoalChatPromptSection.d.ts +26 -0
  111. package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +12 -1
  112. package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +2 -14
  113. package/umd/scripts/run-agent-messages/messages/buildAgentTeamPromptSection.d.ts +12 -0
  114. package/umd/scripts/run-codex-prompts/common/runGoScript/$spawnLoggedBashScript.d.ts +25 -0
  115. package/umd/scripts/run-codex-prompts/common/runGoScript/$terminateLoggedBashProcessTree.d.ts +11 -0
  116. package/umd/scripts/run-codex-prompts/common/runGoScript/scriptExecutionLog.d.ts +4 -0
  117. package/umd/scripts/run-codex-prompts/common/waitForPause.d.ts +92 -0
  118. package/umd/scripts/run-codex-prompts/common/waitForSkippableWorldTimeDeadline.d.ts +15 -0
  119. package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +15 -0
  120. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +3 -0
  121. package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeSubscriptionUsage.d.ts +11 -0
  122. package/umd/scripts/run-codex-prompts/runners/common/estimateUsageFromTextLength.d.ts +33 -0
  123. package/umd/scripts/run-codex-prompts/runners/common/modelPricing.d.ts +41 -0
  124. package/umd/scripts/run-codex-prompts/runners/gemini/gemini-pricing.d.ts +5 -18
  125. package/umd/scripts/run-codex-prompts/runners/openai-codex/OpenAiCodexRunner.d.ts +8 -0
  126. package/umd/scripts/run-codex-prompts/runners/openai-codex/buildCodexUsageFromOutput.d.ts +4 -1
  127. package/umd/scripts/run-codex-prompts/runners/openai-codex/getCodexSubscriptionUsage.d.ts +19 -0
  128. package/umd/scripts/run-codex-prompts/runners/qwen-code/QwenCodeRunner.d.ts +23 -0
  129. package/umd/scripts/run-codex-prompts/runners/qwen-code/buildQwenCodeScript.d.ts +8 -0
  130. package/umd/scripts/run-codex-prompts/runners/qwen-code/parseQwenCodeUsageFromOutput.d.ts +9 -0
  131. package/umd/scripts/run-codex-prompts/runners/qwen-code/qwen-code-pricing.d.ts +30 -0
  132. package/umd/scripts/run-codex-prompts/runners/types/HarnessSubscriptionUsage.d.ts +43 -0
  133. package/umd/src/_packages/components.index.d.ts +4 -0
  134. package/umd/src/_packages/types.index.d.ts +4 -0
  135. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  136. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  137. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  138. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  139. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  140. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  141. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts +1 -0
  142. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  143. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  144. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  145. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  146. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  147. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  148. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  149. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  150. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  151. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  152. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  153. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  154. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  155. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  156. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  157. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  158. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  159. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  160. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  161. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  162. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  163. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  164. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  165. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  166. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  167. package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
  168. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  169. package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
  170. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  171. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  172. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  173. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  174. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  175. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  176. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  177. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  178. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  179. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
  180. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  181. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  182. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  183. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  184. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  185. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  186. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  187. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  188. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  189. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  190. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  191. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
  192. package/{esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  193. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  194. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  195. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  196. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  197. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  198. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  199. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  200. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  201. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  202. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  203. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  204. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  205. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  206. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  207. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  208. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  209. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  210. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  211. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  212. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  213. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  214. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  215. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  216. package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  217. package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
  218. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  219. package/umd/src/commitments/index.d.ts +4 -12
  220. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  221. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  222. package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
  223. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  224. package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  225. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  226. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  227. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  228. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  229. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  230. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  231. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  232. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  233. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  234. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  235. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  236. package/umd/src/utils/misc/debounce.d.ts +4 -2
  237. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  238. package/umd/src/utils/misc/emojis.d.ts +3 -2
  239. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  240. package/umd/src/version.d.ts +1 -1
  241. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  242. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  243. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  244. package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  245. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  246. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  247. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  248. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  249. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  250. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  251. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  252. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  253. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  254. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  255. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  256. package/esm/src/commitments/META/META.d.ts +0 -65
  257. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  258. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  259. package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  260. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  261. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  262. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  263. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  264. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  265. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  266. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  267. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  268. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  269. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  270. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  271. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  272. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  273. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  274. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  275. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  276. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  277. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  278. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  279. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  280. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  281. package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
  282. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  283. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  284. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  285. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  286. package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  287. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  288. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  289. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  290. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  291. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  292. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  293. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  294. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  295. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  296. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  297. package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  298. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  299. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  300. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  301. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  302. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  303. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  304. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  305. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  306. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  307. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  308. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  309. package/umd/src/commitments/META/META.d.ts +0 -65
  310. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  311. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  312. package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  313. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  314. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  315. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  316. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  317. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  318. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  319. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  320. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  321. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  322. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  323. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  324. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  325. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  326. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  327. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  328. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  329. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  330. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  331. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  332. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  333. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  334. package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
  335. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  336. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  337. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  338. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  339. package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  340. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  341. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  342. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  343. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  344. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  345. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  346. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  347. /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  348. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  349. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
  350. /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
  351. /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
  352. /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
  353. /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
  354. /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
  355. /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
  356. /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  357. /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
  358. /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts} +0 -0
  359. /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts} +0 -0
  360. /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts} +0 -0
  361. /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts} +0 -0
  362. /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
  363. /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
  364. /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  365. /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  366. /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  367. /package/{umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
  368. /package/{umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
  369. /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
  370. /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
  371. /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
  372. /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
  373. /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
  374. /package/{umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
  375. /package/{umd/src/commitments/WALLET/WALLET.test.d.ts → esm/src/utils/random/$generateBookBoilerplate.test.d.ts} +0 -0
  376. /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
@@ -0,0 +1,26 @@
1
+ import type { AgentPlannedMessageSnapshot } from '../../../src/book-3.0/AgentPlannedMessagesSidecar';
2
+ /**
3
+ * Planned-message sidecar information made visible to one coding-harness prompt.
4
+ */
5
+ export type AgentPlannedMessagesPromptSidecar = {
6
+ /**
7
+ * Portable path of the sidecar inside the agent folder.
8
+ */
9
+ readonly relativeSidecarPath: string;
10
+ /**
11
+ * Planned messages that are already waiting to wake the agent.
12
+ */
13
+ readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
14
+ };
15
+ /**
16
+ * Builds the planned-message instructions available to an Agents Server-managed coding agent.
17
+ *
18
+ * Planned messages always target the agent's singleton goal chat, regardless of the chat in which the
19
+ * wake-up is planned, and each of them keeps repeating until its schedule is over or it is cancelled.
20
+ * The sidecar file is the only channel that changes them, so an answer that merely claims a follow-up
21
+ * was planned changes nothing — and an answer that changes nothing keeps the current plan running.
22
+ *
23
+ * @param sidecar - Sidecar prepared by the Agents Server for the answered message.
24
+ * @returns Prompt section, or an empty string outside Agents Server-managed runs.
25
+ */
26
+ export declare function buildAgentGoalChatPromptSection(sidecar: AgentPlannedMessagesPromptSidecar | undefined): string;
@@ -1,8 +1,19 @@
1
1
  import { type AgentProjectsPromptSectionOptions } from './buildAgentProjectsPromptSection';
2
+ import { type AgentPlannedMessagesPromptSidecar } from './buildAgentGoalChatPromptSection';
3
+ import { type AgentTeamPromptWorkspace } from './buildAgentTeamPromptSection';
2
4
  /**
3
5
  * Options adjusting the generated agent message prompt.
4
6
  */
5
- export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions;
7
+ export type BuildAgentMessagePromptOptions = AgentProjectsPromptSectionOptions & {
8
+ /**
9
+ * Optional local TEAM roster prepared by the Agents Server for this user turn.
10
+ */
11
+ teamWorkspace?: AgentTeamPromptWorkspace;
12
+ /**
13
+ * Planned-message sidecar prepared by the Agents Server for the agent's singleton goal chat.
14
+ */
15
+ plannedMessagesSidecar?: AgentPlannedMessagesPromptSidecar;
16
+ };
6
17
  /**
7
18
  * Builds the prompt sent to the selected coding runner for one queued user-thread book.
8
19
  */
@@ -1,20 +1,8 @@
1
+ import type { AgentServerRuntimePromptApi } from './AgentServerRuntimePromptApi';
1
2
  /**
2
3
  * Internal runtime API details available to Agents Server-managed local agents.
3
4
  */
4
- export type AgentProjectRuntimePromptApi = {
5
- /**
6
- * Permanent id of the agent currently answering the message.
7
- */
8
- readonly agentPermanentId: string;
9
- /**
10
- * Environment variable containing the Agents Server origin.
11
- */
12
- readonly serverUrlEnvironmentVariableName: string;
13
- /**
14
- * Environment variable containing the internal worker token.
15
- */
16
- readonly tokenEnvironmentVariableName: string;
17
- };
5
+ export type AgentProjectRuntimePromptApi = AgentServerRuntimePromptApi;
18
6
  /**
19
7
  * Options of the projects prompt section shared by every coding harness.
20
8
  */
@@ -0,0 +1,12 @@
1
+ import { type AgentTeamConversationWorkspaceManifest } from '../../../src/book-3.0/AgentTeamConversationWorkspace';
2
+ /**
3
+ * TEAM workspace information made visible to one coding-harness prompt.
4
+ */
5
+ export type AgentTeamPromptWorkspace = {
6
+ readonly relativeWorkspacePath: string;
7
+ readonly manifest: AgentTeamConversationWorkspaceManifest;
8
+ };
9
+ /**
10
+ * Builds the optional single-run TEAM consultation instructions for a coding harness.
11
+ */
12
+ export declare function buildAgentTeamPromptSection(workspace: AgentTeamPromptWorkspace | undefined): string;
@@ -0,0 +1,25 @@
1
+ /// <reference types="node" />
2
+ import { type ChildProcessWithoutNullStreams } from 'child_process';
3
+ /**
4
+ * Input used to start one temporary logged Bash script.
5
+ *
6
+ * @private internal type of `$spawnLoggedBashScript`
7
+ */
8
+ type SpawnLoggedBashScriptOptions = {
9
+ readonly scriptPath: string;
10
+ readonly logPath?: string;
11
+ /**
12
+ * Process which owns the temporary harness shell. Defaults to the current coder process.
13
+ */
14
+ readonly parentProcessId?: number;
15
+ };
16
+ /**
17
+ * Starts one temporary Bash script in a process tree owned by the current Node process.
18
+ *
19
+ * The wrapper watches the supplied owning process ID. When that process exits abruptly, the wrapper terminates every
20
+ * nested shell and harness process instead of leaving it orphaned.
21
+ *
22
+ * @private internal utility of the coding prompt runner
23
+ */
24
+ export declare function $spawnLoggedBashScript(options: SpawnLoggedBashScriptOptions): ChildProcessWithoutNullStreams;
25
+ export {};
@@ -0,0 +1,11 @@
1
+ /// <reference types="node" />
2
+ import { type ChildProcess } from 'child_process';
3
+ /**
4
+ * Stops one active temporary Bash shell together with the harness process tree it owns.
5
+ *
6
+ * Unix sends `SIGTERM` to the wrapper so its shell trap terminates the separately grouped harness job. Windows does
7
+ * not reliably deliver that signal to Bash, so the native `taskkill` command terminates the direct shell tree instead.
8
+ *
9
+ * @private internal utility of the coding prompt runner
10
+ */
11
+ export declare function $terminateLoggedBashProcessTree(commandProcess: ChildProcess): void;
@@ -9,6 +9,10 @@ export declare const PTBK_CODER_LOG_FILE_ENV_NAME = "PTBK_CODER_LOG_FILE";
9
9
  * without the generated script and the prompt it embeds.
10
10
  */
11
11
  export declare const SCRIPT_EXECUTION_LOG_RAW_OUTPUT_MARKER = "--- raw output ---";
12
+ /**
13
+ * Environment variable that identifies the Node process responsible for a temporary harness shell.
14
+ */
15
+ export declare const PTBK_CODER_PARENT_PROCESS_ID_ENV_NAME = "PTBK_CODER_PARENT_PROCESS_ID";
12
16
  /**
13
17
  * Shapes one bash invocation that optionally mirrors live script output into a temporary log file.
14
18
  */
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Pause lifecycle of `ptbk coder run`.
3
+ */
4
+ export type CoderRunPauseState = 'RUNNING' | 'PAUSING' | 'PAUSED';
5
+ /**
6
+ * Result of toggling the pause hotkey state.
7
+ */
8
+ export type CoderRunPauseToggleResult = 'REQUESTED_PAUSE' | 'CANCELLED_PAUSE' | 'RESUMED';
9
+ /**
10
+ * Result of requesting a timed wait skip.
11
+ */
12
+ export type CoderRunSkipCurrentWaitResult = 'REQUESTED_SKIP' | 'NO_ACTIVE_WAIT';
13
+ /**
14
+ * Result of toggling the dynamic end-after-current-prompt state.
15
+ */
16
+ export type CoderRunEndAfterCurrentPromptToggleResult = 'REQUESTED_END' | 'CANCELLED_END';
17
+ /**
18
+ * Token that identifies one active timed wait which can be skipped by the user.
19
+ */
20
+ export type CoderRunSkippableWaitToken = symbol;
21
+ /**
22
+ * Applies the same three-state toggle used by the `P` hotkey.
23
+ */
24
+ export declare function togglePauseState(): CoderRunPauseToggleResult;
25
+ /**
26
+ * Applies the two-state toggle used by the `X` hotkey.
27
+ */
28
+ export declare function toggleEndAfterCurrentPromptState(): CoderRunEndAfterCurrentPromptToggleResult;
29
+ /**
30
+ * Returns whether the dynamic end-after-current-prompt control is active.
31
+ */
32
+ export declare function getEndAfterCurrentPromptState(): boolean;
33
+ /**
34
+ * Starts one timed wait which can be skipped by the `S` hotkey.
35
+ */
36
+ export declare function beginSkippableWait(): CoderRunSkippableWaitToken;
37
+ /**
38
+ * Finishes one timed wait and clears any skip request that belonged to it.
39
+ */
40
+ export declare function finishSkippableWait(waitToken: CoderRunSkippableWaitToken): void;
41
+ /**
42
+ * Requests that the currently active timed wait ends immediately.
43
+ */
44
+ export declare function requestSkipCurrentWait(): CoderRunSkipCurrentWaitResult;
45
+ /**
46
+ * Returns whether one timed wait should end early.
47
+ */
48
+ export declare function shouldSkipCurrentWait(waitToken: CoderRunSkippableWaitToken): boolean;
49
+ /**
50
+ * Waits for either a timeout or an `S` hotkey skip request.
51
+ */
52
+ export declare function waitForSkippableMilliseconds(waitToken: CoderRunSkippableWaitToken, durationMs: number): Promise<void>;
53
+ /**
54
+ * Restores all shared terminal controls to their default state.
55
+ */
56
+ export declare function resetCoderRunControls(): void;
57
+ /**
58
+ * If the execution is paused, it will wait until it is resumed.
59
+ *
60
+ * @param options.silent - When `true`, suppresses console output (used when the terminal UI handles display).
61
+ * @param options.onPaused - Callback invoked when entering the PAUSED state.
62
+ * @param options.onResumed - Callback invoked when leaving the PAUSED state.
63
+ */
64
+ export declare function checkPause(options?: {
65
+ silent?: boolean;
66
+ onPaused?: () => void;
67
+ onResumed?: () => void;
68
+ }): Promise<void>;
69
+ /**
70
+ * Returns the current pause state for external consumers such as the terminal UI.
71
+ */
72
+ export declare function getPauseState(): CoderRunPauseState;
73
+ /**
74
+ * Returns the label of the next checkpoint where pausing will take effect.
75
+ */
76
+ export declare function getPauseTargetLabel(): string;
77
+ /**
78
+ * Updates the label of the next pause checkpoint.
79
+ */
80
+ export declare function announcePauseTargetLabel(nextPauseTargetLabel: string): void;
81
+ /**
82
+ * Restores the default generic pause target label.
83
+ */
84
+ export declare function resetPauseTargetLabel(): void;
85
+ /**
86
+ * Requests a pause from an external controller (e.g. the Ink UI).
87
+ */
88
+ export declare function requestPause(): void;
89
+ /**
90
+ * Resumes execution from an external controller after a pause.
91
+ */
92
+ export declare function requestResume(): void;
@@ -0,0 +1,15 @@
1
+ import { type WorldTimeDeadlineTick } from './waitUntilWorldTimeDeadline';
2
+ /**
3
+ * Waits until one wall-clock deadline has passed, or until the user skips the wait with the `S` control.
4
+ *
5
+ * This is the single way `ptbk coder` waits for a deadline the user is allowed to cut short, so every
6
+ * wait which shows the `S Skip current waiting` control really reacts to it: the pacing waits between
7
+ * prompts, the cool-down after an error, the harness session-limit waits and the server keep-alive poll.
8
+ *
9
+ * @private internal utility of `ptbk coder` wait handling
10
+ */
11
+ export declare function waitForSkippableWorldTimeDeadline(options: {
12
+ readonly deadlineTimeMs: number;
13
+ readonly pollIntervalMs: number;
14
+ readonly onTick?: WorldTimeDeadlineTick;
15
+ }): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import type { PromptRunOptions } from '../types/PromptRunOptions';
2
2
  import type { PromptRunResult } from '../types/PromptRunResult';
3
3
  import type { PromptRunner } from '../types/PromptRunner';
4
+ import { type HarnessSubscriptionUsage } from '../types/HarnessSubscriptionUsage';
4
5
  import type { ClaudeCodeRunnerOptions } from './ClaudeCodeRunnerOptions';
5
6
  /**
6
7
  * Runs prompts via the Claude Code CLI.
@@ -8,10 +9,17 @@ import type { ClaudeCodeRunnerOptions } from './ClaudeCodeRunnerOptions';
8
9
  export declare class ClaudeCodeRunner implements PromptRunner {
9
10
  private readonly options;
10
11
  readonly name = "claude-code";
12
+ private subscriptionUsage;
11
13
  /**
12
14
  * Creates a new Claude Code runner.
13
15
  */
14
16
  constructor(options?: ClaudeCodeRunnerOptions);
17
+ /**
18
+ * Returns the latest subscription-limit snapshot emitted by this Claude Code session.
19
+ *
20
+ * Claude exposes these values in the normal stream after a response, so no separate quota-only model call is made.
21
+ */
22
+ getSubscriptionUsage(): Promise<HarnessSubscriptionUsage | undefined>;
15
23
  /**
16
24
  * Runs the prompt using Claude Code and parses usage output.
17
25
  */
@@ -20,4 +28,11 @@ export declare class ClaudeCodeRunner implements PromptRunner {
20
28
  * Runs one Claude Code CLI process and returns its raw output.
21
29
  */
22
30
  private runClaudeCodeOnce;
31
+ /**
32
+ * Keeps the newest usable Claude subscription-limit values reported by the stream.
33
+ *
34
+ * A stream can omit these values for API-key users or unsupported plan types; retaining the prior snapshot avoids
35
+ * a temporary omission erasing a still-valid dashboard value while a long queue is running.
36
+ */
37
+ private updateSubscriptionUsage;
23
38
  }
@@ -12,7 +12,10 @@ export type ClaudeCodeOutputEvent = {
12
12
  readonly rate_limit_info?: {
13
13
  readonly status?: string;
14
14
  readonly resetsAt?: number;
15
+ readonly resets_at?: number;
15
16
  readonly rateLimitType?: string;
17
+ readonly rate_limit_type?: string;
18
+ readonly utilization?: number;
16
19
  };
17
20
  readonly usage?: {
18
21
  readonly input_tokens?: number;
@@ -0,0 +1,11 @@
1
+ import type { HarnessSubscriptionUsage } from '../types/HarnessSubscriptionUsage';
2
+ /**
3
+ * Converts Claude Code stream-json rate-limit events into the shared subscription-usage snapshot.
4
+ *
5
+ * Claude Code can emit one event for each applicable limit, so the parser preserves every distinct window instead of
6
+ * assuming the familiar 5-hour and seven-day pair. This lets a new vendor-side limit appear in the dashboard without
7
+ * changing its renderer.
8
+ *
9
+ * @private internal utility of the Claude Code runner
10
+ */
11
+ export declare function parseClaudeCodeSubscriptionUsage(output: string): HarnessSubscriptionUsage | undefined;
@@ -0,0 +1,33 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ import type { ModelPricing } from './modelPricing';
3
+ /**
4
+ * Options for estimating the usage of one harness run.
5
+ */
6
+ export type EstimateUsageFromTextLengthOptions = {
7
+ /**
8
+ * Human-readable harness name used when the estimation itself fails.
9
+ */
10
+ readonly harnessLabel: string;
11
+ /**
12
+ * The prompt that was sent to the harness.
13
+ */
14
+ readonly prompt: string;
15
+ /**
16
+ * The output which the harness has printed.
17
+ */
18
+ readonly output: string;
19
+ /**
20
+ * Reads the pricing of the model which was used for this run.
21
+ *
22
+ * It is resolved lazily so that a broken pricing table degrades to an uncertain estimate
23
+ * instead of failing the coding round, because a price estimate must never block coding work.
24
+ */
25
+ readonly resolvePricing: () => ModelPricing;
26
+ };
27
+ /**
28
+ * Estimates the usage of one harness run from the length of its prompt and its output.
29
+ *
30
+ * Harnesses which do not report their own token counts are billed per token anyway, so the
31
+ * character counts are the only signal available for a price estimate.
32
+ */
33
+ export declare function estimateUsageFromTextLength(options: EstimateUsageFromTextLengthOptions): Usage;
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Price of one model per 1 million tokens in USD.
3
+ */
4
+ export type ModelPricing = {
5
+ /**
6
+ * Price of 1 million input tokens in USD.
7
+ */
8
+ readonly input: number;
9
+ /**
10
+ * Price of 1 million output tokens in USD.
11
+ */
12
+ readonly output: number;
13
+ };
14
+ /**
15
+ * Pricing of all known models of one harness, keyed by the model identifier.
16
+ */
17
+ export type ModelPricingTable = Readonly<Record<string, ModelPricing>>;
18
+ /**
19
+ * Options for resolving the pricing of one model.
20
+ */
21
+ export type ResolveModelPricingOptions = {
22
+ /**
23
+ * Pricing of all models known to one harness.
24
+ */
25
+ readonly pricingTable: ModelPricingTable;
26
+ /**
27
+ * Model whose pricing is used when the requested model is unknown.
28
+ */
29
+ readonly modelNameForEstimation: string;
30
+ /**
31
+ * Model requested for the run, or `undefined` when the harness picks its own model.
32
+ */
33
+ readonly modelName?: string;
34
+ };
35
+ /**
36
+ * Resolves the pricing of one model of one harness.
37
+ *
38
+ * It first tries exact match, then prefix match, then falls back to the pricing of a stable
39
+ * default model, because every harness names new models faster than the pricing tables grow.
40
+ */
41
+ export declare function resolveModelPricing(options: ResolveModelPricingOptions): ModelPricing;
@@ -1,3 +1,4 @@
1
+ import type { ModelPricing } from '../common/modelPricing';
1
2
  /**
2
3
  * The pricing for Gemini models per 1 million tokens in USD.
3
4
  *
@@ -6,30 +7,16 @@
6
7
  * @see https://ai.google.dev/pricing
7
8
  */
8
9
  export declare const GEMINI_PRICING: {
9
- 'gemini-1.5-flash': {
10
- input: number;
11
- output: number;
10
+ readonly 'gemini-1.5-flash': {
11
+ readonly input: 0.1125;
12
+ readonly output: 0.45;
12
13
  };
13
14
  };
14
15
  /**
15
16
  * The model to use for price estimation.
16
17
  */
17
18
  export declare const GEMINI_MODEL_FOR_ESTIMATION = "gemini-1.5-flash";
18
- /**
19
- * Gemini pricing entry per 1 million tokens.
20
- */
21
- export type GeminiPricing = {
22
- input: number;
23
- output: number;
24
- };
25
19
  /**
26
20
  * Resolves Gemini pricing for the requested model.
27
- *
28
- * It first tries exact match, then prefix match, then falls back to a stable
29
- * default pricing model.
30
- */
31
- export declare function resolveGeminiPricing(modelName?: string): GeminiPricing;
32
- /**
33
- * A an estimation of how many characters are in one token.
34
21
  */
35
- export declare const CHARS_PER_TOKEN = 4;
22
+ export declare function resolveGeminiPricing(modelName?: string): ModelPricing;
@@ -1,6 +1,7 @@
1
1
  import type { PromptRunOptions } from '../types/PromptRunOptions';
2
2
  import type { PromptRunResult } from '../types/PromptRunResult';
3
3
  import type { PromptRunner } from '../types/PromptRunner';
4
+ import type { HarnessSubscriptionUsage } from '../types/HarnessSubscriptionUsage';
4
5
  import type { OpenAiCodexRunnerOptions } from './OpenAiCodexRunnerOptions';
5
6
  /**
6
7
  * Runs prompts via the OpenAI Codex CLI.
@@ -13,6 +14,13 @@ export declare class OpenAiCodexRunner implements PromptRunner {
13
14
  * Creates a new Codex runner.
14
15
  */
15
16
  constructor(options: OpenAiCodexRunnerOptions);
17
+ /**
18
+ * Reads the current ChatGPT subscription quota snapshot through Codex's local app server.
19
+ *
20
+ * API-key sessions and unsupported Codex versions simply return no snapshot, which keeps this optional dashboard
21
+ * information from affecting the actual prompt execution.
22
+ */
23
+ getSubscriptionUsage(): Promise<HarnessSubscriptionUsage | undefined>;
16
24
  /**
17
25
  * Runs the Codex prompt in a temporary script and waits for completion output.
18
26
  */
@@ -6,5 +6,8 @@ import type { Usage } from '../../../../src/execution/Usage';
6
6
  export declare const DEFAULT_CODEX_COMPLETION_SHARE = 0.1;
7
7
  /**
8
8
  * Builds usage stats from Codex CLI output.
9
+ *
10
+ * The `modelName` is omitted when Codex ran without a model override, in which case only Codex knows which
11
+ * model it picked and the price can be estimated from the fallback pricing alone.
9
12
  */
10
- export declare function buildCodexUsageFromOutput(output: string, modelName: string): Usage;
13
+ export declare function buildCodexUsageFromOutput(output: string, modelName: string | undefined): Usage;
@@ -0,0 +1,19 @@
1
+ import type { HarnessSubscriptionUsage } from '../types/HarnessSubscriptionUsage';
2
+ /**
3
+ * Reads the current Codex subscription limit windows through its local app-server protocol.
4
+ *
5
+ * Codex versions without this optional protocol, API-key sessions, and transient account failures simply provide no
6
+ * snapshot. Subscription usage is contextual UI information, so it must never make a coding prompt fail.
7
+ *
8
+ * @private internal utility of the OpenAI Codex runner
9
+ */
10
+ export declare function getCodexSubscriptionUsage(codexCommand: string): Promise<HarnessSubscriptionUsage | undefined>;
11
+ /**
12
+ * Converts the raw Codex app-server rate-limit response into Promptbook's harness-neutral subscription snapshot.
13
+ *
14
+ * Modern Codex versions can report several metered buckets, while older versions expose a single compatibility
15
+ * bucket. In both cases every primary and secondary rolling window is preserved for the terminal dashboard.
16
+ *
17
+ * @private internal utility of the OpenAI Codex runner
18
+ */
19
+ export declare function buildCodexSubscriptionUsage(response: unknown): HarnessSubscriptionUsage | undefined;
@@ -0,0 +1,23 @@
1
+ import type { PromptRunner } from '../types/PromptRunner';
2
+ import type { PromptRunOptions } from '../types/PromptRunOptions';
3
+ import type { PromptRunResult } from '../types/PromptRunResult';
4
+ import type { QwenCodeRunnerOptions } from './QwenCodeRunnerOptions';
5
+ /**
6
+ * Default Qwen Code model used by the coding runner.
7
+ */
8
+ export declare const DEFAULT_QWEN_CODE_MODEL = "qwen3.8-max";
9
+ /**
10
+ * Runs prompts via the Qwen Code CLI.
11
+ */
12
+ export declare class QwenCodeRunner implements PromptRunner {
13
+ private readonly options;
14
+ readonly name = "qwen-code";
15
+ /**
16
+ * Creates a new Qwen Code runner.
17
+ */
18
+ constructor(options: QwenCodeRunnerOptions);
19
+ /**
20
+ * Runs the prompt using Qwen Code and parses usage output.
21
+ */
22
+ runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
23
+ }
@@ -0,0 +1,8 @@
1
+ import type { QwenCodeScriptOptions } from './QwenCodeScriptOptions';
2
+ /**
3
+ * Builds the shell script that runs Qwen Code with the prompt and coding context.
4
+ *
5
+ * Note: `-y` runs the harness unattended, because `ptbk coder` approves the whole prompt
6
+ * up front and there is nobody at the keyboard to confirm the single tool calls.
7
+ */
8
+ export declare function buildQwenCodeScript(options: QwenCodeScriptOptions): string;
@@ -0,0 +1,9 @@
1
+ import type { Usage } from '../../../../src/execution/Usage';
2
+ /**
3
+ * Parses Qwen Code CLI output and extracts usage information.
4
+ *
5
+ * @param output The output from the Qwen Code CLI.
6
+ * @param prompt The prompt that was sent to the Qwen Code CLI.
7
+ * @param modelName The Qwen Code model used for this run.
8
+ */
9
+ export declare function parseQwenCodeUsageFromOutput(output: string, prompt: string, modelName?: string): Usage;
@@ -0,0 +1,30 @@
1
+ import type { ModelPricing } from '../common/modelPricing';
2
+ /**
3
+ * The pricing for Qwen Code models per 1 million tokens in USD.
4
+ *
5
+ * Note: This is an estimation.
6
+ *
7
+ * @see https://www.alibabacloud.com/help/en/model-studio/models
8
+ */
9
+ export declare const QWEN_CODE_PRICING: {
10
+ readonly 'qwen3-coder-plus': {
11
+ readonly input: 1;
12
+ readonly output: 5;
13
+ };
14
+ readonly 'qwen3-coder-flash': {
15
+ readonly input: 0.3;
16
+ readonly output: 1.5;
17
+ };
18
+ readonly 'qwen3-max': {
19
+ readonly input: 1.2;
20
+ readonly output: 6;
21
+ };
22
+ };
23
+ /**
24
+ * The model to use for price estimation.
25
+ */
26
+ export declare const QWEN_CODE_MODEL_FOR_ESTIMATION = "qwen3-coder-plus";
27
+ /**
28
+ * Resolves Qwen Code pricing for the requested model.
29
+ */
30
+ export declare function resolveQwenCodePricing(modelName?: string): ModelPricing;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * One rolling subscription limit reported by a coding harness.
3
+ *
4
+ * @private internal type of `ptbk coder`
5
+ */
6
+ export type HarnessSubscriptionUsageLimit = {
7
+ /**
8
+ * Short, user-facing name of the limit window, for example `5h` or `7d`.
9
+ */
10
+ readonly label: string;
11
+ /**
12
+ * Percentage of this limit which has already been consumed, from 0 through 100.
13
+ */
14
+ readonly usedPercentage: number;
15
+ /**
16
+ * Unix timestamp in seconds at which this limit window resets, when reported by the harness.
17
+ */
18
+ readonly resetsAt?: number;
19
+ };
20
+ /**
21
+ * Subscription usage snapshot which a coding harness can optionally report.
22
+ *
23
+ * The runner contract deliberately keeps this independent from per-prompt token usage: subscription limits can be
24
+ * shared with other tools and can contain several rolling windows.
25
+ *
26
+ * @private internal type of `ptbk coder`
27
+ */
28
+ export type HarnessSubscriptionUsage = {
29
+ /**
30
+ * Every subscription limit currently reported by the harness, in display order.
31
+ */
32
+ readonly limits: ReadonlyArray<HarnessSubscriptionUsageLimit>;
33
+ };
34
+ /**
35
+ * Merges a newly reported subset of subscription windows into the latest complete snapshot.
36
+ *
37
+ * Some harnesses emit an update only for the limit whose state changed. Keeping the previous windows means a
38
+ * five-hour update cannot make a still-valid weekly limit disappear from the dashboard. Existing order is preserved
39
+ * and newly discovered windows are appended, which keeps the terminal presentation stable between refreshes.
40
+ *
41
+ * @private internal utility of `ptbk coder`
42
+ */
43
+ export declare function mergeHarnessSubscriptionUsage(previousSubscriptionUsage: HarnessSubscriptionUsage | undefined, latestSubscriptionUsage: HarnessSubscriptionUsage): HarnessSubscriptionUsage;
@@ -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 };