@promptbook/node 0.113.0-8 → 0.114.0-0
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 +4 -3
- package/esm/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/esm/index.es.js +1975 -1267
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
- package/esm/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
- package/esm/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/esm/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -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/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
- package/esm/src/_packages/components.index.d.ts +8 -0
- package/esm/src/_packages/core.index.d.ts +4 -0
- package/esm/src/_packages/types.index.d.ts +14 -2
- package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- package/esm/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/esm/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/esm/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/esm/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/esm/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/esm/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/esm/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/esm/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/esm/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/esm/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/esm/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/esm/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/esm/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/esm/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/esm/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/esm/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/esm/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/esm/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/esm/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- 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/ChatCitationModal.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- 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 +5 -1
- package/esm/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/esm/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
- package/esm/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/esm/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -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/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/esm/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/esm/src/book-components/Chat/hooks/useResolvedCitationLabel.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/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/esm/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/esm/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/esm/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -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 +17 -0
- package/esm/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -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/coder/add.d.ts +36 -0
- package/esm/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/esm/src/cli/cli-commands/coder.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/esm/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/esm/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/esm/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/esm/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -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/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/esm/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/esm/src/commitments/META/META.d.ts +4 -2
- package/esm/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/esm/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/esm/src/commitments/index.d.ts +2 -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/execution/utils/formatUsagePrice.d.ts +12 -0
- package/esm/src/execution/utils/formatUsagePrice.test.d.ts +1 -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/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/esm/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/esm/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/esm/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/esm/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/esm/src/utils/color/Color.d.ts +1 -1
- package/esm/src/utils/html/escapeHtml.d.ts +9 -0
- package/esm/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- 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 +1979 -1271
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentMessagePrompt.d.ts +6 -1
- package/umd/scripts/run-agent-messages/messages/buildAgentProjectsPromptSection.d.ts +39 -0
- package/umd/scripts/run-codex-prompts/common/parseDuration.d.ts +19 -0
- package/umd/scripts/run-codex-prompts/common/waitUntilWorldTimeDeadline.d.ts +27 -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/scripts/run-codex-prompts/runners/openai-codex/parseCodexLoginMethodFromOutput.d.ts +10 -0
- package/umd/src/_packages/components.index.d.ts +8 -0
- package/umd/src/_packages/core.index.d.ts +4 -0
- package/umd/src/_packages/types.index.d.ts +14 -2
- package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- package/umd/src/avatars/visuals/octopus3dAvatarVisualShared.d.ts +1 -1
- package/umd/src/book-2.0/agent-source/AgentBasicInformation.d.ts +7 -0
- package/umd/src/book-2.0/agent-source/parseAgentSource/ParsedAgentProfile.d.ts +1 -1
- package/umd/src/book-2.0/book-language-documentation/BookLanguageDocumentationExample.d.ts +5 -13
- package/umd/src/book-2.0/book-language-documentation/BookLanguageManualDictionary.d.ts +195 -0
- package/umd/src/book-2.0/book-language-documentation/bookLanguageDocumentationExamples.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.d.ts +43 -1
- package/umd/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts +1 -0
- package/umd/src/book-2.0/book-language-documentation/czechBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/englishBookLanguageManualDictionary.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualCommitmentGroups.d.ts +33 -0
- package/umd/src/book-2.0/book-language-documentation/getBookLanguageManualDictionary.d.ts +15 -0
- package/umd/src/book-2.0/book-language-documentation/getSafeCodeBlock.d.ts +10 -0
- package/umd/src/book-2.0/book-language-documentation/renderCommitmentCatalogSection.d.ts +30 -0
- package/umd/src/book-2.0/book-language-documentation/renderGroupedCommitmentDocumentationMarkdown.d.ts +2 -1
- package/umd/src/book-2.0/book-language-documentation/toStableAnchorId.d.ts +12 -0
- package/umd/src/book-3.0/AgentMessageRunReport.d.ts +78 -0
- package/umd/src/book-3.0/AgentMessageRunReport.test.d.ts +1 -0
- package/umd/src/book-3.0/agentFolderPaths.d.ts +9 -0
- package/umd/src/book-3.0/codexLoginMethod.d.ts +38 -0
- package/umd/src/book-components/BookEditor/BookEditorMonacoUploadPanel.d.ts +1 -1
- package/umd/src/book-components/BookEditor/BookEditorSyntaxTokenStyles.d.ts +39 -0
- package/umd/src/book-components/BookEditor/createBookSourceHighlightStyles.d.ts +12 -0
- package/umd/src/book-components/BookEditor/highlightBookSourceToHtml.d.ts +20 -0
- 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/ChatCitationModal.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatCitationModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/ChatFeedbackStar.d.ts +37 -0
- 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 +5 -1
- package/umd/src/book-components/Chat/Chat/ChatMessageList.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatMessageRichContent.d.ts +5 -0
- package/umd/src/book-components/Chat/Chat/ChatProps.d.ts +21 -0
- package/umd/src/book-components/Chat/Chat/ChatRatingModal.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/CitationIframePreview.d.ts +25 -2
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.d.ts +39 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreview.test.d.ts +2 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/LiveBrowserPreviewToolbar.d.ts +71 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputEvent.d.ts +72 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.d.ts +64 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewInputQueue.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewSessionState.d.ts +14 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/PagePreviewViewport.d.ts +37 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/createPagePreviewSessionId.d.ts +20 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.d.ts +13 -0
- package/umd/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts +1 -0
- package/umd/src/book-components/Chat/Chat/resolveChatRatingMessageKey.d.ts +8 -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/MarkdownContent/MarkdownContent.d.ts +2 -0
- package/umd/src/book-components/Chat/SourceChip/SourceChip.test.d.ts +2 -0
- package/umd/src/book-components/Chat/hooks/useResolvedCitationLabel.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/book-components/Chat/utils/renderMarkdown.d.ts +78 -0
- package/umd/src/book-components/Chat/utils/resolveCitationSourceDisplay.d.ts +149 -0
- package/umd/src/book-components/Chat/utils/thinkingMessageVariants.d.ts +9 -0
- package/umd/src/cli/cli-commands/agent-folder/agentProjectPaths.d.ts +2 -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 +17 -0
- package/umd/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.test.d.ts +1 -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/coder/add.d.ts +36 -0
- package/umd/src/cli/cli-commands/coder/add.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/coder/boilerplateTemplates.d.ts +24 -0
- package/umd/src/cli/cli-commands/coder.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/createNonNegativeIntegerOptionParser.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$applyHarnessInstallationStatus.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$askForHarnessInstallationApproval.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/$checkHarnessInstallation.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$ensureHarnessInstallations.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$installHarness.d.ts +13 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveInstalledHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/$resolveLatestHarnessVersion.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.d.ts +40 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessDefinition.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/HarnessInstallationStatus.d.ts +35 -0
- package/umd/src/cli/cli-commands/common/harness/buildHarnessInstallCommand.d.ts +10 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.d.ts +11 -0
- package/umd/src/cli/cli-commands/common/harness/extractHarnessVersionFromOutput.test.d.ts +1 -0
- package/umd/src/cli/cli-commands/common/harness/formatHarnessInstallationWarning.d.ts +7 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.d.ts +9 -0
- package/umd/src/cli/cli-commands/common/harness/isHarnessVersionOutdated.test.d.ts +1 -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/buildAgentNameOrPermanentIdFilter.d.ts +18 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/buildAgentNameOrPermanentIdFilter.test.d.ts +1 -0
- package/umd/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.d.ts +1 -1
- package/umd/src/commitments/META/META.d.ts +4 -2
- package/umd/src/commitments/META_AVATAR/META_AVATAR.d.ts +9 -4
- package/umd/src/commitments/META_THINKING_MESSAGE/META_THINKING_MESSAGE.d.ts +26 -0
- package/umd/src/commitments/index.d.ts +2 -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/execution/utils/formatUsagePrice.d.ts +12 -0
- package/umd/src/execution/utils/formatUsagePrice.test.d.ts +1 -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/agent-message-runtime/resolveAgentMessageRuntimeActivity.d.ts +16 -0
- package/umd/src/utils/agent-message-runtime/resolveAgentMessageRuntimeActivity.test.d.ts +1 -0
- package/umd/src/utils/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/umd/src/utils/agents/terminalAgentAvatarVisual.d.ts +104 -0
- package/umd/src/utils/agents/terminalAgentAvatarVisual.test.d.ts +1 -0
- package/umd/src/utils/color/Color.d.ts +1 -1
- package/umd/src/utils/html/escapeHtml.d.ts +9 -0
- package/umd/src/utils/markdown/shiftMarkdownHeadingLevels.d.ts +15 -0
- 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-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/esm/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- package/umd/scripts/run-codex-prompts/common/runGoScript/buildTemporaryPromptScriptPath.d.ts +0 -14
- package/umd/src/book-2.0/book-language-documentation/bookLanguageCommonPitfalls.d.ts +0 -25
- package/umd/src/book-components/_common/react-utils/escapeHtml.d.ts +0 -6
- /package/esm/src/{executables/browsers/locateInternetExplorer.test.d.ts → book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.test.d.ts} +0 -0
- /package/{umd/src/executables/browsers/locateInternetExplorer.test.d.ts → esm/src/book-3.0/AgentMessageRunReport.test.d.ts} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Viewport of one live page-preview browser session, in CSS pixels.
|
|
3
|
+
*
|
|
4
|
+
* @private type shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
5
|
+
*/
|
|
6
|
+
export type PagePreviewViewport = {
|
|
7
|
+
readonly width: number;
|
|
8
|
+
readonly height: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Smallest viewport accepted for one live page-preview browser session.
|
|
12
|
+
*
|
|
13
|
+
* @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
14
|
+
*/
|
|
15
|
+
export declare const PAGE_PREVIEW_MIN_VIEWPORT: PagePreviewViewport;
|
|
16
|
+
/**
|
|
17
|
+
* Largest viewport accepted for one live page-preview browser session.
|
|
18
|
+
*
|
|
19
|
+
* @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
20
|
+
*/
|
|
21
|
+
export declare const PAGE_PREVIEW_MAX_VIEWPORT: PagePreviewViewport;
|
|
22
|
+
/**
|
|
23
|
+
* Viewport used when the client did not measure its preview area yet.
|
|
24
|
+
*
|
|
25
|
+
* @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
26
|
+
*/
|
|
27
|
+
export declare const PAGE_PREVIEW_DEFAULT_VIEWPORT: PagePreviewViewport;
|
|
28
|
+
/**
|
|
29
|
+
* Clamps one requested page-preview viewport into the supported bounds.
|
|
30
|
+
*
|
|
31
|
+
* @param width - Requested viewport width.
|
|
32
|
+
* @param height - Requested viewport height.
|
|
33
|
+
* @returns Rounded viewport within the supported bounds, or `null` when the values are not finite numbers.
|
|
34
|
+
*
|
|
35
|
+
* @private utility shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
36
|
+
*/
|
|
37
|
+
export declare function clampPagePreviewViewport(width: unknown, height: unknown): PagePreviewViewport | null;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prefix of every live page-preview browser session id.
|
|
3
|
+
*
|
|
4
|
+
* @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
5
|
+
*/
|
|
6
|
+
export declare const PAGE_PREVIEW_SESSION_ID_PREFIX = "page-preview-";
|
|
7
|
+
/**
|
|
8
|
+
* Pattern accepted for client-created page-preview session identifiers.
|
|
9
|
+
*
|
|
10
|
+
* @private constant shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
11
|
+
*/
|
|
12
|
+
export declare const PAGE_PREVIEW_SESSION_ID_PATTERN: RegExp;
|
|
13
|
+
/**
|
|
14
|
+
* Creates one client-side page-preview browser session id.
|
|
15
|
+
*
|
|
16
|
+
* @returns Session id accepted by the Agents Server page-preview routes.
|
|
17
|
+
*
|
|
18
|
+
* @private utility of `<LiveBrowserPreview/>`
|
|
19
|
+
*/
|
|
20
|
+
export declare function createPagePreviewSessionId(): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PagePreviewInputEvent } from './PagePreviewInputEvent';
|
|
2
|
+
/**
|
|
3
|
+
* Validates and normalizes one untrusted page-preview input payload into a typed input event.
|
|
4
|
+
*
|
|
5
|
+
* Note: This performs only structural validation shared by client and server — the Agents Server
|
|
6
|
+
* additionally re-checks `goto` URLs against private/internal targets before navigating.
|
|
7
|
+
*
|
|
8
|
+
* @param payload - Unknown JSON payload (usually the parsed request body).
|
|
9
|
+
* @returns Normalized input event or `null` when the payload is invalid.
|
|
10
|
+
*
|
|
11
|
+
* @private utility shared between `<LiveBrowserPreview/>` and the Agents Server page-preview routes
|
|
12
|
+
*/
|
|
13
|
+
export declare function normalizePagePreviewInputEvent(payload: unknown): PagePreviewInputEvent | null;
|
package/esm/src/book-components/Chat/Chat/pagePreview/normalizePagePreviewInputEvent.test.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { id } from '../../../types/string_token';
|
|
2
|
+
import type { ChatMessage } from '../types/ChatMessage';
|
|
3
|
+
/**
|
|
4
|
+
* Resolves the stable key used for local chat feedback state.
|
|
5
|
+
*
|
|
6
|
+
* @private utility of `<Chat/>`
|
|
7
|
+
*/
|
|
8
|
+
export declare function resolveChatRatingMessageKey(message: Pick<ChatMessage, 'id' | 'content'>): id;
|
|
@@ -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;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { string_markdown } from '../../../types/string_markdown';
|
|
3
|
+
import type { MarkdownInlineReference } from '../utils/renderMarkdown';
|
|
3
4
|
/**
|
|
4
5
|
* Props for markdown content.
|
|
5
6
|
*/
|
|
6
7
|
type MarkdownContentProps = {
|
|
7
8
|
content: string_markdown;
|
|
8
9
|
className?: string;
|
|
10
|
+
inlineReferences?: ReadonlyArray<MarkdownInlineReference>;
|
|
9
11
|
onCreateAgent?: (bookContent: string) => void;
|
|
10
12
|
theme?: 'LIGHT' | 'DARK';
|
|
11
13
|
};
|
|
@@ -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
|
|
@@ -4,6 +4,84 @@ import type { string_html, string_markdown } from '../../../types/string_markdow
|
|
|
4
4
|
*/
|
|
5
5
|
type RenderMarkdownOptions = {
|
|
6
6
|
readonly citationReferenceClassName?: string;
|
|
7
|
+
readonly inlineReferences?: ReadonlyArray<MarkdownInlineReference>;
|
|
8
|
+
readonly inlineReferenceClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* One inline markdown reference converted from `[[reference]]` into a safe link chip.
|
|
12
|
+
*
|
|
13
|
+
* @public exported from `@promptbook/components`
|
|
14
|
+
*/
|
|
15
|
+
export type MarkdownInlineReference = {
|
|
16
|
+
/**
|
|
17
|
+
* Raw reference text between `[[` and `]]`.
|
|
18
|
+
*/
|
|
19
|
+
readonly reference: string;
|
|
20
|
+
/**
|
|
21
|
+
* Human-readable label rendered inside the link chip.
|
|
22
|
+
*/
|
|
23
|
+
readonly label: string;
|
|
24
|
+
/**
|
|
25
|
+
* Link target for the rendered reference.
|
|
26
|
+
*/
|
|
27
|
+
readonly href: string;
|
|
28
|
+
/**
|
|
29
|
+
* Optional hover title for the rendered reference.
|
|
30
|
+
*/
|
|
31
|
+
readonly title?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Optional expandable menu shown when the reference chip is clicked.
|
|
34
|
+
*/
|
|
35
|
+
readonly menu?: MarkdownInlineReferenceMenu;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Status displayed alongside an expandable markdown inline reference.
|
|
39
|
+
*
|
|
40
|
+
* @public exported from `@promptbook/components`
|
|
41
|
+
*/
|
|
42
|
+
export type MarkdownInlineReferenceMenuStatus = {
|
|
43
|
+
/**
|
|
44
|
+
* Accessible text describing the current reference status.
|
|
45
|
+
*/
|
|
46
|
+
readonly label: string;
|
|
47
|
+
/**
|
|
48
|
+
* Whether the status should be rendered as active.
|
|
49
|
+
*/
|
|
50
|
+
readonly isActive: boolean;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* One destination in an expandable markdown inline reference menu.
|
|
54
|
+
*
|
|
55
|
+
* @public exported from `@promptbook/components`
|
|
56
|
+
*/
|
|
57
|
+
export type MarkdownInlineReferenceMenuOption = {
|
|
58
|
+
/**
|
|
59
|
+
* Text rendered for the option.
|
|
60
|
+
*/
|
|
61
|
+
readonly label: string;
|
|
62
|
+
/**
|
|
63
|
+
* New-tab destination, or `null` while the option is unavailable.
|
|
64
|
+
*/
|
|
65
|
+
readonly href: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Optional hover text for the option.
|
|
68
|
+
*/
|
|
69
|
+
readonly title?: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Expandable menu configuration for a markdown inline reference.
|
|
73
|
+
*
|
|
74
|
+
* @public exported from `@promptbook/components`
|
|
75
|
+
*/
|
|
76
|
+
export type MarkdownInlineReferenceMenu = {
|
|
77
|
+
/**
|
|
78
|
+
* Current reference status shown in the chip and menu.
|
|
79
|
+
*/
|
|
80
|
+
readonly status: MarkdownInlineReferenceMenuStatus;
|
|
81
|
+
/**
|
|
82
|
+
* New-tab actions listed in the expanded menu.
|
|
83
|
+
*/
|
|
84
|
+
readonly options: ReadonlyArray<MarkdownInlineReferenceMenuOption>;
|
|
7
85
|
};
|
|
8
86
|
/**
|
|
9
87
|
* Convert markdown content to HTML.
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import type { ParsedCitation } from './parseCitationsFromContent';
|
|
2
|
+
/**
|
|
3
|
+
* Broad source category used by chat citation chips.
|
|
4
|
+
*
|
|
5
|
+
* @private utility type of `<Chat/>` citation rendering
|
|
6
|
+
*/
|
|
7
|
+
export type CitationSourceKind = 'archive' | 'audio' | 'code' | 'document' | 'file' | 'image' | 'json' | 'plain-text' | 'presentation' | 'spreadsheet' | 'table' | 'video' | 'website';
|
|
8
|
+
/**
|
|
9
|
+
* Image subtype when the citation source carries enough information to identify it.
|
|
10
|
+
*
|
|
11
|
+
* @private utility type of `<Chat/>` citation rendering
|
|
12
|
+
*/
|
|
13
|
+
export type CitationImageFormat = 'avif' | 'gif' | 'image' | 'jpeg' | 'png' | 'svg' | 'webp';
|
|
14
|
+
/**
|
|
15
|
+
* Render-ready metadata for one citation source.
|
|
16
|
+
*
|
|
17
|
+
* @private utility type of `<Chat/>` citation rendering
|
|
18
|
+
*/
|
|
19
|
+
export type CitationSourceDisplay = {
|
|
20
|
+
/**
|
|
21
|
+
* Broad source category.
|
|
22
|
+
*/
|
|
23
|
+
readonly kind: CitationSourceKind;
|
|
24
|
+
/**
|
|
25
|
+
* Human-readable fallback label used before optional host metadata resolution.
|
|
26
|
+
*/
|
|
27
|
+
readonly label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Best known HTTP(S) target for previews and URL snippets.
|
|
30
|
+
*/
|
|
31
|
+
readonly targetUrl?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Image URL that can be rendered as a thumbnail.
|
|
34
|
+
*/
|
|
35
|
+
readonly thumbnailUrl?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Lower-cased file extension when one is known.
|
|
38
|
+
*/
|
|
39
|
+
readonly extension?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Image subtype when known.
|
|
42
|
+
*/
|
|
43
|
+
readonly imageFormat?: CitationImageFormat;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Internal source signature before final labels/preview URLs are resolved.
|
|
47
|
+
*
|
|
48
|
+
* @private utility type of `<Chat/>` citation rendering
|
|
49
|
+
*/
|
|
50
|
+
export type CitationSourceSignature = {
|
|
51
|
+
/**
|
|
52
|
+
* Broad source category.
|
|
53
|
+
*/
|
|
54
|
+
readonly kind: CitationSourceKind;
|
|
55
|
+
/**
|
|
56
|
+
* Image subtype when known.
|
|
57
|
+
*/
|
|
58
|
+
readonly imageFormat?: CitationImageFormat;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Resolves render-ready source metadata for one citation.
|
|
62
|
+
*
|
|
63
|
+
* @param citation - Citation metadata from a rendered chat message.
|
|
64
|
+
* @returns Display label, source category, and optional preview URLs.
|
|
65
|
+
*
|
|
66
|
+
* @private utility of `<Chat/>` citation rendering
|
|
67
|
+
*/
|
|
68
|
+
export declare function resolveCitationSourceDisplay(citation: ParsedCitation): CitationSourceDisplay;
|
|
69
|
+
/**
|
|
70
|
+
* Returns whether the provided value is a valid HTTP(S) URL.
|
|
71
|
+
*
|
|
72
|
+
* @param value - Candidate string to inspect.
|
|
73
|
+
* @returns True when the value parses as an HTTP or HTTPS URL.
|
|
74
|
+
*
|
|
75
|
+
* @private utility of `<Chat/>` citation rendering
|
|
76
|
+
*/
|
|
77
|
+
export declare function isCitationSourceUrl(value: string): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Determines whether a citation should be displayed as a text snippet instead of a file/URL.
|
|
80
|
+
*
|
|
81
|
+
* @param citation - Parsed citation metadata.
|
|
82
|
+
* @returns True when the citation looks like inline text instead of a document or URL.
|
|
83
|
+
*
|
|
84
|
+
* @private utility of `<Chat/>` citation rendering
|
|
85
|
+
*/
|
|
86
|
+
export declare function isPlainTextCitationSource(citation: ParsedCitation): boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Creates a readable fallback label from a citation source when no title metadata is available.
|
|
89
|
+
*
|
|
90
|
+
* @param source - Raw citation source value.
|
|
91
|
+
* @returns Human-friendly source label.
|
|
92
|
+
*
|
|
93
|
+
* @private utility of `<Chat/>` citation rendering
|
|
94
|
+
*/
|
|
95
|
+
export declare function createReadableCitationSourceDisplayLabel(source: string): string;
|
|
96
|
+
/**
|
|
97
|
+
* Creates a compact host/path label for URL-backed file citations.
|
|
98
|
+
*
|
|
99
|
+
* @param rawUrl - Raw URL value.
|
|
100
|
+
* @returns URL snippet such as `github.com/.../source.json`, or null for invalid URLs.
|
|
101
|
+
*
|
|
102
|
+
* @private utility of `<Chat/>` citation rendering
|
|
103
|
+
*/
|
|
104
|
+
export declare function createCitationUrlSnippet(rawUrl: string): string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Resolves a source signature from a file extension.
|
|
107
|
+
*
|
|
108
|
+
* @param extension - Lower- or mixed-case file extension.
|
|
109
|
+
* @returns Source signature or null for unknown extensions.
|
|
110
|
+
*
|
|
111
|
+
* @private utility of `<Chat/>` citation rendering
|
|
112
|
+
*/
|
|
113
|
+
export declare function resolveCitationSourceSignatureFromFileExtension(extension: string | null | undefined): CitationSourceSignature | null;
|
|
114
|
+
/**
|
|
115
|
+
* Resolves a source signature from an HTTP content type.
|
|
116
|
+
*
|
|
117
|
+
* @param contentType - Raw Content-Type header value.
|
|
118
|
+
* @returns Source signature or null when the content type is not specific enough.
|
|
119
|
+
*
|
|
120
|
+
* @private utility of `<Chat/>` citation rendering
|
|
121
|
+
*/
|
|
122
|
+
export declare function resolveCitationSourceSignatureFromContentType(contentType: string): CitationSourceSignature | null;
|
|
123
|
+
/**
|
|
124
|
+
* Resolves a source signature from decoded source text.
|
|
125
|
+
*
|
|
126
|
+
* @param source - Raw citation source text.
|
|
127
|
+
* @returns Source signature for JSON/binary-like source text, otherwise null.
|
|
128
|
+
*
|
|
129
|
+
* @private utility of `<Chat/>` citation rendering
|
|
130
|
+
*/
|
|
131
|
+
export declare function resolveRawCitationSourceSignature(source: string): CitationSourceSignature | null;
|
|
132
|
+
/**
|
|
133
|
+
* Resolves a source signature from response bytes.
|
|
134
|
+
*
|
|
135
|
+
* @param bytes - Leading response bytes.
|
|
136
|
+
* @returns Source signature for known binary formats, otherwise null.
|
|
137
|
+
*
|
|
138
|
+
* @private utility of `<Chat/>` citation rendering
|
|
139
|
+
*/
|
|
140
|
+
export declare function resolveCitationSourceSignatureFromBytes(bytes: Uint8Array): CitationSourceSignature | null;
|
|
141
|
+
/**
|
|
142
|
+
* Creates a generic fallback label for a source signature.
|
|
143
|
+
*
|
|
144
|
+
* @param signature - Source signature.
|
|
145
|
+
* @returns Human-readable fallback label.
|
|
146
|
+
*
|
|
147
|
+
* @private utility of `<Chat/>` citation rendering
|
|
148
|
+
*/
|
|
149
|
+
export declare function createCitationSourceSignatureFallbackLabel(signature: CitationSourceSignature): string;
|
|
@@ -7,6 +7,15 @@
|
|
|
7
7
|
* @private internal helper for Promptbook chat placeholders
|
|
8
8
|
*/
|
|
9
9
|
export declare function normalizeThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string>): ReadonlyArray<string>;
|
|
10
|
+
/**
|
|
11
|
+
* Parses configured thinking-message variants without applying default fallbacks.
|
|
12
|
+
*
|
|
13
|
+
* @param thinkingMessages Raw thinking-message variants.
|
|
14
|
+
* @returns Trimmed non-empty variants.
|
|
15
|
+
*
|
|
16
|
+
* @private internal helper for Promptbook chat placeholders
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseThinkingMessageVariants(thinkingMessages?: ReadonlyArray<string> | null): ReadonlyArray<string>;
|
|
10
19
|
/**
|
|
11
20
|
* Returns a random delay used between browser-side thinking-message rotations.
|
|
12
21
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
|
|
2
|
-
export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
|
|
1
|
+
import { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH } from '../../../book-3.0/agentFolderPaths';
|
|
2
|
+
export { AGENT_BOOK_FILE_PATH, AGENT_FAILED_MESSAGES_DIRECTORY_PATH, AGENT_FINISHED_MESSAGES_DIRECTORY_PATH, AGENT_MESSAGES_DIRECTORY_PATH, AGENT_PROJECTS_DIRECTORY_PATH, AGENT_QUEUED_MESSAGES_DIRECTORY_PATH, };
|
|
3
3
|
/**
|
|
4
4
|
* Relative path to local knowledge files initialized by `ptbk agent-folder init`.
|
|
5
5
|
*
|
|
@@ -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;
|