@1mcp/agent 0.35.0-beta.3 → 0.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (321) hide show
  1. package/build/admin/assets/admin-AboutRuntimeWorkspace-DH2QC2nJ.js +1 -0
  2. package/build/admin/assets/admin-BackendLogsWorkspace-BKavXT9B.js +1 -0
  3. package/build/admin/assets/admin-InstructionTemplatesWorkspace-CvG4EPdZ.js +1 -0
  4. package/build/admin/assets/admin-OAuthServicesWorkspace-B8y2weAX.js +1 -0
  5. package/build/admin/assets/admin-PresetAuthoringWorkspace-BboJVBFl.js +1 -0
  6. package/build/admin/assets/admin-console-D6jyI73o.css +1 -0
  7. package/build/admin/assets/{admin-console-Bbil6BQU.css → admin-console-DmRyrCWD.css} +1 -1
  8. package/build/admin/assets/admin-console-HJH52xGP.js +3 -0
  9. package/build/admin/assets/admin-icons-CYGTDZA5.js +1 -0
  10. package/build/admin/assets/admin-mantine-xwbfu5Gd.js +53 -0
  11. package/build/admin/assets/admin-react-BSaWeqgv.js +8 -0
  12. package/build/admin/assets/admin-rolldown-runtime-Bh1tDfsg.js +1 -0
  13. package/build/admin/favicon.svg +4 -0
  14. package/build/admin/index.html +8 -2
  15. package/build/auth/sdkOAuthClientProvider.d.ts +4 -0
  16. package/build/auth/sdkOAuthClientProvider.d.ts.map +1 -1
  17. package/build/auth/sdkOAuthClientProvider.js +29 -0
  18. package/build/auth/sdkOAuthClientProvider.js.map +1 -1
  19. package/build/auth/sessionTypes.d.ts +2 -0
  20. package/build/auth/sessionTypes.d.ts.map +1 -1
  21. package/build/auth/sessionTypes.js.map +1 -1
  22. package/build/commands/inspect/inspect.d.ts +1 -0
  23. package/build/commands/inspect/inspect.d.ts.map +1 -1
  24. package/build/commands/inspect/inspect.js +4 -1
  25. package/build/commands/inspect/inspect.js.map +1 -1
  26. package/build/commands/instructions/instructions.d.ts.map +1 -1
  27. package/build/commands/instructions/instructions.js +56 -1
  28. package/build/commands/instructions/instructions.js.map +1 -1
  29. package/build/commands/mcp/add.js +2 -2
  30. package/build/commands/mcp/add.js.map +1 -1
  31. package/build/commands/mcp/list.js +1 -1
  32. package/build/commands/mcp/list.js.map +1 -1
  33. package/build/commands/mcp/update.js +1 -1
  34. package/build/commands/mcp/update.js.map +1 -1
  35. package/build/commands/proxy/proxy.d.ts.map +1 -1
  36. package/build/commands/proxy/proxy.js +2 -0
  37. package/build/commands/proxy/proxy.js.map +1 -1
  38. package/build/commands/run/run.d.ts +1 -0
  39. package/build/commands/run/run.d.ts.map +1 -1
  40. package/build/commands/run/run.js +4 -1
  41. package/build/commands/run/run.js.map +1 -1
  42. package/build/commands/serve/index.d.ts +10 -0
  43. package/build/commands/serve/index.d.ts.map +1 -1
  44. package/build/commands/serve/index.js +10 -0
  45. package/build/commands/serve/index.js.map +1 -1
  46. package/build/commands/serve/serve.d.ts +3 -0
  47. package/build/commands/serve/serve.d.ts.map +1 -1
  48. package/build/commands/serve/serve.js +20 -0
  49. package/build/commands/serve/serve.js.map +1 -1
  50. package/build/commands/serve/serveBackground.d.ts.map +1 -1
  51. package/build/commands/serve/serveBackground.js +2 -0
  52. package/build/commands/serve/serveBackground.js.map +1 -1
  53. package/build/commands/serve/templateContextTrust.d.ts +12 -0
  54. package/build/commands/serve/templateContextTrust.d.ts.map +1 -0
  55. package/build/commands/serve/templateContextTrust.js +23 -0
  56. package/build/commands/serve/templateContextTrust.js.map +1 -0
  57. package/build/commands/shared/apiClient.d.ts +3 -0
  58. package/build/commands/shared/apiClient.d.ts.map +1 -1
  59. package/build/commands/shared/apiClient.js +6 -0
  60. package/build/commands/shared/apiClient.js.map +1 -1
  61. package/build/commands/shared/clientSurfaceAttachment.d.ts +11 -0
  62. package/build/commands/shared/clientSurfaceAttachment.d.ts.map +1 -1
  63. package/build/commands/shared/clientSurfaceAttachment.js +64 -6
  64. package/build/commands/shared/clientSurfaceAttachment.js.map +1 -1
  65. package/build/commands/shared/inspectApiSchemas.d.ts +8 -8
  66. package/build/commands/shared/serveClient.d.ts +2 -1
  67. package/build/commands/shared/serveClient.d.ts.map +1 -1
  68. package/build/commands/shared/serveClient.js +3 -1
  69. package/build/commands/shared/serveClient.js.map +1 -1
  70. package/build/commands/shared/serveTargetResolver.d.ts +4 -0
  71. package/build/commands/shared/serveTargetResolver.d.ts.map +1 -1
  72. package/build/commands/shared/serveTargetResolver.js +22 -22
  73. package/build/commands/shared/serveTargetResolver.js.map +1 -1
  74. package/build/commands/wait/wait.d.ts.map +1 -1
  75. package/build/commands/wait/wait.js +1 -0
  76. package/build/commands/wait/wait.js.map +1 -1
  77. package/build/config/configManager.d.ts +11 -1
  78. package/build/config/configManager.d.ts.map +1 -1
  79. package/build/config/configManager.js +13 -0
  80. package/build/config/configManager.js.map +1 -1
  81. package/build/config/configuredServerTargets.d.ts +3 -0
  82. package/build/config/configuredServerTargets.d.ts.map +1 -0
  83. package/build/config/configuredServerTargets.js +8 -0
  84. package/build/config/configuredServerTargets.js.map +1 -0
  85. package/build/config/mcpConfigManager.d.ts +3 -0
  86. package/build/config/mcpConfigManager.d.ts.map +1 -1
  87. package/build/config/mcpConfigManager.js +15 -0
  88. package/build/config/mcpConfigManager.js.map +1 -1
  89. package/build/constants/api.d.ts +1 -0
  90. package/build/constants/api.d.ts.map +1 -1
  91. package/build/constants/api.js +1 -0
  92. package/build/constants/api.js.map +1 -1
  93. package/build/constants/mcp.d.ts +1 -1
  94. package/build/constants/mcp.d.ts.map +1 -1
  95. package/build/constants/mcp.js +1 -1
  96. package/build/constants/mcp.js.map +1 -1
  97. package/build/core/capabilities/capabilityAggregator.d.ts.map +1 -1
  98. package/build/core/capabilities/capabilityAggregator.js +33 -14
  99. package/build/core/capabilities/capabilityAggregator.js.map +1 -1
  100. package/build/core/capabilities/capabilityCatalog.d.ts +23 -1
  101. package/build/core/capabilities/capabilityCatalog.d.ts.map +1 -1
  102. package/build/core/capabilities/capabilityCatalog.js +81 -7
  103. package/build/core/capabilities/capabilityCatalog.js.map +1 -1
  104. package/build/core/capabilities/capabilityPagination.d.ts +40 -0
  105. package/build/core/capabilities/capabilityPagination.d.ts.map +1 -0
  106. package/build/core/capabilities/capabilityPagination.js +287 -0
  107. package/build/core/capabilities/capabilityPagination.js.map +1 -0
  108. package/build/core/capabilities/capabilityVisibility.d.ts +2 -1
  109. package/build/core/capabilities/capabilityVisibility.d.ts.map +1 -1
  110. package/build/core/capabilities/capabilityVisibility.js +2 -1
  111. package/build/core/capabilities/capabilityVisibility.js.map +1 -1
  112. package/build/core/capabilities/configuredToolSnapshot.d.ts +12 -0
  113. package/build/core/capabilities/configuredToolSnapshot.d.ts.map +1 -0
  114. package/build/core/capabilities/configuredToolSnapshot.js +98 -0
  115. package/build/core/capabilities/configuredToolSnapshot.js.map +1 -0
  116. package/build/core/capabilities/lazyLoadingOrchestrator.d.ts.map +1 -1
  117. package/build/core/capabilities/lazyLoadingOrchestrator.js +8 -4
  118. package/build/core/capabilities/lazyLoadingOrchestrator.js.map +1 -1
  119. package/build/core/capabilities/metaToolProvider.js +3 -3
  120. package/build/core/capabilities/metaToolProvider.js.map +1 -1
  121. package/build/core/client/clientManager.d.ts.map +1 -1
  122. package/build/core/client/clientManager.js +11 -6
  123. package/build/core/client/clientManager.js.map +1 -1
  124. package/build/core/client/postAuthOAuthRecovery.d.ts +6 -0
  125. package/build/core/client/postAuthOAuthRecovery.d.ts.map +1 -0
  126. package/build/core/client/postAuthOAuthRecovery.js +74 -0
  127. package/build/core/client/postAuthOAuthRecovery.js.map +1 -0
  128. package/build/core/configChangeHandler.d.ts +2 -0
  129. package/build/core/configChangeHandler.d.ts.map +1 -1
  130. package/build/core/configChangeHandler.js +38 -11
  131. package/build/core/configChangeHandler.js.map +1 -1
  132. package/build/core/context/templateContextTrust.d.ts +66 -0
  133. package/build/core/context/templateContextTrust.d.ts.map +1 -0
  134. package/build/core/context/templateContextTrust.js +184 -0
  135. package/build/core/context/templateContextTrust.js.map +1 -0
  136. package/build/core/instructions/effectiveServerInstructions.d.ts +17 -0
  137. package/build/core/instructions/effectiveServerInstructions.d.ts.map +1 -0
  138. package/build/core/instructions/effectiveServerInstructions.js +12 -0
  139. package/build/core/instructions/effectiveServerInstructions.js.map +1 -0
  140. package/build/core/instructions/instructionAggregator.d.ts +51 -2
  141. package/build/core/instructions/instructionAggregator.d.ts.map +1 -1
  142. package/build/core/instructions/instructionAggregator.js +191 -30
  143. package/build/core/instructions/instructionAggregator.js.map +1 -1
  144. package/build/core/instructions/instructionsDistribution.d.ts +53 -0
  145. package/build/core/instructions/instructionsDistribution.d.ts.map +1 -1
  146. package/build/core/instructions/instructionsDistribution.js +25 -0
  147. package/build/core/instructions/instructionsDistribution.js.map +1 -1
  148. package/build/core/instructions/templateTypes.d.ts +25 -3
  149. package/build/core/instructions/templateTypes.d.ts.map +1 -1
  150. package/build/core/instructions/templateTypes.js +45 -0
  151. package/build/core/instructions/templateTypes.js.map +1 -1
  152. package/build/core/protocol/notificationHandlers.d.ts.map +1 -1
  153. package/build/core/protocol/notificationHandlers.js +26 -4
  154. package/build/core/protocol/notificationHandlers.js.map +1 -1
  155. package/build/core/protocol/promptRequestHandlers.d.ts.map +1 -1
  156. package/build/core/protocol/promptRequestHandlers.js +20 -11
  157. package/build/core/protocol/promptRequestHandlers.js.map +1 -1
  158. package/build/core/protocol/requestHandlerUtils.d.ts +4 -0
  159. package/build/core/protocol/requestHandlerUtils.d.ts.map +1 -1
  160. package/build/core/protocol/requestHandlerUtils.js +24 -4
  161. package/build/core/protocol/requestHandlerUtils.js.map +1 -1
  162. package/build/core/protocol/resourceRequestHandlers.d.ts.map +1 -1
  163. package/build/core/protocol/resourceRequestHandlers.js +38 -18
  164. package/build/core/protocol/resourceRequestHandlers.js.map +1 -1
  165. package/build/core/protocol/toolRequestHandlers.d.ts.map +1 -1
  166. package/build/core/protocol/toolRequestHandlers.js +79 -23
  167. package/build/core/protocol/toolRequestHandlers.js.map +1 -1
  168. package/build/core/server/agentConfig.d.ts +4 -0
  169. package/build/core/server/agentConfig.d.ts.map +1 -1
  170. package/build/core/server/agentConfig.js +3 -0
  171. package/build/core/server/agentConfig.js.map +1 -1
  172. package/build/core/server/clientInstancePool.js +2 -2
  173. package/build/core/server/clientInstancePool.js.map +1 -1
  174. package/build/core/server/connectionManager.d.ts.map +1 -1
  175. package/build/core/server/connectionManager.js +2 -0
  176. package/build/core/server/connectionManager.js.map +1 -1
  177. package/build/core/server/disabledTools.d.ts +2 -0
  178. package/build/core/server/disabledTools.d.ts.map +1 -1
  179. package/build/core/server/disabledTools.js +7 -4
  180. package/build/core/server/disabledTools.js.map +1 -1
  181. package/build/core/server/requestContextPreparation.d.ts +2 -1
  182. package/build/core/server/requestContextPreparation.d.ts.map +1 -1
  183. package/build/core/server/requestContextPreparation.js.map +1 -1
  184. package/build/core/server/runtimeScopeOwnership.js +1 -1
  185. package/build/core/server/runtimeScopeOwnership.js.map +1 -1
  186. package/build/core/server/serverManager.d.ts.map +1 -1
  187. package/build/core/server/serverManager.js +1 -0
  188. package/build/core/server/serverManager.js.map +1 -1
  189. package/build/core/server/templateIdentity.d.ts +1 -0
  190. package/build/core/server/templateIdentity.d.ts.map +1 -1
  191. package/build/core/server/templateIdentity.js +11 -1
  192. package/build/core/server/templateIdentity.js.map +1 -1
  193. package/build/core/server/templateServerManager.d.ts +5 -1
  194. package/build/core/server/templateServerManager.d.ts.map +1 -1
  195. package/build/core/server/templateServerManager.js +27 -9
  196. package/build/core/server/templateServerManager.js.map +1 -1
  197. package/build/core/server/toolDescriptionOverrides.d.ts +9 -0
  198. package/build/core/server/toolDescriptionOverrides.d.ts.map +1 -0
  199. package/build/core/server/toolDescriptionOverrides.js +44 -0
  200. package/build/core/server/toolDescriptionOverrides.js.map +1 -0
  201. package/build/core/tools/handlers/serverManagementHandler.d.ts +15 -1
  202. package/build/core/tools/handlers/serverManagementHandler.d.ts.map +1 -1
  203. package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts +2 -0
  204. package/build/core/tools/internal/adapters/helpers/configTransformers.d.ts.map +1 -1
  205. package/build/core/tools/internal/schemas/discovery.d.ts +2 -2
  206. package/build/core/tools/internal/schemas/index.d.ts +9 -9
  207. package/build/core/tools/internal/schemas/installation.d.ts +3 -3
  208. package/build/core/tools/internal/schemas/management.d.ts +4 -4
  209. package/build/core/types/server.d.ts +2 -0
  210. package/build/core/types/server.d.ts.map +1 -1
  211. package/build/core/types/server.js.map +1 -1
  212. package/build/core/types/transport.d.ts +43 -0
  213. package/build/core/types/transport.d.ts.map +1 -1
  214. package/build/core/types/transport.js +60 -1
  215. package/build/core/types/transport.js.map +1 -1
  216. package/build/domains/admin/adminConfiguredServerService.d.ts +131 -4
  217. package/build/domains/admin/adminConfiguredServerService.d.ts.map +1 -1
  218. package/build/domains/admin/adminConfiguredServerService.js +766 -39
  219. package/build/domains/admin/adminConfiguredServerService.js.map +1 -1
  220. package/build/domains/admin/adminDomain.d.ts +13 -0
  221. package/build/domains/admin/adminDomain.d.ts.map +1 -1
  222. package/build/domains/admin/adminDomain.js +16 -0
  223. package/build/domains/admin/adminDomain.js.map +1 -1
  224. package/build/domains/admin/adminInstructionPreviewRuntime.d.ts +7 -0
  225. package/build/domains/admin/adminInstructionPreviewRuntime.d.ts.map +1 -0
  226. package/build/domains/admin/adminInstructionPreviewRuntime.js +154 -0
  227. package/build/domains/admin/adminInstructionPreviewRuntime.js.map +1 -0
  228. package/build/domains/admin/adminInstructionTemplateService.d.ts +169 -0
  229. package/build/domains/admin/adminInstructionTemplateService.d.ts.map +1 -0
  230. package/build/domains/admin/adminInstructionTemplateService.js +181 -0
  231. package/build/domains/admin/adminInstructionTemplateService.js.map +1 -0
  232. package/build/domains/admin/configuredToolInventory.d.ts +46 -0
  233. package/build/domains/admin/configuredToolInventory.d.ts.map +1 -0
  234. package/build/domains/admin/configuredToolInventory.js +135 -0
  235. package/build/domains/admin/configuredToolInventory.js.map +1 -0
  236. package/build/domains/backend-logs/backendLogSource.d.ts.map +1 -1
  237. package/build/domains/backend-logs/backendLogSource.js.map +1 -1
  238. package/build/domains/config-change/configChange.d.ts +2 -1
  239. package/build/domains/config-change/configChange.d.ts.map +1 -1
  240. package/build/domains/config-change/configChange.js +241 -13
  241. package/build/domains/config-change/configChange.js.map +1 -1
  242. package/build/domains/config-change/types.d.ts +34 -2
  243. package/build/domains/config-change/types.d.ts.map +1 -1
  244. package/build/domains/installation/serverInstallationSourceResolution.js +2 -0
  245. package/build/domains/installation/serverInstallationSourceResolution.js.map +1 -1
  246. package/build/domains/installation/serverInstallationTypes.d.ts +8 -0
  247. package/build/domains/installation/serverInstallationTypes.d.ts.map +1 -1
  248. package/build/domains/installation/serverInstallationWorkflow.js +16 -3
  249. package/build/domains/installation/serverInstallationWorkflow.js.map +1 -1
  250. package/build/domains/instruction-template/instructionTemplateManager.d.ts +58 -0
  251. package/build/domains/instruction-template/instructionTemplateManager.d.ts.map +1 -0
  252. package/build/domains/instruction-template/instructionTemplateManager.js +167 -0
  253. package/build/domains/instruction-template/instructionTemplateManager.js.map +1 -0
  254. package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts +1 -0
  255. package/build/domains/runtime-targets/runtimeIdentityVerification.d.ts.map +1 -1
  256. package/build/domains/runtime-targets/runtimeIdentityVerification.js +6 -5
  257. package/build/domains/runtime-targets/runtimeIdentityVerification.js.map +1 -1
  258. package/build/transport/http/middlewares/httpRequestLogger.d.ts.map +1 -1
  259. package/build/transport/http/middlewares/httpRequestLogger.js +3 -2
  260. package/build/transport/http/middlewares/httpRequestLogger.js.map +1 -1
  261. package/build/transport/http/routes/adminRoutes.d.ts +2 -0
  262. package/build/transport/http/routes/adminRoutes.d.ts.map +1 -1
  263. package/build/transport/http/routes/adminRoutes.js +422 -23
  264. package/build/transport/http/routes/adminRoutes.js.map +1 -1
  265. package/build/transport/http/routes/apiRoutes.d.ts.map +1 -1
  266. package/build/transport/http/routes/apiRoutes.js +2 -0
  267. package/build/transport/http/routes/apiRoutes.js.map +1 -1
  268. package/build/transport/http/routes/inspectRequestContext.d.ts +2 -0
  269. package/build/transport/http/routes/inspectRequestContext.d.ts.map +1 -1
  270. package/build/transport/http/routes/inspectRequestContext.js +15 -6
  271. package/build/transport/http/routes/inspectRequestContext.js.map +1 -1
  272. package/build/transport/http/routes/inspectRoutes.d.ts +9 -0
  273. package/build/transport/http/routes/inspectRoutes.d.ts.map +1 -1
  274. package/build/transport/http/routes/inspectRoutes.js +15 -10
  275. package/build/transport/http/routes/inspectRoutes.js.map +1 -1
  276. package/build/transport/http/routes/instructionsRoutes.d.ts +4 -0
  277. package/build/transport/http/routes/instructionsRoutes.d.ts.map +1 -0
  278. package/build/transport/http/routes/instructionsRoutes.js +147 -0
  279. package/build/transport/http/routes/instructionsRoutes.js.map +1 -0
  280. package/build/transport/http/routes/streamableHttpRoutes.d.ts.map +1 -1
  281. package/build/transport/http/routes/streamableHttpRoutes.js +13 -4
  282. package/build/transport/http/routes/streamableHttpRoutes.js.map +1 -1
  283. package/build/transport/http/routes/toolRoutes.d.ts.map +1 -1
  284. package/build/transport/http/routes/toolRoutes.js +5 -4
  285. package/build/transport/http/routes/toolRoutes.js.map +1 -1
  286. package/build/transport/http/server.d.ts.map +1 -1
  287. package/build/transport/http/server.js +17 -0
  288. package/build/transport/http/server.js.map +1 -1
  289. package/build/transport/http/storage/streamableSessionRepository.d.ts.map +1 -1
  290. package/build/transport/http/storage/streamableSessionRepository.js +2 -0
  291. package/build/transport/http/storage/streamableSessionRepository.js.map +1 -1
  292. package/build/transport/http/streamableSessionLifecycle.d.ts +3 -1
  293. package/build/transport/http/streamableSessionLifecycle.d.ts.map +1 -1
  294. package/build/transport/http/streamableSessionLifecycle.js +23 -6
  295. package/build/transport/http/streamableSessionLifecycle.js.map +1 -1
  296. package/build/transport/http/utils/contextExtractor.d.ts +14 -16
  297. package/build/transport/http/utils/contextExtractor.d.ts.map +1 -1
  298. package/build/transport/http/utils/contextExtractor.js +124 -33
  299. package/build/transport/http/utils/contextExtractor.js.map +1 -1
  300. package/build/transport/http/utils/templateContextAuthority.d.ts +13 -0
  301. package/build/transport/http/utils/templateContextAuthority.d.ts.map +1 -0
  302. package/build/transport/http/utils/templateContextAuthority.js +121 -0
  303. package/build/transport/http/utils/templateContextAuthority.js.map +1 -0
  304. package/build/transport/stdioProxyTransport.d.ts +3 -0
  305. package/build/transport/stdioProxyTransport.d.ts.map +1 -1
  306. package/build/transport/stdioProxyTransport.js +7 -2
  307. package/build/transport/stdioProxyTransport.js.map +1 -1
  308. package/build/utils/validation/discoveredServer.d.ts +15 -0
  309. package/build/utils/validation/discoveredServer.d.ts.map +1 -0
  310. package/build/utils/validation/discoveredServer.js +2 -0
  311. package/build/utils/validation/discoveredServer.js.map +1 -0
  312. package/build/utils/validation/urlDetection.d.ts +4 -5
  313. package/build/utils/validation/urlDetection.d.ts.map +1 -1
  314. package/build/utils/validation/urlDetection.js +94 -25
  315. package/build/utils/validation/urlDetection.js.map +1 -1
  316. package/package.json +2 -2
  317. package/build/admin/assets/admin-console-BOl7XR0p.js +0 -61
  318. package/build/utils/ui/pagination.d.ts +0 -35
  319. package/build/utils/ui/pagination.d.ts.map +0 -1
  320. package/build/utils/ui/pagination.js +0 -166
  321. 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,MAAM,oCAAoC,CAAC;AAE9F,OAAO,EAAgB,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIjG,UAAU,gBAAgB;IACxB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACrB,KAAK,CAAC,EACF;QACE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QACrB,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAC7C,GACD,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED,UAAU,gBAAgB,CAAC,CAAC;IAC1B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAC;IACvC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,wBAAgB,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CA+CxD;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,GAAE,MAAW,GAAG,MAAM,GAAG,SAAS,CA+B5F;AAkDD,wBAAsB,gBAAgB,CAAC,CAAC,EACtC,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,gBAAgB,EACxB,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,kBAAkB,CAAC,EACxG,eAAe,EAAE,CAAC,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,M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