@promptbook/node 0.113.0-1 → 0.113.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/README.md +1 -17
- package/esm/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/esm/index.es.js +1630 -1222
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +17 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
- package/esm/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
- 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 +1 -1
- 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/agents/terminalAgentAvatarVisual.d.ts +94 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- 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/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/umd/index.umd.js +1634 -1226
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +17 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeRunner.d.ts +4 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/ClaudeCodeSessionResurrection.d.ts +37 -0
- package/umd/scripts/run-codex-prompts/runners/claude-code/parseClaudeCodeOutputEvents.d.ts +47 -0
- 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 +1 -1
- 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/agents/terminalAgentAvatarVisual.d.ts +94 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- 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
- package/esm/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
- package/esm/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +0 -12
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
- package/umd/src/book-components/Chat/utils/livePagePreviewConstants.d.ts +0 -12
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CSSProperties } from 'react';
|
|
2
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
3
|
+
/**
|
|
4
|
+
* One uploaded file attached to a chat message.
|
|
5
|
+
*
|
|
6
|
+
* @private type of `<Chat/>`
|
|
7
|
+
*/
|
|
8
|
+
export type ChatMessageAttachment = NonNullable<ChatMessage['attachments']>[number];
|
|
9
|
+
/**
|
|
10
|
+
* Props accepted by the shared attachment chip list.
|
|
11
|
+
*
|
|
12
|
+
* @private props of `<Chat/>`
|
|
13
|
+
*/
|
|
14
|
+
type ChatMessageAttachmentsProps = {
|
|
15
|
+
readonly attachments: ReadonlyArray<ChatMessageAttachment>;
|
|
16
|
+
readonly mode: 'LIGHT' | 'DARK';
|
|
17
|
+
readonly className?: string;
|
|
18
|
+
readonly style?: CSSProperties;
|
|
19
|
+
readonly onRemoveAttachment?: (attachment: ChatMessageAttachment, attachmentIndex: number) => void;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Renders chat attachment chips and the shared image preview modal.
|
|
23
|
+
*
|
|
24
|
+
* @private component of `<Chat/>`
|
|
25
|
+
*/
|
|
26
|
+
export declare function ChatMessageAttachments({ attachments, mode, className, style, onRemoveAttachment, }: ChatMessageAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import type { ChatProps } from './ChatProps';
|
|
|
9
9
|
*
|
|
10
10
|
* @private props for internal subcomponent
|
|
11
11
|
*/
|
|
12
|
-
type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'onQuickMessageButton' | 'participants'> & {
|
|
12
|
+
type ChatMessageItemProps = Pick<ChatProps, 'onMessage' | 'onActionButton' | 'onQuickMessageButton' | 'onQuickMessageDraftButton' | 'participants'> & {
|
|
13
13
|
message: ChatMessage;
|
|
14
14
|
participant: ChatParticipant | undefined;
|
|
15
15
|
isLastMessage: boolean;
|
|
@@ -44,6 +44,7 @@ export type ChatMessageListProps = {
|
|
|
44
44
|
onMessage?: (messageContent: string) => Promisable<void>;
|
|
45
45
|
onActionButton?: ChatProps['onActionButton'];
|
|
46
46
|
onQuickMessageButton?: ChatProps['onQuickMessageButton'];
|
|
47
|
+
onQuickMessageDraftButton?: ChatProps['onQuickMessageDraftButton'];
|
|
47
48
|
onReplyToMessage?: ChatProps['onReplyToMessage'];
|
|
48
49
|
canReplyToMessage?: ChatProps['canReplyToMessage'];
|
|
49
50
|
onCreateAgent?: (bookContent: string) => void;
|
|
@@ -474,6 +474,14 @@ export type ChatProps = {
|
|
|
474
474
|
* When not provided, quick message buttons fall back to `onMessage`.
|
|
475
475
|
*/
|
|
476
476
|
onQuickMessageButton?(messageContent: string): Promisable<void>;
|
|
477
|
+
/**
|
|
478
|
+
* Called when user clicks a quick draft-message button parsed from message markdown.
|
|
479
|
+
*
|
|
480
|
+
* Unlike `onQuickMessageButton`, this prefills the composer with an editable draft
|
|
481
|
+
* instead of sending the message. When not provided, `<Chat/>` prefills its own
|
|
482
|
+
* composer so the draft can be edited before sending.
|
|
483
|
+
*/
|
|
484
|
+
onQuickMessageDraftButton?(messageDraftContent: string): Promisable<void>;
|
|
477
485
|
/**
|
|
478
486
|
* Optional callback fired when the user starts replying to one existing message.
|
|
479
487
|
*/
|
|
@@ -9,7 +9,7 @@ export type CitationIframePreviewProps = {
|
|
|
9
9
|
};
|
|
10
10
|
/**
|
|
11
11
|
* Renders a citation URL preview as an iframe when the target page allows embedding,
|
|
12
|
-
* or falls back to a live server-side browser
|
|
12
|
+
* or falls back to a live server-side browser stream with an "Open in new tab" link
|
|
13
13
|
* when it does not (e.g. X-Frame-Options: DENY / SAMEORIGIN).
|
|
14
14
|
*
|
|
15
15
|
* Embedding capability is determined by `GET /api/page-preview/check?url=<url>`.
|
|
@@ -8,7 +8,7 @@ export declare function insertDictationChunk(params: {
|
|
|
8
8
|
readonly dictatedText: string;
|
|
9
9
|
readonly selectionStart: number;
|
|
10
10
|
readonly selectionEnd: number;
|
|
11
|
-
readonly
|
|
11
|
+
readonly isReplacingSelection: boolean;
|
|
12
12
|
}): {
|
|
13
13
|
nextValue: string;
|
|
14
14
|
start: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,6 +2,17 @@ import { type ChangeEvent, type KeyboardEvent as ReactKeyboardEvent, type Mutabl
|
|
|
2
2
|
import type { ChatMessage } from '../types/ChatMessage';
|
|
3
3
|
import type { ChatInputUploadedFile } from './ChatInputUploadedFile';
|
|
4
4
|
import type { ChatProps, ChatSoundSystem } from './ChatProps';
|
|
5
|
+
/**
|
|
6
|
+
* One programmatic request to replace the composer content with an editable draft.
|
|
7
|
+
*
|
|
8
|
+
* A fresh object identity is used for every request so repeated draft insertions
|
|
9
|
+
* (even with identical text) re-apply to the composer.
|
|
10
|
+
*
|
|
11
|
+
* @private function of `<ChatInputArea/>`
|
|
12
|
+
*/
|
|
13
|
+
export type ChatComposerDraft = {
|
|
14
|
+
readonly content: string;
|
|
15
|
+
};
|
|
5
16
|
/**
|
|
6
17
|
* Props for `useChatInputAreaComposer`.
|
|
7
18
|
*
|
|
@@ -11,6 +22,7 @@ type UseChatInputAreaComposerProps = {
|
|
|
11
22
|
readonly onMessage?: ChatProps['onMessage'];
|
|
12
23
|
readonly onChange?: ChatProps['onChange'];
|
|
13
24
|
readonly defaultMessage?: string;
|
|
25
|
+
readonly draftMessage?: ChatComposerDraft;
|
|
14
26
|
readonly enterBehavior?: ChatProps['enterBehavior'];
|
|
15
27
|
readonly resolveEnterBehavior?: ChatProps['resolveEnterBehavior'];
|
|
16
28
|
readonly isFocusedOnLoad?: boolean;
|
|
@@ -8,6 +8,19 @@ export type MessageQuickButton = {
|
|
|
8
8
|
text: string;
|
|
9
9
|
message: string;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Represents a quick draft-message button parsed from chat markdown.
|
|
13
|
+
*
|
|
14
|
+
* Unlike `MessageQuickButton`, clicking this button prefills the composer with an
|
|
15
|
+
* editable draft instead of sending the message immediately.
|
|
16
|
+
*
|
|
17
|
+
* @private internal helper type of `MessageButton`
|
|
18
|
+
*/
|
|
19
|
+
export type MessageDraftQuickButton = {
|
|
20
|
+
type: 'messageDraft';
|
|
21
|
+
text: string;
|
|
22
|
+
messageDraft: string;
|
|
23
|
+
};
|
|
11
24
|
/**
|
|
12
25
|
* Represents a quick action button parsed from chat markdown.
|
|
13
26
|
*
|
|
@@ -23,9 +36,10 @@ export type ActionQuickButton = {
|
|
|
23
36
|
*
|
|
24
37
|
* @public exported from `@promptbook/components`
|
|
25
38
|
*/
|
|
26
|
-
export type MessageButton = MessageQuickButton | ActionQuickButton;
|
|
39
|
+
export type MessageButton = MessageQuickButton | MessageDraftQuickButton | ActionQuickButton;
|
|
27
40
|
/**
|
|
28
|
-
* Parses markdown quick buttons in the format `[Button Text](?message=...)
|
|
41
|
+
* Parses markdown quick buttons in the format `[Button Text](?message=...)`, `[Button Text](?messageDraft=...)`
|
|
42
|
+
* or `[Button Text](?action=...)`.
|
|
29
43
|
* Returns both the content without supported quick buttons and the extracted button definitions.
|
|
30
44
|
*
|
|
31
45
|
* @param content The markdown content that may contain buttons
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AGENTS_SERVER_BUILD_CACHE_VERSION } from './AGENTS_SERVER_BUILD_CACHE_VERSION';
|
|
2
|
+
/**
|
|
3
|
+
* Metadata persisted after one successful Agents Server production build.
|
|
4
|
+
*
|
|
5
|
+
* @private internal type of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export type AgentsServerBuildCache = {
|
|
8
|
+
readonly version: typeof AGENTS_SERVER_BUILD_CACHE_VERSION;
|
|
9
|
+
readonly sourceFingerprint: string;
|
|
10
|
+
};
|
package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Input paths required to validate or update the cached Agents Server build.
|
|
4
|
+
*
|
|
5
|
+
* @private internal type of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export type AgentsServerBuildCacheOptions = {
|
|
8
|
+
readonly appPath: string;
|
|
9
|
+
readonly environment?: NodeJS.ProcessEnv;
|
|
10
|
+
};
|
package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Paths needed after the Agents Server production build is ready.
|
|
3
|
+
*
|
|
4
|
+
* @private internal type of `buildAgentsServer`
|
|
5
|
+
*/
|
|
6
|
+
export type AgentsServerBuildArtifacts = {
|
|
7
|
+
readonly appPath: string;
|
|
8
|
+
readonly nodeModulesPath: string;
|
|
9
|
+
readonly nextCliPath: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Runtime paths resolved for Agents Server commands before choosing build or dev execution.
|
|
13
|
+
*
|
|
14
|
+
* @private internal type of `buildAgentsServer`
|
|
15
|
+
*/
|
|
16
|
+
export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
|
|
17
|
+
readonly isAppPathMaterialized: boolean;
|
|
18
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Environment variable passed to the bundled Next app so webpack can resolve dependencies
|
|
4
|
+
* installed beside `ptbk` even when the app sources are materialized into a project cache.
|
|
5
|
+
*
|
|
6
|
+
* @private internal constant of `buildAgentsServer`
|
|
7
|
+
*/
|
|
8
|
+
export declare const PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV = "PTBK_AGENTS_SERVER_NODE_MODULES_PATH";
|
|
9
|
+
/**
|
|
10
|
+
* Environment variable consumed by `apps/agents-server/next.config.ts` to throttle build workers.
|
|
11
|
+
*
|
|
12
|
+
* @private internal constant of `buildAgentsServer`
|
|
13
|
+
*/
|
|
14
|
+
export declare const PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV = "PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT";
|
|
15
|
+
/**
|
|
16
|
+
* Environment variable used only by the CLI-owned production build.
|
|
17
|
+
*
|
|
18
|
+
* @private internal constant of `buildAgentsServer`
|
|
19
|
+
*/
|
|
20
|
+
export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
|
|
21
|
+
/**
|
|
22
|
+
* Adds dependency-resolution environment required by the materialized Agents Server runtime.
|
|
23
|
+
*
|
|
24
|
+
* @private internal utility of `buildAgentsServer`
|
|
25
|
+
*/
|
|
26
|
+
export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
|
|
27
|
+
readonly isNextValidationIgnored?: boolean;
|
|
28
|
+
}): NodeJS.ProcessEnv;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { PreparedAgentsServerRuntime } from './PreparedAgentsServerRuntime';
|
|
3
|
+
/**
|
|
4
|
+
* Inputs controlling one cached Agents Server production build.
|
|
5
|
+
*/
|
|
6
|
+
type EnsureAgentsServerBuildOptions = {
|
|
7
|
+
readonly appPath?: string;
|
|
8
|
+
readonly environment?: NodeJS.ProcessEnv;
|
|
9
|
+
readonly isBuildForced?: boolean;
|
|
10
|
+
readonly onBuildEvent?: (event: string) => void;
|
|
11
|
+
readonly onBuildOutput?: (chunk: string) => void;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Ensures that the local Agents Server production build exists and matches its source fingerprint.
|
|
15
|
+
*
|
|
16
|
+
* @private internal utility of `buildAgentsServer`
|
|
17
|
+
*/
|
|
18
|
+
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Runtime paths copied into the CLI package and used by the Agents Server production build.
|
|
3
|
+
*/
|
|
4
|
+
declare const AGENTS_SERVER_BUILD_INPUT_RELATIVE_PATHS: readonly ["apps/agents-server", "apps/_common", "src", "books", "package.json", "package-lock.json", "security.config.ts", "servers.ts", "tsconfig.json"];
|
|
5
|
+
/**
|
|
6
|
+
* Returns runtime input paths that can affect the materialized runtime and build fingerprint.
|
|
7
|
+
*
|
|
8
|
+
* @private internal utility of `buildAgentsServer`
|
|
9
|
+
*/
|
|
10
|
+
export declare function getAgentsServerBuildInputRelativePaths(): typeof AGENTS_SERVER_BUILD_INPUT_RELATIVE_PATHS;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true when the production build marker and source fingerprint still match.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export declare function isAgentsServerBuildCacheCurrent(options: AgentsServerBuildCacheOptions): Promise<boolean>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns true for runtime source files and folders that are not needed by the Agents Server build.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `buildAgentsServer`
|
|
5
|
+
*/
|
|
6
|
+
export declare function isExcludedAgentsServerRuntimeSourcePath(sourceRuntimeRelativePath: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Normalizes one absolute runtime path so cache fingerprints are stable across platforms.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `buildAgentsServer`
|
|
5
|
+
*/
|
|
6
|
+
export declare function normalizeAgentsServerBuildInputPath(runtimeRootPath: string, inputPath: string): string;
|
package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { PreparedAgentsServerRuntime } from './PreparedAgentsServerRuntime';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export declare function prepareAgentsServerRuntime(options?: {
|
|
8
|
+
readonly appPath?: string;
|
|
9
|
+
}): Promise<PreparedAgentsServerRuntime>;
|
package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { AgentsServerBuildCache } from './AgentsServerBuildCache';
|
|
2
|
+
import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
|
|
3
|
+
/**
|
|
4
|
+
* Reads and validates cached build metadata.
|
|
5
|
+
*
|
|
6
|
+
* @private internal utility of `buildAgentsServer`
|
|
7
|
+
*/
|
|
8
|
+
export declare function readAgentsServerBuildCache(options: AgentsServerBuildCacheOptions): Promise<AgentsServerBuildCache | undefined>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Uses the source checkout app directly, but copies npm-packaged app sources out of `node_modules`.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `buildAgentsServer`
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveAgentsServerBuildAppPath(options: {
|
|
7
|
+
readonly nodeModulesPath: string;
|
|
8
|
+
readonly sourceAppPath: string;
|
|
9
|
+
}): Promise<string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the Next output directory used by a particular build environment.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export declare function resolveAgentsServerBuildOutputPath(options: AgentsServerBuildCacheOptions): string;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/**
|
|
3
|
+
* Runs the finite Next production build used by local Agents Server commands.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export declare function runNextBuild(options: {
|
|
8
|
+
readonly appPath: string;
|
|
9
|
+
readonly environment: NodeJS.ProcessEnv;
|
|
10
|
+
readonly nextCliPath: string;
|
|
11
|
+
readonly onBuildOutput?: (chunk: string) => void;
|
|
12
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copies the bundled runtime into the launch project when the original app lives under `node_modules`.
|
|
3
|
+
*
|
|
4
|
+
* @private internal utility of `buildAgentsServer`
|
|
5
|
+
*/
|
|
6
|
+
export declare function synchronizeMaterializedAgentsServerRuntime(options: {
|
|
7
|
+
readonly materializedRuntimeRootPath: string;
|
|
8
|
+
readonly nodeModulesPath: string;
|
|
9
|
+
readonly sourceAppPath: string;
|
|
10
|
+
readonly sourceRuntimeRootPath: string;
|
|
11
|
+
}): Promise<void>;
|
package/esm/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AgentsServerBuildCacheOptions } from './AgentsServerBuildCacheOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Persists the source fingerprint for the just-created production build.
|
|
4
|
+
*
|
|
5
|
+
* @private internal utility of `buildAgentsServer`
|
|
6
|
+
*/
|
|
7
|
+
export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCacheOptions): Promise<void>;
|
|
@@ -1,109 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
export
|
|
9
|
-
/**
|
|
10
|
-
* Environment variable consumed by `apps/agents-server/next.config.ts` to throttle build workers.
|
|
11
|
-
*
|
|
12
|
-
* @private internal constant of `ptbk agents-server`
|
|
13
|
-
*/
|
|
14
|
-
export declare const PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV = "PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT";
|
|
15
|
-
/**
|
|
16
|
-
* Environment variable used only by the CLI-owned production build.
|
|
17
|
-
*
|
|
18
|
-
* @private internal constant of `ptbk agents-server`
|
|
19
|
-
*/
|
|
20
|
-
export declare const PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV = "PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION";
|
|
21
|
-
/**
|
|
22
|
-
* Inputs controlling one cached Agents Server production build.
|
|
23
|
-
*
|
|
24
|
-
* @private internal type of `ptbk agents-server`
|
|
25
|
-
*/
|
|
26
|
-
type EnsureAgentsServerBuildOptions = {
|
|
27
|
-
readonly appPath?: string;
|
|
28
|
-
readonly environment?: NodeJS.ProcessEnv;
|
|
29
|
-
readonly isBuildForced?: boolean;
|
|
30
|
-
readonly onBuildEvent?: (event: string) => void;
|
|
31
|
-
readonly onBuildOutput?: (chunk: string) => void;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* Paths needed after the Agents Server production build is ready.
|
|
35
|
-
*
|
|
36
|
-
* @private internal type of `ptbk agents-server`
|
|
37
|
-
*/
|
|
38
|
-
export type AgentsServerBuildArtifacts = {
|
|
39
|
-
readonly appPath: string;
|
|
40
|
-
readonly nodeModulesPath: string;
|
|
41
|
-
readonly nextCliPath: string;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Runtime paths resolved for Agents Server commands before choosing build or dev execution.
|
|
45
|
-
*
|
|
46
|
-
* @private internal type of `ptbk agents-server`
|
|
47
|
-
*/
|
|
48
|
-
export type PreparedAgentsServerRuntime = AgentsServerBuildArtifacts & {
|
|
49
|
-
readonly isAppPathMaterialized: boolean;
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Input paths required to validate or update the cached Agents Server build.
|
|
53
|
-
*
|
|
54
|
-
* @private internal type of `ptbk agents-server`
|
|
55
|
-
*/
|
|
56
|
-
type AgentsServerBuildCacheOptions = {
|
|
57
|
-
readonly appPath: string;
|
|
58
|
-
readonly environment?: NodeJS.ProcessEnv;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Ensures that the local Agents Server production build exists and matches its source fingerprint.
|
|
62
|
-
*
|
|
63
|
-
* @private internal utility of `ptbk agents-server`
|
|
64
|
-
*/
|
|
65
|
-
export declare function ensureAgentsServerBuild(options?: EnsureAgentsServerBuildOptions): Promise<PreparedAgentsServerRuntime>;
|
|
66
|
-
/**
|
|
67
|
-
* Resolves the runtime app and dependency paths shared by Agents Server start and dev commands.
|
|
68
|
-
*
|
|
69
|
-
* @private internal utility of `ptbk agents-server`
|
|
70
|
-
*/
|
|
71
|
-
export declare function prepareAgentsServerRuntime(options?: {
|
|
72
|
-
readonly appPath?: string;
|
|
73
|
-
}): Promise<PreparedAgentsServerRuntime>;
|
|
74
|
-
/**
|
|
75
|
-
* Returns true when the production build marker and source fingerprint still match.
|
|
76
|
-
*
|
|
77
|
-
* @private internal utility of `ptbk agents-server`
|
|
78
|
-
*/
|
|
79
|
-
export declare function isAgentsServerBuildCacheCurrent(options: AgentsServerBuildCacheOptions): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* Persists the source fingerprint for the just-created production build.
|
|
82
|
-
*
|
|
83
|
-
* @private internal utility of `ptbk agents-server`
|
|
84
|
-
*/
|
|
85
|
-
export declare function writeAgentsServerBuildCache(options: AgentsServerBuildCacheOptions): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* Finds the Agents Server app in a source checkout or generated CLI package.
|
|
88
|
-
*
|
|
89
|
-
* @private internal utility of `ptbk agents-server`
|
|
90
|
-
*/
|
|
91
|
-
export declare function resolveAgentsServerAppPath(): Promise<string>;
|
|
92
|
-
/**
|
|
93
|
-
* Adds dependency-resolution environment required by the materialized Agents Server runtime.
|
|
94
|
-
*
|
|
95
|
-
* @private internal utility of `ptbk agents-server`
|
|
96
|
-
*/
|
|
97
|
-
export declare function createAgentsServerRuntimeEnvironment(environment: NodeJS.ProcessEnv, nodeModulesPath: string, options?: {
|
|
98
|
-
readonly isNextValidationIgnored?: boolean;
|
|
99
|
-
}): NodeJS.ProcessEnv;
|
|
100
|
-
/**
|
|
101
|
-
* Uses the source checkout app directly, but copies npm-packaged app sources out of `node_modules`.
|
|
102
|
-
*
|
|
103
|
-
* @private internal utility of `ptbk agents-server`
|
|
104
|
-
*/
|
|
105
|
-
export declare function resolveAgentsServerBuildAppPath(options: {
|
|
106
|
-
readonly nodeModulesPath: string;
|
|
107
|
-
readonly sourceAppPath: string;
|
|
108
|
-
}): Promise<string>;
|
|
109
|
-
export {};
|
|
1
|
+
export { createAgentsServerRuntimeEnvironment, PTBK_AGENTS_SERVER_BUILD_WORKER_COUNT_ENV, PTBK_AGENTS_SERVER_IGNORE_NEXT_VALIDATION_ENV, PTBK_AGENTS_SERVER_NODE_MODULES_PATH_ENV, } from './buildAgentsServer/createAgentsServerRuntimeEnvironment';
|
|
2
|
+
export { ensureAgentsServerBuild } from './buildAgentsServer/ensureAgentsServerBuild';
|
|
3
|
+
export { isAgentsServerBuildCacheCurrent } from './buildAgentsServer/isAgentsServerBuildCacheCurrent';
|
|
4
|
+
export { prepareAgentsServerRuntime } from './buildAgentsServer/prepareAgentsServerRuntime';
|
|
5
|
+
export { resolveAgentsServerAppPath } from './buildAgentsServer/resolveAgentsServerAppPath';
|
|
6
|
+
export { resolveAgentsServerBuildAppPath } from './buildAgentsServer/resolveAgentsServerBuildAppPath';
|
|
7
|
+
export { writeAgentsServerBuildCache } from './buildAgentsServer/writeAgentsServerBuildCache';
|
|
8
|
+
export type { AgentsServerBuildArtifacts, PreparedAgentsServerRuntime, } from './buildAgentsServer/PreparedAgentsServerRuntime';
|