@1mcp/agent 0.35.0-beta.2 → 0.35.0-beta.4
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 +5 -2
- package/build/admin/assets/admin-AboutRuntimeWorkspace-CM2ZafTJ.js +1 -0
- package/build/admin/assets/admin-BackendLogsWorkspace-CvJs1npx.js +1 -0
- package/build/admin/assets/admin-OAuthServicesWorkspace-BswG57Gm.js +1 -0
- package/build/admin/assets/admin-PresetAuthoringWorkspace-BIIRs_EN.js +1 -0
- package/build/admin/assets/admin-console-Brz9bnhv.css +1 -0
- package/build/admin/assets/{admin-console-C5_zD_qW.css → admin-console-DmRyrCWD.css} +1 -1
- package/build/admin/assets/admin-console-MT8QZmIC.js +3 -0
- package/build/admin/assets/admin-icons-D-JtMXSq.js +1 -0
- package/build/admin/assets/admin-mantine-DSFdoMaN.js +53 -0
- package/build/admin/assets/admin-react-BSaWeqgv.js +8 -0
- package/build/admin/assets/admin-rolldown-runtime-Bh1tDfsg.js +1 -0
- package/build/admin/favicon.svg +4 -0
- package/build/admin/index.html +8 -2
- package/build/auth/oauthAuthorizationFlow.d.ts +2 -2
- package/build/auth/oauthAuthorizationFlow.d.ts.map +1 -1
- package/build/auth/oauthAuthorizationFlow.js +1 -1
- package/build/auth/oauthAuthorizationFlow.js.map +1 -1
- package/build/auth/sdkOAuthServerProvider.d.ts +4 -3
- package/build/auth/sdkOAuthServerProvider.d.ts.map +1 -1
- package/build/auth/sdkOAuthServerProvider.js +132 -17
- package/build/auth/sdkOAuthServerProvider.js.map +1 -1
- package/build/auth/sessionTypes.d.ts +42 -5
- package/build/auth/sessionTypes.d.ts.map +1 -1
- package/build/auth/sessionTypes.js +33 -1
- package/build/auth/sessionTypes.js.map +1 -1
- package/build/auth/storage/fileStorageService.d.ts +18 -1
- package/build/auth/storage/fileStorageService.d.ts.map +1 -1
- package/build/auth/storage/fileStorageService.js +253 -3
- package/build/auth/storage/fileStorageService.js.map +1 -1
- package/build/auth/storage/oauthStorageService.d.ts +4 -1
- package/build/auth/storage/oauthStorageService.d.ts.map +1 -1
- package/build/auth/storage/oauthStorageService.js +8 -1
- package/build/auth/storage/oauthStorageService.js.map +1 -1
- package/build/auth/storage/refreshTokenFamilyRepository.d.ts +36 -0
- package/build/auth/storage/refreshTokenFamilyRepository.d.ts.map +1 -0
- package/build/auth/storage/refreshTokenFamilyRepository.js +167 -0
- package/build/auth/storage/refreshTokenFamilyRepository.js.map +1 -0
- package/build/auth/storage/sessionRepository.d.ts +14 -1
- package/build/auth/storage/sessionRepository.d.ts.map +1 -1
- package/build/auth/storage/sessionRepository.js +32 -9
- package/build/auth/storage/sessionRepository.js.map +1 -1
- package/build/commands/inspect/inspect.d.ts +1 -0
- package/build/commands/inspect/inspect.d.ts.map +1 -1
- package/build/commands/inspect/inspect.js +6 -10
- package/build/commands/inspect/inspect.js.map +1 -1
- package/build/commands/inspect/inspectUtils.d.ts +4 -0
- package/build/commands/inspect/inspectUtils.d.ts.map +1 -1
- package/build/commands/inspect/inspectUtils.js +12 -0
- package/build/commands/inspect/inspectUtils.js.map +1 -1
- package/build/commands/instructions/instructionsUtils.d.ts +2 -0
- package/build/commands/instructions/instructionsUtils.d.ts.map +1 -1
- package/build/commands/instructions/instructionsUtils.js +7 -3
- package/build/commands/instructions/instructionsUtils.js.map +1 -1
- package/build/commands/proxy/proxy.d.ts.map +1 -1
- package/build/commands/proxy/proxy.js +2 -0
- package/build/commands/proxy/proxy.js.map +1 -1
- package/build/commands/run/run.d.ts +1 -0
- package/build/commands/run/run.d.ts.map +1 -1
- package/build/commands/run/run.js +90 -8
- package/build/commands/run/run.js.map +1 -1
- package/build/commands/serve/asyncLoadingOptions.d.ts +30 -0
- package/build/commands/serve/asyncLoadingOptions.d.ts.map +1 -0
- package/build/commands/serve/asyncLoadingOptions.js +34 -0
- package/build/commands/serve/asyncLoadingOptions.js.map +1 -0
- package/build/commands/serve/index.d.ts +14 -1
- package/build/commands/serve/index.d.ts.map +1 -1
- package/build/commands/serve/index.js +24 -15
- package/build/commands/serve/index.js.map +1 -1
- package/build/commands/serve/serve.d.ts +5 -1
- package/build/commands/serve/serve.d.ts.map +1 -1
- package/build/commands/serve/serve.js +37 -8
- package/build/commands/serve/serve.js.map +1 -1
- package/build/commands/serve/serveBackground.d.ts.map +1 -1
- package/build/commands/serve/serveBackground.js +3 -0
- package/build/commands/serve/serveBackground.js.map +1 -1
- package/build/commands/serve/templateContextTrust.d.ts +12 -0
- package/build/commands/serve/templateContextTrust.d.ts.map +1 -0
- package/build/commands/serve/templateContextTrust.js +23 -0
- package/build/commands/serve/templateContextTrust.js.map +1 -0
- package/build/commands/shared/apiClient.d.ts +4 -1
- package/build/commands/shared/apiClient.d.ts.map +1 -1
- package/build/commands/shared/apiClient.js +8 -2
- package/build/commands/shared/apiClient.js.map +1 -1
- package/build/commands/shared/clientSurfaceAttachment.d.ts +14 -1
- package/build/commands/shared/clientSurfaceAttachment.d.ts.map +1 -1
- package/build/commands/shared/clientSurfaceAttachment.js +78 -10
- package/build/commands/shared/clientSurfaceAttachment.js.map +1 -1
- package/build/commands/shared/commandRunner.d.ts +1 -0
- package/build/commands/shared/commandRunner.d.ts.map +1 -1
- package/build/commands/shared/commandRunner.js +10 -2
- package/build/commands/shared/commandRunner.js.map +1 -1
- package/build/commands/shared/filterSelectionQuery.d.ts +8 -0
- package/build/commands/shared/filterSelectionQuery.d.ts.map +1 -0
- package/build/commands/shared/filterSelectionQuery.js +12 -0
- package/build/commands/shared/filterSelectionQuery.js.map +1 -0
- package/build/commands/shared/inspectApiSchemas.d.ts +83 -0
- package/build/commands/shared/inspectApiSchemas.d.ts.map +1 -0
- package/build/commands/shared/inspectApiSchemas.js +40 -0
- package/build/commands/shared/inspectApiSchemas.js.map +1 -0
- package/build/commands/shared/serveClient.d.ts +2 -1
- package/build/commands/shared/serveClient.d.ts.map +1 -1
- package/build/commands/shared/serveClient.js +3 -1
- package/build/commands/shared/serveClient.js.map +1 -1
- package/build/commands/shared/serveTargetResolver.d.ts +4 -0
- package/build/commands/shared/serveTargetResolver.d.ts.map +1 -1
- package/build/commands/shared/serveTargetResolver.js +25 -9
- package/build/commands/shared/serveTargetResolver.js.map +1 -1
- package/build/commands/wait/index.d.ts +3 -0
- package/build/commands/wait/index.d.ts.map +1 -0
- package/build/commands/wait/index.js +20 -0
- package/build/commands/wait/index.js.map +1 -0
- package/build/commands/wait/wait.d.ts +39 -0
- package/build/commands/wait/wait.d.ts.map +1 -0
- package/build/commands/wait/wait.js +162 -0
- package/build/commands/wait/wait.js.map +1 -0
- package/build/config/configLoader.d.ts.map +1 -1
- package/build/config/configLoader.js +12 -0
- package/build/config/configLoader.js.map +1 -1
- package/build/constants/auth.d.ts +10 -1
- package/build/constants/auth.d.ts.map +1 -1
- package/build/constants/auth.js +11 -1
- package/build/constants/auth.js.map +1 -1
- package/build/constants/mcp.d.ts +7 -1
- package/build/constants/mcp.d.ts.map +1 -1
- package/build/constants/mcp.js +9 -1
- package/build/constants/mcp.js.map +1 -1
- package/build/core/capabilities/capabilityAggregator.d.ts.map +1 -1
- package/build/core/capabilities/capabilityAggregator.js +10 -9
- package/build/core/capabilities/capabilityAggregator.js.map +1 -1
- package/build/core/capabilities/capabilityCatalog.d.ts +28 -5
- package/build/core/capabilities/capabilityCatalog.d.ts.map +1 -1
- package/build/core/capabilities/capabilityCatalog.js +98 -23
- package/build/core/capabilities/capabilityCatalog.js.map +1 -1
- package/build/core/capabilities/capabilityPagination.d.ts +40 -0
- package/build/core/capabilities/capabilityPagination.d.ts.map +1 -0
- package/build/core/capabilities/capabilityPagination.js +285 -0
- package/build/core/capabilities/capabilityPagination.js.map +1 -0
- package/build/core/capabilities/capabilityVisibility.d.ts +13 -0
- package/build/core/capabilities/capabilityVisibility.d.ts.map +1 -0
- package/build/core/capabilities/capabilityVisibility.js +14 -0
- package/build/core/capabilities/capabilityVisibility.js.map +1 -0
- package/build/core/capabilities/internalCapabilitiesProvider.d.ts +2 -1
- package/build/core/capabilities/internalCapabilitiesProvider.d.ts.map +1 -1
- package/build/core/capabilities/internalCapabilitiesProvider.js +2 -2
- package/build/core/capabilities/internalCapabilitiesProvider.js.map +1 -1
- package/build/core/capabilities/lazyLoadingOrchestrator.d.ts +5 -23
- package/build/core/capabilities/lazyLoadingOrchestrator.d.ts.map +1 -1
- package/build/core/capabilities/lazyLoadingOrchestrator.js +25 -44
- package/build/core/capabilities/lazyLoadingOrchestrator.js.map +1 -1
- package/build/core/capabilities/metaToolProvider.d.ts +6 -21
- package/build/core/capabilities/metaToolProvider.d.ts.map +1 -1
- package/build/core/capabilities/metaToolProvider.js +18 -70
- package/build/core/capabilities/metaToolProvider.js.map +1 -1
- package/build/core/capabilities/toolRegistry.d.ts +5 -1
- package/build/core/capabilities/toolRegistry.d.ts.map +1 -1
- package/build/core/capabilities/toolRegistry.js +11 -3
- package/build/core/capabilities/toolRegistry.js.map +1 -1
- package/build/core/client/clientManager.d.ts +9 -0
- package/build/core/client/clientManager.d.ts.map +1 -1
- package/build/core/client/clientManager.js +87 -0
- package/build/core/client/clientManager.js.map +1 -1
- package/build/core/client/recreateHttpTransportOptions.d.ts +14 -0
- package/build/core/client/recreateHttpTransportOptions.d.ts.map +1 -0
- package/build/core/client/recreateHttpTransportOptions.js +2 -0
- package/build/core/client/recreateHttpTransportOptions.js.map +1 -0
- package/build/core/client/transportRecreator.d.ts +8 -1
- package/build/core/client/transportRecreator.d.ts.map +1 -1
- package/build/core/client/transportRecreator.js +11 -2
- package/build/core/client/transportRecreator.js.map +1 -1
- package/build/core/context/templateContextTrust.d.ts +66 -0
- package/build/core/context/templateContextTrust.d.ts.map +1 -0
- package/build/core/context/templateContextTrust.js +184 -0
- package/build/core/context/templateContextTrust.js.map +1 -0
- package/build/core/instructions/templateTypes.d.ts +2 -2
- package/build/core/instructions/templateTypes.d.ts.map +1 -1
- package/build/core/protocol/notificationHandlers.d.ts.map +1 -1
- package/build/core/protocol/notificationHandlers.js +26 -4
- package/build/core/protocol/notificationHandlers.js.map +1 -1
- package/build/core/protocol/promptRequestHandlers.d.ts.map +1 -1
- package/build/core/protocol/promptRequestHandlers.js +20 -11
- package/build/core/protocol/promptRequestHandlers.js.map +1 -1
- package/build/core/protocol/requestHandlerUtils.d.ts +7 -0
- package/build/core/protocol/requestHandlerUtils.d.ts.map +1 -1
- package/build/core/protocol/requestHandlerUtils.js +43 -7
- package/build/core/protocol/requestHandlerUtils.js.map +1 -1
- package/build/core/protocol/resourceRequestHandlers.d.ts.map +1 -1
- package/build/core/protocol/resourceRequestHandlers.js +38 -18
- package/build/core/protocol/resourceRequestHandlers.js.map +1 -1
- package/build/core/protocol/toolRequestHandlers.d.ts.map +1 -1
- package/build/core/protocol/toolRequestHandlers.js +73 -30
- package/build/core/protocol/toolRequestHandlers.js.map +1 -1
- package/build/core/runtime/runtimeIdentityService.d.ts +1 -0
- package/build/core/runtime/runtimeIdentityService.d.ts.map +1 -1
- package/build/core/runtime/runtimeIdentityService.js +4 -1
- package/build/core/runtime/runtimeIdentityService.js.map +1 -1
- package/build/core/server/agentConfig.d.ts +4 -0
- package/build/core/server/agentConfig.d.ts.map +1 -1
- package/build/core/server/agentConfig.js +3 -0
- package/build/core/server/agentConfig.js.map +1 -1
- package/build/core/server/clientInstanceFactory.d.ts.map +1 -1
- package/build/core/server/clientInstanceFactory.js +12 -3
- package/build/core/server/clientInstanceFactory.js.map +1 -1
- package/build/core/server/connectionManager.d.ts +0 -6
- package/build/core/server/connectionManager.d.ts.map +1 -1
- package/build/core/server/connectionManager.js +2 -39
- package/build/core/server/connectionManager.js.map +1 -1
- package/build/core/server/connectionResolver.d.ts.map +1 -1
- package/build/core/server/connectionResolver.js +35 -1
- package/build/core/server/connectionResolver.js.map +1 -1
- package/build/core/server/requestContextPreparation.d.ts +2 -1
- package/build/core/server/requestContextPreparation.d.ts.map +1 -1
- package/build/core/server/requestContextPreparation.js.map +1 -1
- package/build/core/server/runtimeScopeOwnership.js +1 -1
- package/build/core/server/runtimeScopeOwnership.js.map +1 -1
- package/build/core/server/templateServerManager.d.ts.map +1 -1
- package/build/core/server/templateServerManager.js +2 -0
- package/build/core/server/templateServerManager.js.map +1 -1
- package/build/core/tools/internal/schemas/discovery.d.ts +1 -1
- package/build/core/tools/internal/schemas/index.d.ts +7 -7
- package/build/core/tools/internal/schemas/installation.d.ts +3 -3
- package/build/core/tools/internal/schemas/management.d.ts +3 -3
- package/build/core/types/server.d.ts +2 -0
- package/build/core/types/server.d.ts.map +1 -1
- package/build/core/types/server.js.map +1 -1
- package/build/core/types/transport.d.ts +12 -0
- package/build/core/types/transport.d.ts.map +1 -1
- package/build/core/types/transport.js +23 -5
- package/build/core/types/transport.js.map +1 -1
- package/build/domains/admin/adminConfiguredServerService.d.ts +80 -0
- package/build/domains/admin/adminConfiguredServerService.d.ts.map +1 -1
- package/build/domains/admin/adminConfiguredServerService.js +507 -1
- package/build/domains/admin/adminConfiguredServerService.js.map +1 -1
- package/build/domains/backend-logs/backendLogBroker.d.ts +47 -0
- package/build/domains/backend-logs/backendLogBroker.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogBroker.js +249 -0
- package/build/domains/backend-logs/backendLogBroker.js.map +1 -0
- package/build/domains/backend-logs/backendLogProjection.d.ts +9 -0
- package/build/domains/backend-logs/backendLogProjection.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogProjection.js +40 -0
- package/build/domains/backend-logs/backendLogProjection.js.map +1 -0
- package/build/domains/backend-logs/backendLogRuntime.d.ts +4 -0
- package/build/domains/backend-logs/backendLogRuntime.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogRuntime.js +11 -0
- package/build/domains/backend-logs/backendLogRuntime.js.map +1 -0
- package/build/domains/backend-logs/backendLogSanitizer.d.ts +2 -0
- package/build/domains/backend-logs/backendLogSanitizer.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogSanitizer.js +30 -0
- package/build/domains/backend-logs/backendLogSanitizer.js.map +1 -0
- package/build/domains/backend-logs/backendLogSource.d.ts +8 -0
- package/build/domains/backend-logs/backendLogSource.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogSource.js +22 -0
- package/build/domains/backend-logs/backendLogSource.js.map +1 -0
- package/build/domains/backend-logs/backendLogTypes.d.ts +49 -0
- package/build/domains/backend-logs/backendLogTypes.d.ts.map +1 -0
- package/build/domains/backend-logs/backendLogTypes.js +2 -0
- package/build/domains/backend-logs/backendLogTypes.js.map +1 -0
- package/build/domains/config-change/configChange.d.ts +2 -1
- package/build/domains/config-change/configChange.d.ts.map +1 -1
- package/build/domains/config-change/configChange.js +88 -0
- package/build/domains/config-change/configChange.js.map +1 -1
- package/build/domains/config-change/types.d.ts +5 -1
- package/build/domains/config-change/types.d.ts.map +1 -1
- package/build/domains/installation/serverInstallationSourceResolution.js +2 -0
- package/build/domains/installation/serverInstallationSourceResolution.js.map +1 -1
- package/build/domains/installation/serverInstallationTypes.d.ts +8 -0
- package/build/domains/installation/serverInstallationTypes.d.ts.map +1 -1
- package/build/domains/installation/serverInstallationWorkflow.js +16 -3
- package/build/domains/installation/serverInstallationWorkflow.js.map +1 -1
- package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts +8 -1
- package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts.map +1 -1
- package/build/domains/runtime-targets/runtimeIdentityVerification.js +62 -3
- package/build/domains/runtime-targets/runtimeIdentityVerification.js.map +1 -1
- package/build/domains/runtime-targets/runtimeProbe.d.ts +34 -0
- package/build/domains/runtime-targets/runtimeProbe.d.ts.map +1 -0
- package/build/domains/runtime-targets/runtimeProbe.js +71 -0
- package/build/domains/runtime-targets/runtimeProbe.js.map +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -0
- package/build/index.js.map +1 -1
- package/build/transport/http/middlewares/httpRequestLogger.d.ts.map +1 -1
- package/build/transport/http/middlewares/httpRequestLogger.js +3 -2
- package/build/transport/http/middlewares/httpRequestLogger.js.map +1 -1
- package/build/transport/http/routes/adminRoutes.d.ts +2 -0
- package/build/transport/http/routes/adminRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/adminRoutes.js +288 -31
- package/build/transport/http/routes/adminRoutes.js.map +1 -1
- package/build/transport/http/routes/inspectHelpers.d.ts +11 -4
- package/build/transport/http/routes/inspectHelpers.d.ts.map +1 -1
- package/build/transport/http/routes/inspectHelpers.js +21 -2
- package/build/transport/http/routes/inspectHelpers.js.map +1 -1
- package/build/transport/http/routes/inspectRequestContext.d.ts.map +1 -1
- package/build/transport/http/routes/inspectRequestContext.js +13 -4
- package/build/transport/http/routes/inspectRequestContext.js.map +1 -1
- package/build/transport/http/routes/inspectRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/inspectRoutes.js +55 -4
- package/build/transport/http/routes/inspectRoutes.js.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/streamableHttpRoutes.js +13 -4
- package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
- package/build/transport/http/routes/toolRoutes.d.ts.map +1 -1
- package/build/transport/http/routes/toolRoutes.js +37 -29
- package/build/transport/http/routes/toolRoutes.js.map +1 -1
- package/build/transport/http/server.d.ts.map +1 -1
- package/build/transport/http/server.js +3 -1
- package/build/transport/http/server.js.map +1 -1
- package/build/transport/http/storage/streamableSessionRepository.d.ts.map +1 -1
- package/build/transport/http/storage/streamableSessionRepository.js +2 -0
- package/build/transport/http/storage/streamableSessionRepository.js.map +1 -1
- package/build/transport/http/streamableSessionLifecycle.d.ts +3 -1
- package/build/transport/http/streamableSessionLifecycle.d.ts.map +1 -1
- package/build/transport/http/streamableSessionLifecycle.js +23 -6
- package/build/transport/http/streamableSessionLifecycle.js.map +1 -1
- package/build/transport/http/utils/contextExtractor.d.ts +14 -16
- package/build/transport/http/utils/contextExtractor.d.ts.map +1 -1
- package/build/transport/http/utils/contextExtractor.js +124 -33
- package/build/transport/http/utils/contextExtractor.js.map +1 -1
- package/build/transport/http/utils/templateContextAuthority.d.ts +13 -0
- package/build/transport/http/utils/templateContextAuthority.d.ts.map +1 -0
- package/build/transport/http/utils/templateContextAuthority.js +121 -0
- package/build/transport/http/utils/templateContextAuthority.js.map +1 -0
- package/build/transport/managedStdioStderr.d.ts +17 -1
- package/build/transport/managedStdioStderr.d.ts.map +1 -1
- package/build/transport/managedStdioStderr.js +129 -5
- package/build/transport/managedStdioStderr.js.map +1 -1
- package/build/transport/managedStdioStderrOptions.d.ts +2 -0
- package/build/transport/managedStdioStderrOptions.d.ts.map +1 -1
- package/build/transport/restartableStdioTransport.js +1 -1
- package/build/transport/restartableStdioTransport.js.map +1 -1
- package/build/transport/stdioProxyTransport.d.ts +3 -0
- package/build/transport/stdioProxyTransport.d.ts.map +1 -1
- package/build/transport/stdioProxyTransport.js +7 -2
- package/build/transport/stdioProxyTransport.js.map +1 -1
- package/build/transport/transportFactory.d.ts +6 -2
- package/build/transport/transportFactory.d.ts.map +1 -1
- package/build/transport/transportFactory.js +43 -15
- package/build/transport/transportFactory.js.map +1 -1
- package/build/types/serverStatus.d.ts +3 -0
- package/build/types/serverStatus.d.ts.map +1 -0
- package/build/types/serverStatus.js +13 -0
- package/build/types/serverStatus.js.map +1 -0
- package/build/utils/validation/urlDetection.d.ts +12 -9
- package/build/utils/validation/urlDetection.d.ts.map +1 -1
- package/build/utils/validation/urlDetection.js +233 -31
- package/build/utils/validation/urlDetection.js.map +1 -1
- package/package.json +4 -3
- package/build/admin/assets/admin-console-CbHHoqLr.js +0 -61
- package/build/utils/ui/pagination.d.ts +0 -35
- package/build/utils/ui/pagination.d.ts.map +0 -1
- package/build/utils/ui/pagination.js +0 -166
- package/build/utils/ui/pagination.js.map +0 -1
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Client } from '@modelcontextprotocol/sdk/client/index.js';
|
|
2
|
-
import { RequestOptions } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
3
|
-
import { Prompt, Resource, ResourceTemplate, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
-
import { OutboundConnection, OutboundConnections } from '../../core/types/index.js';
|
|
5
|
-
interface PaginationParams {
|
|
6
|
-
[x: string]: unknown;
|
|
7
|
-
_meta?: {
|
|
8
|
-
[x: string]: unknown;
|
|
9
|
-
progressToken?: string | number | undefined;
|
|
10
|
-
} | undefined;
|
|
11
|
-
cursor?: string | undefined;
|
|
12
|
-
}
|
|
13
|
-
interface PaginationResult<T> {
|
|
14
|
-
items: T[];
|
|
15
|
-
nextCursor?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface PaginationResponse {
|
|
18
|
-
resources?: Resource[];
|
|
19
|
-
resourceTemplates?: ResourceTemplate[];
|
|
20
|
-
tools?: Tool[];
|
|
21
|
-
prompts?: Prompt[];
|
|
22
|
-
nextCursor?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Result of parsing a cursor into its components
|
|
26
|
-
*/
|
|
27
|
-
export interface CursorParts {
|
|
28
|
-
clientName: string;
|
|
29
|
-
actualCursor?: string;
|
|
30
|
-
}
|
|
31
|
-
export declare function parseCursor(cursor?: string): CursorParts;
|
|
32
|
-
export declare function encodeCursor(clientName: string, nextCursor?: string): string | undefined;
|
|
33
|
-
export declare function handlePagination<T>(clients: OutboundConnections, params: PaginationParams, callClientMethod: (client: Client, params: unknown, opts: RequestOptions) => Promise<PaginationResponse>, transformResult: (client: OutboundConnection, result: PaginationResponse) => T[], enablePagination: boolean): Promise<PaginationResult<T>>;
|
|
34
|
-
export {};
|
|
35
|
-
//# sourceMappingURL=pagination.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../../src/utils/ui/pagination.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,8CAA8C,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,gBAAgB,EAAE,IAAI,EAAE,M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C,MAAM,EAAE,kBAAkB,EAAE,MAAM,EAAE,kBAAkB,KAAK,CAAC,EAAE,EAChF,gBAAgB,EAAE,OAAO,GACxB,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAiF9B"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { ClientStatus } from '../../core/types/index.js';
|
|
2
|
-
import logger from '../../logger/logger.js';
|
|
3
|
-
import { getRequestTimeout } from '../../utils/core/timeoutUtils.js';
|
|
4
|
-
export function parseCursor(cursor) {
|
|
5
|
-
if (!cursor || typeof cursor !== 'string') {
|
|
6
|
-
return { clientName: '' };
|
|
7
|
-
}
|
|
8
|
-
// Validate base64 format
|
|
9
|
-
if (!/^[A-Za-z0-9+/]*={0,2}$/.test(cursor)) {
|
|
10
|
-
logger.warn(`Invalid cursor format: not valid base64`);
|
|
11
|
-
return { clientName: '' };
|
|
12
|
-
}
|
|
13
|
-
try {
|
|
14
|
-
// Decode the base64 cursor
|
|
15
|
-
const decoded = Buffer.from(cursor, 'base64').toString('utf-8');
|
|
16
|
-
// Validate decoded content (should be clientName:actualCursor format)
|
|
17
|
-
if (!decoded || decoded.length > 1000) {
|
|
18
|
-
// Reasonable length limit
|
|
19
|
-
logger.warn(`Invalid cursor: decoded content too long or empty`);
|
|
20
|
-
return { clientName: '' };
|
|
21
|
-
}
|
|
22
|
-
// Split on first colon only to handle cursors that might contain colons
|
|
23
|
-
const colonIndex = decoded.indexOf(':');
|
|
24
|
-
let clientName;
|
|
25
|
-
let actualCursor;
|
|
26
|
-
if (colonIndex === -1) {
|
|
27
|
-
// No colon found, treat entire string as client name
|
|
28
|
-
clientName = decoded;
|
|
29
|
-
actualCursor = undefined;
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
clientName = decoded.substring(0, colonIndex);
|
|
33
|
-
actualCursor = decoded.substring(colonIndex + 1);
|
|
34
|
-
}
|
|
35
|
-
// Validate client name (basic alphanumeric and common symbols)
|
|
36
|
-
if (!/^[a-zA-Z0-9_-]+$/.test(clientName) || clientName.length > 100) {
|
|
37
|
-
logger.warn(`Invalid cursor: invalid client name format`);
|
|
38
|
-
return { clientName: '' };
|
|
39
|
-
}
|
|
40
|
-
return { clientName, actualCursor: actualCursor || undefined };
|
|
41
|
-
}
|
|
42
|
-
catch (error) {
|
|
43
|
-
logger.warn(`Failed to parse cursor: ${error}`);
|
|
44
|
-
return { clientName: '' };
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
export function encodeCursor(clientName, nextCursor = '') {
|
|
48
|
-
// Validate inputs
|
|
49
|
-
if (!clientName || typeof clientName !== 'string') {
|
|
50
|
-
logger.warn('Cannot encode cursor: invalid client name');
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
if (typeof nextCursor !== 'string') {
|
|
54
|
-
logger.warn('Cannot encode cursor: invalid next cursor');
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
// Validate client name format
|
|
58
|
-
if (!/^[a-zA-Z0-9_-]+$/.test(clientName) || clientName.length > 100) {
|
|
59
|
-
logger.warn('Cannot encode cursor: client name contains invalid characters or is too long');
|
|
60
|
-
return undefined;
|
|
61
|
-
}
|
|
62
|
-
// Reasonable length limit for the full cursor
|
|
63
|
-
const fullCursor = `${clientName}:${nextCursor}`;
|
|
64
|
-
if (fullCursor.length > 1000) {
|
|
65
|
-
logger.warn('Cannot encode cursor: combined cursor length exceeds limit');
|
|
66
|
-
return undefined;
|
|
67
|
-
}
|
|
68
|
-
try {
|
|
69
|
-
return Buffer.from(fullCursor).toString('base64');
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
logger.warn(`Failed to encode cursor: ${error}`);
|
|
73
|
-
return undefined;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
async function fetchAllItemsForClient(outboundConn, params, callClientMethod, transformResult) {
|
|
77
|
-
if (!outboundConn || outboundConn.status !== ClientStatus.Connected || !outboundConn.client.transport) {
|
|
78
|
-
logger.warn(`Client '${outboundConn?.name}' is not connected or transport not available, skipping`);
|
|
79
|
-
return [];
|
|
80
|
-
}
|
|
81
|
-
logger.info(`Fetching all items for client ${outboundConn.name}`);
|
|
82
|
-
try {
|
|
83
|
-
const items = [];
|
|
84
|
-
let result = await callClientMethod(outboundConn.client, params, {
|
|
85
|
-
timeout: getRequestTimeout(outboundConn.transport),
|
|
86
|
-
});
|
|
87
|
-
items.push(...transformResult(outboundConn, result));
|
|
88
|
-
while (result.nextCursor) {
|
|
89
|
-
logger.info(`Fetching next page for client ${outboundConn.name} with cursor ${result.nextCursor}`);
|
|
90
|
-
result = await callClientMethod(outboundConn.client, { ...params, cursor: result.nextCursor }, { timeout: getRequestTimeout(outboundConn.transport) });
|
|
91
|
-
items.push(...transformResult(outboundConn, result));
|
|
92
|
-
}
|
|
93
|
-
return items;
|
|
94
|
-
}
|
|
95
|
-
catch (error) {
|
|
96
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
97
|
-
logger.warn(`Failed to fetch items from client ${outboundConn.name}: ${errorMessage}`, {
|
|
98
|
-
clientName: outboundConn.name,
|
|
99
|
-
error: errorMessage,
|
|
100
|
-
params,
|
|
101
|
-
});
|
|
102
|
-
throw error; // Re-throw to be handled by Promise.allSettled
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
function getNextClientCursor(currentClientName, clientNames) {
|
|
106
|
-
const currentIndex = clientNames.indexOf(currentClientName);
|
|
107
|
-
const nextClientName = currentIndex === clientNames.length - 1 ? undefined : clientNames[currentIndex + 1];
|
|
108
|
-
return nextClientName ? encodeCursor(nextClientName, undefined) : undefined;
|
|
109
|
-
}
|
|
110
|
-
export async function handlePagination(clients, params, callClientMethod, transformResult, enablePagination) {
|
|
111
|
-
const { cursor, ...clientParams } = params;
|
|
112
|
-
const clientNames = Array.from(clients.keys());
|
|
113
|
-
if (!enablePagination) {
|
|
114
|
-
const results = await Promise.allSettled(clientNames.map((clientName) => fetchAllItemsForClient(clients.get(clientName), clientParams, callClientMethod, transformResult)));
|
|
115
|
-
const allItems = results
|
|
116
|
-
.filter((result) => result.status === 'fulfilled')
|
|
117
|
-
.flatMap((result) => result.value);
|
|
118
|
-
// Log any failures for debugging
|
|
119
|
-
const failures = results.filter((result) => result.status === 'rejected');
|
|
120
|
-
if (failures.length > 0) {
|
|
121
|
-
logger.warn(`Failed to fetch items from ${failures.length} clients during pagination`, {
|
|
122
|
-
totalClients: clientNames.length,
|
|
123
|
-
successfulClients: results.length - failures.length,
|
|
124
|
-
failedClients: failures.length,
|
|
125
|
-
errors: failures.map((failure) => ({
|
|
126
|
-
reason: failure.reason instanceof Error ? failure.reason.message : String(failure.reason),
|
|
127
|
-
})),
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
return { items: allItems };
|
|
131
|
-
}
|
|
132
|
-
const { clientName, actualCursor } = parseCursor(cursor);
|
|
133
|
-
// If cursor parsing failed or clientName is empty, start from first client
|
|
134
|
-
const targetClientName = clientName || clientNames[0];
|
|
135
|
-
// Validate that the target client exists
|
|
136
|
-
const outboundConn = clients.get(targetClientName);
|
|
137
|
-
if (!outboundConn) {
|
|
138
|
-
logger.warn(`Client '${targetClientName}' not found, falling back to first available client`);
|
|
139
|
-
// Fallback to first available client if the target doesn't exist
|
|
140
|
-
const fallbackClientName = clientNames[0];
|
|
141
|
-
const fallbackClient = fallbackClientName ? clients.get(fallbackClientName) : null;
|
|
142
|
-
if (!fallbackClient || fallbackClient.status !== ClientStatus.Connected || !fallbackClient.client.transport) {
|
|
143
|
-
logger.warn(`Client '${fallbackClientName}' is not connected or transport not available, skipping`);
|
|
144
|
-
return { items: [] };
|
|
145
|
-
}
|
|
146
|
-
// Use fallback client and reset cursor since the original target was invalid
|
|
147
|
-
const result = await callClientMethod(fallbackClient.client, clientParams, // Don't pass the invalid cursor
|
|
148
|
-
{ timeout: getRequestTimeout(fallbackClient.transport) });
|
|
149
|
-
const transformedItems = transformResult(fallbackClient, result);
|
|
150
|
-
const nextCursor = result.nextCursor
|
|
151
|
-
? encodeCursor(fallbackClientName, result.nextCursor)
|
|
152
|
-
: getNextClientCursor(fallbackClientName, clientNames);
|
|
153
|
-
return { items: transformedItems, nextCursor };
|
|
154
|
-
}
|
|
155
|
-
if (!outboundConn || outboundConn.status !== ClientStatus.Connected || !outboundConn.client.transport) {
|
|
156
|
-
logger.warn(`Client '${targetClientName}' is not connected or transport not available, skipping`);
|
|
157
|
-
return { items: [] };
|
|
158
|
-
}
|
|
159
|
-
const result = await callClientMethod(outboundConn.client, { ...clientParams, cursor: actualCursor }, { timeout: getRequestTimeout(outboundConn.transport) });
|
|
160
|
-
const transformedItems = transformResult(outboundConn, result);
|
|
161
|
-
const nextCursor = result.nextCursor
|
|
162
|
-
? encodeCursor(targetClientName, result.nextCursor)
|
|
163
|
-
: getNextClientCursor(targetClientName, clientNames);
|
|
164
|
-
return { items: transformedItems, nextCursor };
|
|
165
|
-
}
|
|
166
|
-
//# sourceMappingURL=pagination.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pagination.js","sourceRoot":"","sources":["../../../src/utils/ui/pagination.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAA2C,MAAM,0BAA0B,CAAC;AACjG,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAkCpE,MAAM,UAAU,WAAW,CAAC,MAAe;IACzC,IAAI,CAAC,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC1C,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;IAC5B,CAAC;IAED,yBAAyB;IACzB,IAAI,CAAC,wBAAwB,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3C,MAAM,CAAC,IAAI,CAAC,yCAAyC,CAAC,CAAC;QACvD,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI,CA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