@promptbook/cli 0.113.0-8 → 0.113.0-9
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/apps/agents-server/next.config.ts +6 -3
- package/apps/agents-server/src/app/admin/resource-monitor/page.tsx +456 -0
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerClient.tsx +14 -2
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskLogActions.tsx +150 -0
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskRow.tsx +58 -18
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTaskTerminalDialog.tsx +125 -0
- package/apps/agents-server/src/app/admin/task-manager/TaskManagerTasksCard.tsx +3 -1
- package/apps/agents-server/src/app/admin/task-manager/page.tsx +3 -2
- package/apps/agents-server/src/app/admin/update/AdvancedOriginRepositoryPanel.tsx +14 -9
- package/apps/agents-server/src/app/admin/update/AutomaticSelfUpdateConfigurationCard.tsx +93 -0
- package/apps/agents-server/src/app/admin/update/CurrentDeploymentCard.tsx +15 -13
- package/apps/agents-server/src/app/admin/update/CustomCommitPicker.tsx +10 -10
- package/apps/agents-server/src/app/admin/update/InstalledVersionsCard.tsx +112 -0
- package/apps/agents-server/src/app/admin/update/PendingCommitsCard.tsx +9 -8
- package/apps/agents-server/src/app/admin/update/TargetEnvironmentCard.tsx +14 -14
- package/apps/agents-server/src/app/admin/update/UpdateClient.tsx +18 -8
- package/apps/agents-server/src/app/admin/update/UpdateDatabaseMigrationsPanel.tsx +305 -0
- package/apps/agents-server/src/app/admin/update/UpdateJobCard.tsx +29 -8
- package/apps/agents-server/src/app/admin/update/UpdateOverview.ts +68 -0
- package/apps/agents-server/src/app/admin/update/updatePageCardClassName.ts +6 -0
- package/apps/agents-server/src/app/admin/update/useUpdateClientState.ts +241 -7
- package/apps/agents-server/src/app/agents/[agentName]/AgentChatWrapper.tsx +17 -3
- package/apps/agents-server/src/app/agents/[agentName]/chat/CanonicalAgentChatSurface.tsx +6 -2
- package/apps/agents-server/src/app/api/admin/chat-tasks/[taskId]/terminal/route.ts +52 -0
- package/apps/agents-server/src/app/api/admin/update/route.ts +55 -8
- package/apps/agents-server/src/app/api/admin/update/versions/route.ts +34 -0
- package/apps/agents-server/src/app/api/auth/shibboleth/acs/route.ts +4 -2
- package/apps/agents-server/src/app/api/auth/shibboleth/login/route.ts +3 -1
- package/apps/agents-server/src/app/api/auth/shibboleth/metadata/route.ts +5 -2
- package/apps/agents-server/src/app/api/auth/shibboleth/status/route.ts +5 -2
- package/apps/agents-server/src/app/layout.tsx +39 -25
- package/apps/agents-server/src/components/AgentAvatar/AgentAvatar.tsx +1 -1
- package/apps/agents-server/src/components/AgentAvatar/DefaultAgentAvatarVisualProvider.tsx +1 -1
- package/apps/agents-server/src/components/Header/Header.tsx +16 -3
- package/apps/agents-server/src/components/Header/HeaderTypes.ts +6 -0
- package/apps/agents-server/src/components/Header/buildAgentMenuStructure.tsx +6 -4
- package/apps/agents-server/src/components/Header/buildHeaderSystemMenuItems.ts +13 -1
- package/apps/agents-server/src/components/Homepage/useAgentsListState.ts +1 -1
- package/apps/agents-server/src/components/LayoutWrapper/LayoutWrapper.tsx +21 -5
- package/apps/agents-server/src/constants/defaultAgentAvatarVisual.ts +4 -3
- package/apps/agents-server/src/database/metadataDefaults.ts +1 -1
- package/apps/agents-server/src/database/migrate.ts +25 -1
- package/apps/agents-server/src/database/migratePrefix.ts +24 -0
- package/apps/agents-server/src/database/runDatabaseMigrations.ts +9 -1
- package/apps/agents-server/src/instrumentation-node.ts +15 -0
- package/apps/agents-server/src/languages/ServerTranslationKeys.ts +1 -0
- package/apps/agents-server/src/languages/translations/czech.yaml +1 -0
- package/apps/agents-server/src/languages/translations/english.yaml +1 -0
- package/apps/agents-server/src/{components/Homepage → utils/agentOrganization}/hiddenFolders.ts +49 -29
- package/apps/agents-server/src/utils/chat/createAttachmentAwareCitationLabelResolver.ts +147 -0
- package/apps/agents-server/src/utils/chatTasksAdmin.ts +1 -1
- package/apps/agents-server/src/utils/externalChatRunner/processExternalUserChatJob.ts +11 -5
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/GetAdminChatTasksData.ts +12 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/adminChatTaskSqlQuery.ts +264 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/adminChatTaskSqlValues.ts +35 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/adminChatTaskTimeUtilities.ts +30 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/compareAdminChatTasks.ts +135 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/createAdminChatTaskCounters.ts +29 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/filterAdminChatTasks.ts +78 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/getAdminChatTasksViaClientSql.ts +62 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/getAdminChatTasksViaSupabaseQuery.ts +29 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/loadAdminChatTaskFallbackData.ts +193 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/mapAdminChatTaskFallbackRows.ts +99 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks/mapAdminChatTaskSqlRows.ts +94 -0
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/getAdminChatTasks.ts +4 -947
- package/apps/agents-server/src/utils/getAdminChatTasksResponse/mapVpsSelfUpdateJobToAdminChatTask.ts +18 -5
- package/apps/agents-server/src/utils/getAdminChatTasksResponse.ts +57 -21
- package/apps/agents-server/src/utils/localChatRunner/processLocalUserChatJob.ts +20 -5
- package/apps/agents-server/src/utils/pagePreviewBrowserSessions.ts +13 -1
- package/apps/agents-server/src/utils/resourceMonitor/formatResourceMonitorValue.ts +50 -0
- package/apps/agents-server/src/utils/resourceMonitor/readCpuResourceUsage.ts +75 -0
- package/apps/agents-server/src/utils/resourceMonitor/readDiskResourceUsage.ts +42 -0
- package/apps/agents-server/src/utils/resourceMonitor/readMemoryResourceUsage.ts +28 -0
- package/apps/agents-server/src/utils/resourceMonitor/readNetworkResourceUsage.ts +271 -0
- package/apps/agents-server/src/utils/resourceMonitor/readServerResourceMonitorSnapshot.ts +47 -0
- package/apps/agents-server/src/utils/resourceMonitor/resolveServerResourceWarningStatus.ts +72 -0
- package/apps/agents-server/src/utils/resourceMonitor/resourceMonitorConstants.ts +29 -0
- package/apps/agents-server/src/utils/resourceMonitor/resourceMonitorTypes.ts +155 -0
- package/apps/agents-server/src/utils/resourceMonitor/waitForResourceMonitorSample.ts +11 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/createShibbolethSamlClient.ts +35 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/createShibbolethServiceProviderMetadataXml.ts +25 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/extractShibbolethProfileAttributes.ts +173 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/fetchIdentityProviderMetadataXml.ts +21 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/findOrCreateShibbolethUser.ts +323 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/getShibbolethAuthenticationAttemptTableName.ts +13 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/getShibbolethRequestDetails.ts +19 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/getShibbolethUserIdentityTableName.ts +13 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/parseIdentityProviderMetadataXml.ts +110 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/recordShibbolethAuthenticationAttempt.ts +57 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/resolveShibbolethAuthenticationConfiguration.ts +78 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/resolveShibbolethPublicRequestUrl.ts +101 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/resolveShibbolethServiceProviderUrls.ts +63 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/sanitizeShibbolethRelayState.ts +17 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/shibbolethAuthenticationConstants.ts +62 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication/shibbolethAuthenticationTypes.ts +105 -0
- package/apps/agents-server/src/utils/shibbolethAuthentication.ts +25 -957
- package/apps/agents-server/src/utils/taskTerminal/resolveAdminTaskTerminalSession.ts +322 -0
- package/apps/agents-server/src/utils/taskTerminal/runWithTaskTerminalCapture.ts +134 -0
- package/apps/agents-server/src/utils/taskTerminal/taskTerminalLog.ts +360 -0
- package/apps/agents-server/src/utils/userChat/finalizeUserChatJob.ts +16 -0
- package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutStore/updateUserChatTimeoutTerminalState.ts +3 -0
- package/apps/agents-server/src/utils/userChatTimeout/userChatTimeoutWorker.ts +4 -1
- package/apps/agents-server/src/utils/vpsConfiguration.ts +4 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/deleteVpsSelfUpdateInstalledVersion.ts +81 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/listVpsSelfUpdateCandidateCommits.ts +217 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/readPersistedVpsSelfUpdateJob.ts +310 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/readVpsSelfUpdateOverview.ts +178 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/resolveVpsSelfUpdateJobForOverview.ts +42 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/startVpsSelfUpdate.ts +201 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateAutomaticConfiguration.ts +152 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateConfiguration.ts +81 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateCron.ts +357 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateEnvironment.ts +120 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateInstalledVersions.ts +162 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateJobConstants.ts +15 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateJobHistory.ts +387 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateJobIdentity.ts +26 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateOriginRepository.ts +90 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateRepository.ts +286 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateScheduler.ts +191 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateStateFiles.ts +197 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate/vpsSelfUpdateTypes.ts +452 -0
- package/apps/agents-server/src/utils/vpsSelfUpdate.ts +66 -1547
- package/esm/apps/agents-server/src/database/migratePrefix.d.ts +19 -0
- package/esm/apps/agents-server/src/database/runDatabaseMigrations.d.ts +4 -0
- package/esm/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/esm/index.es.js +28566 -27913
- package/esm/index.es.js.map +1 -1
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentAutoPuller.d.ts +27 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentGithubSynchronizer.d.ts +26 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentRunUiPresenter.d.ts +66 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/RunMultipleAgentMessageTaskScheduler.d.ts +67 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/formatProjectPath.d.ts +6 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/loadLocalAgentRunnerProjectSummaries.d.ts +11 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages/wait.d.ts +6 -0
- package/esm/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +1 -1
- 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/ui/CoderRunUiState.d.ts +6 -4
- package/esm/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +30 -5
- package/esm/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +7 -1
- package/esm/scripts/run-codex-prompts/ui/coderRunUiRefresh.d.ts +2 -2
- package/esm/src/_packages/types.index.d.ts +2 -2
- package/esm/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- 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/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/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/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/esm/src/utils/color/Color.d.ts +1 -1
- package/esm/src/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/_packages/types.index.ts +2 -2
- package/src/avatars/Avatar.tsx +2 -13
- package/src/avatars/renderAvatarVisual.ts +2 -13
- package/src/avatars/renderAvatarVisualAsciiArt.ts +137 -18
- package/src/avatars/visuals/asciiOctopusAvatarVisual.ts +1 -6
- package/src/avatars/visuals/avatarVisualRegistry.ts +1 -1
- package/src/avatars/visuals/minecraft2AvatarVisual.ts +1 -2
- package/src/avatars/visuals/octopus2AvatarVisual.ts +1 -5
- package/src/avatars/visuals/octopus3AvatarVisual.ts +1 -8
- package/src/avatars/visuals/octopus3d2AvatarVisual.ts +4 -13
- package/src/avatars/visuals/octopus3d3AvatarVisual.ts +4 -13
- package/src/avatars/visuals/octopus3d4AvatarVisual.ts +4 -13
- package/src/avatars/visuals/octopus3dAvatarVisual.ts +3 -3
- package/src/avatars/visuals/octopus3dAvatarVisualShared.ts +2 -7
- package/src/book-2.0/agent-source/parseAgentSource/applyMetaCommitment.ts +2 -1
- package/src/book-2.0/book-language-documentation/createStandaloneBookLanguageMarkdown.ts +3 -5
- package/src/book-3.0/CliAgent.ts +1 -7
- package/src/book-3.0/LiteAgent.ts +5 -5
- package/src/book-components/AvatarProfile/AvatarProfile/AvatarProfile.tsx +1 -4
- package/src/book-components/BookEditor/BookEditor.tsx +2 -2
- package/src/book-components/BookEditor/BookEditorAboutPromptbookInformation.tsx +3 -2
- package/src/book-components/BookEditor/BookEditorActionbar.tsx +1 -1
- package/src/book-components/BookEditor/BookEditorMonaco.tsx +2 -2
- package/src/book-components/BookEditor/BookEditorMonacoUploadPanel.tsx +1 -1
- package/src/book-components/BookEditor/useBookEditorMonacoLanguage.ts +1 -1
- package/src/book-components/BookEditor/useBookEditorMonacoStyles.ts +1 -1
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes.ts +147 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/clearScheduledTimer.ts +10 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/enqueueFilesForUpload.ts +209 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadEditorSync.ts +164 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadItemsState.ts +121 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadProgressQueue.ts +81 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/useBookEditorMonacoUploadQueue.ts +360 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads/useCompletedUploadsAutoClear.ts +47 -0
- package/src/book-components/BookEditor/useBookEditorMonacoUploads.ts +10 -1067
- package/src/book-components/Chat/Chat/Chat.module.css +159 -0
- package/src/book-components/Chat/Chat/Chat.tsx +16 -1
- package/src/book-components/Chat/Chat/ChatCitationModal.tsx +2 -2
- package/src/book-components/Chat/Chat/ChatImageAttachmentModal.tsx +108 -0
- package/src/book-components/Chat/Chat/ChatInputArea.tsx +43 -27
- package/src/book-components/Chat/Chat/ChatMessageAttachments.tsx +212 -0
- package/src/book-components/Chat/Chat/ChatMessageItem.tsx +32 -18
- package/src/book-components/Chat/Chat/ChatMessageList.tsx +3 -0
- package/src/book-components/Chat/Chat/ChatProps.tsx +9 -0
- package/src/book-components/Chat/Chat/renderTimeoutToolCallDetails.tsx +1 -5
- package/src/book-components/Chat/Chat/useChatInputAreaComposer.ts +59 -7
- package/src/book-components/Chat/Chat/useChatInputAreaDictation.ts +7 -7
- package/src/book-components/Chat/Chat/useChatToolCallModalState.ts +1 -4
- package/src/book-components/Chat/hooks/useChatRatings.ts +1 -1
- package/src/book-components/Chat/save/html/htmlSaveFormatDefinition.ts +2 -3
- package/src/book-components/Chat/save/markdown/mdSaveFormatDefinition.ts +2 -2
- package/src/book-components/Chat/save/pdf/buildChatPdf.ts +1 -1
- package/src/book-components/Chat/utils/getToolCallChipletInfo.ts +1 -5
- package/src/book-components/Chat/utils/isVisibleChatToolCall.ts +2 -1
- package/src/book-components/Chat/utils/parseMessageButtons.ts +27 -2
- package/src/cli/cli-commands/about.ts +1 -1
- package/src/cli/cli-commands/agent/agentCliOptions.ts +2 -5
- package/src/cli/cli-commands/agent-folder/agentProjectPaths.ts +6 -12
- package/src/cli/cli-commands/agent-folder/init.ts +3 -8
- package/src/cli/cli-commands/agent-folder/initializeAgentProjectConfiguration.ts +2 -11
- package/src/cli/cli-commands/agent-folder/printAgentInitializationSummary.ts +2 -9
- package/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_FILENAME.ts +6 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_BUILD_CACHE_VERSION.ts +6 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/AGENTS_SERVER_NEXT_BUILD_ID_FILENAME.ts +6 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCache.ts +11 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/AgentsServerBuildCacheOptions.ts +9 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/NODE_MODULES_DIRECTORY_NAME.ts +6 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/PreparedAgentsServerRuntime.ts +19 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerBuildSourceFingerprint.ts +71 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/createAgentsServerRuntimeEnvironment.ts +69 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/ensureAgentsServerBuild.ts +59 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/getAgentsServerBuildInputRelativePaths.ts +23 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPath.ts +20 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerAppPathMaterialized.ts +17 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildCacheCurrent.ts +27 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isAgentsServerBuildInputTestFile.ts +21 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputDirectoryName.ts +22 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerBuildInputPath.ts +30 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isExcludedAgentsServerRuntimeSourcePath.ts +41 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isFile.ts +14 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/isPathInsideNodeModules.ts +10 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/normalizeAgentsServerBuildInputPath.ts +10 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/prepareAgentsServerRuntime.ts +31 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/readAgentsServerBuildCache.ts +35 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerAppPath.ts +33 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildAppPath.ts +30 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/resolveAgentsServerBuildOutputPath.ts +19 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNextCliPath.ts +21 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/resolveNodeModulesPath.ts +19 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/runNextBuild.ts +184 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/shouldCopyAgentsServerRuntimePath.ts +48 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/synchronizeMaterializedAgentsServerRuntime.ts +179 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer/writeAgentsServerBuildCache.ts +28 -0
- package/src/cli/cli-commands/agents-server/buildAgentsServer.ts +22 -1045
- package/src/cli/cli-commands/agents-server/ensureAgentsServerEnvFile.ts +2 -1
- package/src/cli/cli-commands/agents-server/ensureAgentsServerGitignoreFile.ts +2 -1
- package/src/cli/cli-commands/agents-server/run.ts +2 -5
- package/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerChildEnvironment.ts +67 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerLogStreams.ts +43 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerRuntimePaths.ts +44 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/AgentsServerSupervisorState.ts +59 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/LocalAgentRunnerLimits.ts +9 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/PreparedAgentsServerLaunch.ts +14 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/StartAgentsServerOptions.ts +26 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/createInternalRouteErrorMessage.ts +15 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/createLocalAgentRunOptions.ts +29 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/forwardChildOutput.ts +32 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/loadAgentsServerProjectEnvironment.ts +18 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/prepareAgentsServerLaunch.ts +81 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/readInternalRouteErrorDetails.ts +52 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/resolveAgentsServerChildHostname.ts +17 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/startNextServer.ts +97 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/startUserChatJobWorkerPump.ts +132 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/stopChildProcess.ts +14 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer/waitForLocalAgentRunnerLimits.ts +132 -0
- package/src/cli/cli-commands/agents-server/startAgentsServer.ts +24 -797
- package/src/cli/cli-commands/agents-server.ts +2 -6
- package/src/cli/cli-commands/coder/agentCodingFile.ts +1 -7
- package/src/cli/cli-commands/coder/generate-boilerplates.ts +2 -6
- package/src/cli/cli-commands/coder/initializeCoderProjectConfiguration.ts +2 -7
- package/src/cli/cli-commands/coder/server.ts +4 -2
- package/src/cli/cli-commands/common/promptRunnerCliOptions.ts +3 -8
- package/src/cli/cli-commands/make.ts +1 -1
- package/src/cli/cli-commands/run/runCommandAction.ts +1 -1
- package/src/collection/agent-collection/CreateAgentInput.ts +2 -5
- package/src/collection/agent-collection/constructors/agent-collection-in-supabase/prepareAgentSourceForPersistence.ts +1 -1
- package/src/commitments/MEMORY/createMemoryToolFunctions.ts +1 -10
- package/src/commitments/MEMORY/getMemoryToolRuntimeAdapterOrDisabledResult.ts +1 -10
- package/src/commitments/MEMORY/parseMemoryToolArgs.ts +1 -6
- package/src/commitments/META/META.ts +4 -4
- package/src/commitments/META_AVATAR/META_AVATAR.ts +16 -10
- package/src/commitments/USE_CALENDAR/createUseCalendarToolFunctions.ts +1 -4
- package/src/commitments/USE_PROJECT/createUseProjectToolFunctions.ts +2 -10
- package/src/commitments/USE_TIMEOUT/createTimeoutToolFunctions.ts +1 -11
- package/src/commitments/USE_TIMEOUT/getTimeoutToolRuntimeAdapterOrDisabledResult.ts +1 -6
- package/src/commitments/USE_TIMEOUT/parseTimeoutToolArgs.ts +1 -6
- package/src/commitments/WALLET/createWalletToolFunctions.ts +2 -11
- package/src/commitments/WALLET/getWalletToolRuntimeAdapterOrDisabledResult.ts +1 -6
- package/src/commitments/WALLET/parseWalletToolArgs.ts +1 -10
- package/src/commitments/index.ts +1 -0
- package/src/conversion/parsePipeline/applyPipelineHead.ts +1 -1
- package/src/conversion/parsePipeline/createUniqueSectionNameResolver.ts +1 -1
- package/src/conversion/parsePipeline/processPipelineSection.ts +1 -1
- package/src/conversion/validation/validatePipeline/createPipelineValidationContext.ts +43 -0
- package/src/conversion/validation/validatePipeline/validatePipelineCollectionsStructure.ts +72 -0
- package/src/conversion/validation/validatePipeline/validatePipelineDependencyResolution.ts +220 -0
- package/src/conversion/validation/validatePipeline/validatePipelineMetadata.ts +66 -0
- package/src/conversion/validation/validatePipeline/validatePipelineParameters.ts +136 -0
- package/src/conversion/validation/validatePipeline/validatePipelineTasks.ts +243 -0
- package/src/conversion/validation/validatePipeline.ts +7 -750
- package/src/execution/LlmExecutionTools.ts +1 -6
- package/src/execution/createPipelineExecutor/getReservedParametersForTask.ts +1 -5
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/RegisteredLlmToolsMessageContext.ts +51 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/USED_ENV_FILENAME.ts +30 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolConfigurationStatusMessage.ts +62 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolEntryKey.ts +10 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolInstallationStatusMessage.ts +75 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolStatus.ts +101 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/createRegisteredLlmToolsMessageContext.ts +24 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/getAvailableRegisteredLlmToolsEnvironmentVariables.ts +17 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/getRegisteredLlmToolRegisters.ts +15 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/hasRegisteredLlmToolEntry.ts +19 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolEntries.ts +44 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/listRegisteredLlmToolStatuses.ts +21 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderAvailableRegisteredLlmTools.ts +97 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderNoRegisteredLlmToolsMessage.ts +17 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRegisteredLlmToolsMessage.ts +30 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage/renderRelevantRegisteredLlmToolsEnvironmentVariables.ts +32 -0
- package/src/llm-providers/_common/register/$registeredLlmToolsMessage.ts +5 -568
- package/src/llm-providers/_common/utils/count-total-usage/limitTotalUsage.ts +1 -6
- package/src/llm-providers/openai/OpenAiAgentKitExecutionTools.ts +2 -2
- package/src/llm-providers/openai/OpenAiAssistantExecutionTools.ts +1 -1
- package/src/llm-providers/openai/OpenAiAssistantExecutionToolsStreamRunner.ts +2 -2
- package/src/llm-providers/openai/OpenAiAssistantExecutionToolsToolRunner.ts +1 -1
- package/src/llm-providers/openai/OpenAiCompatibleExecutionTools.ts +2 -7
- package/src/llm-providers/openai/utils/OpenAiCompatibleChatPromptBuilder.ts +1 -1
- package/src/llm-providers/openai/utils/OpenAiCompatibleChatToolCaller.ts +2 -2
- package/src/llm-providers/openai/utils/OpenAiCompatibleUnsupportedParameterRetrier.ts +1 -5
- package/src/llm-providers/openai/utils/buildToolInvocationScript.ts +1 -6
- package/src/other/templates/getTemplatesPipelineCollection.ts +692 -774
- package/src/remote-server/startRemoteServer/registerExecutionRoutes.ts +1 -1
- package/src/remote-server/startRemoteServer/registerServerIndexRoute.ts +1 -1
- package/src/scrapers/_common/utils/makeKnowledgeSourceHandler.ts +1 -6
- package/src/speech-recognition/OpenAiSpeechRecognition.ts +1 -6
- package/src/transpilers/_common/prepareSdkTranspilerContext.ts +1 -4
- package/src/types/Prompt.ts +1 -7
- package/src/types/string_host.ts +1 -9
- package/src/types/string_pipeline_url.ts +1 -4
- package/src/utils/agents/resolveAgentAvatarImageUrl.ts +2 -2
- package/src/utils/color/Color.ts +2 -2
- package/src/utils/markdown/parseMarkdownSection.ts +1 -5
- package/src/utils/random/$randomFullnameWithColor.ts +1 -6
- package/src/version.ts +2 -2
- package/src/versions.txt +1 -0
- package/umd/apps/agents-server/src/database/migratePrefix.d.ts +19 -0
- package/umd/apps/agents-server/src/database/runDatabaseMigrations.d.ts +4 -0
- package/umd/book/scripts/import-markdown/increaseHeadings.d.ts +8 -0
- package/umd/index.umd.js +28568 -27915
- package/umd/index.umd.js.map +1 -1
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentAutoPuller.d.ts +27 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentGithubSynchronizer.d.ts +26 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentRunUiPresenter.d.ts +66 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/RunMultipleAgentMessageTaskScheduler.d.ts +67 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/formatProjectPath.d.ts +6 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/loadLocalAgentRunnerProjectSummaries.d.ts +11 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/wait.d.ts +6 -0
- package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages.d.ts +1 -1
- 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/ui/CoderRunUiState.d.ts +6 -4
- package/umd/scripts/run-codex-prompts/ui/buildCoderRunAgentVisual.d.ts +30 -5
- package/umd/scripts/run-codex-prompts/ui/buildCoderRunUiFrame.d.ts +7 -1
- package/umd/scripts/run-codex-prompts/ui/coderRunUiRefresh.d.ts +2 -2
- package/umd/src/_packages/types.index.d.ts +2 -2
- package/umd/src/avatars/renderAvatarVisualAsciiArt.d.ts +24 -1
- 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/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/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/agents/resolveAgentAvatarImageUrl.d.ts +2 -2
- package/umd/src/utils/color/Color.d.ts +1 -1
- package/umd/src/version.d.ts +1 -1
- package/apps/agents-server/src/utils/userChat/createUserChatRunnerProgressCard.ts +0 -57
package/umd/scripts/run-agent-messages/main/runMultipleAgentMessages/MultipleAgentAutoPuller.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { AgentRunOptions } from '../../AgentRunOptions';
|
|
2
|
+
import type { LocalAgentRunnerProjectSummary } from './LocalAgentRunnerProjectSummary';
|
|
3
|
+
import type { MultiAgentAutoPullResult } from './MultiAgentAutoPullResult';
|
|
4
|
+
import type { MultipleAgentRunUiPresenter } from './MultipleAgentRunUiPresenter';
|
|
5
|
+
/**
|
|
6
|
+
* Owns periodic auto-pull state for watched local repositories.
|
|
7
|
+
*
|
|
8
|
+
* @private class of `runMultipleAgentMessages`
|
|
9
|
+
*/
|
|
10
|
+
export declare class MultipleAgentAutoPuller {
|
|
11
|
+
private readonly autoPullTimestampsByProjectPath;
|
|
12
|
+
/**
|
|
13
|
+
* Pulls latest changes for watched child repositories when their idle auto-pull interval elapsed.
|
|
14
|
+
*/
|
|
15
|
+
pullIfNeeded(options: {
|
|
16
|
+
readonly rootPath: string;
|
|
17
|
+
readonly runOptions: AgentRunOptions;
|
|
18
|
+
readonly uiPresenter: MultipleAgentRunUiPresenter;
|
|
19
|
+
readonly projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>;
|
|
20
|
+
readonly ignoredAgentCount: number;
|
|
21
|
+
}): Promise<MultiAgentAutoPullResult>;
|
|
22
|
+
/**
|
|
23
|
+
* Records an auto-pull timestamp observed while a child runner processed one message.
|
|
24
|
+
*/
|
|
25
|
+
recordAutoPullTimestamp(projectPath: string, autoPullTimestamp: number): void;
|
|
26
|
+
private pruneTimestampsForCurrentProjects;
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AgentRunOptions } from '../../AgentRunOptions';
|
|
2
|
+
import type { AgentIgnoreMatcher } from '../agentIgnorePatterns';
|
|
3
|
+
import type { MultipleAgentRunUiPresenter } from './MultipleAgentRunUiPresenter';
|
|
4
|
+
/**
|
|
5
|
+
* Owns periodic GitHub repository synchronization state for `runMultipleAgentMessages`.
|
|
6
|
+
*
|
|
7
|
+
* @private class of `runMultipleAgentMessages`
|
|
8
|
+
*/
|
|
9
|
+
export declare class MultipleAgentGithubSynchronizer {
|
|
10
|
+
private synchronizationTimestamp;
|
|
11
|
+
private ignoredRepositoryCount;
|
|
12
|
+
/**
|
|
13
|
+
* Number of remote repositories ignored during the last synchronization round.
|
|
14
|
+
*/
|
|
15
|
+
get ignoredAgentCount(): number;
|
|
16
|
+
/**
|
|
17
|
+
* Synchronizes missing local repositories from GitHub when the owner configuration is available.
|
|
18
|
+
*/
|
|
19
|
+
synchronizeIfNeeded(options: {
|
|
20
|
+
readonly rootPath: string;
|
|
21
|
+
readonly runOptions: AgentRunOptions;
|
|
22
|
+
readonly ignoreMatcher: AgentIgnoreMatcher;
|
|
23
|
+
readonly uiPresenter: MultipleAgentRunUiPresenter;
|
|
24
|
+
readonly lastObservedProjectCount: number;
|
|
25
|
+
}): Promise<void>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { AgentRunOptions } from '../../AgentRunOptions';
|
|
2
|
+
import { type CoderRunUiHandle } from '../../../run-codex-prompts/ui/renderCoderRunUi';
|
|
3
|
+
import type { AgentTickUiPresentation } from '../tickAgentMessages';
|
|
4
|
+
import type { LocalAgentRunnerProjectSummary } from './LocalAgentRunnerProjectSummary';
|
|
5
|
+
/**
|
|
6
|
+
* Owns all rich UI state projection for `runMultipleAgentMessages`.
|
|
7
|
+
*
|
|
8
|
+
* @private class of `runMultipleAgentMessages`
|
|
9
|
+
*/
|
|
10
|
+
export declare class MultipleAgentRunUiPresenter {
|
|
11
|
+
private readonly runOptions;
|
|
12
|
+
private readonly rootPath;
|
|
13
|
+
private readonly handle;
|
|
14
|
+
private constructor();
|
|
15
|
+
/**
|
|
16
|
+
* Creates the shared multi-agent rich UI when the terminal supports it.
|
|
17
|
+
*/
|
|
18
|
+
static create(runOptions: AgentRunOptions, rootPath: string): MultipleAgentRunUiPresenter;
|
|
19
|
+
/**
|
|
20
|
+
* Rich terminal UI handle, when the current process can render one.
|
|
21
|
+
*/
|
|
22
|
+
get uiHandle(): CoderRunUiHandle | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Updates the shared UI while GitHub repository synchronization is running.
|
|
25
|
+
*/
|
|
26
|
+
updateForGithubSynchronization(lastObservedProjectCount: number): void;
|
|
27
|
+
/**
|
|
28
|
+
* Updates the shared UI while watched child repositories are being pulled.
|
|
29
|
+
*/
|
|
30
|
+
updateForAutoPull(projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>, ignoredAgentCount: number, projectSummariesToPull: ReadonlyArray<LocalAgentRunnerProjectSummary>): void;
|
|
31
|
+
/**
|
|
32
|
+
* Updates the shared UI to the idle multi-agent watch state.
|
|
33
|
+
*/
|
|
34
|
+
updateForWatching(projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>, ignoredAgentCount: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* Updates the shared UI while one or more child repositories are answering queued messages.
|
|
37
|
+
*/
|
|
38
|
+
updateForAnswering(options: {
|
|
39
|
+
readonly projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>;
|
|
40
|
+
readonly answeringProjectPaths: ReadonlySet<string>;
|
|
41
|
+
readonly ignoredAgentCount: number;
|
|
42
|
+
readonly activeMessageCount: number;
|
|
43
|
+
}): void;
|
|
44
|
+
/**
|
|
45
|
+
* Builds the multi-agent presentation passed into one active queued-message tick.
|
|
46
|
+
*/
|
|
47
|
+
buildTickPresentation(options: {
|
|
48
|
+
readonly projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>;
|
|
49
|
+
readonly answeringProjectPaths: ReadonlySet<string>;
|
|
50
|
+
readonly ignoredAgentCount: number;
|
|
51
|
+
}): AgentTickUiPresentation;
|
|
52
|
+
private setConfig;
|
|
53
|
+
private buildScriptPaths;
|
|
54
|
+
private createQueueProgressSnapshot;
|
|
55
|
+
private createCompletedQueueProgressSnapshot;
|
|
56
|
+
private buildStatusLines;
|
|
57
|
+
private buildStatusTableRows;
|
|
58
|
+
private formatCurrentAgentMessage;
|
|
59
|
+
private buildUserMessageLines;
|
|
60
|
+
private buildMessagePreviewSections;
|
|
61
|
+
private buildAnsweringAgentMessageLines;
|
|
62
|
+
private buildAnsweringDetailLines;
|
|
63
|
+
private buildWatchingDetailLines;
|
|
64
|
+
private buildAutoPullDetailLines;
|
|
65
|
+
private formatAgentCount;
|
|
66
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { AgentRunOptions } from '../../AgentRunOptions';
|
|
2
|
+
import type { AgentMessageFailureTracker } from '../AgentMessageFailureTracker';
|
|
3
|
+
import type { LocalAgentRunnerProjectSummary } from './LocalAgentRunnerProjectSummary';
|
|
4
|
+
import type { LocalAgentRunnerWorkItem } from './LocalAgentRunnerWorkItem';
|
|
5
|
+
import type { MultiAgentAutoPullResult } from './MultiAgentAutoPullResult';
|
|
6
|
+
import type { MultipleAgentAutoPuller } from './MultipleAgentAutoPuller';
|
|
7
|
+
import type { MultipleAgentRunUiPresenter } from './MultipleAgentRunUiPresenter';
|
|
8
|
+
/**
|
|
9
|
+
* Task scheduler dependencies that are stable for one multi-agent watch session.
|
|
10
|
+
*
|
|
11
|
+
* @private type of `runMultipleAgentMessages`
|
|
12
|
+
*/
|
|
13
|
+
export type RunMultipleAgentMessageTaskSchedulerOptions = {
|
|
14
|
+
readonly runOptions: AgentRunOptions;
|
|
15
|
+
readonly messageFailureTracker: AgentMessageFailureTracker;
|
|
16
|
+
readonly autoPuller: MultipleAgentAutoPuller;
|
|
17
|
+
readonly uiPresenter: MultipleAgentRunUiPresenter;
|
|
18
|
+
readonly watchErrorLogDirectoryPath: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Owns active queued-message task selection, execution, and settling for `runMultipleAgentMessages`.
|
|
22
|
+
*
|
|
23
|
+
* @private class of `runMultipleAgentMessages`
|
|
24
|
+
*/
|
|
25
|
+
export declare class RunMultipleAgentMessageTaskScheduler {
|
|
26
|
+
private readonly options;
|
|
27
|
+
private readonly activeMessageTasksByKey;
|
|
28
|
+
private readonly isParallelMessageLimitConfigured;
|
|
29
|
+
private readonly maxParallelMessageCount;
|
|
30
|
+
constructor(options: RunMultipleAgentMessageTaskSchedulerOptions);
|
|
31
|
+
/**
|
|
32
|
+
* Number of currently running harness tasks.
|
|
33
|
+
*/
|
|
34
|
+
get activeMessageCount(): number;
|
|
35
|
+
/**
|
|
36
|
+
* Selects the next queued messages that can be started without exceeding active harness capacity.
|
|
37
|
+
*/
|
|
38
|
+
selectQueuedWorkItems(projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>): Array<LocalAgentRunnerWorkItem>;
|
|
39
|
+
/**
|
|
40
|
+
* Builds the set of project paths currently represented by active or newly scheduled harness tasks.
|
|
41
|
+
*/
|
|
42
|
+
createAnsweringProjectPaths(queuedWorkItems: ReadonlyArray<LocalAgentRunnerWorkItem>): Set<string>;
|
|
43
|
+
/**
|
|
44
|
+
* Starts selected queued-message harness tasks and records them until they settle.
|
|
45
|
+
*/
|
|
46
|
+
startQueuedWorkItems(options: {
|
|
47
|
+
readonly queuedWorkItems: ReadonlyArray<LocalAgentRunnerWorkItem>;
|
|
48
|
+
readonly projectSummaries: ReadonlyArray<LocalAgentRunnerProjectSummary>;
|
|
49
|
+
readonly answeringProjectPaths: ReadonlySet<string>;
|
|
50
|
+
readonly ignoredAgentCount: number;
|
|
51
|
+
readonly autoPullResult: MultiAgentAutoPullResult;
|
|
52
|
+
}): void;
|
|
53
|
+
/**
|
|
54
|
+
* Waits for either one active task to finish or the next queue polling interval.
|
|
55
|
+
*/
|
|
56
|
+
waitForNextTurn(queuePollIntervalMs: number): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Preserves previous shutdown behavior by letting active harness tasks finish before returning.
|
|
59
|
+
*/
|
|
60
|
+
waitForActiveTasksToSettle(): Promise<void>;
|
|
61
|
+
private startQueuedWorkItem;
|
|
62
|
+
private runQueuedWorkItem;
|
|
63
|
+
private selectFirstInactiveQueuedWorkItem;
|
|
64
|
+
private createTaskKey;
|
|
65
|
+
private createRunOptionsForQueuedProjectTick;
|
|
66
|
+
private normalizeMaxParallelMessageCount;
|
|
67
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type AgentIgnoreMatcher } from '../agentIgnorePatterns';
|
|
2
|
+
import type { LocalAgentRunnerProjectSummariesResult } from './LocalAgentRunnerProjectSummary';
|
|
3
|
+
/**
|
|
4
|
+
* Loads current direct-child repository summaries used by the shared dashboard and queue routing.
|
|
5
|
+
*
|
|
6
|
+
* @private function of `runMultipleAgentMessages`
|
|
7
|
+
*/
|
|
8
|
+
export declare function loadLocalAgentRunnerProjectSummaries(rootPath: string, options: {
|
|
9
|
+
readonly includeMessagePreviews: boolean;
|
|
10
|
+
readonly ignoreMatcher: AgentIgnoreMatcher;
|
|
11
|
+
}): Promise<LocalAgentRunnerProjectSummariesResult>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CoderRunUiHandle } from '../../run-codex-prompts/ui/renderCoderRunUi';
|
|
2
2
|
import type { AgentRunOptions } from '../AgentRunOptions';
|
|
3
3
|
/**
|
|
4
4
|
* Optional integrations for callers that supervise the multi-agent watcher as one service.
|
|
@@ -16,4 +16,8 @@ export declare class ClaudeCodeRunner implements PromptRunner {
|
|
|
16
16
|
* Runs the prompt using Claude Code and parses usage output.
|
|
17
17
|
*/
|
|
18
18
|
runPrompt(options: PromptRunOptions): Promise<PromptRunResult>;
|
|
19
|
+
/**
|
|
20
|
+
* Runs one Claude Code CLI process and returns its raw output.
|
|
21
|
+
*/
|
|
22
|
+
private runClaudeCodeOnce;
|
|
19
23
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Number of milliseconds added after Claude's reported reset timestamp before retrying.
|
|
3
|
+
*/
|
|
4
|
+
export declare const CLAUDE_CODE_SESSION_LIMIT_RESET_BUFFER_MS: number;
|
|
5
|
+
/**
|
|
6
|
+
* Fallback delay used when Claude reports a session limit without a machine-readable reset timestamp.
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_CLAUDE_CODE_SESSION_LIMIT_RETRY_DELAY_MS: number;
|
|
9
|
+
/**
|
|
10
|
+
* Session-limit detection details needed to resume a Claude Code run.
|
|
11
|
+
*/
|
|
12
|
+
export type ClaudeCodeSessionLimit = {
|
|
13
|
+
readonly sessionId: string;
|
|
14
|
+
readonly resetDate?: Date;
|
|
15
|
+
readonly rateLimitType?: string;
|
|
16
|
+
readonly summary: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Extracts a Claude Code session-limit failure from a thrown runner error.
|
|
20
|
+
*/
|
|
21
|
+
export declare function extractClaudeCodeSessionLimitFromError(error: unknown): ClaudeCodeSessionLimit | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Extracts a Claude Code session-limit failure from raw stream-json output.
|
|
24
|
+
*/
|
|
25
|
+
export declare function extractClaudeCodeSessionLimitFromOutput(output: string): ClaudeCodeSessionLimit | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Computes how long to wait before trying to resume the Claude Code session.
|
|
28
|
+
*/
|
|
29
|
+
export declare function getClaudeCodeSessionLimitDelayMs(sessionLimit: ClaudeCodeSessionLimit, nowMs?: number): number;
|
|
30
|
+
/**
|
|
31
|
+
* Builds the follow-up prompt sent into a resumed Claude Code session after its limit resets.
|
|
32
|
+
*/
|
|
33
|
+
export declare function buildClaudeCodeSessionResurrectionPrompt(originalPrompt: string, sessionId: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Builds a compact one-line label for logs and terminal UI messages.
|
|
36
|
+
*/
|
|
37
|
+
export declare function formatClaudeCodeSessionLimitForDisplay(sessionLimit: ClaudeCodeSessionLimit): string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One parsed JSON event emitted by the Claude Code `--output-format stream-json` mode.
|
|
3
|
+
*/
|
|
4
|
+
export type ClaudeCodeOutputEvent = {
|
|
5
|
+
readonly type?: string;
|
|
6
|
+
readonly subtype?: string;
|
|
7
|
+
readonly is_error?: boolean;
|
|
8
|
+
readonly api_error_status?: number;
|
|
9
|
+
readonly result?: string;
|
|
10
|
+
readonly session_id?: string;
|
|
11
|
+
readonly error?: string;
|
|
12
|
+
readonly rate_limit_info?: {
|
|
13
|
+
readonly status?: string;
|
|
14
|
+
readonly resetsAt?: number;
|
|
15
|
+
readonly rateLimitType?: string;
|
|
16
|
+
};
|
|
17
|
+
readonly usage?: {
|
|
18
|
+
readonly input_tokens?: number;
|
|
19
|
+
readonly cache_creation_input_tokens?: number;
|
|
20
|
+
readonly cache_read_input_tokens?: number;
|
|
21
|
+
readonly output_tokens?: number;
|
|
22
|
+
readonly server_tool_use?: {
|
|
23
|
+
readonly web_search_requests?: number;
|
|
24
|
+
readonly web_fetch_requests?: number;
|
|
25
|
+
};
|
|
26
|
+
readonly service_tier?: string;
|
|
27
|
+
readonly cache_creation?: {
|
|
28
|
+
readonly ephemeral_1h_input_tokens?: number;
|
|
29
|
+
readonly ephemeral_5m_input_tokens?: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly total_cost_usd?: number;
|
|
33
|
+
readonly message?: {
|
|
34
|
+
readonly content?: ReadonlyArray<{
|
|
35
|
+
readonly type?: string;
|
|
36
|
+
readonly text?: string;
|
|
37
|
+
}>;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Parses all JSON lines from Claude Code output while ignoring shell prefixes and stack traces.
|
|
42
|
+
*/
|
|
43
|
+
export declare function parseClaudeCodeOutputEvents(output: string): readonly ClaudeCodeOutputEvent[];
|
|
44
|
+
/**
|
|
45
|
+
* Finds the final Claude Code result event in a stream-json output blob.
|
|
46
|
+
*/
|
|
47
|
+
export declare function findClaudeCodeResultEvent(output: string): ClaudeCodeOutputEvent | undefined;
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import moment from 'moment';
|
|
4
4
|
import { type CoderRunProgressSnapshot } from '../common/buildCoderRunProgressSnapshot';
|
|
5
|
-
import type { AgentRunMessagePreviewSection, AgentRunStatusTableRow } from './buildCoderRunUiFrame';
|
|
6
5
|
import type { PromptStats } from '../prompts/types/PromptStats';
|
|
6
|
+
import type { CoderRunAgentVisual } from './buildCoderRunAgentVisual';
|
|
7
|
+
import type { AgentRunMessagePreviewSection, AgentRunStatusTableRow } from './buildCoderRunUiFrame';
|
|
7
8
|
/**
|
|
8
9
|
* Execution phase of the coder run process.
|
|
9
10
|
*
|
|
@@ -23,6 +24,7 @@ export type CoderRunConfig = {
|
|
|
23
24
|
readonly context?: string;
|
|
24
25
|
readonly serverUrl?: string;
|
|
25
26
|
readonly priority: number;
|
|
27
|
+
readonly limit?: number;
|
|
26
28
|
readonly testCommand?: string;
|
|
27
29
|
};
|
|
28
30
|
/**
|
|
@@ -41,7 +43,7 @@ export type { CoderRunProgressSnapshot };
|
|
|
41
43
|
*/
|
|
42
44
|
export declare class CoderRunUiState extends EventEmitter {
|
|
43
45
|
config: CoderRunConfig;
|
|
44
|
-
|
|
46
|
+
agentVisual: CoderRunAgentVisual | undefined;
|
|
45
47
|
currentPromptLabel: string;
|
|
46
48
|
currentScriptPaths: string[];
|
|
47
49
|
currentAttempt: number;
|
|
@@ -74,9 +76,9 @@ export declare class CoderRunUiState extends EventEmitter {
|
|
|
74
76
|
*/
|
|
75
77
|
setConfig(config: CoderRunConfig): void;
|
|
76
78
|
/**
|
|
77
|
-
* Replaces the ASCII-art agent visual shown instead of the default brand banner.
|
|
79
|
+
* Replaces the ASCII-art agent visual renderer shown instead of the default brand banner.
|
|
78
80
|
*/
|
|
79
|
-
|
|
81
|
+
setAgentVisual(agentVisual: CoderRunAgentVisual | undefined): void;
|
|
80
82
|
/**
|
|
81
83
|
* Feeds new prompt statistics from the main loop so the progress bar updates.
|
|
82
84
|
*/
|
|
@@ -4,26 +4,51 @@ import type { string_book } from '../../../src/book-2.0/agent-source/string_book
|
|
|
4
4
|
*
|
|
5
5
|
* @private internal constant of coder run UI
|
|
6
6
|
*/
|
|
7
|
-
export declare const CODER_RUN_AGENT_VISUAL_COLUMNS =
|
|
7
|
+
export declare const CODER_RUN_AGENT_VISUAL_COLUMNS = 48;
|
|
8
8
|
/**
|
|
9
9
|
* Output height of the coder-run agent visual in terminal character cells.
|
|
10
10
|
*
|
|
11
|
-
* Half of the columns keeps the square avatar visually square in a common terminal font.
|
|
12
|
-
*
|
|
13
11
|
* @private internal constant of coder run UI
|
|
14
12
|
*/
|
|
15
13
|
export declare const CODER_RUN_AGENT_VISUAL_ROWS = 12;
|
|
14
|
+
/**
|
|
15
|
+
* Options passed by the terminal UI when rendering one animated agent visual frame.
|
|
16
|
+
*
|
|
17
|
+
* @private internal type of coder run UI
|
|
18
|
+
*/
|
|
19
|
+
export type CoderRunAgentVisualFrameOptions = {
|
|
20
|
+
/**
|
|
21
|
+
* Current animation time forwarded to the shared avatar renderer.
|
|
22
|
+
*/
|
|
23
|
+
readonly animationTimeMs: number;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Runtime renderer for the `--agent` avatar visual shown in the coder-run terminal UI.
|
|
27
|
+
*
|
|
28
|
+
* @private internal type of coder run UI
|
|
29
|
+
*/
|
|
30
|
+
export type CoderRunAgentVisual = {
|
|
31
|
+
/**
|
|
32
|
+
* Whether the selected built-in visual changes over time.
|
|
33
|
+
*/
|
|
34
|
+
readonly isAnimated: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Renders one ANSI ASCII-art frame for the current terminal timestamp.
|
|
37
|
+
*/
|
|
38
|
+
readonly renderFrame: (options: CoderRunAgentVisualFrameOptions) => ReadonlyArray<string>;
|
|
39
|
+
};
|
|
16
40
|
/**
|
|
17
41
|
* Builds the ANSI ASCII-art visual of the `--agent` book shown above the coder-run dashboard.
|
|
18
42
|
*
|
|
19
43
|
* The agent's avatar visual is resolved the same way as on the website - the `META AVATAR`
|
|
20
44
|
* commitment wins, then the `META VISUAL` commitment, then the shared default visual - and is
|
|
21
45
|
* rendered dynamically through the shared canvas avatar pipeline into terminal ASCII art.
|
|
46
|
+
* The terminal variant uses a transparent horizontal canvas instead of the website's framed 1:1 surface.
|
|
22
47
|
*
|
|
23
48
|
* The visual is decorative, so any failure (for example when the optional `@napi-rs/canvas`
|
|
24
49
|
* module is not installed) returns `null` and the caller keeps the default brand banner.
|
|
25
50
|
*
|
|
26
51
|
* @param agentSource Source of the `--agent` book file.
|
|
27
|
-
* @returns ANSI-colored ASCII-art
|
|
52
|
+
* @returns ANSI-colored ASCII-art renderer or `null` when the visual cannot be rendered.
|
|
28
53
|
*/
|
|
29
|
-
export declare function buildCoderRunAgentVisual(agentSource: string_book): Promise<
|
|
54
|
+
export declare function buildCoderRunAgentVisual(agentSource: string_book): Promise<CoderRunAgentVisual | null>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CoderRunPauseState } from '../common/waitForPause';
|
|
2
2
|
import type { CoderRunConfig, CoderRunPhase, CoderRunProgressSnapshot } from './CoderRunUiState';
|
|
3
|
+
import type { CoderRunAgentVisual } from './buildCoderRunAgentVisual';
|
|
3
4
|
/**
|
|
4
5
|
* Shared pause-state shape between the renderer and the frame builder.
|
|
5
6
|
*/
|
|
@@ -10,9 +11,14 @@ export type { CoderRunPauseState };
|
|
|
10
11
|
export type BuildCoderRunUiFrameOptions = {
|
|
11
12
|
readonly terminalWidth: number;
|
|
12
13
|
readonly animationFrame: number;
|
|
14
|
+
readonly animationTimeMs: number;
|
|
13
15
|
readonly spinner: string;
|
|
14
16
|
/**
|
|
15
|
-
* ANSI ASCII-art
|
|
17
|
+
* ANSI ASCII-art renderer of the `--agent` avatar visual shown instead of the default brand banner.
|
|
18
|
+
*/
|
|
19
|
+
readonly agentVisual?: CoderRunAgentVisual;
|
|
20
|
+
/**
|
|
21
|
+
* Optional static ANSI ASCII-art lines of the `--agent` avatar visual.
|
|
16
22
|
*/
|
|
17
23
|
readonly agentVisualLines?: readonly string[];
|
|
18
24
|
readonly pauseState: CoderRunPauseState;
|
|
@@ -11,7 +11,7 @@ export declare const ACTIVE_CODER_RUN_UI_REFRESH_INTERVAL_MS = 300;
|
|
|
11
11
|
*
|
|
12
12
|
* @private internal utility of coder run UI
|
|
13
13
|
*/
|
|
14
|
-
export declare function isCoderRunUiAutoRefreshing(phase: CoderRunPhase, pauseState: CoderRunPauseState): boolean;
|
|
14
|
+
export declare function isCoderRunUiAutoRefreshing(phase: CoderRunPhase, pauseState: CoderRunPauseState, isAgentVisualAnimated?: boolean): boolean;
|
|
15
15
|
/**
|
|
16
16
|
* Returns the automatic refresh interval for the current UI state.
|
|
17
17
|
*
|
|
@@ -20,4 +20,4 @@ export declare function isCoderRunUiAutoRefreshing(phase: CoderRunPhase, pauseSt
|
|
|
20
20
|
*
|
|
21
21
|
* @private internal utility of coder run UI
|
|
22
22
|
*/
|
|
23
|
-
export declare function getCoderRunUiAutoRefreshInterval(phase: CoderRunPhase, pauseState: CoderRunPauseState): number | undefined;
|
|
23
|
+
export declare function getCoderRunUiAutoRefreshInterval(phase: CoderRunPhase, pauseState: CoderRunPauseState, isAgentVisualAnimated?: boolean): number | undefined;
|
|
@@ -20,8 +20,8 @@ import type { AvatarProfileFromSourceProps } from '../book-components/AvatarProf
|
|
|
20
20
|
import type { BookEditorUploadProgressCallback } from '../book-components/BookEditor/BookEditor';
|
|
21
21
|
import type { BookEditorUploadOptions } from '../book-components/BookEditor/BookEditor';
|
|
22
22
|
import type { BookEditorProps } from '../book-components/BookEditor/BookEditor';
|
|
23
|
-
import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads';
|
|
24
|
-
import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads';
|
|
23
|
+
import type { UploadItem } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
|
|
24
|
+
import type { UploadStats } from '../book-components/BookEditor/useBookEditorMonacoUploads/bookEditorMonacoUploadTypes';
|
|
25
25
|
import type { AgentChatProps } from '../book-components/Chat/AgentChat/AgentChatProps';
|
|
26
26
|
import type { AgentChipData } from '../book-components/Chat/AgentChip/AgentChip';
|
|
27
27
|
import type { AgentChipProps } from '../book-components/Chat/AgentChip/AgentChip';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { AsciiArtColorDepth } from '../utils/ascii-art/convertImageDataToAsciiArt';
|
|
2
|
+
import type { ResolvedAvatarRenderDefinition } from './renderAvatarVisual';
|
|
2
3
|
import type { AvatarDefinition } from './types/AvatarDefinition';
|
|
3
|
-
import type { AvatarVisualId } from './types/AvatarVisualDefinition';
|
|
4
|
+
import type { AvatarSurfaceStyle, AvatarVisualId } from './types/AvatarVisualDefinition';
|
|
4
5
|
/**
|
|
5
6
|
* Default output width of the ASCII avatar in terminal character cells.
|
|
6
7
|
*
|
|
@@ -30,6 +31,12 @@ export type RenderAvatarVisualAsciiArtOptions = {
|
|
|
30
31
|
* Built-in avatar visual to render, the same one used on the website.
|
|
31
32
|
*/
|
|
32
33
|
readonly visualId: AvatarVisualId;
|
|
34
|
+
/**
|
|
35
|
+
* Surface used to composite the avatar before ASCII conversion.
|
|
36
|
+
*
|
|
37
|
+
* @default 'framed'
|
|
38
|
+
*/
|
|
39
|
+
readonly surface?: AvatarSurfaceStyle;
|
|
33
40
|
/**
|
|
34
41
|
* Output width in terminal character cells.
|
|
35
42
|
*
|
|
@@ -54,6 +61,22 @@ export type RenderAvatarVisualAsciiArtOptions = {
|
|
|
54
61
|
* @default `STATIC_AVATAR_ASCII_ART_FRAME_TIME_MS`
|
|
55
62
|
*/
|
|
56
63
|
readonly timeMs?: number;
|
|
64
|
+
/**
|
|
65
|
+
* Source canvas width in CSS pixels before ASCII conversion.
|
|
66
|
+
*
|
|
67
|
+
* @default `DEFAULT_AVATAR_SIZE`
|
|
68
|
+
*/
|
|
69
|
+
readonly canvasWidth?: number;
|
|
70
|
+
/**
|
|
71
|
+
* Source canvas height in CSS pixels before ASCII conversion.
|
|
72
|
+
*
|
|
73
|
+
* @default `DEFAULT_AVATAR_SIZE`
|
|
74
|
+
*/
|
|
75
|
+
readonly canvasHeight?: number;
|
|
76
|
+
/**
|
|
77
|
+
* Optional stable render data reused across frames.
|
|
78
|
+
*/
|
|
79
|
+
readonly resolvedAvatarRenderDefinition?: ResolvedAvatarRenderDefinition;
|
|
57
80
|
/**
|
|
58
81
|
* Platform-specific canvas factory used to rasterize the visual.
|
|
59
82
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AvatarPalette } from '../types/AvatarVisualDefinition';
|
|
2
|
-
import {
|
|
2
|
+
import type { Point3D, ProjectedPoint } from './avatar3dProjectionShared';
|
|
3
3
|
/**
|
|
4
4
|
* Eye-style knobs shared by the proper-3D octopus visuals.
|
|
5
5
|
*
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
import type { Promisable } from 'type-fest';
|
|
3
|
+
/**
|
|
4
|
+
* Type describing upload status.
|
|
5
|
+
*
|
|
6
|
+
* @private function of BookEditorMonaco
|
|
7
|
+
*/
|
|
8
|
+
type UploadStatus = 'queued' | 'uploading' | 'paused' | 'completed' | 'failed';
|
|
9
|
+
/**
|
|
10
|
+
* Type describing upload item.
|
|
11
|
+
*/
|
|
12
|
+
export type UploadItem = {
|
|
13
|
+
readonly id: string;
|
|
14
|
+
readonly fileName: string;
|
|
15
|
+
readonly fileSize: number;
|
|
16
|
+
readonly status: UploadStatus;
|
|
17
|
+
readonly progress: number;
|
|
18
|
+
readonly loadedBytes: number;
|
|
19
|
+
readonly totalBytes: number;
|
|
20
|
+
readonly startedAt: number | null;
|
|
21
|
+
readonly completedAt: number | null;
|
|
22
|
+
readonly errorMessage?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Type describing upload progress update.
|
|
26
|
+
*
|
|
27
|
+
* @private function of BookEditorMonaco
|
|
28
|
+
*/
|
|
29
|
+
export type UploadProgressUpdate = {
|
|
30
|
+
readonly progress: number;
|
|
31
|
+
readonly loadedBytes: number;
|
|
32
|
+
readonly totalBytes: number;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Type describing placeholder entry inserted into Monaco while the file uploads.
|
|
36
|
+
*
|
|
37
|
+
* @private function of BookEditorMonaco
|
|
38
|
+
*/
|
|
39
|
+
export type UploadPlaceholderEntry = {
|
|
40
|
+
readonly id: string;
|
|
41
|
+
readonly file: File;
|
|
42
|
+
readonly placeholder: string;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Type describing upload stats.
|
|
46
|
+
*/
|
|
47
|
+
export type UploadStats = {
|
|
48
|
+
readonly totalFiles: number;
|
|
49
|
+
readonly queuedFiles: number;
|
|
50
|
+
readonly uploadingFiles: number;
|
|
51
|
+
readonly pausedFiles: number;
|
|
52
|
+
readonly failedFiles: number;
|
|
53
|
+
readonly completedFiles: number;
|
|
54
|
+
readonly totalBytes: number;
|
|
55
|
+
readonly uploadedBytes: number;
|
|
56
|
+
readonly progress: number;
|
|
57
|
+
readonly elapsedMs: number;
|
|
58
|
+
readonly speedBytesPerSecond: number;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Type describing book editor monaco upload progress callback.
|
|
62
|
+
*
|
|
63
|
+
* @private function of BookEditorMonaco
|
|
64
|
+
*/
|
|
65
|
+
export type BookEditorMonacoUploadProgressCallback = (progress: number, stats?: {
|
|
66
|
+
loadedBytes: number;
|
|
67
|
+
totalBytes: number;
|
|
68
|
+
}) => void;
|
|
69
|
+
/**
|
|
70
|
+
* Options for book editor monaco upload.
|
|
71
|
+
*
|
|
72
|
+
* @private function of BookEditorMonaco
|
|
73
|
+
*/
|
|
74
|
+
export type BookEditorMonacoUploadOptions = {
|
|
75
|
+
readonly onProgress?: BookEditorMonacoUploadProgressCallback;
|
|
76
|
+
readonly abortSignal?: AbortSignal;
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* Type describing book editor monaco on file upload.
|
|
80
|
+
*
|
|
81
|
+
* @private function of BookEditorMonaco
|
|
82
|
+
*/
|
|
83
|
+
export type BookEditorMonacoOnFileUpload = (file: File, options?: BookEditorMonacoUploadOptions | BookEditorMonacoUploadProgressCallback) => Promisable<string>;
|
|
84
|
+
/**
|
|
85
|
+
* Setter-like updater used by upload state helpers.
|
|
86
|
+
*
|
|
87
|
+
* @private function of BookEditorMonaco
|
|
88
|
+
*/
|
|
89
|
+
export type SetUploadItems = (updater: (items: UploadItem[]) => UploadItem[]) => void;
|
|
90
|
+
/**
|
|
91
|
+
* Single-upload updater used by upload state helpers.
|
|
92
|
+
*
|
|
93
|
+
* @private function of BookEditorMonaco
|
|
94
|
+
*/
|
|
95
|
+
export type UpdateUploadItem = (uploadId: string, createNextUploadItem: (uploadItem: UploadItem) => UploadItem) => void;
|
|
96
|
+
/**
|
|
97
|
+
* Mutable upload items reference shared across upload helpers.
|
|
98
|
+
*
|
|
99
|
+
* @private function of BookEditorMonaco
|
|
100
|
+
*/
|
|
101
|
+
export type UploadItemsRef = MutableRefObject<UploadItem[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Mutable upload file registry reference shared across upload helpers.
|
|
104
|
+
*
|
|
105
|
+
* @private function of BookEditorMonaco
|
|
106
|
+
*/
|
|
107
|
+
export type UploadFilesRef = MutableRefObject<Map<string, File>>;
|
|
108
|
+
/**
|
|
109
|
+
* Mutable Monaco decoration registry reference shared across upload helpers.
|
|
110
|
+
*
|
|
111
|
+
* @private function of BookEditorMonaco
|
|
112
|
+
*/
|
|
113
|
+
export type UploadDecorationIdsRef = MutableRefObject<Map<string, string>>;
|
|
114
|
+
/**
|
|
115
|
+
* Type describing the callback used to enqueue debounced progress updates.
|
|
116
|
+
*
|
|
117
|
+
* @private function of BookEditorMonaco
|
|
118
|
+
*/
|
|
119
|
+
export type QueueProgressUpdate = (uploadId: string, progress: number, loadedBytes: number, totalBytes: number) => void;
|
|
120
|
+
export {};
|