@promptbook/pdf 0.113.0-9 → 0.114.0-0

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 (202) hide show
  1. package/README.md +4 -3
  2. package/esm/index.es.js +1 -1
  3. package/esm/index.es.js.map +1 -1
  4. package/esm/src/_packages/components.index.d.ts +8 -0
  5. package/esm/src/_packages/core.index.d.ts +4 -0
  6. package/esm/src/_packages/types.index.d.ts +12 -0
  7. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  8. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  9. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  10. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  11. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  12. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  13. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  14. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  15. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  16. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  17. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  18. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  19. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  20. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  21. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  22. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  23. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  24. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  25. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  26. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  27. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  28. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  29. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  30. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  31. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  32. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  33. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  34. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  35. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  36. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  37. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  38. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  39. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  40. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  41. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  42. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  43. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  44. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  45. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  46. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  47. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  48. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  49. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  51. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  52. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  53. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  54. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  55. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  56. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  57. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  58. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  59. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  61. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  62. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  63. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  64. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  65. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  66. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  67. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  68. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  69. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  70. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  71. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  72. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  73. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  74. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  75. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  76. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  77. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  78. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  79. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  80. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  81. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  82. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  83. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  84. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  85. package/esm/src/commitments/META/META.d.ts +2 -0
  86. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  87. package/esm/src/commitments/index.d.ts +2 -1
  88. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  89. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  90. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  91. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  92. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  93. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  94. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  95. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  96. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  97. package/esm/src/version.d.ts +1 -1
  98. package/package.json +2 -2
  99. package/umd/index.umd.js +1 -1
  100. package/umd/index.umd.js.map +1 -1
  101. package/umd/src/_packages/components.index.d.ts +8 -0
  102. package/umd/src/_packages/core.index.d.ts +4 -0
  103. package/umd/src/_packages/types.index.d.ts +12 -0
  104. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  105. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  106. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  107. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  108. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  109. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  110. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  111. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  112. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  113. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  114. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  115. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  116. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  117. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  118. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  119. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  120. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  121. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  122. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  123. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  124. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  125. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  126. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  127. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  128. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  129. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  130. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  131. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  132. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  133. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  134. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  135. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  136. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  137. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  138. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  139. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  140. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  141. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  142. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  143. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  144. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  145. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  146. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  147. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  148. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  149. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  150. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  151. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  152. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  153. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  154. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  155. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  156. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  157. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  158. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  159. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  160. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  161. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  162. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  163. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  164. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  165. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  166. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  167. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  168. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  169. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  170. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  171. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  172. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  173. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  174. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  175. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  176. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  177. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  178. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  179. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  180. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  181. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  182. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  183. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  184. package/umd/src/commitments/META/META.d.ts +2 -0
  185. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  186. package/umd/src/commitments/index.d.ts +2 -1
  187. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  188. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  189. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  190. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  191. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  192. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  193. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  194. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  195. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  196. package/umd/src/version.d.ts +1 -1
  197. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  198. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  199. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  200. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  201. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  202. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -69,6 +69,10 @@ import type { ChatParticipant } from '../book-components/Chat/types/ChatParticip
69
69
  import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
70
70
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
71
71
  import { parseMessageButtons } from '../book-components/Chat/utils/parseMessageButtons';
72
+ import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
73
+ import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
74
+ import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
75
+ import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
72
76
  import { ArrowIcon } from '../book-components/icons/ArrowIcon';
73
77
  import { MicIcon } from '../book-components/icons/MicIcon';
74
78
  import { PauseIcon } from '../book-components/icons/PauseIcon';
@@ -154,6 +158,10 @@ export type { ChatParticipant };
154
158
  export type { CitationLabelResolver };
155
159
  export type { MessageButton };
156
160
  export { parseMessageButtons };
161
+ export type { MarkdownInlineReference };
162
+ export type { MarkdownInlineReferenceMenuStatus };
163
+ export type { MarkdownInlineReferenceMenuOption };
164
+ export type { MarkdownInlineReferenceMenu };
157
165
  export { ArrowIcon };
158
166
  export { MicIcon };
159
167
  export { PauseIcon };
@@ -22,6 +22,8 @@ import { parseParameters } from '../book-2.0/agent-source/parseParameters';
22
22
  import { isValidBook } from '../book-2.0/agent-source/string_book';
23
23
  import { validateBook } from '../book-2.0/agent-source/string_book';
24
24
  import { DEFAULT_BOOK } from '../book-2.0/agent-source/string_book';
25
+ import type { BookLanguageDocumentationAgent } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
26
+ import type { CreateStandaloneBookLanguageMarkdownOptions } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
25
27
  import { createStandaloneBookLanguageMarkdown } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
26
28
  import { generatePlaceholderAgentProfileImageUrl } from '../book-2.0/utils/generatePlaceholderAgentProfileImageUrl';
27
29
  import { Book } from '../book-3.0/Book';
@@ -258,6 +260,8 @@ export { parseParameters };
258
260
  export { isValidBook };
259
261
  export { validateBook };
260
262
  export { DEFAULT_BOOK };
263
+ export type { BookLanguageDocumentationAgent };
264
+ export type { CreateStandaloneBookLanguageMarkdownOptions };
261
265
  export { createStandaloneBookLanguageMarkdown };
262
266
  export { generatePlaceholderAgentProfileImageUrl };
263
267
  export { Book };
@@ -5,6 +5,8 @@ import type { AgentModelRequirements } from '../book-2.0/agent-source/AgentModel
5
5
  import type { AgentVisibility } from '../book-2.0/agent-source/agentSourceVisibility';
6
6
  import type { CreateAgentModelRequirementsOptions } from '../book-2.0/agent-source/CreateAgentModelRequirementsOptions';
7
7
  import type { string_book } from '../book-2.0/agent-source/string_book';
8
+ import type { BookLanguageDocumentationAgent } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
9
+ import type { CreateStandaloneBookLanguageMarkdownOptions } from '../book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown';
8
10
  import type { BookNodeAgentSource } from '../book-3.0/BookNodeAgentSource';
9
11
  import type { BookNodeAgentSourceOptions } from '../book-3.0/BookNodeAgentSource';
10
12
  import type { CliAgentHarness } from '../book-3.0/CliAgent';
@@ -59,6 +61,10 @@ import type { ChatParticipant } from '../book-components/Chat/types/ChatParticip
59
61
  import type { CitationLabelResolver } from '../book-components/Chat/types/CitationLabelResolver';
60
62
  import type { ParsedCitation } from '../book-components/Chat/utils/parseCitationsFromContent';
61
63
  import type { MessageButton } from '../book-components/Chat/utils/parseMessageButtons';
64
+ import type { MarkdownInlineReference } from '../book-components/Chat/utils/renderMarkdown';
65
+ import type { MarkdownInlineReferenceMenuStatus } from '../book-components/Chat/utils/renderMarkdown';
66
+ import type { MarkdownInlineReferenceMenuOption } from '../book-components/Chat/utils/renderMarkdown';
67
+ import type { MarkdownInlineReferenceMenu } from '../book-components/Chat/utils/renderMarkdown';
62
68
  import type { TeamToolResult } from '../book-components/Chat/utils/toolCallParsing/TeamToolResult';
63
69
  import type { QrCodeOptions } from '../book-components/Qr/useQrCode';
64
70
  import type { AgentCollection } from '../collection/agent-collection/AgentCollection';
@@ -448,6 +454,8 @@ export type { AgentModelRequirements };
448
454
  export type { AgentVisibility };
449
455
  export type { CreateAgentModelRequirementsOptions };
450
456
  export type { string_book };
457
+ export type { BookLanguageDocumentationAgent };
458
+ export type { CreateStandaloneBookLanguageMarkdownOptions };
451
459
  export type { BookNodeAgentSource };
452
460
  export type { BookNodeAgentSourceOptions };
453
461
  export type { CliAgentHarness };
@@ -502,6 +510,10 @@ export type { ChatParticipant };
502
510
  export type { CitationLabelResolver };
503
511
  export type { ParsedCitation };
504
512
  export type { MessageButton };
513
+ export type { MarkdownInlineReference };
514
+ export type { MarkdownInlineReferenceMenuStatus };
515
+ export type { MarkdownInlineReferenceMenuOption };
516
+ export type { MarkdownInlineReferenceMenu };
505
517
  export type { TeamToolResult };
506
518
  export type { QrCodeOptions };
507
519
  export type { AgentCollection };
@@ -81,6 +81,13 @@ export type AgentBasicInformation = {
81
81
  * This is the line starting with "INITIAL MESSAGE"
82
82
  */
83
83
  initialMessage: string | null;
84
+ /**
85
+ * Optional custom thinking placeholder variants shown while this agent is composing a reply.
86
+ *
87
+ * This is derived from `META THINKING MESSAGE` commitments.
88
+ * Multiple commitments are preserved as multiple variants.
89
+ */
90
+ thinkingMessages?: Array<string>;
84
91
  /**
85
92
  * Metadata commitments parsed from META lines
86
93
  * Each META commitment has the format "META TYPE content"
@@ -4,4 +4,4 @@ import type { AgentBasicInformation } from '../AgentBasicInformation';
4
4
  *
5
5
  * @private internal utility of `parseAgentSource`
6
6
  */
7
- export type ParsedAgentProfile = Pick<AgentBasicInformation, 'meta' | 'links' | 'capabilities' | 'samples' | 'knowledgeSources'>;
7
+ export type ParsedAgentProfile = Pick<AgentBasicInformation, 'meta' | 'links' | 'capabilities' | 'samples' | 'knowledgeSources' | 'thinkingMessages'>;
@@ -1,27 +1,19 @@
1
1
  /**
2
2
  * One end-to-end Book language example used in standalone documentation.
3
3
  *
4
+ * Only the language-neutral Book source lives here. Title, goal, and
5
+ * walkthrough are translated and therefore kept in
6
+ * `BookLanguageManualDictionary.exampleTexts`.
7
+ *
4
8
  * @private internal utility of `createStandaloneBookLanguageMarkdown`
5
9
  */
6
10
  export type BookLanguageDocumentationExample = {
7
11
  /**
8
- * Stable identifier used for markdown anchors.
12
+ * Stable identifier used for markdown anchors and translation lookup.
9
13
  */
10
14
  readonly id: string;
11
- /**
12
- * Human-readable example title.
13
- */
14
- readonly title: string;
15
- /**
16
- * Goal of the example in one short sentence.
17
- */
18
- readonly goal: string;
19
15
  /**
20
16
  * Full Book source shown to readers.
21
17
  */
22
18
  readonly source: string;
23
- /**
24
- * Step-by-step walkthrough of how the source works.
25
- */
26
- readonly walkthrough: ReadonlyArray<string>;
27
19
  };
@@ -0,0 +1,195 @@
1
+ import type { string_language } from '../../types/string_token';
2
+ /**
3
+ * One chapter of the standalone Book language manual.
4
+ *
5
+ * The heading anchors are intentionally **not** part of the dictionary, so deep
6
+ * links stay stable across languages.
7
+ *
8
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
9
+ */
10
+ export type BookLanguageManualChapter = {
11
+ /**
12
+ * Translated chapter heading.
13
+ */
14
+ readonly title: string;
15
+ /**
16
+ * Translated chapter body as markdown.
17
+ */
18
+ readonly body: string;
19
+ };
20
+ /**
21
+ * Translated prose of one end-to-end example.
22
+ *
23
+ * The Book source of an example is language-neutral and therefore stays in
24
+ * `bookLanguageDocumentationExamples`.
25
+ *
26
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
27
+ */
28
+ export type BookLanguageManualExampleText = {
29
+ /**
30
+ * Translated example heading.
31
+ */
32
+ readonly title: string;
33
+ /**
34
+ * Translated one-line goal of the example.
35
+ */
36
+ readonly goal: string;
37
+ /**
38
+ * Translated walkthrough steps explaining the example source.
39
+ */
40
+ readonly walkthrough: ReadonlyArray<string>;
41
+ };
42
+ /**
43
+ * One practical "don't vs do" pitfall item for Book language authoring.
44
+ *
45
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
46
+ */
47
+ export type BookLanguageManualPitfall = {
48
+ /**
49
+ * Short pitfall title.
50
+ */
51
+ readonly title: string;
52
+ /**
53
+ * Description of what to avoid.
54
+ */
55
+ readonly dont: string;
56
+ /**
57
+ * Practical corrective action.
58
+ */
59
+ readonly doInstead: string;
60
+ };
61
+ /**
62
+ * Every translatable string of the standalone Book language manual.
63
+ *
64
+ * Commitment reference bodies are deliberately excluded, because they are the
65
+ * canonical English specification maintained next to each commitment in
66
+ * `src/commitments`.
67
+ *
68
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
69
+ */
70
+ export type BookLanguageManualDictionary = {
71
+ /**
72
+ * Language code this dictionary is written in.
73
+ */
74
+ readonly language: string_language;
75
+ /**
76
+ * Manual title used as the top-level heading.
77
+ */
78
+ readonly title: string;
79
+ /**
80
+ * Blockquote lines rendered directly under the manual title.
81
+ */
82
+ readonly introLines: ReadonlyArray<string>;
83
+ /**
84
+ * Labels of the generated manual metadata bullets.
85
+ */
86
+ readonly metadataLabels: {
87
+ readonly bookLanguageVersion: string;
88
+ readonly generatedAt: string;
89
+ readonly commitmentGroups: string;
90
+ readonly implementedCommitments: string;
91
+ readonly placeholderCommitments: string;
92
+ };
93
+ /**
94
+ * Heading of the table of contents.
95
+ */
96
+ readonly tableOfContentsTitle: string;
97
+ /**
98
+ * Chapters rendered in their canonical order.
99
+ */
100
+ readonly chapters: {
101
+ readonly whatIs: BookLanguageManualChapter;
102
+ readonly mentalModel: BookLanguageManualChapter;
103
+ readonly howToStructure: BookLanguageManualChapter;
104
+ readonly primitives: BookLanguageManualChapter;
105
+ readonly commitmentCatalog: BookLanguageManualChapter;
106
+ readonly examples: Pick<BookLanguageManualChapter, 'title'>;
107
+ readonly pitfalls: Pick<BookLanguageManualChapter, 'title'>;
108
+ readonly tutorial: BookLanguageManualChapter;
109
+ readonly lowLevelCommitments: BookLanguageManualChapter;
110
+ };
111
+ /**
112
+ * Sub-sections of the "Mental model of an agent" chapter.
113
+ */
114
+ readonly mentalModelSections: {
115
+ readonly detectedIntro: string;
116
+ readonly detectedProfileLabel: string;
117
+ readonly detectedBehaviorLabel: string;
118
+ readonly detectedToolingLabel: string;
119
+ readonly detectedCompositionLabel: string;
120
+ readonly meta: BookLanguageManualChapter;
121
+ readonly inheritance: BookLanguageManualChapter;
122
+ readonly composition: BookLanguageManualChapter;
123
+ readonly capabilities: BookLanguageManualChapter;
124
+ };
125
+ /**
126
+ * Sub-sections of the "Primitives and constructs reference" chapter.
127
+ */
128
+ readonly primitivesSections: {
129
+ readonly coreSyntax: BookLanguageManualChapter;
130
+ readonly references: BookLanguageManualChapter;
131
+ readonly keywordsTitle: string;
132
+ };
133
+ /**
134
+ * Suffixes distinguishing a server-specific catalog from the portable one.
135
+ */
136
+ readonly commitmentCatalogTitleSuffixes: {
137
+ readonly usedFirst: string;
138
+ readonly all: string;
139
+ };
140
+ /**
141
+ * Labels used in every commitment catalog entry.
142
+ */
143
+ readonly commitmentLabels: {
144
+ readonly status: string;
145
+ readonly aliases: string;
146
+ readonly semantics: string;
147
+ readonly typeSchema: string;
148
+ readonly blockSchema: string;
149
+ readonly lowLevelNotice: string;
150
+ readonly usage: string;
151
+ readonly usageOccurrence: string;
152
+ readonly usageOccurrences: string;
153
+ readonly statusImplemented: string;
154
+ readonly statusPlaceholder: string;
155
+ readonly noAliases: string;
156
+ };
157
+ /**
158
+ * Labels used by end-to-end example sections.
159
+ */
160
+ readonly exampleLabels: {
161
+ readonly commitmentsUsed: string;
162
+ readonly fullSource: string;
163
+ readonly goal: string;
164
+ readonly walkthrough: string;
165
+ readonly noCommitments: string;
166
+ };
167
+ /**
168
+ * Translated prose of the portable examples, keyed by example id.
169
+ */
170
+ readonly exampleTexts: Readonly<Record<string, BookLanguageManualExampleText>>;
171
+ /**
172
+ * Labels used by the "Do nots and common pitfalls" chapter.
173
+ */
174
+ readonly pitfallLabels: {
175
+ readonly dont: string;
176
+ readonly doInstead: string;
177
+ };
178
+ /**
179
+ * Translated pitfall entries.
180
+ */
181
+ readonly pitfalls: ReadonlyArray<BookLanguageManualPitfall>;
182
+ /**
183
+ * Closing parts of the "Build an agent from scratch" chapter.
184
+ */
185
+ readonly tutorialSections: {
186
+ readonly serverAgentsHint: string;
187
+ readonly templateIntro: string;
188
+ readonly checklistTitle: string;
189
+ readonly checklistBody: string;
190
+ };
191
+ /**
192
+ * Closing "Generated from" block of the manual.
193
+ */
194
+ readonly footer: BookLanguageManualChapter;
195
+ };
@@ -3,7 +3,8 @@ import type { BookLanguageDocumentationExample } from './BookLanguageDocumentati
3
3
  * End-to-end examples used by the standalone Book language documentation.
4
4
  *
5
5
  * These are intentionally compact but complete, so they can be copy-pasted and
6
- * used as practical starting points.
6
+ * used as practical starting points. Their prose lives in the manual
7
+ * dictionaries, keyed by the `id` of each example.
7
8
  *
8
9
  * @private internal utility of `createStandaloneBookLanguageMarkdown`
9
10
  */
@@ -1,4 +1,46 @@
1
+ import type { string_book } from '../agent-source/string_book';
1
2
  import type { string_markdown } from '../../types/string_markdown';
3
+ import type { string_language } from '../../types/string_token';
4
+ /**
5
+ * Agent source incorporated into a server-specific Book language manual.
6
+ *
7
+ * @public exported from `@promptbook/core`
8
+ */
9
+ export type BookLanguageDocumentationAgent = {
10
+ /**
11
+ * Human-readable title shown above the baked example.
12
+ */
13
+ readonly agentName: string;
14
+ /**
15
+ * Current Book source used both as an example and to detect used commitments.
16
+ */
17
+ readonly agentSource: string_book;
18
+ };
19
+ /**
20
+ * Optional context used to tailor a standalone Book language manual.
21
+ *
22
+ * An empty `agents` array deliberately has the same effect as omitting this
23
+ * option, which keeps the non-customized manual portable between servers.
24
+ *
25
+ * @public exported from `@promptbook/core`
26
+ */
27
+ export type CreateStandaloneBookLanguageMarkdownOptions = {
28
+ /**
29
+ * Server agents whose sources should be baked into examples and usage priority.
30
+ */
31
+ readonly agents?: ReadonlyArray<BookLanguageDocumentationAgent>;
32
+ /**
33
+ * Language the manual should be written in, English is used as the fallback.
34
+ */
35
+ readonly language?: string_language;
36
+ /**
37
+ * Whether the closing chapter with low-level commitments should be generated.
38
+ *
39
+ * Low-level commitments are intended for advanced use only, so they are
40
+ * omitted unless they are explicitly requested.
41
+ */
42
+ readonly isLowLevelCommitmentsIncluded?: boolean;
43
+ };
2
44
  /**
3
45
  * Creates one standalone markdown guide for Book language (Book 2.0 / agent language).
4
46
  *
@@ -11,4 +53,4 @@ import type { string_markdown } from '../../types/string_markdown';
11
53
  *
12
54
  * @public exported from `@promptbook/core`
13
55
  */
14
- export declare function createStandaloneBookLanguageMarkdown(): string_markdown;
56
+ export declare function createStandaloneBookLanguageMarkdown(options?: CreateStandaloneBookLanguageMarkdownOptions): string_markdown;
@@ -0,0 +1,10 @@
1
+ import type { BookLanguageManualDictionary } from './BookLanguageManualDictionary';
2
+ /**
3
+ * Czech translation of the standalone Book language manual.
4
+ *
5
+ * Commitment keywords are intentionally kept in English, because they are part
6
+ * of the Book language syntax and must be written exactly as-is.
7
+ *
8
+ * @private internal constant of `createStandaloneBookLanguageMarkdown`
9
+ */
10
+ export declare const czechBookLanguageManualDictionary: BookLanguageManualDictionary;
@@ -0,0 +1,10 @@
1
+ import type { BookLanguageManualDictionary } from './BookLanguageManualDictionary';
2
+ /**
3
+ * Canonical English wording of the standalone Book language manual.
4
+ *
5
+ * Every other language pack is a translation of this dictionary and is resolved
6
+ * through `getBookLanguageManualDictionary`.
7
+ *
8
+ * @private internal constant of `createStandaloneBookLanguageMarkdown`
9
+ */
10
+ export declare const englishBookLanguageManualDictionary: BookLanguageManualDictionary;
@@ -0,0 +1,33 @@
1
+ import { getGroupedCommitmentDefinitions } from '../../commitments/_common/getGroupedCommitmentDefinitions';
2
+ /**
3
+ * One grouped commitment definition as returned by the runtime registry.
4
+ *
5
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
6
+ */
7
+ export type BookLanguageManualCommitmentGroup = ReturnType<typeof getGroupedCommitmentDefinitions>[number];
8
+ /**
9
+ * Commitment groups of the manual, split by how prominently they are documented.
10
+ *
11
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
12
+ */
13
+ export type BookLanguageManualCommitmentGroups = {
14
+ /**
15
+ * Commitments documented in the main catalog.
16
+ */
17
+ readonly documented: ReadonlyArray<BookLanguageManualCommitmentGroup>;
18
+ /**
19
+ * Low-level and unfinished commitments documented in their own closing chapter.
20
+ */
21
+ readonly lowLevel: ReadonlyArray<BookLanguageManualCommitmentGroup>;
22
+ };
23
+ /**
24
+ * Splits the commitment registry into the groups documented by the manual.
25
+ *
26
+ * Deprecated commitments are intentionally left out completely, so that the
27
+ * manual never teaches a keyword that should no longer be written into a book.
28
+ *
29
+ * @returns Commitment groups for the main catalog and for the low-level chapter.
30
+ *
31
+ * @private internal utility of `createStandaloneBookLanguageMarkdown`
32
+ */
33
+ export declare function getBookLanguageManualCommitmentGroups(): BookLanguageManualCommitmentGroups;
@@ -0,0 +1,15 @@
1
+ import type { string_language } from '../../types/string_token';
2
+ import type { BookLanguageManualDictionary } from './BookLanguageManualDictionary';
3
+ /**
4
+ * Resolves the manual dictionary for one requested language.
5
+ *
6
+ * Unknown and region-qualified codes (for example `cs-CZ`) fall back to the
7
+ * closest available pack and finally to English, so an export never fails
8
+ * because of an unsupported language.
9
+ *
10
+ * @param language - Requested language code.
11
+ * @returns Manual dictionary for the requested language or the English fallback.
12
+ *
13
+ * @private internal utility of `createStandaloneBookLanguageMarkdown`
14
+ */
15
+ export declare function getBookLanguageManualDictionary(language: string_language | null | undefined): BookLanguageManualDictionary;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Creates a safe markdown fenced code block even when content contains backticks.
3
+ *
4
+ * @param content - Raw code content.
5
+ * @param language - Optional info-string language label.
6
+ * @returns Fenced code block.
7
+ *
8
+ * @private internal utility of `createStandaloneBookLanguageMarkdown`
9
+ */
10
+ export declare function getSafeCodeBlock(content: string, language?: string): string;
@@ -0,0 +1,30 @@
1
+ import type { BookLanguageManualDictionary } from './BookLanguageManualDictionary';
2
+ import type { BookLanguageManualCommitmentGroup } from './getBookLanguageManualCommitmentGroups';
3
+ /**
4
+ * Options for rendering one commitment section of the generated catalog.
5
+ *
6
+ * @private internal type of `createStandaloneBookLanguageMarkdown`
7
+ */
8
+ export type RenderCommitmentCatalogSectionOptions = {
9
+ /**
10
+ * Grouped commitment definition with aliases.
11
+ */
12
+ readonly groupedCommitment: BookLanguageManualCommitmentGroup;
13
+ /**
14
+ * Number of uses across the selected server agents.
15
+ */
16
+ readonly usageCount: number;
17
+ /**
18
+ * Translated labels of the manual.
19
+ */
20
+ readonly dictionary: BookLanguageManualDictionary;
21
+ };
22
+ /**
23
+ * Renders one commitment section in the generated catalog.
24
+ *
25
+ * @param options - Commitment group, usage statistics, and translated labels.
26
+ * @returns Markdown section for a single commitment.
27
+ *
28
+ * @private internal utility of `createStandaloneBookLanguageMarkdown`
29
+ */
30
+ export declare function renderCommitmentCatalogSection(options: RenderCommitmentCatalogSectionOptions): string;
@@ -35,9 +35,10 @@ type GroupedCommitmentDocumentationSource = {
35
35
  * surfaces present them as one conceptual switch instead of two isolated pages.
36
36
  *
37
37
  * @param group - Grouped commitment metadata.
38
+ * @param headingLevelShift - How many levels the entry is nested by its host document.
38
39
  * @returns Markdown body for the docs page/catalog entry.
39
40
  *
40
41
  * @private internal utility of `createStandaloneBookLanguageMarkdown`
41
42
  */
42
- export declare function renderGroupedCommitmentDocumentationMarkdown(group: GroupedCommitmentDocumentationSource): string;
43
+ export declare function renderGroupedCommitmentDocumentationMarkdown(group: GroupedCommitmentDocumentationSource, headingLevelShift?: number): string;
43
44
  export {};
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Converts a heading label into a stable markdown anchor id.
3
+ *
4
+ * Anchors are generated from language-neutral identifiers, so deep links into
5
+ * the manual keep working in every translation.
6
+ *
7
+ * @param value - Raw heading/identifier text.
8
+ * @returns Stable lowercase anchor id.
9
+ *
10
+ * @private internal utility of `createStandaloneBookLanguageMarkdown`
11
+ */
12
+ export declare function toStableAnchorId(value: string): string;
@@ -0,0 +1,78 @@
1
+ import type { Usage } from '../execution/Usage';
2
+ import type { CodexLoginMethod } from './codexLoginMethod';
3
+ /**
4
+ * File suffix appended to one answered message book to store its run report sidecar.
5
+ *
6
+ * For example `messages/finished/2026-07-16-thread.book` is reported in
7
+ * `messages/finished/2026-07-16-thread.book.report.json`.
8
+ *
9
+ * @private internal constant of the agent folder convention
10
+ */
11
+ export declare const AGENT_MESSAGE_RUN_REPORT_FILE_SUFFIX = ".report.json";
12
+ /**
13
+ * Report describing how one queued agent message was answered by a CLI harness runner.
14
+ *
15
+ * The agent runner writes it next to the answered message book so consumers
16
+ * (for example the Agents Server task details) can show which runner, authentication
17
+ * method and usage one answer cost without re-parsing the runner output.
18
+ *
19
+ * Note: [🚉] This is fully serializable as JSON
20
+ *
21
+ * @private internal type of the agent folder convention
22
+ */
23
+ export type AgentMessageRunReport = {
24
+ /**
25
+ * Report schema version for forward compatibility.
26
+ */
27
+ readonly version: 1;
28
+ /**
29
+ * Name of the harness runner which answered the message, for example `codex` or `claude-code`.
30
+ */
31
+ readonly runnerName: string;
32
+ /**
33
+ * Model identifier used by the runner, when known.
34
+ */
35
+ readonly modelName?: string;
36
+ /**
37
+ * Authentication method the runner used, when it can be determined.
38
+ *
39
+ * Currently only the OpenAI Codex runner reports this (its ChatGPT account vs. `OPENAI_API_KEY`);
40
+ * other runners leave it `undefined`.
41
+ */
42
+ readonly loginMethod?: CodexLoginMethod;
43
+ /**
44
+ * Usage statistics of the run (price, token counts, duration).
45
+ */
46
+ readonly usage: Usage;
47
+ };
48
+ /**
49
+ * Builds the run-report sidecar path for one message book path.
50
+ *
51
+ * Works for absolute and relative paths because the suffix is simply appended.
52
+ *
53
+ * @private internal utility of the agent folder convention
54
+ */
55
+ export declare function buildAgentMessageRunReportPath(messageFilePath: string): string;
56
+ /**
57
+ * Serializes one run report into the stable JSON format persisted next to the answered message book.
58
+ *
59
+ * @private internal utility of the agent folder convention
60
+ */
61
+ export declare function serializeAgentMessageRunReport(report: AgentMessageRunReport): string;
62
+ /**
63
+ * Validates one already-parsed JSON value as a run report.
64
+ *
65
+ * @returns The typed report, or `null` when the value does not match the expected shape,
66
+ * so consumers can silently skip malformed or foreign sidecar files.
67
+ *
68
+ * @private internal utility of the agent folder convention
69
+ */
70
+ export declare function normalizeAgentMessageRunReport(value: unknown): AgentMessageRunReport | null;
71
+ /**
72
+ * Parses one run-report sidecar file content.
73
+ *
74
+ * @returns The typed report, or `null` when the content is not valid JSON or does not match the expected shape.
75
+ *
76
+ * @private internal utility of the agent folder convention
77
+ */
78
+ export declare function parseAgentMessageRunReport(reportFileContent: string): AgentMessageRunReport | null;
@@ -0,0 +1 @@
1
+ export {};
@@ -28,3 +28,12 @@ export declare const AGENT_FINISHED_MESSAGES_DIRECTORY_PATH: string;
28
28
  * @public exported from `@promptbook/node`
29
29
  */
30
30
  export declare const AGENT_FAILED_MESSAGES_DIRECTORY_PATH: string;
31
+ /**
32
+ * Relative path to the agent-owned projects root used by the agent folder convention.
33
+ *
34
+ * Each direct child directory is one project — an isolated folder the agent fully controls
35
+ * (files, scripts, optionally its own git repository).
36
+ *
37
+ * @private internal constant of the agent folder convention, used by agent runners and the Agents Server
38
+ */
39
+ export declare const AGENT_PROJECTS_DIRECTORY_PATH = "projects";