@promptbook/browser 0.113.0-9 → 0.114.0-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,6 +11,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
|
11
11
|
* - META TITLE: Sets the agent's display title
|
|
12
12
|
* - META DESCRIPTION: Sets the agent's description
|
|
13
13
|
* - META INPUT PLACEHOLDER: Sets chat input placeholder text
|
|
14
|
+
* - META THINKING MESSAGE: Adds custom thinking placeholder variants
|
|
14
15
|
* - META [ANYTHING]: Any other meta information in uppercase format
|
|
15
16
|
*
|
|
16
17
|
* These commitments are special because they don't affect the system message,
|
|
@@ -26,6 +27,7 @@ import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
|
26
27
|
* META TITLE Professional Assistant
|
|
27
28
|
* META DESCRIPTION An AI assistant specialized in business tasks
|
|
28
29
|
* META INPUT PLACEHOLDER Write a message...
|
|
30
|
+
* META THINKING MESSAGE Thinking...
|
|
29
31
|
* META AUTHOR John Doe
|
|
30
32
|
* META VERSION 1.0
|
|
31
33
|
* ```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
+
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
3
|
+
/**
|
|
4
|
+
* META THINKING MESSAGE commitment definition.
|
|
5
|
+
*
|
|
6
|
+
* The `META THINKING MESSAGE` commitment adds one custom thinking placeholder
|
|
7
|
+
* variant used by chat UIs while an agent is composing a reply.
|
|
8
|
+
*
|
|
9
|
+
* @private Metadata-only commitment used by Agents Server chat UIs.
|
|
10
|
+
*/
|
|
11
|
+
export declare class MetaThinkingMessageCommitmentDefinition extends BaseCommitmentDefinition<'META THINKING MESSAGE'> {
|
|
12
|
+
constructor();
|
|
13
|
+
/**
|
|
14
|
+
* Short one-line description of META THINKING MESSAGE.
|
|
15
|
+
*/
|
|
16
|
+
get description(): string;
|
|
17
|
+
/**
|
|
18
|
+
* Icon for this commitment.
|
|
19
|
+
*/
|
|
20
|
+
get icon(): string;
|
|
21
|
+
/**
|
|
22
|
+
* Markdown documentation for META THINKING MESSAGE commitment.
|
|
23
|
+
*/
|
|
24
|
+
get documentation(): string;
|
|
25
|
+
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
26
|
+
}
|
|
@@ -25,6 +25,7 @@ import { MetaFontCommitmentDefinition } from './META_FONT/META_FONT';
|
|
|
25
25
|
import { MetaImageCommitmentDefinition } from './META_IMAGE/META_IMAGE';
|
|
26
26
|
import { MetaInputPlaceholderCommitmentDefinition } from './META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER';
|
|
27
27
|
import { MetaLinkCommitmentDefinition } from './META_LINK/META_LINK';
|
|
28
|
+
import { MetaThinkingMessageCommitmentDefinition } from './META_THINKING_MESSAGE/META_THINKING_MESSAGE';
|
|
28
29
|
import { MetaVisibilityCommitmentDefinition } from './META_VISIBILITY/META_VISIBILITY';
|
|
29
30
|
import { MetaVoiceCommitmentDefinition } from './META_VOICE/META_VOICE';
|
|
30
31
|
import { ModelCommitmentDefinition } from './MODEL/MODEL';
|
|
@@ -62,4 +63,4 @@ import { NotYetImplementedCommitmentDefinition } from './_base/NotYetImplemented
|
|
|
62
63
|
*
|
|
63
64
|
* @private Use functions to access commitments instead of this array directly
|
|
64
65
|
*/
|
|
65
|
-
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, WalletCommitmentDefinition, WalletCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
|
|
66
|
+
export declare const COMMITMENT_REGISTRY: readonly [PersonaCommitmentDefinition, PersonaCommitmentDefinition, KnowledgeCommitmentDefinition, MemoryCommitmentDefinition, MemoryCommitmentDefinition, StyleCommitmentDefinition, StyleCommitmentDefinition, RuleCommitmentDefinition, RuleCommitmentDefinition, LanguageCommitmentDefinition, LanguageCommitmentDefinition, WritingSampleCommitmentDefinition, WritingRulesCommitmentDefinition, SampleCommitmentDefinition, SampleCommitmentDefinition, FormatCommitmentDefinition, FormatCommitmentDefinition, TemplateCommitmentDefinition, TemplateCommitmentDefinition, FromCommitmentDefinition, ImportCommitmentDefinition, ImportCommitmentDefinition, ModelCommitmentDefinition, ModelCommitmentDefinition, ActionCommitmentDefinition, ActionCommitmentDefinition, ComponentCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaAvatarCommitmentDefinition, MetaImageCommitmentDefinition, MetaColorCommitmentDefinition, MetaFontCommitmentDefinition, MetaLinkCommitmentDefinition, MetaDomainCommitmentDefinition, MetaDisclaimerCommitmentDefinition, MetaInputPlaceholderCommitmentDefinition, MetaThinkingMessageCommitmentDefinition, MetaVisibilityCommitmentDefinition, MetaCommitmentDefinition, MetaVoiceCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, NoteCommitmentDefinition, GoalCommitmentDefinition, GoalCommitmentDefinition, InitialMessageCommitmentDefinition, UserMessageCommitmentDefinition, InternalMessageCommitmentDefinition, AgentMessageCommitmentDefinition, MessageSuffixCommitmentDefinition, MessageCommitmentDefinition, MessageCommitmentDefinition, WalletCommitmentDefinition, WalletCommitmentDefinition, ScenarioCommitmentDefinition, ScenarioCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DeleteCommitmentDefinition, DictionaryCommitmentDefinition, OpenCommitmentDefinition, ClosedCommitmentDefinition, TeamCommitmentDefinition, UseBrowserCommitmentDefinition, UseDeepSearchCommitmentDefinition, UseSearchEngineCommitmentDefinition, UseSpawnCommitmentDefinition, UseTimeoutCommitmentDefinition, UseTimeCommitmentDefinition, UseUserLocationCommitmentDefinition, UseCalendarCommitmentDefinition, UseEmailCommitmentDefinition, UsePopupCommitmentDefinition, UseImageGeneratorCommitmentDefinition, UseMcpCommitmentDefinition, UsePrivacyCommitmentDefinition, UseProjectCommitmentDefinition, NotYetImplementedCommitmentDefinition<"EXPECT">, NotYetImplementedCommitmentDefinition<"BEHAVIOUR">, NotYetImplementedCommitmentDefinition<"BEHAVIOURS">, NotYetImplementedCommitmentDefinition<"AVOID">, NotYetImplementedCommitmentDefinition<"AVOIDANCE">, NotYetImplementedCommitmentDefinition<"CONTEXT">];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Usage } from '../Usage';
|
|
2
|
+
/**
|
|
3
|
+
* Formats usage price for display in prompt status lines and task details.
|
|
4
|
+
* Examples:
|
|
5
|
+
* - "$0.12" (certain)
|
|
6
|
+
* - "~$3.05" (uncertain)
|
|
7
|
+
* - "$0.00" (zero cost)
|
|
8
|
+
* - "<$0.01" (tiny non-zero cost)
|
|
9
|
+
*
|
|
10
|
+
* @private internal utility of the prompt runners and the Agents Server task details
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatUsagePrice(usage: Usage): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Temporary subdirectory used for agent-message runner shell scripts.
|
|
3
|
+
*
|
|
4
|
+
* @private internal constant of agent-message runtime paths
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_MESSAGE_SCRIPT_DIRECTORY_NAME = "agent-messages";
|
|
7
|
+
/**
|
|
8
|
+
* Builds the temporary shell script path used by one queued agent-message harness run.
|
|
9
|
+
*
|
|
10
|
+
* @param projectPath - Local agent project path containing the message queue.
|
|
11
|
+
* @param sourceFileName - Queued message filename used to name the temporary shell script.
|
|
12
|
+
* @returns Temporary shell script path.
|
|
13
|
+
* @private internal utility of agent-message runners
|
|
14
|
+
*/
|
|
15
|
+
export declare function buildAgentMessageScriptPathFromFileName(projectPath: string, sourceFileName: string): string;
|
|
16
|
+
/**
|
|
17
|
+
* Builds the live runtime log path used by one queued agent-message harness run.
|
|
18
|
+
*
|
|
19
|
+
* @param projectPath - Local agent project path containing the message queue.
|
|
20
|
+
* @param sourceFileName - Queued message filename used to name the temporary shell script.
|
|
21
|
+
* @returns Temporary live runtime log path.
|
|
22
|
+
* @private internal utility of agent-message runners
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildAgentMessageRuntimeLogPathFromFileName(projectPath: string, sourceFileName: string): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the latest user-friendly activity snippet from a coding-harness runtime log.
|
|
3
|
+
*
|
|
4
|
+
* The Agents Server local agent runner streams the answering harness output (for example
|
|
5
|
+
* Claude Code `--output-format stream-json`) into a live runtime log file next to the queued
|
|
6
|
+
* message. This helper extracts the most recent natural-language assistant narration so the
|
|
7
|
+
* durable chat can show what the agent is doing right now instead of a generic thinking
|
|
8
|
+
* placeholder. Only plain assistant text is surfaced; raw tool payloads, JSON envelopes and
|
|
9
|
+
* other technical details are intentionally ignored, and harnesses that do not stream
|
|
10
|
+
* structured text simply resolve to `null` so the caller keeps its existing behavior.
|
|
11
|
+
*
|
|
12
|
+
* @param logText - Raw runtime log content.
|
|
13
|
+
* @returns Latest human-readable activity snippet, or `null` when none can be resolved.
|
|
14
|
+
* @private internal utility of the agent-message runtime
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveAgentMessageRuntimeActivity(logText: string | null | undefined): string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { CreateCanvasForAsciiArt } from '../../avatars/renderAvatarVisualAsciiArt';
|
|
2
|
+
import type { AvatarVisualId } from '../../avatars/types/AvatarVisualDefinition';
|
|
3
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
4
|
+
import type { AsciiArtColorDepth } from '../ascii-art/convertImageDataToAsciiArt';
|
|
5
|
+
/**
|
|
6
|
+
* Output width of the terminal agent avatar visual in character cells.
|
|
7
|
+
*
|
|
8
|
+
* @private shared helper for terminal avatar rendering
|
|
9
|
+
*/
|
|
10
|
+
export declare const TERMINAL_AGENT_AVATAR_VISUAL_COLUMNS = 48;
|
|
11
|
+
/**
|
|
12
|
+
* Output height of the terminal agent avatar visual in character cells.
|
|
13
|
+
*
|
|
14
|
+
* @private shared helper for terminal avatar rendering
|
|
15
|
+
*/
|
|
16
|
+
export declare const TERMINAL_AGENT_AVATAR_VISUAL_ROWS = 12;
|
|
17
|
+
/**
|
|
18
|
+
* Refresh cadence used while a terminal agent avatar visual is animated.
|
|
19
|
+
*
|
|
20
|
+
* @private shared helper for terminal avatar rendering
|
|
21
|
+
*/
|
|
22
|
+
export declare const TERMINAL_AGENT_AVATAR_VISUAL_REFRESH_INTERVAL_MS = 300;
|
|
23
|
+
/**
|
|
24
|
+
* Centers ANSI-colored terminal avatar lines within one terminal frame.
|
|
25
|
+
*
|
|
26
|
+
* @param lines ANSI-colored avatar lines.
|
|
27
|
+
* @param frameColumns Available frame width in terminal character cells.
|
|
28
|
+
* @returns Avatar lines with leading terminal spaces added.
|
|
29
|
+
*
|
|
30
|
+
* @private shared helper for terminal avatar rendering
|
|
31
|
+
*/
|
|
32
|
+
export declare function centerTerminalAgentAvatarVisualLines(lines: ReadonlyArray<string>, frameColumns: number): ReadonlyArray<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Options passed when rendering one animated terminal avatar frame.
|
|
35
|
+
*
|
|
36
|
+
* @private shared helper for terminal avatar rendering
|
|
37
|
+
*/
|
|
38
|
+
export type TerminalAgentAvatarVisualFrameOptions = {
|
|
39
|
+
/**
|
|
40
|
+
* Current animation time forwarded to the shared avatar renderer.
|
|
41
|
+
*/
|
|
42
|
+
readonly animationTimeMs: number;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Runtime renderer for an agent avatar visual shown in a terminal.
|
|
46
|
+
*
|
|
47
|
+
* @private shared helper for terminal avatar rendering
|
|
48
|
+
*/
|
|
49
|
+
export type TerminalAgentAvatarVisual = {
|
|
50
|
+
/**
|
|
51
|
+
* Whether the selected built-in visual changes over time.
|
|
52
|
+
*/
|
|
53
|
+
readonly isAnimated: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Renders one ANSI ASCII-art frame for the current terminal timestamp.
|
|
56
|
+
*/
|
|
57
|
+
readonly renderFrame: (options: TerminalAgentAvatarVisualFrameOptions) => ReadonlyArray<string>;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Options for creating a terminal avatar visual renderer from an agent book source.
|
|
61
|
+
*
|
|
62
|
+
* @private shared helper for terminal avatar rendering
|
|
63
|
+
*/
|
|
64
|
+
export type CreateTerminalAgentAvatarVisualOptions = {
|
|
65
|
+
/**
|
|
66
|
+
* Source of the agent book whose metadata controls avatar identity.
|
|
67
|
+
*/
|
|
68
|
+
readonly agentSource: string_book;
|
|
69
|
+
/**
|
|
70
|
+
* Built-in avatar visual used when the agent does not declare `META AVATAR` or `META VISUAL`.
|
|
71
|
+
*/
|
|
72
|
+
readonly defaultAvatarVisualId?: AvatarVisualId;
|
|
73
|
+
/**
|
|
74
|
+
* Color depth of the emitted ANSI escape codes.
|
|
75
|
+
*/
|
|
76
|
+
readonly colorDepth?: AsciiArtColorDepth;
|
|
77
|
+
/**
|
|
78
|
+
* Platform-specific canvas factory used to rasterize the visual.
|
|
79
|
+
*/
|
|
80
|
+
readonly createCanvas: CreateCanvasForAsciiArt;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* Resolves the built-in avatar visual selected for terminal rendering of one agent source.
|
|
84
|
+
*
|
|
85
|
+
* @param agentSource Source of the agent book.
|
|
86
|
+
* @param defaultAvatarVisualId Built-in fallback used when the source does not declare an avatar visual.
|
|
87
|
+
* @returns Supported built-in avatar visual id.
|
|
88
|
+
*
|
|
89
|
+
* @private shared helper for terminal avatar rendering
|
|
90
|
+
*/
|
|
91
|
+
export declare function resolveTerminalAgentAvatarVisualId(agentSource: string_book, defaultAvatarVisualId?: AvatarVisualId): AvatarVisualId;
|
|
92
|
+
/**
|
|
93
|
+
* Creates an ANSI ASCII-art avatar renderer for terminal UIs.
|
|
94
|
+
*
|
|
95
|
+
* The agent's avatar visual is resolved the same way as on the website: `META AVATAR`
|
|
96
|
+
* / `META VISUAL` wins, then the provided fallback visual, then the shared default visual.
|
|
97
|
+
* The terminal variant uses a transparent horizontal canvas instead of the website's framed square surface.
|
|
98
|
+
*
|
|
99
|
+
* @param options Agent source, canvas factory, and optional terminal color settings.
|
|
100
|
+
* @returns Runtime terminal avatar visual renderer.
|
|
101
|
+
*
|
|
102
|
+
* @private shared helper for terminal avatar rendering
|
|
103
|
+
*/
|
|
104
|
+
export declare function createTerminalAgentAvatarVisual(options: CreateTerminalAgentAvatarVisualOptions): TerminalAgentAvatarVisual;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Escapes text so it can be safely inserted into HTML markup or an HTML attribute.
|
|
3
|
+
*
|
|
4
|
+
* @param value - Plain text value.
|
|
5
|
+
* @returns HTML-safe text.
|
|
6
|
+
*
|
|
7
|
+
* @private internal utility for building standalone HTML documents
|
|
8
|
+
*/
|
|
9
|
+
export declare function escapeHtml(value: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { string_markdown } from '../../types/string_markdown';
|
|
2
|
+
/**
|
|
3
|
+
* Moves every heading of a markdown document deeper into the hierarchy.
|
|
4
|
+
*
|
|
5
|
+
* This is needed when an independent markdown document is embedded under an
|
|
6
|
+
* existing heading, so that the merged document keeps one consistent outline.
|
|
7
|
+
* Headings inside fenced code blocks are left untouched.
|
|
8
|
+
*
|
|
9
|
+
* @param markdown - Markdown document to shift.
|
|
10
|
+
* @param headingLevelShift - How many levels the headings should move down.
|
|
11
|
+
* @returns Markdown with shifted headings.
|
|
12
|
+
*
|
|
13
|
+
* @private internal utility for composing markdown documents
|
|
14
|
+
*/
|
|
15
|
+
export declare function shiftMarkdownHeadingLevels(markdown: string_markdown, headingLevelShift: number): string_markdown;
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.113.0
|
|
18
|
+
* It follows semantic versioning (e.g., `0.113.1-0`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.0-1",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"types": "./esm/src/_packages/browser.index.d.ts",
|
|
99
99
|
"typings": "./esm/src/_packages/browser.index.d.ts",
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@promptbook/core": "0.
|
|
101
|
+
"@promptbook/core": "0.114.0-1"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
104
|
"@openai/agents": "0.4.15",
|
package/umd/index.umd.js
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
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-1';
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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.spaceTrim(`
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
22379
22448
|
function applyMetaInputPlaceholderContent(state, content) {
|
|
22380
22449
|
state.meta.inputPlaceholder = spacetrim.spaceTrim(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.spaceTrim(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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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),
|