@promptbook/remote-client 0.113.0-0 → 0.113.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 +1 -17
- package/esm/index.es.js +122 -122
- package/esm/index.es.js.map +1 -1
- package/esm/src/_packages/types.index.d.ts +2 -2
- package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +98 -0
- package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
- package/esm/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
- package/esm/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
- package/esm/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
- package/esm/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
- package/esm/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
- package/esm/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
- package/esm/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
- package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
- package/esm/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
- package/esm/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/esm/src/commitments/META/META.d.ts +2 -2
- package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/esm/src/commitments/index.d.ts +1 -1
- package/esm/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
- package/esm/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
- package/esm/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/esm/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/esm/src/utils/ascii-art/$detectTerminalAnsiColorDepth.d.ts +15 -0
- package/esm/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +80 -0
- package/esm/src/utils/color/Color.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +2 -2
- package/umd/index.umd.js +122 -122
- package/umd/index.umd.js.map +1 -1
- package/umd/src/_packages/types.index.d.ts +2 -2
- package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +98 -0
- package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.d.ts +120 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.d.ts +6 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.d.ts +26 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.d.ts +23 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.d.ts +21 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.d.ts +12 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.d.ts +27 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.d.ts +12 -0
- package/umd/src/book-components/BookEditor/useBookEditorMonacoUploads.d.ts +5 -58
- package/umd/src/book-components/Chat/Chat/ChatImageAttachmentModal.d.ts +25 -0
- package/umd/src/book-components/Chat/Chat/ChatInputArea.d.ts +3 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageAttachments.d.ts +27 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageItem.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +8 -0
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +2 -2
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/insertDictationChunk.d.ts +1 -1
- package/umd/src/book-components/Chat/Chat/insertDictationChunk.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/learnDictationDictionary.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/refineFinalDictationChunk.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.d.ts +12 -0
- package/umd/src/book-components/Chat/Chat/useChatInputAreaComposer.draftMessage.test.d.ts +2 -0
- package/umd/src/book-components/Chat/utils/isVisibleChatToolCall.d.ts +1 -1
- package/umd/src/book-components/Chat/utils/parseMessageButtons.d.ts +16 -2
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.d.ts +10 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts +10 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts +18 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.d.ts +28 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.d.ts +19 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.d.ts +11 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts +8 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.d.ts +12 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.d.ts +11 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/buildAgentsServer.d.ts +8 -109
- package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.d.ts +1 -1
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.d.ts +16 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.d.ts +30 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.d.ts +19 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.d.ts +37 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.d.ts +13 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.d.ts +24 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.d.ts +9 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.d.ts +13 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.d.ts +18 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.d.ts +6 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.d.ts +7 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.d.ts +20 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.d.ts +15 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.d.ts +8 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.d.ts +16 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer.d.ts +3 -30
- package/umd/src/cli/cli-commands/common/createPositiveIntegerOptionParser.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/promptRunnerCliOptions.d.ts +1 -1
- package/umd/src/collection/agent-collection/CreateAgentInput.d.ts +1 -1
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/umd/src/commitments/META/META.d.ts +2 -2
- package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/umd/src/commitments/index.d.ts +1 -1
- package/umd/src/conversion/validation/validatePipeline/createPipelineValidationContext.d.ts +16 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineMetadata.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineParameters.d.ts +7 -0
- package/umd/src/conversion/validation/validatePipeline/validatePipelineTasks.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.d.ts +46 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.d.ts +11 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.d.ts +14 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.d.ts +9 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.d.ts +7 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.d.ts +8 -0
- package/umd/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.d.ts +7 -0
- package/umd/src/utils/agent-message-runtime/agentMessageRuntimePaths.d.ts +24 -0
- package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/umd/src/utils/ascii-art/$detectTerminalAnsiColorDepth.d.ts +15 -0
- package/umd/src/utils/ascii-art/convertImageDataToAsciiArt.d.ts +80 -0
- package/umd/src/utils/color/Color.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { AsciiArtColorDepth } from './convertImageDataToAsciiArt';
|
|
2
|
+
/**
|
|
3
|
+
* Detects the ANSI color depth supported by the current terminal.
|
|
4
|
+
*
|
|
5
|
+
* Prefers 24-bit true color when the environment advertises it (modern terminals such as
|
|
6
|
+
* Windows Terminal, ConEmu, VS Code, mintty, iTerm2, and WezTerm) and falls back to the
|
|
7
|
+
* portable 256-color palette otherwise.
|
|
8
|
+
*
|
|
9
|
+
* Note: `$` is used to indicate that this function is not a pure function - it reads the process environment
|
|
10
|
+
*
|
|
11
|
+
* @returns Color depth usable by `convertImageDataToAsciiArt`
|
|
12
|
+
*
|
|
13
|
+
* @private within the repository
|
|
14
|
+
*/
|
|
15
|
+
export declare function $detectTerminalAnsiColorDepth(): AsciiArtColorDepth;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Color depth of the ANSI escape codes emitted by the ASCII-art conversion.
|
|
3
|
+
*
|
|
4
|
+
* - `TRUE_COLOR` emits 24-bit `38;2;r;g;b` / `48;2;r;g;b` sequences
|
|
5
|
+
* - `ANSI_256` approximates colors on the 256-color ANSI cube for older terminals
|
|
6
|
+
*
|
|
7
|
+
* @private within the repository
|
|
8
|
+
*/
|
|
9
|
+
export type AsciiArtColorDepth = 'TRUE_COLOR' | 'ANSI_256';
|
|
10
|
+
/**
|
|
11
|
+
* Minimal structural subset of the DOM `ImageData` accepted by the ASCII-art conversion.
|
|
12
|
+
*
|
|
13
|
+
* Works with browser canvas `ImageData`, `@napi-rs/canvas` image data, or any raw RGBA buffer.
|
|
14
|
+
*
|
|
15
|
+
* @private within the repository
|
|
16
|
+
*/
|
|
17
|
+
export type AsciiArtImageData = {
|
|
18
|
+
/**
|
|
19
|
+
* Source image width in pixels.
|
|
20
|
+
*/
|
|
21
|
+
readonly width: number;
|
|
22
|
+
/**
|
|
23
|
+
* Source image height in pixels.
|
|
24
|
+
*/
|
|
25
|
+
readonly height: number;
|
|
26
|
+
/**
|
|
27
|
+
* Flat RGBA pixel buffer with 4 bytes per pixel.
|
|
28
|
+
*/
|
|
29
|
+
readonly data: ArrayLike<number>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* Options for `convertImageDataToAsciiArt`.
|
|
33
|
+
*
|
|
34
|
+
* @private within the repository
|
|
35
|
+
*/
|
|
36
|
+
export type ConvertImageDataToAsciiArtOptions = {
|
|
37
|
+
/**
|
|
38
|
+
* Source pixels to convert.
|
|
39
|
+
*/
|
|
40
|
+
readonly imageData: AsciiArtImageData;
|
|
41
|
+
/**
|
|
42
|
+
* Output width in terminal character cells.
|
|
43
|
+
*/
|
|
44
|
+
readonly columns: number;
|
|
45
|
+
/**
|
|
46
|
+
* Output height in terminal character cells.
|
|
47
|
+
*
|
|
48
|
+
* Each character cell renders two vertically stacked pixels, so `rows = columns / 2`
|
|
49
|
+
* keeps a square image visually square in a common terminal font.
|
|
50
|
+
*/
|
|
51
|
+
readonly rows: number;
|
|
52
|
+
/**
|
|
53
|
+
* Color depth of the emitted ANSI escape codes.
|
|
54
|
+
*
|
|
55
|
+
* @default 'TRUE_COLOR'
|
|
56
|
+
*/
|
|
57
|
+
readonly colorDepth?: AsciiArtColorDepth;
|
|
58
|
+
/**
|
|
59
|
+
* Alpha channel value (0-255) below which an averaged half-cell is treated as fully transparent.
|
|
60
|
+
*
|
|
61
|
+
* @default 32
|
|
62
|
+
*/
|
|
63
|
+
readonly alphaThreshold?: number;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Converts raw RGBA image pixels into colored ASCII art for ANSI terminals.
|
|
67
|
+
*
|
|
68
|
+
* This is the universal image-to-terminal technique used across the repository:
|
|
69
|
+
* every output character cell covers a rectangular region of source pixels which is
|
|
70
|
+
* split into a top and bottom half; each half is area-averaged and rendered with
|
|
71
|
+
* half-block characters (`▀` / `▄`) so one character shows two "pixels" vertically.
|
|
72
|
+
* Transparent halves keep the terminal background so non-rectangular images
|
|
73
|
+
* (for example rounded avatar cards) compose naturally into any terminal UI.
|
|
74
|
+
*
|
|
75
|
+
* @param options Source pixels, output grid size, and ANSI color depth.
|
|
76
|
+
* @returns One ANSI-colored string per output row, each ending with a color reset.
|
|
77
|
+
*
|
|
78
|
+
* @private within the repository
|
|
79
|
+
*/
|
|
80
|
+
export declare function convertImageDataToAsciiArt(options: ConvertImageDataToAsciiArtOptions): ReadonlyArray<string>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { string_color } from '../../types/string_person_fullname';
|
|
2
2
|
import type { string_url_image } from '../../types/string_url_image';
|
|
3
3
|
import type { WithTake } from '../take/interfaces/ITakeChain';
|
|
4
|
-
import { CSS_COLORS } from './css-colors';
|
|
5
4
|
import { ColorValue } from './ColorValue';
|
|
5
|
+
import { CSS_COLORS } from './css-colors';
|
|
6
6
|
/**
|
|
7
7
|
* Color object represents an RGB color with alpha channel
|
|
8
8
|
*
|
package/esm/src/version.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare const BOOK_LANGUAGE_VERSION: string_semantic_version;
|
|
|
15
15
|
export declare const PROMPTBOOK_ENGINE_VERSION: string_promptbook_version;
|
|
16
16
|
/**
|
|
17
17
|
* Represents the version string of the Promptbook engine.
|
|
18
|
-
* It follows semantic versioning (e.g., `0.
|
|
18
|
+
* It follows semantic versioning (e.g., `0.113.0-9`).
|
|
19
19
|
*
|
|
20
20
|
* @generated
|
|
21
21
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@promptbook/remote-client",
|
|
3
|
-
"version": "0.113.0-
|
|
3
|
+
"version": "0.113.0-10",
|
|
4
4
|
"description": "Promptbook: Create persistent AI agents that turn your company's scattered knowledge into action",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"types": "./esm/src/_packages/remote-client.index.d.ts",
|
|
105
105
|
"typings": "./esm/src/_packages/remote-client.index.d.ts",
|
|
106
106
|
"peerDependencies": {
|
|
107
|
-
"@promptbook/core": "0.113.0-
|
|
107
|
+
"@promptbook/core": "0.113.0-10"
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
110
|
"crypto-js": "4.2.0",
|
package/umd/index.umd.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* @generated
|
|
25
25
|
* @see https://github.com/webgptorg/promptbook
|
|
26
26
|
*/
|
|
27
|
-
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-
|
|
27
|
+
const PROMPTBOOK_ENGINE_VERSION = '0.113.0-10';
|
|
28
28
|
/**
|
|
29
29
|
* TODO: string_promptbook_version should be constrained to the all versions of Promptbook engine
|
|
30
30
|
* Note: [💞] Ignore a discrepancy between file name and entity name
|
|
@@ -379,6 +379,127 @@
|
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
|
|
382
|
+
/**
|
|
383
|
+
* Validates that a channel value is a valid number within the range of 0 to 255.
|
|
384
|
+
* Throws an error if the value is not valid.
|
|
385
|
+
*
|
|
386
|
+
* @param channelName - The name of the channel being validated.
|
|
387
|
+
* @param value - The value of the channel to validate.
|
|
388
|
+
* @throws Will throw an error if the value is not a valid channel number.
|
|
389
|
+
*
|
|
390
|
+
* @private util of `@promptbook/color`
|
|
391
|
+
*/
|
|
392
|
+
function checkChannelValue(channelName, value) {
|
|
393
|
+
if (typeof value !== 'number') {
|
|
394
|
+
throw new Error(`${channelName} channel value is not number but ${typeof value}`);
|
|
395
|
+
}
|
|
396
|
+
if (isNaN(value)) {
|
|
397
|
+
throw new Error(`${channelName} channel value is NaN`);
|
|
398
|
+
}
|
|
399
|
+
if (Math.round(value) !== value) {
|
|
400
|
+
throw new Error(`${channelName} channel is not whole number, it is ${value}`);
|
|
401
|
+
}
|
|
402
|
+
if (value < 0) {
|
|
403
|
+
throw new Error(`${channelName} channel is lower than 0, it is ${value}`);
|
|
404
|
+
}
|
|
405
|
+
if (value > 255) {
|
|
406
|
+
throw new Error(`${channelName} channel is greater than 255, it is ${value}`);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Shared immutable channel storage and serialization helpers for `Color`.
|
|
412
|
+
*
|
|
413
|
+
* @private base class of Color
|
|
414
|
+
*/
|
|
415
|
+
class ColorValue {
|
|
416
|
+
constructor(red, green, blue, alpha = 255) {
|
|
417
|
+
this.red = red;
|
|
418
|
+
this.green = green;
|
|
419
|
+
this.blue = blue;
|
|
420
|
+
this.alpha = alpha;
|
|
421
|
+
checkChannelValue('Red', red);
|
|
422
|
+
checkChannelValue('Green', green);
|
|
423
|
+
checkChannelValue('Blue', blue);
|
|
424
|
+
checkChannelValue('Alpha', alpha);
|
|
425
|
+
}
|
|
426
|
+
/**
|
|
427
|
+
* Shortcut for `red` property
|
|
428
|
+
* Number from 0 to 255
|
|
429
|
+
* @alias red
|
|
430
|
+
*/
|
|
431
|
+
get r() {
|
|
432
|
+
return this.red;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Shortcut for `green` property
|
|
436
|
+
* Number from 0 to 255
|
|
437
|
+
* @alias green
|
|
438
|
+
*/
|
|
439
|
+
get g() {
|
|
440
|
+
return this.green;
|
|
441
|
+
}
|
|
442
|
+
/**
|
|
443
|
+
* Shortcut for `blue` property
|
|
444
|
+
* Number from 0 to 255
|
|
445
|
+
* @alias blue
|
|
446
|
+
*/
|
|
447
|
+
get b() {
|
|
448
|
+
return this.blue;
|
|
449
|
+
}
|
|
450
|
+
/**
|
|
451
|
+
* Shortcut for `alpha` property
|
|
452
|
+
* Number from 0 (transparent) to 255 (opaque)
|
|
453
|
+
* @alias alpha
|
|
454
|
+
*/
|
|
455
|
+
get a() {
|
|
456
|
+
return this.alpha;
|
|
457
|
+
}
|
|
458
|
+
/**
|
|
459
|
+
* Shortcut for `alpha` property
|
|
460
|
+
* Number from 0 (transparent) to 255 (opaque)
|
|
461
|
+
* @alias alpha
|
|
462
|
+
*/
|
|
463
|
+
get opacity() {
|
|
464
|
+
return this.alpha;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* Shortcut for 1-`alpha` property
|
|
468
|
+
*/
|
|
469
|
+
get transparency() {
|
|
470
|
+
return 255 - this.alpha;
|
|
471
|
+
}
|
|
472
|
+
clone() {
|
|
473
|
+
return take(this.createColor(this.red, this.green, this.blue, this.alpha));
|
|
474
|
+
}
|
|
475
|
+
toString() {
|
|
476
|
+
return this.toHex();
|
|
477
|
+
}
|
|
478
|
+
toHex() {
|
|
479
|
+
if (this.alpha === 255) {
|
|
480
|
+
return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
|
|
481
|
+
.toString(16)
|
|
482
|
+
.padStart(2, '0')}`;
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
|
|
486
|
+
.toString(16)
|
|
487
|
+
.padStart(2, '0')}${this.alpha.toString(16).padStart(2, '0')}`;
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
toRgb() {
|
|
491
|
+
if (this.alpha === 255) {
|
|
492
|
+
return `rgb(${this.red}, ${this.green}, ${this.blue})`;
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
toHsl() {
|
|
499
|
+
throw new Error(`Getting HSL is not implemented`);
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
382
503
|
/**
|
|
383
504
|
* 🎨 List of all 140 color names which are supported by CSS
|
|
384
505
|
*
|
|
@@ -538,127 +659,6 @@
|
|
|
538
659
|
};
|
|
539
660
|
// Note: [💞] Ignore a discrepancy between file name and entity name
|
|
540
661
|
|
|
541
|
-
/**
|
|
542
|
-
* Validates that a channel value is a valid number within the range of 0 to 255.
|
|
543
|
-
* Throws an error if the value is not valid.
|
|
544
|
-
*
|
|
545
|
-
* @param channelName - The name of the channel being validated.
|
|
546
|
-
* @param value - The value of the channel to validate.
|
|
547
|
-
* @throws Will throw an error if the value is not a valid channel number.
|
|
548
|
-
*
|
|
549
|
-
* @private util of `@promptbook/color`
|
|
550
|
-
*/
|
|
551
|
-
function checkChannelValue(channelName, value) {
|
|
552
|
-
if (typeof value !== 'number') {
|
|
553
|
-
throw new Error(`${channelName} channel value is not number but ${typeof value}`);
|
|
554
|
-
}
|
|
555
|
-
if (isNaN(value)) {
|
|
556
|
-
throw new Error(`${channelName} channel value is NaN`);
|
|
557
|
-
}
|
|
558
|
-
if (Math.round(value) !== value) {
|
|
559
|
-
throw new Error(`${channelName} channel is not whole number, it is ${value}`);
|
|
560
|
-
}
|
|
561
|
-
if (value < 0) {
|
|
562
|
-
throw new Error(`${channelName} channel is lower than 0, it is ${value}`);
|
|
563
|
-
}
|
|
564
|
-
if (value > 255) {
|
|
565
|
-
throw new Error(`${channelName} channel is greater than 255, it is ${value}`);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Shared immutable channel storage and serialization helpers for `Color`.
|
|
571
|
-
*
|
|
572
|
-
* @private base class of Color
|
|
573
|
-
*/
|
|
574
|
-
class ColorValue {
|
|
575
|
-
constructor(red, green, blue, alpha = 255) {
|
|
576
|
-
this.red = red;
|
|
577
|
-
this.green = green;
|
|
578
|
-
this.blue = blue;
|
|
579
|
-
this.alpha = alpha;
|
|
580
|
-
checkChannelValue('Red', red);
|
|
581
|
-
checkChannelValue('Green', green);
|
|
582
|
-
checkChannelValue('Blue', blue);
|
|
583
|
-
checkChannelValue('Alpha', alpha);
|
|
584
|
-
}
|
|
585
|
-
/**
|
|
586
|
-
* Shortcut for `red` property
|
|
587
|
-
* Number from 0 to 255
|
|
588
|
-
* @alias red
|
|
589
|
-
*/
|
|
590
|
-
get r() {
|
|
591
|
-
return this.red;
|
|
592
|
-
}
|
|
593
|
-
/**
|
|
594
|
-
* Shortcut for `green` property
|
|
595
|
-
* Number from 0 to 255
|
|
596
|
-
* @alias green
|
|
597
|
-
*/
|
|
598
|
-
get g() {
|
|
599
|
-
return this.green;
|
|
600
|
-
}
|
|
601
|
-
/**
|
|
602
|
-
* Shortcut for `blue` property
|
|
603
|
-
* Number from 0 to 255
|
|
604
|
-
* @alias blue
|
|
605
|
-
*/
|
|
606
|
-
get b() {
|
|
607
|
-
return this.blue;
|
|
608
|
-
}
|
|
609
|
-
/**
|
|
610
|
-
* Shortcut for `alpha` property
|
|
611
|
-
* Number from 0 (transparent) to 255 (opaque)
|
|
612
|
-
* @alias alpha
|
|
613
|
-
*/
|
|
614
|
-
get a() {
|
|
615
|
-
return this.alpha;
|
|
616
|
-
}
|
|
617
|
-
/**
|
|
618
|
-
* Shortcut for `alpha` property
|
|
619
|
-
* Number from 0 (transparent) to 255 (opaque)
|
|
620
|
-
* @alias alpha
|
|
621
|
-
*/
|
|
622
|
-
get opacity() {
|
|
623
|
-
return this.alpha;
|
|
624
|
-
}
|
|
625
|
-
/**
|
|
626
|
-
* Shortcut for 1-`alpha` property
|
|
627
|
-
*/
|
|
628
|
-
get transparency() {
|
|
629
|
-
return 255 - this.alpha;
|
|
630
|
-
}
|
|
631
|
-
clone() {
|
|
632
|
-
return take(this.createColor(this.red, this.green, this.blue, this.alpha));
|
|
633
|
-
}
|
|
634
|
-
toString() {
|
|
635
|
-
return this.toHex();
|
|
636
|
-
}
|
|
637
|
-
toHex() {
|
|
638
|
-
if (this.alpha === 255) {
|
|
639
|
-
return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
|
|
640
|
-
.toString(16)
|
|
641
|
-
.padStart(2, '0')}`;
|
|
642
|
-
}
|
|
643
|
-
else {
|
|
644
|
-
return `#${this.red.toString(16).padStart(2, '0')}${this.green.toString(16).padStart(2, '0')}${this.blue
|
|
645
|
-
.toString(16)
|
|
646
|
-
.padStart(2, '0')}${this.alpha.toString(16).padStart(2, '0')}`;
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
toRgb() {
|
|
650
|
-
if (this.alpha === 255) {
|
|
651
|
-
return `rgb(${this.red}, ${this.green}, ${this.blue})`;
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
return `rgba(${this.red}, ${this.green}, ${this.blue}, ${Math.round((this.alpha / 255) * 100)}%)`;
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
toHsl() {
|
|
658
|
-
throw new Error(`Getting HSL is not implemented`);
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
|
|
662
662
|
/**
|
|
663
663
|
* Checks if the given value is a valid hex color string
|
|
664
664
|
*
|