@promptbook/javascript 0.114.0-2 → 0.114.0-20
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 +8 -16
- package/esm/index.es.js +1 -1
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +4 -0
- package/esm/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/esm/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/esm/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/esm/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/esm/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/esm/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/esm/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/esm/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/esm/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/esm/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/esm/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/esm/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/esm/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/esm/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/esm/src/cli/cli-commands/coder/ping.d.ts +2 -5
- package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +3 -2
- package/esm/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/esm/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- package/{umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → esm/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -2
- package/esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/esm/src/cli/common/loadPromptsModule.d.ts +16 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/esm/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/esm/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/esm/src/commitments/index.d.ts +4 -12
- package/esm/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/esm/src/llm-providers/agent/Agent.d.ts +1 -1
- package/esm/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/esm/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/esm/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/esm/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/esm/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/esm/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/esm/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/esm/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/esm/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/esm/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
- package/esm/src/utils/misc/debounce.d.ts +4 -2
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +1 -1
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +4 -0
- package/umd/src/avatars/renderAvatarVisualTerminalText.d.ts +80 -0
- package/umd/src/avatars/types/AvatarVisualDefinition.d.ts +54 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +3 -3
- package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -0
- package/umd/src/book-2.0/agent-source/ParsedUnknownCommitment.d.ts +26 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/getBookCommitmentLineType.d.ts +19 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts +1 -0
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +46 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.d.ts +127 -0
- package/umd/src/book-3.0/AgentPlannedMessagesSidecar.test.d.ts +1 -0
- package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/umd/src/book-3.0/createAgentMessageSidecarBaseName.d.ts +13 -0
- package/umd/src/book-3.0/describeAgentPlannedMessageSchedule.d.ts +31 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts +1 -9
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/umd/src/book-components/Chat/Chat/renderAgentProjectDiff.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/renderAgentProjectToolCallDetails.d.ts +16 -0
- package/umd/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.d.ts +85 -0
- package/umd/src/book-components/Chat/utils/agentProjectToolCall.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/externalSourceToolCall.d.ts +38 -0
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +68 -3
- package/umd/src/book-components/Chat/utils/timeoutToolCallPresentation.d.ts +30 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/GitChangesMode.d.ts +28 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/umd/src/cli/cli-commands/coder/boilerplateCount.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/ping.d.ts +2 -5
- package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder/waitOptions.d.ts +12 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -1
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -0
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +3 -3
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +3 -3
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +3 -2
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.d.ts +29 -0
- package/umd/src/cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/{harness/$askForHarnessInstallationApproval.d.ts → npm/$askForNpmPackageInstallationApproval.d.ts} +2 -2
- package/{esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts → umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.d.ts} +2 -3
- package/umd/src/cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +9 -2
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallation.d.ts +66 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/PromptbookCliInstallationStatus.d.ts +26 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/buildPromptbookCliInstallCommand.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/formatPromptbookCliInstallationWarning.d.ts +7 -0
- package/umd/src/cli/common/loadPromptsModule.d.ts +16 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +15 -0
- package/umd/src/commitments/{COMPONENT/COMPONENT.d.ts → META_FULLNAME/META_FULLNAME.d.ts} +8 -5
- package/umd/src/commitments/META_ID/META_ID.d.ts +32 -0
- package/umd/src/commitments/index.d.ts +4 -12
- package/umd/src/executables/platforms/locateAppOnWindows.d.ts +1 -1
- package/umd/src/executables/platforms/locateAppOnWindows.test.d.ts +1 -0
- package/umd/src/llm-providers/agent/Agent.d.ts +1 -1
- package/umd/src/llm-providers/anthropic-claude/AnthropicClaudeExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/azure-openai/AzureOpenAiExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionToolsToolBuilder.d.ts +2 -2
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleNonChatPromptCaller.d.ts +1 -1
- package/umd/src/llm-providers/openai/OpenAiCompatibleRequestManager.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/callOpenAiCompatibleChatModel.d.ts +1 -1
- package/umd/src/llm-providers/openai/utils/loadOpenAiAgentsModule.d.ts +203 -0
- package/umd/src/llm-providers/openai/utils/uploadFilesToOpenAi.d.ts +1 -1
- package/umd/src/{commitments/USE_BROWSER → scrapers/_common/utils}/fetchUrlContent.d.ts +2 -3
- package/umd/src/utils/agent-message-runtime/AgentMessageProjectChange.d.ts +76 -0
- package/umd/src/utils/agent-message-runtime/AgentMessageTouchedExternalSource.d.ts +45 -0
- package/umd/src/utils/agent-message-runtime/parseAgentMessageRuntimeLogEvents.d.ts +62 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.d.ts +18 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts +1 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.d.ts +19 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts +1 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +5 -2
- package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +6 -0
- package/umd/src/utils/ascii-art/createAnsiColorCode.d.ts +46 -0
- package/umd/src/utils/misc/createLazyModuleLoader.d.ts +14 -0
- package/umd/src/utils/misc/debounce.d.ts +4 -2
- package/umd/src/utils/misc/debounce.test.d.ts +1 -0
- package/umd/src/utils/random/$generateBookBoilerplate.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- package/esm/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/META/META.d.ts +0 -65
- package/esm/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/esm/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/esm/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/esm/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/esm/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/esm/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/esm/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/esm/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/esm/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +0 -11
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +0 -9
- package/umd/src/commitments/MEMORY/MEMORY.d.ts +0 -48
- package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +0 -11
- package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +0 -149
- package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +0 -6
- package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +0 -8
- package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +0 -14
- package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +0 -7
- package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +0 -61
- package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/META/META.d.ts +0 -65
- package/umd/src/commitments/USE/aggregateUseCommitmentSystemMessages.d.ts +0 -32
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +0 -58
- package/umd/src/commitments/USE_BROWSER/fetchUrlContentViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +0 -10
- package/umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.d.ts +0 -47
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +0 -38
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +0 -21
- package/umd/src/commitments/USE_EMAIL/resolveSendEmailToolForNode.d.ts +0 -11
- package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +0 -13
- package/umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.d.ts +0 -46
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +0 -38
- package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +0 -9
- package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +0 -12
- package/umd/src/commitments/USE_TIME/USE_TIME.d.ts +0 -43
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +0 -11
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +0 -212
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +0 -38
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +0 -6
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +0 -7
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +0 -17
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +0 -78
- package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/WALLET/WALLET.d.ts +0 -21
- package/umd/src/commitments/WALLET/WalletToolNames.d.ts +0 -12
- package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +0 -163
- package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +0 -6
- package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +0 -8
- package/umd/src/commitments/WALLET/createWalletTools.d.ts +0 -7
- package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +0 -6
- package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +0 -16
- package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +0 -7
- package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +0 -51
- package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +0 -8
- package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +0 -13
- package/umd/src/commitments/_common/createSerpSearchToolFunction.d.ts +0 -12
- /package/esm/src/{book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/esm/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirementsWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → book-2.0/agent-source/parseAgentSourceWithCommitments.unknown.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → book-3.0/AgentPlannedMessagesSidecar.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → book-components/BookEditor/createDuplicateFromCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → book-components/BookEditor/createUnknownCommitmentDiagnostics.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → book-components/Chat/utils/agentProjectToolCall.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/harness/$checkHarnessInstallation.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/harnessUpdateCliOptions.test.d.ts} +0 -0
- /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
- /package/{umd/src/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → esm/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
- /package/{umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → esm/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
- /package/{umd/src/commitments/MEMORY/MEMORY.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/USE_BROWSER.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → esm/src/cli/cli-commands/common/promptbook-cli/$updatePromptbookCliInstallation.test.d.ts} +0 -0
- /package/esm/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
- /package/{umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts → esm/src/executables/platforms/locateAppOnWindows.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedExternalSources.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → esm/src/utils/agent-message-runtime/resolveAgentMessageTouchedProjectNames.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
- /package/{umd/src/commitments/USE_TIME/USE_TIME.test.d.ts → esm/src/utils/random/$generateBookBoilerplate.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/umd/src/{commitments/WALLET/WALLET.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
|
@@ -31,13 +31,13 @@ export type BookParameter = {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* Capability of the agent
|
|
34
|
-
* This is parsed from commitments like USE
|
|
34
|
+
* This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
|
|
35
35
|
*/
|
|
36
36
|
export type AgentCapability = {
|
|
37
37
|
/**
|
|
38
38
|
* The type of the capability
|
|
39
39
|
*/
|
|
40
|
-
type: '
|
|
40
|
+
type: 'knowledge' | 'user-location' | 'inheritance' | 'import' | 'image-generator' | 'team' | 'popup' | 'privacy' | 'project' | 'calendar';
|
|
41
41
|
/**
|
|
42
42
|
* The label to display for this capability
|
|
43
43
|
*/
|
|
@@ -122,7 +122,7 @@ export type AgentBasicInformation = {
|
|
|
122
122
|
parameters: Array<BookParameter>;
|
|
123
123
|
/**
|
|
124
124
|
* Capabilities of the agent
|
|
125
|
-
* This is parsed from commitments like USE
|
|
125
|
+
* This is parsed from commitments like USE CALENDAR, USE PROJECT, KNOWLEDGE, etc.
|
|
126
126
|
*/
|
|
127
127
|
capabilities: Array<AgentCapability>;
|
|
128
128
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ParsedCommitment } from '../../commitments/_base/ParsedCommitment';
|
|
2
2
|
import type { string_agent_name } from '../../types/string_agent_name';
|
|
3
|
+
import type { ParsedUnknownCommitment } from './ParsedUnknownCommitment';
|
|
3
4
|
/**
|
|
4
5
|
* Result of parsing agent source for commitments
|
|
5
6
|
*
|
|
@@ -18,6 +19,10 @@ export type AgentSourceParseResult = {
|
|
|
18
19
|
* All parsed commitments
|
|
19
20
|
*/
|
|
20
21
|
commitments: ParsedCommitment[];
|
|
22
|
+
/**
|
|
23
|
+
* Uppercase commitment blocks whose types are not registered by Promptbook.
|
|
24
|
+
*/
|
|
25
|
+
unknownCommitments: ParsedUnknownCommitment[];
|
|
21
26
|
/**
|
|
22
27
|
* Lines that are not commitments (for system message)
|
|
23
28
|
*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An uppercase Book commitment block whose keyword is not registered by Promptbook.
|
|
3
|
+
*
|
|
4
|
+
* Unknown commitments are retained as system-message context instead of being applied
|
|
5
|
+
* as executable commitments.
|
|
6
|
+
*
|
|
7
|
+
* @private internal type of `parseAgentSourceWithCommitments`
|
|
8
|
+
*/
|
|
9
|
+
export type ParsedUnknownCommitment = {
|
|
10
|
+
/**
|
|
11
|
+
* Uppercase unknown commitment type, for example `FOO` or `BAR BZZ`.
|
|
12
|
+
*/
|
|
13
|
+
readonly type: string;
|
|
14
|
+
/**
|
|
15
|
+
* Original first line, retained for precise editor diagnostics.
|
|
16
|
+
*/
|
|
17
|
+
readonly originalLine: string;
|
|
18
|
+
/**
|
|
19
|
+
* Line number in the agent source (1-based).
|
|
20
|
+
*/
|
|
21
|
+
readonly lineNumber: number;
|
|
22
|
+
/**
|
|
23
|
+
* Complete unknown commitment block, including its keyword and continuation lines.
|
|
24
|
+
*/
|
|
25
|
+
readonly source: string;
|
|
26
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the regex used to recognize the uppercase commitment type at the beginning of a Book line.
|
|
3
|
+
*
|
|
4
|
+
* A fresh regular expression keeps Monaco tokenizer state isolated from parser calls.
|
|
5
|
+
*
|
|
6
|
+
* @returns Regular expression matching one Book commitment-like line.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of Book parsing and `<BookEditor/>`
|
|
9
|
+
*/
|
|
10
|
+
export declare function createBookCommitmentLineTypeRegex(): RegExp;
|
|
11
|
+
/**
|
|
12
|
+
* Extracts the uppercase commitment type from a Book line, including types not registered by Promptbook.
|
|
13
|
+
*
|
|
14
|
+
* @param line - One raw Book source line.
|
|
15
|
+
* @returns Matched commitment type or `null` when the line does not begin with commitment syntax.
|
|
16
|
+
*
|
|
17
|
+
* @private internal utility of Book parsing and `<BookEditor/>`
|
|
18
|
+
*/
|
|
19
|
+
export declare function getBookCommitmentLineType(line: string): string | null;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import type { Usage } from '../execution/Usage';
|
|
2
|
+
import type { AgentMessageProjectChange } from '../utils/agent-message-runtime/AgentMessageProjectChange';
|
|
3
|
+
import type { AgentMessageTouchedExternalSource } from '../utils/agent-message-runtime/AgentMessageTouchedExternalSource';
|
|
2
4
|
import type { CodexLoginMethod } from './codexLoginMethod';
|
|
3
5
|
/**
|
|
4
6
|
* File suffix appended to one answered message book to store its run report sidecar.
|
|
@@ -9,6 +11,23 @@ import type { CodexLoginMethod } from './codexLoginMethod';
|
|
|
9
11
|
* @private internal constant of the agent folder convention
|
|
10
12
|
*/
|
|
11
13
|
export declare const AGENT_MESSAGE_RUN_REPORT_FILE_SUFFIX = ".report.json";
|
|
14
|
+
/**
|
|
15
|
+
* Exact wall-clock interval during which one harness processed an agent message.
|
|
16
|
+
*
|
|
17
|
+
* Note: [🚉] This is fully serializable as JSON
|
|
18
|
+
*
|
|
19
|
+
* @private internal type of the agent folder convention
|
|
20
|
+
*/
|
|
21
|
+
export type AgentMessageRunExecutionTiming = {
|
|
22
|
+
/**
|
|
23
|
+
* ISO 8601 timestamp captured immediately before the harness begins the message.
|
|
24
|
+
*/
|
|
25
|
+
readonly startedAt: string;
|
|
26
|
+
/**
|
|
27
|
+
* ISO 8601 timestamp captured when the harness finishes the message.
|
|
28
|
+
*/
|
|
29
|
+
readonly finishedAt: string;
|
|
30
|
+
};
|
|
12
31
|
/**
|
|
13
32
|
* Report describing how one queued agent message was answered by a CLI harness runner.
|
|
14
33
|
*
|
|
@@ -44,6 +63,33 @@ export type AgentMessageRunReport = {
|
|
|
44
63
|
* Usage statistics of the run (price, token counts, duration).
|
|
45
64
|
*/
|
|
46
65
|
readonly usage: Usage;
|
|
66
|
+
/**
|
|
67
|
+
* Measured wall-clock timing of the actual harness execution, excluding time spent waiting in the queue.
|
|
68
|
+
*/
|
|
69
|
+
readonly executionTiming?: AgentMessageRunExecutionTiming;
|
|
70
|
+
/**
|
|
71
|
+
* Directory names of the agent projects the harness worked with while answering the message.
|
|
72
|
+
*
|
|
73
|
+
* Reported by the runner from its live runtime log, which is deleted once the message is
|
|
74
|
+
* answered, so this is the only trace of the projects one answer viewed or edited.
|
|
75
|
+
*/
|
|
76
|
+
readonly touchedProjectNames?: ReadonlyArray<string>;
|
|
77
|
+
/**
|
|
78
|
+
* Sources outside the agent — integrations, websites and web searches — the harness reached
|
|
79
|
+
* while answering the message.
|
|
80
|
+
*
|
|
81
|
+
* Reported from the same live runtime log as `touchedProjectNames`, so this is the only trace
|
|
82
|
+
* of what one answer touched beyond the agent itself.
|
|
83
|
+
*/
|
|
84
|
+
readonly touchedExternalSources?: ReadonlyArray<AgentMessageTouchedExternalSource>;
|
|
85
|
+
/**
|
|
86
|
+
* Changes the harness made to the agent projects while answering the message.
|
|
87
|
+
*
|
|
88
|
+
* Every agent project is a git repository and the runner commits each answer into it, so one
|
|
89
|
+
* entry describes exactly what one message did to one project — including the diff of the
|
|
90
|
+
* commit it created.
|
|
91
|
+
*/
|
|
92
|
+
readonly projectChanges?: ReadonlyArray<AgentMessageProjectChange>;
|
|
47
93
|
};
|
|
48
94
|
/**
|
|
49
95
|
* Builds the run-report sidecar path for one message book path.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relative directory holding the planned-message sidecar of each queued message.
|
|
3
|
+
*
|
|
4
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_PLANNED_MESSAGES_DIRECTORY_PATH: string;
|
|
7
|
+
/**
|
|
8
|
+
* Command actions an agent can request from its planned-message sidecar.
|
|
9
|
+
*
|
|
10
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
11
|
+
*/
|
|
12
|
+
export declare const AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS: readonly ["set", "update", "cancel"];
|
|
13
|
+
/**
|
|
14
|
+
* One planned-message command action.
|
|
15
|
+
*
|
|
16
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
17
|
+
*/
|
|
18
|
+
export type AgentPlannedMessageCommandAction = (typeof AGENT_PLANNED_MESSAGE_COMMAND_ACTIONS)[number];
|
|
19
|
+
/**
|
|
20
|
+
* One planned message that is already waiting to wake the agent.
|
|
21
|
+
*
|
|
22
|
+
* A planned message can repeat like `setInterval`, run a bounded number of times, or wake the agent
|
|
23
|
+
* only once, so the whole schedule is what the agent compares with its goal, while `dueAt` only says
|
|
24
|
+
* when the nearest wake-up happens.
|
|
25
|
+
*
|
|
26
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
27
|
+
*/
|
|
28
|
+
export type AgentPlannedMessageSnapshot = {
|
|
29
|
+
readonly timeoutId: string;
|
|
30
|
+
readonly dueAt: string;
|
|
31
|
+
readonly message: string | null;
|
|
32
|
+
/**
|
|
33
|
+
* Repeat interval in milliseconds, or `null` for a planned message that does not repeat at a fixed
|
|
34
|
+
* interval.
|
|
35
|
+
*/
|
|
36
|
+
readonly intervalMs: number | null;
|
|
37
|
+
/**
|
|
38
|
+
* Five-field cron expression driving the repetitions, or `null` when the planned message does not
|
|
39
|
+
* follow a cron.
|
|
40
|
+
*/
|
|
41
|
+
readonly cronExpression: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Moment before which the planned message never wakes the agent, or `null` when it has no starting
|
|
44
|
+
* date.
|
|
45
|
+
*/
|
|
46
|
+
readonly startsAt: string | null;
|
|
47
|
+
/**
|
|
48
|
+
* Moment after which the planned message never wakes the agent again, or `null` when it has no
|
|
49
|
+
* ending date.
|
|
50
|
+
*/
|
|
51
|
+
readonly endsAt: string | null;
|
|
52
|
+
/**
|
|
53
|
+
* Total number of wake-ups the planned message performs, or `null` when it repeats until it is
|
|
54
|
+
* cancelled.
|
|
55
|
+
*/
|
|
56
|
+
readonly maxRunCount: number | null;
|
|
57
|
+
/**
|
|
58
|
+
* Number of times the planned message already woke the agent.
|
|
59
|
+
*/
|
|
60
|
+
readonly runCount: number;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* One command written by the coding harness into its planned-message sidecar.
|
|
64
|
+
*
|
|
65
|
+
* The payload stays untyped on purpose: it is untrusted harness output and is validated by the very
|
|
66
|
+
* same shared planned-message actions that back the model tools and the internal runtime API.
|
|
67
|
+
*
|
|
68
|
+
* For a `set` command, `milliseconds` is the repeat interval of the planned message, not a one-shot
|
|
69
|
+
* delay, and `cronExpression`, `startsAt`, `endsAt`, and `maxRunCount` bound how it repeats. An
|
|
70
|
+
* `update` command changes the very same fields of the planned message named by `timeoutId`, where a
|
|
71
|
+
* field that is left out stays as it is and an explicit `null` removes the bound.
|
|
72
|
+
*
|
|
73
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
74
|
+
*/
|
|
75
|
+
export type AgentPlannedMessageCommand = {
|
|
76
|
+
readonly action: AgentPlannedMessageCommandAction;
|
|
77
|
+
readonly milliseconds?: unknown;
|
|
78
|
+
readonly cronExpression?: unknown;
|
|
79
|
+
readonly startsAt?: unknown;
|
|
80
|
+
readonly endsAt?: unknown;
|
|
81
|
+
readonly maxRunCount?: unknown;
|
|
82
|
+
readonly message?: unknown;
|
|
83
|
+
readonly timeoutId?: unknown;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Planned-message sidecar prepared for one queued message.
|
|
87
|
+
*
|
|
88
|
+
* `currentPlannedMessages` is written by the Agents Server and is read-only for the agent, while
|
|
89
|
+
* `commands` is the only channel through which a coding harness can plan or cancel a wake-up.
|
|
90
|
+
*
|
|
91
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
92
|
+
*/
|
|
93
|
+
export type AgentPlannedMessagesSidecar = {
|
|
94
|
+
readonly version: 1;
|
|
95
|
+
readonly agentPermanentId: string;
|
|
96
|
+
readonly currentPlannedMessages: ReadonlyArray<AgentPlannedMessageSnapshot>;
|
|
97
|
+
readonly commands: ReadonlyArray<AgentPlannedMessageCommand>;
|
|
98
|
+
};
|
|
99
|
+
/**
|
|
100
|
+
* Creates the relative planned-message sidecar path of one queued message.
|
|
101
|
+
*
|
|
102
|
+
* @param messageFileName - File name of the queued `.book` message.
|
|
103
|
+
* @returns Relative path of the sidecar inside the agent folder.
|
|
104
|
+
*
|
|
105
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
106
|
+
*/
|
|
107
|
+
export declare function createAgentPlannedMessagesSidecarPath(messageFileName: string): string;
|
|
108
|
+
/**
|
|
109
|
+
* Serializes one planned-message sidecar into its stored representation.
|
|
110
|
+
*
|
|
111
|
+
* @param sidecar - Sidecar prepared for one queued message.
|
|
112
|
+
* @returns Pretty-printed JSON the coding harness can edit by hand.
|
|
113
|
+
*
|
|
114
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
115
|
+
*/
|
|
116
|
+
export declare function createAgentPlannedMessagesSidecarContent(sidecar: AgentPlannedMessagesSidecar): string;
|
|
117
|
+
/**
|
|
118
|
+
* Parses one untrusted planned-message sidecar written back by a coding harness.
|
|
119
|
+
*
|
|
120
|
+
* A malformed sidecar never fails the already answered chat, so this returns `null` instead of throwing.
|
|
121
|
+
*
|
|
122
|
+
* @param sidecarContent - Raw file content read from the agent folder.
|
|
123
|
+
* @returns Normalized sidecar, or `null` when it cannot be used.
|
|
124
|
+
*
|
|
125
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
126
|
+
*/
|
|
127
|
+
export declare function parseAgentPlannedMessagesSidecar(sidecarContent: string): AgentPlannedMessagesSidecar | null;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Relative directory for an active TEAM conversation workspace.
|
|
3
|
+
*
|
|
4
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
5
|
+
*/
|
|
6
|
+
export declare const AGENT_TEAM_CONVERSATIONS_DIRECTORY_PATH: string;
|
|
7
|
+
/**
|
|
8
|
+
* Relative directory where completed TEAM conversation transcripts are retained.
|
|
9
|
+
*
|
|
10
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
11
|
+
*/
|
|
12
|
+
export declare const AGENT_FINISHED_TEAM_CONVERSATIONS_DIRECTORY_PATH: string;
|
|
13
|
+
/**
|
|
14
|
+
* Name of the JSON manifest that describes one TEAM conversation workspace.
|
|
15
|
+
*
|
|
16
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
17
|
+
*/
|
|
18
|
+
export declare const AGENT_TEAM_CONVERSATION_MANIFEST_FILE_NAME = "team.json";
|
|
19
|
+
/**
|
|
20
|
+
* Name of the read-only teammate-source directory inside one TEAM workspace.
|
|
21
|
+
*
|
|
22
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
23
|
+
*/
|
|
24
|
+
export declare const AGENT_TEAMMATE_SOURCES_DIRECTORY_NAME = "teammates";
|
|
25
|
+
/**
|
|
26
|
+
* One primary agent represented in a TEAM workspace manifest.
|
|
27
|
+
*
|
|
28
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
29
|
+
*/
|
|
30
|
+
export type AgentTeamConversationPrimaryAgent = {
|
|
31
|
+
readonly permanentId: string;
|
|
32
|
+
readonly agentName: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* One local teammate made available to the coding harness for a single user turn.
|
|
36
|
+
*
|
|
37
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
38
|
+
*/
|
|
39
|
+
export type AgentTeamConversationTeammate = {
|
|
40
|
+
readonly permanentId: string;
|
|
41
|
+
readonly agentName: string;
|
|
42
|
+
readonly url: string;
|
|
43
|
+
readonly instructions: string;
|
|
44
|
+
readonly sourceFileName: string;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Persisted roster snapshot for the optional TEAM workspace of one queued message.
|
|
48
|
+
*
|
|
49
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
50
|
+
*/
|
|
51
|
+
export type AgentTeamConversationWorkspaceManifest = {
|
|
52
|
+
readonly version: 1;
|
|
53
|
+
readonly primaryAgent: AgentTeamConversationPrimaryAgent;
|
|
54
|
+
readonly teammates: ReadonlyArray<AgentTeamConversationTeammate>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Creates the stable directory name that belongs to one queued `.book` message.
|
|
58
|
+
*
|
|
59
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
60
|
+
*/
|
|
61
|
+
export declare function createAgentTeamConversationWorkspaceDirectoryName(messageFileName: string): string;
|
|
62
|
+
/**
|
|
63
|
+
* Creates the relative active workspace path for one queued message.
|
|
64
|
+
*
|
|
65
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
66
|
+
*/
|
|
67
|
+
export declare function createAgentTeamConversationWorkspacePath(messageFileName: string): string;
|
|
68
|
+
/**
|
|
69
|
+
* Creates the relative completed-workspace path for one queued message.
|
|
70
|
+
*
|
|
71
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
72
|
+
*/
|
|
73
|
+
export declare function createFinishedAgentTeamConversationWorkspacePath(messageFileName: string): string;
|
|
74
|
+
/**
|
|
75
|
+
* Creates the source-snapshot file name for one teammate.
|
|
76
|
+
*
|
|
77
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
78
|
+
*/
|
|
79
|
+
export declare function createAgentTeamTeammateSourceFileName(teammatePermanentId: string): string;
|
|
80
|
+
/**
|
|
81
|
+
* Checks whether unknown JSON has the minimum shape required for a TEAM workspace manifest.
|
|
82
|
+
*
|
|
83
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
84
|
+
*/
|
|
85
|
+
export declare function isAgentTeamConversationWorkspaceManifest(value: unknown): value is AgentTeamConversationWorkspaceManifest;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the stable file-system safe base name that belongs to one queued `.book` message.
|
|
3
|
+
*
|
|
4
|
+
* Every sidecar the Agents Server prepares next to a queued message (TEAM workspaces, planned-message
|
|
5
|
+
* files, ...) derives its own name from this one normalization, so a sidecar can always be found again
|
|
6
|
+
* from the message file name alone.
|
|
7
|
+
*
|
|
8
|
+
* @param messageFileName - File name of the queued message, with or without directories.
|
|
9
|
+
* @returns Normalized base name usable as a directory or file name.
|
|
10
|
+
*
|
|
11
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
12
|
+
*/
|
|
13
|
+
export declare function createAgentMessageSidecarBaseName(messageFileName: string): string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Schedule of one planned message as it is described to an agent.
|
|
3
|
+
*
|
|
4
|
+
* The fields match `AgentPlannedMessageSnapshot`, so one snapshot, one scheduling result, and one
|
|
5
|
+
* stored planned message are all described by the very same sentence.
|
|
6
|
+
*
|
|
7
|
+
* @private internal convention shared by the Agents Server and agent-folder runner
|
|
8
|
+
*/
|
|
9
|
+
export type AgentPlannedMessageScheduleDescription = {
|
|
10
|
+
readonly intervalMs?: number | null;
|
|
11
|
+
readonly cronExpression?: string | null;
|
|
12
|
+
readonly startsAt?: string | null;
|
|
13
|
+
readonly endsAt?: string | null;
|
|
14
|
+
readonly maxRunCount?: number | null;
|
|
15
|
+
readonly runCount?: number | null;
|
|
16
|
+
readonly dueAt?: string | null;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Describes one planned-message schedule in a single sentence fragment.
|
|
20
|
+
*
|
|
21
|
+
* A planned message can repeat forever, repeat a bounded number of times, run inside a date window, or
|
|
22
|
+
* wake the agent only once. Every surface showing a planned message — the wake-up itself, the goal-chat
|
|
23
|
+
* notes, the planned-message prompt section, and the model tools — describes it with this one helper,
|
|
24
|
+
* so an agent never has to reconcile two different wordings of the same plan.
|
|
25
|
+
*
|
|
26
|
+
* @param schedule - Schedule of the planned message.
|
|
27
|
+
* @returns Fragment such as `repeats every 5 minutes (2 of 10 runs done)`.
|
|
28
|
+
*
|
|
29
|
+
* @private internal utility of the Agents Server planned messages
|
|
30
|
+
*/
|
|
31
|
+
export declare function describeAgentPlannedMessageSchedule(schedule: AgentPlannedMessageScheduleDescription): string;
|
package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.browser.d.ts
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Browser-compatible stub for `createDeprecatedCommitmentDiagnostics`.
|
|
3
|
-
*
|
|
4
|
-
* In the browser build the full Node.js implementation is not available,
|
|
5
|
-
* so this stub always returns an empty array to keep the editor functional.
|
|
6
|
-
*
|
|
7
|
-
* @private internal utility of `BookEditorMonaco`
|
|
8
|
-
*/
|
|
9
|
-
export declare function createDeprecatedCommitmentDiagnostics(_agentSource?: string): [];
|
|
1
|
+
export { createDeprecatedCommitmentDiagnostics } from './createDeprecatedCommitmentDiagnostics';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
/**
|
|
3
|
+
* Monaco diagnostic shown when a Book source declares its parent agent more than once.
|
|
4
|
+
*
|
|
5
|
+
* @private internal type of `BookEditorMonaco`
|
|
6
|
+
*/
|
|
7
|
+
type DuplicateFromCommitmentDiagnostic = {
|
|
8
|
+
readonly startLineNumber: number;
|
|
9
|
+
readonly startColumn: number;
|
|
10
|
+
readonly endLineNumber: number;
|
|
11
|
+
readonly endColumn: number;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
readonly source: string;
|
|
14
|
+
readonly severity: 'warning';
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Creates Book editor diagnostics for a parent agent declared by more than one `FROM` commitment.
|
|
18
|
+
*
|
|
19
|
+
* Repeating `FROM` stays valid — the last one wins and overrides every earlier one — but an author who writes it
|
|
20
|
+
* twice usually means only one of them, so every `FROM` keyword is marked to show which one actually applies.
|
|
21
|
+
*
|
|
22
|
+
* @param agentSource - Current editor content.
|
|
23
|
+
* @returns Warning markers for every `FROM` keyword, empty when the book declares at most one parent.
|
|
24
|
+
*
|
|
25
|
+
* @private internal utility of `BookEditorMonaco`
|
|
26
|
+
*/
|
|
27
|
+
export declare function createDuplicateFromCommitmentDiagnostics(agentSource?: string_book): ReadonlyArray<DuplicateFromCommitmentDiagnostic>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
/**
|
|
3
|
+
* Monaco diagnostic shown when a Book source uses an uppercase commitment not registered by Promptbook.
|
|
4
|
+
*
|
|
5
|
+
* @private internal type of `BookEditorMonaco`
|
|
6
|
+
*/
|
|
7
|
+
type UnknownCommitmentDiagnostic = {
|
|
8
|
+
readonly startLineNumber: number;
|
|
9
|
+
readonly startColumn: number;
|
|
10
|
+
readonly endLineNumber: number;
|
|
11
|
+
readonly endColumn: number;
|
|
12
|
+
readonly message: string;
|
|
13
|
+
readonly source: string;
|
|
14
|
+
readonly severity: 'error';
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Creates Book editor diagnostics for uppercase commitments not registered by Promptbook.
|
|
18
|
+
*
|
|
19
|
+
* Unknown commitment blocks remain valid extra context in the generated system message,
|
|
20
|
+
* but the editor marks their keywords so authors can spot likely typos immediately.
|
|
21
|
+
*
|
|
22
|
+
* @param agentSource - Current editor content.
|
|
23
|
+
* @returns Error markers for all unknown commitment keywords.
|
|
24
|
+
*
|
|
25
|
+
* @private internal utility of `BookEditorMonaco`
|
|
26
|
+
*/
|
|
27
|
+
export declare function createUnknownCommitmentDiagnostics(agentSource?: string_book): ReadonlyArray<UnknownCommitmentDiagnostic>;
|
|
28
|
+
export {};
|
|
@@ -591,8 +591,9 @@ export type ChatProps = {
|
|
|
591
591
|
progress?: number;
|
|
592
592
|
}>;
|
|
593
593
|
/**
|
|
594
|
-
*
|
|
595
|
-
*
|
|
594
|
+
* Optional content displayed in the chat header above the message list.
|
|
595
|
+
*
|
|
596
|
+
* If not provided, the header row is not rendered.
|
|
596
597
|
*/
|
|
597
598
|
readonly children?: ReactNode;
|
|
598
599
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Renders one unified diff with added, removed and context lines told apart.
|
|
4
|
+
*
|
|
5
|
+
* @param options - Diff text and whether it holds only the beginning of the real diff.
|
|
6
|
+
* @returns Readable diff block.
|
|
7
|
+
*
|
|
8
|
+
* @private function of ChatToolCallModal
|
|
9
|
+
*/
|
|
10
|
+
export declare function renderAgentProjectDiff(options: {
|
|
11
|
+
readonly diff: string;
|
|
12
|
+
readonly isDiffTruncated: boolean;
|
|
13
|
+
}): ReactElement;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type ReactElement } from 'react';
|
|
2
|
+
import type { AgentProjectToolCallResult } from '../utils/agentProjectToolCall';
|
|
3
|
+
/**
|
|
4
|
+
* Renders the detail view of one project the answer worked with.
|
|
5
|
+
*
|
|
6
|
+
* The card answers the two questions a project chip raises: what this project is right now — its
|
|
7
|
+
* runtime state and where to open it — and what this very message did to it.
|
|
8
|
+
*
|
|
9
|
+
* @param options - Parsed project chip payload.
|
|
10
|
+
* @returns Project details section for the tool modal.
|
|
11
|
+
*
|
|
12
|
+
* @private function of ChatToolCallModal
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderAgentProjectToolCallDetails(options: {
|
|
15
|
+
readonly project: AgentProjectToolCallResult;
|
|
16
|
+
}): ReactElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WindowLike as DomWindowLike } from 'dompurify';
|
|
2
|
+
/**
|
|
3
|
+
* Provides a DOM `window` for runtimes which do not have one, for example Node.js during server-side rendering
|
|
4
|
+
*
|
|
5
|
+
* Note: `$` is used to indicate that this function is not a pure function - it creates and caches one shared DOM window
|
|
6
|
+
*
|
|
7
|
+
* @returns DOM window which can back a DOM-dependent library like `DOMPurify`
|
|
8
|
+
* @throws {EnvironmentMismatchError} When the current runtime can not create a DOM window
|
|
9
|
+
* @private utility of `renderMarkdown`
|
|
10
|
+
*/
|
|
11
|
+
export declare function $provideServerDomWindow(): DomWindowLike;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { AgentMessageProjectChange } from '../../../utils/agent-message-runtime/AgentMessageProjectChange';
|
|
2
|
+
/**
|
|
3
|
+
* Synthetic tool name used for agent-project chips in chat UI.
|
|
4
|
+
*
|
|
5
|
+
* The Agents Server emits one such tool call per project an answer viewed or edited, so the chat
|
|
6
|
+
* shows which projects the agent worked with below the message that touched them.
|
|
7
|
+
*
|
|
8
|
+
* @private internal chat-ui marker for touched agent projects
|
|
9
|
+
*/
|
|
10
|
+
export declare const AGENT_PROJECT_TOOL_CALL_NAME = "agent_project_touched";
|
|
11
|
+
/**
|
|
12
|
+
* Safe, user-facing metadata shown in agent-project chips.
|
|
13
|
+
*
|
|
14
|
+
* Everything besides the project name is optional, because a chip written by an older server — or
|
|
15
|
+
* one whose project has meanwhile been deleted — still has to render.
|
|
16
|
+
*
|
|
17
|
+
* @private internal chat-ui type for touched agent projects
|
|
18
|
+
*/
|
|
19
|
+
export type AgentProjectToolCallResult = {
|
|
20
|
+
/**
|
|
21
|
+
* Directory name of the project.
|
|
22
|
+
*/
|
|
23
|
+
readonly projectName: string;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable project name shown in the chip.
|
|
26
|
+
*/
|
|
27
|
+
readonly displayName?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Short project description, resolved the same way as on the project page.
|
|
30
|
+
*/
|
|
31
|
+
readonly description?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Link to the project page, when the chat knows where the project lives.
|
|
34
|
+
*/
|
|
35
|
+
readonly projectHref?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Address the running project itself is served on, when it has one.
|
|
38
|
+
*/
|
|
39
|
+
readonly projectUrl?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the project was running when the answer finished.
|
|
42
|
+
*/
|
|
43
|
+
readonly isRunning?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Runtime status label, the same one the project page shows.
|
|
46
|
+
*/
|
|
47
|
+
readonly runtimeStatusLabel?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Total size of the project, already formatted for display.
|
|
50
|
+
*/
|
|
51
|
+
readonly sizeLabel?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Count of files inside the project.
|
|
54
|
+
*/
|
|
55
|
+
readonly fileCount?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the project folder is a git repository.
|
|
58
|
+
*/
|
|
59
|
+
readonly isGitRepository?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* What this very message changed in the project, when it changed anything.
|
|
62
|
+
*
|
|
63
|
+
* Its `projectName` repeats the one above because the change is reported by the agent runner
|
|
64
|
+
* in exactly this shape, and reusing it keeps the two descriptions from drifting apart.
|
|
65
|
+
*/
|
|
66
|
+
readonly change?: AgentMessageProjectChange;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Parses the project-chip payload from one tool result.
|
|
70
|
+
*
|
|
71
|
+
* @param result - Raw tool result payload.
|
|
72
|
+
* @returns Parsed project metadata, or `null` when the result describes no project.
|
|
73
|
+
*
|
|
74
|
+
* @private internal helper reused by chip and modal rendering
|
|
75
|
+
*/
|
|
76
|
+
export declare function parseAgentProjectToolCallResult(result: unknown): AgentProjectToolCallResult | null;
|
|
77
|
+
/**
|
|
78
|
+
* Resolves the chip label of one touched agent project.
|
|
79
|
+
*
|
|
80
|
+
* @param projectResult - Parsed project metadata.
|
|
81
|
+
* @returns Human-readable project name.
|
|
82
|
+
*
|
|
83
|
+
* @private internal helper reused by chip and modal rendering
|
|
84
|
+
*/
|
|
85
|
+
export declare function resolveAgentProjectToolCallLabel(projectResult: AgentProjectToolCallResult): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { AgentMessageTouchedExternalSource } from '../../../utils/agent-message-runtime/AgentMessageTouchedExternalSource';
|
|
2
|
+
/**
|
|
3
|
+
* Synthetic tool name used for external-source chips in chat UI.
|
|
4
|
+
*
|
|
5
|
+
* The Agents Server emits one such tool call per source outside the agent an answer viewed or
|
|
6
|
+
* edited, so the chat shows which services, websites and searches the agent really reached below
|
|
7
|
+
* the message that touched them. Work the agent does inside itself emits nothing.
|
|
8
|
+
*
|
|
9
|
+
* @private internal chat-ui marker for touched external sources
|
|
10
|
+
*/
|
|
11
|
+
export declare const EXTERNAL_SOURCE_TOOL_CALL_NAME = "external_source_touched";
|
|
12
|
+
/**
|
|
13
|
+
* Parses the external-source chip payload from one tool result.
|
|
14
|
+
*
|
|
15
|
+
* @param result - Raw tool result payload.
|
|
16
|
+
* @returns Parsed source metadata, or `null` when the result describes no external source.
|
|
17
|
+
*
|
|
18
|
+
* @private internal helper reused by chip and modal rendering
|
|
19
|
+
*/
|
|
20
|
+
export declare function parseExternalSourceToolCallResult(result: unknown): AgentMessageTouchedExternalSource | null;
|
|
21
|
+
/**
|
|
22
|
+
* Resolves the chip label of one touched external source.
|
|
23
|
+
*
|
|
24
|
+
* @param externalSource - Parsed source metadata.
|
|
25
|
+
* @returns User-facing name of the source.
|
|
26
|
+
*
|
|
27
|
+
* @private internal helper reused by chip and modal rendering
|
|
28
|
+
*/
|
|
29
|
+
export declare function resolveExternalSourceToolCallLabel(externalSource: AgentMessageTouchedExternalSource): string;
|
|
30
|
+
/**
|
|
31
|
+
* Resolves the chip emoji of one touched external source.
|
|
32
|
+
*
|
|
33
|
+
* @param externalSource - Parsed source metadata.
|
|
34
|
+
* @returns Emoji telling apart an integration, a website and a search.
|
|
35
|
+
*
|
|
36
|
+
* @private internal helper reused by chip and modal rendering
|
|
37
|
+
*/
|
|
38
|
+
export declare function resolveExternalSourceToolCallEmoji(externalSource: AgentMessageTouchedExternalSource): string;
|