@promptbook/wizard 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
|
@@ -38,7 +38,7 @@ const BOOK_LANGUAGE_VERSION = '2.0.0';
|
|
|
38
38
|
* @generated
|
|
39
39
|
* @see https://github.com/webgptorg/promptbook
|
|
40
40
|
*/
|
|
41
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
41
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-0';
|
|
42
42
|
/**
|
|
43
43
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
44
44
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -20765,6 +20765,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
20765
20765
|
* - META TITLE: Sets the agent's display title
|
|
20766
20766
|
* - META DESCRIPTION: Sets the agent's description
|
|
20767
20767
|
* - META INPUT PLACEHOLDER: Sets chat input placeholder text
|
|
20768
|
+
* - META THINKING MESSAGE: Adds custom thinking placeholder variants
|
|
20768
20769
|
* - META [ANYTHING]: Any other meta information in uppercase format
|
|
20769
20770
|
*
|
|
20770
20771
|
* These commitments are special because they don't affect the system message,
|
|
@@ -20780,6 +20781,7 @@ class MessageSuffixCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
20780
20781
|
* META TITLE Professional Assistant
|
|
20781
20782
|
* META DESCRIPTION An AI assistant specialized in business tasks
|
|
20782
20783
|
* META INPUT PLACEHOLDER Write a message...
|
|
20784
|
+
* META THINKING MESSAGE Thinking...
|
|
20783
20785
|
* META AUTHOR John Doe
|
|
20784
20786
|
* META VERSION 1.0
|
|
20785
20787
|
* ```
|
|
@@ -20820,6 +20822,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
20820
20822
|
- **META TITLE** - Sets the agent's display title
|
|
20821
20823
|
- **META DESCRIPTION** - Sets the agent's description
|
|
20822
20824
|
- **META INPUT PLACEHOLDER** - Sets chat input placeholder text
|
|
20825
|
+
- **META THINKING MESSAGE** - Adds custom thinking placeholder variants
|
|
20823
20826
|
- **META [ANYTHING]** - Any other meta information in uppercase format
|
|
20824
20827
|
|
|
20825
20828
|
## Key aspects
|
|
@@ -20828,6 +20831,7 @@ class MetaCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
20828
20831
|
- Used for visual representation and attribution in user interfaces
|
|
20829
20832
|
- Multiple META commitments of different types can be used
|
|
20830
20833
|
- Multiple META LINK commitments can be used for different social profiles
|
|
20834
|
+
- Multiple META THINKING MESSAGE commitments can be used for different thinking placeholder variants
|
|
20831
20835
|
- If multiple META commitments of the same type are specified, the last one takes precedence (except for LINK)
|
|
20832
20836
|
|
|
20833
20837
|
## Examples
|
|
@@ -27626,6 +27630,68 @@ class MetaLinkCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
27626
27630
|
}
|
|
27627
27631
|
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
27628
27632
|
|
|
27633
|
+
/**
|
|
27634
|
+
* META THINKING MESSAGE commitment definition.
|
|
27635
|
+
*
|
|
27636
|
+
* The `META THINKING MESSAGE` commitment adds one custom thinking placeholder
|
|
27637
|
+
* variant used by chat UIs while an agent is composing a reply.
|
|
27638
|
+
*
|
|
27639
|
+
* @private Metadata-only commitment used by Agents Server chat UIs.
|
|
27640
|
+
*/
|
|
27641
|
+
class MetaThinkingMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
27642
|
+
constructor() {
|
|
27643
|
+
super('META THINKING MESSAGE');
|
|
27644
|
+
}
|
|
27645
|
+
/**
|
|
27646
|
+
* Short one-line description of META THINKING MESSAGE.
|
|
27647
|
+
*/
|
|
27648
|
+
get description() {
|
|
27649
|
+
return 'Add a custom thinking placeholder shown while the agent replies.';
|
|
27650
|
+
}
|
|
27651
|
+
/**
|
|
27652
|
+
* Icon for this commitment.
|
|
27653
|
+
*/
|
|
27654
|
+
get icon() {
|
|
27655
|
+
return '💭';
|
|
27656
|
+
}
|
|
27657
|
+
/**
|
|
27658
|
+
* Markdown documentation for META THINKING MESSAGE commitment.
|
|
27659
|
+
*/
|
|
27660
|
+
get documentation() {
|
|
27661
|
+
return spaceTrim$1(`
|
|
27662
|
+
# META THINKING MESSAGE
|
|
27663
|
+
|
|
27664
|
+
Adds one custom placeholder variant shown while the agent is composing a reply.
|
|
27665
|
+
|
|
27666
|
+
## Key aspects
|
|
27667
|
+
|
|
27668
|
+
- Does not modify model behavior, system message, or tools.
|
|
27669
|
+
- Multiple \`META THINKING MESSAGE\` commitments define multiple variants.
|
|
27670
|
+
- Chat UIs randomly rotate between the configured variants while the reply is running.
|
|
27671
|
+
- When no non-empty variants are configured, the server-level \`THINKING_MESSAGES\` metadata is used.
|
|
27672
|
+
- Supports multiline markdown content.
|
|
27673
|
+
|
|
27674
|
+
## Example
|
|
27675
|
+
|
|
27676
|
+
\`\`\`book
|
|
27677
|
+
Helpful Assistant
|
|
27678
|
+
|
|
27679
|
+
META THINKING MESSAGE Thinking...
|
|
27680
|
+
META THINKING MESSAGE Processing...
|
|
27681
|
+
META THINKING MESSAGE
|
|
27682
|
+
|
|
27683
|
+
Doing
|
|
27684
|
+
extra **hard** work
|
|
27685
|
+
\`\`\`
|
|
27686
|
+
`);
|
|
27687
|
+
}
|
|
27688
|
+
applyToAgentModelRequirements(requirements, content) {
|
|
27689
|
+
// META THINKING MESSAGE is metadata only and does not alter model requirements.
|
|
27690
|
+
return requirements;
|
|
27691
|
+
}
|
|
27692
|
+
}
|
|
27693
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
27694
|
+
|
|
27629
27695
|
/**
|
|
27630
27696
|
* META VISIBILITY commitment definition.
|
|
27631
27697
|
*
|
|
@@ -29704,6 +29770,7 @@ class UseBrowserCommitmentDefinition extends BaseCommitmentDefinition {
|
|
|
29704
29770
|
1. **One-shot URL fetching**: Simple function to fetch and scrape URL content (active)
|
|
29705
29771
|
2. **Running browser**: For complex tasks like scrolling, clicking, form filling, etc. (runtime-dependent)
|
|
29706
29772
|
- The actual browser tool usage is handled by the agent runtime
|
|
29773
|
+
- 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)
|
|
29707
29774
|
- Allows the agent to fetch current information from websites and documents
|
|
29708
29775
|
- Useful for research tasks, fact-checking, and accessing dynamic content
|
|
29709
29776
|
- Supports various content types including HTML pages and PDF documents
|
|
@@ -36201,6 +36268,7 @@ const COMMITMENT_REGISTRY = [
|
|
|
36201
36268
|
new MetaDomainCommitmentDefinition(),
|
|
36202
36269
|
new MetaDisclaimerCommitmentDefinition(),
|
|
36203
36270
|
new MetaInputPlaceholderCommitmentDefinition(),
|
|
36271
|
+
new MetaThinkingMessageCommitmentDefinition(),
|
|
36204
36272
|
new MetaVisibilityCommitmentDefinition(),
|
|
36205
36273
|
new MetaCommitmentDefinition(),
|
|
36206
36274
|
new MetaVoiceCommitmentDefinition(),
|
|
@@ -37552,6 +37620,7 @@ const META_COMMITMENT_APPLIERS = {
|
|
|
37552
37620
|
'META DESCRIPTION': applyMetaDescriptionContent,
|
|
37553
37621
|
'META DISCLAIMER': applyMetaDisclaimerContent,
|
|
37554
37622
|
'META INPUT PLACEHOLDER': applyMetaInputPlaceholderContent,
|
|
37623
|
+
'META THINKING MESSAGE': applyMetaThinkingMessageContent,
|
|
37555
37624
|
'MESSAGE SUFFIX': applyMessageSuffixContent,
|
|
37556
37625
|
'META COLOR': applyMetaColorContent,
|
|
37557
37626
|
'META FONT': applyMetaFontContent,
|
|
@@ -37642,6 +37711,16 @@ function applyMetaDisclaimerContent(state, content) {
|
|
|
37642
37711
|
function applyMetaInputPlaceholderContent(state, content) {
|
|
37643
37712
|
state.meta.inputPlaceholder = spaceTrim$1(content);
|
|
37644
37713
|
}
|
|
37714
|
+
/**
|
|
37715
|
+
* Applies one META THINKING MESSAGE content block into the custom thinking-message variants.
|
|
37716
|
+
*/
|
|
37717
|
+
function applyMetaThinkingMessageContent(state, content) {
|
|
37718
|
+
const thinkingMessage = spaceTrim$1(content);
|
|
37719
|
+
if (!thinkingMessage) {
|
|
37720
|
+
return;
|
|
37721
|
+
}
|
|
37722
|
+
state.thinkingMessages = [...(state.thinkingMessages || []), thinkingMessage];
|
|
37723
|
+
}
|
|
37645
37724
|
/**
|
|
37646
37725
|
* Applies MESSAGE SUFFIX content into the canonical `meta.messageSuffix` field.
|
|
37647
37726
|
*/
|
|
@@ -38010,6 +38089,7 @@ function extractParsedAgentProfile(commitments) {
|
|
|
38010
38089
|
capabilities: [],
|
|
38011
38090
|
samples: [],
|
|
38012
38091
|
knowledgeSources: [],
|
|
38092
|
+
thinkingMessages: [],
|
|
38013
38093
|
pendingUserMessage: null,
|
|
38014
38094
|
knownKnowledgeSourceUrls: new Set(),
|
|
38015
38095
|
};
|
|
@@ -38022,6 +38102,7 @@ function extractParsedAgentProfile(commitments) {
|
|
|
38022
38102
|
capabilities: state.capabilities,
|
|
38023
38103
|
samples: state.samples,
|
|
38024
38104
|
knowledgeSources: state.knowledgeSources,
|
|
38105
|
+
thinkingMessages: state.thinkingMessages,
|
|
38025
38106
|
};
|
|
38026
38107
|
}
|
|
38027
38108
|
/**
|
|
@@ -38061,6 +38142,7 @@ function parseAgentSource(agentSource) {
|
|
|
38061
38142
|
permanentId: parsedProfile.meta.id,
|
|
38062
38143
|
personaDescription,
|
|
38063
38144
|
initialMessage,
|
|
38145
|
+
thinkingMessages: parsedProfile.thinkingMessages,
|
|
38064
38146
|
meta: parsedProfile.meta,
|
|
38065
38147
|
links: parsedProfile.links,
|
|
38066
38148
|
parameters: parseParameters(agentSource),
|
|
@@ -40990,7 +41072,7 @@ async function locateAppOnWindows({ appName, windowsSuffix, }) {
|
|
|
40990
41072
|
*
|
|
40991
41073
|
* @private within the repository
|
|
40992
41074
|
*/
|
|
40993
|
-
function locateApp(options) {
|
|
41075
|
+
async function locateApp(options) {
|
|
40994
41076
|
if (!$isRunningInNode()) {
|
|
40995
41077
|
throw new EnvironmentMismatchError('Locating apps works only in Node.js environment');
|
|
40996
41078
|
}
|