@promptbook/types 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 (326) hide show
  1. package/README.md +10 -18
  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/AgentBasicInformation.d.ts +3 -3
  7. package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  8. package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  9. package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  10. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  11. package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  12. package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  13. package/esm/src/book-3.0/cliAgentEnv.d.ts +3 -3
  14. package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  15. package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  16. package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  17. package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  18. package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  19. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  20. package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  21. package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  22. package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  23. package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  24. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  25. package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  26. package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  27. package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  28. package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  29. package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
  30. package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  31. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  32. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  33. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  34. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  35. package/esm/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  36. package/esm/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  37. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
  38. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  39. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  40. package/esm/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  41. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  42. package/esm/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  43. package/esm/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  44. package/esm/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  45. package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  46. package/{umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → esm/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  47. package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  48. package/esm/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  49. package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  50. package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  51. package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  52. package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  53. package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  54. package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  55. package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  56. package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  57. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  58. package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  59. package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  60. package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  61. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  62. package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  63. package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
  64. package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  65. package/esm/src/commitments/index.d.ts +4 -12
  66. package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  67. package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
  68. package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  69. package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  70. package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  71. package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  72. package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  73. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  74. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  75. package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  76. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  77. package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  78. package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  79. package/esm/src/utils/misc/debounce.d.ts +4 -2
  80. package/esm/src/utils/misc/emojis.d.ts +3 -2
  81. package/esm/src/version.d.ts +1 -1
  82. package/package.json +2 -2
  83. package/umd/src/_packages/components.index.d.ts +4 -0
  84. package/umd/src/_packages/types.index.d.ts +4 -0
  85. package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
  86. package/umd/src/avatars/renderAvatarVisualTerminalText.test.d.ts +1 -0
  87. package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
  88. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
  89. package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
  90. package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
  91. package/umd/src/book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts +1 -0
  92. package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
  93. package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
  94. package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
  95. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
  96. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
  97. package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
  98. package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
  99. package/umd/src/book-3.0/cliAgentEnv.d.ts +3 -3
  100. package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
  101. package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
  102. package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
  103. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
  104. package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
  105. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
  106. package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
  107. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
  108. package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
  109. package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
  110. package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
  111. package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
  112. package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
  113. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
  114. package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
  115. package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
  116. package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
  117. package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
  118. package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
  119. package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
  120. package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
  121. package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
  122. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +1 -1
  123. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
  124. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
  125. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
  126. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessCommandPath.d.ts +14 -0
  127. package/umd/src/cli/cli-commands/common/harness/$resolveHarnessInstallationOrigin.d.ts +10 -0
  128. package/umd/src/cli/cli-commands/common/harness/$runHarnessInstallationCommand.d.ts +43 -0
  129. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +26 -0
  130. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationOrigin.d.ts +36 -0
  131. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +8 -2
  132. package/umd/src/cli/cli-commands/common/harness/HarnessUpdatePlan.d.ts +23 -0
  133. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +4 -1
  134. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.d.ts +8 -0
  135. package/umd/src/cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts +1 -0
  136. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.d.ts +31 -0
  137. package/umd/src/cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts +1 -0
  138. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.d.ts +12 -0
  139. package/umd/src/cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts +1 -0
  140. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
  141. package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
  142. package/{esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts → umd/src/cli/cli-commands/common/npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
  143. package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
  144. package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
  145. package/umd/src/cli/cli-commands/common/npm/$resolveNpmGlobalPrefixPath.d.ts +9 -0
  146. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
  147. package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
  148. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
  149. package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
  150. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
  151. package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
  152. package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +17 -4
  153. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
  154. package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
  155. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
  156. package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
  157. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
  158. package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
  159. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
  160. package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
  161. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
  162. package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
  163. package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
  164. package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
  165. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
  166. package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
  167. package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
  168. package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +14 -7
  169. package/umd/src/commitments/index.d.ts +4 -12
  170. package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
  171. package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
  172. package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
  173. package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +1 -1
  174. package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
  175. package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
  176. package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
  177. package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
  178. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
  179. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
  180. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
  181. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
  182. package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
  183. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
  184. package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
  185. package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
  186. package/umd/src/utils/misc/debounce.d.ts +4 -2
  187. package/umd/src/utils/misc/debounce.test.d.ts +1 -0
  188. package/umd/src/utils/misc/emojis.d.ts +3 -2
  189. package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
  190. package/umd/src/version.d.ts +1 -1
  191. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  192. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  193. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  194. package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  195. package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  196. package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  197. package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  198. package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  199. package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  200. package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  201. package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  202. package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  203. package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  204. package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  205. package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  206. package/esm/src/commitments/META/META.d.ts +0 -65
  207. package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  208. package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  209. package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  210. package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  211. package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  212. package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  213. package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  214. package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  215. package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  216. package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  217. package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  218. package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  219. package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  220. package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  221. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  222. package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  223. package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  224. package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  225. package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  226. package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  227. package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  228. package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  229. package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  230. package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  231. package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
  232. package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  233. package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  234. package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  235. package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  236. package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  237. package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  238. package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  239. package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  240. package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  241. package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  242. package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  243. package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  244. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +0 -13
  245. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
  246. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
  247. package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
  248. package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
  249. package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
  250. package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
  251. package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
  252. package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
  253. package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
  254. package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  255. package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
  256. package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
  257. package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
  258. package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
  259. package/umd/src/commitments/META/META.d.ts +0 -65
  260. package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
  261. package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
  262. package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
  263. package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
  264. package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
  265. package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
  266. package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
  267. package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
  268. package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
  269. package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
  270. package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
  271. package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
  272. package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
  273. package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
  274. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
  275. package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
  276. package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
  277. package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
  278. package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
  279. package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
  280. package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
  281. package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
  282. package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
  283. package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
  284. package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
  285. package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
  286. package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
  287. package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
  288. package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
  289. package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
  290. package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
  291. package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
  292. package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
  293. package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
  294. package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
  295. package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
  296. package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
  297. /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
  298. /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
  299. /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
  300. /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
  301. /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
  302. /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
  303. /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
  304. /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
  305. /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
  306. /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
  307. /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
  308. /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/harness/formatHarnessManualUpdateInstruction.test.d.ts} +0 -0
  309. /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harness/resolveHarnessInstallationMethodFromPaths.test.d.ts} +0 -0
  310. /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/harness/resolveHarnessUpdatePlan.test.d.ts} +0 -0
  311. /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
  312. /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
  313. /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
  314. /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
  315. /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
  316. /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
  317. /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
  318. /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
  319. /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
  320. /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
  321. /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
  322. /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
  323. /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
  324. /package/{umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
  325. /package/{umd/src/commitments/WALLET/WALLET.test.d.ts → esm/src/utils/random/$generateBookBoilerplate.test.d.ts} +0 -0
  326. /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
package/README.md CHANGED
@@ -340,8 +340,6 @@ Respond to incoming legal inquiries via email and keep the company website updat
340
340
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
341
341
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
342
342
  <br/>
343
- USE EMAIL<br/>
344
- USE BROWSER<br/>
345
343
  <br/>
346
344
  TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
347
345
 
@@ -430,7 +428,7 @@ GOAL Keep the company website updated with the latest legal policies and complia
430
428
 
431
429
  #### `Use` commitments
432
430
 
433
- Use commitments grant the agent real capabilities - tools it can use to interact with the outside world. `USE EMAIL` lets the agent send emails, `USE BROWSER` lets it access and read web content, `USE SEARCH ENGINE` lets it search the web, and many more.
431
+ Use commitments grant the agent real capabilities - tools it can use to interact with the outside world. `USE CALENDAR` lets the agent work with a calendar, `USE PROJECT` gives it access to a code repository, `USE MCP` connects any external Model Context Protocol server, and many more.
434
432
 
435
433
  These are what turn a chatbot into a persistent agent that actually does work.
436
434
 
@@ -447,9 +445,6 @@ GOAL Keep the company website updated with the latest legal policies and complia
447
445
  **RULE** Never provide legal advice about criminal law.<br/>
448
446
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
449
447
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
450
- USE EMAIL<br/>
451
- USE BROWSER<br/>
452
- USE SEARCH ENGINE<br/>
453
448
 
454
449
  </td></tr></table>
455
450
 
@@ -470,9 +465,6 @@ GOAL Keep the company website updated with the latest legal policies and complia
470
465
  **RULE** Never provide legal advice about criminal law.<br/>
471
466
  **KNOWLEDGE** https://company.com/company-policies.pdf<br/>
472
467
  **KNOWLEDGE** https://company.com/internal-documents/employee-handbook.docx<br/>
473
- USE EMAIL<br/>
474
- USE BROWSER<br/>
475
- USE SEARCH ENGINE<br/>
476
468
  TEAM You are part of the legal team of Paul Smith & Associés, you discuss with {Emily White}, the head of the compliance department. {George Brown} is expert in corporate law and {Sophia Black} is expert in labor law.<br/>
477
469
 
478
470
  </td></tr></table>
@@ -659,7 +651,7 @@ Or you can install them separately:
659
651
 
660
652
  Promptbook Coder is **not another standalone coding model**. It is an orchestration layer over coding agents such as **GitHub Copilot**, **OpenAI Codex**, **Claude Code**, **Opencode**, **Cline**, and **Gemini CLI**. The difference is that Promptbook Coder adds a repeatable repository workflow on top of them:
661
653
 
662
- - prompt files with explicit statuses like `[ ]`, `[x]`, and `[-]`
654
+ - prompt files with explicit statuses like `[ ]`, `[^]`, `[x]`, and `[-]`
663
655
  - automatic selection of the next runnable task, including priority support
664
656
  - optional shared repo context loaded from a file such as `AGENTS.md`
665
657
  - automatic `git add`, commit, and push after each successful prompt
@@ -674,19 +666,19 @@ In short: tools like Claude Code, Codex, or GitHub Copilot are the **engines**;
674
666
  1. `ptbk coder init` prepares the project for the coder workflow, seeds project-owned generic templates in `prompts/templates/`, creates a starter `AGENTS.md` context file, adds helper `npm run coder:*` scripts, ensures `.gitignore` ignores `/.promptbook`, and configures VS Code prompt screenshots in `prompts/screenshots/`.
675
667
  2. `ptbk coder generate-boilerplates` creates prompt files in `prompts/`.
676
668
  3. You replace placeholder `@@@` sections with real coding tasks.
677
- 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent.
669
+ 4. `ptbk coder run` sends the next ready `[ ]` prompt to the selected coding agent and immediately marks it as in progress `[^]`, naming the harness, the model and the step which is running.
678
670
  5. Promptbook Coder marks the prompt as done `[x]`, records runner metadata, then stages, commits, and pushes the resulting changes.
679
671
  6. `ptbk coder verify` reviews completed prompts, archives finished files to `prompts/done/`, and appends a repair prompt when more work is needed.
680
672
 
681
- Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority.
673
+ Prompts marked with `[-]` are not ready yet, prompts containing `@@@` are treated as not fully written, and prompts with more `!` markers have higher priority. A prompt left as `[^]` was interrupted in the middle of its implementation — the in-progress status is never reverted, so a killed or crashed coder always leaves that signal behind, and `--git-changes continue` resumes exactly that prompt with its uncommitted changes still in place.
682
674
 
683
675
  #### Features
684
676
 
685
- - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`
677
+ - **Multi-runner execution:** `openai-codex`, `github-copilot`, `cline`, `claude-code`, `opencode`, `gemini`, `qwen-code`
686
678
  - **Context injection:** `--agent agents/coding/developer.book --context AGENTS.md` or inline extra instructions
687
679
  - **Reasoning control:** `--thinking-level low|medium|high|xhigh` for supported runners
688
680
  - **Unattended or interactive runs:** default auto mode, or `--no-auto` to wait for user confirmation before each prompt
689
- - **Git safety:** clean working tree check by default, optional `--ignore-git-changes`
681
+ - **Git safety:** clean working tree check by default, or `--git-changes ignore` to keep the changes and `--git-changes continue` to resume an interrupted prompt
690
682
  - **Opt-in remote pushes:** commits stay local unless you explicitly pass `--auto-push`
691
683
  - **Prompt triage:** `--priority` to process only more important tasks first
692
684
  - **Failure logging:** failed runs write a neighboring `.error.log`
@@ -707,7 +699,7 @@ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gp
707
699
 
708
700
  npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
709
701
 
710
- npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --ignore-git-changes
702
+ npx ts-node ./src/cli/test/ptbk.ts coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --git-changes ignore
711
703
 
712
704
  npx ts-node ./src/cli/test/ptbk.ts coder find-refactor-candidates
713
705
 
@@ -733,7 +725,7 @@ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh -
733
725
 
734
726
  ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --auto-push
735
727
 
736
- ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --ignore-git-changes
728
+ ptbk coder run --harness github-copilot --model gpt-5.4 --thinking-level xhigh --agent agents/coding/developer.book --context AGENTS.md --test npm run test --git-changes ignore
737
729
 
738
730
  ptbk coder find-refactor-candidates
739
731
 
@@ -759,13 +751,13 @@ ptbk coder verify
759
751
  | Flag | Purpose |
760
752
  | -------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
761
753
  | `--harness <name>` | Selects the coding harness. |
762
- | `--model <model>` | Chooses the runner model; required for `openai-codex` and `gemini`, optional for `github-copilot`. |
754
+ | `--model <model>` | Chooses the runner model; required for `openai-codex`, `gemini` and `qwen-code`, optional for `github-copilot`. |
763
755
  | `--context <text-or-file>` | Appends extra instructions inline or from a file like `AGENTS.md`. |
764
756
  | `--test <command>` | Runs a verification command after each prompt attempt and feeds failing output back for retries. |
765
757
  | `--test-before <mode>` | Runs tests before coding: `no` (default), `yes-and-fail` (stop with results), or `yes-and-fix` (create one repair prompt first); defaults to `npm test` when enabled without `--test`. |
766
758
  | `--thinking-level <level>` | Sets reasoning effort for supported runners. |
767
759
  | `--no-auto` | Waits for user confirmation before each prompt instead of running automatically through the queue. |
768
- | `--ignore-git-changes` | Disables the clean-working-tree guard. |
760
+ | `--git-changes <mode>` | Decides what happens with a dirty working tree: `fail` (default), `ignore` to keep the changes, or `continue` to resume the single interrupted `[^]` prompt with them. |
769
761
  | `--priority <n>` | Runs only prompts at or above the given priority. |
770
762
  | `--dry-run` | Prints which prompts are ready instead of executing them. |
771
763
  | `--allow-credits` | Lets OpenAI Codex spend credits when required. |
@@ -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.
@@ -31,13 +31,13 @@ export type BookParameter = {
31
31
  };
32
32
  /**
33
33
  * Capability of the agent
34
- * This is parsed from commitments like USE BROWSER, USE SEARCH ENGINE, KNOWLEDGE, etc.
34
+ * This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
35
35
  */
36
36
  export type AgentCapability = {
37
37
  /**
38
38
  * The type of the capability
39
39
  */
40
- type: 'browser' | 'search-engine' | 'knowledge' | 'timeout' | 'time' | 'user-location' | 'inheritance' | 'import' | 'image-generator' | 'team' | 'email' | 'popup' | 'privacy' | 'project' | 'calendar' | 'wallet';
40
+ type: 'knowledge' | 'user-location' | 'inheritance' | 'import' | 'image-generator' | 'team' | 'popup' | 'privacy' | 'project' | 'calendar';
41
41
  /**
42
42
  * The label to display for this capability
43
43
  */
@@ -122,7 +122,7 @@ export type AgentBasicInformation = {
122
122
  parameters: Array<BookParameter>;
123
123
  /**
124
124
  * Capabilities of the agent
125
- * This is parsed from commitments like USE BROWSER, USE SEARCH ENGINE, KNOWLEDGE, etc.
125
+ * This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
126
126
  */
127
127
  capabilities: Array<AgentCapability>;
128
128
  /**
@@ -1,5 +1,6 @@
1
1
  import type { ParsedCommitment } from '../../commitments/_base/ParsedCommitment';
2
2
  import type { string_agent_name } from '../../types/string_agent_name';
3
+ import type { ParsedUnknownCommitment } from './ParsedUnknownCommitment';
3
4
  /**
4
5
  * Result of parsing agent source for commitments
5
6
  *
@@ -18,6 +19,10 @@ export type AgentSourceParseResult = {
18
19
  * All parsed commitments
19
20
  */
20
21
  commitments: ParsedCommitment[];
22
+ /**
23
+ * Uppercase commitment blocks whose types are not registered by Promptbook.
24
+ */
25
+ unknownCommitments: ParsedUnknownCommitment[];
21
26
  /**
22
27
  * Lines that are not commitments (for system message)
23
28
  */
@@ -0,0 +1,26 @@
1
+ /**
2
+ * An uppercase Book commitment block whose keyword is not registered by Promptbook.
3
+ *
4
+ * Unknown commitments are retained as system-message context instead of being applied
5
+ * as executable commitments.
6
+ *
7
+ * @private internal type of `parseAgentSourceWithCommitments`
8
+ */
9
+ export type ParsedUnknownCommitment = {
10
+ /**
11
+ * Uppercase unknown commitment type, for example `FOO` or `BAR BZZ`.
12
+ */
13
+ readonly type: string;
14
+ /**
15
+ * Original first line, retained for precise editor diagnostics.
16
+ */
17
+ readonly originalLine: string;
18
+ /**
19
+ * Line number in the agent source (1-based).
20
+ */
21
+ readonly lineNumber: number;
22
+ /**
23
+ * Complete unknown commitment block, including its keyword and continuation lines.
24
+ */
25
+ readonly source: string;
26
+ };
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Creates the regex used to recognize the uppercase commitment type at the beginning of a Book line.
3
+ *
4
+ * A fresh regular expression keeps Monaco tokenizer state isolated from parser calls.
5
+ *
6
+ * @returns Regular expression matching one Book commitment-like line.
7
+ *
8
+ * @private internal utility of Book parsing and `<BookEditor/>`
9
+ */
10
+ export declare function createBookCommitmentLineTypeRegex(): RegExp;
11
+ /**
12
+ * Extracts the uppercase commitment type from a Book line, including types not registered by Promptbook.
13
+ *
14
+ * @param line - One raw Book source line.
15
+ * @returns Matched commitment type or `null` when the line does not begin with commitment syntax.
16
+ *
17
+ * @private internal utility of Book parsing and `<BookEditor/>`
18
+ */
19
+ export declare function getBookCommitmentLineType(line: string): string | null;
@@ -1,4 +1,6 @@
1
1
  import type { Usage } from '../execution/Usage';
2
+ import type { AgentMessageProjectChange } from '../utils/agent-message-runtime/AgentMessageProjectChange';
3
+ import type { AgentMessageTouchedExternalSource } from '../utils/agent-message-runtime/AgentMessageTouchedExternalSource';
2
4
  import type { CodexLoginMethod } from './codexLoginMethod';
3
5
  /**
4
6
  * File suffix appended to one answered message book to store its run report sidecar.
@@ -9,6 +11,23 @@ import type { CodexLoginMethod } from './codexLoginMethod';
9
11
  * @private internal constant of the agent folder convention
10
12
  */
11
13
  export declare const AGENT_MESSAGE_RUN_REPORT_FILE_SUFFIX = ".report.json";
14
+ /**
15
+ * Exact wall-clock interval during which one harness processed an agent message.
16
+ *
17
+ * Note: [🚉] This is fully serializable as JSON
18
+ *
19
+ * @private internal type of the agent folder convention
20
+ */
21
+ export type AgentMessageRunExecutionTiming = {
22
+ /**
23
+ * ISO 8601 timestamp captured immediately before the harness begins the message.
24
+ */
25
+ readonly startedAt: string;
26
+ /**
27
+ * ISO 8601 timestamp captured when the harness finishes the message.
28
+ */
29
+ readonly finishedAt: string;
30
+ };
12
31
  /**
13
32
  * Report describing how one queued agent message was answered by a CLI harness runner.
14
33
  *
@@ -44,6 +63,33 @@ export type AgentMessageRunReport = {
44
63
  * Usage statistics of the run (price, token counts, duration).
45
64
  */
46
65
  readonly usage: Usage;
66
+ /**
67
+ * Measured wall-clock timing of the actual harness execution, excluding time spent waiting in the queue.
68
+ */
69
+ readonly executionTiming?: AgentMessageRunExecutionTiming;
70
+ /**
71
+ * Directory names of the agent projects the harness worked with while answering the message.
72
+ *
73
+ * Reported by the runner from its live runtime log, which is deleted once the message is
74
+ * answered, so this is the only trace of the projects one answer viewed or edited.
75
+ */
76
+ readonly touchedProjectNames?: ReadonlyArray<string>;
77
+ /**
78
+ * Sources outside the agent — integrations, websites and web searches — the harness reached
79
+ * while answering the message.
80
+ *
81
+ * Reported from the same live runtime log as `touchedProjectNames`, so this is the only trace
82
+ * of what one answer touched beyond the agent itself.
83
+ */
84
+ readonly touchedExternalSources?: ReadonlyArray<AgentMessageTouchedExternalSource>;
85
+ /**
86
+ * Changes the harness made to the agent projects while answering the message.
87
+ *
88
+ * Every agent project is a git repository and the runner commits each answer into it, so one
89
+ * entry describes exactly what one message did to one project — including the diff of the
90
+ * commit it created.
91
+ */
92
+ readonly projectChanges?: ReadonlyArray<AgentMessageProjectChange>;
47
93
  };
48
94
  /**
49
95
  * Builds the run-report sidecar path for one message book path.
@@ -0,0 +1,127 @@
1
+ /**
2
+ * Relative directory holding the planned-message sidecar of each queued message.
3
+ *
4
+ * @private internal convention shared by the Agents Server and agent-folder runner
5
+ */
6
+ export declare const AGENT_PLANNED_MESSAGES_DIRECTORY_PATH: string;
7
+ /**
8
+ * Command actions an agent can request from its planned-message sidecar.
9
+ *
10
+ * @private internal convention shared by the Agents Server and agent-folder runner
11
+ */
12
+ export declare const AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS: readonly ["set", "update", "cancel"];
13
+ /**
14
+ * One planned-message command action.
15
+ *
16
+ * @private internal convention shared by the Agents Server and agent-folder runner
17
+ */
18
+ export type AgentPlannedMessageCommandAction = (typeof AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS)[number];
19
+ /**
20
+ * One planned message that is already waiting to wake the agent.
21
+ *
22
+ * A planned message can repeat like `setInterval`, run a bounded number of times, or wake the agent
23
+ * only once, so the whole schedule is what the agent compares with its goal, while `dueAt` only says
24
+ * when the nearest wake-up happens.
25
+ *
26
+ * @private internal convention shared by the Agents Server and agent-folder runner
27
+ */
28
+ export type AgentPlannedMessageSnapshot = {
29
+ readonly timeoutId: string;
30
+ readonly dueAt: string;
31
+ readonly message: string | null;
32
+ /**
33
+ * Repeat interval in milliseconds, or `null` for a planned message that does not repeat at a fixed
34
+ * interval.
35
+ */
36
+ readonly intervalMs: number | null;
37
+ /**
38
+ * Five-field cron expression driving the repetitions, or `null` when the planned message does not
39
+ * follow a cron.
40
+ */
41
+ readonly cronExpression: string | null;
42
+ /**
43
+ * Moment before which the planned message never wakes the agent, or `null` when it has no starting
44
+ * date.
45
+ */
46
+ readonly startsAt: string | null;
47
+ /**
48
+ * Moment after which the planned message never wakes the agent again, or `null` when it has no
49
+ * ending date.
50
+ */
51
+ readonly endsAt: string | null;
52
+ /**
53
+ * Total number of wake-ups the planned message performs, or `null` when it repeats until it is
54
+ * cancelled.
55
+ */
56
+ readonly maxRunCount: number | null;
57
+ /**
58
+ * Number of times the planned message already woke the agent.
59
+ */
60
+ readonly runCount: number;
61
+ };
62
+ /**
63
+ * One command written by the coding harness into its planned-message sidecar.
64
+ *
65
+ * The payload stays untyped on purpose: it is untrusted harness output and is validated by the very
66
+ * same shared planned-message actions that back the model tools and the internal runtime API.
67
+ *
68
+ * For a `set` command, `milliseconds` is the repeat interval of the planned message, not a one-shot
69
+ * delay, and `cronExpression`, `startsAt`, `endsAt`, and `maxRunCount` bound how it repeats. An
70
+ * `update` command changes the very same fields of the planned message named by `timeoutId`, where a
71
+ * field that is left out stays as it is and an explicit `null` removes the bound.
72
+ *
73
+ * @private internal convention shared by the Agents Server and agent-folder runner
74
+ */
75
+ export type AgentPlannedMessageCommand = {
76
+ readonly action: AgentPlannedMessageCommandAction;
77
+ readonly milliseconds?: unknown;
78
+ readonly cronExpression?: unknown;
79
+ readonly startsAt?: unknown;
80
+ readonly endsAt?: unknown;
81
+ readonly maxRunCount?: unknown;
82
+ readonly message?: unknown;
83
+ readonly timeoutId?: unknown;
84
+ };
85
+ /**
86
+ * Planned-message sidecar prepared for one queued message.
87
+ *
88
+ * `currentPlannedMessages` is written by the Agents Server and is read-only for the agent, while
89
+ * `commands` is the only channel through which a coding harness can plan or cancel a wake-up.
90
+ *
91
+ * @private internal convention shared by the Agents Server and agent-folder runner
92
+ */
93
+ export type AgentPlannedMessagesSidecar = {
94
+ readonly version: 1;
95
+ readonly agentPermanentId: string;
96
+ readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
97
+ readonly commands: ReadonlyArray<AgentPlannedMessageCommand>;
98
+ };
99
+ /**
100
+ * Creates the relative planned-message sidecar path of one queued message.
101
+ *
102
+ * @param messageFileName - File name of the queued `.book` message.
103
+ * @returns Relative path of the sidecar inside the agent folder.
104
+ *
105
+ * @private internal convention shared by the Agents Server and agent-folder runner
106
+ */
107
+ export declare function createAgentPlannedMessagesSidecarPath(messageFileName: string): string;
108
+ /**
109
+ * Serializes one planned-message sidecar into its stored representation.
110
+ *
111
+ * @param sidecar - Sidecar prepared for one queued message.
112
+ * @returns Pretty-printed JSON the coding harness can edit by hand.
113
+ *
114
+ * @private internal convention shared by the Agents Server and agent-folder runner
115
+ */
116
+ export declare function createAgentPlannedMessagesSidecarContent(sidecar: AgentPlannedMessagesSidecar): string;
117
+ /**
118
+ * Parses one untrusted planned-message sidecar written back by a coding harness.
119
+ *
120
+ * A malformed sidecar never fails the already answered chat, so this returns `null` instead of throwing.
121
+ *
122
+ * @param sidecarContent - Raw file content read from the agent folder.
123
+ * @returns Normalized sidecar, or `null` when it cannot be used.
124
+ *
125
+ * @private internal convention shared by the Agents Server and agent-folder runner
126
+ */
127
+ export declare function parseAgentPlannedMessagesSidecar(sidecarContent: string): AgentPlannedMessagesSidecar | null;