@promptbook/javascript 0.113.0-9 → 0.114.0-1

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 (200) hide show
  1. package/README.md +4 -3
  2. package/esm/index.es.js +1 -1
  3. package/esm/src/_packages/components.index.d.ts +8 -0
  4. package/esm/src/_packages/core.index.d.ts +4 -0
  5. package/esm/src/_packages/types.index.d.ts +12 -0
  6. package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  7. package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  8. package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  9. package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  10. package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  11. package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  12. package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  13. package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  14. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  15. package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  16. package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  17. package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  18. package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  19. package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  20. package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  21. package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
  22. package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
  23. package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  24. package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  25. package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  26. package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  27. package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  28. package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  29. package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  30. package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  31. package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  32. package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  33. package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  34. package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  35. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  36. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  37. package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  38. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  39. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  40. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  41. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  42. package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  43. package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  44. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  45. package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  46. package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  47. package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  48. package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  49. package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  50. package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  51. package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  52. package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  53. package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  54. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  55. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  56. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  57. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  58. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  59. package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  60. package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  61. package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
  62. package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  63. package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  64. package/esm/src/cli/cli-commands/coder.d.ts +1 -0
  65. package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  66. package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  67. package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  68. package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  69. package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  70. package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  71. package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  72. package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  73. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  74. package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  75. package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  76. package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  77. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  78. package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  79. package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  80. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  81. package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  82. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  83. package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  84. package/esm/src/commitments/META/META.d.ts +2 -0
  85. package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  86. package/esm/src/commitments/index.d.ts +2 -1
  87. package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
  88. package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  89. package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  90. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  91. package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  92. package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  93. package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  94. package/esm/src/utils/html/escapeHtml.d.ts +9 -0
  95. package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  96. package/esm/src/version.d.ts +1 -1
  97. package/package.json +2 -2
  98. package/umd/index.umd.js +1 -1
  99. package/umd/src/_packages/components.index.d.ts +8 -0
  100. package/umd/src/_packages/core.index.d.ts +4 -0
  101. package/umd/src/_packages/types.index.d.ts +12 -0
  102. package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
  103. package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
  104. package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
  105. package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
  106. package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
  107. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
  108. package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
  109. package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
  110. package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
  111. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
  112. package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
  113. package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
  114. package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
  115. package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
  116. package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
  117. package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
  118. package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
  119. package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
  120. package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
  121. package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
  122. package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
  123. package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
  124. package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
  125. package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
  126. package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
  127. package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
  128. package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
  129. package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
  130. package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
  131. package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
  132. package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
  133. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
  134. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
  135. package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
  136. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
  137. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
  138. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
  139. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
  140. package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
  141. package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
  142. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
  143. package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
  144. package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
  145. package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
  146. package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
  147. package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
  148. package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
  149. package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
  150. package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
  151. package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
  152. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
  153. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
  154. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
  155. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
  156. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
  157. package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
  158. package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
  159. package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
  160. package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
  161. package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
  162. package/umd/src/cli/cli-commands/coder.d.ts +1 -0
  163. package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
  164. package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
  165. package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
  166. package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
  167. package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
  168. package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
  169. package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
  170. package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
  171. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
  172. package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
  173. package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
  174. package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
  175. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
  176. package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
  177. package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
  178. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
  179. package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
  180. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
  181. package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
  182. package/umd/src/commitments/META/META.d.ts +2 -0
  183. package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
  184. package/umd/src/commitments/index.d.ts +2 -1
  185. package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
  186. package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
  187. package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
  188. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
  189. package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
  190. package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
  191. package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
  192. package/umd/src/utils/html/escapeHtml.d.ts +9 -0
  193. package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
  194. package/umd/src/version.d.ts +1 -1
  195. package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  196. package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  197. package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
  198. package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
  199. /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
  200. /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
@@ -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";
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Authentication method that the OpenAI Codex CLI used for one run.
3
+ *
4
+ * - `chatgpt` — the server's ChatGPT account (subscription) login was used.
5
+ * - `api` — `OPENAI_API_KEY` API-key authentication was used.
6
+ * - `unknown` — the runner could not determine which method Codex used.
7
+ *
8
+ * @private internal type of the OpenAI Codex runner and the Agents Server task details
9
+ */
10
+ export type CodexLoginMethod = 'chatgpt' | 'api' | 'unknown';
11
+ /**
12
+ * Stable stdout marker printed by the generated Codex runner script to report which login method it used.
13
+ *
14
+ * The marker is followed by the resolved method keyword, for example `ptbk-codex-login-method: chatgpt`,
15
+ * so `parseCodexLoginMethodFromOutput` can recover it from the captured runner output.
16
+ *
17
+ * @private internal constant of the OpenAI Codex runner
18
+ */
19
+ export declare const CODEX_LOGIN_METHOD_MARKER = "ptbk-codex-login-method:";
20
+ /**
21
+ * Substring that the `codex login status` command prints when the Codex CLI is signed in with a
22
+ * ChatGPT subscription account instead of an `OPENAI_API_KEY`.
23
+ *
24
+ * This is the single source of truth for detecting an active ChatGPT login, reused by the Codex runner
25
+ * script and by the Agents Server harness authentication status resolver.
26
+ *
27
+ * @private internal constant of the OpenAI Codex runner and the Agents Server Harness Auth
28
+ */
29
+ export declare const CODEX_CHATGPT_LOGIN_STATUS_NEEDLE = "Logged in using ChatGPT";
30
+ /**
31
+ * Formats one Codex login method as a short human-readable label for prompt status lines and task details.
32
+ *
33
+ * @returns The label to append to a status line, or `undefined` when there is no meaningful method to show
34
+ * (for example the runner is not Codex or the method could not be determined), so callers can omit the suffix.
35
+ *
36
+ * @private internal utility of the OpenAI Codex runner and the Agents Server task details
37
+ */
38
+ export declare function formatCodexLoginMethod(loginMethod: CodexLoginMethod | undefined): string | undefined;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * One token emitted while highlighting Book source.
3
+ *
4
+ * @private internal type of `BookEditor`
5
+ */
6
+ export type BookEditorSyntaxTokenName = 'title' | 'commitment' | 'note-commitment' | 'todo-commitment' | 'parameter' | 'agent-reference' | 'code-block';
7
+ /**
8
+ * Visual style of one Book syntax token.
9
+ *
10
+ * @private internal type of `BookEditor`
11
+ */
12
+ export type BookEditorSyntaxTokenStyle = {
13
+ /**
14
+ * Token this style belongs to.
15
+ */
16
+ readonly token: BookEditorSyntaxTokenName;
17
+ /**
18
+ * Text color of the token.
19
+ */
20
+ readonly foreground: string;
21
+ /**
22
+ * Optional background color of the token.
23
+ */
24
+ readonly background?: string;
25
+ /**
26
+ * Optional space-separated font style, for example `bold underline`.
27
+ */
28
+ readonly fontStyle?: string;
29
+ };
30
+ /**
31
+ * Single source of truth for how Book source is colored.
32
+ *
33
+ * The Monaco theme of `<BookEditor/>` and every static rendering of Book source
34
+ * (for example the Book language manual PDF) are derived from these styles, so
35
+ * a book always looks the same no matter where it is displayed.
36
+ *
37
+ * @private internal constant of `BookEditor`
38
+ */
39
+ export declare const BOOK_EDITOR_SYNTAX_TOKEN_STYLES: ReadonlyArray<BookEditorSyntaxTokenStyle>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Creates the CSS matching the markup of `highlightBookSourceToHtml`.
3
+ *
4
+ * Both the stylesheet and the markup are derived from the shared
5
+ * `BOOK_EDITOR_SYNTAX_TOKEN_STYLES`, therefore a statically rendered book keeps
6
+ * the exact colors of `<BookEditor/>`.
7
+ *
8
+ * @returns CSS rules for every Book syntax token.
9
+ *
10
+ * @private internal utility of `BookEditor`
11
+ */
12
+ export declare function createBookSourceHighlightStyles(): string;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Prefix of the CSS class names emitted for highlighted Book source.
3
+ *
4
+ * @private internal constant of `BookEditor`
5
+ */
6
+ export declare const BOOK_SYNTAX_TOKEN_CLASS_NAME_PREFIX = "book-syntax-";
7
+ /**
8
+ * Highlights Book source into static HTML using the `<BookEditor/>` token colors.
9
+ *
10
+ * `<BookEditor/>` itself is a Monaco-based browser component and cannot run
11
+ * where a book has to be rendered as plain markup (server-side exports such as
12
+ * the Book language manual PDF). This function reuses the very same
13
+ * tokenization patterns and token names, so both surfaces stay in sync.
14
+ *
15
+ * @param bookSource - Raw Book source to highlight.
16
+ * @returns HTML with one `<span>` per highlighted token, safe to place into `<pre>`.
17
+ *
18
+ * @private internal utility of `BookEditor`
19
+ */
20
+ export declare function highlightBookSourceToHtml(bookSource: string): string;
@@ -13,6 +13,11 @@ export type ChatCitationModalProps = {
13
13
  participants: ReadonlyArray<ChatParticipant>;
14
14
  resolveCitationLabel?: CitationLabelResolver;
15
15
  soundSystem?: ChatSoundSystem;
16
+ /**
17
+ * Optional agent identifier (name or permanent id) scoping the live browser fallback
18
+ * to the agent's persistent server-side browser profile.
19
+ */
20
+ agentIdentifier?: string;
16
21
  onClose: () => void;
17
22
  };
18
23
  /**
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { MouseEventHandler } from 'react';
2
+ /**
3
+ * Star values available in the chat feedback UI.
4
+ *
5
+ * @private constant of `<Chat/>`
6
+ */
7
+ export declare const CHAT_FEEDBACK_STAR_RATINGS: readonly [1, 2, 3, 4, 5];
8
+ /**
9
+ * Props for the shared chat feedback star icon.
10
+ *
11
+ * @private type of `<Chat/>`
12
+ */
13
+ type ChatFeedbackStarProps = {
14
+ readonly isActive: boolean;
15
+ readonly inactiveColor: string;
16
+ readonly className?: string;
17
+ readonly onClick?: MouseEventHandler<HTMLSpanElement>;
18
+ readonly onMouseEnter?: MouseEventHandler<HTMLSpanElement>;
19
+ readonly onMouseLeave?: MouseEventHandler<HTMLSpanElement>;
20
+ };
21
+ /**
22
+ * Resolves the inactive color for stars in the feedback controls.
23
+ *
24
+ * @param mode Current chat color mode.
25
+ * @param tone Visual weight for the inactive star.
26
+ * @returns Hex color for an inactive star.
27
+ *
28
+ * @private function of `<Chat/>`
29
+ */
30
+ export declare function resolveChatFeedbackStarInactiveColor(mode: 'LIGHT' | 'DARK', tone?: 'subtle' | 'muted'): "#888" | "#666" | "#ccc" | "#555";
31
+ /**
32
+ * Renders one CSS-colored feedback star.
33
+ *
34
+ * @private component of `<Chat/>`
35
+ */
36
+ export declare function ChatFeedbackStar({ isActive, inactiveColor, className, onClick, onMouseEnter, onMouseLeave, }: ChatFeedbackStarProps): import("react/jsx-runtime").JSX.Element;
37
+ export {};
@@ -76,6 +76,10 @@ type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'on
76
76
  * Optional cached metadata keyed by TEAM tool names to enrich tool call chips.
77
77
  */
78
78
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
79
+ /**
80
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
81
+ */
82
+ markdownInlineReferences?: ChatProps['markdownInlineReferences'];
79
83
  /**
80
84
  * Controls whether assistant replies render as bubbles or article blocks.
81
85
  */
@@ -51,6 +51,10 @@ export type ChatMessageListProps = {
51
51
  toolTitles?: Record<string, string>;
52
52
  teammates?: ChatProps['teammates'];
53
53
  teamAgentProfiles?: ChatProps['teamAgentProfiles'];
54
+ /**
55
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
56
+ */
57
+ markdownInlineReferences?: ChatProps['markdownInlineReferences'];
54
58
  visualMode?: ChatProps['visualMode'];
55
59
  onToolCallClick?: (toolCall: NonNullable<ChatMessage['toolCalls']>[number]) => void;
56
60
  onCitationClick?: (citation: ParsedCitation) => void;
@@ -1,4 +1,5 @@
1
1
  import type { ChatMessage } from '../types/ChatMessage';
2
+ import type { MarkdownInlineReference } from '../utils/renderMarkdown';
2
3
  import type { ChatMessageContentSegment } from '../utils/splitMessageContentIntoSegments';
3
4
  import type { StreamingFeaturePlaceholderKind } from './StreamingFeaturePlaceholder';
4
5
  /**
@@ -23,6 +24,10 @@ export type ChatMessageRichContentProps = {
23
24
  * Optional callback for creating a new agent from a book code block.
24
25
  */
25
26
  readonly onCreateAgent?: (bookContent: string) => void;
27
+ /**
28
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
29
+ */
30
+ readonly markdownInlineReferences?: ReadonlyArray<MarkdownInlineReference>;
26
31
  /**
27
32
  * Resolved theme used by nested code blocks and editors.
28
33
  */
@@ -10,6 +10,7 @@ import type { ChatMessage } from '../types/ChatMessage';
10
10
  import type { ChatParticipant } from '../types/ChatParticipant';
11
11
  import type { CitationLabelResolver } from '../types/CitationLabelResolver';
12
12
  import type { ChatSaveFormatHandlerMap } from '../save/_common/ChatSaveFormatHandler';
13
+ import type { MarkdownInlineReference } from '../utils/renderMarkdown';
13
14
  /**
14
15
  * Response data returned by the optional `onFeedback` handler.
15
16
  *
@@ -440,6 +441,14 @@ export type ChatProps = {
440
441
  * The title of the chat
441
442
  */
442
443
  readonly title?: string;
444
+ /**
445
+ * Optional identifier (name or permanent id) of the agent owning this chat.
446
+ *
447
+ * When set, server-side live browser previews opened from the chat (for example from
448
+ * knowledge citation chips) run inside the agent's persistent browser profile, so logins
449
+ * performed by the user in the live session are saved for the agent's future browsing.
450
+ */
451
+ readonly agentIdentifier?: string;
443
452
  /**
444
453
  * Messages to render - they are rendered as they are
445
454
  */
@@ -685,6 +694,10 @@ export type ChatProps = {
685
694
  * Optional cached agent metadata keyed by TEAM tool names to improve chip rendering.
686
695
  */
687
696
  readonly teamAgentProfiles?: Record<string, AgentChipData>;
697
+ /**
698
+ * Optional inline references rendered from `[[reference]]` tokens in message markdown.
699
+ */
700
+ readonly markdownInlineReferences?: ReadonlyArray<MarkdownInlineReference>;
688
701
  /**
689
702
  * Optional callback to create a new agent from the template.
690
703
  * If provided, renders the [Create Agent] button for book code blocks.
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};
@@ -6,10 +6,33 @@
6
6
  export type CitationIframePreviewProps = {
7
7
  src: string;
8
8
  title: string;
9
+ /**
10
+ * Optional agent identifier (name or permanent id) scoping the live browser fallback
11
+ * to the agent's persistent server-side browser profile.
12
+ */
13
+ agentIdentifier?: string;
14
+ /**
15
+ * Optional close handler passed to the live browser toolbar when the preview fills a modal.
16
+ */
17
+ onClose?: () => void;
18
+ /**
19
+ * Reports whether the URL is embedded directly or shown through the live browser fallback.
20
+ */
21
+ onStatusChange?: (status: CitationIframePreviewStatus) => void;
22
+ /**
23
+ * Initial preview status used when the parent already knows the resolved mode.
24
+ */
25
+ initialStatus?: CitationIframePreviewStatus;
9
26
  };
27
+ /**
28
+ * Internal status of the iframe embed check.
29
+ *
30
+ * @private type of `<CitationIframePreview/>`
31
+ */
32
+ export type CitationIframePreviewStatus = 'loading' | 'embed' | 'browser-stream';
10
33
  /**
11
34
  * Renders a citation URL preview as an iframe when the target page allows embedding,
12
- * or falls back to a live server-side browser stream with an "Open in new tab" link
35
+ * or falls back to an interactive live server-side browser session (`<LiveBrowserPreview/>`)
13
36
  * when it does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
14
37
  *
15
38
  * Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
@@ -17,4 +40,4 @@ export type CitationIframePreviewProps = {
17
40
  *
18
41
  * @private component of `<ChatCitationModal/>`
19
42
  */
20
- export declare function CitationIframePreview({ src, title }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
43
+ export declare function CitationIframePreview({ src, title, agentIdentifier, onClose, onStatusChange, initialStatus, }: CitationIframePreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Props of the live browser preview.
3
+ *
4
+ * @private component of `<ChatCitationModal/>`
5
+ */
6
+ export type LiveBrowserPreviewProps = {
7
+ /**
8
+ * URL opened in the remote headless browser.
9
+ */
10
+ readonly src: string;
11
+ /**
12
+ * Human-readable title of the previewed source.
13
+ */
14
+ readonly title: string;
15
+ /**
16
+ * Optional agent identifier (name or permanent id).
17
+ *
18
+ * When set, the live session runs inside the agent's persistent server-side browser profile,
19
+ * so actions like logging into a website are saved for the agent's future browsing.
20
+ */
21
+ readonly agentIdentifier?: string;
22
+ /**
23
+ * Optional close handler for modal-hosted previews.
24
+ */
25
+ readonly onClose?: () => void;
26
+ };
27
+ /**
28
+ * Remote-desktop-like live preview of one server-side headless browser session.
29
+ *
30
+ * Renders the MJPEG stream of the Agents Server page-preview route and forwards natural
31
+ * browser interactions to it — hovering, clicking, double-clicking, dragging and text
32
+ * selection (raw pointer presses with click counts), scrolling, typing and keyboard
33
+ * shortcuts. A browser-like toolbar adds history navigation, an editable address bar,
34
+ * local zoom (Ctrl+wheel or buttons), and a full screen mode. The remote viewport follows
35
+ * the size of the preview area, so the page is always rendered at the size the user sees.
36
+ *
37
+ * @private component of `<ChatCitationModal/>`
38
+ */
39
+ export declare function LiveBrowserPreview({ src, title, agentIdentifier, onClose }: LiveBrowserPreviewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ /** @jest-environment jsdom */
2
+ export {};