@promptbook/remote-server 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 +84 -2
- 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 +84 -2
- 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
|
@@ -40,7 +40,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
40
40
|
* @generated
|
|
41
41
|
* @see https://github.com/webgptorg/promptbook
|
|
42
42
|
*/
|
|
43
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
43
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-0';
|
|
44
44
|
/**
|
|
45
45
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
46
46
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -8761,7 +8761,7 @@ async function locateAppOnWindows({ appName, windowsSuffix, }) {
|
|
|
8761
8761
|
*
|
|
8762
8762
|
* @private within the repository
|
|
8763
8763
|
*/
|
|
8764
|
-
function locateApp(options) {
|
|
8764
|
+
async function locateApp(options) {
|
|
8765
8765
|
if (!$isRunningInNode()) {
|
|
8766
8766
|
throw new EnvironmentMismatchError('Locating apps works only in Node.js environment');
|
|
8767
8767
|
}
|
|
@@ -12940,6 +12940,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
12940
12940
|
* - META TITLE: Sets the agent's display title
|
|
12941
12941
|
* - META DESCRIPTION: Sets the agent's description
|
|
12942
12942
|
* - META INPUT PLACEHOLDER: Sets chat input placeholder text
|
|
12943
|
+
* - META THINKING MESSAGE: Adds custom thinking placeholder variants
|
|
12943
12944
|
* - META [ANYTHING]: Any other meta information in uppercase format
|
|
12944
12945
|
*
|
|
12945
12946
|
* These commitments are special because they don't affect the system message,
|
|
@@ -12955,6 +12956,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
12955
12956
|
* META TITLE Professional Assistant
|
|
12956
12957
|
* META DESCRIPTION An AI assistant specialized in business tasks
|
|
12957
12958
|
* META INPUT PLACEHOLDER Write a message...
|
|
12959
|
+
* META THINKING MESSAGE Thinking...
|
|
12958
12960
|
* META AUTHOR John Doe
|
|
12959
12961
|
* META VERSION 1.0
|
|
12960
12962
|
* ```
|
|
@@ -12995,6 +12997,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
12995
12997
|
- **META TITLE** - Sets the agent's display title
|
|
12996
12998
|
- **META DESCRIPTION** - Sets the agent's description
|
|
12997
12999
|
- **META INPUT PLACEHOLDER** - Sets chat input placeholder text
|
|
13000
|
+
- **META THINKING MESSAGE** - Adds custom thinking placeholder variants
|
|
12998
13001
|
- **META [ANYTHING]** - Any other meta information in uppercase format
|
|
12999
13002
|
|
|
13000
13003
|
## Key aspects
|
|
@@ -13003,6 +13006,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
13003
13006
|
- Used for visual representation and attribution in user interfaces
|
|
13004
13007
|
- Multiple META commitments of different types can be used
|
|
13005
13008
|
- Multiple META LINK commitments can be used for different social profiles
|
|
13009
|
+
- Multiple META THINKING MESSAGE commitments can be used for different thinking placeholder variants
|
|
13006
13010
|
- If multiple META commitments of the same type are specified, the last one takes precedence (except for LINK)
|
|
13007
13011
|
|
|
13008
13012
|
## Examples
|
|
@@ -19801,6 +19805,68 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
19801
19805
|
}
|
|
19802
19806
|
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
19803
19807
|
|
|
19808
|
+
/**
|
|
19809
|
+
* META THINKING MESSAGE commitment definition.
|
|
19810
|
+
*
|
|
19811
|
+
* The `META THINKING MESSAGE` commitment adds one custom thinking placeholder
|
|
19812
|
+
* variant used by chat UIs while an agent is composing a reply.
|
|
19813
|
+
*
|
|
19814
|
+
* @private Metadata-only commitment used by Agents Server chat UIs.
|
|
19815
|
+
*/
|
|
19816
|
+
class MetaThinkingMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
19817
|
+
constructor() {
|
|
19818
|
+
super('META THINKING MESSAGE');
|
|
19819
|
+
}
|
|
19820
|
+
/**
|
|
19821
|
+
* Short one-line description of META THINKING MESSAGE.
|
|
19822
|
+
*/
|
|
19823
|
+
get description() {
|
|
19824
|
+
return 'Add a custom thinking placeholder shown while the agent replies.';
|
|
19825
|
+
}
|
|
19826
|
+
/**
|
|
19827
|
+
* Icon for this commitment.
|
|
19828
|
+
*/
|
|
19829
|
+
get icon() {
|
|
19830
|
+
return '💭';
|
|
19831
|
+
}
|
|
19832
|
+
/**
|
|
19833
|
+
* Markdown documentation for META THINKING MESSAGE commitment.
|
|
19834
|
+
*/
|
|
19835
|
+
get documentation() {
|
|
19836
|
+
return spaceTrim$1(`
|
|
19837
|
+
# META THINKING MESSAGE
|
|
19838
|
+
|
|
19839
|
+
Adds one custom placeholder variant shown while the agent is composing a reply.
|
|
19840
|
+
|
|
19841
|
+
## Key aspects
|
|
19842
|
+
|
|
19843
|
+
- Does not modify model behavior, system message, or tools.
|
|
19844
|
+
- Multiple \`META THINKING MESSAGE\` commitments define multiple variants.
|
|
19845
|
+
- Chat UIs randomly rotate between the configured variants while the reply is running.
|
|
19846
|
+
- When no non-empty variants are configured, the server-level \`THINKING_MESSAGES\` metadata is used.
|
|
19847
|
+
- Supports multiline markdown content.
|
|
19848
|
+
|
|
19849
|
+
## Example
|
|
19850
|
+
|
|
19851
|
+
\`\`\`book
|
|
19852
|
+
Helpful Assistant
|
|
19853
|
+
|
|
19854
|
+
META THINKING MESSAGE Thinking...
|
|
19855
|
+
META THINKING MESSAGE Processing...
|
|
19856
|
+
META THINKING MESSAGE
|
|
19857
|
+
|
|
19858
|
+
Doing
|
|
19859
|
+
extra **hard** work
|
|
19860
|
+
\`\`\`
|
|
19861
|
+
`);
|
|
19862
|
+
}
|
|
19863
|
+
applyToAgentModelRequirements(requirements, content) {
|
|
19864
|
+
// META THINKING MESSAGE is metadata only and does not alter model requirements.
|
|
19865
|
+
return requirements;
|
|
19866
|
+
}
|
|
19867
|
+
}
|
|
19868
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
19869
|
+
|
|
19804
19870
|
/**
|
|
19805
19871
|
* META VISIBILITY commitment definition.
|
|
19806
19872
|
*
|
|
@@ -22042,6 +22108,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
22042
22108
|
1. **One-shot URL fetching**: Simple function to fetch and scrape URL content (active)
|
|
22043
22109
|
2. **Running browser**: For complex tasks like scrolling, clicking, form filling, etc. (runtime-dependent)
|
|
22044
22110
|
- The actual browser tool usage is handled by the agent runtime
|
|
22111
|
+
- 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)
|
|
22045
22112
|
- Allows the agent to fetch current information from websites and documents
|
|
22046
22113
|
- Useful for research tasks, fact-checking, and accessing dynamic content
|
|
22047
22114
|
- Supports various content types including HTML pages and PDF documents
|
|
@@ -28586,6 +28653,7 @@ const COMMITMENT_REGISTRY = [
|
|
|
28586
28653
|
new MetaDomainCommitmentDefinition(),
|
|
28587
28654
|
new MetaDisclaimerCommitmentDefinition(),
|
|
28588
28655
|
new MetaInputPlaceholderCommitmentDefinition(),
|
|
28656
|
+
new MetaThinkingMessageCommitmentDefinition(),
|
|
28589
28657
|
new MetaVisibilityCommitmentDefinition(),
|
|
28590
28658
|
new MetaCommitmentDefinition(),
|
|
28591
28659
|
new MetaVoiceCommitmentDefinition(),
|
|
@@ -33626,6 +33694,7 @@ const META_COMMITMENT_APPLIERS = {
|
|
|
33626
33694
|
'META DESCRIPTION': applyMetaDescriptionContent,
|
|
33627
33695
|
'META DISCLAIMER': applyMetaDisclaimerContent,
|
|
33628
33696
|
'META INPUT PLACEHOLDER': applyMetaInputPlaceholderContent,
|
|
33697
|
+
'META THINKING MESSAGE': applyMetaThinkingMessageContent,
|
|
33629
33698
|
'MESSAGE SUFFIX': applyMessageSuffixContent,
|
|
33630
33699
|
'META COLOR': applyMetaColorContent,
|
|
33631
33700
|
'META FONT': applyMetaFontContent,
|
|
@@ -33716,6 +33785,16 @@ function applyMetaDisclaimerContent(state, content) {
|
|
|
33716
33785
|
function applyMetaInputPlaceholderContent(state, content) {
|
|
33717
33786
|
state.meta.inputPlaceholder = spaceTrim$1(content);
|
|
33718
33787
|
}
|
|
33788
|
+
/**
|
|
33789
|
+
* Applies one META THINKING MESSAGE content block into the custom thinking-message variants.
|
|
33790
|
+
*/
|
|
33791
|
+
function applyMetaThinkingMessageContent(state, content) {
|
|
33792
|
+
const thinkingMessage = spaceTrim$1(content);
|
|
33793
|
+
if (!thinkingMessage) {
|
|
33794
|
+
return;
|
|
33795
|
+
}
|
|
33796
|
+
state.thinkingMessages = [...(state.thinkingMessages || []), thinkingMessage];
|
|
33797
|
+
}
|
|
33719
33798
|
/**
|
|
33720
33799
|
* Applies MESSAGE SUFFIX content into the canonical `meta.messageSuffix` field.
|
|
33721
33800
|
*/
|
|
@@ -34084,6 +34163,7 @@ function extractParsedAgentProfile(commitments) {
|
|
|
34084
34163
|
capabilities: [],
|
|
34085
34164
|
samples: [],
|
|
34086
34165
|
knowledgeSources: [],
|
|
34166
|
+
thinkingMessages: [],
|
|
34087
34167
|
pendingUserMessage: null,
|
|
34088
34168
|
knownKnowledgeSourceUrls: new Set(),
|
|
34089
34169
|
};
|
|
@@ -34096,6 +34176,7 @@ function extractParsedAgentProfile(commitments) {
|
|
|
34096
34176
|
capabilities: state.capabilities,
|
|
34097
34177
|
samples: state.samples,
|
|
34098
34178
|
knowledgeSources: state.knowledgeSources,
|
|
34179
|
+
thinkingMessages: state.thinkingMessages,
|
|
34099
34180
|
};
|
|
34100
34181
|
}
|
|
34101
34182
|
/**
|
|
@@ -34135,6 +34216,7 @@ function parseAgentSource(agentSource) {
|
|
|
34135
34216
|
permanentId: parsedProfile.meta.id,
|
|
34136
34217
|
personaDescription,
|
|
34137
34218
|
initialMessage,
|
|
34219
|
+
thinkingMessages: parsedProfile.thinkingMessages,
|
|
34138
34220
|
meta: parsedProfile.meta,
|
|
34139
34221
|
links: parsedProfile.links,
|
|
34140
34222
|
parameters: parseParameters(agentSource),
|