@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
|
@@ -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/wizard",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.0-0",
|
|
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,
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"types": "./esm/src/_packages/wizard.index.d.ts",
|
|
100
100
|
"typings": "./esm/src/_packages/wizard.index.d.ts",
|
|
101
101
|
"peerDependencies": {
|
|
102
|
-
"@promptbook/core": "0.
|
|
102
|
+
"@promptbook/core": "0.114.0-0"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"@ai-sdk/deepseek": "0.1.17",
|
package/umd/index.umd.js
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
* @generated
|
|
53
53
|
* @see https://github.com/webgptorg/promptbook
|
|
54
54
|
*/
|
|
55
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.
|
|
55
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.114.0-0';
|
|
56
56
|
/**
|
|
57
57
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
58
58
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -20779,6 +20779,7 @@
|
|
|
20779
20779
|
* - META TITLE: Sets the agent's display title
|
|
20780
20780
|
* - META DESCRIPTION: Sets the agent's description
|
|
20781
20781
|
* - META INPUT PLACEHOLDER: Sets chat input placeholder text
|
|
20782
|
+
* - META THINKING MESSAGE: Adds custom thinking placeholder variants
|
|
20782
20783
|
* - META [ANYTHING]: Any other meta information in uppercase format
|
|
20783
20784
|
*
|
|
20784
20785
|
* These commitments are special because they don't affect the system message,
|
|
@@ -20794,6 +20795,7 @@
|
|
|
20794
20795
|
* META TITLE Professional Assistant
|
|
20795
20796
|
* META DESCRIPTION An AI assistant specialized in business tasks
|
|
20796
20797
|
* META INPUT PLACEHOLDER Write a message...
|
|
20798
|
+
* META THINKING MESSAGE Thinking...
|
|
20797
20799
|
* META AUTHOR John Doe
|
|
20798
20800
|
* META VERSION 1.0
|
|
20799
20801
|
* ```
|
|
@@ -20834,6 +20836,7 @@
|
|
|
20834
20836
|
- **META TITLE** - Sets the agent's display title
|
|
20835
20837
|
- **META DESCRIPTION** - Sets the agent's description
|
|
20836
20838
|
- **META INPUT PLACEHOLDER** - Sets chat input placeholder text
|
|
20839
|
+
- **META THINKING MESSAGE** - Adds custom thinking placeholder variants
|
|
20837
20840
|
- **META [ANYTHING]** - Any other meta information in uppercase format
|
|
20838
20841
|
|
|
20839
20842
|
## Key aspects
|
|
@@ -20842,6 +20845,7 @@
|
|
|
20842
20845
|
- Used for visual representation and attribution in user interfaces
|
|
20843
20846
|
- Multiple META commitments of different types can be used
|
|
20844
20847
|
- Multiple META LINK commitments can be used for different social profiles
|
|
20848
|
+
- Multiple META THINKING MESSAGE commitments can be used for different thinking placeholder variants
|
|
20845
20849
|
- If multiple META commitments of the same type are specified, the last one takes precedence (except for LINK)
|
|
20846
20850
|
|
|
20847
20851
|
## Examples
|
|
@@ -27640,6 +27644,68 @@
|
|
|
27640
27644
|
}
|
|
27641
27645
|
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
27642
27646
|
|
|
27647
|
+
/**
|
|
27648
|
+
* META THINKING MESSAGE commitment definition.
|
|
27649
|
+
*
|
|
27650
|
+
* The `META THINKING MESSAGE` commitment adds one custom thinking placeholder
|
|
27651
|
+
* variant used by chat UIs while an agent is composing a reply.
|
|
27652
|
+
*
|
|
27653
|
+
* @private Metadata-only commitment used by Agents Server chat UIs.
|
|
27654
|
+
*/
|
|
27655
|
+
class MetaThinkingMessageCommitmentDefinition extends BaseCommitmentDefinition {
|
|
27656
|
+
constructor() {
|
|
27657
|
+
super('META THINKING MESSAGE');
|
|
27658
|
+
}
|
|
27659
|
+
/**
|
|
27660
|
+
* Short one-line description of META THINKING MESSAGE.
|
|
27661
|
+
*/
|
|
27662
|
+
get description() {
|
|
27663
|
+
return 'Add a custom thinking placeholder shown while the agent replies.';
|
|
27664
|
+
}
|
|
27665
|
+
/**
|
|
27666
|
+
* Icon for this commitment.
|
|
27667
|
+
*/
|
|
27668
|
+
get icon() {
|
|
27669
|
+
return '💭';
|
|
27670
|
+
}
|
|
27671
|
+
/**
|
|
27672
|
+
* Markdown documentation for META THINKING MESSAGE commitment.
|
|
27673
|
+
*/
|
|
27674
|
+
get documentation() {
|
|
27675
|
+
return _spaceTrim.spaceTrim(`
|
|
27676
|
+
# META THINKING MESSAGE
|
|
27677
|
+
|
|
27678
|
+
Adds one custom placeholder variant shown while the agent is composing a reply.
|
|
27679
|
+
|
|
27680
|
+
## Key aspects
|
|
27681
|
+
|
|
27682
|
+
- Does not modify model behavior, system message, or tools.
|
|
27683
|
+
- Multiple \`META THINKING MESSAGE\` commitments define multiple variants.
|
|
27684
|
+
- Chat UIs randomly rotate between the configured variants while the reply is running.
|
|
27685
|
+
- When no non-empty variants are configured, the server-level \`THINKING_MESSAGES\` metadata is used.
|
|
27686
|
+
- Supports multiline markdown content.
|
|
27687
|
+
|
|
27688
|
+
## Example
|
|
27689
|
+
|
|
27690
|
+
\`\`\`book
|
|
27691
|
+
Helpful Assistant
|
|
27692
|
+
|
|
27693
|
+
META THINKING MESSAGE Thinking...
|
|
27694
|
+
META THINKING MESSAGE Processing...
|
|
27695
|
+
META THINKING MESSAGE
|
|
27696
|
+
|
|
27697
|
+
Doing
|
|
27698
|
+
extra **hard** work
|
|
27699
|
+
\`\`\`
|
|
27700
|
+
`);
|
|
27701
|
+
}
|
|
27702
|
+
applyToAgentModelRequirements(requirements, content) {
|
|
27703
|
+
// META THINKING MESSAGE is metadata only and does not alter model requirements.
|
|
27704
|
+
return requirements;
|
|
27705
|
+
}
|
|
27706
|
+
}
|
|
27707
|
+
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
27708
|
+
|
|
27643
27709
|
/**
|
|
27644
27710
|
* META VISIBILITY commitment definition.
|
|
27645
27711
|
*
|
|
@@ -29718,6 +29784,7 @@
|
|
|
29718
29784
|
1. **One-shot URL fetching**: Simple function to fetch and scrape URL content (active)
|
|
29719
29785
|
2. **Running browser**: For complex tasks like scrolling, clicking, form filling, etc. (runtime-dependent)
|
|
29720
29786
|
- The actual browser tool usage is handled by the agent runtime
|
|
29787
|
+
- 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)
|
|
29721
29788
|
- Allows the agent to fetch current information from websites and documents
|
|
29722
29789
|
- Useful for research tasks, fact-checking, and accessing dynamic content
|
|
29723
29790
|
- Supports various content types including HTML pages and PDF documents
|
|
@@ -36215,6 +36282,7 @@
|
|
|
36215
36282
|
new MetaDomainCommitmentDefinition(),
|
|
36216
36283
|
new MetaDisclaimerCommitmentDefinition(),
|
|
36217
36284
|
new MetaInputPlaceholderCommitmentDefinition(),
|
|
36285
|
+
new MetaThinkingMessageCommitmentDefinition(),
|
|
36218
36286
|
new MetaVisibilityCommitmentDefinition(),
|
|
36219
36287
|
new MetaCommitmentDefinition(),
|
|
36220
36288
|
new MetaVoiceCommitmentDefinition(),
|
|
@@ -37566,6 +37634,7 @@
|
|
|
37566
37634
|
'META DESCRIPTION': applyMetaDescriptionContent,
|
|
37567
37635
|
'META DISCLAIMER': applyMetaDisclaimerContent,
|
|
37568
37636
|
'META INPUT PLACEHOLDER': applyMetaInputPlaceholderContent,
|
|
37637
|
+
'META THINKING MESSAGE': applyMetaThinkingMessageContent,
|
|
37569
37638
|
'MESSAGE SUFFIX': applyMessageSuffixContent,
|
|
37570
37639
|
'META COLOR': applyMetaColorContent,
|
|
37571
37640
|
'META FONT': applyMetaFontContent,
|
|
@@ -37656,6 +37725,16 @@
|
|
|
37656
37725
|
function applyMetaInputPlaceholderContent(state, content) {
|
|
37657
37726
|
state.meta.inputPlaceholder = _spaceTrim.spaceTrim(content);
|
|
37658
37727
|
}
|
|
37728
|
+
/**
|
|
37729
|
+
* Applies one META THINKING MESSAGE content block into the custom thinking-message variants.
|
|
37730
|
+
*/
|
|
37731
|
+
function applyMetaThinkingMessageContent(state, content) {
|
|
37732
|
+
const thinkingMessage = _spaceTrim.spaceTrim(content);
|
|
37733
|
+
if (!thinkingMessage) {
|
|
37734
|
+
return;
|
|
37735
|
+
}
|
|
37736
|
+
state.thinkingMessages = [...(state.thinkingMessages || []), thinkingMessage];
|
|
37737
|
+
}
|
|
37659
37738
|
/**
|
|
37660
37739
|
* Applies MESSAGE SUFFIX content into the canonical `meta.messageSuffix` field.
|
|
37661
37740
|
*/
|
|
@@ -38024,6 +38103,7 @@
|
|
|
38024
38103
|
capabilities: [],
|
|
38025
38104
|
samples: [],
|
|
38026
38105
|
knowledgeSources: [],
|
|
38106
|
+
thinkingMessages: [],
|
|
38027
38107
|
pendingUserMessage: null,
|
|
38028
38108
|
knownKnowledgeSourceUrls: new Set(),
|
|
38029
38109
|
};
|
|
@@ -38036,6 +38116,7 @@
|
|
|
38036
38116
|
capabilities: state.capabilities,
|
|
38037
38117
|
samples: state.samples,
|
|
38038
38118
|
knowledgeSources: state.knowledgeSources,
|
|
38119
|
+
thinkingMessages: state.thinkingMessages,
|
|
38039
38120
|
};
|
|
38040
38121
|
}
|
|
38041
38122
|
/**
|
|
@@ -38075,6 +38156,7 @@
|
|
|
38075
38156
|
permanentId: parsedProfile.meta.id,
|
|
38076
38157
|
personaDescription,
|
|
38077
38158
|
initialMessage,
|
|
38159
|
+
thinkingMessages: parsedProfile.thinkingMessages,
|
|
38078
38160
|
meta: parsedProfile.meta,
|
|
38079
38161
|
links: parsedProfile.links,
|
|
38080
38162
|
parameters: parseParameters(agentSource),
|
|
@@ -41004,7 +41086,7 @@
|
|
|
41004
41086
|
*
|
|
41005
41087
|
* @private within the repository
|
|
41006
41088
|
*/
|
|
41007
|
-
function locateApp(options) {
|
|
41089
|
+
async function locateApp(options) {
|
|
41008
41090
|
if (!$isRunningInNode()) {
|
|
41009
41091
|
throw new EnvironmentMismatchError('Locating apps works only in Node.js environment');
|
|
41010
41092
|
}
|