@promptbook/javascript 0.111.0-7 → 0.112.0-11
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/esm/index.es.js +14 -7
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/components.index.d.ts +2 -0
- package/esm/src/_packages/core.index.d.ts +26 -0
- package/esm/src/_packages/markdown-utils.index.d.ts +5 -5
- package/esm/src/_packages/types.index.d.ts +250 -228
- package/esm/src/_packages/utils.index.d.ts +2 -0
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +4 -1
- package/esm/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -1
- package/esm/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +2 -2
- package/esm/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/createTeamToolName.d.ts +12 -0
- package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +12 -0
- package/esm/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +38 -0
- package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
- package/esm/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
- package/esm/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +110 -0
- package/esm/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
- package/esm/src/book-components/BookEditor/BookEditor.d.ts +15 -0
- package/esm/src/book-components/BookEditor/BookEditorActionbar.d.ts +2 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
- package/esm/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +28 -0
- package/esm/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +27 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
- package/esm/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatActionsBar.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +6 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +3 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +56 -0
- package/esm/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +11 -0
- package/esm/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +32 -0
- package/esm/src/book-components/Chat/Chat/chatCssClassNames.d.ts +41 -0
- package/esm/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +44 -0
- package/esm/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +36 -0
- package/esm/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +5 -0
- package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
- package/esm/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
- package/esm/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +16 -0
- package/esm/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +1 -1
- package/esm/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
- package/esm/src/book-components/Chat/types/ChatMessage.d.ts +16 -0
- package/esm/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
- package/esm/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
- package/esm/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
- package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
- package/esm/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
- package/esm/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +29 -1
- package/esm/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +24 -0
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +19 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +9 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +9 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +10 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +8 -0
- package/esm/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
- package/esm/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
- package/esm/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
- package/esm/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
- package/esm/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +14 -0
- package/esm/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -0
- package/esm/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
- package/esm/src/book-components/icons/ArrowIcon.d.ts +30 -5
- package/esm/src/book-components/icons/SolidArrowButton.d.ts +28 -0
- package/esm/src/book-components/icons/StopIcon.d.ts +8 -0
- package/esm/src/cli/cli-commands/coder/find-fresh-emoji-tag.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder/generate-boilerplates.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder/run.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder/verify.d.ts +14 -0
- package/esm/src/cli/cli-commands/coder.d.ts +21 -0
- package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
- package/esm/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +52 -8
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
- package/esm/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -3
- package/esm/src/commitments/MEMORY/MEMORY.d.ts +4 -59
- package/esm/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
- package/esm/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
- package/esm/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
- package/esm/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
- package/esm/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
- package/esm/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
- package/esm/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
- package/esm/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
- package/esm/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
- package/esm/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
- package/esm/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
- package/esm/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
- package/esm/src/commitments/MESSAGE/MESSAGE.d.ts +2 -2
- package/esm/src/commitments/META/META.d.ts +4 -0
- package/esm/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +33 -0
- package/esm/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +33 -0
- package/esm/src/commitments/META_VOICE/META_VOICE.d.ts +39 -0
- package/esm/src/commitments/SAMPLE/SAMPLE.d.ts +13 -13
- package/esm/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +1 -1
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
- package/esm/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +4 -11
- package/esm/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
- package/esm/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
- package/esm/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
- package/esm/src/commitments/USE_POPUP/USE_POPUP.d.ts +49 -0
- package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +39 -0
- package/esm/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
- package/esm/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +42 -0
- package/esm/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
- package/esm/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
- package/esm/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
- package/esm/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
- package/esm/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
- package/esm/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
- package/esm/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
- package/esm/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
- package/esm/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
- package/esm/src/commitments/USE_PROJECT/projectReference.d.ts +52 -0
- package/esm/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
- package/esm/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +41 -0
- package/esm/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
- package/esm/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
- package/esm/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +9 -0
- package/esm/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +90 -0
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +41 -0
- package/esm/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
- package/esm/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
- package/esm/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
- package/esm/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +34 -0
- package/esm/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
- package/esm/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
- package/esm/src/commitments/WALLET/WALLET.d.ts +24 -0
- package/esm/src/commitments/WALLET/WALLET.test.d.ts +1 -0
- package/esm/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
- package/esm/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
- package/esm/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
- package/esm/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
- package/esm/src/commitments/WALLET/createWalletTools.d.ts +7 -0
- package/esm/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
- package/esm/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
- package/esm/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
- package/esm/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
- package/esm/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
- package/esm/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
- package/esm/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +29 -0
- package/esm/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +29 -0
- package/esm/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
- package/esm/src/commitments/_base/CommitmentDefinition.d.ts +23 -0
- package/esm/src/commitments/_common/createWritingCommitmentSections.d.ts +19 -0
- package/esm/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
- package/esm/src/commitments/_common/toolExecutionEnvelope.d.ts +22 -0
- package/esm/src/commitments/_common/toolRuntimeContext.d.ts +90 -0
- package/esm/src/commitments/index.d.ts +12 -1
- package/esm/src/config.d.ts +3 -0
- package/esm/src/errors/0-index.d.ts +3 -0
- package/esm/src/errors/ConflictError.d.ts +9 -0
- package/esm/src/execution/LlmExecutionTools.d.ts +12 -1
- package/esm/src/execution/Usage.d.ts +4 -0
- package/esm/src/execution/utils/usageToHuman.d.ts +1 -0
- package/esm/src/file-security-checkers/FileSecurityCheckResult.d.ts +32 -0
- package/esm/src/file-security-checkers/FileSecurityChecker.d.ts +34 -0
- package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +36 -0
- package/esm/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
- package/esm/src/llm-providers/agent/Agent.d.ts +2 -2
- package/esm/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +2 -2
- package/esm/src/llm-providers/agent/RemoteAgent.d.ts +2 -1
- package/esm/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
- package/esm/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +3 -1
- package/esm/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +33 -3
- package/esm/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +2 -2
- package/esm/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +2 -2
- package/esm/src/llm-providers/openai/computeOpenAiUsage.d.ts +3 -1
- package/esm/src/playground/playground.d.ts +1 -0
- package/esm/src/speech-recognition/OpenAiSpeechRecognition.d.ts +49 -1
- package/esm/src/types/SpeechRecognition.d.ts +14 -0
- package/esm/src/types/ToolCall.d.ts +56 -0
- package/esm/src/types/number_usd.d.ts +110 -0
- package/esm/src/types/string_filename.d.ts +39 -0
- package/esm/src/types/string_knowledge_source_content.d.ts +29 -0
- package/esm/src/types/string_markdown.d.ts +138 -0
- package/esm/src/types/string_parameter_name.d.ts +170 -0
- package/esm/src/types/string_person_fullname.d.ts +85 -0
- package/esm/src/types/string_sha256.d.ts +44 -0
- package/esm/src/types/string_token.d.ts +58 -0
- package/esm/src/types/string_url.d.ts +146 -0
- package/esm/src/types/typeAliases.d.ts +9 -741
- package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +10 -0
- package/esm/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +14 -0
- package/esm/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
- package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +9 -0
- package/esm/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +9 -0
- package/esm/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +11 -0
- package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +11 -0
- package/esm/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +10 -0
- package/esm/src/utils/chat/chatAttachments.d.ts +54 -0
- package/esm/src/utils/chat/chatAttachments.test.d.ts +1 -0
- package/esm/src/utils/chat/constants.d.ts +21 -0
- package/esm/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
- package/esm/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
- package/esm/src/utils/chat/escapeRegExp.d.ts +6 -0
- package/esm/src/utils/database/uniqueConstraint.d.ts +28 -0
- package/esm/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
- package/esm/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
- package/esm/src/utils/files/readResponseBytes.d.ts +14 -0
- package/esm/src/utils/random/EnglishNamePool.d.ts +9 -1
- package/esm/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
- package/esm/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
- package/esm/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
- package/esm/src/utils/validators/url/extractUrlsFromText.d.ts +8 -0
- package/esm/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
- package/esm/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +12 -1
- package/esm/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +8 -2
- package/esm/src/utils/validators/url/normalizeDomainForMatching.d.ts +11 -0
- package/esm/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +14 -7
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/components.index.d.ts +2 -0
- package/umd/src/_packages/core.index.d.ts +26 -0
- package/umd/src/_packages/markdown-utils.index.d.ts +5 -5
- package/umd/src/_packages/types.index.d.ts +250 -228
- package/umd/src/_packages/utils.index.d.ts +2 -0
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +4 -1
- package/umd/src/book-2.0/agent-source/AgentSourceParseResult.d.ts +5 -1
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.d.ts +2 -2
- package/umd/src/book-2.0/agent-source/createAgentModelRequirements.writing.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/createAgentModelRequirementsWithCommitments.knowledge.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/createTeamToolName.d.ts +12 -0
- package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.d.ts +12 -0
- package/umd/src/book-2.0/agent-source/extractOpenTeacherInstructions.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourcePrelude.d.ts +38 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.d.ts +3 -0
- package/umd/src/book-2.0/agent-source/parseAgentSourceWithCommitments.title.test.d.ts +1 -0
- package/umd/src/book-2.0/agent-source/pseudoAgentReferences.d.ts +110 -0
- package/umd/src/book-2.0/agent-source/removeCommentsFromSystemMessage.d.ts +2 -2
- package/umd/src/book-components/BookEditor/BookEditor.d.ts +15 -0
- package/umd/src/book-components/BookEditor/BookEditorActionbar.d.ts +2 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoConstants.d.ts +1 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.d.ts +14 -7
- package/umd/src/book-components/BookEditor/BookEditorMonacoTokenization.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.d.ts +28 -0
- package/umd/src/book-components/BookEditor/createDeprecatedCommitmentDiagnostics.test.d.ts +1 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.d.ts +27 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoLanguage.test.d.ts +1 -0
- package/umd/src/book-components/Chat/AgentChat/AgentChatProps.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatActionsBar.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatInputArea.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +6 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +3 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +56 -0
- package/umd/src/book-components/Chat/Chat/ChatToolCallModal.d.ts +11 -0
- package/umd/src/book-components/Chat/Chat/TeamToolCallModalContent.d.ts +32 -0
- package/umd/src/book-components/Chat/Chat/chatCssClassNames.d.ts +41 -0
- package/umd/src/book-components/Chat/Chat/renderAdvancedToolCallDetails.d.ts +44 -0
- package/umd/src/book-components/Chat/Chat/renderToolCallDetails.d.ts +36 -0
- package/umd/src/book-components/Chat/CodeBlock/CodeBlock.d.ts +5 -0
- package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.d.ts +18 -0
- package/umd/src/book-components/Chat/CodeBlock/resolveCodeBlockLanguage.test.d.ts +1 -0
- package/umd/src/book-components/Chat/LlmChat/LlmChatProps.d.ts +16 -0
- package/umd/src/book-components/Chat/hooks/useChatAutoScroll.d.ts +1 -1
- package/umd/src/book-components/Chat/hooks/useChatAutoScroll.test.d.ts +1 -0
- package/umd/src/book-components/Chat/types/ChatMessage.d.ts +16 -0
- package/umd/src/book-components/Chat/utils/ChatPersistence.d.ts +16 -0
- package/umd/src/book-components/Chat/utils/ChatPersistence.test.d.ts +4 -0
- package/umd/src/book-components/Chat/utils/createTeamToolNameFromUrl.d.ts +2 -2
- package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +22 -5
- package/umd/src/book-components/Chat/utils/parseMessageButtons.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/resolveToolCallFromChatMessages.d.ts +13 -0
- package/umd/src/book-components/Chat/utils/resolveToolCallState.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/sanitizeStreamingMessageContent.d.ts +29 -1
- package/umd/src/book-components/Chat/utils/splitMessageContentIntoSegments.d.ts +16 -3
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +24 -0
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/RunBrowserToolResult.d.ts +50 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/TeamToolResult.d.ts +30 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/extractSearchResults.d.ts +19 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallResultDate.d.ts +9 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/getToolCallTimestamp.d.ts +9 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseRunBrowserToolResult.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseTeamToolResult.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallArguments.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/parseToolCallResult.d.ts +10 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing/resolveRunBrowserArtifactUrl.d.ts +8 -0
- package/umd/src/book-components/Chat/utils/toolCallParsing.d.ts +10 -68
- package/umd/src/book-components/Chat/utils/toolCallParsing.test.d.ts +1 -0
- package/umd/src/book-components/Chat/utils/walletCredentialToolCall.d.ts +52 -0
- package/umd/src/book-components/Chat/utils/walletCredentialToolCall.test.d.ts +1 -0
- package/umd/src/book-components/PromptbookAgent/PromptbookAgentIntegration.d.ts +14 -0
- package/umd/src/book-components/PromptbookAgent/PromptbookAgentSeamlessIntegration.d.ts +3 -0
- package/umd/src/book-components/_common/MonacoEditorWithShadowDom.d.ts +17 -0
- package/umd/src/book-components/icons/ArrowIcon.d.ts +30 -5
- package/umd/src/book-components/icons/SolidArrowButton.d.ts +28 -0
- package/umd/src/book-components/icons/StopIcon.d.ts +8 -0
- package/umd/src/cli/cli-commands/coder/find-fresh-emoji-tag.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder/find-refactor-candidates.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder/generate-boilerplates.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder/run.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder/verify.d.ts +14 -0
- package/umd/src/cli/cli-commands/coder.d.ts +21 -0
- package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +59 -0
- package/umd/src/collection/agent-collection/CreateAgentInput.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentCollectionInSupabase.d.ts +52 -8
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/AgentsDatabaseSchema.d.ts +6 -3
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +36 -0
- package/umd/src/commitments/KNOWLEDGE/KNOWLEDGE.d.ts +0 -3
- package/umd/src/commitments/MEMORY/MEMORY.d.ts +4 -59
- package/umd/src/commitments/MEMORY/MemoryToolNames.d.ts +11 -0
- package/umd/src/commitments/MEMORY/MemoryToolRuntimeAdapter.d.ts +149 -0
- package/umd/src/commitments/MEMORY/createMemorySystemMessage.d.ts +6 -0
- package/umd/src/commitments/MEMORY/createMemoryToolFunctions.d.ts +8 -0
- package/umd/src/commitments/MEMORY/createMemoryTools.d.ts +14 -0
- package/umd/src/commitments/MEMORY/getMemoryCommitmentDocumentation.d.ts +6 -0
- package/umd/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
- package/umd/src/commitments/MEMORY/getMemoryToolTitles.d.ts +7 -0
- package/umd/src/commitments/MEMORY/parseMemoryToolArgs.d.ts +61 -0
- package/umd/src/commitments/MEMORY/resolveMemoryRuntimeContext.d.ts +8 -0
- package/umd/src/commitments/MEMORY/setMemoryToolRuntimeAdapter.d.ts +13 -0
- package/umd/src/commitments/MESSAGE/InternalMessageCommitmentDefinition.d.ts +33 -0
- package/umd/src/commitments/MESSAGE/MESSAGE.d.ts +2 -2
- package/umd/src/commitments/META/META.d.ts +4 -0
- package/umd/src/commitments/META_DOMAIN/META_DOMAIN.d.ts +33 -0
- package/umd/src/commitments/META_INPUT_PLACEHOLDER/META_INPUT_PLACEHOLDER.d.ts +33 -0
- package/umd/src/commitments/META_VOICE/META_VOICE.d.ts +39 -0
- package/umd/src/commitments/SAMPLE/SAMPLE.d.ts +13 -13
- package/umd/src/commitments/USE_BROWSER/USE_BROWSER.d.ts +1 -1
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.d.ts +10 -0
- package/umd/src/commitments/USE_BROWSER/resolveRunBrowserToolForNode.test.d.ts +1 -0
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.d.ts +4 -11
- package/umd/src/commitments/USE_EMAIL/USE_EMAIL.test.d.ts +1 -0
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.d.ts +21 -0
- package/umd/src/commitments/USE_EMAIL/parseUseEmailCommitmentContent.test.d.ts +1 -0
- package/umd/src/commitments/USE_EMAIL/sendEmailViaBrowser.d.ts +2 -7
- package/umd/src/commitments/USE_POPUP/USE_POPUP.d.ts +49 -0
- package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.d.ts +39 -0
- package/umd/src/commitments/USE_PRIVACY/USE_PRIVACY.test.d.ts +1 -0
- package/umd/src/commitments/USE_PROJECT/USE_PROJECT.d.ts +42 -0
- package/umd/src/commitments/USE_PROJECT/USE_PROJECT.test.d.ts +1 -0
- package/umd/src/commitments/USE_PROJECT/UseProjectToolNames.d.ts +13 -0
- package/umd/src/commitments/USE_PROJECT/UseProjectWallet.d.ts +9 -0
- package/umd/src/commitments/USE_PROJECT/callGitHubApi.d.ts +69 -0
- package/umd/src/commitments/USE_PROJECT/createUseProjectToolFunctions.d.ts +8 -0
- package/umd/src/commitments/USE_PROJECT/createUseProjectTools.d.ts +7 -0
- package/umd/src/commitments/USE_PROJECT/getUseProjectToolTitles.d.ts +7 -0
- package/umd/src/commitments/USE_PROJECT/normalizeConfiguredProjects.d.ts +16 -0
- package/umd/src/commitments/USE_PROJECT/normalizeOptionalToolText.d.ts +12 -0
- package/umd/src/commitments/USE_PROJECT/projectReference.d.ts +52 -0
- package/umd/src/commitments/USE_PROJECT/projectReference.test.d.ts +1 -0
- package/umd/src/commitments/USE_PROJECT/resolveUseProjectToolRuntimeOrWalletCredentialResult.d.ts +34 -0
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.d.ts +41 -0
- package/umd/src/commitments/USE_SPAWN/USE_SPAWN.test.d.ts +1 -0
- package/umd/src/commitments/USE_SPAWN/resolveSpawnAgentToolForNode.d.ts +9 -0
- package/umd/src/commitments/USE_SPAWN/spawnAgentViaBrowser.d.ts +12 -0
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolNames.d.ts +9 -0
- package/umd/src/commitments/USE_TIMEOUT/TimeoutToolRuntimeAdapter.d.ts +90 -0
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.d.ts +41 -0
- package/umd/src/commitments/USE_TIMEOUT/USE_TIMEOUT.test.d.ts +1 -0
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutSystemMessage.d.ts +6 -0
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.d.ts +8 -0
- package/umd/src/commitments/USE_TIMEOUT/createTimeoutTools.d.ts +7 -0
- package/umd/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.d.ts +17 -0
- package/umd/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.d.ts +34 -0
- package/umd/src/commitments/USE_TIMEOUT/resolveTimeoutRuntimeContext.d.ts +8 -0
- package/umd/src/commitments/USE_TIMEOUT/setTimeoutToolRuntimeAdapter.d.ts +13 -0
- package/umd/src/commitments/WALLET/WALLET.d.ts +24 -0
- package/umd/src/commitments/WALLET/WALLET.test.d.ts +1 -0
- package/umd/src/commitments/WALLET/WalletToolNames.d.ts +12 -0
- package/umd/src/commitments/WALLET/WalletToolRuntimeAdapter.d.ts +163 -0
- package/umd/src/commitments/WALLET/createWalletSystemMessage.d.ts +6 -0
- package/umd/src/commitments/WALLET/createWalletToolFunctions.d.ts +8 -0
- package/umd/src/commitments/WALLET/createWalletTools.d.ts +7 -0
- package/umd/src/commitments/WALLET/getWalletCommitmentDocumentation.d.ts +6 -0
- package/umd/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.d.ts +16 -0
- package/umd/src/commitments/WALLET/getWalletToolTitles.d.ts +7 -0
- package/umd/src/commitments/WALLET/parseWalletToolArgs.d.ts +51 -0
- package/umd/src/commitments/WALLET/resolveWalletRuntimeContext.d.ts +8 -0
- package/umd/src/commitments/WALLET/setWalletToolRuntimeAdapter.d.ts +13 -0
- package/umd/src/commitments/WRITING_RULES/WRITING_RULES.d.ts +29 -0
- package/umd/src/commitments/WRITING_SAMPLE/WRITING_SAMPLE.d.ts +29 -0
- package/umd/src/commitments/_base/BaseCommitmentDefinition.d.ts +12 -0
- package/umd/src/commitments/_base/CommitmentDefinition.d.ts +23 -0
- package/umd/src/commitments/_common/createWritingCommitmentSections.d.ts +19 -0
- package/umd/src/commitments/_common/getGroupedCommitmentDefinitions.writing.test.d.ts +1 -0
- package/umd/src/commitments/_common/toolExecutionEnvelope.d.ts +22 -0
- package/umd/src/commitments/_common/toolRuntimeContext.d.ts +90 -0
- package/umd/src/commitments/index.d.ts +12 -1
- package/umd/src/config.d.ts +3 -0
- package/umd/src/errors/0-index.d.ts +3 -0
- package/umd/src/errors/ConflictError.d.ts +9 -0
- package/umd/src/execution/LlmExecutionTools.d.ts +12 -1
- package/umd/src/execution/Usage.d.ts +4 -0
- package/umd/src/execution/utils/usageToHuman.d.ts +1 -0
- package/umd/src/file-security-checkers/FileSecurityCheckResult.d.ts +32 -0
- package/umd/src/file-security-checkers/FileSecurityChecker.d.ts +34 -0
- package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.d.ts +36 -0
- package/umd/src/file-security-checkers/virustotal/VirusTotalFileSecurityChecker.test.d.ts +1 -0
- package/umd/src/llm-providers/agent/Agent.d.ts +2 -2
- package/umd/src/llm-providers/agent/AgentLlmExecutionTools.d.ts +2 -2
- package/umd/src/llm-providers/agent/RemoteAgent.d.ts +2 -1
- package/umd/src/llm-providers/agent/self-learning/SelfLearningManager.test.d.ts +1 -0
- package/umd/src/llm-providers/anthropic-claude/computeAnthropicClaudeUsage.d.ts +3 -1
- package/umd/src/llm-providers/openai/OpenAiAgentKitExecutionTools.d.ts +33 -3
- package/umd/src/llm-providers/openai/OpenAiAssistantExecutionTools.d.ts +2 -2
- package/umd/src/llm-providers/openai/OpenAiCompatibleExecutionTools.d.ts +2 -2
- package/umd/src/llm-providers/openai/computeOpenAiUsage.d.ts +3 -1
- package/umd/src/playground/playground.d.ts +1 -0
- package/umd/src/speech-recognition/OpenAiSpeechRecognition.d.ts +49 -1
- package/umd/src/types/SpeechRecognition.d.ts +14 -0
- package/umd/src/types/ToolCall.d.ts +56 -0
- package/umd/src/types/number_usd.d.ts +110 -0
- package/umd/src/types/string_filename.d.ts +39 -0
- package/umd/src/types/string_knowledge_source_content.d.ts +29 -0
- package/umd/src/types/string_markdown.d.ts +138 -0
- package/umd/src/types/string_parameter_name.d.ts +170 -0
- package/umd/src/types/string_person_fullname.d.ts +85 -0
- package/umd/src/types/string_sha256.d.ts +44 -0
- package/umd/src/types/string_token.d.ts +58 -0
- package/umd/src/types/string_url.d.ts +146 -0
- package/umd/src/types/typeAliases.d.ts +9 -741
- package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContext.d.ts +10 -0
- package/umd/src/utils/chat/chatAttachments/appendChatAttachmentContextWithContent.d.ts +14 -0
- package/umd/src/utils/chat/chatAttachments/appendChatContextSections.d.ts +6 -0
- package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContentContext.d.ts +9 -0
- package/umd/src/utils/chat/chatAttachments/formatChatAttachmentContext.d.ts +9 -0
- package/umd/src/utils/chat/chatAttachments/normalizeChatAttachments.d.ts +11 -0
- package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContent.d.ts +11 -0
- package/umd/src/utils/chat/chatAttachments/resolveChatAttachmentContents.d.ts +10 -0
- package/umd/src/utils/chat/chatAttachments.d.ts +54 -0
- package/umd/src/utils/chat/chatAttachments.test.d.ts +1 -0
- package/umd/src/utils/chat/constants.d.ts +21 -0
- package/umd/src/utils/chat/decodeChatStreamWhitespaceFromTransport.d.ts +7 -0
- package/umd/src/utils/chat/encodeChatStreamWhitespaceForTransport.d.ts +7 -0
- package/umd/src/utils/chat/escapeRegExp.d.ts +6 -0
- package/umd/src/utils/database/uniqueConstraint.d.ts +28 -0
- package/umd/src/utils/files/decodeAttachmentAsText.d.ts +81 -0
- package/umd/src/utils/files/decodeAttachmentAsText.test.d.ts +1 -0
- package/umd/src/utils/files/readResponseBytes.d.ts +14 -0
- package/umd/src/utils/random/EnglishNamePool.d.ts +9 -1
- package/umd/src/utils/toolCalls/getToolCallIdentity.d.ts +1 -1
- package/umd/src/utils/toolCalls/mergeToolCalls.d.ts +12 -0
- package/umd/src/utils/toolCalls/resolveToolCallIdempotencyKey.d.ts +10 -0
- package/umd/src/utils/validators/url/extractUrlsFromText.d.ts +8 -0
- package/umd/src/utils/validators/url/extractUrlsFromText.test.d.ts +1 -0
- package/umd/src/utils/validators/url/isHostnameOnPrivateNetwork.d.ts +12 -1
- package/umd/src/utils/validators/url/isUrlOnPrivateNetwork.d.ts +8 -2
- package/umd/src/utils/validators/url/normalizeDomainForMatching.d.ts +11 -0
- package/umd/src/utils/validators/url/normalizeDomainForMatching.test.d.ts +1 -0
- package/umd/src/version.d.ts +1 -1
|
@@ -1,68 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*
|
|
12
|
-
* @private utility of `<Chat/>` component
|
|
13
|
-
*/
|
|
14
|
-
export declare function parseToolCallResult(result: ToolCall['result']): TODO_any;
|
|
15
|
-
type SearchResultsExtraction = {
|
|
16
|
-
results: Array<TODO_any>;
|
|
17
|
-
rawText: string | null;
|
|
18
|
-
};
|
|
19
|
-
export type TeamToolResult = {
|
|
20
|
-
teammate?: {
|
|
21
|
-
url?: string;
|
|
22
|
-
label?: string;
|
|
23
|
-
instructions?: string;
|
|
24
|
-
toolName?: string;
|
|
25
|
-
};
|
|
26
|
-
request?: string;
|
|
27
|
-
response?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Tool calls executed by the teammate while answering.
|
|
30
|
-
*/
|
|
31
|
-
toolCalls?: ReadonlyArray<ToolCall>;
|
|
32
|
-
error?: string | null;
|
|
33
|
-
conversation?: Array<{
|
|
34
|
-
sender?: string;
|
|
35
|
-
name?: string;
|
|
36
|
-
role?: string;
|
|
37
|
-
content?: string;
|
|
38
|
-
}>;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* @@@
|
|
42
|
-
*
|
|
43
|
-
* @private utility of `<Chat/>` component
|
|
44
|
-
*/
|
|
45
|
-
export declare function extractSearchResults(resultRaw: TODO_any): SearchResultsExtraction;
|
|
46
|
-
/**
|
|
47
|
-
* @@@
|
|
48
|
-
*
|
|
49
|
-
* @private utility of `<Chat/>` component
|
|
50
|
-
*/
|
|
51
|
-
export declare function parseTeamToolResult(resultRaw: TODO_any): TeamToolResult | null;
|
|
52
|
-
/**
|
|
53
|
-
* @@@
|
|
54
|
-
*
|
|
55
|
-
* @private utility of `<Chat/>` component
|
|
56
|
-
*/
|
|
57
|
-
export declare function getToolCallTimestamp(toolCall: Pick<ToolCall, 'createdAt'>): Date | null;
|
|
58
|
-
/**
|
|
59
|
-
* @@@
|
|
60
|
-
*
|
|
61
|
-
* @private utility of `<Chat/>` component
|
|
62
|
-
*/
|
|
63
|
-
export declare function getToolCallResultDate(result: ToolCall['result']): Date | null;
|
|
64
|
-
export {};
|
|
65
|
-
/**
|
|
66
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
67
|
-
* <- TODO: But maybe split into multiple files later?
|
|
68
|
-
*/
|
|
1
|
+
export { extractSearchResults } from './toolCallParsing/extractSearchResults';
|
|
2
|
+
export { getToolCallResultDate } from './toolCallParsing/getToolCallResultDate';
|
|
3
|
+
export { getToolCallTimestamp } from './toolCallParsing/getToolCallTimestamp';
|
|
4
|
+
export { parseRunBrowserToolResult } from './toolCallParsing/parseRunBrowserToolResult';
|
|
5
|
+
export { parseTeamToolResult } from './toolCallParsing/parseTeamToolResult';
|
|
6
|
+
export { parseToolCallArguments } from './toolCallParsing/parseToolCallArguments';
|
|
7
|
+
export { parseToolCallResult } from './toolCallParsing/parseToolCallResult';
|
|
8
|
+
export { resolveRunBrowserArtifactUrl } from './toolCallParsing/resolveRunBrowserArtifactUrl';
|
|
9
|
+
export type { RunBrowserToolAction, RunBrowserToolArtifact, RunBrowserToolError, RunBrowserToolResult, } from './toolCallParsing/RunBrowserToolResult';
|
|
10
|
+
export type { TeamToolResult } from './toolCallParsing/TeamToolResult';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ToolCall } from '../../../types/ToolCall';
|
|
2
|
+
/**
|
|
3
|
+
* Synthetic tool name used for wallet-credential chips in chat UI.
|
|
4
|
+
*
|
|
5
|
+
* @private internal chat-ui marker for credential usage
|
|
6
|
+
*/
|
|
7
|
+
export declare const WALLET_CREDENTIAL_TOOL_CALL_NAME = "wallet_credential_used";
|
|
8
|
+
/**
|
|
9
|
+
* Safe, user-facing metadata shown in wallet-credential chips/modal.
|
|
10
|
+
*
|
|
11
|
+
* @private internal chat-ui type for credential usage details
|
|
12
|
+
*/
|
|
13
|
+
export type WalletCredentialToolCallResult = {
|
|
14
|
+
credentialName: string;
|
|
15
|
+
purpose: string;
|
|
16
|
+
service: string;
|
|
17
|
+
key: string;
|
|
18
|
+
sourceToolName: string;
|
|
19
|
+
sourceToolNames?: Array<string>;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Parses credential-chip result payload from a tool result.
|
|
23
|
+
*
|
|
24
|
+
* @param result - Raw tool result payload.
|
|
25
|
+
* @returns Parsed credential metadata or `null`.
|
|
26
|
+
* @private internal helper reused by chip and modal rendering
|
|
27
|
+
*/
|
|
28
|
+
export declare function parseWalletCredentialToolCallResult(result: unknown): WalletCredentialToolCallResult | null;
|
|
29
|
+
/**
|
|
30
|
+
* Builds a synthetic credential chip tool call for one completed action.
|
|
31
|
+
*
|
|
32
|
+
* Chip is emitted only when the action actually used wallet credentials.
|
|
33
|
+
*
|
|
34
|
+
* @param toolCall - Original tool call.
|
|
35
|
+
* @returns Synthetic credential chip tool call or `null`.
|
|
36
|
+
* @private internal helper for chat message chip composition
|
|
37
|
+
*/
|
|
38
|
+
export declare function createWalletCredentialToolCall(toolCall: ToolCall): ToolCall | null;
|
|
39
|
+
/**
|
|
40
|
+
* Builds deduplicated credential chip tool calls for one assistant message.
|
|
41
|
+
*
|
|
42
|
+
* Tool calls are grouped by stable credential identity (`service` + credential key), so one message shows one chip per
|
|
43
|
+
* credential type/scope while keeping safe details for modal display.
|
|
44
|
+
*
|
|
45
|
+
* @param toolCalls - Completed tool calls in one assistant message.
|
|
46
|
+
* @returns Deduplicated synthetic credential chip tool calls.
|
|
47
|
+
* @private internal helper for chat message chip composition
|
|
48
|
+
*/
|
|
49
|
+
export declare function createDeduplicatedWalletCredentialToolCalls(toolCalls: ReadonlyArray<ToolCall> | undefined): Array<ToolCall>;
|
|
50
|
+
/**
|
|
51
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
52
|
+
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -31,6 +31,20 @@ export type PromptbookAgentIntegrationProps = {
|
|
|
31
31
|
* Callback when the window is opened or closed
|
|
32
32
|
*/
|
|
33
33
|
onOpenChange?(isOpen: boolean): void;
|
|
34
|
+
/**
|
|
35
|
+
* Controlled open state of the seamless widget.
|
|
36
|
+
*
|
|
37
|
+
* When omitted, the widget manages its own open state.
|
|
38
|
+
*
|
|
39
|
+
* @default undefined
|
|
40
|
+
*/
|
|
41
|
+
readonly isOpen?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Initial open state of the seamless widget in uncontrolled mode.
|
|
44
|
+
*
|
|
45
|
+
* @default false
|
|
46
|
+
*/
|
|
47
|
+
readonly defaultOpen?: boolean;
|
|
34
48
|
/**
|
|
35
49
|
* Optional CSS class name which will be added to root element
|
|
36
50
|
*/
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PromptbookAgentIntegrationProps } from './PromptbookAgentIntegration';
|
|
2
|
+
/**
|
|
3
|
+
* @private props of PromptbookAgentSeamlessIntegration
|
|
4
|
+
*/
|
|
2
5
|
type PromptbookAgentSeamlessIntegrationProps = Omit<PromptbookAgentIntegrationProps, 'formfactor'> & {
|
|
3
6
|
/**
|
|
4
7
|
* Use iframe instead of implementing the chat directly
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type EditorProps } from '@monaco-editor/react';
|
|
2
|
+
/**
|
|
3
|
+
* Shared Monaco wrapper props.
|
|
4
|
+
*
|
|
5
|
+
* @private Internal utility for book components and Agents Server.
|
|
6
|
+
*/
|
|
7
|
+
type MonacoEditorWithShadowDomProps = EditorProps;
|
|
8
|
+
/**
|
|
9
|
+
* Renders Monaco Editor with per-instance Shadow DOM isolation enabled.
|
|
10
|
+
*
|
|
11
|
+
* This keeps Monaco instances encapsulated from each other while preserving
|
|
12
|
+
* the same external API as `@monaco-editor/react`.
|
|
13
|
+
*
|
|
14
|
+
* @private Internal utility for book components and Agents Server.
|
|
15
|
+
*/
|
|
16
|
+
export declare function MonacoEditorWithShadowDom(props: MonacoEditorWithShadowDomProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -3,20 +3,45 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @private internal typing helper for `<ArrowIcon/>`
|
|
5
5
|
*/
|
|
6
|
-
type ArrowDirection = '
|
|
6
|
+
type ArrowDirection = 'up' | 'down' | 'left' | 'right';
|
|
7
|
+
/**
|
|
8
|
+
* Legacy direction aliases kept for backward compatibility.
|
|
9
|
+
*
|
|
10
|
+
* @private internal typing helper for `<ArrowIcon/>`
|
|
11
|
+
*/
|
|
12
|
+
type LegacyArrowDirection = Uppercase<ArrowDirection>;
|
|
13
|
+
/**
|
|
14
|
+
* Any accepted arrow direction input.
|
|
15
|
+
*
|
|
16
|
+
* @private internal typing helper for `<ArrowIcon/>`
|
|
17
|
+
*/
|
|
18
|
+
type ArrowDirectionInput = ArrowDirection | LegacyArrowDirection;
|
|
7
19
|
/**
|
|
8
20
|
* Props for rendering a directional arrow icon.
|
|
9
21
|
*
|
|
10
22
|
* @private internal props typing for `<ArrowIcon/>`
|
|
11
23
|
*/
|
|
12
24
|
type ArrowIconProps = {
|
|
13
|
-
|
|
14
|
-
|
|
25
|
+
/**
|
|
26
|
+
* Arrow pointing direction.
|
|
27
|
+
*
|
|
28
|
+
* Uses lowercase directions (`up`, `down`, `left`, `right`) and supports
|
|
29
|
+
* uppercase legacy values for backward compatibility.
|
|
30
|
+
*/
|
|
31
|
+
readonly direction: ArrowDirectionInput;
|
|
32
|
+
/**
|
|
33
|
+
* Icon size in pixels.
|
|
34
|
+
*/
|
|
35
|
+
readonly size?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Optional class names forwarded to the `<svg/>`.
|
|
38
|
+
*/
|
|
39
|
+
readonly className?: string;
|
|
15
40
|
};
|
|
16
41
|
/**
|
|
17
|
-
* Shows simple arrow
|
|
42
|
+
* Shows a simple solid triangle arrow ("▶") that can point in all four directions.
|
|
18
43
|
*
|
|
19
44
|
* @public exported from `@promptbook/components`
|
|
20
45
|
*/
|
|
21
|
-
export declare
|
|
46
|
+
export declare function ArrowIcon({ direction, size, className }: ArrowIconProps): import("react/jsx-runtime").JSX.Element;
|
|
22
47
|
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes, ComponentProps } from 'react';
|
|
2
|
+
import { ArrowIcon } from './ArrowIcon';
|
|
3
|
+
/**
|
|
4
|
+
* Shared props for rendering one solid arrow button.
|
|
5
|
+
*
|
|
6
|
+
* @private internal props typing for `<SolidArrowButton/>`
|
|
7
|
+
*/
|
|
8
|
+
type SolidArrowButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'children'> & {
|
|
9
|
+
/**
|
|
10
|
+
* Arrow direction rendered inside the button.
|
|
11
|
+
*/
|
|
12
|
+
readonly direction: ComponentProps<typeof ArrowIcon>['direction'];
|
|
13
|
+
/**
|
|
14
|
+
* Icon size in pixels.
|
|
15
|
+
*/
|
|
16
|
+
readonly iconSize?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Optional class names forwarded to the icon.
|
|
19
|
+
*/
|
|
20
|
+
readonly iconClassName?: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Reusable solid arrow button used by chat controls across host applications.
|
|
24
|
+
*
|
|
25
|
+
* @private internal shared UI primitive for Promptbook-host applications.
|
|
26
|
+
*/
|
|
27
|
+
export declare function SolidArrowButton({ direction, iconSize, className, iconClassName, type, ...buttonProps }: SolidArrowButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder find-fresh-emoji-tag` command for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderFindFreshEmojiTagCommand(program: Program): $side_effect;
|
|
11
|
+
/**
|
|
12
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder find-refactor-candidates` command for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderFindRefactorCandidatesCommand(program: Program): $side_effect;
|
|
11
|
+
/**
|
|
12
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder generate-boilerplates` command for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderGenerateBoilerplatesCommand(program: Program): $side_effect;
|
|
11
|
+
/**
|
|
12
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder run` command for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderRunCommand(program: Program): $side_effect;
|
|
11
|
+
/**
|
|
12
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
+
*/
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder verify` command for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
7
|
+
*
|
|
8
|
+
* @private internal function of `promptbookCli`
|
|
9
|
+
*/
|
|
10
|
+
export declare function $initializeCoderVerifyCommand(program: Program): $side_effect;
|
|
11
|
+
/**
|
|
12
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
13
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
14
|
+
*/
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { Command as Program } from 'commander';
|
|
2
|
+
import type { $side_effect } from '../../utils/organization/$side_effect';
|
|
3
|
+
/**
|
|
4
|
+
* Initializes `coder` command with subcommands for Promptbook CLI utilities
|
|
5
|
+
*
|
|
6
|
+
* The coder command provides utilities for automated coding:
|
|
7
|
+
* - generate-boilerplates: Generate prompt boilerplate files
|
|
8
|
+
* - find-refactor-candidates: Find files that need refactoring
|
|
9
|
+
* - run: Run coding prompts with AI agents
|
|
10
|
+
* - verify: Verify completed prompts
|
|
11
|
+
* - find-fresh-emoji-tag: Find unused emoji tags
|
|
12
|
+
*
|
|
13
|
+
* Note: `$` is used to indicate that this function is not a pure function - it registers a command in the CLI
|
|
14
|
+
*
|
|
15
|
+
* @private internal function of `promptbookCli`
|
|
16
|
+
*/
|
|
17
|
+
export declare function $initializeCoderCommand(program: Program): $side_effect;
|
|
18
|
+
/**
|
|
19
|
+
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
20
|
+
* Note: [🟡] Code in this file should never be published outside of `@promptbook/cli`
|
|
21
|
+
*/
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { string_book } from '../../book-2.0/agent-source/string_book';
|
|
2
|
+
import type { LlmToolDefinition } from '../../types/LlmToolDefinition';
|
|
3
|
+
/**
|
|
4
|
+
* Supported visibility options for agent creation.
|
|
5
|
+
*
|
|
6
|
+
* @private shared create-agent contract
|
|
7
|
+
*/
|
|
8
|
+
export declare const CREATE_AGENT_VISIBILITY_VALUES: readonly ["PRIVATE", "UNLISTED", "PUBLIC"];
|
|
9
|
+
/**
|
|
10
|
+
* Supported visibility options for agent creation.
|
|
11
|
+
*
|
|
12
|
+
* @private shared create-agent contract
|
|
13
|
+
*/
|
|
14
|
+
export type CreateAgentVisibility = (typeof CREATE_AGENT_VISIBILITY_VALUES)[number];
|
|
15
|
+
/**
|
|
16
|
+
* Canonical input payload for creating one persisted agent entity.
|
|
17
|
+
*
|
|
18
|
+
* @private shared create-agent contract
|
|
19
|
+
*/
|
|
20
|
+
export type CreateAgentInput = {
|
|
21
|
+
/**
|
|
22
|
+
* Full agent source in Promptbook format (book/markdown/yaml text accepted by parser).
|
|
23
|
+
*/
|
|
24
|
+
readonly source: string_book;
|
|
25
|
+
/**
|
|
26
|
+
* Optional folder placement in Agents Server organization.
|
|
27
|
+
*/
|
|
28
|
+
readonly folderId?: number | null;
|
|
29
|
+
/**
|
|
30
|
+
* Optional sort order within the selected folder.
|
|
31
|
+
*/
|
|
32
|
+
readonly sortOrder?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Optional visibility override.
|
|
35
|
+
*/
|
|
36
|
+
readonly visibility?: CreateAgentVisibility;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Maximum allowed source length for create-agent payloads.
|
|
40
|
+
*
|
|
41
|
+
* @private shared create-agent contract
|
|
42
|
+
*/
|
|
43
|
+
export declare const CREATE_AGENT_INPUT_SOURCE_MAX_LENGTH = 120000;
|
|
44
|
+
/**
|
|
45
|
+
* Parses and validates unknown data into strict `CreateAgentInput`.
|
|
46
|
+
*
|
|
47
|
+
* - Requires `source`.
|
|
48
|
+
* - Rejects unknown fields.
|
|
49
|
+
* - Enforces source-size limits.
|
|
50
|
+
*
|
|
51
|
+
* @private shared create-agent contract
|
|
52
|
+
*/
|
|
53
|
+
export declare function parseCreateAgentInput(rawValue: unknown): CreateAgentInput;
|
|
54
|
+
/**
|
|
55
|
+
* Builds strict JSON schema for create-agent tool parameters.
|
|
56
|
+
*
|
|
57
|
+
* @private shared create-agent contract
|
|
58
|
+
*/
|
|
59
|
+
export declare function createCreateAgentInputToolParametersSchema(): LlmToolDefinition['parameters'];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,10 @@ import type { AgentsDatabaseSchema } from './AgentsDatabaseSchema';
|
|
|
8
8
|
* Options for creating a new agent entry.
|
|
9
9
|
*/
|
|
10
10
|
type CreateAgentOptions = {
|
|
11
|
+
/**
|
|
12
|
+
* Visibility for the new agent.
|
|
13
|
+
*/
|
|
14
|
+
readonly visibility?: 'PRIVATE' | 'UNLISTED' | 'PUBLIC';
|
|
11
15
|
/**
|
|
12
16
|
* Folder identifier to assign the new agent to.
|
|
13
17
|
*/
|
|
@@ -17,6 +21,33 @@ type CreateAgentOptions = {
|
|
|
17
21
|
*/
|
|
18
22
|
readonly sortOrder?: number;
|
|
19
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Optional controls for persisting one source update.
|
|
26
|
+
*/
|
|
27
|
+
type UpdateAgentSourceOptions = {
|
|
28
|
+
/**
|
|
29
|
+
* Optional human-readable history milestone name saved with the snapshot.
|
|
30
|
+
*/
|
|
31
|
+
readonly versionName?: string | null;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* One saved Agent history row without the full source payload.
|
|
35
|
+
*/
|
|
36
|
+
type AgentHistoryMetadata = {
|
|
37
|
+
readonly id: number;
|
|
38
|
+
readonly createdAt: string;
|
|
39
|
+
readonly agentName: string;
|
|
40
|
+
readonly agentHash: string;
|
|
41
|
+
readonly previousAgentHash: string | null;
|
|
42
|
+
readonly promptbookEngineVersion: string;
|
|
43
|
+
readonly versionName: string | null;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* One saved Agent history row including the full source snapshot.
|
|
47
|
+
*/
|
|
48
|
+
type AgentHistorySnapshot = AgentHistoryMetadata & {
|
|
49
|
+
readonly agentSource: string;
|
|
50
|
+
};
|
|
20
51
|
/**
|
|
21
52
|
* Agent collection stored in a Supabase table.
|
|
22
53
|
*
|
|
@@ -60,7 +91,7 @@ export declare class AgentCollectionInSupabase {
|
|
|
60
91
|
/**
|
|
61
92
|
* Updates an existing agent in the collection
|
|
62
93
|
*/
|
|
63
|
-
updateAgentSource(permanentId: string_agent_permanent_id, agentSource: string_book): Promise<void>;
|
|
94
|
+
updateAgentSource(permanentId: string_agent_permanent_id, agentSource: string_book, options?: UpdateAgentSourceOptions): Promise<void>;
|
|
64
95
|
/**
|
|
65
96
|
* List agents that are soft deleted (deletedAt IS NOT NULL)
|
|
66
97
|
*/
|
|
@@ -68,12 +99,11 @@ export declare class AgentCollectionInSupabase {
|
|
|
68
99
|
/**
|
|
69
100
|
* List history of an agent
|
|
70
101
|
*/
|
|
71
|
-
listAgentHistory(permanentId: string_agent_permanent_id): Promise<ReadonlyArray<
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}>>;
|
|
102
|
+
listAgentHistory(permanentId: string_agent_permanent_id): Promise<ReadonlyArray<AgentHistoryMetadata>>;
|
|
103
|
+
/**
|
|
104
|
+
* List history snapshots of an agent including full source snapshots.
|
|
105
|
+
*/
|
|
106
|
+
listAgentHistorySnapshots(permanentId: string_agent_permanent_id): Promise<ReadonlyArray<AgentHistorySnapshot>>;
|
|
77
107
|
/**
|
|
78
108
|
* Restore a soft-deleted agent by setting deletedAt to NULL
|
|
79
109
|
*/
|
|
@@ -83,7 +113,7 @@ export declare class AgentCollectionInSupabase {
|
|
|
83
113
|
*
|
|
84
114
|
* This will update the current agent with the source from the history entry
|
|
85
115
|
*/
|
|
86
|
-
restoreAgentFromHistory(historyId: number): Promise<void>;
|
|
116
|
+
restoreAgentFromHistory(historyId: number, expectedPermanentId?: string_agent_permanent_id): Promise<void>;
|
|
87
117
|
/**
|
|
88
118
|
* Soft delete an agent by setting deletedAt to current timestamp
|
|
89
119
|
*/
|
|
@@ -95,6 +125,20 @@ export declare class AgentCollectionInSupabase {
|
|
|
95
125
|
* @returns The prefixed table name
|
|
96
126
|
*/
|
|
97
127
|
private getTableName;
|
|
128
|
+
/**
|
|
129
|
+
* Persists one agent history row and throws when the insert fails.
|
|
130
|
+
*
|
|
131
|
+
* @param historyRow - Row to insert into `AgentHistory`.
|
|
132
|
+
*/
|
|
133
|
+
private insertAgentHistoryRow;
|
|
134
|
+
/**
|
|
135
|
+
* Shared loader for Agent history rows.
|
|
136
|
+
*
|
|
137
|
+
* @param permanentId - Agent permanent identifier.
|
|
138
|
+
* @param includeSource - Whether to include full source snapshots.
|
|
139
|
+
* @returns Agent history rows sorted by creation time descending.
|
|
140
|
+
*/
|
|
141
|
+
private listAgentHistoryInternal;
|
|
98
142
|
}
|
|
99
143
|
export {};
|
|
100
144
|
/**
|
|
@@ -39,7 +39,7 @@ export type AgentsDatabaseSchema = {
|
|
|
39
39
|
folderId: number | null;
|
|
40
40
|
sortOrder: number;
|
|
41
41
|
deletedAt: string | null;
|
|
42
|
-
visibility: 'PUBLIC' | 'PRIVATE';
|
|
42
|
+
visibility: 'PUBLIC' | 'PRIVATE' | 'UNLISTED';
|
|
43
43
|
};
|
|
44
44
|
Insert: {
|
|
45
45
|
id?: number;
|
|
@@ -56,7 +56,7 @@ export type AgentsDatabaseSchema = {
|
|
|
56
56
|
folderId?: number | null;
|
|
57
57
|
sortOrder?: number;
|
|
58
58
|
deletedAt?: string | null;
|
|
59
|
-
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
59
|
+
visibility?: 'PUBLIC' | 'PRIVATE' | 'UNLISTED';
|
|
60
60
|
};
|
|
61
61
|
Update: {
|
|
62
62
|
id?: number;
|
|
@@ -73,7 +73,7 @@ export type AgentsDatabaseSchema = {
|
|
|
73
73
|
folderId?: number | null;
|
|
74
74
|
sortOrder?: number;
|
|
75
75
|
deletedAt?: string | null;
|
|
76
|
-
visibility?: 'PUBLIC' | 'PRIVATE';
|
|
76
|
+
visibility?: 'PUBLIC' | 'PRIVATE' | 'UNLISTED';
|
|
77
77
|
};
|
|
78
78
|
Relationships: [
|
|
79
79
|
{
|
|
@@ -94,6 +94,7 @@ export type AgentsDatabaseSchema = {
|
|
|
94
94
|
previousAgentHash: string | null;
|
|
95
95
|
agentSource: string;
|
|
96
96
|
promptbookEngineVersion: string;
|
|
97
|
+
versionName: string | null;
|
|
97
98
|
};
|
|
98
99
|
Insert: {
|
|
99
100
|
id?: number;
|
|
@@ -104,6 +105,7 @@ export type AgentsDatabaseSchema = {
|
|
|
104
105
|
previousAgentHash?: string | null;
|
|
105
106
|
agentSource: string;
|
|
106
107
|
promptbookEngineVersion: string;
|
|
108
|
+
versionName?: string | null;
|
|
107
109
|
};
|
|
108
110
|
Update: {
|
|
109
111
|
id?: number;
|
|
@@ -114,6 +116,7 @@ export type AgentsDatabaseSchema = {
|
|
|
114
116
|
previousAgentHash?: string | null;
|
|
115
117
|
agentSource?: string;
|
|
116
118
|
promptbookEngineVersion?: string;
|
|
119
|
+
versionName?: string | null;
|
|
117
120
|
};
|
|
118
121
|
Relationships: [
|
|
119
122
|
{
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AgentBasicInformation } from '../../../../book-2.0/agent-source/AgentBasicInformation';
|
|
2
|
+
import type { string_book } from '../../../../book-2.0/agent-source/string_book';
|
|
3
|
+
import type { string_agent_permanent_id } from '../../../../types/typeAliases';
|
|
4
|
+
/**
|
|
5
|
+
* Prepared agent source payload ready for database persistence.
|
|
6
|
+
*
|
|
7
|
+
* The original source may contain `META ID`, which should not be stored verbatim
|
|
8
|
+
* because clones and imports must receive a fresh local permanent id.
|
|
9
|
+
*
|
|
10
|
+
* @private shared persistence helper for `AgentCollectionInSupabase`
|
|
11
|
+
*/
|
|
12
|
+
export type PreparedAgentSourceForPersistence = {
|
|
13
|
+
/**
|
|
14
|
+
* Parsed profile based on the normalized source that will be stored.
|
|
15
|
+
*/
|
|
16
|
+
readonly agentProfile: AgentBasicInformation;
|
|
17
|
+
/**
|
|
18
|
+
* Source normalized for persistence, with any `META ID` lines removed.
|
|
19
|
+
*/
|
|
20
|
+
readonly agentSource: string_book;
|
|
21
|
+
/**
|
|
22
|
+
* Permanent id extracted from the original source before stripping `META ID`.
|
|
23
|
+
*/
|
|
24
|
+
readonly permanentId: string_agent_permanent_id | undefined;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Normalizes one agent source before persistence.
|
|
28
|
+
*
|
|
29
|
+
* This keeps create/update flows aligned when a source includes `META ID`.
|
|
30
|
+
*
|
|
31
|
+
* @param agentSource - Raw agent source about to be stored.
|
|
32
|
+
* @returns Parsed profile, normalized source, and extracted permanent id.
|
|
33
|
+
*
|
|
34
|
+
* @private shared persistence helper for `AgentCollectionInSupabase`
|
|
35
|
+
*/
|
|
36
|
+
export declare function prepareAgentSourceForPersistence(agentSource: string_book): PreparedAgentSourceForPersistence;
|
|
@@ -34,6 +34,3 @@ export declare class KnowledgeCommitmentDefinition extends BaseCommitmentDefinit
|
|
|
34
34
|
get documentation(): string;
|
|
35
35
|
applyToAgentModelRequirements(requirements: AgentModelRequirements, content: string): AgentModelRequirements;
|
|
36
36
|
}
|
|
37
|
-
/**
|
|
38
|
-
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
39
|
-
*/
|