@promptbook/browser 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 +83 -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 +83 -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
package/README.md CHANGED
@@ -26,15 +26,16 @@ Create persistent AI agents that turn your company's scattered knowledge into ac
26
26
  Run the standalone VPS installer _(for example on DigitalOcean)_ only on a fresh server. Interactive mode asks for the installation values:
27
27
 
28
28
  ```bash
29
- sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash
29
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/install.sh | bash
30
30
  ```
31
31
 
32
- Non-interactive mode takes defaults from command-line options. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
32
+ Non-interactive mode takes defaults from command-line options. Use `--env live`, `--env preview`, `--env production`, or `--env lts` to pick the installed environment; the default is `preview`. When `--openai-api-key` is provided with the default OpenAI Codex runner, the installer installs and configures Codex automatically; other runner authentication can be configured later from the UI or SSH:
33
33
 
34
34
  ```bash
35
- sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/other/vps/install.sh | bash -s -- \
35
+ sudo curl -fsSL https://raw.githubusercontent.com/webgptorg/promptbook/refs/heads/main/install.sh | bash -s -- \
36
36
  --non-interactive \
37
37
  --yes-i-understand-that-script-should-be-run-on-fresh-server \
38
+ --env preview \
38
39
  --domain my-server.com \
39
40
  --openai-api-key sk-proj-xxx \
40
41
  --admin-password xxx
package/esm/index.es.js CHANGED
@@ -29,7 +29,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
29
29
  * @generated
30
30
  * @see https://github.com/webgptorg/promptbook
31
31
  */
32
- const PROMPTBOOK_ENGINE_VERSION = '0.113.0-9';
32
+ const PROMPTBOOK_ENGINE_VERSION = '0.114.0-0';
33
33
  /**
34
34
  * TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
35
35
  * Note: [💞] Ignore a discrepancy between file name and entity name
@@ -4823,6 +4823,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
4823
4823
  * - META TITLE: Sets the agent's display title
4824
4824
  * - META DESCRIPTION: Sets the agent's description
4825
4825
  * - META INPUT PLACEHOLDER: Sets chat input placeholder text
4826
+ * - META THINKING MESSAGE: Adds custom thinking placeholder variants
4826
4827
  * - META [ANYTHING]: Any other meta information in uppercase format
4827
4828
  *
4828
4829
  * These commitments are special because they don't affect the system message,
@@ -4838,6 +4839,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
4838
4839
  * META TITLE Professional Assistant
4839
4840
  * META DESCRIPTION An AI assistant specialized in business tasks
4840
4841
  * META INPUT PLACEHOLDER Write a message...
4842
+ * META THINKING MESSAGE Thinking...
4841
4843
  * META AUTHOR John Doe
4842
4844
  * META VERSION 1.0
4843
4845
  * ```
@@ -4878,6 +4880,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
4878
4880
  - **META TITLE** - Sets the agent's display title
4879
4881
  - **META DESCRIPTION** - Sets the agent's description
4880
4882
  - **META INPUT PLACEHOLDER** - Sets chat input placeholder text
4883
+ - **META THINKING MESSAGE** - Adds custom thinking placeholder variants
4881
4884
  - **META [ANYTHING]** - Any other meta information in uppercase format
4882
4885
 
4883
4886
  ## Key aspects
@@ -4886,6 +4889,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
4886
4889
  - Used for visual representation and attribution in user interfaces
4887
4890
  - Multiple META commitments of different types can be used
4888
4891
  - Multiple META LINK commitments can be used for different social profiles
4892
+ - Multiple META THINKING MESSAGE commitments can be used for different thinking placeholder variants
4889
4893
  - If multiple META commitments of the same type are specified, the last one takes precedence (except for LINK)
4890
4894
 
4891
4895
  ## Examples
@@ -11684,6 +11688,68 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
11684
11688
  }
11685
11689
  // Note: [💞] Ignore a discrepancy between file name and entity name
11686
11690
 
11691
+ /**
11692
+ * META THINKING MESSAGE commitment definition.
11693
+ *
11694
+ * The `META THINKING MESSAGE` commitment adds one custom thinking placeholder
11695
+ * variant used by chat UIs while an agent is composing a reply.
11696
+ *
11697
+ * @private Metadata-only commitment used by Agents Server chat UIs.
11698
+ */
11699
+ class MetaThinkingMessageCommitmentDefinition extends BaseCommitmentDefinition {
11700
+ constructor() {
11701
+ super('META THINKING MESSAGE');
11702
+ }
11703
+ /**
11704
+ * Short one-line description of META THINKING MESSAGE.
11705
+ */
11706
+ get description() {
11707
+ return 'Add a custom thinking placeholder shown while the agent replies.';
11708
+ }
11709
+ /**
11710
+ * Icon for this commitment.
11711
+ */
11712
+ get icon() {
11713
+ return '💭';
11714
+ }
11715
+ /**
11716
+ * Markdown documentation for META THINKING MESSAGE commitment.
11717
+ */
11718
+ get documentation() {
11719
+ return spaceTrim$1(`
11720
+ # META THINKING MESSAGE
11721
+
11722
+ Adds one custom placeholder variant shown while the agent is composing a reply.
11723
+
11724
+ ## Key aspects
11725
+
11726
+ - Does not modify model behavior, system message, or tools.
11727
+ - Multiple \`META THINKING MESSAGE\` commitments define multiple variants.
11728
+ - Chat UIs randomly rotate between the configured variants while the reply is running.
11729
+ - When no non-empty variants are configured, the server-level \`THINKING_MESSAGES\` metadata is used.
11730
+ - Supports multiline markdown content.
11731
+
11732
+ ## Example
11733
+
11734
+ \`\`\`book
11735
+ Helpful Assistant
11736
+
11737
+ META THINKING MESSAGE Thinking...
11738
+ META THINKING MESSAGE Processing...
11739
+ META THINKING MESSAGE
11740
+
11741
+ Doing
11742
+ extra **hard** work
11743
+ \`\`\`
11744
+ `);
11745
+ }
11746
+ applyToAgentModelRequirements(requirements, content) {
11747
+ // META THINKING MESSAGE is metadata only and does not alter model requirements.
11748
+ return requirements;
11749
+ }
11750
+ }
11751
+ // Note: [💞] Ignore a discrepancy between file name and entity name
11752
+
11687
11753
  /**
11688
11754
  * META VISIBILITY commitment definition.
11689
11755
  *
@@ -13999,6 +14065,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
13999
14065
  1. **One-shot URL fetching**: Simple function to fetch and scrape URL content (active)
14000
14066
  2. **Running browser**: For complex tasks like scrolling, clicking, form filling, etc. (runtime-dependent)
14001
14067
  - The actual browser tool usage is handled by the agent runtime
14068
+ - On the Agents Server, every agent browses in its own persistent isolated browser profile, so cookies and logged-in sessions survive across chats (the profile is linked from the agent wallet)
14002
14069
  - Allows the agent to fetch current information from websites and documents
14003
14070
  - Useful for research tasks, fact-checking, and accessing dynamic content
14004
14071
  - Supports various content types including HTML pages and PDF documents
@@ -20637,6 +20704,7 @@ const COMMITMENT_REGISTRY = [
20637
20704
  new MetaDomainCommitmentDefinition(),
20638
20705
  new MetaDisclaimerCommitmentDefinition(),
20639
20706
  new MetaInputPlaceholderCommitmentDefinition(),
20707
+ new MetaThinkingMessageCommitmentDefinition(),
20640
20708
  new MetaVisibilityCommitmentDefinition(),
20641
20709
  new MetaCommitmentDefinition(),
20642
20710
  new MetaVoiceCommitmentDefinition(),
@@ -22289,6 +22357,7 @@ const META_COMMITMENT_APPLIERS = {
22289
22357
  'META DESCRIPTION': applyMetaDescriptionContent,
22290
22358
  'META DISCLAIMER': applyMetaDisclaimerContent,
22291
22359
  'META INPUT PLACEHOLDER': applyMetaInputPlaceholderContent,
22360
+ 'META THINKING MESSAGE': applyMetaThinkingMessageContent,
22292
22361
  'MESSAGE SUFFIX': applyMessageSuffixContent,
22293
22362
  'META COLOR': applyMetaColorContent,
22294
22363
  'META FONT': applyMetaFontContent,
@@ -22379,6 +22448,16 @@ function applyMetaDisclaimerContent(state, content) {
22379
22448
  function applyMetaInputPlaceholderContent(state, content) {
22380
22449
  state.meta.inputPlaceholder = spaceTrim$1(content);
22381
22450
  }
22451
+ /**
22452
+ * Applies one META THINKING MESSAGE content block into the custom thinking-message variants.
22453
+ */
22454
+ function applyMetaThinkingMessageContent(state, content) {
22455
+ const thinkingMessage = spaceTrim$1(content);
22456
+ if (!thinkingMessage) {
22457
+ return;
22458
+ }
22459
+ state.thinkingMessages = [...(state.thinkingMessages || []), thinkingMessage];
22460
+ }
22382
22461
  /**
22383
22462
  * Applies MESSAGE SUFFIX content into the canonical `meta.messageSuffix` field.
22384
22463
  */
@@ -22747,6 +22826,7 @@ function extractParsedAgentProfile(commitments) {
22747
22826
  capabilities: [],
22748
22827
  samples: [],
22749
22828
  knowledgeSources: [],
22829
+ thinkingMessages: [],
22750
22830
  pendingUserMessage: null,
22751
22831
  knownKnowledgeSourceUrls: new Set(),
22752
22832
  };
@@ -22759,6 +22839,7 @@ function extractParsedAgentProfile(commitments) {
22759
22839
  capabilities: state.capabilities,
22760
22840
  samples: state.samples,
22761
22841
  knowledgeSources: state.knowledgeSources,
22842
+ thinkingMessages: state.thinkingMessages,
22762
22843
  };
22763
22844
  }
22764
22845
  /**
@@ -22798,6 +22879,7 @@ function parseAgentSource(agentSource) {
22798
22879
  permanentId: parsedProfile.meta.id,
22799
22880
  personaDescription,
22800
22881
  initialMessage,
22882
+ thinkingMessages: parsedProfile.thinkingMessages,
22801
22883
  meta: parsedProfile.meta,
22802
22884
  links: parsedProfile.links,
22803
22885
  parameters: parseParameters(agentSource),