@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.
- package/README.md +4 -3
- package/esm/index.es.js +83 -1
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +8 -0
- package/esm/src/_packages/core.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +12 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
- package/esm/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/add.d.ts +36 -0
- package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/esm/src/commitments/META/META.d.ts +2 -0
- package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/esm/src/commitments/index.d.ts +2 -1
- package/esm/src/execution/utils/formatUsagePrice.d.ts +12 -0
- package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
- package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/esm/src/utils/html/escapeHtml.d.ts +9 -0
- package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +83 -1
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +8 -0
- package/umd/src/_packages/core.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +12 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
- package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +4 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -0
- package/umd/src/book-components/Chat/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.test.d.ts +2 -0
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -2
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +1 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/add.d.ts +36 -0
- package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/umd/src/commitments/META/META.d.ts +2 -0
- package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/umd/src/commitments/index.d.ts +2 -1
- package/umd/src/execution/utils/formatUsagePrice.d.ts +12 -0
- package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -0
- package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/umd/src/utils/html/escapeHtml.d.ts +9 -0
- package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
- /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/
|
|
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/
|
|
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.
|
|
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),
|