@promptbook/javascript 0.114.0-0 → 0.114.0-10
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 +20 -27
- 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/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
- package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
- package/esm/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/esm/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/esm/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/esm/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
- 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 +10 -0
- package/esm/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -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/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/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/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/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- 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/book-language-documentation/BookLanguageManualDictionary.d.ts +1 -15
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +1 -1
- package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +0 -4
- package/umd/src/book-3.0/AgentTeamConversationWorkspace.d.ts +85 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +3 -2
- package/umd/src/book-components/Chat/utils/$provideServerDomWindow.d.ts +11 -0
- package/umd/src/book-components/Chat/utils/renderMarkdown.d.ts +72 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +7 -0
- package/umd/src/cli/cli-commands/coder/agentCodingFile.d.ts +2 -3
- package/umd/src/cli/cli-commands/coder/boilerplateCount.d.ts +52 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +4 -3
- package/umd/src/cli/cli-commands/coder/ping.d.ts +10 -0
- package/umd/src/cli/cli-commands/coder/verify.d.ts +1 -1
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/coderGitSyncCliOptions.d.ts +34 -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/buildNpmPackageInstallCommand.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/npm/isNpmPackageVersionOutdated.d.ts +12 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.d.ts +14 -0
- package/umd/src/cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.d.ts +12 -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/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/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/resolveAgentMessageRuntimeActivity.d.ts +3 -3
- 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/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 → coder/boilerplateCount.test.d.ts} +0 -0
- /package/esm/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
- /package/esm/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
- /package/esm/src/{commitments/WALLET/WALLET.test.d.ts → 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/book-2.0/agent-source/createAgentModelRequirements.useCommitmentAggregation.test.d.ts → esm/src/utils/misc/debounce.test.d.ts} +0 -0
- /package/umd/src/{cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts → avatars/renderAvatarVisualTerminalText.test.d.ts} +0 -0
- /package/umd/src/{cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts → book-2.0/agent-source/createAgentModelRequirements.commitmentAggregation.test.d.ts} +0 -0
- /package/umd/src/{commitments/MEMORY/MEMORY.test.d.ts → cli/cli-commands/coder/boilerplateCount.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_BROWSER/USE_BROWSER.test.d.ts → cli/cli-commands/coder/generate-boilerplates.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts → cli/cli-commands/coder/ping.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_DEEPSEARCH/USE_DEEPSEARCH.test.d.ts → cli/cli-commands/common/coderGitSyncCliOptions.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_EMAIL/USE_EMAIL.test.d.ts → cli/cli-commands/common/npm/$resolveLatestNpmPackageVersion.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts → cli/cli-commands/common/npm/buildNpmPackageInstallCommand.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_SEARCH_ENGINE/USE_SEARCH_ENGINE.test.d.ts → cli/cli-commands/common/npm/extractNpmPackageVersionFromOutput.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_SPAWN/USE_SPAWN.test.d.ts → cli/cli-commands/common/npm/isNpmPackageVersionOutdated.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_TIME/USE_TIME.test.d.ts → cli/cli-commands/common/promptbook-cli/$checkPromptbookCliInstallations.test.d.ts} +0 -0
- /package/umd/src/{commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts → cli/cli-commands/common/promptbook-cli/$ensurePromptbookCliInstallations.test.d.ts} +0 -0
- /package/umd/src/{commitments/WALLET/WALLET.test.d.ts → cli/cli-commands/common/promptbook-cli/$resolvePromptbookCliInstallations.test.d.ts} +0 -0
- /package/umd/src/commitments/{META → META_DESCRIPTION}/META_DESCRIPTION.d.ts +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-side safe wrapper for fetching URL content
|
|
3
|
-
*
|
|
4
|
-
* This function proxies requests to the Agents Server API endpoint for scraping,
|
|
5
|
-
* making it safe to use in browser environments.
|
|
6
|
-
*
|
|
7
|
-
* @param url The URL to fetch and scrape
|
|
8
|
-
* @param agentsServerUrl The base URL of the agents server (defaults to current origin)
|
|
9
|
-
* @returns Markdown content from the URL
|
|
10
|
-
*
|
|
11
|
-
* @private internal utility for USE BROWSER commitment
|
|
12
|
-
*/
|
|
13
|
-
export declare function fetchUrlContentViaBrowser(url: string, agentsServerUrl?: string): Promise<string>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the server-side implementation of the `run_browser` tool for Node.js environments.
|
|
4
|
-
*
|
|
5
|
-
* This uses fully lazy resolution to keep CLI startup independent from optional browser tooling.
|
|
6
|
-
* When the server tool cannot be resolved, the fallback implementation throws a helpful error.
|
|
7
|
-
*
|
|
8
|
-
* @private internal utility for USE BROWSER commitment
|
|
9
|
-
*/
|
|
10
|
-
export declare function resolveRunBrowserToolForNode(): ToolFunction;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
/**
|
|
6
|
-
* USE DEEPSEARCH commitment definition
|
|
7
|
-
*
|
|
8
|
-
* The `USE DEEPSEARCH` commitment indicates that the agent should use a deeper research-oriented
|
|
9
|
-
* search workflow instead of lightweight web search when it needs fresh information from the internet.
|
|
10
|
-
*
|
|
11
|
-
* The content following `USE DEEPSEARCH` is an arbitrary text that the agent should know
|
|
12
|
-
* (e.g. search scope or research instructions).
|
|
13
|
-
*
|
|
14
|
-
* Example usage in agent source:
|
|
15
|
-
*
|
|
16
|
-
* ```book
|
|
17
|
-
* USE DEEPSEARCH
|
|
18
|
-
* USE DEEPSEARCH Compare official vendor documentation with independent benchmarks.
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
22
|
-
*/
|
|
23
|
-
export declare class UseDeepSearchCommitmentDefinition extends BaseCommitmentDefinition<'USE DEEPSEARCH'> {
|
|
24
|
-
constructor();
|
|
25
|
-
get requiresContent(): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Short one-line description of USE DEEPSEARCH.
|
|
28
|
-
*/
|
|
29
|
-
get description(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Icon for this commitment.
|
|
32
|
-
*/
|
|
33
|
-
get icon(): string;
|
|
34
|
-
/**
|
|
35
|
-
* Markdown documentation for USE DEEPSEARCH commitment.
|
|
36
|
-
*/
|
|
37
|
-
get documentation(): string;
|
|
38
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
39
|
-
/**
|
|
40
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
41
|
-
*/
|
|
42
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the local fallback implementation for the `deep_search` tool.
|
|
45
|
-
*/
|
|
46
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
47
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
/**
|
|
6
|
-
* USE EMAIL commitment definition.
|
|
7
|
-
*
|
|
8
|
-
* The `USE EMAIL` commitment enables outbound email sending through the `send_email` tool.
|
|
9
|
-
*
|
|
10
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
11
|
-
*/
|
|
12
|
-
export declare class UseEmailCommitmentDefinition extends BaseCommitmentDefinition<'USE EMAIL'> {
|
|
13
|
-
constructor();
|
|
14
|
-
get requiresContent(): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Short one-line description of USE EMAIL.
|
|
17
|
-
*/
|
|
18
|
-
get description(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Icon for this commitment.
|
|
21
|
-
*/
|
|
22
|
-
get icon(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Markdown documentation for USE EMAIL commitment.
|
|
25
|
-
*/
|
|
26
|
-
get documentation(): string;
|
|
27
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
28
|
-
/**
|
|
29
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
30
|
-
*/
|
|
31
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets the browser-safe `send_email` implementation.
|
|
34
|
-
*
|
|
35
|
-
* Node.js runtime overrides this via `getAllCommitmentsToolFunctionsForNode`.
|
|
36
|
-
*/
|
|
37
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
38
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parsed payload of one `USE EMAIL` commitment.
|
|
3
|
-
*
|
|
4
|
-
* @private internal USE EMAIL type
|
|
5
|
-
*/
|
|
6
|
-
export type ParsedUseEmailCommitmentContent = {
|
|
7
|
-
senderEmail: string | null;
|
|
8
|
-
senderEmailRaw: string | null;
|
|
9
|
-
instructions: string;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Parses `USE EMAIL` commitment content into optional sender email + additional instructions.
|
|
13
|
-
*
|
|
14
|
-
* Examples:
|
|
15
|
-
* - `agent@example.com`
|
|
16
|
-
* - `agent@example.com Keep emails concise`
|
|
17
|
-
* - `Keep emails concise`
|
|
18
|
-
*
|
|
19
|
-
* @private internal utility of USE EMAIL commitment
|
|
20
|
-
*/
|
|
21
|
-
export declare function parseUseEmailCommitmentContent(content: string): ParsedUseEmailCommitmentContent;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the server-side implementation of the send_email tool for Node.js environments.
|
|
4
|
-
*
|
|
5
|
-
* This uses a lazy require so the core package can still load even if the Agents Server
|
|
6
|
-
* module is unavailable. When the server tool cannot be resolved, a fallback implementation
|
|
7
|
-
* throws a helpful error message.
|
|
8
|
-
*
|
|
9
|
-
* @private internal utility for USE EMAIL commitment
|
|
10
|
-
*/
|
|
11
|
-
export declare function resolveSendEmailToolForNode(): ToolFunction;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-side safe wrapper for sending emails.
|
|
3
|
-
*
|
|
4
|
-
* This function proxies requests to the Agents Server API endpoint for email queuing,
|
|
5
|
-
* making it safe to use in browser environments.
|
|
6
|
-
*
|
|
7
|
-
* @param args Email payload forwarded to the server-side `send_email` tool
|
|
8
|
-
* @param agentsServerUrl The base URL of the agents server (defaults to current origin)
|
|
9
|
-
* @returns Result string from the server-side send_email tool
|
|
10
|
-
*
|
|
11
|
-
* @private internal utility for USE EMAIL commitment
|
|
12
|
-
*/
|
|
13
|
-
export declare function sendEmailViaBrowser(args: Record<string, unknown>, agentsServerUrl?: string): Promise<string>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
/**
|
|
6
|
-
* USE SEARCH ENGINE commitment definition
|
|
7
|
-
*
|
|
8
|
-
* The `USE SEARCH ENGINE` commitment indicates that the agent should utilize a search engine tool
|
|
9
|
-
* to access and retrieve up-to-date information from the internet when necessary.
|
|
10
|
-
*
|
|
11
|
-
* The content following `USE SEARCH ENGINE` is an arbitrary text that the agent should know (e.g. search scope or instructions).
|
|
12
|
-
*
|
|
13
|
-
* Example usage in agent source:
|
|
14
|
-
*
|
|
15
|
-
* ```book
|
|
16
|
-
* USE SEARCH ENGINE
|
|
17
|
-
* USE SEARCH ENGINE Hledej informace o Přemyslovcích
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
21
|
-
*/
|
|
22
|
-
export declare class UseSearchEngineCommitmentDefinition extends BaseCommitmentDefinition<'USE SEARCH ENGINE'> {
|
|
23
|
-
constructor();
|
|
24
|
-
get requiresContent(): boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Short one-line description of USE SEARCH ENGINE.
|
|
27
|
-
*/
|
|
28
|
-
get description(): string;
|
|
29
|
-
/**
|
|
30
|
-
* Icon for this commitment.
|
|
31
|
-
*/
|
|
32
|
-
get icon(): string;
|
|
33
|
-
/**
|
|
34
|
-
* Markdown documentation for USE SEARCH ENGINE commitment.
|
|
35
|
-
*/
|
|
36
|
-
get documentation(): string;
|
|
37
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
38
|
-
/**
|
|
39
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
40
|
-
*/
|
|
41
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
42
|
-
/**
|
|
43
|
-
* Gets the `web_search` tool function implementation.
|
|
44
|
-
*/
|
|
45
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
46
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
/**
|
|
6
|
-
* USE SPAWN commitment definition.
|
|
7
|
-
*
|
|
8
|
-
* The `USE SPAWN` commitment enables creating new persistent child agents through one tool call.
|
|
9
|
-
*
|
|
10
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
11
|
-
*/
|
|
12
|
-
export declare class UseSpawnCommitmentDefinition extends BaseCommitmentDefinition<'USE SPAWN'> {
|
|
13
|
-
constructor();
|
|
14
|
-
get requiresContent(): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Short one-line description of USE SPAWN.
|
|
17
|
-
*/
|
|
18
|
-
get description(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Icon for this commitment.
|
|
21
|
-
*/
|
|
22
|
-
get icon(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Markdown documentation for USE SPAWN commitment.
|
|
25
|
-
*/
|
|
26
|
-
get documentation(): string;
|
|
27
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
28
|
-
/**
|
|
29
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
30
|
-
*/
|
|
31
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
32
|
-
/**
|
|
33
|
-
* Gets browser-safe `spawn_agent` implementation.
|
|
34
|
-
*
|
|
35
|
-
* Node.js runtime overrides this through `getAllCommitmentsToolFunctionsForNode`.
|
|
36
|
-
*/
|
|
37
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
38
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
2
|
-
/**
|
|
3
|
-
* Resolves the server-side `spawn_agent` tool for Node.js runtimes.
|
|
4
|
-
*
|
|
5
|
-
* Uses lazy require so core package can load outside Agents Server.
|
|
6
|
-
*
|
|
7
|
-
* @private internal utility for USE SPAWN commitment
|
|
8
|
-
*/
|
|
9
|
-
export declare function resolveSpawnAgentToolForNode(): ToolFunction;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser-safe wrapper for spawning one persisted Agents Server agent.
|
|
3
|
-
*
|
|
4
|
-
* This function proxies requests to the Agents Server `/api/spawn-agent` endpoint.
|
|
5
|
-
*
|
|
6
|
-
* @param args Tool payload forwarded to server-side `spawn_agent` tool.
|
|
7
|
-
* @param agentsServerUrl Optional explicit agents server base URL.
|
|
8
|
-
* @returns JSON string with structured spawn result.
|
|
9
|
-
*
|
|
10
|
-
* @private internal utility for USE SPAWN commitment
|
|
11
|
-
*/
|
|
12
|
-
export declare function spawnAgentViaBrowser(args: Record<string, unknown>, agentsServerUrl?: string): Promise<string>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
/**
|
|
6
|
-
* USE TIME commitment definition
|
|
7
|
-
*
|
|
8
|
-
* The `USE TIME` commitment indicates that the agent should be able to determine the current date and time.
|
|
9
|
-
*
|
|
10
|
-
* Example usage in agent source:
|
|
11
|
-
*
|
|
12
|
-
* ```book
|
|
13
|
-
* USE TIME
|
|
14
|
-
* USE TIME Prefer the user's local timezone.
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
18
|
-
*/
|
|
19
|
-
export declare class UseTimeCommitmentDefinition extends BaseCommitmentDefinition<'USE TIME'> {
|
|
20
|
-
constructor();
|
|
21
|
-
get requiresContent(): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Short one-line description of USE TIME.
|
|
24
|
-
*/
|
|
25
|
-
get description(): string;
|
|
26
|
-
/**
|
|
27
|
-
* Icon for this commitment.
|
|
28
|
-
*/
|
|
29
|
-
get icon(): string;
|
|
30
|
-
/**
|
|
31
|
-
* Markdown documentation for USE TIME commitment.
|
|
32
|
-
*/
|
|
33
|
-
get documentation(): string;
|
|
34
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
35
|
-
/**
|
|
36
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
37
|
-
*/
|
|
38
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
39
|
-
/**
|
|
40
|
-
* Gets the `get_current_time` tool function implementation.
|
|
41
|
-
*/
|
|
42
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
43
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Tool names provided by the `USE TIMEOUT` commitment.
|
|
3
|
-
*
|
|
4
|
-
* @private internal USE TIMEOUT constant
|
|
5
|
-
*/
|
|
6
|
-
export declare const TimeoutToolNames: {
|
|
7
|
-
readonly set: string;
|
|
8
|
-
readonly cancel: string;
|
|
9
|
-
readonly list: string;
|
|
10
|
-
readonly update: string;
|
|
11
|
-
};
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import type { TODO_any } from '../../utils/organization/TODO_any';
|
|
2
|
-
/**
|
|
3
|
-
* Tool arguments for scheduling one timeout.
|
|
4
|
-
*
|
|
5
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
6
|
-
*/
|
|
7
|
-
export type SetTimeoutToolArgs = {
|
|
8
|
-
milliseconds?: number;
|
|
9
|
-
message?: string;
|
|
10
|
-
[key: string]: TODO_any;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Tool arguments for cancelling one timeout.
|
|
14
|
-
*
|
|
15
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
16
|
-
*/
|
|
17
|
-
export type CancelTimeoutToolArgs = {
|
|
18
|
-
timeoutId?: string;
|
|
19
|
-
allActive?: boolean;
|
|
20
|
-
[key: string]: TODO_any;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Tool arguments for updating one timeout or pausing/resuming all active queued timeouts.
|
|
24
|
-
*
|
|
25
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
26
|
-
*/
|
|
27
|
-
export type UpdateTimeoutToolArgs = {
|
|
28
|
-
timeoutId?: string;
|
|
29
|
-
allActive?: boolean;
|
|
30
|
-
dueAt?: string;
|
|
31
|
-
extendByMs?: number;
|
|
32
|
-
recurrenceIntervalMs?: number | null;
|
|
33
|
-
message?: string | null;
|
|
34
|
-
parameters?: Record<string, unknown>;
|
|
35
|
-
paused?: boolean;
|
|
36
|
-
[key: string]: TODO_any;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Tool arguments for listing scoped timeouts.
|
|
40
|
-
*
|
|
41
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
42
|
-
*/
|
|
43
|
-
export type ListTimeoutsToolArgs = {
|
|
44
|
-
includeFinished?: boolean;
|
|
45
|
-
limit?: number;
|
|
46
|
-
[key: string]: TODO_any;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Runtime context available to `USE TIMEOUT` tools.
|
|
50
|
-
*
|
|
51
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
52
|
-
*/
|
|
53
|
-
export type TimeoutToolRuntimeContext = {
|
|
54
|
-
readonly enabled: boolean;
|
|
55
|
-
readonly chatId?: string;
|
|
56
|
-
readonly userId?: number;
|
|
57
|
-
readonly agentId?: string;
|
|
58
|
-
readonly agentName?: string;
|
|
59
|
-
readonly promptParameters: Record<string, string>;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Lifecycle status exposed by `list_timeouts`.
|
|
63
|
-
*
|
|
64
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
65
|
-
*/
|
|
66
|
-
export type TimeoutToolListItemStatus = 'QUEUED' | 'RUNNING' | 'COMPLETED' | 'FAILED' | 'CANCELLED';
|
|
67
|
-
/**
|
|
68
|
-
* One timeout row exposed by `list_timeouts`.
|
|
69
|
-
*
|
|
70
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
71
|
-
*/
|
|
72
|
-
export type TimeoutToolListItem = {
|
|
73
|
-
timeoutId: string;
|
|
74
|
-
chatId: string;
|
|
75
|
-
status: TimeoutToolListItemStatus;
|
|
76
|
-
dueAt: string;
|
|
77
|
-
paused: boolean;
|
|
78
|
-
message?: string | null;
|
|
79
|
-
recurrenceIntervalMs?: number | null;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Result payload returned by `set_timeout`.
|
|
83
|
-
*
|
|
84
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
85
|
-
*/
|
|
86
|
-
export type SetTimeoutToolResult = {
|
|
87
|
-
action: 'set';
|
|
88
|
-
status: 'set' | 'disabled' | 'error';
|
|
89
|
-
timeoutId?: string;
|
|
90
|
-
dueAt?: string;
|
|
91
|
-
message?: string;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Result payload returned by `cancel_timeout`.
|
|
95
|
-
*
|
|
96
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
97
|
-
*/
|
|
98
|
-
export type CancelTimeoutToolResult = {
|
|
99
|
-
action: 'cancel';
|
|
100
|
-
status: 'cancelled' | 'cancelled_all' | 'not_found' | 'disabled' | 'error';
|
|
101
|
-
timeoutId?: string;
|
|
102
|
-
dueAt?: string;
|
|
103
|
-
cancelledCount?: number;
|
|
104
|
-
cancelledTimeoutIds?: Array<string>;
|
|
105
|
-
hasMore?: boolean;
|
|
106
|
-
message?: string;
|
|
107
|
-
};
|
|
108
|
-
/**
|
|
109
|
-
* Result payload returned by `update_timeout`.
|
|
110
|
-
*
|
|
111
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
112
|
-
*/
|
|
113
|
-
export type UpdateTimeoutToolResult = {
|
|
114
|
-
action: 'update';
|
|
115
|
-
status: 'updated' | 'updated_all' | 'not_found' | 'conflict' | 'disabled' | 'error';
|
|
116
|
-
timeoutId?: string;
|
|
117
|
-
dueAt?: string;
|
|
118
|
-
paused?: boolean;
|
|
119
|
-
recurrenceIntervalMs?: number | null;
|
|
120
|
-
updatedCount?: number;
|
|
121
|
-
matchedCount?: number;
|
|
122
|
-
updatedTimeoutIds?: Array<string>;
|
|
123
|
-
hasMore?: boolean;
|
|
124
|
-
message?: string;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* Result payload returned by `list_timeouts`.
|
|
128
|
-
*
|
|
129
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
130
|
-
*/
|
|
131
|
-
export type ListTimeoutsToolResult = {
|
|
132
|
-
action: 'list';
|
|
133
|
-
status: 'listed' | 'disabled' | 'error';
|
|
134
|
-
items?: Array<TimeoutToolListItem>;
|
|
135
|
-
total?: number;
|
|
136
|
-
message?: string;
|
|
137
|
-
};
|
|
138
|
-
/**
|
|
139
|
-
* Union of all `USE TIMEOUT` tool actions.
|
|
140
|
-
*
|
|
141
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
142
|
-
*/
|
|
143
|
-
export type TimeoutToolAction = SetTimeoutToolResult['action'] | CancelTimeoutToolResult['action'] | ListTimeoutsToolResult['action'] | UpdateTimeoutToolResult['action'];
|
|
144
|
-
/**
|
|
145
|
-
* Union of all `USE TIMEOUT` tool results.
|
|
146
|
-
*
|
|
147
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
148
|
-
*/
|
|
149
|
-
export type TimeoutToolResult = SetTimeoutToolResult | CancelTimeoutToolResult | ListTimeoutsToolResult | UpdateTimeoutToolResult;
|
|
150
|
-
/**
|
|
151
|
-
* Runtime adapter used by `USE TIMEOUT` tools.
|
|
152
|
-
*
|
|
153
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
154
|
-
*/
|
|
155
|
-
export type TimeoutToolRuntimeAdapter = {
|
|
156
|
-
scheduleTimeout(args: {
|
|
157
|
-
milliseconds: number;
|
|
158
|
-
message?: string;
|
|
159
|
-
}, runtimeContext: TimeoutToolRuntimeContext): Promise<{
|
|
160
|
-
timeoutId: string;
|
|
161
|
-
dueAt: string;
|
|
162
|
-
}>;
|
|
163
|
-
cancelTimeout(args: {
|
|
164
|
-
timeoutId: string;
|
|
165
|
-
} | {
|
|
166
|
-
allActive: true;
|
|
167
|
-
}, runtimeContext: TimeoutToolRuntimeContext): Promise<{
|
|
168
|
-
status: 'cancelled' | 'cancelled_all' | 'not_found';
|
|
169
|
-
timeoutId?: string;
|
|
170
|
-
dueAt?: string;
|
|
171
|
-
cancelledCount?: number;
|
|
172
|
-
cancelledTimeoutIds?: Array<string>;
|
|
173
|
-
hasMore?: boolean;
|
|
174
|
-
}>;
|
|
175
|
-
listTimeouts(args: {
|
|
176
|
-
includeFinished: boolean;
|
|
177
|
-
limit: number;
|
|
178
|
-
}, runtimeContext: TimeoutToolRuntimeContext): Promise<{
|
|
179
|
-
items: Array<TimeoutToolListItem>;
|
|
180
|
-
total: number;
|
|
181
|
-
}>;
|
|
182
|
-
updateTimeout(args: {
|
|
183
|
-
timeoutId: string;
|
|
184
|
-
patch: {
|
|
185
|
-
dueAt?: string;
|
|
186
|
-
extendByMs?: number;
|
|
187
|
-
recurrenceIntervalMs?: number | null;
|
|
188
|
-
message?: string | null;
|
|
189
|
-
parameters?: Record<string, unknown>;
|
|
190
|
-
paused?: boolean;
|
|
191
|
-
};
|
|
192
|
-
} | {
|
|
193
|
-
allActive: true;
|
|
194
|
-
paused: boolean;
|
|
195
|
-
}, runtimeContext: TimeoutToolRuntimeContext): Promise<{
|
|
196
|
-
status: 'updated';
|
|
197
|
-
timeout: TimeoutToolListItem;
|
|
198
|
-
} | {
|
|
199
|
-
status: 'not_found';
|
|
200
|
-
timeoutId: string;
|
|
201
|
-
} | {
|
|
202
|
-
status: 'conflict';
|
|
203
|
-
timeoutId: string;
|
|
204
|
-
reason: 'finished' | 'running';
|
|
205
|
-
} | {
|
|
206
|
-
status: 'updated_all';
|
|
207
|
-
updatedCount: number;
|
|
208
|
-
matchedCount: number;
|
|
209
|
-
updatedTimeoutIds: Array<string>;
|
|
210
|
-
hasMore?: boolean;
|
|
211
|
-
}>;
|
|
212
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { AgentModelRequirements } from '../../book-2.0/agent-source/AgentModelRequirements';
|
|
2
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
3
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
4
|
-
import { BaseCommitmentDefinition } from '../_base/BaseCommitmentDefinition';
|
|
5
|
-
export { setTimeoutToolRuntimeAdapter } from './setTimeoutToolRuntimeAdapter';
|
|
6
|
-
export type { CancelTimeoutToolResult, ListTimeoutsToolResult, SetTimeoutToolResult, TimeoutToolListItem, TimeoutToolRuntimeAdapter, TimeoutToolRuntimeContext, UpdateTimeoutToolResult, } from './TimeoutToolRuntimeAdapter';
|
|
7
|
-
/**
|
|
8
|
-
* `USE TIMEOUT` commitment definition.
|
|
9
|
-
*
|
|
10
|
-
* The `USE TIMEOUT` commitment enables timeout wake-ups and scoped timeout management.
|
|
11
|
-
*
|
|
12
|
-
* @private [🪔] Maybe export the commitments through some package
|
|
13
|
-
*/
|
|
14
|
-
export declare class UseTimeoutCommitmentDefinition extends BaseCommitmentDefinition<'USE TIMEOUT'> {
|
|
15
|
-
constructor();
|
|
16
|
-
get requiresContent(): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Short one-line description of `USE TIMEOUT`.
|
|
19
|
-
*/
|
|
20
|
-
get description(): string;
|
|
21
|
-
/**
|
|
22
|
-
* Icon for this commitment.
|
|
23
|
-
*/
|
|
24
|
-
get icon(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Markdown documentation for `USE TIMEOUT`.
|
|
27
|
-
*/
|
|
28
|
-
get documentation(): string;
|
|
29
|
-
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
30
|
-
/**
|
|
31
|
-
* Gets human-readable titles for tool functions provided by this commitment.
|
|
32
|
-
*/
|
|
33
|
-
getToolTitles(): Record<string_javascript_name, string>;
|
|
34
|
-
/**
|
|
35
|
-
* Gets `USE TIMEOUT` tool function implementations.
|
|
36
|
-
*/
|
|
37
|
-
getToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
38
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { ToolFunction } from '../../scripting/javascript/JavascriptExecutionToolsOptions';
|
|
2
|
-
import type { string_javascript_name } from '../../types/string_person_fullname';
|
|
3
|
-
/**
|
|
4
|
-
* Gets `USE TIMEOUT` tool function implementations.
|
|
5
|
-
*
|
|
6
|
-
* @private internal utility of USE TIMEOUT
|
|
7
|
-
*/
|
|
8
|
-
export declare function createTimeoutToolFunctions(): Record<string_javascript_name, ToolFunction>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
|
|
2
|
-
/**
|
|
3
|
-
* Adds `USE TIMEOUT` tool definitions while preserving already registered tools.
|
|
4
|
-
*
|
|
5
|
-
* @private internal utility of USE TIMEOUT
|
|
6
|
-
*/
|
|
7
|
-
export declare function createTimeoutTools(existingTools?: ReadonlyArray<LlmToolDefinition>): Array<LlmToolDefinition>;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { TimeoutToolAction, TimeoutToolResult, TimeoutToolRuntimeAdapter, TimeoutToolRuntimeContext } from './TimeoutToolRuntimeAdapter';
|
|
2
|
-
/**
|
|
3
|
-
* Return type of timeout adapter resolution helper.
|
|
4
|
-
*
|
|
5
|
-
* @private type of UseTimeoutCommitmentDefinition
|
|
6
|
-
*/
|
|
7
|
-
type TimeoutToolRuntimeAdapterResolution = {
|
|
8
|
-
adapter: TimeoutToolRuntimeAdapter | null;
|
|
9
|
-
disabledResult: TimeoutToolResult | null;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Resolves the runtime adapter for timeout tools or returns disabled payload when unavailable.
|
|
13
|
-
*
|
|
14
|
-
* @private internal utility of USE TIMEOUT
|
|
15
|
-
*/
|
|
16
|
-
export declare function getTimeoutToolRuntimeAdapterOrDisabledResult(action: TimeoutToolAction, runtimeContext: TimeoutToolRuntimeContext): TimeoutToolRuntimeAdapterResolution;
|
|
17
|
-
export {};
|